:root {
  --bg: #0b0b0b; --page-bg: #0b0b0b; --panel: #141414; --panel-2: #1a1a1a; --line: #262626;
  --ink: #ffffff; --muted: #8a8a8a; --faint: #5a5a5a;
  --hp: #5ee6a0; --heat: #ffb020; --danger: #d7263d;
  --font: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif; --mono: 'IBM Plex Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--font); padding: 0 16px; }
[hidden] { display: none !important; }
a { color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; }
.eyebrow { font: 500 11.5px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }


.hero { padding: 48px 0 28px; display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.hero h1 { margin: 0; font-size: clamp(40px, 7vw, 72px); letter-spacing: .08em; font-weight: 700; line-height: 1; }
.lede { margin: 0; color: var(--muted); font-size: 17px; max-width: 52ch; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
/* the menu: three dormant choices. Nothing lights up until you pick. */
.menu { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 4px; }
.opt { appearance: none; display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; cursor: pointer; text-decoration: none; transition: border-color .2s, background .2s, transform .2s; }
.opt b { font-size: 15px; letter-spacing: .02em; }
.opt span { color: var(--muted); font: 500 11px var(--mono); letter-spacing: .06em; }
.opt:hover { border-color: #555; background: var(--panel); transform: translateY(-1px); }
.opt:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.opt.on { border-color: var(--heat); animation: led-tint 2.4s ease-in-out infinite; }
@keyframes led-tint { 0%, 100% { background: rgba(255,176,32,.06); box-shadow: 0 0 0 0 rgba(255,176,32,0); } 50% { background: rgba(255,176,32,.14); box-shadow: 0 0 18px -6px rgba(255,176,32,.5); } }

.link { appearance: none; background: none; border: 0; color: var(--muted); font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; padding: 0; }
.link:hover { color: var(--ink); }
.btn { appearance: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: 700 14px var(--font); letter-spacing: .03em; text-decoration: none; cursor: pointer; }
.btn.go { background: var(--ink); color: #000; border-color: var(--ink); }
.btn:hover { filter: brightness(1.1); }
.btn:disabled { opacity: .4; cursor: default; filter: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 4px 0 0; list-style: none; }
.chips li { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-radius: 999px; border: 1px solid var(--line); }

.arena-wrap { position: relative; margin-top: 12px; border: 1px solid var(--line); border-radius: 18px; background: radial-gradient(ellipse at 50% 80%, #171717 0%, #0f0f0f 60%); overflow: hidden; overflow: clip; } /* clip: never a scroll box, so focus can't slide it sideways */
/* closed floor: everything dim until an order comes in, then the lights come up */
.arena-wrap.closed .arena, .arena-wrap.closed .console { opacity: .16; filter: saturate(0); pointer-events: none; }
.quiet { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; z-index: 3; pointer-events: none; }
.quiet p { color: var(--muted); margin: 0; font: 500 12px var(--mono); letter-spacing: .14em; }

/* power: wires along the top fill with current, the fans spin up, the LED comes on. Off while closed. */
.rig { position: absolute; left: 0; right: 0; top: 0; height: 44px; z-index: 1; pointer-events: none; }
.rig .trace path { stroke: #262626; stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 0; vector-effect: non-scaling-stroke; }
.rig .node circle { fill: #262626; }
.arena-wrap:not(.closed) .rig .trace path { stroke: var(--heat); stroke-dashoffset: 1; animation: power .9s ease-out forwards, hum 3.2s ease-in-out .9s infinite; }
.arena-wrap:not(.closed) .rig .trace path:nth-child(2) { animation-delay: .1s, 1.3s; }
.arena-wrap:not(.closed) .rig .trace path:nth-child(3) { animation-delay: .6s, 1.5s; }
.arena-wrap:not(.closed) .rig .trace path:nth-child(4) { animation-delay: .7s, 1.9s; }
.arena-wrap:not(.closed) .rig .node circle { fill: var(--heat); animation: hum 3.2s ease-in-out 1s infinite; }
@keyframes power { to { stroke-dashoffset: 0; } }
@keyframes hum { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.arena { position: relative; }
.fan { position: absolute; bottom: 14px; width: 34px; height: 34px; z-index: 0; opacity: .5; }
.fan-l { left: 14px; } .fan-r { right: 14px; }
.fan .ring { fill: none; stroke: #2a2a2a; stroke-width: 2; }
.fan .blades { fill: #3a3a3a; transform-origin: 0 0; }
.fan .hub { fill: #555; }
.arena-wrap:not(.closed) .fan .blades { fill: #6a6a6a; animation: fan-up 1.2s ease-in both, fan .5s linear 1.2s infinite; }
.arena-wrap:not(.closed) .fan .hub { fill: var(--heat); }
@keyframes fan-up { from { transform: rotate(0); } to { transform: rotate(540deg); } }
@keyframes fan { to { transform: rotate(360deg); } }
.mode-tag .led { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #333; margin-right: 8px; vertical-align: middle; }
.arena-wrap:not(.closed) .mode-tag .led { background: var(--heat); box-shadow: 0 0 6px var(--heat); animation: hum 2s ease-in-out infinite; }
.arena-wrap.lights .arena, .arena-wrap.lights .console { animation: lights 1s ease both; }
@keyframes lights { from { opacity: .16; filter: saturate(0); } 60% { filter: saturate(0); } to { opacity: 1; filter: none; } }
.mode-tag { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); white-space: nowrap; display: inline-flex; align-items: center; font: 500 11px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(11,11,11,.8); z-index: 2; }
.arena { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: end; padding: 48px 20px 12px; }
.fighter { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fighter.right .nameplate, .fighter.right .bars { direction: rtl; }
.nameplate { display: flex; align-items: center; gap: 10px; }
.nameplate b { font-size: 16px; letter-spacing: .06em; }
.nameplate span { color: var(--muted); font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.bars { display: grid; gap: 6px; }
.bar { position: relative; height: 12px; background: #1e1e1e; border-radius: 6px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 100%; border-radius: 6px; transition: width .35s ease; }
.bar.hp i { background: var(--hp); }
.bar.heat i { background: var(--heat); width: 0; }
.bar.heat.over i { background: var(--danger); }
.bar .cap { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--ink); opacity: .6; left: 100%; }
.bar .val { direction: ltr; unicode-bidi: isolate; position: absolute; inset: 0; font: 500 9.5px/12px var(--mono); letter-spacing: .08em; text-align: center; color: #fff; text-shadow: 0 0 3px #000, 0 0 3px #000; }
.stage { position: relative; height: 150px; display: flex; align-items: flex-end; justify-content: center; }
.sprite { width: min(220px, 100%); transition: transform .18s ease; }
.sprite .bot-svg { width: 100%; height: auto; display: block; }
.bot-svg.flip { transform: scaleX(-1); }
.fighter.left .sprite.lunge { transform: translateX(28px); }
.fighter.right .sprite.lunge { transform: translateX(-28px); }
.sprite.hit { animation: shake .35s ease; }
.sprite.stall { animation: flicker .5s steps(2) 2; }
.sprite.guard .bot-svg { filter: drop-shadow(0 0 10px rgba(255,255,255,.6)); }
.sprite.hot .reactor-core { filter: drop-shadow(0 0 6px currentColor); }
.weapon-head { transform-box: fill-box; transform-origin: center; }
.sprite.spin .weapon-head { animation: spin .4s linear infinite; }
@keyframes shake { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-8px) rotate(-2deg); } 50% { transform: translateX(6px) rotate(1deg); } 80% { transform: translateX(-3px); } }
@keyframes flicker { 0% { opacity: 1; } 50% { opacity: .25; } 100% { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
.pop { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); font: 700 22px var(--font); pointer-events: none; opacity: 0; white-space: nowrap; }
.pop.show { animation: rise .9s ease forwards; }
.pop.miss { color: var(--muted); font-size: 16px; }
.pop.dmg { color: var(--ink); }
.pop.big { color: var(--heat); font-size: 28px; }
.pop.stall { color: var(--danger); }
@keyframes rise { 0% { opacity: 0; transform: translate(-50%, 10px); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -34px); } }
.vs { text-align: center; color: var(--faint); font: 700 14px var(--font); letter-spacing: .2em; padding-bottom: 60px; }
.vs .turn { margin-top: 6px; font: 500 10px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

.console { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; padding: 12px; border-top: 1px solid var(--line); background: rgba(0,0,0,.35); min-height: 190px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.panel.log:has(ol:empty) { visibility: hidden; }
.panel.log ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font: 500 12px/1.5 var(--mono); color: var(--muted); }
.panel.log li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.panel.log li.you { color: var(--ink); }
.panel.log li.you b { color: var(--hp); }
.panel.log li.foe b { color: var(--heat); }
.panel.log li.sys { color: var(--faint); }
.dhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
/* overrides: three pips, lit while unused */
.overrides { display: inline-flex; gap: 5px; }
.overrides i { width: 9px; height: 9px; border-radius: 50%; background: var(--heat); box-shadow: 0 0 6px rgba(255,176,32,.6); transition: background .3s, box-shadow .3s; }
.overrides i.used { background: #333; box-shadow: none; }
.proposal { margin: 10px 0 12px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.proposal .act { font-size: 28px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.proposal .why, .ov span { color: var(--muted); font: 500 12px var(--mono); letter-spacing: .02em; }
.risk { color: var(--danger); font-style: normal; display: block; margin-top: 2px; }
.proposal .risk { display: inline; margin: 0 0 0 6px; }
.choices { display: flex; gap: 10px; }
.choices .btn { flex: 1; justify-content: center; }
.ovgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.ov { appearance: none; background: var(--panel-2); border: 1px solid var(--line); color: var(--ink); border-radius: 10px; padding: 10px 8px; cursor: pointer; text-align: left; display: flex; flex-direction: column; gap: 3px; font: inherit; }
.ov:hover { border-color: #666; }
.ov:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ov b { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.ov span { font-size: 10.5px; }

.how { padding: 40px 0 10px; }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 12px; }
.cols h3 { margin: 0 0 6px; font-size: 16px; }
.cols p { margin: 0; color: var(--muted); font-size: 14.5px; }


footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 24px 0 36px; color: var(--faint); font: 500 12px/1.7 var(--mono); letter-spacing: .06em; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

@media (max-width: 820px) {
  .arena { grid-template-columns: 1fr 1fr; padding-top: 52px; }
  .mode-tag { font-size: 10px; letter-spacing: .12em; }
  .vs { grid-column: 1 / -1; order: -1; padding: 0 0 6px; }
  .stage { height: 120px; }
  .console { grid-template-columns: 1fr; }
  .ovgrid { grid-template-columns: repeat(2, 1fr); }
  .cols { grid-template-columns: 1fr; }
  .menu { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .sprite, .bar i { transition: none; }
  .sprite.hit, .sprite.stall, .sprite.spin .weapon-head, .pop.show, .in, .swap, .banner.go, .banner.go *, .arena-wrap.lights .arena, .arena-wrap.lights .console, .opt.on, .rig .trace path, .rig .node circle, .fan .blades, .mode-tag .led { animation: none !important; }
  .arena-wrap:not(.closed) .rig .trace path { stroke-dashoffset: 0; }
  .pop.show { opacity: 1; }
}

/* title: the pixel rose and the wordmark. The rose's petals bloom, fluff and fall; see logo.svg for the standalone. */
.hero .title { display: flex; align-items: center; gap: 18px; }
.hero .title .rose { height: clamp(56px, 8vw, 84px); width: auto; flex: none; overflow: visible; }

.rb-petal, .rb-head { transform-box: fill-box; transform-origin: center; }
.rb-head { animation: rb-sway 7s ease-in-out infinite; }
.rb-petal { animation: rb-petal 7s cubic-bezier(.4,0,.6,1) infinite both; }
.rb-p2 { animation-delay: .35s } .rb-p3 { animation-delay: .7s } .rb-p4 { animation-delay: 1.05s } .rb-p5 { animation-delay: 1.4s }
.rb-led { animation: rb-led 1.6s ease-in-out infinite; }
@keyframes rb-petal {
  0%, 6% { transform: scale(.55); opacity: 0 }
  14% { transform: scale(1.08); opacity: 1 }
  20%, 56% { transform: none; opacity: 1 }
  60% { transform: translateY(-.4px) rotate(-5deg); opacity: 1 }
  80% { transform: translateY(5.5px) rotate(34deg); opacity: 0 }
  100% { transform: translateY(5.5px); opacity: 0 }
}
@keyframes rb-sway { 0%, 100% { transform: rotate(0) } 35% { transform: rotate(-2.2deg) } 70% { transform: rotate(2.2deg) } }
@keyframes rb-led { 0%, 100% { opacity: .45 } 50% { opacity: 1 } }
@media (prefers-reduced-motion: reduce) { .rb-petal, .rb-head, .rb-led { animation: none } }

/* the 3D floor sits behind the fighters' stage row; the 2D sprites stay as the fallback */
.arena3d { position: absolute; left: 0; right: 0; bottom: 12px; height: 190px; pointer-events: none; z-index: 0; }
.arena3d canvas { width: 100%; height: 100%; display: block; }
.fighter { position: relative; z-index: 1; }
.pop { z-index: 2; text-shadow: 0 2px 12px rgba(0,0,0,.8); }
.arena.three .stage { height: 190px; }
.arena.three .sprite { visibility: hidden; }
.arena.three .vs { align-self: start; padding: 26px 0 0; }
@media (max-width: 820px) {
  .arena3d { height: 160px; }
  .arena.three .stage { height: 160px; }
  .arena.three .vs { padding: 0 0 6px; }
}

/* king of the hill */
.panel.hill { display: flex; flex-direction: column; gap: 6px; }
.panel.hill .king { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.panel.hill .crown { color: #ffc23d; font-size: 20px; text-shadow: 0 0 12px rgba(255,194,61,.6); }
.panel.hill .king b { font-size: 20px; letter-spacing: .06em; }
.panel.hill .heng { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.panel.hill dl { margin: 8px 0 0; display: grid; gap: 6px; }
.panel.hill dl div { display: flex; justify-content: space-between; gap: 10px; font: 500 12px var(--mono); }
.panel.hill dt { color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.panel.hill dd { margin: 0; color: var(--ink); text-align: right; }
.fighter.champ .fname::before { content: "♛ "; color: #ffc23d; }
.below { display: flex; justify-content: flex-end; padding: 8px 2px 0; }

/* ---------- who's acting, and who you are ---------- */
.nameplate b { transition: color .2s; }
.nameplate .feng:not(:empty) { color: #000; background: var(--hp); padding: 3px 6px; border-radius: 4px; font-weight: 700; letter-spacing: .14em; }
.fighter.right .nameplate .feng:not(:empty) { background: var(--heat); }
.fighter { --act: var(--hp); }
.fighter.right { --act: var(--heat); }
.fighter .nameplate { position: relative; padding-bottom: 6px; }
.fighter .nameplate::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--act); transform: scaleX(0); transition: transform .25s ease; }
.fighter.right .nameplate::after { transform-origin: right; }
.fighter.left .nameplate::after { transform-origin: left; }
.fighter.acting .nameplate::after { transform: scaleX(1); box-shadow: 0 0 10px var(--act); }
.fighter.acting .nameplate b { color: var(--act); }
.bar .val { text-transform: uppercase; }
.bar.heat.over i { animation: hum .6s ease-in-out infinite; }
.bar.heat .val { color: #fff; }
/* while you're picking, the corners show names only */
.arena.choosing .bars, .arena.choosing .vs { visibility: hidden; }
/* between fights the bars fade out, so last fight's numbers don't sit over the next pair */
.bars { transition: opacity .3s; }
.arena.staging .bars { opacity: 0; }

/* ---------- the banner: VS, and who won ---------- */
.banner { position: absolute; left: 0; right: 0; top: 44%; z-index: 5; display: flex; align-items: center; justify-content: center; gap: 18px; padding: 14px 16px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,.82) 18%, rgba(0,0,0,.82) 82%, transparent); pointer-events: none; transform: translateY(-50%); }
.banner b { flex: 1; font: 700 clamp(18px, 3.2vw, 34px)/1 var(--font); letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.banner .l { text-align: right; color: var(--hp); }
.banner .r { text-align: left; color: var(--heat); }
.banner .r:empty { display: none; }
.banner:has(.r:empty) .l { flex: none; color: var(--ink); }
.banner i { font: 700 italic clamp(22px, 4vw, 44px)/1 var(--font); letter-spacing: .08em; color: var(--ink); }
.banner i:empty { display: none; }
.banner.go { animation: band 1.3s ease both; }
.banner.go .l { animation: from-left .45s cubic-bezier(.2, .9, .3, 1) both; }
.banner.go .r { animation: from-right .45s cubic-bezier(.2, .9, .3, 1) both; }
.banner.go i { animation: slam .4s cubic-bezier(.3, 1.6, .5, 1) .25s both; }
@keyframes band { 0% { opacity: 0; } 12%, 82% { opacity: 1; } 100% { opacity: 0; } }
@keyframes from-left { from { transform: translateX(-60px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes from-right { from { transform: translateX(60px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes slam { from { transform: scale(2.4); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- panels arrive, they don't just appear ---------- */
.in { animation: panel-in .3s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.swap { animation: swap .3s ease both; }
@keyframes swap { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }

/* ---------- the picker ---------- */
.panel.chooser { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 12px; }
.chead { display: flex; justify-content: space-between; align-items: center; }
.cmain { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; }
.cinfo { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 4px 24px; align-items: center; }
.cinfo h3 { margin: 0; font-size: 26px; letter-spacing: .06em; }
.cinfo p { margin: 0; color: var(--muted); grid-column: 1; }
.cinfo .stats { grid-column: 2; grid-row: 1 / span 2; margin: 0; display: grid; gap: 6px; }
.stats div { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: center; }
.stats dt { font: 500 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.stats dd { margin: 0; height: 6px; border-radius: 3px; background: #222; overflow: hidden; }
.stats dd span { display: block; height: 100%; width: calc(var(--v) * 100%); background: var(--ink); border-radius: 3px; transition: width .35s ease; }
.arrow { appearance: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel-2); color: var(--ink); font: 700 18px var(--font); cursor: pointer; }
.arrow:hover { border-color: #666; }
.arrow:focus-visible, .btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.cfoot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: #333; transition: background .2s, transform .2s; }
.dots i.on { background: var(--ink); transform: scale(1.3); }
.cbtns { display: flex; gap: 10px; }
.cbtns .btn { min-width: 110px; justify-content: center; }

/* ---------- the result, on the floor ---------- */
.panel.result { display: flex; flex-direction: column; gap: 8px; }
.panel.result h2 { margin: 0; font-size: 52px; letter-spacing: .08em; line-height: 1; }
.panel.result h2.loss { color: var(--danger); }
.panel.result p { margin: 0 0 4px; color: var(--muted); }
.panel.result .actions .btn { flex: 1; justify-content: center; }

@media (max-width: 820px) {
  .cinfo { grid-template-columns: 1fr; }
  .cinfo .stats { grid-column: 1; grid-row: auto; margin-top: 8px; }
  .cmain { grid-template-columns: auto 1fr auto; gap: 8px; align-items: start; }
  .arrow { width: 40px; height: 40px; margin-top: 2px; }
  .cbtns { width: 100%; }
  .cbtns .btn { flex: 1; min-width: 0; }
  .banner { gap: 10px; }
  .panel.result .actions .btn { padding: 10px 8px; white-space: nowrap; }
}
@media (max-width: 520px) {
  /* the banner stacks: one name, the word, the other name */
  .banner { flex-direction: column; gap: 6px; top: 46%; background: rgba(0,0,0,.82); }
  .banner b, .banner .l, .banner .r { flex: none; max-width: 100%; text-align: center; font-size: 22px; }
}
