:root {
  --bg: #ece6ff; --bg2: #ded4ff; --ink: #1a1240; --dim: #544b80; --faint: #8f86b8;
  --violet: #5b3df5; --violet-hi: #8b74ff; --tomato: #ff5533; --tomato-lo: #d93a1c;
  --lime: #cff25b; --ivory: #fff9ee; --ivory2: #f4eadb; --line: rgba(26, 18, 64, .12);
  --radius: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); font-family: "Instrument Sans", system-ui, sans-serif; font-weight: 500;
  background: var(--bg) radial-gradient(rgba(91, 61, 245, .16) 1.2px, transparent 1.3px) 0 0 / 22px 22px;
  -webkit-font-smoothing: antialiased; line-height: 1.5;
}
a { color: var(--violet); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.serif { font-family: "Fraunces", Georgia, serif; font-optical-sizing: auto; }
.it { font-family: "Fraunces", Georgia, serif; font-style: italic; font-optical-sizing: auto; }
.cap { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .92em; }

/* header */
header { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(10px); background: rgba(236, 230, 255, .82); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 24px; height: 64px; }
.mark { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.mark .it { color: var(--violet); }
.mark:hover { text-decoration: none; }
nav { display: flex; gap: 20px; margin-left: auto; font-weight: 600; font-size: 15px; }
nav a { color: var(--ink); }
.pill { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 13px; background: var(--ivory); border: 1px solid var(--line); white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.dot.on { background: #2bb673; box-shadow: 0 0 0 4px rgba(43, 182, 115, .18); }

/* hero */
.hero { display: grid; grid-template-columns: 1.02fr 1fr; gap: 44px; align-items: center; padding: 64px 0 40px; }
.hero h1 { font-size: clamp(46px, 6.4vw, 84px); line-height: .98; letter-spacing: -.03em; margin: 0; font-weight: 800; }
.hero h1 em { color: var(--tomato); font-style: italic; }
.lead { font-size: 20px; color: var(--dim); max-width: 470px; margin: 22px 0 28px; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 14px; padding: 13px 20px; font-weight: 700; font-size: 16px; border: 0; cursor: pointer; font-family: inherit; }
.btn.primary { background: var(--ink); color: var(--ivory); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.fine { font-size: 13px; color: var(--faint); margin-top: 16px; }

/* ticket */
.ticket { position: relative; display: grid; grid-template-columns: 1fr 96px; background: var(--ivory); border-radius: var(--radius); box-shadow: 0 30px 60px -28px rgba(26, 18, 64, .45), 0 2px 0 rgba(26, 18, 64, .06); }
.ticket::before, .ticket::after { content: ""; position: absolute; right: 84px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); }
.ticket::before { top: -12px; } .ticket::after { bottom: -12px; }
.ticket .main { padding: 26px 28px 24px; min-width: 0; }
.ticket .stub { border-left: 2px dashed rgba(26, 18, 64, .22); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 18px 0; }
.stub .q { font-size: 84px; font-weight: 900; color: var(--tomato); line-height: 1; }
.stub .vert { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 11px; color: var(--dim); }
.tk-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.chip { border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: var(--violet); color: var(--ivory); }
.chip.answer { background: var(--tomato); } .chip.reveal { background: var(--ink); } .chip.draw { background: var(--lime); color: var(--ink); } .chip.idle { background: var(--ivory2); color: var(--dim); }
.riddle { font-size: 27px; line-height: 1.25; font-weight: 600; margin: 16px 0 14px; min-height: 102px; overflow-wrap: anywhere; }
.letters { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; min-height: 40px; }
.letters span { width: 34px; height: 40px; border-radius: 8px; background: var(--ivory2); display: flex; align-items: center; justify-content: center; font-family: "Fraunces", serif; font-weight: 700; font-size: 20px; }
.letters span.k { background: var(--violet); color: var(--ivory); }
.letters span.ans { background: var(--lime); color: var(--ink); }
.timeline { display: grid; grid-template-columns: 180fr 60fr 90fr 50fr; gap: 4px; margin-bottom: 8px; }
.timeline div { height: 10px; border-radius: 6px; background: var(--ivory2); overflow: hidden; position: relative; }
.timeline div i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--violet); }
.timeline div:nth-child(2) i { background: var(--tomato); } .timeline div:nth-child(3) i { background: var(--ink); } .timeline div:nth-child(4) i { background: #9fc22f; }
.tl-labels { display: grid; grid-template-columns: 180fr 60fr 90fr 50fr; gap: 4px; font-size: 11px; color: var(--faint); font-weight: 700; }
.tk-foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 18px; gap: 12px; flex-wrap: wrap; }
.count { font-size: 40px; font-weight: 800; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.kv { text-align: right; }
.kv b { display: block; font-size: 22px; font-family: "Fraunces", serif; }
.kv span { font-size: 12px; color: var(--dim); font-weight: 600; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 10px 0 70px; }
.stat { background: rgba(255, 249, 238, .74); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; }
.stat b { display: block; font-family: "Fraunces", serif; font-size: 26px; font-weight: 800; letter-spacing: -.01em; overflow-wrap: anywhere; }
.stat span { font-size: 12px; color: var(--dim); font-weight: 600; }

/* sections */
section { padding: 26px 0 64px; }
h2 { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.02; letter-spacing: -.025em; margin: 10px 0 26px; font-weight: 800; }
h2 em { color: var(--violet); }
h3 { font-size: 24px; margin: 0 0 8px; font-weight: 700; }
.kicker { color: var(--violet); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card { background: var(--ivory); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.card p { color: var(--dim); margin: 0; }
.num { font-family: "Fraunces", serif; font-weight: 800; font-size: 46px; color: var(--violet); line-height: 1; }
.split { display: flex; height: 54px; border-radius: 14px; overflow: hidden; margin: 18px 0 10px; font-weight: 800; }
.split div { display: flex; align-items: center; padding: 0 16px; white-space: nowrap; }
ul.clean { list-style: none; padding: 0; margin: 0; }
ul.clean li { padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--dim); }
ul.clean li:last-child { border-bottom: 0; }
ul.clean li b { color: var(--ink); }
.yes li::before { content: "✓  "; color: #2bb673; font-weight: 800; }
.no li::before { content: "✕  "; color: var(--tomato-lo); font-weight: 800; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
th { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }

/* recent rounds */
.rounds { display: grid; gap: 10px; }
.rrow { display: grid; grid-template-columns: 84px 1fr 140px 1.2fr; gap: 14px; align-items: center; background: var(--ivory); border-radius: 16px; padding: 14px 18px; border: 1px solid var(--line); }
.rrow .rn { font-family: "Fraunces", serif; font-weight: 800; font-size: 20px; }
.rrow .ra { font-family: "Fraunces", serif; font-style: italic; font-size: 20px; font-weight: 700; color: var(--violet); }
.rrow .rq { font-size: 13px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rrow .rw { font-size: 13px; color: var(--dim); }
.rrow .rw a { font-weight: 700; }
.top { background: var(--lime); color: var(--ink); border-radius: 6px; padding: 1px 6px; font-weight: 800; font-size: 11px; margin-right: 4px; }
.empty { color: var(--faint); padding: 18px; text-align: center; border: 1.5px dashed var(--line); border-radius: 16px; }

/* agent box */
.prompt { position: relative; background: var(--ink); color: var(--ivory); border-radius: var(--radius); padding: 26px 28px; font-size: 18px; line-height: 1.55; }
.prompt code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 16px; color: var(--lime); }
.copy { position: absolute; top: 16px; right: 16px; background: var(--lime); color: var(--ink); border: 0; border-radius: 10px; padding: 8px 14px; font-weight: 800; cursor: pointer; font-family: inherit; }
.addr { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; overflow-wrap: anywhere; }

footer { border-top: 1px solid var(--line); padding: 30px 0 50px; color: var(--dim); font-size: 14px; }
footer p { margin: 6px 0; }

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid3, .grid2 { grid-template-columns: 1fr; }
  .rrow { grid-template-columns: 64px 1fr; }
  .rrow .rq, .rrow .rw { grid-column: 1 / -1; }
  /* narrow screens: keep only the whitepaper link in the top bar */
  nav a:not(.wp-link) { display: none; }
}
@media (max-width: 480px) {
  .grid2 > *, .grid3 > * { min-width: 0; }
  .split { font-size: 13px; }
  .split div { padding: 0 10px; }
  .bar { gap: 12px; }
  .mark { font-size: 21px; }
  nav { font-size: 14px; }
  .pill { padding: 6px 10px; font-size: 12px; }
  .ticket { grid-template-columns: 1fr 64px; }
  .ticket::before, .ticket::after { right: 52px; }
  .stub .q { font-size: 56px; }
  .riddle { font-size: 22px; }
  .letters span { width: 28px; height: 34px; font-size: 17px; }
}

@media (max-width: 380px) {
  .bar > .pill { display: none; }
}
