:root {
  color-scheme: dark;
  --bg: #091713;
  --surface: #10251e;
  --surface-raised: #17352a;
  --text: #f5f6ed;
  --muted: #b7c8bb;
  --green: #8be0a8;
  --gold: #f2ca73;
  --line: rgba(224, 240, 222, .12);
  --max-width: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(ellipse at 50% -28%, rgba(71, 133, 87, .17), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: system-ui, "Segoe UI", Tahoma, sans-serif;
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }

.section-wrap { width: min(var(--max-width), calc(100% - 40px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px max(20px, calc((100% - var(--max-width)) / 2));
  background: rgba(9, 23, 19, .82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(140%);
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; white-space: nowrap; }
.brand img { border: 1px solid rgba(242, 202, 115, .45); border-radius: 50%; box-shadow: 0 0 22px rgba(242, 202, 115, .12); }
.brand b { color: var(--gold); }
.header-market { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.header-price { display: inline-flex; align-items: center; gap: 9px; min-height: 50px; border: 1px solid rgba(139,224,168,.32); border-radius: 999px; padding: 8px 16px; background: linear-gradient(135deg, rgba(139,224,168,.14), rgba(255,255,255,.05)); box-shadow: 0 10px 28px rgba(0,0,0,.16); white-space: nowrap; }
.header-price span { color: var(--gold); font-size: 1rem; font-weight: 900; }
.header-price strong { max-width: 170px; color: var(--green); font-size: 1.18rem; overflow: hidden; text-overflow: ellipsis; direction: ltr; }
.header-buy { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; border: 1px solid rgba(242,202,115,.42); border-radius: 999px; padding: 7px 12px; background: var(--gold); color: #10251c; font-size: .82rem; font-weight: 900; white-space: nowrap; }
.site-header nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; color: var(--muted); font-size: .92rem; }
.site-header nav a { transition: color .2s ease; }
.site-header nav a:hover, .site-header nav a:focus-visible { color: var(--green); }
.language-switch, .copy-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.hero { position: relative; min-height: 600px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 48px; padding-block: 76px; }
.eyebrow { margin: 0 0 12px; color: var(--gold); font-size: .85rem; font-weight: 800; letter-spacing: .04em; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 680px; margin-bottom: 18px; font-size: clamp(2.5rem, 5vw, 4.8rem); line-height: 1.12; letter-spacing: -.04em; }
h2 { margin-bottom: 12px; font-size: clamp(1.9rem, 3.5vw, 3rem); line-height: 1.2; }
h3 { margin-bottom: 8px; }
.hero-text, .section-heading > p:last-child { max-width: 720px; color: var(--muted); font-size: 1.08rem; }
.hero-copy { position: relative; z-index: 1; }
.hero-actions, .button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero-actions { margin-top: 28px; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 12px; padding: 10px 18px; font-weight: 750; cursor: pointer; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.button:hover { transform: translateY(-3px); }
.button:focus-visible, .language-switch:focus-visible, .copy-button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.button-primary { background: linear-gradient(135deg, #a2edb7, var(--green)); color: #10251c; box-shadow: 0 10px 30px rgba(139, 224, 168, .17); }
.button-quiet { border-color: var(--line); background: rgba(255,255,255,.03); }
.button-outline { border-color: rgba(131,214,162,.42); background: transparent; color: var(--text); }
.button-outline:hover { background: rgba(131,214,162,.1); }
.network-pill { display: inline-flex; align-items: center; gap: 9px; margin-top: 25px; color: var(--muted); font-size: .9rem; }
.network-pill span:first-child { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 16px var(--green); }

.hero-art {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border: 1px solid rgba(200, 237, 192, .17);
  border-radius: 32px;
  background: linear-gradient(155deg, #1d4933, #11291f 72%);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .28), inset 0 1px rgba(255, 255, 255, .08);
  perspective: 1000px;
  isolation: isolate;
}
.hero-art::before {
  position: absolute;
  z-index: 3;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,.08), transparent 38%, transparent 72%, rgba(139,224,168,.06));
  content: "";
  pointer-events: none;
}
.hero-art canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.scene-fallback { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .4s ease, visibility .4s ease; }
.scene-fallback img { width: min(34%, 150px); border: 3px solid rgba(255,226,151,.65); border-radius: 50%; filter: drop-shadow(0 20px 28px rgba(8,24,17,.4)); }
.hero-art.is-3d-ready .scene-fallback { visibility: hidden; opacity: 0; }
.hero-art.is-3d-ready canvas { z-index: 1; }
section.section-wrap { padding-block: 56px; }
.section-heading { margin-bottom: 28px; }
.game-options, .earn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { border: 1px solid var(--line); border-radius: 18px; padding: 24px; background: linear-gradient(145deg, rgba(255,255,255,.035), transparent 48%), var(--surface); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-5px); border-color: rgba(139,224,168,.32); box-shadow: 0 18px 34px rgba(0,0,0,.16); }
.interactive-3d { transform: perspective(900px) rotateX(var(--card-tilt-y, 0deg)) rotateY(var(--card-tilt-x, 0deg)); transform-style: preserve-3d; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.interactive-3d:hover { transform: perspective(900px) translateY(-5px) rotateX(var(--card-tilt-y, 0deg)) rotateY(var(--card-tilt-x, 0deg)); border-color: rgba(139,224,168,.32); box-shadow: 0 18px 34px rgba(0,0,0,.16); }
.game-card { display: flex; min-height: 260px; flex-direction: column; align-items: flex-start; }
.game-card p, .card p { color: var(--muted); }
.game-card .button-row { margin-top: auto; padding-top: 16px; }
.game-card > .button { margin-top: auto; }
.card-icon { display: grid; width: 48px; height: 48px; margin-bottom: 18px; place-items: center; border: 1px solid rgba(139,224,168,.2); border-radius: 14px; background: linear-gradient(145deg, rgba(139,224,168,.2), rgba(139,224,168,.05)); box-shadow: inset 0 1px rgba(255,255,255,.1); font-size: 1.4rem; }
.upcoming-card { position: relative; overflow: hidden; background: radial-gradient(ellipse at 90% 100%, rgba(139,224,168,.14), transparent 52%), var(--surface); }
.coming-soon-badge { position: absolute; top: 20px; inset-inline-end: 20px; border: 1px solid rgba(242,202,115,.35); border-radius: 999px; padding: 3px 10px; background: rgba(242,202,115,.1); color: var(--gold); font-size: .76rem; font-weight: 800; }
.upcoming-preview { position: relative; height: 48px; margin-top: auto; overflow: hidden; border: 1px solid rgba(139,224,168,.12); border-radius: 12px; background: linear-gradient(115deg, rgba(139,224,168,.03), rgba(139,224,168,.12), rgba(242,202,115,.05)); }
.upcoming-preview span, .upcoming-preview i, .upcoming-preview b { position: absolute; top: 50%; width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px rgba(139,224,168,.7); animation: preview-drift 4s ease-in-out infinite alternate; }
.upcoming-preview span { left: 22%; }
.upcoming-preview i { left: 50%; width: 6px; height: 6px; background: var(--gold); animation-delay: -1s; }
.upcoming-preview b { left: 78%; width: 11px; height: 11px; animation-delay: -2s; }

.world-section { padding-block: 62px 70px; background: radial-gradient(ellipse at 50% 12%, rgba(52,119,77,.18), transparent 58%); }
.world-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.world-card { position: relative; min-height: 286px; overflow: hidden; background: linear-gradient(145deg, rgba(255,255,255,.045), transparent 55%), var(--surface); }
.world-card::after { position: absolute; top: -55px; inset-inline-end: -42px; width: 154px; height: 154px; border: 1px solid rgba(139,224,168,.12); border-radius: 50%; box-shadow: 0 0 0 17px rgba(139,224,168,.025), 0 0 0 34px rgba(139,224,168,.018); content: ""; pointer-events: none; }
.world-mark { position: relative; display: grid; width: 68px; height: 68px; margin: 2px 0 25px; place-items: center; border: 1px solid rgba(139,224,168,.25); background: linear-gradient(145deg, rgba(139,224,168,.24), rgba(139,224,168,.04)); box-shadow: 8px 12px 0 rgba(5,24,16,.22), inset 0 1px rgba(255,255,255,.14); transform-style: preserve-3d; animation: world-mark-float 5s ease-in-out infinite; }
.world-mark::before { position: absolute; inset: 9px; border: 1px solid rgba(242,202,115,.32); border-radius: inherit; transform: translateZ(-12px); content: ""; }
.world-mark span { position: relative; z-index: 1; font-size: 1.65rem; transform: translateZ(16px); }
.world-mark-farm { border-radius: 20px; transform: perspective(440px) rotateX(48deg) rotateZ(-34deg); }
.world-mark-web3 { border-radius: 50%; background: radial-gradient(circle at 30% 25%, rgba(242,202,115,.42), rgba(139,224,168,.08) 67%); transform: perspective(440px) rotateY(-25deg); }
.world-mark-meta { border-radius: 18px; transform: perspective(440px) rotateX(52deg) rotateZ(36deg); }
.world-card h3, .world-card p { position: relative; z-index: 1; }
.world-card p { max-width: 34ch; color: var(--muted); }

.token-section { padding-block: 50px 70px; background: linear-gradient(180deg, #10231d, #0d1d18); border-block: 1px solid var(--line); }
.token-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; align-items: stretch; }
.token-card { padding: clamp(20px, 4vw, 34px); }
.token-name { display: flex; align-items: center; gap: 14px; }
.token-name img { border-radius: 50%; }
.token-name h3 { margin: 0; font-size: 1.4rem; }
.token-name h3 span { color: var(--gold); font-size: .95rem; }
.token-name p { margin: 3px 0 0; color: var(--muted); }
.direct-trade-panel { display: grid; grid-template-columns: minmax(150px, .7fr) minmax(0, 1.3fr); align-items: center; gap: 14px; margin-top: 20px; border: 1px solid rgba(139,224,168,.22); border-radius: 15px; padding: 16px; background: linear-gradient(110deg, rgba(139,224,168,.1), rgba(255,255,255,.02)); }
.direct-trade-panel > div:first-child { display: grid; gap: 3px; }
.direct-trade-label { color: var(--green); font-weight: 800; }
.direct-trade-note { color: var(--muted); font-size: .78rem; }
.direct-trade-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.direct-trade-actions .button { min-height: 42px; font-size: .84rem; }
.token-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 26px 0; }
.token-facts div { min-width: 0; border-radius: 12px; padding: 14px; background: rgba(255,255,255,.035); }
.token-facts dt { color: var(--muted); font-size: .8rem; }
.token-facts dd { margin: 5px 0 0; font-weight: 750; }
.market-price-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 0 0 22px; border: 1px solid rgba(139,224,168,.22); border-radius: 15px; padding: 16px; background: linear-gradient(110deg, rgba(139,224,168,.1), rgba(255,255,255,.02)); }
.market-price-panel > div { display: grid; flex: 1 1 190px; min-width: 0; gap: 2px; }
.market-price-label { color: var(--muted); font-size: .82rem; }
#tou-price { color: var(--green); font-size: clamp(1.2rem, 2.6vw, 2rem); font-weight: 900; line-height: 1.25; overflow-wrap: anywhere; }
#tou-price-status { color: var(--muted); font-size: .8rem; }
.market-price-panel .button { flex: 0 1 auto; }
.market-price-note { flex: 1 0 100%; margin: 0; color: var(--muted); font-size: .78rem; }
.contract-label { margin-bottom: 7px; color: var(--muted); font-size: .9rem; }
.contract-row { display: flex; align-items: center; gap: 8px; }
.contract-row code { min-width: 0; overflow-wrap: anywhere; color: var(--green); font-size: .82rem; }
.copy-button { flex: 0 0 auto; padding: 5px 10px; font-size: .8rem; }
.token-card .button-row { margin-top: 14px; }
.allocation-stack { display: flex; flex-direction: column; gap: 14px; }
.allocation-card { display: flex; flex: 1; align-items: center; gap: 18px; border: 1px solid var(--line); border-radius: 18px; padding: 22px; background: linear-gradient(120deg, rgba(139,224,168,.07), transparent 70%), var(--surface-raised); transition: transform .25s ease, border-color .25s ease; }
.allocation-card:hover { transform: translateX(-4px); border-color: rgba(242,202,115,.38); }
.allocation-number { color: var(--gold); font-size: 2.5rem; font-weight: 900; line-height: 1; }
.allocation-card h3 { margin: 0 0 5px; }
.allocation-card p { margin: 0; color: var(--muted); }
.disclaimer { margin: 0; color: var(--muted); font-size: .82rem; }
.inline-status { display: block; min-height: 1.4em; color: var(--green); font-size: .83rem; }

.earn-grid .card { position: relative; padding-top: 58px; }
.step-number { position: absolute; top: 20px; inset-inline-start: 22px; color: var(--gold); font-weight: 900; }
.notice { margin: 18px 0 0; border-inline-start: 3px solid var(--gold); border-radius: 8px; padding: 14px 16px; background: rgba(240,198,106,.08); color: #f4ddb0; }

.staking-section { padding-block: 58px 66px; background: radial-gradient(ellipse at 50% 0, rgba(48,106,65,.2), transparent 62%); border-block: 1px solid var(--line); }
.staking-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.staking-fact { position: relative; overflow: hidden; min-height: 154px; }
.staking-fact::after { position: absolute; inset-inline-end: -20px; bottom: -44px; width: 130px; height: 130px; border: 1px solid rgba(139,224,168,.12); border-radius: 50%; box-shadow: 0 0 0 16px rgba(139,224,168,.025), 0 0 0 32px rgba(139,224,168,.02); content: ""; }
.staking-value { display: block; margin-bottom: 4px; color: var(--green); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 900; line-height: 1.1; letter-spacing: -.04em; }
.staking-fact h3 { position: relative; z-index: 1; color: var(--muted); font-size: .96rem; }
.staking-fact-payout .staking-value { max-width: 100%; margin-bottom: 14px; font-size: clamp(1.55rem, 2.35vw, 2.35rem); line-height: 1.12; letter-spacing: -.02em; }
.staking-fact-payout h3 { max-width: 18ch; }
.staking-fact-note { position: relative; z-index: 1; display: block; margin-top: 6px; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.staking-notice { line-height: 1.8; }
.staking-calculator { display: grid; gap: 18px; margin-top: 20px; border: 1px solid var(--line); border-radius: 18px; padding: 22px; background: var(--surface); }
.staking-calculator-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.staking-amount-field, .staking-duration-field { display: grid; align-content: start; gap: 8px; max-width: 440px; }
.staking-amount-field label, .staking-duration-field label { font-weight: 750; }
.staking-amount-field input, .staking-duration-field select { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--surface-raised); color: var(--text); font: inherit; }
.staking-amount-field input { direction: ltr; text-align: left; }
.staking-amount-field input:focus { outline: 2px solid var(--green); outline-offset: 2px; }
.staking-duration-field select:focus { outline: 2px solid var(--green); outline-offset: 2px; }
.staking-amount-field .inline-status { color: #ffb1a7; }
.staking-estimates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.staking-estimate { display: grid; gap: 6px; border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: rgba(139,224,168,.035); }
.staking-estimate span, .staking-estimate small { color: var(--muted); font-size: .85rem; }
.staking-estimate strong { overflow-wrap: anywhere; color: var(--green); font-size: clamp(1.05rem, 3vw, 1.45rem); }
.staking-calculator > p { max-width: 800px; margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.7; }
.staking-calculator > button:disabled { width: fit-content; cursor: not-allowed; opacity: .65; }
.staking-wallet-panel { display: grid; justify-items: start; gap: 10px; margin-top: 20px; }
.staking-wallet-panel > span { color: var(--green); font-size: .9rem; }
.staking-wallet-panel .staking-countdown { min-height: 1.2em; font-variant-numeric: tabular-nums; }
.staking-wallet-panel > p { max-width: 760px; margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.7; }
.staking-wallet-panel button:disabled { cursor: wait; opacity: .7; }
.staking-wallet-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.staking-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.listing-section { padding-block: 55px; background: linear-gradient(145deg, #132b22, #10241d); border-block: 1px solid var(--line); }
.listing-content { display: grid; grid-template-columns: 1.1fr .9fr; gap: 35px; align-items: center; }
.listing-content > div:first-child > p:last-child { max-width: 650px; color: var(--muted); }
.listing-checklist { border: 1px solid var(--line); border-radius: 18px; padding: 20px 24px; background: rgba(255,255,255,.025); }
.listing-checklist p { display: flex; gap: 10px; margin: 8px 0; color: var(--muted); }
.listing-checklist p span:first-child { color: var(--green); font-weight: 900; }
.faq-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.faq-list details summary { cursor: pointer; font-weight: 750; }
.faq-list details p { margin: 12px 0 0; color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); padding-block: 24px; background: linear-gradient(90deg, rgba(139,224,168,.035), transparent 55%); }
.footer-inner { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 24px; color: var(--muted); font-size: .85rem; }
.footer-socials { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-social { color: var(--green); font-weight: 750; white-space: nowrap; text-decoration: none; }
.footer-social:hover { text-decoration: underline; }
.footer-tagline { margin: 0; color: var(--text); font-size: .93rem; font-weight: 700; line-height: 1.55; text-align: center; }
.footer-copyright { margin: 0; color: var(--muted); font-size: .8rem; white-space: nowrap; }

html[dir="ltr"] .hero-copy { text-align: left; }
html[dir="ltr"] .step-number { inset-inline-start: auto; inset-inline-end: 22px; }
html[dir="ltr"] .allocation-card:hover { transform: translateX(4px); }

.reveal-on-scroll { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.2,1); }
.reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

@keyframes preview-drift { from { transform: translate(-8px, -50%); opacity: .45; } to { transform: translate(8px, -50%); opacity: 1; } }
@keyframes world-mark-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }

@media (max-width: 850px) {
  .site-header { flex-wrap: wrap; gap: 12px; }
  .site-header nav { order: 3; width: 100%; justify-content: flex-start; overflow-x: auto; padding-bottom: 2px; }
  .header-price { position: static; margin-left: auto; transform: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 30px; padding-block: 52px; }
  .hero-art { min-height: 360px; }
  .token-layout, .listing-content { grid-template-columns: 1fr; }
  .staking-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .section-wrap { width: min(100% - 28px, var(--max-width)); }
  .site-header { padding-inline: 14px; }
  .site-header nav { gap: 16px; font-size: .85rem; }
  .header-price { min-height: 46px; padding: 7px 12px; }
  .header-price span { font-size: .92rem; }
  .header-price strong { max-width: 110px; font-size: 1.02rem; }
  .game-options, .world-grid, .earn-grid, .faq-list, .staking-grid, .staking-estimates, .staking-calculator-controls { grid-template-columns: 1fr; }
  .direct-trade-panel { grid-template-columns: 1fr; }
  .direct-trade-actions { justify-content: flex-start; }
  .direct-trade-actions .button { flex: 1 1 170px; }
  .token-facts { grid-template-columns: 1fr; }
  .token-facts div { display: flex; justify-content: space-between; gap: 12px; }
  .contract-row { align-items: flex-start; }
  .hero-actions .button { flex: 1; }
  .hero-art { min-height: 310px; border-radius: 24px; }
  .footer-inner { grid-template-columns: 1fr; justify-items: start; gap: 12px; }
  .footer-tagline { text-align: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal-on-scroll { opacity: 1; transform: none; }
}
