/* The game: HUD first, then the overlays (round, pause, dead), then the menu. Tokens come from ui.css. */
html, body { height: 100%; overflow: hidden; background: var(--sea-deep); user-select: none; }
canvas { display: block; }
.layer { position: fixed; inset: 0; pointer-events: none; }
#underwater { background: radial-gradient(ellipse at center, color-mix(in srgb, var(--sea-deep) 12%, transparent), color-mix(in srgb, var(--panel) calc(var(--vignette, 0.55) * 100%), transparent)); opacity: 0; }
#heal { background: radial-gradient(ellipse at center, color-mix(in srgb, var(--kelp) 0%, transparent) 50%, color-mix(in srgb, var(--kelp) 70%, transparent)); opacity: 0; }
#hprow { position: relative; } #hpplus { position: absolute; left: 74px; top: -22px; font: 700 20px "Barlow Semi Condensed", "Barlow", sans-serif; color: var(--kelp-mist); opacity: 0; text-shadow: 0 1px 4px color-mix(in srgb, var(--black) 60%, transparent); pointer-events: none; }
#stats.heal #hpsegs i b { background: var(--kelp-white); box-shadow: 0 0 10px var(--kelp); }
#prot { display: none; position: fixed; left: 50%; bottom: 17%; transform: translateX(-50%); font: 600 14px "Barlow", sans-serif; letter-spacing: .1em; color: var(--sea-pale); text-align: center; text-shadow: 0 1px 4px color-mix(in srgb, var(--black) 60%, transparent); }
#prot i { display: block; width: 160px; height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--ice) 20%, transparent); margin-top: 5px; overflow: hidden; } #prot b { display: block; height: 100%; background: var(--sea-hot); }
#hurt { background: radial-gradient(ellipse at center, color-mix(in srgb, var(--coral) 0%, transparent) 45%, color-mix(in srgb, var(--coral) 80%, transparent)); opacity: 0; }
/* low health: two thumps and a rest at the edges, the number and the bar beating with it; --low runs 0.25 to 1 and --beat shortens as it does */
#low { background: radial-gradient(ellipse at center, color-mix(in srgb, var(--coral) 0%, transparent) 48%, color-mix(in srgb, var(--coral) 85%, transparent) 112%); opacity: 0; }
body.lowhp #low { opacity: calc(.3 + var(--low) * .4); animation: lowthump var(--beat) infinite; }
body.lowhp #hptxt { transform-origin: 100% 60%; scale: calc(1.1 + var(--low) * .3); animation: lowgrow var(--beat) infinite; }
body.lowhp #hpsegs { border-radius: 4px; animation: lowglow var(--beat) infinite; }
@keyframes lowthump { 0%, 60%, 100% { opacity: calc(.15 + var(--low) * .3); } 8% { opacity: calc(.4 + var(--low) * .6); } 22% { opacity: calc(.2 + var(--low) * .3); } 32% { opacity: calc(.32 + var(--low) * .5); } }
@keyframes lowgrow { 0%, 40%, 100% { scale: calc(1.1 + var(--low) * .3); } 12% { scale: calc(1.25 + var(--low) * .55); color: var(--white); } }
@keyframes lowglow { 0%, 45%, 100% { box-shadow: 0 0 0 2px transparent; } 12% { box-shadow: 0 0 0 3px var(--coral), 0 0 calc(10px + var(--low) * 18px) var(--coral); } }
#cross { position: fixed; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px; }
#cross i { position: absolute; background: var(--white); box-shadow: 0 0 2px var(--black); }
#cross { --gap: 0px; }
#cross i:nth-child(1) { left: 10px; top: 0; width: 2px; height: 7px; transform: translateY(calc(-1 * var(--gap))); }
#cross i:nth-child(2) { left: 10px; bottom: 0; width: 2px; height: 7px; transform: translateY(var(--gap)); }
#cross i:nth-child(3) { top: 10px; left: 0; height: 2px; width: 7px; transform: translateX(calc(-1 * var(--gap))); }
#cross i:nth-child(4) { top: 10px; right: 0; height: 2px; width: 7px; transform: translateX(var(--gap)); }
#cross { transition: transform .12s, opacity .12s; } #cross.aim { transform: scale(0.6); }
#cross.dim { opacity: .3; }
#cross.bonus { transform: scale(1.35); } #cross.bonus.aim { transform: scale(0.8); }
#cross.bonus i, #cross.flash i { background: var(--sun); }
#cross.bonus::before, #cross.bonus::after { content: ""; position: absolute; left: -7px; top: -7px; width: 32px; height: 32px; border-radius: 50%; border: 2px solid transparent; border-left-color: var(--sun); box-sizing: border-box; filter: drop-shadow(0 0 2px var(--black)); }
#cross.bonus::after { border-left-color: transparent; border-right-color: var(--sun); }
#ring { position: fixed; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px; transform: rotate(-90deg); opacity: 0; filter: drop-shadow(0 0 2px color-mix(in srgb, var(--black) 70%, transparent)); }
#ring circle { fill: none; stroke-width: 4; } #ring .bg { stroke: color-mix(in srgb, var(--ice) 25%, transparent); } #ring .fg { stroke: var(--buoy); stroke-linecap: round; }
#arcs i { position: absolute; left: 50%; top: 50%; width: 100vh; height: 100vh; margin: -50vh; opacity: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-50 -50 100 100'%3E%3Cdefs%3E%3ClinearGradient id='g'%3E%3Cstop offset='0' stop-color='%23e74c3c' stop-opacity='0'/%3E%3Cstop offset='.5' stop-color='%23ff6b57'/%3E%3Cstop offset='1' stop-color='%23e74c3c' stop-opacity='0'/%3E%3C/linearGradient%3E%3Cfilter id='f' x='-50%25' y='-50%25' width='200%25' height='200%25'%3E%3CfeGaussianBlur stdDeviation='.9' result='b'/%3E%3CfeMerge%3E%3CfeMergeNode in='b'/%3E%3CfeMergeNode in='SourceGraphic'/%3E%3C/feMerge%3E%3C/filter%3E%3C/defs%3E%3Cpath filter='url(%23f)' fill='url(%23g)' d='M-15.5,-26.85A31,31 0 0 1 15.5,-26.85A40,40 0 0 0 -15.5,-26.85Z'/%3E%3C/svg%3E") center / contain no-repeat; } /* a crescent toward whoever hit you: thick in the middle, fading out at its ends */
#streaks { width: 100%; height: 100%; }
#hitmark { position: fixed; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px; opacity: 0; transform: rotate(45deg); }
#hitmark::before, #hitmark::after { content: ""; position: absolute; background: var(--white); }
#hitmark::before { left: 14px; top: 0; width: 2px; height: 30px; }
#hitmark::after { top: 14px; left: 0; height: 2px; width: 30px; }
#hitmark.head::before, #hitmark.head::after { background: var(--coral); }
.panel { position: fixed; background: var(--glass-soft); border: 1px solid var(--line); border-radius: var(--r-m); padding: 10px 14px; backdrop-filter: blur(6px); }
/* Your seal's health and ammo, bottom corners: no cards, but every number, block and tick wears the cards' ink edge. */
#stats { position: fixed; left: 26px; bottom: 26px; }
#hprow { display: flex; align-items: center; gap: 10px; }
#hptxt, #ammon { font: 700 42px/.9 "Barlow Semi Condensed", "Barlow", sans-serif; font-variant-numeric: tabular-nums; -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill; }
#hptxt { width: 62px; text-align: right; color: var(--hp); }
#hpcol { width: 200px; flex: none; }
#hpsegs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
#hpsegs i { height: 21px; border: 2.5px solid var(--ink); border-radius: 5px; background: var(--slate); overflow: hidden; box-shadow: 2.5px 2.5px 0 var(--ink); }
#hpsegs i b { display: block; height: 100%; background: var(--hp); transition: background .1s; }
#stats.hit #hpsegs i b { background: var(--white); }
#boostrow { margin-top: 5px; height: 12px; border: 2.5px solid var(--ink); border-radius: 5px; box-shadow: 2.5px 2.5px 0 var(--ink); background: var(--slate); overflow: hidden; }
#boostbar { height: 100%; background: var(--sea); }
#streak { rotate: -6deg; font-size: 26px; margin-left: 2px; }
/* a kill streak, wherever it shows: a flame and a multiplier */
.streak { display: inline-flex; padding-right: .18em; align-items: center; gap: .08em; font: italic 700 1em/1 "Barlow Semi Condensed", "Barlow", sans-serif; letter-spacing: .02em; color: var(--buoy-hot); -webkit-text-stroke: .2em var(--ink); paint-order: stroke fill; white-space: nowrap; vertical-align: middle; }
#feed .streak { font-size: 1.3em; line-height: .7; }
.streak svg { width: .8em; height: .8em; color: var(--buoy); stroke: var(--ink); stroke-width: 3.5; stroke-linejoin: round; paint-order: stroke fill; overflow: visible; }
#ammo { position: fixed; right: 26px; bottom: 26px; text-align: right; --wpn: var(--ice); }
#slot { display: none; font: 700 13px "Barlow Semi Condensed", "Barlow", sans-serif; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 7px; text-shadow: 0 1px 4px var(--ink), 0 0 2px var(--ink); }
#slot kbd { font-size: 12px; margin-right: 7px; }
#prompt kbd { font-size: 13px; margin-right: 8px; }
#prompt { display: none; position: fixed; left: 0; right: 0; top: calc(50% + 96px); text-align: center; font: 700 16px "Barlow Semi Condensed", "Barlow", sans-serif; letter-spacing: .05em; text-shadow: 0 1px 4px color-mix(in srgb, var(--black) 80%, transparent); }
#wpnrow { display: flex; align-items: center; justify-content: flex-end; gap: 6px; color: var(--wpn); filter: drop-shadow(0 1px 2px var(--ink)) drop-shadow(0 0 1px var(--ink)); }
#wpnrow .ico { color: inherit; } #wpnrow .ico svg { width: 19px; height: 19px; }
#reload { font: 700 16px "Barlow Semi Condensed", "Barlow", sans-serif; letter-spacing: .1em; text-transform: uppercase; }
#magrow { display: flex; flex-direction: row-reverse; align-items: center; justify-content: flex-start; gap: 10px; margin-top: 6px; }
#mag { display: flex; gap: 2px; } #mag i { width: 7px; height: 26px; border: 2px solid var(--ink); border-radius: 2.5px; background: var(--slate); box-shadow: 1.5px 1.5px 0 var(--ink); }
#mag.fat { gap: 4px; } #mag.fat i { width: 15px; border-radius: 4px; } #mag.fat i.on { background: var(--wpn); }
#mag i.on { background: var(--ice); } #mag.low i.on { background: var(--coral); }
#ticks { position: fixed; left: 50%; top: 50%; width: 0; height: 0; }
#ticks i { position: absolute; left: -1.5px; top: 34px; width: 3px; height: 8px; border-radius: 1px; background: color-mix(in srgb, var(--ice) 20%, transparent); transform-origin: 1.5px -34px; box-shadow: 0 0 2px color-mix(in srgb, var(--black) 60%, transparent); }
#ticks.fat i { left: -3px; width: 6px; height: 10px; transform-origin: 3px -34px; }
#ticks i.on { background: var(--wpn); } #ticks.low i.on { background: var(--coral); }
#score { position: fixed; left: calc(50% + 70px); top: calc(50% + 12px); text-shadow: 0 1px 4px color-mix(in srgb, var(--black) 80%, transparent); opacity: 0; transition: opacity .4s; font-family: "Barlow Semi Condensed", "Barlow", sans-serif; }
#scoretotal { font-size: 30px; font-weight: 700; color: var(--sun); line-height: 1; }
#scorelines div { display: flex; gap: 10px; font-size: 15px; font-weight: 600; letter-spacing: .04em; animation: scorein .25s ease-out; }
#scorelines div b { color: var(--sun); order: 2; } #scorelines div span { text-transform: uppercase; }
@keyframes scorein { from { opacity: 0; transform: translateX(-18px); } }
/* The kill feed, top left: chips in the cards' style. A kill is told in pictures; a yellow edge is your kill, a red one your death. */
#feed { position: fixed; left: 40px; top: 40px; display: grid; gap: 6px; justify-items: start; font-size: 14px; font-weight: 500; }
#feed div { padding: 4px 11px; background: var(--slate); border: 2px solid var(--ink); border-radius: 9px; box-shadow: 3px 3px 0 var(--ink); white-space: nowrap; animation: feedin .25s ease-out both; }
#feed div:nth-child(n+4) { opacity: .7; }
#feed b { font-weight: 700; } #feed b.me { color: var(--sun); }
#feed .kill { display: flex; align-items: center; gap: 7px; } #feed .mine { border-left: 6px solid var(--sun); } #feed .lost { border-left: 6px solid var(--coral); }
.ico { display: inline-flex; color: var(--mist); } .ico svg { width: 17px; height: 17px; display: block; } .ico.hot { color: var(--sun); }
@keyframes feedin { from { opacity: 0; transform: translateX(-12px); } }
/* The plaque, top centre: mode, time, and a line that runs out with the round. With two sides, each has an end of it. */
#clock { position: fixed; left: 50%; top: 22px; translate: -50% 0; background: var(--slate); border: 3px solid var(--ink); border-radius: var(--r-m); box-shadow: 5px 5px 0 var(--ink); overflow: hidden; text-align: center; white-space: nowrap; }
#clockrow { display: flex; align-items: stretch; }
#clockmid { display: grid; align-content: center; padding: 6px 24px 4px; } #clock.sides #clockmid { background: var(--ink); padding-inline: 18px; }
#clocklab { font: 700 11px var(--text, inherit); letter-spacing: .16em; text-transform: uppercase; color: var(--mist); }
#clockt { font: 700 30px/1.05 "Barlow Semi Condensed", "Barlow", sans-serif; font-variant-numeric: tabular-nums; } #clock.late #clockt { color: var(--coral); }
#clockrun { display: block; height: 5px; background: var(--ink); } #clockrun u { display: block; height: 100%; background: var(--aqua); transition: width 1s linear; } #clock.late #clockrun u { background: var(--coral); }
#clock .end { display: none; align-items: center; gap: 11px; padding: 6px 14px; text-align: left; } #clock.sides .end { display: flex; } #clock .end.r { flex-direction: row-reverse; text-align: right; }
#clock .end > b { font: 700 38px/1 "Barlow Semi Condensed", "Barlow", sans-serif; font-variant-numeric: tabular-nums; min-width: 22px; text-align: center; } #clockl > b { color: var(--c); }
#clock .end span { display: block; width: 150px; font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
/* the blocks share a fixed width: the more there are, the smaller they get, and past 25 they run together into a bar */
.pips { display: flex; gap: 3px; width: 150px; height: 10px; margin-top: 5px; } .end.r .pips { flex-direction: row-reverse; }
.pips i { flex: 1; border-radius: 2px; background: var(--raise); } .pips i.on { background: var(--c); }
.pips.mid { gap: 2px; } .pips.mid i { border-radius: 1px; } .pips.many { gap: 0; border-radius: 3px; overflow: hidden; } .pips.many i { border-radius: 0; }
#bonus { position: fixed; left: calc(50% + 30px); top: calc(50% - 9px); font-size: 14px; font-weight: 700; color: var(--sun); text-shadow: 0 1px 4px color-mix(in srgb, var(--black) 80%, transparent); }
#hitmark.bonus { transform: rotate(45deg) scale(1.6); } #hitmark.bonus::before, #hitmark.bonus::after { background: var(--sun); }
#pending { position: fixed; left: 0; right: 0; top: calc(50% + 62px); text-align: center; font: 700 16px "Barlow Semi Condensed", "Barlow", sans-serif; letter-spacing: .05em; text-shadow: 0 1px 4px color-mix(in srgb, var(--black) 80%, transparent); opacity: .9; }
#pending.bad { color: var(--coral); text-decoration: line-through; opacity: 1; }
/* The challenge, under the clock: a plaque like it. What to do on the left; progress and the prize on a dark end;
   a line along the foot that runs out with the time left. Done, the end turns green and shows a tick. */
