/* Creature Cup. The stadium is the page; everything else is a sticker on it or a bar on its edge.
   Field: emerald pitch. The thing you press: hot pink. Lines: one navy ink, as on the creatures. */
@font-face { font-family: "Fredoka"; src: url("/fonts/fredoka-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/fonts/space-grotesk-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/fonts/space-grotesk-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
:root {
  --ink: #14183a; --pitch: #18a957; --deep: #0a6b3c; --deeper: #075231; --pink: #ff3d8f; --pinkd: #c8195f;
  --paper: #ffffff; --side0: #ff7b24; --side1: #12b5c9; --pos: #0c9a4c; --neg: #e0224e;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
  --f: 34px;
}
* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; }
body { background: var(--pitch) url("/art/cup/arena.webp") center / cover no-repeat fixed; color: var(--ink); font: 500 15px/1.3 "Space Grotesk", system-ui, sans-serif; overflow: hidden; }
img { display: block; -webkit-user-drag: none; }
h2, h3, .btn, .nm, .coin b, .pbtn, kbd { font-family: "Fredoka", "Space Grotesk", sans-serif; font-weight: 700; }
button { font: inherit; color: inherit; cursor: pointer; }

.scr { position: fixed; inset: 0; display: flex; flex-direction: column; padding-top: var(--sat); }

/* buttons: a flat sticker that presses flat */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border: 3px solid var(--ink); border-radius: 14px;
  background: var(--paper); color: var(--ink); font-size: 18px; box-shadow: 0 4px 0 var(--ink); white-space: nowrap; }
