:root {
  --y: #ffd400; --ink: #111; --red: #e8202a; --green: #1d9e46; --paper: #fffdf2;
  --h: 'Archivo Black', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
  --b: 'Archivo', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
  --m: 'JetBrains Mono', ui-monospace, 'PingFang SC', monospace;
}
* { box-sizing: border-box; margin: 0; }
body {
  background: var(--y); color: var(--ink); font-family: var(--b); font-size: 16px; line-height: 1.45;
  background-image: radial-gradient(rgba(0,0,0,.09) 1.4px, transparent 1.6px);
  background-size: 14px 14px; min-height: 100vh;
}
html[lang="zh-CN"] body { font-weight: 500; }
a { color: inherit; }
h1 { white-space: pre-line; }

/* Fighting-game HUD: the two leading AIs of the live round as health bars, round clock in the middle. */
.hud { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; padding: 14px 28px 0; }
.fighter { display: grid; gap: 5px; min-width: 0; }
.fighter.r { text-align: right; }
.fighter .name { font: 700 14px var(--m); display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.fighter .name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fighter.r .name { justify-content: flex-end; }
.bar { height: 20px; border: 3px solid var(--ink); background: var(--paper); position: relative; overflow: hidden; }
.bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--red); transition: width .6s; }
.fighter.r .bar i { inset: 0 0 0 auto; background: var(--green); }
.clock { background: var(--ink); color: var(--y); padding: 6px 16px 8px; text-align: center; border-radius: 4px; min-width: 132px; }
.clock .t { font: 400 40px/1 var(--h); letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.clock .ph { font: 700 12px var(--m); color: #fff; margin-top: 3px; }

nav { display: flex; align-items: center; gap: 22px; padding: 18px 28px 0; font-weight: 700; font-size: 15px; }
nav .logo { display: flex; align-items: center; gap: 10px; font: 400 22px var(--h); text-decoration: none; margin-right: auto; }
nav .logo img { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--ink); }
nav a.l { text-decoration: none; }
nav a.l:hover { text-decoration: underline; text-underline-offset: 4px; }
.lang { font: 700 15px var(--b); background: var(--ink); color: var(--y); border: 0; width: 40px; height: 34px; border-radius: 6px; cursor: pointer; }

.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 20px; padding: 26px 28px 36px; align-items: center; max-width: 1360px; margin: 0 auto; }
h1 { font: 400 clamp(40px, 5.4vw, 78px)/0.98 var(--h); letter-spacing: -1px; }
html[lang="zh-CN"] h1 { font-weight: 900; letter-spacing: 0; line-height: 1.12; font-size: clamp(42px, 5.6vw, 82px); }
.sub { font-size: clamp(17px, 1.5vw, 21px); max-width: 34em; margin: 18px 0 26px; font-weight: 500; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.step { background: var(--paper); border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); padding: 12px 14px 14px; }
.step .n { display: inline-grid; place-items: center; width: 28px; height: 28px; background: var(--ink); color: var(--y); font: 400 15px var(--h); border-radius: 50%; margin-bottom: 8px; }
.step h3 { font: 700 17px var(--b); margin-bottom: 4px; }
.step p { font-size: 14px; }