#chal { position: fixed; left: 50%; top: 104px; translate: -50% 0; display: none; flex-direction: column; max-width: calc(100vw - 32px); background: var(--slate); border: 3px solid var(--ink); border-radius: var(--r-m); box-shadow: 5px 5px 0 var(--ink); overflow: hidden; white-space: nowrap; animation: chalin .3s cubic-bezier(.2,1.1,.3,1) both; }
#chalrow { display: flex; align-items: stretch; min-width: 0; }
#chalmain { display: grid; align-content: center; gap: 1px; padding: 6px 16px 6px 14px; min-width: 0; }
#chal small { display: flex; justify-content: space-between; gap: 12px; font: 700 11px var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--aqua); }
#chaltime { font-style: normal; letter-spacing: .04em; color: var(--mist); font-variant-numeric: tabular-nums; } #chal.late #chaltime { color: var(--coral); }
#chaltext { font: 700 17px/1.2 var(--display); letter-spacing: .02em; overflow: hidden; text-overflow: ellipsis; }
#chalside { display: flex; align-items: center; gap: 10px; padding: 6px 12px; background: var(--ink); }
#chalprog { font: 700 24px/1 var(--display); font-variant-numeric: tabular-nums; } #chalprog:empty { display: none; }
#chalpips { display: flex; gap: 3px; } #chalpips:empty { display: none; }
#chalpips i { width: 9px; height: 16px; border-radius: 2px; background: var(--raise); } #chalpips i.on { background: var(--aqua); }
#chalpts { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 999px; border: 2px solid var(--ink); box-shadow: 1.5px 1.5px 0 var(--slate); background: var(--sun); color: var(--ink); font: 700 14px/1.2 var(--display); font-style: normal; font-variant-numeric: tabular-nums; }
#chalrun { display: block; height: 5px; background: var(--ink); } #chalrun u { display: block; height: 100%; background: var(--aqua); transform-origin: left; } #chal.late #chalrun u { background: var(--coral); }
#chal.done #chalside { background: var(--kelp-deep); } #chal.done #chalpips { display: none; } #chal.done #chalrun u { background: var(--kelp); }
#chal.done #chalprog svg { width: 22px; height: 22px; display: block; color: var(--ice); stroke: var(--ink); stroke-width: 1.5; paint-order: stroke fill; }
#chal.done #chalpts { background: var(--ice); }
@keyframes chalin { from { opacity: 0; translate: -50% -10px; } }
@media (max-width: 820px) { #chal { top: 84px; } #chalmain { padding: 4px 10px; } #chaltext { font-size: 14px; } #chalside { gap: 7px; padding: 4px 8px; } #chalprog { font-size: 19px; } #chalpips i { width: 7px; height: 12px; } #chalpts { font-size: 12px; padding: 0 6px; } }
#warn { display: none; position: fixed; left: 0; right: 0; top: 33%; text-align: center; font: 700 20px "Barlow Semi Condensed", "Barlow", sans-serif; letter-spacing: .12em; color: var(--coral); text-shadow: 0 1px 6px color-mix(in srgb, var(--black) 80%, transparent); animation: warnblink .35s steps(2) infinite; }
#warn i { display: inline-block; font-style: normal; margin-right: 6px; } #warn b { color: var(--ice); margin-left: 6px; }
@keyframes warnblink { 50% { opacity: .55; } }
#toast { position: fixed; left: 0; right: 0; top: 24%; text-align: center; font-size: 26px; font-weight: 700; text-shadow: 0 2px 8px color-mix(in srgb, var(--black) 60%, transparent); opacity: 0; transition: opacity .25s; }
/* Sealed: the game dims and greys, a card low on the screen says who, how and how the two of you stand, and a line along the bottom runs down to the respawn. */
#dead { display: none; position: fixed; inset: 0; background: color-mix(in srgb, var(--ink) 42%, transparent); backdrop-filter: saturate(.3); -webkit-backdrop-filter: saturate(.3); align-items: center; justify-content: flex-end; flex-direction: column; padding: 0 16px; animation: deadin .35s ease-out both; }
#deadcard { display: flex; align-items: stretch; max-width: 100%; margin-bottom: 26px; border-radius: var(--r-m); background: var(--slate); border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); overflow: hidden; animation: deadup .4s .05s cubic-bezier(.2,1.1,.3,1) both; }
#deadwho { padding: 14px 22px 16px; min-width: 0; }
#deadlab, #deadvslab { display: block; font: 700 12px var(--text, inherit); letter-spacing: .14em; text-transform: uppercase; color: var(--coral); }
#dead h2 { display: flex; align-items: center; gap: 10px; font-size: clamp(26px, 4vw, 38px); line-height: 1; margin: 4px 0 0; text-transform: uppercase; letter-spacing: .03em; overflow-wrap: anywhere; }
#deaddot { width: 16px; height: 16px; border-radius: 50%; border: 3px solid var(--ink); flex: none; }
#deadtags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 16px; } #deadtags:empty { display: none; }
#deadtags span { font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--raise); white-space: nowrap; } #deadtags .hot { background: var(--sun); color: var(--ink); } #deadtags .streak { font-size: 19px; align-self: center; margin-left: 2px; }
#deadwho { display: flex; flex-direction: column; }
/* their health along the foot of the card, drawn as your own bar is; the part you took is a faded echo of it */
#deadhp { display: flex; align-items: center; gap: 10px; margin: auto -22px -16px; padding: 9px 22px; background: var(--ink); }

#deadhpt { font: 700 22px/1 "Barlow Semi Condensed", "Barlow", sans-serif; min-width: 30px; font-variant-numeric: tabular-nums; color: var(--hp); }
#deadsegs { flex: 1; min-width: 150px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
#deadsegs i { position: relative; height: 12px; border-radius: 3px; background: color-mix(in srgb, var(--ice) 15%, transparent); overflow: hidden; }
#deadsegs b, #deadsegs u { position: absolute; top: 0; bottom: 0; left: 0; background: var(--hp); } #deadsegs u { opacity: .32; }
#deadvs { display: grid; place-content: center; text-align: center; padding: 12px 24px; background: var(--ink); white-space: nowrap; }
#deadvslab { color: var(--mist); }
#deadscore { font: 700 52px/1 var(--display); letter-spacing: .04em; margin-top: 4px; font-variant-numeric: tabular-nums; } #deadscore i { font-style: normal; color: var(--mist); font-size: 34px; margin: 0 8px; } #deadscore u { text-decoration: none; color: var(--coral); }
#deadsub { font-size: 12px; color: var(--mist); margin-top: 5px; } #deadsub.owed { color: var(--sun); font-weight: 700; }
#dead p { font: 600 13px var(--text, inherit); letter-spacing: .12em; text-transform: uppercase; color: var(--mist); margin: 0 0 18px; text-align: center; text-shadow: 0 1px 6px var(--ink); }
#deadline { position: absolute; left: 0; right: 0; bottom: 0; height: 9px; background: color-mix(in srgb, var(--ink) 70%, transparent); } #deadbar { display: block; height: 100%; background: var(--aqua); transform-origin: left; }
@keyframes deadin { from { opacity: 0; } } @keyframes deadup { from { opacity: 0; transform: translateY(18px); } }
@media (max-width: 560px) { #dead { padding: 0 12px; } #deadcard { flex-direction: column; width: 100%; margin-bottom: 30px; } #deadwho { padding: 18px 20px 16px; } #deadtags { margin-top: 12px; } #deadhp { margin: auto -20px -16px; padding: 12px 20px; } #deadvs { justify-content: space-between; border-top: 2px solid var(--slate); } #dead p { margin-bottom: 26px; } #deadvs { grid-auto-flow: column; align-items: center; gap: 12px; padding: 14px 20px; } #deadscore { font-size: 34px; margin: 0; } #deadscore i { font-size: 24px; } #deadsub { margin: 0; } }
@media (prefers-reduced-motion: reduce) { #dead, #deadcard { animation: none; } }
/* The standings, where and how the pause screen shows them. */
#board { position: fixed; right: 40px; top: 40px; width: min(330px, calc(100% - 80px)); background: var(--slate); border: 3px solid var(--ink); border-radius: var(--big); box-shadow: 6px 6px 0 var(--ink), 6px 6px 0 1px var(--line-strong); overflow: hidden; }
#board h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0; padding: 12px 16px 10px; font: 700 18px var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--ice); border-bottom: 3px solid var(--ink); }
#board h3 span + span { font: 600 13px var(--text); letter-spacing: 0; text-transform: none; color: var(--mist); }
#board ol { display: grid; gap: 4px; margin: 0; padding: 8px; list-style: none; background: var(--abyss); }
#board li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; padding: 6px 10px; border-radius: 8px; font-weight: 600; border-left: 4px solid transparent; }
#board li b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; } #board li i { font-style: normal; color: var(--mist); } #board li span { font-weight: 700; font-variant-numeric: tabular-nums; }
#board li[data-team="1"] { border-left-color: var(--coral); } #board li[data-team="2"] { border-left-color: var(--sea); }
#board li.me { background: var(--sun); color: var(--ink); } #board li.me i { color: var(--ink); }
#board li { grid-template-columns: 22px minmax(0, 1fr) auto auto; align-items: center; } #board li div { display: flex; gap: 4px; }
#board h3 .wico { font-variant-numeric: tabular-nums; }
#boardfoot { padding: 7px 16px; background: var(--ink); font: 600 13px var(--text); color: var(--mist); } #boardfoot:empty { display: none; }
/* small pills in a list: gold for round wins, orange for a streak; on your own yellow row they turn dark */
.pill { display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px 1px 5px; border-radius: 999px; border: 2px solid var(--ink); box-shadow: 1.5px 1.5px 0 var(--ink); color: var(--ink); font: 700 13px/1.2 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pill svg { width: 12px; height: 12px; } .pill-wins { background: var(--sun); } .pill-streak { background: var(--buoy); }
.me .pill { background: var(--ink); box-shadow: none; } .me .pill-wins { color: var(--sun); } .me .pill-streak { color: var(--buoy-hot); }
.wico { display: inline-flex; align-items: center; gap: 5px; } .wico svg { width: 15px; height: 15px; }
/* The scoreboard held up with Tab: the standings' card, with a row for every seal. */
#scores { display: none; position: fixed; left: 50%; top: 50%; translate: -50% -50%; width: min(820px, calc(100vw - 32px)); max-height: calc(100vh - 32px); }
#scores::before { content: ""; position: absolute; inset: -100vh -100vw; z-index: -1; background: color-mix(in srgb, var(--ink) 55%, transparent); }
#hud:has(#scores[style*="block"]) :is(#board, #feed, #chal, #toast, #coach) { visibility: hidden; }
#scores .card { background: var(--slate); border: 3px solid var(--ink); border-radius: var(--big); box-shadow: 6px 6px 0 var(--ink), 6px 6px 0 1px var(--line-strong); overflow: hidden; }
#scores .head { display: flex; align-items: center; gap: 14px; padding: 12px 18px 11px; border-bottom: 3px solid var(--ink); }
#scores h3 { margin: 0; font: 700 24px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; color: var(--ice); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#scores .tags { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; } #scores .tags span { display: inline-flex; align-items: center; font: 600 13px var(--text); padding: 2px 10px; border-radius: 999px; background: var(--raise); white-space: nowrap; } #scores .tags span.on { background: var(--aqua); color: var(--ink); }
#scores .tags .wico { padding: 0; background: none; gap: 4px; font-variant-numeric: tabular-nums; } #scores .tags .wico svg { width: 13px; height: 13px; }
#scores .time { font: 700 26px/1 var(--display); font-variant-numeric: tabular-nums; }
#scores .body { display: grid; gap: 4px; padding: 9px; background: var(--abyss); --cols: 26px minmax(0, 1fr) 62px 68px 44px 44px 44px 76px; } #scores .body.slim { --cols: 22px minmax(0, 1fr) 62px 34px 34px 34px 60px; }
#scores .row { display: grid; grid-template-columns: var(--cols); align-items: center; gap: 8px; padding: 6px 12px; border-radius: 8px; font-weight: 600; font-size: 15px; }
#scores .row > * { text-align: right; font-variant-numeric: tabular-nums; } #scores .row > :first-child { text-align: left; color: var(--mist); }
#scores .row > :nth-child(2) { display: flex; align-items: center; gap: 8px; min-width: 0; text-align: left; } #scores .row b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#scores .row.hd { padding-block: 1px 2px; font: 700 11px var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--mist); }
#scores .row .pts { font: 700 19px/1 var(--display); }
#scores .row.me { background: var(--sun); color: var(--ink); } #scores .row.me > :first-child { color: var(--ink); }
#scores .dot { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--ink); flex: none; }
#scores small { font: 700 10px var(--text); letter-spacing: .08em; padding: 1px 5px; border-radius: 4px; background: var(--raise); color: var(--mist); flex: none; } #scores .me small { background: var(--ink); color: var(--sun); }
/* a team round: the tags and the clock above, then a card per team, topped in its colour */
#scores:has(.duo) { width: min(1120px, calc(100vw - 32px)); }
#scores .top { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 16px; } #scores .top .tags { flex: none; } #scores .top .time { text-shadow: 0 1px 6px var(--ink); }
#scores .duo { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; } #scores .duo .head { border-top: 7px solid var(--tm); justify-content: space-between; } #scores .total { font: 700 32px/1 var(--display); color: var(--tm); font-variant-numeric: tabular-nums; }
@media (max-width: 820px) { #scores .duo { grid-template-columns: 1fr; gap: 10px; } #scores .head { flex-wrap: wrap; gap: 6px 10px; } #scores .body, #scores .body.slim { --cols: 18px minmax(0, 1fr) 0 50px 26px 26px 26px 50px; padding: 5px; } #scores .body.slim { --cols: 18px minmax(0, 1fr) 50px 26px 26px 26px 50px; } #scores .row { gap: 4px; padding: 4px 7px; font-size: 13px; } #scores .body:not(.slim) .row > :nth-child(3) { visibility: hidden; } #scores small { display: none; } }
#board li.gap { padding: 0; height: 3px; width: 22px; margin: 1px auto; border: 0; border-radius: 2px; background: var(--raise); }
/* a plaque with two ends is wide: on narrower screens the cards step down below it */
@media (max-width: 1320px) { #hud:has(#clock.sides) :is(#board, #feed) { top: 108px; } }
@media (max-width: 820px) {
  #clock { top: 8px; } #clock .end { padding: 5px 9px; gap: 7px; } #clock .end span, .pips { width: 76px; } #clock .end > b { font-size: 28px; } #clockmid, #clock.sides #clockmid { padding-inline: 10px; } #clockt { font-size: 24px; }
  #board { right: 10px; top: 78px; width: 180px; font-size: 12px; border-radius: var(--r-m); box-shadow: 4px 4px 0 var(--ink); } #board h3 { display: none; } #board ol { padding: 5px; gap: 2px; } #board li { padding: 3px 7px; grid-template-columns: 14px minmax(0, 1fr) auto auto; gap: 5px; }
  #feed { left: 10px; top: 78px; font-size: 12px; max-width: calc(100% - 210px); } #feed div { padding: 3px 8px; overflow: hidden; text-overflow: ellipsis; max-width: 100%; box-sizing: border-box; } #feed div:nth-child(n+4) { display: none; }
}

#toast, #dead h2 { font-family: var(--display); }
#waiting { display: none; position: fixed; left: 50%; top: 20%; transform: translateX(-50%); text-align: center; padding: 12px 20px; border-radius: var(--r-m); background: var(--glass); border: 1px solid var(--line); font-size: 15px; }
#waiting b { display: block; font: 700 20px var(--display); letter-spacing: .04em; } #waiting code { font: 700 18px var(--display); letter-spacing: .2em; color: var(--sun); }

/* between rounds */
/* The end of a round: a title and the winner's card over the ceremony, then the summary. */
#cer { display: none; position: fixed; inset: 0; pointer-events: none; }
#cer.show { display: block; } #cer.show ~ #dead { display: none !important; } /* nobody is dead at a prize-giving */
#hud.off > * { visibility: hidden; }
/* sealed: the death card has the screen to itself; the scoreboard still comes up when asked for */
#hud { transition: opacity .35s; } body.sealed #hud:not(:has(#scores[style*="block"])) { opacity: 0; }
#cerhead { position: absolute; top: max(5vh, 22px); left: 0; right: 0; text-align: center; animation: cerdrop .6s cubic-bezier(.2,.9,.3,1) both; text-shadow: 0 2px 18px color-mix(in srgb, var(--ink) 75%, transparent); }
#cerhead h2 { font-size: clamp(30px, 5.4vw, 58px); letter-spacing: .02em; text-transform: uppercase; line-height: 1; }
#certeams { font: 700 19px var(--display); letter-spacing: .06em; color: var(--ice); margin-top: 6px; }
#cer.sum #cerhead, #cer.sum #cercard { display: none; }
/* the winner's card: one wide, low card in the middle, above the skip and leave buttons; a yellow block with the place,
   who, and three feats that stamp in one after another */
#cercard { position: absolute; left: 50%; bottom: max(11vh, 84px); width: min(920px, calc(100vw - 32px)); display: flex; align-items: stretch; background: var(--slate); border: 3px solid var(--ink); border-radius: var(--big); box-shadow: 6px 6px 0 var(--ink);
  overflow: hidden; opacity: 0; transform: translate(-50%, 26px); transition: opacity .35s, transform .45s cubic-bezier(.2,.9,.3,1); }
#cer.stats #cercard { opacity: 1; transform: translate(-50%, 0); }
#cerplace { flex: none; display: grid; place-content: center; justify-items: center; gap: 2px; padding: 0 22px; background: var(--sun); color: var(--ink); border-right: 3px solid var(--ink); font: 800 44px/1 var(--display); text-transform: uppercase; }
#cerplace svg { width: 28px; height: 28px; }
#cerwho { flex: 1; padding: 12px 18px 13px; }
#cerrank { font: 700 12px var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--sun); }
#cername { font: 700 clamp(26px, 3.4vw, 38px) var(--display); line-height: 1.02; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#cersub { color: var(--mist); font-size: 14px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#cerrest { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 6px; font: 700 12px var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--mist); }
#cerrest b { color: var(--ice); font-size: 15px; margin-right: 4px; font-variant-numeric: tabular-nums; }
#cerstats { flex: none; display: flex; align-items: center; gap: 10px; padding: 14px 18px 14px 0; }
#cerstats div { position: relative; display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 8px; padding: 8px 14px 7px 11px; background: var(--abyss); border: 2px solid var(--ink); border-radius: var(--rad); }
#cerstats svg { grid-row: span 2; width: 26px; height: 26px; color: var(--sun); }
#cerstats b { font: 700 30px/1 var(--display); font-variant-numeric: tabular-nums; }
#cerstats span { font: 700 11px var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--mist); white-space: nowrap; }
#cerstats i { position: absolute; top: -10px; right: -6px; padding: 0 6px; background: var(--sun); color: var(--ink); border: 2px solid var(--ink); border-radius: 5px; box-shadow: 2px 2px 0 var(--ink); font: 800 11px/1.4 var(--display); font-style: normal; text-transform: uppercase; }
#cer.stats #cerstats div { animation: cerstamp .45s cubic-bezier(.2,1.4,.4,1) both; }
/* The summary, from the end of the show (or a skip) to the next round: the beach in the middle; you, bottom left;
   the standings, bottom right; the time to the next round as a clock plaque, top centre. */
#sumclock, #sumyou, #sumcard { display: none; position: absolute; background: var(--slate); border: 3px solid var(--ink); border-radius: var(--big); box-shadow: 6px 6px 0 var(--ink), 6px 6px 0 1px var(--line-strong); overflow: hidden; pointer-events: auto; }
#cer.sum #sumclock, #cer.sum #sumyou, #cer.sum #sumcard { display: block; animation: sumup .5s cubic-bezier(.2,1.1,.3,1) both; } #cer.sum #sumcard { animation-delay: .15s; } #cer.sum #sumclock { animation-name: cerdrop; }
#sumclock { left: 50%; top: 22px; translate: -50% 0; min-width: 190px; text-align: center; white-space: nowrap; }
#sumnext { display: block; margin-top: 6px; font: 700 11px var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--aqua); }
#sumcount { display: block; padding: 0 24px 4px; font: 700 34px/1.05 var(--display); font-variant-numeric: tabular-nums; }
#sumclock i { display: block; height: 5px; background: var(--ink); } #sumbar { display: block; height: 100%; background: var(--aqua); transform-origin: left; }
#sumyou { left: max(3vw, 16px); bottom: max(4vh, 16px); width: min(380px, calc(50vw - 28px)); }
#sumhd { display: flex; align-items: stretch; border-bottom: 3px solid var(--ink); }
#sumplace { flex: none; display: grid; place-items: center; padding: 0 16px; background: var(--sun); color: var(--ink); border-right: 3px solid var(--ink); font: 800 42px/1 var(--display); text-transform: uppercase; }
#sumhd > div { align-self: center; padding: 10px 14px 11px; min-width: 0; }
#sumtitle { font: 700 11px var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--aqua); }
#sumname { margin: 2px 0 0; font: 700 24px/1.05 var(--display); text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#sumof { margin: 1px 0 0; color: var(--mist); font-size: 13px; }
#sumbody { display: grid; gap: 11px; padding: 12px 14px 14px; }
#sumstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
#sumstats div { background: var(--abyss); border: 2px solid var(--ink); border-radius: var(--rad); text-align: center; padding: 5px 0 4px; }
#sumstats b { display: block; font: 700 22px/1.05 var(--display); font-variant-numeric: tabular-nums; }
#sumstats span { font: 700 10px var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--mist); }
#sumlvl { display: flex; justify-content: space-between; gap: 8px; font: 700 12px var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--mist); margin-bottom: -6px; }
#sumlvl b, #sumlevel b { color: var(--ice); }
#sumxp { opacity: 0; transition: opacity .4s; } #sumxp.in { opacity: 1; }
#sumxpbar { position: relative; height: 16px; border: 2px solid var(--ink); border-radius: 8px; background: var(--raise); overflow: hidden; }
#sumxpbar u, #sumxpbar s { position: absolute; top: 0; bottom: 0; left: 0; width: 0; }
#sumxpbar u { background: var(--aqua); } #sumxpbar s { background: var(--sun); transition: width 1.2s .3s cubic-bezier(.3,.8,.3,1); }
#sumextra { display: grid; gap: 6px; } #sumextra:empty { display: none; }
#sumextra div { display: flex; align-items: center; gap: 8px; padding: 5px 10px; background: var(--abyss); border: 2px solid var(--ink); border-radius: var(--rad); font-size: 14px; }
#sumextra svg { width: 18px; height: 18px; flex: none; color: var(--aqua); } #sumextra .shells svg { color: var(--sun); }
#sumextra em { margin-left: auto; font: 700 15px var(--display); font-style: normal; color: var(--sun); }
#sumcard { right: max(3vw, 16px); bottom: max(4vh, 16px); width: min(350px, calc(50vw - 28px)); }
#sumcard h4 { margin: 0; display: flex; justify-content: space-between; align-items: baseline; padding: 9px 14px; border-bottom: 3px solid var(--ink); font: 700 16px var(--display); letter-spacing: .04em; text-transform: uppercase; }
#sumcard h4 span + span { font-size: 12px; color: var(--mist); }
/* the vote for the next map: a card under the clock, a button each with a swatch of its look and the count; your own pick filled yellow */
#sumvote { display: none; position: absolute; left: 50%; top: 104px; translate: -50% 0; width: min(440px, calc(100vw - 32px)); background: var(--slate); border: 3px solid var(--ink); border-radius: var(--big); box-shadow: 6px 6px 0 var(--ink), 6px 6px 0 1px var(--line-strong); overflow: hidden; pointer-events: auto; }
#cer.sum #sumvote:not([hidden]) { display: block; animation: sumup .5s cubic-bezier(.2,1.1,.3,1) .1s both; }
#sumvote h4 { margin: 0; padding: 9px 14px; border-bottom: 3px solid var(--ink); font: 700 16px var(--display); letter-spacing: .04em; text-transform: uppercase; }
#sumvotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; padding: 12px 14px 14px; background: var(--abyss); }
#sumvotes .vote { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-s, 8px); background: var(--raise); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); color: inherit; font: 600 15px var(--body, inherit); text-align: left; cursor: pointer; }
#sumvotes .vote:hover { background: var(--edge); } #sumvotes .vote:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
#sumvotes .vote i { width: 26px; height: 26px; flex: none; border-radius: 6px; border: 2px solid var(--ink); }
#sumvotes .vote[data-look='arctic'] i { background: linear-gradient(var(--abyss) 45%, var(--aqua)); }
#sumvotes .vote[data-look='tropical'] i { background: linear-gradient(var(--aqua) 55%, var(--sun-pale) 56%); }
#sumvotes .vote span { flex: 1; min-width: 0; text-transform: uppercase; font-family: var(--display); letter-spacing: .03em; } #sumvotes .vote small { display: block; font: 500 11px var(--body, inherit); color: var(--mist); text-transform: none; letter-spacing: 0; }
#sumvotes .vote b { font: 700 20px var(--display); font-variant-numeric: tabular-nums; min-width: 1ch; }
#sumvotes .vote[aria-pressed='true'] { background: var(--sun); color: var(--ink); } #sumvotes .vote[aria-pressed='true'] small { color: var(--ink); }
#sumboard { display: grid; gap: 4px; padding: 10px; } #sumboard .quiet { color: var(--mist); text-align: center; padding: 10px 0; }
#sumboard .row { display: grid; grid-template-columns: 24px auto minmax(0, 1fr) auto 46px; align-items: center; gap: 8px; padding: 5px 9px; border-radius: var(--rad); background: var(--abyss); font-size: 15px; font-weight: 600; }
#sumboard .row b { font: 700 13px var(--display); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--raise); }
#sumboard .p1 b { background: var(--sun); color: var(--ink); } #sumboard .p2 b { background: var(--silver); color: var(--ink); } #sumboard .p3 b { background: var(--pumpkin); }
#sumboard .row u { width: 8px; height: 8px; border-radius: 50%; } #sumboard .row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#sumboard .row i { font-style: normal; color: var(--mist); font-size: 13px; font-variant-numeric: tabular-nums; } #sumboard .row em { font-style: normal; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
#sumboard .me { background: var(--sun); color: var(--ink); } #sumboard .me span { font-weight: 700; } #sumboard .me i { color: var(--ink); } #sumboard .me b { border: 2px solid var(--ink); }
/* the round is called: the game dims behind the words, then the sea's own colour carries the picture over to the beach */
#cerfade { position: absolute; inset: 0; background: var(--deep, var(--ink)); opacity: 0; }
#cerlead { display: none; position: absolute; inset: 0; place-content: center; text-align: center; padding: 0 16px;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--ink) 38%, transparent), color-mix(in srgb, var(--ink) 78%, transparent)); animation: leaddim .5s ease-out both; }
#cer.lead #cerlead { display: grid; } #cer.lead #cerhead { display: none; }
#cerlead .eyebrow { font-size: clamp(15px, 2vw, 20px); animation: leadin .5s .1s cubic-bezier(.2,.9,.3,1) both; }
#cerlead h2 { font-size: clamp(36px, 7vw, 84px); text-transform: uppercase; letter-spacing: .02em; line-height: 1; margin-top: 8px; text-shadow: 0 3px 22px color-mix(in srgb, var(--ink) 80%, transparent); animation: leadin .6s .3s cubic-bezier(.2,1.2,.3,1) both; }
#ceracts { position: absolute; right: max(3vw, 16px); top: 22px; display: flex; gap: 10px; pointer-events: auto; animation: leadin .4s .6s both; }
#cer.sum #cerskip, #cer.lead #cerskip { display: none; }
#cerready.on { background: var(--kelp); border-color: var(--ink); --own: var(--kelp-deep); }
#cerready.on:hover:not(:disabled) { background: color-mix(in srgb, var(--kelp) 88%, var(--white)); }
@keyframes leaddim { from { opacity: 0; } } @keyframes leadin { from { opacity: 0; transform: translateY(14px) scale(.96); } }
/* the count before a round */
#count { display: none; position: fixed; inset: 0; place-content: start center; padding-top: 13vh; /* above the seal, not over it */ justify-items: center; text-align: center; pointer-events: none; }
#count.on { display: grid; }
#countn { font: 700 clamp(90px, 20vw, 190px)/1 var(--display); color: var(--ice); text-shadow: 0 4px 0 var(--ink), 0 8px 30px color-mix(in srgb, var(--ink) 70%, transparent); }
#countn.tick { animation: counttick .9s cubic-bezier(.2,.9,.3,1) both; } #count.go #countn { color: var(--sun); font-size: clamp(70px, 15vw, 150px); }
/* the click-to-play screen: the match goes on behind it, dimmed; a click anywhere takes the mouse */
#clickplay { display: none; position: fixed; inset: 0; z-index: 40; place-content: center; cursor: pointer; background: radial-gradient(ellipse at center, color-mix(in srgb, var(--ink) 35%, transparent) 0, color-mix(in srgb, var(--ink) 70%, transparent) 100%); }
#clickplay.on { display: grid; }
/* during the count: low on the screen, clear of the numbers, and the swoop barely dimmed */
#clickplay.low { place-content: end center; padding-bottom: 9vh; background: linear-gradient(transparent 50%, color-mix(in srgb, var(--ink) 45%, transparent)); }
#clickcard { display: grid; justify-items: center; gap: 6px; padding: 22px 38px 18px; background: var(--slate); border: 4px solid var(--ink); border-radius: 16px; box-shadow: 6px 6px 0 var(--ink); animation: clickin .35s cubic-bezier(.2,.9,.3,1.2) both; }
#clickcard svg { width: 44px; height: 44px; color: var(--ice); animation: countask 1.1s ease-in-out infinite; } #clickcard .btn { fill: var(--sun); }
#clickplayt { font: 700 clamp(30px, 4vw, 44px)/1 var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--sun); text-shadow: 0 3px 0 var(--ink); }
#clickplaysub { font: 600 11px var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--mist); }
@keyframes clickin { from { opacity: 0; transform: scale(.9); } }
@media (prefers-reduced-motion: reduce) { #clickcard, #clickcard svg { animation: none; } }
@keyframes counttick { from { opacity: 0; transform: scale(1.7); } 25% { opacity: 1; transform: none; } 80% { opacity: 1; } to { opacity: .55; transform: scale(.9); } }
@keyframes countask { 50% { transform: scale(1.06); } }
@keyframes sumup { from { opacity: 0; transform: translateY(24px); } } @keyframes cerdrop { from { opacity: 0; transform: translateY(-18px); } } @keyframes cerstamp { 0% { opacity: 0; transform: scale(1.8) rotate(-6deg); } 70% { opacity: 1; } 100% { transform: none; } } @keyframes cerside { from { opacity: 0; transform: translate(24px, -50%); } }
@media (max-width: 760px) { #cercard { flex-wrap: wrap; bottom: 76px; } #cerplace { padding: 0 14px; font-size: 32px; } #cerstats { width: 100%; padding: 0 12px 12px; } #cerstats div { flex: 1; padding: 6px 8px; } #cerstats b { font-size: 24px; } #sumyou, #sumcard { left: 12px; right: 12px; width: auto; } #sumyou { bottom: auto; top: 96px; } #sumcard { bottom: 12px; } #sumboard .row:nth-child(n+4):not(.me) { display: none; } #sumvote { top: 96px; } #cer:has(#sumvote:not([hidden])) #sumyou { top: 196px; } }
@media (max-height: 520px) { #cercard { bottom: 64px; width: min(720px, calc(100vw - 24px)); } #cerplace { font-size: 30px; padding: 0 14px; } #cerplace svg { width: 20px; height: 20px; } #cerwho { padding: 8px 12px; } #cername { font-size: 24px; } #cersub, #cerrest { display: none; } #cerstats { gap: 8px; padding: 8px 12px 8px 0; } #cerstats b { font-size: 22px; } #cerstats svg { width: 20px; height: 20px; } }
@media (prefers-reduced-motion: reduce) { #cerhead, #cer.sum #sumclock, #cer.sum #sumyou, #cer.sum #sumcard, #cer.sum #sumvote, #cer.stats #cerstats div, #cerlead, #cerlead *, #ceracts, #countn.tick { animation: none; } }

/* ---------------------------------------------------------------- the sticker kit
   Everything you can press or type in has an ink outline and a hard shadow in a darker shade of itself, boxed in ink.
   --own is that darker shade, --sh how far the shadow falls, --d how far it falls right now (more on hover, none when pressed). */
:root { --ow: 2.5px; --sh: 4px; --rad: 10px; --big: 14px; }
button, #menu input:not([type=range]):not([type=checkbox]), #menu .seg, #status, .sw i { --d: var(--sh); --own: var(--slate); --stk: var(--d) var(--d) 0 0 var(--own), var(--d) var(--d) 0 var(--ow) var(--ink); border: var(--ow) solid var(--ink); border-radius: var(--rad); box-shadow: var(--stk); }
button { background: var(--raise); color: var(--ice); font-weight: 700; padding: 9px 16px; transition: translate .08s, box-shadow .08s, background .12s; }
button:hover:not(:disabled) { translate: -1px -1px; --d: calc(var(--sh) + 1px); }
button:active:not(:disabled) { transform: none; translate: var(--sh) var(--sh); --d: 0px; }
button.cta { border-color: var(--ink); padding: 12px 28px; --own: var(--pumpkin); box-shadow: var(--stk); }
button.cta:hover:not(:disabled) { border-color: var(--ink); }
button.cta:active:not(:disabled) { transform: none; box-shadow: var(--stk); }
button.primary { border-color: var(--ink); --own: var(--aqua-deep); }
button.danger { background: var(--coral); color: var(--ice); border-color: var(--ink); --own: var(--coral-deep); }
button.danger:hover:not(:disabled) { background: color-mix(in srgb, var(--coral) 88%, var(--white)); }
button.small { padding: 4px 12px; }
button.ghost { background: var(--raise); }
/* a key: an ice cap standing on a 3px edge cut at a slant, like the segmented toggle: copies of the cap every .75px down
   and right, ringed in ink underneath and filled with --ke on top. Sized by its own font-size. */
kbd { --kf: var(--ice); --ke: var(--silver); display: inline-block; min-width: 1.7em; padding: 0 .45em; text-align: center; vertical-align: .08em; white-space: nowrap;
  font: 700 12px/1.5 var(--text); letter-spacing: .02em; text-transform: none; text-shadow: none; color: var(--ink); background: var(--kf); border: 1.5px solid var(--ink); border-radius: 5px; translate: -1px -1px;
  box-shadow: .75px .75px 0 -1.5px var(--ke), 1.5px 1.5px 0 -1.5px var(--ke), 2.25px 2.25px 0 -1.5px var(--ke), 3px 3px 0 -1.5px var(--ke),
              .75px .75px 0 0 var(--ink), 1.5px 1.5px 0 0 var(--ink), 2.25px 2.25px 0 0 var(--ink), 3px 3px 0 0 var(--ink); transition: translate .08s, box-shadow .08s; }
kbd.sp { padding: 0 .35em; } kbd.sp svg { width: 1.5em; height: .75em; vertical-align: -.02em; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
/* a button's key is pinned below its right corner, where the button's shadow falls, so the button stays as long as its
   words. The key starts inside the button's right padding, so it never covers them; the button keeps room for it. */
button:has(> kbd) { position: relative; margin-right: 16px; }
button > kbd { position: absolute; left: calc(100% - 8px); top: calc(100% - 12px); margin: 0; }
button:active:not(:disabled) > kbd { translate: 1px 1px; box-shadow: none; }
button.danger > kbd { --kf: var(--white); --ke: var(--coral-pale); }

#menu input:not([type=range]):not([type=checkbox]) { background: var(--ice); color: var(--ink); font-weight: 700; padding: 9px 12px; --own: var(--concrete); user-select: text; transition: box-shadow .12s, translate .12s; }
/* the segmented toggle: joined buttons in one bar, the chosen one a yellow sticker that slides to the next choice. The bar
   stands on a 4px edge, as if cut from a thick sheet: copies of the bar every half pixel down and right, ringed in ink
   underneath (.sd) and filled on top (.sf), so the edge's outline runs on the slant from each corner. The fill is slate
   with the chosen piece orange, and its ink sides, so the lines between orange and slate are the yellow's own edges carried
   down the slant. The bar's face (::before), the dividers and the yellow piece all use real --ow borders, so they round to
   the same pixels as every other sticker. Seg in ui/controls.tsx measures and sets, in the bar's outer box: --x and --w
   (the chosen piece, its ink edges included), --bw (the border as drawn), --rl and --rr; the lengths are registered, so
   they slide. */
@property --x { syntax: "<length>"; inherits: true; initial-value: 0px; }
@property --w { syntax: "<length>"; inherits: true; initial-value: 0px; }
@property --rl { syntax: "<length>"; inherits: true; initial-value: 0px; }
@property --rr { syntax: "<length>"; inherits: true; initial-value: 0px; }
#menu .seg { --bw: var(--ow); position: relative; isolation: isolate; overflow: visible; border-color: transparent; background: none; box-shadow: none; }
#menu .seg.ready { transition: --x .32s cubic-bezier(.3,1.35,.5,1), --w .32s cubic-bezier(.3,1.35,.5,1), --rl .2s, --rr .2s; }
#menu .seg::before, #menu .seg .sd, #menu .seg .sf, #menu .seg .th { content: ""; position: absolute; inset: calc(-1 * var(--bw)); pointer-events: none; }
#menu .seg::before { z-index: 0; background: var(--raise); border: var(--ow) solid var(--ink); border-radius: var(--rad); }
/* the copies' ink would also show above and left of the bar, thickening its top and left edges: cut off there */
#menu .seg .sd, #menu .seg .sf { clip-path: inset(0 -12px -12px 0 round var(--rad) 0 0 0); }
#menu .seg .sd { z-index: -2; } #menu .seg .sf { z-index: -1; }
#menu .seg .sd i, #menu .seg .sf i { position: absolute; inset: 0; border-radius: var(--rad); translate: calc(var(--k) * var(--d) / 8) calc(var(--k) * var(--d) / 8); }
#menu .seg .sd i { box-shadow: 0 0 0 var(--ow) var(--ink); }
#menu .seg .sf i { background: linear-gradient(to right, var(--slate) var(--x), var(--ink) 0 calc(var(--x) + var(--bw)), var(--buoy) 0 calc(var(--x) + var(--w) - var(--bw)), var(--ink) 0 calc(var(--x) + var(--w)), var(--slate) 0); }
#menu .seg .th { z-index: 1; left: calc(var(--x) - var(--bw)); right: auto; width: var(--w); border: var(--ow) solid var(--ink); border-radius: var(--rl) var(--rr) var(--rr) var(--rl); background: var(--sun); }
#menu .seg button { position: relative; z-index: 2; border: 0; border-radius: 0; box-shadow: none; translate: none; background: none; color: var(--ice); padding: 7px 13px; font-size: 13px; transition: color .18s; }
#menu .seg button + button { border-left: var(--ow) solid var(--ink); }
#menu .seg button[aria-pressed=true] { color: var(--ink); }
#menu .seg button:not([aria-pressed=true]):hover { color: var(--sun-pale); }
@media (prefers-reduced-motion: reduce) { #menu .seg.ready { transition: none; } }
.stepper { gap: 8px; } .stepper button { width: 32px; height: 32px; padding: 0; --sh: 2px; }
/* the switch: a sticker like the rest, on or off. The knob is laid out by flex, so it sits on the centre line whatever the border rounds to */
.sw { position: relative; display: inline-flex; cursor: pointer; margin-right: 3px; } .sw input { position: absolute; opacity: 0; }
.sw i { --sh: 3px; box-sizing: border-box; display: flex; align-items: center; width: 56px; height: 32px; padding: 0 4px; background: var(--raise); transition: background .15s; }
.sw i::after { content: ""; box-sizing: border-box; flex: none; width: 19px; height: 19px; border-radius: 6px; background: var(--ice); border: 2px solid var(--ink); transition: margin-left .15s; }
.sw input:checked + i { background: var(--kelp); --own: var(--kelp-deep); } .sw input:checked + i::after { margin-left: calc(100% - 19px); }
/* the slider: --f is how far along it is, set from script, and paints the travelled part */
.slide { display: flex; align-items: center; gap: 12px; flex: 1; max-width: 250px; } .slide output { min-width: 54px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
input[type=range] { --f: .5; --fill: linear-gradient(to right, var(--aqua) calc(11px + (100% - 22px) * var(--f)), var(--raise) 0); appearance: none; -webkit-appearance: none; background: none; flex: 1; min-width: 80px; height: 26px; margin: 0; }
input[type=range]::-webkit-slider-runnable-track { box-sizing: border-box; height: 14px; background: var(--fill); border: 2px solid var(--ink); border-radius: 7px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; box-sizing: border-box; width: 22px; height: 22px; margin-top: -6px; border-radius: 8px; background: var(--sun); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--buoy); }
input[type=range]::-moz-range-track { box-sizing: border-box; height: 14px; background: var(--fill); border: 2px solid var(--ink); border-radius: 7px; }
input[type=range]::-moz-range-thumb { box-sizing: border-box; width: 22px; height: 22px; border-radius: 8px; background: var(--sun); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--buoy); }

/* where the keyboard is: a yellow line around the whole block, shadow and all, so it never cuts through the shadow.
   Joined pieces (the mode picker in the host form) have no room outside, so theirs runs round the inside of the segment. */
button:focus-visible, #menu input:focus-visible { outline: 0; }
button:focus-visible, #menu input:not([type=range]):not([type=checkbox]):focus-visible, .sw input:focus-visible + i, .coat[aria-pressed=true]:focus-visible { box-shadow: var(--stk), var(--d) var(--d) 0 calc(var(--ow) + 3.5px) var(--sun), 0 0 0 3.5px var(--sun); }
#menu .seg button:focus-visible { outline: 3px solid var(--sun); outline-offset: -5px; border-radius: 7px; }
#menu .seg button[aria-pressed=true]:focus-visible { outline-color: var(--ink); }
input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 2px 2px 0 0 var(--buoy), 2px 2px 0 3.5px var(--sun), 0 0 0 3.5px var(--sun); }
input[type=range]:focus-visible::-moz-range-thumb { box-shadow: 2px 2px 0 0 var(--buoy), 2px 2px 0 3.5px var(--sun), 0 0 0 3.5px var(--sun); }

/* the alert: a card with a tab that says what kind of question it is, and its buttons on a floor of their own */
#alert { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 44px 22px 22px; pointer-events: auto; user-select: none; background: color-mix(in srgb, var(--ink) 62%, transparent); --k: var(--coral); }
#alert.info { --k: var(--sea); } #alert.win { --k: var(--sun); }
#alertbox { position: relative; width: min(430px, 100%); padding: 20px 20px 0; background: var(--raise); border: 3px solid var(--ink); border-radius: var(--big); box-shadow: 8px 8px 0 var(--ink), 8px 8px 0 1px var(--line-strong); animation: bubblein .42s linear both; }
#alerttab { position: absolute; left: 16px; top: -3px; translate: 0 -100%; font: 700 12px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); background: var(--k); padding: 4px 12px; border: 3px solid var(--ink); border-bottom: 0; border-radius: 8px 8px 0 0; }
#alertbox h2 { font-size: 24px; line-height: 1.1; letter-spacing: .03em; text-transform: uppercase; } #alertbox p { margin: 8px 0 18px; }
#alertacts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 16px; margin: 0 -20px; padding: 14px 24px 18px 20px; background: var(--slate); border-top: 3px solid var(--ink); border-radius: 0 0 calc(var(--big) - 3px) calc(var(--big) - 3px); }
/* a card bubbles up: past its size and wobbling back, its tab popping a beat later; it bubbles away the same way.
   The veil behind it fades. LEAVE_MS in ui/MenuView.tsx and alert.ts waits out bubbleout. */
@keyframes bubblein { 0% { opacity: 0; scale: .4; } 30% { opacity: 1; scale: 1.07 .96; } 48% { scale: .96 1.04; } 66% { scale: 1.02 .99; } 82% { scale: .995 1.005; } 100% { scale: 1; } }
@keyframes bubbletab { from { opacity: 0; translate: 0 -40%; scale: .6; } }
@keyframes bubbleout { 40% { scale: 1.04; } to { opacity: 0; scale: .55; } }
@keyframes veilin { from { background: transparent; } }
@keyframes veilout { to { background: transparent; } }
#alert, .veil { animation: veilin .18s ease-out both; } .veil.swapped { animation: none; } #alert.leaving, .veil.leaving { animation: veilout .18s ease-in both; }
#alerttab, .dlgtab { animation: bubbletab .24s .14s cubic-bezier(.2, 1.6, .4, 1) both; }
#alert.leaving #alertbox, .veil > .leaving { animation: bubbleout .18s cubic-bezier(.5, 0, .8, .4) both; }
#alert.leaving, .veil.leaving, .veil:has(> .leaving) { pointer-events: none; }
@media (prefers-reduced-motion: reduce) { #alert, #alertbox, #alerttab, .veil, .dlg, .dlgtab, .sheet { animation-duration: .01s !important; animation-delay: 0s !important; } }


/* ---------------------------------------------------------------- the menu: a lobby
   The seal stands in the middle of the picture (it is the game's own, behind the page) and the page keeps to the edges:
   a bar across the top, the sections as words down the left, the invite code under them, the two ways to play bottom right.
   The edges are shaded so words read over whatever the reef puts behind them. */
#menu { position: fixed; inset: 0; z-index: 50; overflow: hidden; pointer-events: auto; user-select: none; }
.lobby { position: relative; height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lobby[data-view=home] { background: linear-gradient(90deg, color-mix(in srgb, var(--ink) 82%, transparent), transparent 36%), linear-gradient(270deg, color-mix(in srgb, var(--ink) 70%, transparent), transparent 32%), linear-gradient(0deg, color-mix(in srgb, var(--ink) 55%, transparent), transparent 20%); }
.lobby[data-view=wait] { background: linear-gradient(180deg, color-mix(in srgb, var(--ink) 94%, transparent) 30%, color-mix(in srgb, var(--ink) 80%, transparent) 46%, transparent 62%), linear-gradient(0deg, color-mix(in srgb, var(--ink) 70%, transparent), transparent 16%); }

/* the bar: who you are, and what you can reach from anywhere */
.topbar { position: relative; z-index: 7; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 7px 22px 10px 16px; background: var(--slate); border-bottom: 3px solid var(--ink); }
.who { display: flex; align-items: center; gap: 14px; min-width: 0; }
#level { flex: none; display: grid; place-items: center; width: 40px; height: 40px; font: 700 19px var(--display); color: var(--ink); background: var(--sun); clip-path: polygon(50% 0, 96% 25%, 96% 75%, 50% 100%, 4% 75%, 4% 25%); }
.whoname { display: grid; min-width: 0; }
#menu #name { width: 9.5em; margin-left: -7px; padding: 0 5px; font: 700 17px/1.25 var(--display); color: var(--ice); background: transparent; border-color: transparent; box-shadow: none; border-radius: 7px; text-overflow: ellipsis; }
#menu #name:hover { border-color: var(--edge); } #menu #name:focus { background: var(--ice); color: var(--ink); border-color: var(--ink); }
#title { font: 700 11px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--sun); white-space: nowrap; }
#xptrack { flex: none; width: 136px; height: 12px; border-radius: 6px; background: var(--raise); border: 2px solid var(--ink); overflow: hidden; } #xpbar { height: 100%; background: var(--aqua); transition: width .6s; }
.xptext { font-size: 12px; color: var(--mist); font-variant-numeric: tabular-nums; white-space: nowrap; }
.baracts { display: flex; align-items: center; gap: 14px; } .baracts button { --sh: 3px; }
.sq { width: 34px; height: 34px; padding: 0; display: grid; place-items: center; } .sq svg { width: 16px; height: 16px; }

.stage { position: relative; min-height: 0; }
body.petseal .stage, body.petseal canvas { cursor: grab; } body.petseal:active .stage, body.petseal:active canvas { cursor: grabbing; }
.lleft { position: absolute; left: 26px; top: 24px; display: grid; gap: 26px; justify-items: start; }
.brand { font-size: 52px; line-height: .9; letter-spacing: .01em; text-transform: uppercase; white-space: nowrap; text-shadow: 3px 3px 0 var(--ink), -1.5px -1.5px 0 var(--ink), 1.5px -1.5px 0 var(--ink), -1.5px 1.5px 0 var(--ink); }
.brand span { color: var(--aqua); }
/* the sections: plain words with an ink outline, the one you are in lit */
#tabs { display: grid; gap: 14px; justify-items: start; }
.word, .word:hover:not(:disabled) { --ow: 0px; --d: 0px; --sh: 0px; display: grid; gap: 2px; padding: 0 4px; text-align: left; background: none; border-radius: 6px; }
.word b { font: 700 28px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; color: var(--ice); text-shadow: 2px 2px 0 var(--ink), -1.5px -1.5px 0 var(--ink), 1.5px -1.5px 0 var(--ink), -1.5px 1.5px 0 var(--ink); transition: color .12s; }
.word small { font: 700 10px var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--mist); text-shadow: 0 1px 0 var(--ink), 0 0 5px var(--ink); }
.word:hover:not(:disabled) { translate: 3px 0; } .word:active:not(:disabled) { translate: 3px 0; } .word:hover b { color: var(--sun-pale); } .word[aria-pressed=true] b { color: var(--sun); }
.invite { position: absolute; left: 26px; bottom: 12px; display: grid; gap: 7px; }
.invite > span { font: 700 11px var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--aqua); text-shadow: 0 1px 0 var(--ink); }
.invite > div { display: flex; align-items: stretch; gap: 16px; padding: 0 6px 6px 0; }
#menu #code { width: 7.6em; text-align: center; font: 700 20px var(--display); letter-spacing: .32em; text-transform: uppercase; padding: 6px 0 6px .32em; }
/* the two ways to play, one over the other */
.playstack { position: absolute; right: 26px; bottom: 12px; width: 318px; display: grid; gap: 18px; padding: 0 6px 6px 0; }
#play, #ready, .sheetfloor .cta { border-radius: var(--big); }
#play { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 16px; padding: 12px 20px 13px 22px; text-align: left; }
#play::before { content: ""; grid-row: span 2; border-left: 24px solid currentColor; border-top: 15px solid transparent; border-bottom: 15px solid transparent; }
#play b { font-size: 32px; line-height: 1; } #play small { font: 600 12px var(--text); letter-spacing: 0; text-transform: none; opacity: .9; }
#browse, #make { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px 11px 20px; border-radius: var(--big); background: var(--sea); --own: var(--sea-deep); }
#make { background: var(--slate); --own: var(--abyss); margin-top: -4px; } #make b { white-space: nowrap; }
#browse b, #make b { font: 700 19px var(--display); letter-spacing: .08em; text-transform: uppercase; } #browse i, #make i { font: 700 12px var(--text); font-style: normal; padding: 2px 10px; border-radius: 99px; background: var(--ink); white-space: nowrap; }
body.placing #play, body.placing #make, body.placing #create, body.placing .matchrow button { opacity: .6; pointer-events: none; }
/* what the menu has to tell you: a solid notice, blue for news and coral for trouble */
#status { position: absolute; z-index: 6; left: 50%; bottom: 16px; translate: -50% 0; max-width: min(520px, calc(100% - 32px)); display: flex; align-items: flex-start; gap: 10px; padding: 9px 14px 10px; font-size: 14px; font-weight: 600; color: var(--ink); background: var(--sea); --own: var(--sea-deep); }
#status::before { content: "i"; flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font: 700 13px/1 var(--display); background: var(--ice); border: 2px solid var(--ink); }
#status.bad { background: var(--coral); --own: var(--coral-deep); } #status.bad::before { content: "!"; } #status:empty { display: none; }
.lobby footer { display: flex; justify-content: space-between; gap: 10px; padding: 0 26px 8px; font-size: 12px; color: var(--mist); text-shadow: 0 1px 0 var(--ink); }
#online::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--kelp); border: 2px solid var(--ink); margin-right: 7px; vertical-align: -1px; }
.lobby[data-view=wait] footer { display: none; }

/* ---------------------------------------------------------------- the panel on the right: locker, career, top seals.
   The camera slides the seal to the left of it, so what you pick shows on the seal as you pick it. */
.side { position: absolute; right: 26px; top: 20px; bottom: 12px; width: min(540px, 46vw); display: flex; flex-direction: column; background: var(--slate); border: 3px solid var(--ink); border-radius: var(--big); box-shadow: 6px 6px 0 var(--ink), 6px 6px 0 1px var(--line-strong); overflow: hidden; animation: sidein .22s cubic-bezier(.2, .9, .3, 1) both; }
@keyframes sidein { from { opacity: 0; translate: 26px 0; } }
.sidehead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 13px 18px 11px; } .sidehead h2 { font-size: 24px; letter-spacing: .05em; text-transform: uppercase; } .sidehead span { font-size: 12px; color: var(--mist); text-align: right; }
.ltabs { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 3px solid var(--ink); }
.ltabs button { display: grid; gap: 1px; padding: 9px 4px 10px; border: 0; border-radius: 0; box-shadow: none; translate: none; background: var(--abyss); --d: 0px; --ow: 0px; }
.ltabs button + button { border-left: 3px solid var(--ink); }
.ltabs b { font: 700 16px var(--display); letter-spacing: .1em; text-transform: uppercase; } .ltabs small { font-size: 11px; font-weight: 500; color: var(--mist); }
.ltabs button[aria-selected=true] { background: var(--sun); color: var(--ink); } .ltabs button[aria-selected=true] small { color: var(--ink); }
.ltabs button:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--sun); } .ltabs button[aria-selected=true]:focus-visible { box-shadow: inset 0 0 0 3px var(--ink); }
/* a tab is part of the strip: it never lifts or sinks like a button. Hovered it lights a little; pressed it starts to turn yellow */
.ltabs button:hover:not(:disabled), .ltabs button:active:not(:disabled) { translate: none; --d: 0px; }
.ltabs button[aria-selected=false]:hover:not(:disabled) { background: color-mix(in srgb, var(--abyss) 70%, var(--raise)); }
.ltabs button[aria-selected=false]:hover:not(:disabled) b { color: var(--sun); }
.ltabs button[aria-selected=false]:active:not(:disabled) { background: color-mix(in srgb, var(--abyss) 72%, var(--sun)); }
.ltabs button[aria-selected=true]:hover:not(:disabled) { background: var(--sun); }
.ltabs button:disabled { opacity: 1; cursor: default; } .ltabs button:disabled b, .ltabs button:disabled small { color: var(--dim); }
.sidebody { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--edge) transparent; display: flex; flex-direction: column; gap: 14px; padding: 16px 14px 18px 16px; }
.sidebody > * { flex: none; }
.sidebody h3, .dlgbody h3 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--aqua); margin-bottom: -6px; }
.sidefoot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 24px 16px 18px; background: var(--abyss); border-top: 3px solid var(--ink); font-size: 13px; color: var(--mist); } .sidefoot b { color: var(--ice); }
.sidefoot button { font: 700 15px var(--display); letter-spacing: .1em; text-transform: uppercase; padding: 6px 20px; }
#coats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px 12px; padding: 0 5px 5px 0; }
.coatcard { display: grid; justify-items: center; gap: 7px; padding: 11px 2px 8px; font-size: 12px; background: var(--abyss); --own: var(--ink); --sh: 3px; white-space: nowrap; overflow: hidden; }
.coatcard i { width: 28px; height: 28px; border-radius: 50%; background: var(--c); border: var(--ow) solid var(--ink); box-shadow: 2.5px 2.5px 0 color-mix(in srgb, var(--c) 58%, var(--black)); }
.coatcard[aria-pressed=true] { background: var(--sun); color: var(--ink); --own: var(--buoy); }
#cels { display: grid; gap: 14px; padding: 0 5px 5px 0; }
.celrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; }
.cel { text-align: left; padding: 10px 14px 11px; display: grid; grid-template-columns: 1fr auto; gap: 1px 12px; background: var(--abyss); --own: var(--ink); --sh: 3px; }
.cel b { font: 700 18px var(--display); letter-spacing: .03em; text-transform: uppercase; } .cel span { grid-column: 1; color: var(--mist); font-size: 13px; font-weight: 500; line-height: 1.35; }
.cel small { grid-area: 1 / 2 / 3 / 3; align-self: center; font: 700 11px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--sun); white-space: nowrap; }
.cel[aria-pressed=true] { background: var(--sun); color: var(--ink); --own: var(--buoy); } .cel[aria-pressed=true] span, .cel[aria-pressed=true] small { color: var(--ink); } .cel:disabled { opacity: .55; }
.pv { --sh: 3px; }
/* money: a picture and a number. Shells are sand-orange, pearls the pale blue of the sea */
.coins { display: inline-flex; align-items: center; gap: 4px; font: 700 14px var(--display); letter-spacing: .03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.coins svg { width: 16px; height: 16px; flex: none; } .coins.shells svg { color: var(--buoy-hot); } .coins.pearls svg { color: var(--sea-pale); }
.purse { display: inline-flex; align-items: center; gap: 12px; }
.wallet { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.purse-row { display: grid; gap: 2px; padding: 9px 12px; background: var(--abyss); border: var(--ow) solid var(--ink); border-radius: var(--rad); } .purse-row .coins { font-size: 22px; } .purse-row .coins svg { width: 22px; height: 22px; } .purse-row > span:last-child { font-size: 12px; color: var(--mist); }
.ltabs.two { grid-template-columns: repeat(2, 1fr); } .ltabs.three { grid-template-columns: repeat(3, 1fr); }
.coatcard .cost, .coatcard .have { font: 700 11px var(--display); letter-spacing: .08em; text-transform: uppercase; }
.coatcard .cost .coins { font-size: 12px; } .coatcard .cost .coins svg { width: 13px; height: 13px; }
.have { color: var(--kelp); } .cel .have { color: var(--kelp); } .cel .cost { color: var(--ice); }
.coatcard[aria-pressed=true] .have, .cel[aria-pressed=true] .have { color: var(--ink); } .coatcard[aria-pressed=true] .coins svg, .cel[aria-pressed=true] .coins svg { color: var(--ink); }
.coatcard.owned:not([aria-pressed=true]), .celrow.owned .cel:not([aria-pressed=true]) { opacity: .6; }
.toshop { justify-self: start; align-self: flex-start; margin-top: 4px; }
.buyname { display: grid; gap: 2px; min-width: 0; } .buyname b { font: 700 18px var(--display); letter-spacing: .04em; text-transform: uppercase; } .buyname .bad { font-style: normal; color: var(--coral-pale); font-size: 12px; }
.buyacts { display: flex; gap: 10px; flex: none; } .buyacts button { display: inline-flex; align-items: center; gap: 8px; }
.buy.primary .coins svg { color: var(--ink); }
#recent .roomrow .coins { margin-left: 10px; }
.roomrow, .tile { background: var(--abyss); border: var(--ow) solid var(--ink); border-radius: var(--rad); }
.tile { padding: 9px 6px; text-align: center; display: grid; }
.tile b { font: 700 20px var(--display); font-variant-numeric: tabular-nums; } .tile span { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--mist); }
/* the career: four numbers that say most, the rest in groups, the points as one bar, the last rounds */
.big4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; } .big4 .tile { padding: 10px 6px 8px; } .big4 .tile b { font-size: 26px; color: var(--sun); }
.groups { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .groups.one { grid-template-columns: 1fr; margin-top: -6px; } .groups.one .grp { grid-template-columns: auto 1fr 1fr; column-gap: 22px; align-items: center; } .groups.one h4 { margin: 0; }
.grp { background: var(--abyss); border: var(--ow) solid var(--ink); border-radius: var(--rad); }
.grp { display: grid; gap: 3px; align-content: start; padding: 8px 12px; }
.grp h4 { display: flex; gap: 6px; align-items: center; margin: 0 0 3px; font: 700 11px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--aqua); } .grp h4 span { display: flex; } .grp h4 svg { width: 13px; height: 13px; }
.kv { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--mist); } .kv b { color: var(--ice); font-variant-numeric: tabular-nums; }
.trades { gap: 8px; padding: 10px 12px; }
.stack { display: flex; height: 18px; background: var(--raise); border: 2px solid var(--ink); border-radius: 6px; overflow: hidden; } .stack i { display: block; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--mist); } .legend b { margin-left: 4px; color: var(--ice); font-variant-numeric: tabular-nums; }
.legend span::before { content: ''; display: inline-block; width: 10px; height: 10px; margin-right: 5px; border-radius: 3px; background: var(--c); border: 1.5px solid var(--ink); vertical-align: -1px; }
.form { display: flex; gap: 5px; align-items: center; font-size: 12px; color: var(--mist); } .form span { margin-left: auto; }
.form i { width: 24px; height: 24px; border-radius: 6px; border: 2px solid var(--ink); display: grid; place-items: center; font: 700 12px var(--display); font-style: normal; color: var(--ink); }
.form .w { background: var(--sun); } .form .p { background: var(--aqua); } .form .f { background: var(--raise); color: var(--ice); } .form .l { background: transparent; border-style: dashed; border-color: var(--edge); color: var(--mist); }
.privacy { display: flex; align-items: center; gap: 10px; min-width: 0; } .lockline { display: flex; align-items: center; gap: 5px; white-space: nowrap; color: var(--mist); } .lockline svg { display: block; width: 14px; height: 14px; }
.sidefoot .privacy button { font-family: inherit; font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; padding: 6px 12px; }
.sidefoot .privacy .seg button { padding: 6px 11px; }
.share { display: inline-flex; align-items: center; gap: 6px; } .share span { display: flex; } .share svg { width: 14px; height: 14px; }
/* another seal's career, on a card */
.dlg.seal { --k: var(--sun); background: var(--slate); width: min(620px, 100%); } .dlg.seal .dlgbody { gap: 14px; padding: 0 16px 18px; }
.sealhead { position: sticky; top: 0; z-index: 2; display: flex; gap: 14px; align-items: center; margin: 0 -16px; padding: 16px 18px 12px; background: var(--slate); border-bottom: 3px solid var(--ink); }
.badge { flex: none; width: 46px; height: 46px; display: grid; place-items: center; background: var(--sun); color: var(--ink); font: 700 22px var(--display); clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%); }
.sealhead h2 { display: flex; align-items: center; gap: 9px; font-size: 26px; text-transform: none; } .sealhead h2 u { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ink); }
.sealhead small { font: 700 12px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--sun); }
.sealhead .since { margin-left: auto; text-align: right; font-size: 12px; color: var(--mist); }
.private { display: grid; justify-items: center; gap: 8px; padding: 26px 20px 30px; text-align: center; color: var(--mist); background: var(--abyss); border: 2px dashed var(--edge); border-radius: var(--rad); }
.private > span:first-child svg { width: 34px; height: 34px; } .private b { color: var(--ice); font: 700 18px var(--display); letter-spacing: .04em; text-transform: uppercase; }
/* the ways to another seal's career: a name in the waiting room, the seals on the pause screen, a row of top seals */
.namelink { all: unset; cursor: pointer; text-decoration: underline dotted var(--edge) 2px; text-underline-offset: 3px; } .namelink:hover { color: var(--sun); } .namelink:focus-visible { outline: 2px solid var(--sun); outline-offset: 2px; }
.seallink { cursor: pointer; } .seallink:hover { background: var(--panel); } .seallink:focus-visible { outline: 2px solid var(--sun); outline-offset: 2px; }
.sealchips { display: flex; flex-wrap: wrap; gap: 8px; max-width: 420px; } .sealchips button { display: inline-flex; align-items: center; gap: 7px; } .sealchips u { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink); } .sealchips small { color: var(--mist); font-size: 11px; }
#recent, #leaders { display: grid; gap: 8px; }
.roomrow { display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 12px; }
.roomrow div { flex: 1; min-width: 0; display: grid; } .roomrow div b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .roomrow div span { font-size: 12px; color: var(--mist); }
.roomrow i { font-style: normal; font-variant-numeric: tabular-nums; color: var(--mist); } .roomrow em { font-style: normal; font-weight: 700; color: var(--aqua); font-variant-numeric: tabular-nums; }
.roomrow u { width: 14px; height: 14px; border-radius: 50%; flex: none; border: 2px solid var(--ink); }

