/* hadou arena: night stage, one orange accent */

@font-face { font-family: "Geist"; src: url("geist.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("geist-mono.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --bg: #0c0d13; --panel: #14161f; --panel2: #1b1e2a; --ink: #f4f1ea; --ink2: #b9b7c4; --muted: #7c7a8e; --faint: #3c3f50;
  --line: #262938; --line2: #343849;
  --accent: #ff6a1a; --accent2: #ffb03a; --accent-soft: rgba(255, 106, 26, .14);
  --blue: #5fc8ff; --ok: #3ddc84; --bad: #ff4d6a;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
  --r: 20px; --rs: 12px; --maxw: 1120px; --gutter: clamp(16px, 3vw, 28px);
  --ja-accent: var(--accent); --ja-accent-ink: #160b04; --ja-ink: var(--ink); --ja-bg: var(--panel2); --ja-line: var(--line2);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: radial-gradient(1200px 700px at 80% -10%, rgba(255, 106, 26, .16), transparent 60%), radial-gradient(900px 600px at -10% 10%, rgba(95, 200, 255, .08), transparent 60%), var(--bg); color: var(--ink); font-family: var(--sans); line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, p { margin: 0; }
.muted { color: var(--muted); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(61, 220, 132, .16); }

/* header */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 20px; max-width: var(--maxw); margin: 0 auto; padding: 14px var(--gutter); background: linear-gradient(var(--bg) 60%, transparent); }
.wordmark { font-weight: 800; font-size: 20px; letter-spacing: -.04em; text-decoration: none; }
.wordmark b { color: var(--accent); }
.brand { text-decoration: none; }
.menu { display: flex; gap: 18px; font-size: 14px; color: var(--ink2); }
.menu a { text-decoration: none; }
.menu a:hover { color: var(--ink); }
.right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 10px; border: 1px solid var(--line2); border-radius: 999px; font-family: var(--mono); font-size: 13px; color: var(--ink2); }
.mark { width: 18px; height: 18px; }

