@font-face {
  font-family: "TAN Headline";
  src: url("../assets/fonts/TANHEADLINE-Regular.otf") format("opentype"),
    url("../assets/fonts/TANHEADLINE-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  overflow: hidden;
  font-family: Impact, "Arial Black", sans-serif;
  background: #fafafa;
  margin: 0;
  padding: 0;
}

#logo-link {
  position: absolute;
  top: clamp(8px, 0.5vh, 8px);
  left: 50%;
  transform: translateX(-50%);
  width: clamp(69px, 12vw, 88px);
  height: auto;
  z-index: 1000;
  pointer-events: auto;
  cursor: pointer;
  transition: opacity 0.3s ease;
  touch-action: manipulation;
}

#logo-link:hover {
  opacity: 0.8;
}

#logo {
  width: 100%;
  height: auto;
  display: block;
}

#title {
  position: absolute;
  top: clamp(18px, 4.5vh, 40px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  text-align: center;
  color: #fd243d;
  /*text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);*/
  pointer-events: none;
  width: 95%;
  max-width: 100%;
}

#title h1 {
  font-size: clamp(1.3rem, 6vw, 2.7rem);
  font-weight: normal;
  margin: 0;
  font-family: "TAN Headline", Impact, "Arial Black", sans-serif;
  white-space: nowrap;
  overflow: visible;
}

#title p {
  font-size: clamp(0.8rem, 2.5vw, 1.2rem);
  font-weight: normal;
  font-family: Georgia, serif;
  margin: 5px 0 0 0;
  opacity: 0.9;
}

#credit-link {
  color: #fd243d;
  text-decoration: none;
  pointer-events: auto;
  transition: opacity 0.3s ease;
  touch-action: manipulation;
  display: inline-block;
  padding: 5px 10px;
  margin: -5px -10px;
}

#credit-link:hover {
  opacity: 0.7;
  text-decoration: underline;
}

.bottom-controls {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: clamp(120px, 20vh, 180px);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fd243d;
  font-family: Arial, sans-serif;
  background: #fafafa;
  padding: clamp(10px, 2vh, 20px);
  box-sizing: border-box;
}

.fortune-button,
.share-button {
  background: transparent;
  color: #fd243d;
  border: 2px solid rgba(253, 36, 61, 0.6);
  padding: clamp(8px, 2vh, 12px) clamp(16px, 4vw, 32px);
  border-radius: 30px;
  font-size: clamp(13px, 3vw, 20px);
  font-weight: normal;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: Georgia, serif;
  transform-origin: center;
  text-shadow: none;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  max-width: 95vw;
  text-align: center;
}

.fortune-button {
  margin-bottom: 15px;
}

.share-button {
  display: none;
}

.share-button.show {
  display: inline-block;
}

.fortune-button:hover,
.share-button:hover {
  background: rgba(253, 36, 61, 0.1);
  border-color: rgba(253, 36, 61, 0.8);
  transform: scale(1.05);
}

.fortune-button:active,
.share-button:active {
  background: rgba(253, 36, 61, 0.2);
  transform: scale(0.95);
}

/* Daily limit message styling - looks like text, not a button */
.fortune-button.limit-message {
  border: none;
  background: transparent;
  cursor: default;
  padding: clamp(8px, 2vh, 12px) clamp(8px, 2vw, 16px);
  font-size: clamp(13px, 3vw, 20px);
  opacity: 0.85;
}

.fortune-button.limit-message:hover {
  background: transparent;
  border: none;
  transform: none;
  opacity: 0.85;
}

.fortune-button.limit-message:active {
  background: transparent;
  transform: none;
}

/* Responsive design handled by clamp() values above */