/* ---------------------------------------------------------------- what stands in front of the lobby: the match list and the cards */
.veil { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 78px 26px 22px; background: color-mix(in srgb, var(--ink) 70%, transparent); }
.veil.top { z-index: 8; padding: 84px 26px 14px; background: color-mix(in srgb, var(--ink) 78%, transparent); }
.dash { background: transparent; border-style: dashed; border-color: var(--edge); box-shadow: none; color: var(--mist); --d: 0px; } .dash:disabled { opacity: .7; }
.sheet { position: relative; width: min(660px, 100%); height: min(620px, 100%); display: flex; flex-direction: column; background: var(--slate); border: 3px solid var(--ink); border-radius: var(--big); box-shadow: 8px 8px 0 var(--ink), 8px 8px 0 1px var(--line-strong); animation: bubblein .42s linear both; }
/* the way out is nothing like the buttons in the list: round, coral, on the corner */
.x { position: absolute; z-index: 1; right: -15px; top: -15px; width: 38px; height: 38px; padding: 0 0 3px; border-radius: 50%; display: grid; place-items: center; font: 700 24px/1 var(--display); background: var(--coral); --own: var(--coral-deep); --sh: 3px; }
.sheethead { display: flex; align-items: center; gap: 14px; padding: 14px 18px 10px; } .sheethead h2 { font-size: 24px; letter-spacing: .05em; text-transform: uppercase; }
.live { font: 700 11px var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--kelp); } .live.off { color: var(--mist); }
.live::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 2px var(--ink); animation: livepulse 1.6s ease-in-out infinite; }
@keyframes livepulse { 50% { opacity: .35; } }
.sheetbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 0 22px 12px 18px; }
.cols, .matchrow { display: grid; grid-template-columns: minmax(0, 1fr) 52px 104px 80px; align-items: center; gap: 12px; }
.cols { padding: 0 34px 6px 32px; font: 700 10px var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--mist); } .cols span:nth-child(n+2) { text-align: right; }
.matchrows { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--edge) transparent; display: flex; flex-direction: column; gap: 10px; padding: 2px 22px 14px 18px; }
/* a match: a dark block with a spine in its mode's colour */
.matchrow { position: relative; flex: none; padding: 8px 10px 9px 24px; background: var(--abyss); border: var(--ow) solid var(--ink); border-radius: var(--rad); --k: var(--aqua); }
.matchrow::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: var(--k); border-right: var(--ow) solid var(--ink); border-radius: calc(var(--rad) - var(--ow)) 0 0 calc(var(--rad) - var(--ow)); }
.matchrow[data-mode=teams] { --k: var(--sea); } .matchrow[data-mode=duel] { --k: var(--coral); }
.matchrow > div { display: grid; min-width: 0; } .matchrow b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .matchrow span { font-size: 12px; color: var(--mist); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.matchrow i { font-style: normal; font-size: 13px; text-align: right; color: var(--mist); font-variant-numeric: tabular-nums; } .matchrow button { --sh: 2px; margin-right: 3px; }
.matchrow.ended { background: transparent; border-style: dashed; border-color: var(--edge); color: var(--mist); } .matchrow.ended::before { display: none; } .matchrow.ended b { text-decoration: line-through; font-weight: 600; }
.newtag { margin-left: 8px; padding: 0 6px; font: 700 10px var(--display); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); background: var(--aqua); border-radius: 4px; vertical-align: 1px; }
.sheetfloor { padding: 14px 24px 18px 18px; background: var(--abyss); border-top: 3px solid var(--ink); border-radius: 0 0 calc(var(--big) - 3px) calc(var(--big) - 3px); }
.sheetfloor .cta { width: 100%; font-size: 19px; padding: 10px 20px; }

