/* HUNDRED COIN clone — Robinhood Chain edition */
@font-face {
  font-family: SeriousFont;
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/PressStart2P.ttf") format("truetype");
}

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

html,
body {
  background: #080808;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior-y: none;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: #fff;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Story scroll */
.story-page {
  min-height: 100vh;
  background: linear-gradient(
    to bottom,
    #080808,
    #1d1d19,
    #32322b,
    #47473c,
    #5c5b4d,
    #71705f,
    #868570
  );
  background-attachment: fixed;
}

.story-image-container {
  position: relative;
  width: 100%;
  min-height: 100%;
  overflow: hidden;
}

.story-image-container > img.panel {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* Absolute hotspots */
.story-link {
  position: absolute;
  z-index: 10;
  cursor: pointer;
  opacity: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.story-link.visible-icon {
  opacity: 1;
}
.story-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* Top nav hotspots use class names from original */
.logo-link,
.telegram-link,
.avax-link,
.cmc-link,
.yt-link,
.twitter-link,
.airdrop-link,
.buy-link {
  opacity: 0;
}

/* Decorations */
.decoration {
  position: absolute;
  z-index: 5;
  opacity: 1;
  pointer-events: none;
}

/* Alert clickable zones */
.alert-clickable {
  position: absolute;
  z-index: 10;
  cursor: pointer;
  opacity: 0;
}

.alert-message {
  position: absolute;
  z-index: 50;
  background: #fff;
  border-radius: 30px;
  color: #000;
  font-size: 24px;
  font-weight: 700;
  height: 50px;
  padding: 10px;
  right: 40%;
  text-align: center;
  top: 70%;
  transition: all 0.3s ease-in-out;
  width: 400px;
  max-width: 90vw;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}

.alert-13 {
  height: auto;
  min-height: 100px;
  line-height: 1.15em;
  padding: 20px 12px;
  position: absolute;
  right: 5%;
  top: 70%;
  width: 180px;
  font-size: 14px;
  border-radius: 24px;
}

/* CA bar on last panel */
.contract-address-container {
  position: absolute;
  bottom: 60px;
  left: 15%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 8px;
  flex-wrap: wrap;
  max-width: 90%;
}

.contract-address {
  color: #fbbf24;
  font-size: 0.7em;
  word-break: break-all;
}

.copy-icon {
  color: #ff0;
  cursor: pointer;
  margin-left: 6px;
  background: none;
  border: none;
  font-size: 1em;
  line-height: 1;
}

.copy-message {
  color: #fff;
  margin-left: 8px;
  font-size: 0.55em;
  font-weight: 600;
}

.chain-badge {
  position: absolute;
  top: 22%;
  right: 3%;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 200, 5, 0.95);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(0, 200, 5, 0.35);
  pointer-events: none;
}
.chain-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

/* Floating top bar for CA/X/Pons when not using baked icons */
.top-float {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 8px 12px;
  pointer-events: none;
}
.top-float a,
.top-float span {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(8, 8, 8, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  backdrop-filter: blur(8px);
}
.top-float a.pons {
  background: #00c805;
  border-color: #00c805;
  color: #fff;
}
.top-float .soon {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.4);
}
.top-float .disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* ===== Serious page ===== */
.serious-container {
  max-width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0 16px 16px;
  background: #080808;
  box-sizing: border-box;
  text-align: center;
  overflow-wrap: break-word;
  word-break: break-word;
}

.serious-back-btn {
  text-align: left;
  padding: 10px;
}

.serious-back-btn button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  transition: color 0.2s ease;
}
.serious-back-btn button:hover {
  color: red;
}

.serious-main-image {
  width: 80%;
  height: auto;
  display: block;
  margin: -30px auto 20px;
  border-radius: 10px;
}

.serious-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
  padding-bottom: 60px;
}

.serious-content h1 {
  color: #fff;
  font-family: SeriousFont, monospace;
  font-size: 28px;
  margin: 30px 0 16px;
  line-height: 1.4;
}

.serious-content h2 {
  color: #fff;
  font-size: 22px;
  margin: 30px 0 12px;
  font-weight: 700;
}

.serious-content p {
  color: #ccc;
  font-size: 18px;
  line-height: 1.55;
  margin-bottom: 14px;
}

.serious-content a.hl,
.serious-content .hl {
  color: #00c805;
  text-decoration: underline;
  font-weight: 700;
}

.serious-content .warn {
  color: #fbbf24;
  font-weight: 700;
}

.serious-header-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 12px 8px 8px;
  max-height: 80px;
  overflow: hidden;
}
.serious-header-icons a,
.serious-header-icons span {
  display: inline-flex;
}
.serious-header-icons img {
  max-height: 48px;
  max-width: 48px;
  width: auto;
  height: auto;
}
.serious-header-icons .disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* Mobile */
@media (max-width: 768px) {
  .logo-link,
  .logo-link img {
    height: 30px !important;
    left: 2% !important;
    top: 0 !important;
    width: 20px !important;
  }
  .telegram-link,
  .telegram-link img {
    height: 30px !important;
    left: 14% !important;
    top: 0 !important;
    width: 20px !important;
  }
  .avax-link,
  .avax-link img {
    height: 30px !important;
    left: 25% !important;
    top: 0 !important;
    width: 20px !important;
  }
  .cmc-link,
  .cmc-link img {
    height: 30px !important;
    left: 36% !important;
    top: 0 !important;
    width: 20px !important;
  }
  .yt-link,
  .yt-link img {
    height: 30px !important;
    left: 48% !important;
    top: 0 !important;
    width: 20px !important;
  }
  .twitter-link,
  .twitter-link img {
    height: 30px !important;
    left: 59% !important;
    top: 0 !important;
    width: 20px !important;
  }
  .airdrop-link,
  .airdrop-link img {
    height: 30px !important;
    left: 69% !important;
    top: 0 !important;
    width: 20px !important;
  }
  .buy-link,
  .buy-link img {
    height: 30px !important;
    left: 83% !important;
    top: 0 !important;
    width: 30px !important;
  }

  .story-link.link-index-2 {
    left: 45% !important;
    top: 15% !important;
  }
  .story-link.link-index-2 img {
    height: 100px !important;
    width: 350px !important;
  }

  .alert-13,
  .alert-message {
    font-size: 12px !important;
    height: auto !important;
    min-height: 70px !important;
    line-height: 1.2em;
    padding: 8px 6px !important;
    right: 2% !important;
    top: 55% !important;
    width: 85px !important;
  }

  .contract-address-container {
    bottom: 5% !important;
    font-size: 14px !important;
    left: 20% !important;
  }

  .chain-badge {
    top: auto;
    bottom: 12px;
    right: 10px;
    font-size: 10px;
    padding: 6px 10px;
  }

  .serious-container h1 {
    font-size: 20px !important;
  }
  .serious-container p {
    font-size: 14px !important;
    padding-left: 10px;
    padding-right: 10px;
  }
  .serious-main-image {
    margin-top: -10px !important;
    width: 80% !important;
  }
  .serious-header-icons img {
    max-height: 30px !important;
    max-width: 30px !important;
  }
}
