/* KUKDOO docs: the same black and gold as the game. Fonts come from /fonts (shared with the game, cached for a year) */
@font-face { font-family: 'Manrope'; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/fonts/manrope-latin-wght-normal.woff2) format('woff2'); }
@font-face { font-family: 'Unbounded'; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/fonts/unbounded-latin-wght-normal.woff2) format('woff2'); }
:root {
  --bg: #0a0907;
  --card: #15130e;
  --card-2: #1c1912;
  --line: rgba(230, 190, 110, 0.16);
  --line-hi: rgba(240, 205, 130, 0.38);
  --gold-1: #fbe3a6;
  --gold-2: #e6b85a;
  --gold-3: #a8781f;
  --gold-grad: linear-gradient(180deg, #fff0c2 0%, #f0c76a 45%, #b9862a 100%);
  --text: #f6f0e3;
  --muted: #a39a88;
  --display: "Unbounded", "Manrope", system-ui, sans-serif;
  --body: "Manrope", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; color: var(--text); font-family: var(--body); font-size: 16.5px; line-height: 1.7;
  background: radial-gradient(70% 40% at 50% 0%, rgba(230, 184, 90, .10), transparent 70%), var(--bg);
  min-height: 100vh;
}
a { color: var(--gold-1); text-decoration-color: rgba(251, 227, 166, .35); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--gold-1); }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.gold { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* top bar */
.top { position: sticky; top: 0; z-index: 10; background: rgba(10, 9, 7, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1120px; margin: 0 auto; padding: 0 16px; height: 60px; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -.01em; flex-shrink: 0; }
.brand img { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line-hi); }
.nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 10px; white-space: nowrap; }
.nav a:hover { color: var(--text); background: var(--card); }
.nav a[aria-current="page"] { color: var(--gold-1); background: var(--card-2); }
.play { flex-shrink: 0; text-decoration: none; background: var(--gold-grad); color: #1a1408; font-weight: 800; font-size: 14px; padding: 8px 14px; border-radius: 10px; }

/* page */
.page { max-width: 1120px; margin: 0 auto; padding: 0 16px 80px; }
.hero { padding: 56px 0 28px; max-width: 760px; }
.hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 6vw, 50px); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 16px; }
.hero p { color: var(--muted); font-size: 18px; margin: 0; }
.layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; }
.toc { position: sticky; top: 84px; font-size: 14px; border-left: 1px solid var(--line); padding-left: 16px; }
.toc b { display: block; font-family: var(--display); font-weight: 600; font-size: 13px; color: var(--text); margin-bottom: 8px; }
.toc a { display: block; color: var(--muted); text-decoration: none; padding: 4px 0; line-height: 1.4; }
.toc a:hover { color: var(--gold-1); }
.content { max-width: 760px; }
.content section { padding: 28px 0 8px; border-top: 1px solid var(--line); }
.content section:first-child { border-top: 0; padding-top: 4px; }
h2 { font-family: var(--display); font-weight: 600; font-size: 25px; letter-spacing: -.02em; line-height: 1.2; margin: 0 0 14px; }
h3 { font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: -.01em; margin: 26px 0 8px; color: var(--gold-1); }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin: 4px 0; }
li::marker { color: var(--gold-2); }
strong { color: #fff; font-weight: 700; }
.muted { color: var(--muted); }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 10px 0 22px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.card h4 { font-family: var(--display); font-weight: 600; font-size: 15px; margin: 0 0 6px; color: var(--text); }
.card p { color: var(--muted); font-size: 15px; margin: 0; line-height: 1.6; }
a.card { display: block; text-decoration: none; color: inherit; transition: border-color .15s, background .15s; }
a.card:hover { border-color: var(--line-hi); background: var(--card-2); }
a.card h4::after { content: " \2192"; color: var(--gold-2); }
.ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(230, 184, 90, .1); border: 1px solid var(--line); margin-bottom: 12px; color: var(--gold-2); }
.ico svg { width: 18px; height: 18px; }

.note { border: 1px solid var(--line-hi); background: linear-gradient(90deg, rgba(230, 184, 90, .10), rgba(230, 184, 90, .03)); border-radius: 14px; padding: 14px 16px; margin: 16px 0 20px; font-size: 15px; }
.note p:last-child { margin: 0; }

/* steps / flow */
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 12px 0 22px; counter-reset: f; }
.flow div { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 14px 14px 46px; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.flow div b { display: block; color: var(--text); font-size: 15px; margin-bottom: 2px; }
.flow div::before { counter-increment: f; content: counter(f); position: absolute; left: 14px; top: 14px; width: 22px; height: 22px; border-radius: 50%; background: var(--gold-grad); color: #1a1408; font-weight: 800; font-size: 12px; display: grid; place-items: center; }

/* table */
.table { width: 100%; border-collapse: collapse; margin: 8px 0 22px; font-size: 15px; }
.table th, .table td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-weight: 600; font-size: 13.5px; }
.table td:first-child { color: var(--text); font-weight: 600; }
.tw { overflow-x: auto; }

/* details */
details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin: 8px 0; }
summary { cursor: pointer; padding: 14px 16px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--gold-2); font-weight: 800; font-size: 18px; line-height: 1; }
details[open] summary::after { content: "\2212"; }
details > div { padding: 0 16px 14px; color: var(--muted); font-size: 15px; }
details > div p:last-child { margin: 0; }