/* a card: a tab that says what it is, its buttons on a floor of their own (the alert's shape) */
.dlg { position: relative; width: min(440px, 100%); background: var(--raise); border: 3px solid var(--ink); border-radius: var(--big); box-shadow: 8px 8px 0 var(--ink), 8px 8px 0 1px var(--line-strong); animation: bubblein .42s linear both; --k: var(--sea); }
.dlg.wide { width: min(680px, 100%); } .dlg.make { --k: var(--buoy); } .dlg.open { --k: var(--kelp); }
.dlgtab { position: absolute; left: 16px; top: -3px; translate: 0 -100%; font: 700 12px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); background: var(--k); padding: 4px 12px; border: 3px solid var(--ink); border-bottom: 0; border-radius: 8px 8px 0 0; }
.dlgbody { display: grid; gap: 12px; padding: 16px 14px 16px 18px; max-height: calc(100vh - 200px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--edge) transparent; }
.dlgbody h2 { font-size: 24px; line-height: 1.1; letter-spacing: .03em; text-transform: uppercase; overflow-wrap: anywhere; } .dlgbody p { margin: 0; font-size: 14px; }
.dlgfloor { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 14px 16px; padding: 14px 24px 18px 18px; background: var(--slate); border-top: 3px solid var(--ink); border-radius: 0 0 calc(var(--big) - 3px) calc(var(--big) - 3px); }
.dlgfloor button { min-height: 46px; padding-block: 0; } .dlgfloor .cta { font-size: 17px; padding-inline: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; } .tags span { padding: 2px 10px; font-size: 11px; font-weight: 700; border-radius: 99px; background: var(--ink); white-space: nowrap; } .tags span.on { background: var(--aqua); color: var(--ink); }
.bigcode, .codebox code { font: 700 30px var(--display); letter-spacing: .3em; color: var(--sun); user-select: text; }
.bigcode { padding: 6px 12px 6px 24px; font-size: 44px; }
.sharecode { display: grid; justify-items: center; gap: 4px; padding: 12px 12px 14px; background: var(--abyss); border: var(--ow) solid var(--ink); border-radius: var(--rad); }
.sharenotes { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; } .sharenotes li { position: relative; padding-left: 20px; font-size: 15px; font-weight: 500; line-height: 1.35; color: var(--ice); }
.sharenotes li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 8px; height: 8px; border-radius: 2px; background: var(--kelp); border: 2px solid var(--ink); }
.dlg.open .dlgfloor { justify-content: stretch; } .dlg.open .dlgfloor button { flex: 1 1 0; white-space: nowrap; }
.modeopt { transition: translate .08s, box-shadow .08s; }
/* the names of the seals in the waiting room's water: drawn over the picture, under the page */
#pondtags { position: fixed; inset: 0; z-index: 45; pointer-events: none; overflow: hidden; }
#pondtags span { position: absolute; left: 0; top: 0; padding: 2px 10px 3px; white-space: nowrap; font: 700 13px var(--text); color: var(--ice); background: var(--slate); border: var(--ow) solid var(--ink); border-radius: 99px; box-shadow: 2px 2px 0 var(--ink); transition: opacity .2s; }
#pondtags span[data-team="1"] { border-color: var(--coral); } #pondtags span[data-team="2"] { border-color: var(--sea); }
#pondtags span.ready { background: var(--kelp); color: var(--ink); border-color: var(--ink); } #pondtags span.ready::after { content: " ✓"; }
#pondtags span.me { outline: 2.5px solid var(--sun); outline-offset: 1.5px; }
.matchname { display: flex; align-items: center; gap: 16px; padding-right: 6px; } .matchname input { flex: 1; min-width: 0; font: 700 20px var(--display); }
.modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-right: 6px; }
.modeopt { position: relative; display: grid; align-content: start; gap: 3px; padding: 10px 10px 10px 24px; text-align: left; background: var(--abyss); --own: var(--ink); --k: var(--aqua); }
.modeopt::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: var(--k); border-right: var(--ow) solid var(--ink); border-radius: calc(var(--rad) - var(--ow)) 0 0 calc(var(--rad) - var(--ow)); }
.modeopt[data-mode=teams] { --k: var(--sea); } .modeopt[data-mode=duel] { --k: var(--coral); }
.modeopt b { font: 700 19px var(--display); letter-spacing: .03em; text-transform: uppercase; } .modeopt span { font-size: 12px; font-weight: 500; line-height: 1.35; color: var(--mist); }
.modeopt small { margin-top: 3px; font: 700 10px var(--text); letter-spacing: .12em; text-transform: uppercase; }
.modeopt[aria-pressed=true] { background: var(--sun); color: var(--ink); --own: var(--buoy); } .modeopt[aria-pressed=true] span { color: var(--ink); }
.dials { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.dial, .rowbox { background: var(--abyss); border: var(--ow) solid var(--ink); border-radius: var(--rad); }
.dial { display: grid; justify-items: center; gap: 6px; padding: 9px 4px 12px; }
.dial > span, .rowbox > span { font: 700 10px var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--mist); }
.dial .stepper { gap: 2px; } .dial .stepper button { width: 26px; height: 26px; font-size: 16px; } .dial .stepper output { min-width: 62px; font: 700 17px var(--display); }
.rowbox { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px 12px 14px; } .rowbox.col { display: grid; }
.weapons { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; padding: 0 4px 4px 0; }
.wp { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0 8px; padding: 6px 6px 7px 8px; text-align: left; --sh: 3px; }
.wp i { grid-row: span 2; width: 14px; height: 14px; border-radius: 4px; background: var(--c); border: 2px solid var(--ink); }
.wp b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .wp small { font: 700 9px var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--kelp); }
.wp:disabled { opacity: 1; } .wp:disabled small { color: var(--mist); }
.wp[aria-pressed=false] { background: transparent; border-style: dashed; border-color: var(--edge); box-shadow: none; color: var(--mist); --d: 0px; } .wp[aria-pressed=false] b { text-decoration: line-through; font-weight: 600; }
.wp[aria-pressed=false] i { background: transparent; border: 2px dashed var(--edge); } .wp[aria-pressed=false] small { color: var(--mist); }
.field { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; } .field > span { font-size: 14px; font-weight: 600; white-space: nowrap; }
#regions { display: flex; flex-wrap: wrap; gap: 12px; padding: 0 6px 6px 0; }
.chip { display: grid; text-align: left; padding: 6px 12px; line-height: 1.25; background: var(--abyss); --own: var(--ink); --sh: 3px; }
.chip b { font-size: 14px; } .chip span { font-size: 11px; font-weight: 500; color: var(--mist); font-variant-numeric: tabular-nums; }
.chip[aria-pressed=true] { background: var(--aqua); color: var(--ink); --own: var(--aqua-deep); } .chip[aria-pressed=true] span { color: var(--ink); }