.btn:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 0 0 var(--ink); }
.btn.go { background: var(--pink); color: #fff; }
.btn.big { min-height: 64px; font-size: 28px; padding: 0 44px; border-radius: 18px; }
.btn.small { min-height: 44px; font-size: 15px; padding: 0 12px; border-radius: 12px; box-shadow: 0 3px 0 var(--ink); }
.btn.on { background: var(--ink); color: #fff; }
.btn:disabled { opacity: .4; cursor: default; }
.btn:focus-visible, .pbtn:focus-visible, .tile:focus-visible, .mrow:focus-visible, .rrow:focus-visible { outline: 4px solid #fff; outline-offset: 2px; }
kbd { font-size: 12px; padding: 2px 7px; border-radius: 6px; background: rgba(20, 24, 58, .28); color: inherit; }
.btn.ink kbd { background: rgba(20, 24, 58, .12); }

.coin { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; white-space: nowrap; }
.coin img { width: 1.25em; height: 1.25em; }
.coin.neg b, .neg > .coin b { color: var(--neg); } .coin.pos b { color: var(--pos); }
.wallet { background: var(--paper); border: 3px solid var(--ink); border-radius: 999px; padding: 4px 12px 4px 6px; font-size: 18px; box-shadow: 0 3px 0 var(--ink); }
.face { width: var(--f); height: var(--f); object-fit: contain; }

.bar { background: var(--deep); color: #fff; border: 0 solid var(--ink); }
.panel { background: var(--paper); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 5px 0 var(--ink); padding: 16px; }
.note { font-size: 13px; opacity: .75; }

#toast { position: fixed; left: 50%; top: calc(var(--sat) + 10px); transform: translate(-50%, -160%); z-index: 90; max-width: min(92vw, 480px); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; font-weight: 700; transition: transform .25s; text-align: center; }
#toast.on { transform: translate(-50%, 0); }

/* --- home --- */
.scr.home { background: var(--pitch) url("/art/cup/arena.webp") center bottom / auto 128% no-repeat; }
.home .hometop { display: flex; justify-content: center; padding: 58px 16px 0; }
.home .logo { width: min(78vw, 40dvh, 520px); height: auto; filter: drop-shadow(0 6px 0 rgba(20, 24, 58, .25)); animation: bob 3.2s ease-in-out infinite; }
.home .wallet { position: absolute; right: 10px; top: calc(var(--sat) + 10px); z-index: 3; }
.home .pitch { position: absolute; left: 0; right: 0; bottom: calc(var(--sab) + 176px); height: 34dvh; overflow: hidden; pointer-events: none; }
.home .bigcup { position: absolute; left: 50%; bottom: 30%; height: 62%; transform: translateX(-50%); animation: bob 2.6s ease-in-out infinite; filter: drop-shadow(0 8px 0 rgba(20, 24, 58, .25)); }
.runner { position: absolute; bottom: calc(var(--lane) * 46%); left: -22%; width: clamp(64px, 17vmin, 150px); height: auto; z-index: calc(100 - var(--lane) * 100); pointer-events: auto; cursor: pointer;
  animation: run 9s linear forwards, hop .46s ease-in-out infinite; }
.runner.rtl { animation-direction: reverse, normal; }
.runner.still { animation: none; }
.runner.boing { animation-play-state: paused, running; animation-duration: 9s, .16s; }
@keyframes run { from { left: -22%; } to { left: 108%; } }
@keyframes hop { 0%, 100% { transform: translateY(0) scaleY(1); } 45% { transform: translateY(-18%) scaleY(1.05); } 90% { transform: translateY(0) scaleY(.92); } }
@keyframes bob { 0%, 100% { translate: 0 0; rotate: -1.5deg; } 50% { translate: 0 -6px; rotate: 1.5deg; } }
.home .homefoot { margin-top: auto; padding: 12px 14px calc(var(--sab) + 12px); display: flex; flex-direction: column; align-items: center; gap: 10px; min-height: 176px; background: var(--deep); border-top: 3px solid var(--ink); z-index: 2; }
.home .info { color: #fff; font-weight: 700; text-align: center; }
.home .links { display: flex; gap: 6px; flex-wrap: nowrap; justify-content: center; width: 100%; }
.home .links .btn { flex: 1 1 0; padding: 0 4px; font-size: clamp(11px, 3.4vw, 15px); min-width: 0; }

/* --- bracket --- */
.bracket .topbar { display: grid; grid-template: "home wallet" auto "tabs tabs" auto / 1fr auto; gap: 8px; padding: 8px 10px; border-bottom-width: 3px; align-items: center; }
.bracket .topbar > .btn:first-child { justify-self: start; grid-area: home; }
.bracket .topbar .wallet { grid-area: wallet; color: var(--ink); }
.stagetabs { grid-area: tabs; display: flex; gap: 5px; }
.stagetabs .btn { flex: 1 1 0; min-width: 0; padding: 0 2px; font-size: clamp(11px, 3.5vw, 15px); }
.stagetabs .btn.live:not(.on) { background: #ffd3e6; }
.cols { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 10px 10px 14px; }
.col { display: none; } .col.on { display: block; }
.col h3 { display: none; }
.tiles { display: flex; flex-direction: column; gap: 10px; }
.tile { background: var(--paper); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 4px 0 var(--ink); overflow: hidden; cursor: pointer; }
.tile.wait { background: rgba(255, 255, 255, .82); border-style: dashed; box-shadow: none; cursor: default; }
.trow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 52px; padding: 4px 6px 4px 8px; }
.trow + .trow { border-top: 2px solid rgba(20, 24, 58, .14); }
.trow .faces { display: flex; }
.nm { font-size: clamp(13px, 3.9vw, 17px); white-space: nowrap; }
.trow.lost { opacity: .42; }
.trow.won { background: #e9fbef; }
.trow .tick { font-weight: 700; font-size: 13px; color: var(--pos); padding-right: 6px; }
.trow .res { font-size: 16px; padding-right: 4px; }
.trow.tbd { display: flex; min-height: 52px; } .tbdlab { font-size: 13px; opacity: .7; padding-left: 4px; }
.pbtn { min-width: 68px; min-height: 44px; padding: 0 8px; border: 3px solid var(--ink); border-radius: 12px; background: var(--pink); color: #fff; font-size: 17px; box-shadow: 0 3px 0 var(--ink); }
.pbtn:active { transform: translateY(3px); box-shadow: none; }
.pbtn.mine { background: var(--ink); }
.pbtn.sel { background: #fff; color: var(--ink); }
.tray { border-top-width: 3px; padding: 8px 10px calc(var(--sab) + 10px); display: grid; grid-template: "line line" 40px "a b" 52px / auto 1fr; gap: 6px 8px; align-items: center; }
.trayline { grid-area: line; display: flex; align-items: center; min-height: 40px; }
.say { font-size: 14px; line-height: 1.25; } .say em { font-style: normal; color: #ffd3e6; }
.tray > .btn { min-height: 48px; }
.tray > .btn.go { grid-area: b; }
.tray > .btn.go:only-of-type { grid-column: 1 / -1; }
.tray .chips { grid-column: 1 / -1; display: flex; gap: 5px; }
.chip { flex: 1 1 0; min-width: 0; padding: 0 4px; font-size: 16px; min-height: 48px; }
.chip.ink { flex: 1.5 1 0; font-size: 14px; }

/* --- sheets --- */
.sheet { position: fixed; inset: 0; z-index: 50; background: rgba(7, 82, 49, .72); display: flex; align-items: flex-end; justify-content: center; }
.sheet .box { width: 100%; max-width: 560px; max-height: calc(100dvh - var(--sat) - 24px); display: flex; flex-direction: column; background: var(--paper); border: 3px solid var(--ink); border-bottom: 0; border-radius: 20px 20px 0 0; }
.sheet.wide .box { max-width: 920px; }
.sheet .head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 12px 10px 16px; border-bottom: 3px solid var(--ink); }
.sheet .head h2 { font-size: clamp(18px, 5.4vw, 24px); line-height: 1.1; }
.sheet .body { overflow-y: auto; padding: 14px 14px calc(var(--sab) + 18px); display: flex; flex-direction: column; gap: 10px; }
.sheet h3 { font-size: 17px; margin-top: 4px; display: flex; justify-content: space-between; align-items: baseline; }
.sheet h3 .pr { color: var(--pinkd); }
.how { font-size: 16px; } .credit { font-size: 14px; } .credit a { color: var(--pinkd); font-weight: 700; }
.orderline { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; --f: 36px; }
.orderline .o { position: relative; border-radius: 10px; border: 3px solid var(--side0); padding: 1px; background: #fff; }
.orderline .o.side1 { border-color: var(--side1); }
.orderline .o i { position: absolute; right: -5px; bottom: -6px; font: 700 11px "Space Grotesk"; background: var(--ink); color: #fff; border-radius: 6px; padding: 0 4px; font-style: normal; }
.orderline .then { opacity: .4; font-weight: 700; }
.two { display: grid; grid-template-columns: 1fr; gap: 14px; }
.teamcol { display: flex; flex-direction: column; gap: 6px; }
.teamcol h3 { border-bottom: 4px solid var(--side0); padding-bottom: 2px; } .teamcol.side1 h3 { border-color: var(--side1); }
.crow { display: grid; grid-template-columns: 56px 1fr; gap: 8px; align-items: center; --f: 56px; border-left: 6px solid var(--w); padding-left: 6px; }
.crow .top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .crow .top b { font-family: "Fredoka"; font-size: 16px; margin-right: auto; }
.gem { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; } .gem img { width: 18px; height: 18px; } .gem i { font-style: normal; }
.crow p { font-size: 13px; line-height: 1.25; opacity: .85; }
.market { display: flex; flex-direction: column; gap: 6px; }
.mrow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 48px; padding: 4px 10px; background: #fff; border: 3px solid var(--ink); border-radius: 12px; text-align: left; --f: 32px; }
.mrow .faces { display: flex; } .mrow .pr { font-family: "Fredoka"; font-size: 18px; color: var(--pinkd); }
.mrow.mine { background: #ffe3ef; } .mrow.placed { grid-template-columns: 1fr auto; border-style: dashed; font-size: 14px; } .mrow.out { opacity: .5; }
.tabs { display: flex; gap: 8px; } .tabs .btn { flex: 1; }
.board { display: flex; flex-direction: column; gap: 4px; }
.brow { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 8px; min-height: 40px; padding: 0 10px; border-radius: 10px; background: #eef7f1; }
.brow i { font-style: normal; font-weight: 700; opacity: .6; } .brow b { font-family: "Fredoka"; } .brow.me { background: #ffe3ef; outline: 3px solid var(--ink); }
.sheet input { font: 700 20px "Fredoka"; padding: 10px 12px; border: 3px solid var(--ink); border-radius: 12px; width: 100%; }
.optrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .optrow b { margin-right: auto; font-family: "Fredoka"; }

/* --- the fight --- */
.scr.fight { background: var(--pitch) url("/art/cup/arena.webp") center bottom / auto 185% no-repeat; }
.fhead { background: var(--deep); color: #fff; border-bottom: 3px solid var(--ink); padding: 6px 8px 8px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.fnames { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; font-size: 12px; }
.fnames b { font-family: "Fredoka"; font-size: clamp(14px, 4.2vw, 20px); border-bottom: 4px solid var(--side0); justify-self: start; }
.fnames b.side1 { border-color: var(--side1); justify-self: end; }
.forder { display: flex; justify-content: center; gap: 4px; height: 46px; align-items: center; }
.oc { position: relative; width: 36px; height: 36px; border-radius: 10px; background: #fff; border: 3px solid var(--side0); transition: transform .15s; flex: none; }
.oc.side1 { border-color: var(--side1); } .oc img { width: 100%; height: 100%; object-fit: contain; }
.oc i { position: absolute; right: -5px; bottom: -6px; font: 700 10px "Space Grotesk"; background: var(--ink); color: #fff; border-radius: 6px; padding: 0 3px; font-style: normal; }
.oc.now { transform: scale(1.25); z-index: 2; box-shadow: 0 0 0 3px #fff; } .oc.went { opacity: .5; } .oc.out { opacity: .2; filter: grayscale(1); }
.field { position: relative; flex: 1; min-height: 0; --cs: min(25vw, 15dvh); }
.field.jolt { animation: jolt .28s; }
@keyframes jolt { 25% { translate: 0 5px; } 55% { translate: 0 -3px; } }
.fnames .coin { font-size: 13px; background: #fff; color: var(--ink); border-radius: 999px; padding: 1px 7px 1px 3px; margin: 0 6px; vertical-align: 2px; }
.cr { position: absolute; width: var(--cs); transform: translate(-50%, -50%); transition: filter .2s, opacity .3s; }
.cr img { width: 100%; height: auto; filter: drop-shadow(0 5px 0 rgba(20, 24, 58, .22)); }
.cr.side0 img { scale: -1 1; }
.cr.acting { z-index: 5; } .cr.acting img { filter: drop-shadow(0 0 0 #fff) drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff); }
.cr.ko { opacity: .38; filter: grayscale(1); } .cr.ko img { rotate: 80deg; translate: 0 18%; transition: rotate .3s, translate .3s; } .cr.ko .hp { visibility: hidden; }
.cr.shake { animation: shake .3s; } .cr.cheer img { animation: hop .5s ease-in-out infinite; }
@keyframes shake { 20% { translate: -6% 0; } 50% { translate: 6% 0; } 80% { translate: -3% 0; } }
.hp { position: relative; height: 20px; width: 84%; min-width: 44px; margin: -2px auto 0; background: #fff; border: 3px solid var(--ink); border-radius: 8px; overflow: hidden; }
.cr.side0 .hp { border-color: #b84a00; box-shadow: 0 0 0 2px var(--side0); } .cr.side1 .hp { border-color: #086e7c; box-shadow: 0 0 0 2px var(--side1); }
.hp i { position: absolute; inset: 0 auto 0 0; width: 100%; background: #35d07f; transition: width .25s; }
.hp b { position: absolute; inset: 0; font: 700 13px/14px "Space Grotesk"; text-align: center; }
.pop { position: absolute; left: 50%; top: 0; font: 700 clamp(22px, 7vmin, 40px) "Fredoka"; color: #fff; -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; animation: pop .9s ease-out forwards; pointer-events: none; z-index: 8; }
.pop.hit { color: #ff4a6b; } .pop.heal { color: #7dffb4; }
@keyframes pop { from { transform: translate(-50%, 20%) scale(.6); opacity: 1; } 25% { transform: translate(-50%, -40%) scale(1.2); } to { transform: translate(-50%, -110%) scale(1); opacity: 0; } }
.orb { position: absolute; width: calc(var(--cs) * .3); height: calc(var(--cs) * .3); border-radius: 50%; border: 3px solid var(--ink); background: var(--side0); z-index: 7; pointer-events: none; }
.orb.side1 { background: var(--side1); } .orb.heal { background: #7dffb4; }
.fbanner { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%) scale(.8); background: var(--ink); color: #fff; font: 700 clamp(18px, 5vw, 28px) "Fredoka"; padding: 8px 18px; border-radius: 14px; opacity: 0; transition: .15s; z-index: 9; text-align: center; pointer-events: none; max-width: 92vw; }
.fbanner.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.ffoot { border-top: 3px solid var(--ink); display: flex; justify-content: center; gap: 10px; padding: 10px 10px calc(var(--sab) + 12px); min-height: calc(74px + var(--sab)); }
.ffoot .btn { flex: 1 1 0; max-width: 300px; color: var(--ink); } .ffoot .btn.go { color: #fff; }
.fresult { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(88vw, 440px); background: #fff; border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 5px 0 var(--ink); padding: 14px 16px; text-align: center; z-index: 10; animation: drop .35s cubic-bezier(.2, 1.5, .4, 1); }
.fresult h2 { font-size: clamp(22px, 6.5vw, 32px); line-height: 1.1; } .fresult p { margin-top: 6px; font-weight: 700; }
.betline { font-size: 20px; } .betline.pos { color: var(--pos); } .betline.neg { color: var(--neg); }
@keyframes drop { from { transform: translate(-50%, -80%) scale(.7); opacity: 0; } }

/* --- round results and the end --- */
.roundup, .finale, .down { align-items: center; justify-content: center; padding: calc(var(--sat) + 10px) 10px calc(var(--sab) + 12px); }
.roundup .panel, .finale .panel, .down .panel { width: min(100%, 520px); display: flex; flex-direction: column; gap: 10px; max-height: 100%; min-height: 0; }
.panel h2 { font-size: clamp(20px, 6vw, 28px); line-height: 1.1; text-align: center; }
.results { display: flex; flex-direction: column; gap: 5px; overflow-y: auto; min-height: 0; --f: 26px; }
.rrow { flex: none; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; min-height: 44px; padding: 2px 8px; background: #eef7f1; border: 0; border-radius: 10px; text-align: left; font-size: 14px; }
.rrow .faces { display: flex; } .rrow b { font-family: "Fredoka"; } .rrow.pos { background: #d9f7e4; } .rrow.neg { background: #ffe1e8; }
.sum { display: flex; flex-direction: column; gap: 4px; font-weight: 700; text-align: center; }
.walletline, .dayline { font-size: 19px; }
.panel > .btn { align-self: stretch; } .panel .row { display: flex; gap: 8px; } .panel .row .btn { flex: 1 1 0; min-width: 0; padding: 0 6px; }
.finale { justify-content: flex-end; gap: 10px; }
.hero { position: relative; flex: 1; min-height: 0; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.hero .wreath { position: absolute; left: 50%; top: 4%; height: 62%; transform: translateX(-50%); opacity: .95; }
.hero .cup { position: absolute; left: 50%; top: 12%; height: 44%; transform: translateX(-50%); animation: bob 2.4s ease-in-out infinite; }
.hero .four { display: flex; justify-content: center; align-items: flex-end; --f: min(23vw, 20dvh, 190px); z-index: 2; }
.hero .four .face { animation: hop .5s ease-in-out infinite; } .hero .four .face:nth-child(2n) { animation-delay: -.25s; }
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 40; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 3px; animation: fall 2.6s linear forwards; }
@keyframes fall { to { transform: translateY(110dvh) rotate(720deg); } }

@media (max-width: 350px) {
  :root { --f: 27px; }
  .pbtn { min-width: 60px; padding: 0 4px; }
  .trow { gap: 5px; padding-left: 5px; }
  .tray .chips { gap: 3px; } .chip { min-width: 44px; padding: 0 2px; } .chip.ink { flex: 1.2 1 0; font-size: 13px; }
  .tray > .btn { padding: 0 10px; font-size: 16px; }
}

/* --- a desktop is its own composition: the whole bracket across the window --- */
@media (min-width: 900px) and (min-height: 520px) {
  .scr.home { background: none; }
  .home .hometop { justify-content: flex-start; padding: 22px 34px 0; }
  .home .logo { width: min(34vw, 52dvh); }
  .home .wallet { right: 28px; top: 24px; font-size: 22px; }
  .home .pitch { bottom: 96px; height: 46dvh; }
  .runner { width: clamp(90px, 13vmin, 190px); }
  .home .homefoot { flex-direction: row; min-height: 96px; padding: 14px 28px; gap: 18px; }
  .home .info { text-align: left; font-size: 18px; flex: 1; }
  .home .links { width: auto; flex: 1; justify-content: flex-end; } .home .links .btn { flex: none; padding: 0 14px; font-size: 15px; }
  .bracket .topbar { grid-template: "home tabs wallet" auto / auto 1fr auto; padding: 8px 20px; }
  .stagetabs { display: none; }
  .cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 14px; overflow: hidden; padding: 8px 20px 12px; --th: clamp(58px, calc((100dvh - 216px) / 8), 104px); }
  .col, .col.on { display: flex; flex-direction: column; min-height: 0; }
  .col h3 { display: block; text-align: center; color: #fff; font-size: 17px; background: var(--deep); border: 3px solid var(--ink); border-radius: 999px; padding: 2px 0; margin-bottom: 6px; }
  .col.live h3 { background: var(--pink); }
  .tiles { flex: 1; justify-content: space-around; gap: 4px; min-height: 0; }
  .tile { --f: calc(var(--th) / 2 - 9px); box-shadow: 0 3px 0 var(--ink); border-radius: 12px; }
  .trow { min-height: calc(var(--th) / 2 - 3px); padding: 0 4px 0 6px; gap: 5px; }
  .trow.tbd { min-height: calc(var(--th) / 2 - 3px); }
  .trow .faces .face + .face { margin-left: calc(var(--f) * -0.28); }
  .nm { font-size: clamp(12px, 1.02vw, 16px); }
  .pbtn { min-width: 54px; min-height: calc(var(--th) / 2 - 9px); font-size: clamp(13px, 1.05vw, 16px); border-width: 2px; border-radius: 9px; box-shadow: 0 2px 0 var(--ink); padding: 0 5px; }
  .tray { grid-template: "line a b" 56px / 1fr auto auto; padding: 10px 20px; gap: 12px; }
  .tray.picking { grid-template: "line chips" 56px / 1fr auto; }
  .tray .chips { grid-column: auto; } .chip { flex: none; min-width: 68px; } .chip.ink { flex: none; padding: 0 14px; }
  .say { font-size: 17px; }
  .sheet { align-items: center; } .sheet .box { border-bottom: 3px solid var(--ink); border-radius: 20px; box-shadow: 0 6px 0 var(--ink); max-height: 88dvh; }
  .two { grid-template-columns: 1fr 1fr; }
  .field { --cs: min(13vw, 21dvh); }
  .fhead { flex-direction: row; align-items: center; padding: 8px 20px; } .fnames { flex: 1; font-size: 15px; } .forder { order: 2; flex: none; }
  .fhead .fnames { display: contents; } .fnames b { order: 1; } .fnames b.side1 { order: 3; } .fnames span { display: none; } .forder { flex: 1; }
  .roundup .panel { width: min(100%, 880px); } .results { display: grid; grid-template-columns: 1fr 1fr; }
  .finale { flex-direction: row; align-items: center; justify-content: center; gap: 30px; padding: 30px; }
  .finale .hero { height: 80%; flex: 1.2; } .finale .panel { flex: 1; max-width: 460px; }
}
@media (prefers-reduced-motion: reduce) { .home .logo, .bigcup, .hero .cup, .cr.cheer img, .hero .four .face { animation: none; } }