/* hero */
.hero { max-width: var(--maxw); margin: 0 auto; padding: 18px var(--gutter) 26px; display: grid; grid-template-columns: 1.3fr .7fr; gap: 36px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); }
.hero h1 { margin-top: 12px; font-size: clamp(36px, 4.6vw, 60px); line-height: .98; letter-spacing: -.05em; font-weight: 800; }
.hero h1 .hot { display: block; background: linear-gradient(90deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-top: 14px; max-width: 560px; font-size: 17px; color: var(--ink2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--accent); color: #160b04; font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; box-shadow: 0 10px 30px rgba(255, 106, 26, .35); transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 36px rgba(255, 106, 26, .45); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line2); box-shadow: none; }
.btn.ghost:hover { border-color: var(--accent); }
.hero-art { margin: 0; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }

/* arena */
.arena { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.hud { padding: 16px 18px 12px; background: var(--panel); border: 1px solid var(--line); border-bottom: 0; border-radius: var(--r) var(--r) 0 0; }
.boss-line { display: flex; align-items: baseline; gap: 12px; }
.boss-name { font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.boss-n { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.state { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--ink2); }
.state.off .dot { background: var(--muted); box-shadow: none; }
.hp { position: relative; height: 16px; margin-top: 10px; border-radius: 999px; background: #0a0b10; border: 1px solid var(--line2); overflow: hidden; }
.hp i { position: absolute; inset: 0 auto 0 0; width: 100%; border-radius: 999px; transform-origin: left center; }
.hp #hp-fill { z-index: 2; background: linear-gradient(90deg, #ff3d5e, var(--accent) 60%, var(--accent2)); transition: width .25s ease; }
.hp .ghost { z-index: 1; background: rgba(255, 255, 255, .35); transition: width .9s ease .25s; }
.hp-text { display: flex; justify-content: space-between; margin-top: 8px; font-family: var(--mono); font-size: 12px; color: var(--ink2); }
.stage { position: relative; background: #07080c; border: 1px solid var(--line); border-top: 0; border-bottom: 0; overflow: hidden; touch-action: none; }
.stage canvas { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.overlay { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; background: radial-gradient(closest-side, rgba(12, 13, 19, .55), rgba(12, 13, 19, .85)); }
.overlay[hidden], .start[hidden] { display: none; }
.ko { font-size: clamp(56px, 12vw, 140px); font-weight: 900; letter-spacing: -.06em; line-height: .9; background: linear-gradient(180deg, #fff, var(--accent2) 45%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ko-sub { margin-top: 10px; font-family: var(--mono); font-size: 13px; color: var(--ink2); }
.ko-top { margin: 18px auto 0; padding: 0; list-style: none; display: grid; gap: 6px; min-width: 240px; }
.ko-top li { display: flex; justify-content: space-between; gap: 18px; padding: 8px 14px; border-radius: 12px; background: rgba(255, 255, 255, .06); font-size: 14px; }
.ko-top li b { color: var(--accent2); }
.start { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; background: radial-gradient(closest-side, rgba(12, 13, 19, .35), rgba(12, 13, 19, .8)); }
.start-title { font-size: clamp(28px, 5vw, 44px); font-weight: 800; letter-spacing: -.04em; }
.name { display: grid; gap: 6px; font-family: var(--mono); font-size: 12px; color: var(--ink2); }
.name input { width: 240px; height: 46px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(10, 11, 16, .8); color: var(--ink); font: inherit; font-family: var(--sans); font-size: 16px; text-align: center; outline: none; }
.name input:focus { border-color: var(--accent); }
.keys { font-family: var(--mono); font-size: 12px; color: var(--ink2); }
kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin: 0 3px; padding: 0 5px; border-radius: 6px; border: 1px solid var(--line2); background: var(--panel2); font-family: var(--mono); font-size: 11px; color: var(--ink); }
.pad { display: none; justify-content: space-between; gap: 12px; padding: 12px; background: var(--panel); border: 1px solid var(--line); border-top: 0; border-bottom: 0; }
.pad button { height: 56px; border-radius: 16px; border: 1px solid var(--line2); background: var(--panel2); color: var(--ink); font: inherit; font-weight: 700; font-size: 14px; touch-action: none; user-select: none; -webkit-user-select: none; }
.pad button.on { background: var(--accent-soft); border-color: var(--accent); }
.pad button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pad-move { display: grid; grid-template-columns: repeat(3, 56px); gap: 8px; }
.pad-hit { display: grid; grid-template-columns: repeat(3, minmax(64px, 1fr)); gap: 8px; flex: 1; max-width: 300px; }
.pad .fire { background: var(--accent); color: #160b04; border-color: var(--accent); }
@media (pointer: coarse) { .pad { display: flex; } .keys { display: none; } }
.below { padding: 14px 18px 18px; background: var(--panel); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r) var(--r); }
.you { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.you div { display: grid; }
.you .k { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.you b { font-size: 22px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.holder-note { margin-left: auto; font-size: 14px; color: var(--accent2); }

/* boards */
.boards { max-width: var(--maxw); margin: 28px auto 0; padding: 0 var(--gutter); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel { padding: 18px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; }
.panel h2 { font-size: 14px; font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); font-weight: 500; }
.feed, .top-list { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.feed li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 10px; background: var(--panel2); font-size: 14px; color: var(--ink2); min-width: 0; }
.feed li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed li b { color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.feed li.buy b { color: var(--ok); }
.feed li.sell b { color: var(--bad); }
.top-list { counter-reset: n; }
.top-list li { counter-increment: n; display: flex; gap: 12px; padding: 8px 12px; border-radius: 10px; background: var(--panel2); font-size: 14px; }
.top-list li::before { content: counter(n); width: 18px; color: var(--accent); font-family: var(--mono); }
.top-list li b { margin-left: auto; font-variant-numeric: tabular-nums; }
.top-list li.muted::before, .feed li.muted { content: none; }

/* how */
.how { max-width: var(--maxw); margin: 56px auto 0; padding: 0 var(--gutter); display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: center; }
.how-art { margin: 0; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.how-art img { width: 100%; height: 100%; object-fit: cover; }
.how h2 { margin-top: 10px; font-size: clamp(28px, 4vw, 40px); letter-spacing: -.04em; line-height: 1.05; }
.rules { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; color: var(--ink2); }
.rules b { color: var(--ink); }

/* log + footer */
.log { max-width: var(--maxw); margin: 56px auto 0; padding: 0 var(--gutter); }
.log h2 { font-size: 22px; letter-spacing: -.03em; }
#changes { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
#changes li { display: flex; gap: 14px; padding: 12px 14px; border-radius: var(--rs); background: var(--panel); border: 1px solid var(--line); color: var(--ink2); font-size: 14px; }
.when { flex: none; min-width: 64px; font-family: var(--mono); font-size: 12px; color: var(--accent); }
.foot { max-width: var(--maxw); margin: 56px auto 0; padding: 24px var(--gutter) 48px; display: grid; gap: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.ca { padding: 8px 12px; border: 1px solid var(--line2); border-radius: 999px; background: transparent; color: var(--ink2); font: inherit; cursor: pointer; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.ca code { font-family: var(--mono); font-size: 12px; }

@media (max-width: 860px) {
  .menu { display: none; }
  .hero { grid-template-columns: 1fr; gap: 24px; padding-top: 12px; }
  .boards { grid-template-columns: 1fr; }
  .how { grid-template-columns: 1fr; }
  .how-art { max-width: 320px; }
  .holder-note { margin-left: 0; width: 100%; }
}
@media (max-width: 420px) {
  .chip { display: none; }
  .pad-move { grid-template-columns: repeat(3, 48px); }
  .pad button { height: 52px; }
}