/* ---------------------------------------------------------------- the waiting room: a match that has not started.
   The page has the top of the picture; the water below it is where the seals who are in look back at you. */
.wait { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(270px, 350px) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: 12px 34px; padding: 22px 26px 12px; }
.waitinfo { display: grid; align-content: start; justify-items: start; gap: 12px; min-width: 0; }
.waittag { padding: 2px 10px; font: 700 11px var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); background: var(--sun); border: 2px solid var(--ink); border-radius: 6px; } .waittag.go { background: var(--kelp); }
.waitinfo h1 { font-size: clamp(26px, 3.1vw, 40px); line-height: 1; letter-spacing: .02em; text-transform: uppercase; overflow-wrap: anywhere; text-shadow: 2px 2px 0 var(--ink); }
.waitinfo .tags { flex: none; } .waitinfo .eyebrow { margin-top: 6px; }
.codebox { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding: 9px 20px 12px 16px; background: var(--abyss); border: var(--ow) solid var(--ink); border-radius: var(--rad); } .codebox button { --sh: 3px; padding: 6px 12px; }
.waitseats { min-height: 0; max-height: 58%; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--edge) transparent; display: grid; align-content: start; gap: 12px; padding-right: 2px; }
.seatshead { display: flex; align-items: baseline; gap: 16px; } .seatshead h2 { font-size: 20px; letter-spacing: .1em; text-transform: uppercase; } .seatshead span { font-size: 13px; color: var(--mist); }
.seats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 0 6px 6px 0; }
.seat { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0 10px; min-height: 56px; padding: 8px 8px 9px 10px; background: var(--slate); border: var(--ow) solid var(--ink); border-radius: var(--rad); box-shadow: 4px 4px 0 0 var(--abyss), 4px 4px 0 var(--ow) var(--ink); transition: background .15s, box-shadow .15s; }
.seat u { grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; border: var(--ow) solid var(--ink); }
.seat b { grid-column: 2; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .seat span { grid-column: 2; font-size: 11px; color: var(--mist); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seat em { margin-right: 5px; padding: 0 4px; font: 700 9px var(--text); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); background: var(--sun); border-radius: 3px; } .seat em.host { background: var(--buoy); }
.seat.me { background: color-mix(in srgb, var(--sun) 18%, var(--slate)); }
/* ready: the whole card goes green */
.seat.ready { background: var(--kelp); color: var(--ink); box-shadow: 4px 4px 0 0 var(--kelp-deep), 4px 4px 0 var(--ow) var(--ink); } .seat.ready span { color: var(--ink); font-weight: 600; } .seat.ready em { background: var(--ink); color: var(--kelp); }
.seat.open { background: color-mix(in srgb, var(--ink) 40%, transparent); border-style: dashed; border-color: var(--edge); box-shadow: none; color: var(--mist); } .seat.open u { grid-row: auto; border-style: dashed; border-color: var(--edge); } .seat.open b { font-weight: 600; }
.kick { grid-area: 1 / 3 / 3 / 4; --d: 0px; padding: 1px 6px; font: 700 10px var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--coral-pale); background: transparent; border: 2px dashed currentColor; border-radius: 6px; box-shadow: none; }
.seat.ready .kick { color: var(--ink); } .kick:hover:not(:disabled) { background: var(--coral); color: var(--ink); border-style: solid; border-color: var(--ink); translate: none; }
.pods { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; } .pod { display: grid; gap: 10px; align-content: start; --k: var(--coral); } .pod[data-team="2"] { --k: var(--sea); } .pod .seats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.podhead { display: flex; align-items: center; gap: 12px; min-height: 30px; padding: 0 6px 0 10px; border-left: 10px solid var(--k); } .podhead b { font: 700 18px var(--display); letter-spacing: .1em; text-transform: uppercase; } .podhead span { flex: 1; font-size: 12px; color: var(--mist); } .podhead button { --sh: 2px; }
.waitbar { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 14px 22px; padding: 0 6px 6px 0; }
.waitbar .grow { flex: 1; } .fill { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; cursor: pointer; text-shadow: 0 1px 0 var(--ink); }
.count { font-weight: 700; font-variant-numeric: tabular-nums; text-shadow: 0 1px 0 var(--ink); } .count.go { font: 700 20px var(--display); letter-spacing: .04em; color: var(--kelp); }
#ready { display: flex; align-items: center; gap: 14px; min-width: 232px; justify-content: center; font-size: 30px; padding: 10px 30px 11px 26px; }
#ready::before { content: ""; border-left: 20px solid currentColor; border-top: 13px solid transparent; border-bottom: 13px solid transparent; }
#ready.on { background: var(--raise); --own: var(--slate); font-size: 22px; } #ready.on::before { display: none; }