/* roadmap timeline */
.timeline { position: relative; margin: 10px 0 0; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 10px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(180deg, var(--gold-2), rgba(230, 184, 90, .12)); }
.phase { position: relative; margin-bottom: 22px; }
.phase::before { content: ""; position: absolute; left: -31px; top: 22px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--gold-3); }
.phase.done::before { background: var(--gold-grad); border-color: var(--gold-1); }
.phase.now::before { background: var(--bg); border-color: var(--gold-1); box-shadow: 0 0 0 5px rgba(230, 184, 90, .18); }
.phase .card { padding: 20px 20px 10px; }
.phase .when { color: var(--gold-2); font-weight: 700; font-size: 14px; margin: 0 0 4px; }
.phase h3 { margin: 0 0 8px; font-size: 21px; color: var(--text); }
.phase ul { color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.phase li strong { color: var(--text); }

/* tokenomics */
.alloc { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; align-items: center; margin: 8px 0 26px; }
.donut { width: 100%; max-width: 280px; aspect-ratio: 1; border-radius: 50%; position: relative; margin: 0 auto; }
.donut::after { content: ""; position: absolute; inset: 22%; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.donut span { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; text-align: center; font-family: var(--display); font-weight: 700; font-size: 18px; line-height: 1.25; }
.donut span small { display: block; font-family: var(--body); font-weight: 600; font-size: 12.5px; color: var(--muted); }
.legend { list-style: none; padding: 0; margin: 0; }
.legend li { display: grid; grid-template-columns: 14px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; }
.legend i { width: 14px; height: 14px; border-radius: 4px; }
.legend b { font-family: var(--display); font-weight: 600; font-size: 15px; }

.foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 26px 0 0; color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.foot a { color: var(--muted); }

@media (max-width: 880px) {
  .layout { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
  .alloc { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .top-in { gap: 10px; }
  .brand span { display: none; }
  .play { display: none; }
  .nav { margin-left: 0; }
  .nav a { padding: 7px 7px; font-size: 13px; }
  .nav { gap: 0; }
  .top-in { padding: 0 12px; }
  .hero { padding: 36px 0 20px; }
  .hero p { font-size: 16.5px; }
  h2 { font-size: 22px; }
}

/* home hero in the Alex style: big two-tone headline, white pill, the hen as the one hero; things arrive, nothing pops */
.play { background: linear-gradient(#fff, #e6e6e6); color: #000; font-weight: 600; border-radius: 999px; padding: 8px 16px; }
.hero-x { max-width: none; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 24px; align-items: center; padding: 64px 0 40px; position: relative; }
.hero-x::before { content: ""; position: absolute; inset: -40px 0 0; z-index: -1; background: radial-gradient(circle closest-side at 78% 62%, rgba(230, 184, 90, .22), transparent); pointer-events: none; }
.hero-x h1 { font-family: var(--body); font-weight: 600; font-size: clamp(44px, 6.5vw, 88px); line-height: .95; letter-spacing: -.04em; margin: 0 0 20px; }
.hero-x p { color: rgba(255, 255, 255, .6); font-weight: 500; font-size: clamp(17px, 1.6vw, 19px); max-width: 40ch; margin: 0 0 28px; line-height: 1.5; }
.hx-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hx-pill, .hx-ghost { display: inline-flex; align-items: center; height: 50px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; transition: transform .15s cubic-bezier(.22, 1, .36, 1); }
.hx-pill { background: linear-gradient(#fff, #e6e6e6); color: #000; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .08), 0 8px 24px rgba(0, 0, 0, .35); }
.hx-ghost { background: #1c1c1f; color: #fff; border: 1px solid rgba(255, 255, 255, .07); }
.hx-pill:active, .hx-ghost:active { transform: scale(.97); }
.hx-hen { width: 100%; max-width: 300px; height: auto; justify-self: center; animation: hxIn .8s cubic-bezier(.34, 1.56, .64, 1) both, hxFloat 4s 1s ease-in-out infinite; }
.hx-r { animation: hxBlur .6s cubic-bezier(.16, 1, .3, 1) .36s both; }
.hx-d1 { animation-delay: .45s; }
.hx-c { animation: hxUp .5s cubic-bezier(.16, 1, .3, 1) .65s both; }
@keyframes hxBlur { from { opacity: 0; filter: blur(12px); transform: translateY(8px); } }
@keyframes hxUp { from { opacity: 0; transform: translateY(10px); } }
@keyframes hxIn { from { opacity: 0; transform: scale(.85) rotate(-4deg); } }
@keyframes hxFloat { 50% { transform: translateY(-6px) rotate(1deg); } }
@media (max-width: 700px) { .hero-x { grid-template-columns: 1fr; padding-top: 36px; } .hx-hen { max-width: 220px; grid-row: 1; } }
@media (prefers-reduced-motion: reduce) { .hx-hen, .hx-r, .hx-c { animation: none; } }