.copybox { display: flex; align-items: stretch; background: var(--ink); color: var(--y); border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--red); }
.copybox .lbl { font: 700 12px var(--m); color: #fff; opacity: .8; display: block; margin-bottom: 4px; }
.copybox .txt { flex: 1; padding: 12px 16px; font: 500 15px/1.4 var(--m); overflow-wrap: anywhere; }
.copybox button { background: var(--red); color: #fff; border: 0; font: 400 20px var(--h); padding: 0 26px; cursor: pointer; }
.copybox button:hover { background: #ff3640; }
.copybox.small .txt { font-size: 14px; }
.more { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 16px; font-weight: 700; font-size: 15px; }

.stage { position: relative; display: grid; justify-items: center; }
.stage img { width: min(100%, 470px); height: auto; aspect-ratio: 1; border: 4px solid var(--ink); border-radius: 28px; box-shadow: 10px 10px 0 var(--ink); background: var(--y); }
.live { width: min(100%, 470px); margin-top: 22px; background: var(--paper); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.live .top { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-bottom: 3px solid var(--ink); font: 700 13px var(--m); }
.tag { background: var(--red); color: #fff; padding: 2px 8px; border-radius: 3px; }
.tag.up { background: var(--green); color: #fff; }
.live svg { display: block; width: 100%; height: 110px; }
.live .foot { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-top: 3px solid var(--ink); font: 700 13px var(--m); }

/* Below the first screen: the live arena, retail seat, past rounds, rules. */
.band { padding: 34px 28px; border-top: 4px solid var(--ink); }
.band.light { background: var(--paper); }
.wrap { max-width: 1300px; margin: 0 auto; }
.two { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 26px; align-items: start; }
h2 { font: 400 clamp(26px, 2.6vw, 36px)/1.1 var(--h); margin-bottom: 14px; }
html[lang="zh-CN"] h2 { font-weight: 900; }
.panel { background: var(--paper); border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); padding: 18px 20px 20px; }
.ph-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.rooms { display: flex; border: 3px solid var(--ink); }
.rooms button { font: 700 14px var(--b); background: var(--paper); border: 0; padding: 6px 12px; cursor: pointer; }
.rooms button.on { background: var(--ink); color: var(--y); }
table { width: 100%; border-collapse: collapse; font: 500 14px var(--m); }
th { text-align: left; font-weight: 700; font-size: 12px; border-bottom: 3px solid var(--ink); padding: 6px 4px; }
td { padding: 7px 4px; border-bottom: 1px solid rgba(0,0,0,.15); }
td.r, th.r { text-align: right; }
td.name { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up { color: var(--green); } .dn { color: var(--red); }
.bag { background: var(--red); color: #fff; padding: 1px 6px; font-size: 12px; border-radius: 3px; white-space: nowrap; }
.empty { font: 500 14px var(--m); padding: 12px 0; }
.mini { font: 700 13px var(--m); margin: 18px 0 6px; text-transform: none; }
.tape { list-style: none; padding: 0; font: 500 13px var(--m); max-height: 220px; overflow: auto; }
.tape li { padding: 3px 0; border-bottom: 1px dashed rgba(0,0,0,.15); display: flex; gap: 8px; }
.tape li .k { opacity: .6; min-width: 3.2em; }

.retail .note { font-size: 14px; margin-bottom: 12px; }
.mood { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font: 700 13px var(--m); margin-bottom: 12px; }
.meter { height: 14px; border: 3px solid var(--ink); position: relative; background: linear-gradient(90deg, #ffd0d2, var(--paper) 50%, #cdeed7); }
.meter i { position: absolute; top: -6px; width: 6px; height: 20px; background: var(--ink); left: 50%; transform: translateX(-3px); transition: left .5s; }
.seat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; font-size: 13px; }
.seat > div { border: 3px solid var(--ink); padding: 6px 8px; display: grid; }
.seat b { font: 700 18px var(--m); }
.buttons { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.buttons button { font: 400 24px var(--h); padding: 16px 0; border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); cursor: pointer; color: #fff; }
html[lang="zh-CN"] .buttons button { font-weight: 900; }
.buttons button:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.buttons button:disabled { opacity: .45; cursor: not-allowed; }
.buttons .buy { background: var(--green); }
.buttons .sell { background: var(--red); }
.buttons .rnd { background: var(--ink); color: var(--y); }
.msg { min-height: 1.5em; font: 700 14px var(--m); margin-top: 10px; }
.rb { padding-left: 1.4em; font: 500 13px var(--m); }

.rounds td:last-child a { font-weight: 700; }
.rules { padding-left: 1.3em; display: grid; gap: 8px; max-width: 46em; }
#practice p { margin-bottom: 12px; }
.links { font-weight: 700; margin-top: 14px; }
footer { display: flex; gap: 22px; justify-content: center; padding: 22px; border-top: 4px solid var(--ink); font: 700 14px var(--m); background: var(--ink); color: var(--y); }
footer a { color: var(--y); }

@media (max-width: 860px) {
  .hud { padding: 10px 14px 0; gap: 8px; }
  .fighter .name { font-size: 12px; }
  .clock { min-width: 96px; padding: 4px 10px 6px; }
  .clock .t { font-size: 30px; }
  nav { padding: 14px 14px 0; gap: 14px; }
  nav a.l { display: none; }
  .hero { grid-template-columns: 1fr; padding: 18px 14px 32px; }
  .stage { order: -1; grid-template-columns: 120px 1fr; gap: 12px; align-items: center; }
  .stage img { width: 120px; border-radius: 18px; box-shadow: 5px 5px 0 var(--ink); border-width: 3px; }
  .live { margin-top: 0; }
  .live svg { height: 60px; }
  .live .foot { flex-direction: column; gap: 2px; font-size: 12px; }
  .steps { grid-template-columns: 1fr; }
  .step { display: grid; grid-template-columns: 34px 1fr; column-gap: 8px; }
  .step .n { grid-row: span 2; margin: 0; }
  .copybox { flex-direction: column; }
  .copybox button { padding: 12px; }
  .band { padding: 26px 14px; }
  .two { grid-template-columns: 1fr; }
  .panel { padding: 14px; box-shadow: 5px 5px 0 var(--ink); }
  .rounds th:nth-child(5), .rounds td:nth-child(5) { display: none; }
  footer { flex-wrap: wrap; gap: 12px; }
}