/* the first match: one tip at a time, low in the middle, with the keys as the player has them */
#coach { position: fixed; left: 50%; bottom: 24px; translate: -50% 0; display: grid; justify-items: center; gap: 3px; padding: 9px 20px 11px; max-width: min(560px, calc(100vw - 32px)); text-align: center; background: color-mix(in srgb, var(--abyss) 88%, transparent); border: 3px solid var(--ink); border-radius: var(--big); box-shadow: 5px 5px 0 var(--ink); transition: opacity .25s; }
#coach.away { opacity: 0; } #coach small { font: 700 10px var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--aqua); }
#coach div { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; } #coach b { font: 700 20px var(--display); letter-spacing: .03em; margin-left: 6px; }
#coach kbd { padding: 1px .55em; font-size: 14px; }
#coach span { font-size: 13px; font-weight: 500; color: var(--mist); } #coach.ok { border-color: var(--kelp); } #coach.ok b { color: var(--kelp); } #coach.ok kbd { display: none; }
/* the match list says where a match is and how far that is from you, together */
.matchrow i.where { display: grid; line-height: 1.2; color: var(--ice); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.matchrow i.where small { font-size: 12px; font-weight: 600; color: var(--mist); } .where small[data-ping=good] { color: var(--kelp); } .where small[data-ping=fair] { color: var(--sun); } .where small[data-ping=poor] { color: var(--coral); }
/* where you play: a line over the quick dive that opens the regions */
#where { display: flex; align-items: baseline; gap: 8px; padding: 7px 12px 8px 14px; background: var(--abyss); --own: var(--ink); --sh: 3px; text-align: left; }
#where span { font: 700 10px var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--mist); } #where b { flex: 1; min-width: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
#where i { font: 700 12px var(--text); font-style: normal; color: var(--aqua); }
#hostregions { display: flex; flex-wrap: wrap; gap: 12px; padding: 0 6px 4px 0; }
.dlgbody p.soft { color: var(--mist); font-weight: 500; margin-top: -6px; }
/* settings: one list to scroll, and a key in each of an action's two places */
.floorleft { margin-right: auto; }
.setbox { display: grid; gap: 4px; padding: 8px 14px 10px; background: var(--abyss); border: var(--ow) solid var(--ink); border-radius: var(--rad); }
.keyhead, .keyrow { display: grid; grid-template-columns: minmax(0, 1fr) 128px 128px; align-items: center; gap: 10px; }
.keyhead { padding: 0 12px 0 0; margin-bottom: -6px; } .keyhead h3 { margin: 0; } .keyhead span { font: 700 10px var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--mist); text-align: center; }
.keyrow { padding: 6px 12px 8px 14px; margin-top: -4px; background: var(--abyss); border: var(--ow) solid var(--ink); border-radius: var(--rad); }
.keyrow > span { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .keyrow small { font-weight: 500; color: var(--mist); }
.key { --sh: 3px; padding: 4px 6px; font: 700 13px var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.key.none { background: transparent; border-style: dashed; border-color: var(--edge); box-shadow: none; color: var(--mist); }
.key.listen { background: var(--sun); color: var(--ink); --own: var(--buoy); }
.keyhint { font-size: 13px; font-weight: 500; color: var(--mist); } .keyhint kbd { font-size: 11px; }

/* a narrow or short window: one column you scroll */
@media (max-width: 900px), (max-height: 520px) {
  #menu { overflow-y: auto; } .lobby { height: auto; min-height: 100%; }
  .topbar { flex-wrap: wrap; padding: 8px 16px 10px; } .xptext, #fullscreen { display: none; } #xptrack { width: 90px; }
  .stage { display: flex; flex-direction: column; gap: 16px; padding: 16px; }
  .lleft, .invite, .playstack, .side, .wait, #status { position: static; translate: none; } .lleft { gap: 14px; } .brand { font-size: 40px; }
  #tabs { grid-template-columns: repeat(2, auto); gap: 10px 22px; } .word b { font-size: 22px; }
  .playstack { order: -1; width: auto; margin-top: 34vh; } .side { width: auto; max-height: none; } .sidebody { overflow: visible; }
  #coats { grid-template-columns: repeat(4, minmax(0, 1fr)); } .big4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .groups { grid-template-columns: 1fr; }
  .veil { position: fixed; padding: 56px 12px 12px; } .x { right: -8px; }
  .cols, .matchrow { grid-template-columns: minmax(0, 1fr) 40px 74px; } .cols span:nth-child(3), .matchrow i:nth-of-type(2) { display: none; }
  .modes { grid-template-columns: 1fr; } .dials { grid-template-columns: repeat(2, minmax(0, 1fr)); } .weapons { grid-template-columns: repeat(2, minmax(0, 1fr)); } .matchname { flex-wrap: wrap; }
  .wait { display: flex; flex-direction: column; padding: 0; } .waitseats { max-height: none; overflow: visible; margin-top: 30vh; } .seats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pods { grid-template-columns: 1fr; }
  #ready { flex: 1; } .lobby footer { flex-wrap: wrap; padding: 0 16px 8px; }
  .keyhead, .keyrow { grid-template-columns: minmax(0, 1fr) 84px 84px; gap: 6px; } .keyhint { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------------------------------------------------------------- paused: the lobby's layout over a match that carries on, dimmed */
.lobby.pause { display: block; background: linear-gradient(90deg, color-mix(in srgb, var(--ink) 96%, transparent) 0, color-mix(in srgb, var(--ink) 86%, transparent) 34%, color-mix(in srgb, var(--ink) 66%, transparent) 62%, color-mix(in srgb, var(--ink) 80%, transparent) 100%); }
body.paused #feed, body.paused #chal, body.paused #toast, body.paused #coach { visibility: hidden; }
.pausebg { position: absolute; inset: 0; cursor: pointer; }
.pauseleft { position: absolute; left: 40px; top: 40px; bottom: 30px; width: min(420px, calc(100% - 80px)); display: flex; flex-direction: column; align-items: flex-start; gap: 8px; pointer-events: none; }
.pauseleft > * { pointer-events: auto; }
.pauseleft h1 { margin: 4px 0 2px; font: 700 clamp(30px, 4vw, 46px)/1 var(--display); letter-spacing: .02em; text-transform: uppercase; overflow-wrap: anywhere; }
.pauseleft .tags { flex: none; }
.conn { margin: 2px 0 0; font: 600 13px var(--text); color: var(--mist); text-shadow: 0 1px 0 var(--ink); } .conn b { color: var(--ice); font-weight: 700; }
.pauseleft nav { display: grid; gap: 14px; margin-top: 24px; justify-items: start; }
.pauseleft .word b { font: 700 36px/1 var(--display); letter-spacing: .03em; text-transform: uppercase; } .pauseleft .word small { font: 600 11px var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--mist); }
.pauseleft .word.go b { color: var(--sun); } .pauseleft .word.out b { color: var(--coral); }
.pauseleft .codebox { margin-top: auto; }
.pauseleft .pauseseals { margin-top: 26px; }
/* the standings are the game's own card, lifted above the pause screen: one board, the same in both */
body.paused #hud { opacity: 1; z-index: 51; } body.paused #hud > :not(#board) { visibility: hidden; } body.paused #board { display: block !important; }
@media (max-width: 820px) { body.paused #board { display: none !important; } .pauseleft { left: 20px; top: 24px; bottom: 20px; width: calc(100% - 40px); } }

/* ---------------------------------------------------------------- the account, the small print, the banner */
button.wide { width: 100%; } .dlgbody .cta.wide { font-size: 17px; padding: 11px 16px; }
.signin { display: grid; gap: 10px; } .signin label { font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--mist); }
#menu .signin input { width: 100%; font-size: 16px; } #menu .signin .otp { text-align: center; font: 700 26px var(--display); letter-spacing: .42em; padding-left: .42em; }
.fine { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--mist); font-weight: 500; }
.fine button, .legallinks button { all: unset; cursor: pointer; color: var(--aqua); text-decoration: underline; text-underline-offset: 2px; } .fine button:focus-visible, .legallinks button:focus-visible { outline: 2px solid var(--sun); outline-offset: 2px; border-radius: 3px; }
.or { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mist); } .or::before, .or::after { content: ""; flex: 1; height: 2px; background: var(--line-strong); }
button.discord { --own: var(--urchin-deep); background: var(--urchin); color: var(--ice); border-color: var(--ink); font-weight: 700; font-size: 16px; padding: 11px 16px; }
.formerror { margin: 0; padding: 8px 12px; font-size: 14px; font-weight: 600; color: var(--ice); background: color-mix(in srgb, var(--coral) 30%, var(--abyss)); border: var(--ow) solid var(--ink); border-radius: var(--rad); }
.signins { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.signins li { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 10px; padding: 9px 12px; background: var(--abyss); border: var(--ow) solid var(--ink); border-radius: var(--rad); }
.signins b { font-size: 14px; } .signins span { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; user-select: text; } .signins small { font-size: 12px; color: var(--mist); }
.legallinks { display: flex; gap: 14px; } .lobby footer .legallinks button { color: var(--mist); }
.legal { display: grid; gap: 10px; user-select: text; } .legal h2 { margin: 0; } .legal h3 { margin: 10px 0 0; } .legal p, .legal li { margin: 0; font-size: 14px; line-height: 1.55; font-weight: 500; color: var(--ice); overflow-wrap: anywhere; }
/* about us: what the game is, and a way to write to us */
.dlgbody h2 .brandtail { color: var(--aqua); } .dlgbody p.about { font-size: 15px; font-weight: 500; line-height: 1.5; color: var(--ice); }
.aboutcontact { display: grid; gap: 8px; margin-top: 4px; padding: 12px 14px 14px; background: var(--abyss); border: var(--ow) solid var(--ink); border-radius: var(--rad); }
.aboutcontact p { color: var(--ice); font-weight: 500; }
.contactrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.contactrow .mail { font: 700 20px var(--display); letter-spacing: .02em; color: var(--sun); text-decoration: none; overflow-wrap: anywhere; user-select: text; }
.contactrow .mail:hover { text-decoration: underline; text-underline-offset: 3px; } .contactrow .mail:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; border-radius: 3px; }
.dlgbody p.aboutbuild { margin-top: 0; font-size: 12px; }
.legal ul { display: grid; gap: 6px; margin: 0; padding-left: 20px; } .legaldate { color: var(--mist) !important; }
/* the same words as pages of their own: /terms and /privacy */
html:has(body.legalpage), body.legalpage { height: auto; overflow: auto; background: var(--abyss); }
body.legalpage main { max-width: 760px; margin: 0 auto; padding: 28px max(18px, env(safe-area-inset-left, 0px)) 60px; } body.legalpage h1 { font: 700 34px var(--display); margin: 8px 0 4px; } body.legalpage h2 { font: 700 20px var(--display); margin: 18px 0 0; }
body.legalpage a { color: var(--aqua); } .legalnav { color: var(--mist) !important; }
.adbox { position: absolute; left: 50%; bottom: 10px; translate: -50% 0; width: 468px; min-height: 60px; display: grid; place-items: center; pointer-events: auto; }
.adbox > div { max-width: 100%; }
@media (max-width: 1240px) { .adbox { display: none; } }
.sw input:disabled + i { opacity: .5; cursor: default; }

/* A button that is switched on keeps its own colour under the mouse, a shade lighter: the plain hover (ui.css) would paint it grey. */
.chip:hover:not(:disabled) { background: var(--slate); }
.chip[aria-pressed=true]:hover:not(:disabled) { background: color-mix(in srgb, var(--aqua) 86%, var(--white)); }
.coatcard[aria-pressed=true]:hover:not(:disabled), .cel[aria-pressed=true]:hover:not(:disabled), .modeopt[aria-pressed=true]:hover:not(:disabled) { background: color-mix(in srgb, var(--sun) 86%, var(--white)); }
button.discord:hover:not(:disabled) { background: color-mix(in srgb, var(--urchin) 88%, var(--white)); }
.key.listen:hover:not(:disabled) { background: var(--sun); }
.wp[aria-pressed=false]:hover:not(:disabled) { background: var(--line); }

/* ---------------------------------------------------------------- a quick dive, looking for a match */
.dlg.searching { width: min(340px, 100%); } .searching .dlgbody { justify-items: stretch; gap: 14px; padding: 18px 18px 16px; } .searching h2 { margin: 0; }
.dots::after { content: ""; animation: dots 1.2s steps(4) infinite; } @keyframes dots { 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
.sonar { position: relative; justify-self: center; width: 150px; aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--ink); overflow: hidden;
  background: radial-gradient(circle, var(--aqua) 0 2px, transparent 3px), repeating-radial-gradient(circle, transparent 0 22px, color-mix(in srgb, var(--aqua) 30%, transparent) 22px 24px), var(--abyss); }
.sonar::before { content: ""; position: absolute; inset: 0; background: conic-gradient(from 0deg, transparent 72%, color-mix(in srgb, var(--aqua) 75%, transparent)); animation: sweep 1.5s linear infinite; /* SWEEP_MS in MenuView.tsx */ }
@keyframes sweep { to { rotate: 360deg; } }
.sonar s { position: absolute; width: 9px; height: 9px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--sun); border: 2px solid var(--ink); animation: blip .3s cubic-bezier(.2, 1.6, .4, 1) both; } .sonar s.big { width: 12px; height: 12px; margin: -8px 0 0 -8px; }
@keyframes blip { from { opacity: 0; scale: .2; } }
/* the match the dive found: it lights up green and rings; a fresh one pops up at once */
.sonar s.ours { width: 13px; height: 13px; margin: -8px 0 0 -8px; background: var(--kelp); z-index: 1; animation: blip .3s cubic-bezier(.2, 1.6, .4, 1) both; animation-delay: 0s !important; }
.sonar s.ours::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--kelp-pale); animation: ping .7s ease-out infinite; }
@keyframes ping { from { scale: .6; opacity: 1; } to { scale: 2.2; opacity: 0; } }
.searchbar { height: 14px; background: var(--abyss); border: var(--ow) solid var(--ink); border-radius: 8px; overflow: hidden; }
.searchbar i { display: block; height: 100%; width: 92%; background: linear-gradient(90deg, var(--aqua-deep), var(--aqua)); animation: searchfill 2.5s linear both; transition: width .25s, background .25s; } @keyframes searchfill { from { width: 0; } }
.found .searchbar i { width: 100%; background: var(--kelp); } .found h2 { color: var(--kelp-pale); }
@media (prefers-reduced-motion: reduce) { .sonar::before, .dots::after, .sonar s.ours::after { animation: none; } }
