/* Gachysium: white ground, ink, one red accent. Zen Kaku Gothic New for headings, Inter for text (self-hosted, OFL). */
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url(../fonts/inter-400.woff) format('woff'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap; src: url(../fonts/inter-500.woff) format('woff'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url(../fonts/inter-600.woff) format('woff'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url(../fonts/inter-700.woff) format('woff'); }
@font-face { font-family: 'Zen Kaku Gothic New'; font-weight: 700; font-display: swap; src: url(../fonts/zen-700.woff) format('woff'); }
@font-face { font-family: 'Zen Kaku Gothic New'; font-weight: 900; font-display: swap; src: url(../fonts/zen-900.woff) format('woff'); }

:root {
  --ink: #16161A; --paper: #FFFFFF; --soft: #F4F4F2; --line: #E6E4DF; --line2: #D6D3CC; --mute: #5F5E66; --body: #4A4950;
  --red: #D23A22; --red-text: #B8321C; --green: #1F7A4D; --amber: #8A5A00;
  --head: 'Zen Kaku Gothic New', Inter, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 12px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, system-ui, sans-serif; line-height: 1.5; -webkit-text-size-adjust: 100%; }
a { color: var(--red-text); } a:hover { color: #8E2513; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { margin: 0; }
h1, h2 { font-family: var(--head); font-weight: 900; }
[hidden] { display: none !important; }

/* header */
header.top { border-bottom: 1px solid var(--line); background: var(--paper); }
header.top .wrap { padding-top: 16px; padding-bottom: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand b { font-family: var(--head); font-weight: 900; font-size: 22px; letter-spacing: .02em; }
nav.main { display: flex; flex-wrap: wrap; gap: 4px 24px; flex: 1 1 auto; font-size: 15px; font-weight: 500; }
nav.main a { color: var(--ink); text-decoration: none; padding: 10px 0; }
nav.main a:hover { color: var(--red-text); }
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 999px; font: 600 15px Inter, sans-serif; text-decoration: none; cursor: pointer; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); }
.btn:hover { color: var(--ink); background: var(--soft); }
.btn.solid { background: var(--ink); color: #fff; border-color: var(--ink); } .btn.solid:hover { background: #2c2c33; color: #fff; }
.btn.red { background: var(--red); border-color: var(--red); color: #fff; } .btn.red:hover { background: #b5301b; color: #fff; }
.btn.big { min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn.quiet { border-color: var(--line2); }
.btn[disabled] { opacity: .55; cursor: default; }

/* hero */
.hero { padding: 72px 24px 56px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hero .lead { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.kicker { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--red-text); }
.hero h1 { font-size: clamp(38px, 7vw, 64px); line-height: 1.04; letter-spacing: -.01em; }
.hero p.sub { margin: 0; font-size: 19px; line-height: 1.55; color: var(--body); max-width: 560px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }
.clocks { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.clock { border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 6px; border: 1.5px solid var(--ink); }
.clock.dark { background: var(--ink); color: #fff; }
.clock .lbl { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.clock.dark .lbl, .clock.dark .note { color: #C9C7C2; }
.clock .time { font-family: var(--head); font-weight: 900; font-size: clamp(36px, 9vw, 48px); font-variant-numeric: tabular-nums; }
.clock .note { font-size: 15px; color: var(--body); }

/* wallet + banner */
.mine { padding: 0 24px 64px; display: flex; flex-direction: column; gap: 16px; }
.wallet { background: var(--soft); border-radius: 20px; padding: 24px; display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; }
.stat { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stat .k { font-size: 13px; color: var(--mute); }
.stat .v { font-weight: 700; font-size: 22px; overflow-wrap: anywhere; }
.stat .v.mute { color: var(--mute); } .stat .v.good { color: var(--green); }
.wallet .fine { margin: 0; flex: 1 1 100%; }
.linkform { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.linkform input { flex: 1 1 220px; min-width: 0; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--line2); border-radius: 12px; font: 15px ui-monospace, monospace; background: #fff; color: var(--ink); }
.msg { margin: 0; font-size: 14px; color: var(--body); flex: 1 1 100%; } .msg.bad { color: var(--red-text); font-weight: 600; }
.win { border: 2px solid var(--red); border-radius: 20px; padding: 24px; display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; }
.win .art { width: 72px; flex: none; }
.win .what { flex: 999 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.win .what .t { font-family: var(--head); font-weight: 700; font-size: 26px; overflow-wrap: anywhere; }
.win .what p { margin: 0; font-size: 15px; color: var(--body); }
.win .act { display: flex; flex-direction: column; gap: 8px; flex: 1 1 280px; max-width: 420px; }

/* card slab */
.slab { border: 2px solid #CFCBC3; border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 8px; background: #FAFAF8; }
.slab .label { display: flex; justify-content: space-between; align-items: center; background: var(--ink); color: #fff; border-radius: 4px; padding: 4px 8px; font-size: 11px; font-weight: 600; }
.slab .label b { font-size: 15px; font-weight: 700; }
.slab .img { aspect-ratio: 5 / 7; border-radius: 4px; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--mute); background: repeating-linear-gradient(135deg, #EDEBE6 0 10px, #E2DFD8 10px 20px); }
.slab .img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* sections */
.group + .group { margin-top: 36px; }
.group h3 { font-size: 20px; font-weight: 700; margin-bottom: 14px; } .group h3 small { font-size: 15px; font-weight: 500; color: var(--body); }
section.band { background: var(--soft); padding: 64px 0; }
section.plain { padding: 72px 0; }
.sechead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 28px; }
.sechead h2 { font-size: clamp(30px, 5vw, 40px); }
.sechead span { font-size: 15px; color: var(--body); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.card { background: #fff; border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.card .nm { font-weight: 600; font-size: 15px; overflow-wrap: anywhere; display: block; }
.card .val { font-size: 14px; color: var(--body); display: block; }
.pill { align-self: start; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1.5px solid var(--ink); }
.pill.dark { background: var(--ink); color: #fff; }
.empty { margin: 0; padding: 8px 0; font-size: 16px; color: var(--body); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.step { border-top: 3px solid var(--ink); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.step .n { font-family: var(--head); font-weight: 900; font-size: 44px; color: var(--red); }
.step h3 { font-size: 20px; font-weight: 700; }
.step p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--body); }

/* draws table */
.tablewrap { overflow-x: auto; background: #fff; border-radius: 16px; }
table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 15px; }
th { text-align: left; color: var(--mute); font-size: 13px; font-weight: 600; padding: 16px 12px; }
th:first-child, td:first-child { padding-left: 20px; } th:last-child, td:last-child { padding-right: 20px; }
td { padding: 16px 12px; border-top: 1px solid #EAE8E3; vertical-align: top; }
td small { font-size: 13px; color: var(--mute); }
.mono { font-family: ui-monospace, monospace; font-size: 14px; }
.st { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.st.ok { color: var(--green); } .st.wait { color: var(--amber); } .st.paid { color: var(--body); }
.st svg { flex: none; }
.proof { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 14px; }
.vres { font-size: 13px; margin-top: 6px; } .vres.ok { color: var(--green); font-weight: 600; } .vres.bad { color: var(--red-text); font-weight: 600; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--red-text); text-decoration: underline; cursor: pointer; }
.fine { font-size: 14px; color: var(--mute); }
.more { margin-top: 16px; }

/* binder */
.binder { display: flex; flex-wrap: wrap; gap: 40px 48px; align-items: flex-start; }
.binder .copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.binder .copy h2 { font-size: clamp(30px, 5vw, 40px); }
.binder .copy p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--body); }
.binder .copy p.big { font-size: 18px; }
.tokens { flex: 2 1 420px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.token { border-radius: 22px; background: var(--ink); color: #fff; padding: 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.token .top { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #C9C7C2; }
.token .img { aspect-ratio: 5 / 7; border-radius: 12px; overflow: hidden; background: repeating-linear-gradient(135deg, #2A2A30 0 10px, #232328 10px 20px); border: 1.5px solid #3A3A42; display: flex; align-items: center; justify-content: center; font-size: 13px; color: #C9C7C2; }
.token .img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.token .nm { font-family: var(--head); font-weight: 700; font-size: 20px; overflow-wrap: anywhere; display: block; }
.token .sub { font-size: 13px; color: #C9C7C2; display: block; }
.token .stt { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.token a { color: #fff; }

footer.foot { background: var(--ink); color: #C9C7C2; }
footer.foot .wrap { padding-top: 48px; padding-bottom: 48px; display: flex; flex-wrap: wrap; gap: 24px 64px; font-size: 14px; line-height: 1.7; }
footer.foot .col { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; overflow-wrap: anywhere; }
footer.foot b { color: #fff; font-weight: 600; }
footer.foot .logo { font-family: var(--head); font-weight: 900; font-size: 20px; color: #fff; }
footer.foot a { color: #fff; }
.offline { background: #FFF4DB; color: #5a3c00; padding: 10px 24px; font-size: 14px; text-align: center; }

@media (max-width: 640px) {
  .hero { padding: 40px 20px 40px; gap: 32px; } .wrap { padding: 0 20px; } .mine { padding: 0 20px 48px; }
  .hero p.sub { font-size: 17px; } section.band { padding: 48px 0; } section.plain { padding: 52px 0; }
  header.top .wrap { padding-top: 12px; padding-bottom: 8px; } nav.main { order: 3; flex: 1 1 100%; gap: 0 20px; }
  .btn.big { width: 100%; } .win, .wallet { padding: 18px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .card { padding: 10px; }
  /* the draws table becomes a stack of cards on a phone */
  .tablewrap { background: none; overflow: visible; }
  table, thead, tbody, tr, td { display: block; min-width: 0; width: 100%; }
  thead { position: absolute; left: -9999px; }
  tr { background: #fff; border-radius: 14px; margin-bottom: 12px; padding: 6px 0; }
  td, td:first-child, td:last-child { border: 0; padding: 8px 16px; }
  td[data-l]::before { content: attr(data-l); display: block; font-size: 12px; color: var(--mute); font-weight: 600; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; }
.qa { background: #fff; border-radius: 14px; padding: 0 20px; }
.qa summary { cursor: pointer; list-style: none; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 600; font-size: 17px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font: 700 22px/1 'Zen Kaku Gothic New', Inter, sans-serif; color: var(--red, #D23A22); flex: none; }
.qa summary::after { display: inline-block; width: 22px; text-align: center; transform-origin: 50% 50%; transition: transform .15s ease; }
.qa[open] summary::after { transform: rotate(45deg); }
@media (prefers-reduced-motion: reduce) { .qa summary::after { transition: none; } }
.qa summary:focus-visible { outline: 2px solid #16161A; outline-offset: 4px; border-radius: 6px; }
.qa p { margin: 0 0 18px; color: var(--body); line-height: 1.6; max-width: 72ch; }
