/* Base styles carried over from the approved mock-up (mockup/html/game.css) */
/* display faces have one weight; labels inside bold boxes inherited 700 and the browser faked a bold (uneven, smeared letters,
   e.g. "KAY DE N"). Declaring the whole weight range for the single file stops the fake bold everywhere. */
@font-face { font-family: Bebas; src: url('fonts/BebasNeue-Regular.ttf'); font-weight: 100 900; }
@font-face { font-family: Anton; src: url('fonts/Anton-Regular.ttf'); font-weight: 100 900; }
/* Body font. Ryan 15 Nov 23:1x "why is all the lettering weirdly spaced": Poppins (ours and Google's) ships with NO Latin
   kerning, so pairs like "Ca", "fa", "ad", "Do" sit visibly apart ("C all", "f ace", "hea ds"). Same family name kept so
   nothing else changes; files are Figtree (geometric, properly kerned, OFL), one weight step up to match Poppins' heft,
   size-adjusted to Poppins' x-height and with Poppins' ascent/descent so line boxes and layouts stay the same. */
@font-face { font-family: Poppins; src: url('fonts/Figtree-600.ttf'); font-weight: 500; size-adjust: 106%; ascent-override: 99%; descent-override: 33%; line-gap-override: 0%; }
@font-face { font-family: Poppins; src: url('fonts/Figtree-700.ttf'); font-weight: 600; size-adjust: 106%; ascent-override: 99%; descent-override: 33%; line-gap-override: 0%; }
@font-face { font-family: Poppins; src: url('fonts/Figtree-800.ttf'); font-weight: 700; size-adjust: 106%; ascent-override: 99%; descent-override: 33%; line-gap-override: 0%; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #120705; color: #f6ead2; font-family: Poppins, sans-serif; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; font-kerning: normal; text-rendering: optimizeLegibility; letter-spacing: normal; font-synthesis: style; }
.phone { width: 390px; height: 844px; position: absolute; left: 0; top: 0; overflow: hidden; background: #120705; transform-origin: 0 0; }
.status { position: absolute; top: 0; left: 0; right: 0; height: 40px; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 22px 6px; font-size: 13px; font-weight: 600; color: #fff; z-index: 50; text-shadow: 0 1px 3px rgba(0,0,0,.6); }

/* ---------- HUD ---------- */
.hud { position: absolute; top: 40px; left: 8px; right: 8px; height: 124px; z-index: 30; display: grid; grid-template-columns: 1fr 74px 1fr; gap: 6px; }
.pl { border-radius: 14px; padding: 6px 10px 7px; position: relative; overflow: hidden;
  background: linear-gradient(180deg, #1d2b52 0%, #0d1530 100%); border: 2px solid #3d5bb0; box-shadow: 0 6px 18px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.15); }
.pl.daz { background: linear-gradient(180deg, #5a1414 0%, #2a0808 100%); border-color: #d23b2b; text-align: right; }
.pl.active { box-shadow: 0 0 0 3px #F5C518, 0 0 22px rgba(245,197,24,.55), 0 6px 18px rgba(0,0,0,.55); }
.pl .nm { font-family: Bebas; font-size: 19px; letter-spacing: 1.5px; color: #fff; line-height: 1; display: flex; align-items: center; gap: 6px; }
.pl.daz .nm { justify-content: flex-end; }
.pl .nm .dot { width: 8px; height: 8px; border-radius: 50%; background: #F5C518; box-shadow: 0 0 8px #F5C518; }
.pl .rem { font-family: Anton; font-size: 46px; line-height: 1.02; color: #fff8e0; text-shadow: 0 3px 0 rgba(0,0,0,.45); letter-spacing: .5px; }
.pl .meta { font-size: 10px; font-weight: 600; color: #cfd8ff; display: flex; gap: 8px; letter-spacing: .2px; }
.pl.daz .meta { color: #ffd2c8; justify-content: flex-end; }
.pl .meta b { color: #fff; font-weight: 700; }
.nerve { margin-top: 5px; height: 7px; border-radius: 4px; background: rgba(0,0,0,.45); overflow: hidden; position: relative; }
.nerve i { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 4px; background: linear-gradient(90deg, #39d353, #F5C518); }
.pl.daz .nerve i { left: auto; right: 0; background: linear-gradient(270deg, #ff5a3c, #F5C518); }
.nervelbl { font-size: 8px; font-weight: 700; letter-spacing: 1.4px; color: rgba(255,255,255,.55); margin-top: 2px; }
.mid { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: linear-gradient(180deg, #2b1a0f, #140a05); border: 2px solid #8a6a2a; border-radius: 14px; box-shadow: 0 6px 18px rgba(0,0,0,.55); }
.mid .lg { font-family: Bebas; font-size: 11px; letter-spacing: 2px; color: #e9c46a; }
.mid .legs { font-family: Anton; font-size: 30px; color: #fff; line-height: 1.05; }
.mid .legs span { color: #F5C518; padding: 0 2px; }
.mid .dec { margin-top: 3px; font-family: Bebas; font-size: 12px; letter-spacing: 1.5px; color: #1a0a05; background: #F5C518; padding: 1px 6px; border-radius: 5px; }
.mid .vs { font-family: Bebas; font-size: 10px; letter-spacing: 1.5px; color: rgba(255,255,255,.5); margin-top: 3px; }

/* ---------- SCENE ---------- */
.scene { position: absolute; top: 0; left: 0; right: 0; height: 520px; overflow: hidden; }
.scene img.bg { position: absolute; left: 0; width: 100%; object-fit: cover; }
.scene .vign { position: absolute; inset: 0; background:
   linear-gradient(to bottom, rgba(18,7,5,.92) 0%, rgba(18,7,5,.55) 24%, rgba(18,7,5,0) 40%, rgba(18,7,5,0) 78%, rgba(18,7,5,.95) 100%),
   radial-gradient(ellipse at 50% 55%, rgba(0,0,0,0) 55%, rgba(0,0,0,.45) 100%); }
.boss-tag { position: absolute; left: 12px; top: 172px; z-index: 12; font-family: Bebas; letter-spacing: 2px; font-size: 13px; color: #1a0a05;
  background: linear-gradient(180deg,#ffd84a,#e2a814); padding: 2px 9px; border-radius: 6px; transform: rotate(-4deg); box-shadow: 0 3px 0 #7a4a08, 0 6px 14px rgba(0,0,0,.4); }
.bubble { position: absolute; z-index: 24; background: #fffdf4; color: #1a0c0a; border: 3px solid #1a0c0a; border-radius: 20px;
  padding: 10px 13px 11px; font-weight: 700; font-size: 14.5px; line-height: 1.28; box-shadow: 5px 6px 0 rgba(0,0,0,.55); }
.bubble .who { display: block; font-family: Bebas; font-size: 13px; letter-spacing: 1.5px; color: #c8261c; margin-bottom: 2px; }
.bubble:after { content: ''; position: absolute; width: 22px; height: 22px; background: #fffdf4; border-right: 3px solid #1a0c0a; border-bottom: 3px solid #1a0c0a; }
.bubble.tail-r:after { right: 40px; bottom: -13px; transform: rotate(45deg) skew(10deg,10deg); }
.bubble.tail-l:after { left: 46px; bottom: -13px; transform: rotate(45deg) skew(10deg,10deg); }
.bubble .sub { display: flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 10px; font-weight: 600; color: #7a5a3a; }
.co { position: absolute; left: 10px; right: 10px; top: 468px; z-index: 22; height: 42px; display: flex; align-items: center; gap: 8px; padding: 0 12px;
  background: linear-gradient(90deg, rgba(10,40,22,.96), rgba(18,70,38,.96)); border: 2px solid #3fbf6b; border-radius: 12px; box-shadow: 0 6px 16px rgba(0,0,0,.5); }
.co .l { font-family: Bebas; font-size: 13px; letter-spacing: 1.5px; color: #9ff0b8; line-height: 1; }
.co .route { display: flex; gap: 5px; margin-left: auto; }
.co .route span { font-family: Anton; font-size: 17px; color: #fff; background: rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.25); border-radius: 7px; padding: 1px 8px; }
.co .route span.d { background: #c8261c; border-color: #ff8a7a; }

/* ---------- PAD ---------- */
.pad { position: absolute; left: 0; right: 0; bottom: 0; top: 518px; z-index: 25; padding: 8px 10px 12px;
  background: linear-gradient(180deg, #2a160c 0%, #1a0d07 100%); border-top: 3px solid #8a6a2a; }
.pad:before { content: ''; position: absolute; inset: 0; opacity: .12; background: repeating-linear-gradient(90deg, #000 0 2px, transparent 2px 26px); pointer-events: none; }
.entry { display: flex; gap: 8px; align-items: stretch; height: 46px; position: relative; }
.entry .box { flex: 1; background: #0e0705; border: 2px solid #5a4020; border-radius: 12px; display: flex; align-items: center; padding: 0 12px; gap: 8px; }
.entry .box .lbl { font-family: Bebas; font-size: 13px; letter-spacing: 1.4px; color: #b8946a; line-height: 1; }
.entry .box .val { margin-left: auto; font-family: Anton; font-size: 30px; color: #F5C518; letter-spacing: 1px; }
.entry .box .caret { width: 2px; height: 26px; background: #F5C518; margin-left: 2px; }
.entry .chip { width: 64px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: Bebas; letter-spacing: 1px; font-size: 15px; line-height: 1; }
.chip.bust { background: #3a0c0a; border: 2px solid #c8261c; color: #ff8a7a; }
.chip.out { background: #0d3a1e; border: 2px solid #3fbf6b; color: #9ff0b8; }
.chip small { font-family: Poppins; font-size: 8px; font-weight: 600; letter-spacing: .3px; opacity: .8; margin-top: 2px; }
.quick { display: flex; gap: 5px; margin: 7px 0; position: relative; }
.quick span { flex: 1; text-align: center; font-family: Anton; font-size: 15px; padding: 4px 0; border-radius: 9px; background: #3a2414; border: 1px solid #6a4a28; color: #f3dcb4; }
.keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; position: relative; }
.key { height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-family: Anton; font-size: 24px; color: #2a160c;
  background: linear-gradient(180deg, #fff8e8 0%, #ecd8b0 100%); box-shadow: 0 4px 0 #9a7a4a, 0 6px 10px rgba(0,0,0,.35); }
.key.fn { background: linear-gradient(180deg, #5a3a20, #3a2414); color: #f3dcb4; box-shadow: 0 4px 0 #1e1008; font-size: 18px; }
.key.ok { grid-row: span 2; height: auto; background: linear-gradient(180deg, #ffd84a 0%, #e2a814 100%); box-shadow: 0 4px 0 #8a5a08, 0 6px 12px rgba(0,0,0,.4); font-family: Bebas; font-size: 26px; letter-spacing: 1.5px; flex-direction: column; line-height: .95; }
.key.ok small { font-family: Poppins; font-size: 9px; font-weight: 700; letter-spacing: .3px; color: #5a3a08; }
.key.pressed { transform: translateY(3px); box-shadow: 0 1px 0 #9a7a4a; background: linear-gradient(180deg,#ffe9a8,#f5c86a); }
.foot { display: flex; justify-content: space-between; margin-top: 8px; font-size: 10px; font-weight: 600; color: #8a6a4a; position: relative; }

/* ---------- REACTION ---------- */
.splash { position: absolute; z-index: 28; font-family: Anton; color: #F5C518; text-align: center; line-height: .9;
  -webkit-text-stroke: 3px #1a0a05; text-shadow: 0 6px 0 #8a1414, 0 10px 0 #3a0808, 0 18px 30px rgba(0,0,0,.6); }
.burst { position: absolute; z-index: 27; }
.flash { position: absolute; inset: 0; z-index: 3; background: radial-gradient(circle at 50% 42%, rgba(255,230,120,.35), rgba(255,230,120,0) 55%); }
.streaks { position: absolute; inset: 0; z-index: 4; background: repeating-conic-gradient(from 0deg at 50% 45%, rgba(255,255,255,.07) 0 4deg, transparent 4deg 14deg); }
.toast { position: absolute; z-index: 26; left: 12px; right: 12px; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 14px; background: rgba(14,6,4,.9); border: 2px solid #5a4020; box-shadow: 0 8px 20px rgba(0,0,0,.5); }
.toast .big { font-family: Anton; font-size: 28px; color: #fff; line-height: 1; }
.toast .t { font-size: 11.5px; font-weight: 600; color: #e9d6b0; line-height: 1.3; }
.toast .t b { color: #F5C518; }
.react { display: flex; gap: 6px; }
.react span { width: 38px; height: 38px; border-radius: 50%; background: #3a2414; border: 2px solid #6a4a28; display: flex; align-items: center; justify-content: center; font-size: 19px; }
.btn { height: 54px; border-radius: 16px; display: flex; align-items: center; justify-content: center; gap: 10px; font-family: Bebas; font-size: 26px; letter-spacing: 1.5px; }
.btn.y { background: linear-gradient(180deg, #ffd84a, #e2a814); color: #1a0a05; box-shadow: 0 5px 0 #8a5a08, 0 10px 18px rgba(0,0,0,.45); }
.btn.d { background: #2a160c; color: #f3dcb4; border: 2px solid #6a4a28; font-size: 20px; height: 46px; }
.bubble.tail-t:after { left: 215px; top: -14px; transform: rotate(225deg) skew(10deg,10deg); }
.nervelbl { display: none; }
.pl .nerve { margin-top: 6px; }
.bubble.tail-t.l2:after { left: 150px; }
/* ---------- LADDER ---------- */
.lad-bg { position: absolute; inset: 0; }
.lad-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: blur(3px) brightness(.42) saturate(1.1); transform: scale(1.06); }
.lad-bg:after { content:''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(18,7,5,.4), rgba(18,7,5,.15) 30%, rgba(18,7,5,.85) 85%, #120705); }
.lad-title { position: absolute; top: 46px; left: 0; right: 0; text-align: center; z-index: 5; }
.lad-title .k { font-family: Bebas; font-size: 15px; letter-spacing: 5px; color: #fff3d0; }
.lad-title .w { font-family: Bebas; font-size: 58px; line-height: .86; color: #F5C518; letter-spacing: 1px; text-shadow: 0 3px 0 #8a1414, 0 6px 0 #4a0a0a, 0 12px 24px rgba(0,0,0,.6); }
.lad-title .s { margin-top: 6px; font-size: 12px; font-weight: 600; color: #e9d6b0; }
.rungs { position: absolute; top: 156px; left: 12px; right: 12px; z-index: 5; display: flex; flex-direction: column; gap: 7px; }
.rung { display: flex; align-items: center; gap: 10px; height: 64px; padding: 0 10px 0 6px; border-radius: 16px; position: relative;
  background: linear-gradient(90deg, rgba(42,22,12,.94), rgba(26,13,7,.94)); border: 2px solid #5a4020; box-shadow: 0 5px 14px rgba(0,0,0,.45); }
.rung .no { width: 24px; text-align: center; font-family: Anton; font-size: 20px; color: #8a6a4a; }
.rung img { width: 50px; height: 50px; border-radius: 50%; }
.rung .info { flex: 1; min-width: 0; }
.rung .n { font-family: Bebas; font-size: 21px; letter-spacing: 1px; color: #fff; line-height: 1; }
.rung .n em { font-style: normal; font-family: Poppins; font-size: 10px; font-weight: 600; color: #c9a77a; letter-spacing: .2px; margin-left: 4px; }
.rung .st { font-size: 10px; font-weight: 600; color: #e9d6b0; margin-top: 2px; }
.rung .st b { color: #F5C518; }
.rung .q { font-size: 9.5px; font-weight: 500; color: #a88a66; font-style: italic; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge { font-family: Bebas; font-size: 13px; letter-spacing: 1px; padding: 3px 7px; border-radius: 7px; text-align: center; line-height: 1.05; }
.badge.won { background: #0d3a1e; border: 1.5px solid #3fbf6b; color: #9ff0b8; }
.rung.boss { height: 92px; border: 3px solid #F5C518; background: linear-gradient(90deg, rgba(110,20,16,.96), rgba(50,10,8,.96));
  box-shadow: 0 0 0 3px rgba(245,197,24,.25), 0 0 30px rgba(245,197,24,.45), 0 8px 18px rgba(0,0,0,.5); }
.rung.boss img { width: 74px; height: 74px; }
.rung.boss .n { font-size: 30px; color: #F5C518; }
.rung.boss .no { color: #F5C518; }
.crown { position: absolute; top: -13px; left: 46px; font-size: 24px; transform: rotate(-14deg); filter: drop-shadow(0 2px 2px rgba(0,0,0,.6)); }
.fb { position: absolute; top: -11px; right: 12px; font-family: Bebas; font-size: 13px; letter-spacing: 2px; color: #1a0a05; background: #F5C518; padding: 1px 8px; border-radius: 6px; box-shadow: 0 3px 0 #7a4a08; }
.stars { font-size: 11px; color: #F5C518; letter-spacing: 1px; }
.shelf { position: absolute; left: 12px; right: 12px; top: 628px; z-index: 5; }
.shelf .h { font-family: Bebas; font-size: 13px; letter-spacing: 1.8px; color: #b8946a; margin-bottom: 5px; }
.shelf .row { display: flex; gap: 6px; }
.shelf .row span { flex: 1; height: 46px; border-radius: 12px; background: rgba(42,22,12,.9); border: 1.5px solid #6a4a28; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 18px; line-height: 1; }
.shelf .row span small { font-size: 7.5px; font-weight: 700; color: #c9a77a; margin-top: 3px; letter-spacing: .2px; }
.shelf .row span.lock { border-style: dashed; opacity: .75; }
.lad-cta { position: absolute; left: 12px; right: 12px; bottom: 16px; z-index: 5; }
.links { display: flex; gap: 6px; margin-top: 9px; }
.links span { flex: 1; text-align: center; font-size: 10.5px; font-weight: 700; color: #f3dcb4; padding: 8px 2px; border-radius: 11px; background: rgba(42,22,12,.92); border: 1.5px solid #6a4a28; }

/* ================= APP (playable build) ================= */
html, body { background: #0b0403; touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
.screen { position: absolute; inset: 0; display: none; }
.screen.on { display: block; }
[hidden] { display: none !important; }
.tap { cursor: pointer; }
.tap:active { transform: translateY(2px); filter: brightness(1.08); }

/* scene + hud (match) */
#match .scene { height: auto; bottom: 322px; top: 0; }
#match .scene img.bg { height: auto; transition: opacity .18s; }
#dazImg.breathe { animation: breathe 3.6s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes breathe { 0%,100% { transform: scale(1) translateY(0); } 50% { transform: scale(1.012) translateY(-2px); } }
#dazImg.shake { animation: shake .45s; }
@keyframes shake { 0%,100%{transform:translateX(0)} 20%{transform:translateX(-7px) rotate(-1deg)} 40%{transform:translateX(6px)} 60%{transform:translateX(-4px)} 80%{transform:translateX(3px)} }
#match .hud { top: 8px; }
#match .boss-tag { top: 140px; }
.pl .rem { transition: color .3s; }
.pl .rem.flash { color: #F5C518; }
.mood { position: absolute; right: 12px; top: 140px; z-index: 31; display: flex; align-items: center; gap: 5px; font-family: Bebas; font-size: 13px; letter-spacing: 1.4px;
  color: #ffe6c8; background: rgba(26,10,5,.82); border: 1.5px solid #8a3a2a; padding: 2px 9px 1px 6px; border-radius: 20px; box-shadow: 0 3px 10px rgba(0,0,0,.45); transition: transform .25s; }
.mood .ic { font-size: 15px; line-height: 1; }
.mood.pop { animation: pop .6s; }
@keyframes pop { 0%{transform:scale(1)} 35%{transform:scale(1.35)} 100%{transform:scale(1)} }
.mood.rattled { border-color: #ff5a3c; color: #ffb3a3; } .mood.cocky { border-color: #F5C518; color: #ffe27a; }
.mood.tight { border-color: #3fbf6b; color: #b4f5c8; } .mood.pint { border-color: #e9a23a; color: #ffd79a; }
.pint { position: absolute; right: 18px; z-index: 14; font-size: 46px; filter: drop-shadow(0 4px 6px rgba(0,0,0,.6)); animation: pintIn .6s ease-out; }
@keyframes pintIn { from { transform: translateY(40px) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

.splash { pointer-events: none; transition: opacity .3s; }
.splash.in { animation: splashIn .5s cubic-bezier(.2,1.6,.4,1); }
@keyframes splashIn { from { transform: scale(.3) rotate(-12deg); opacity: 0; } }
.splash .sub2 { font-family: Bebas; font-size: 28px; color: #fff; -webkit-text-stroke: 1.5px #1a0a05; letter-spacing: 1px; }
#fx { position: absolute; inset: 0; z-index: 3; pointer-events: none; }

.bubble { left: 12px; right: 12px; transition: opacity .2s; pointer-events: auto; }
.bubble.in { animation: bubIn .35s cubic-bezier(.2,1.4,.4,1); }
@keyframes bubIn { from { transform: scale(.85) translateY(12px); opacity: 0; } }
.bubble .sub { cursor: pointer; }
.ybub { position: absolute; z-index: 21; right: 14px; max-width: 70%; background: #1d2b52; color: #fff; border: 2.5px solid #F5C518; border-radius: 16px 16px 4px 16px; padding: 7px 12px; font-weight: 700; font-size: 13.5px; box-shadow: 4px 5px 0 rgba(0,0,0,.5); }
.ybub .who { display: block; font-family: Bebas; font-size: 12px; letter-spacing: 1.4px; color: #F5C518; }
.thinking { position: absolute; z-index: 20; left: 50%; transform: translateX(-50%); font-family: Bebas; letter-spacing: 1.6px; font-size: 16px; color: #ffe6c8; background: rgba(14,6,4,.85); border: 1.5px solid #6a4a28; padding: 4px 14px; border-radius: 20px; }
.thinking i { animation: blink 1s infinite; font-style: normal; }
@keyframes blink { 50% { opacity: .2; } }

#match .co { top: auto; bottom: 330px; }
#match .co.bogey { background: linear-gradient(90deg, rgba(60,10,8,.96), rgba(90,18,14,.96)); border-color: #ff5a3c; }
#match .co.bogey .l { color: #ffb3a3; }
#match .pad { top: auto; height: 322px; }
.quick span, .key, .chip { cursor: pointer; }
.quick span:active, .key:active, .chip:active { transform: translateY(3px); filter: brightness(1.1); }
.entry .box.err { border-color: #ff5a3c; animation: shake .4s; }
.entry .box .val.empty { color: #5a4020; }
.hint { position: relative; height: 0; }
.errmsg { position: absolute; left: 8px; right: 8px; top: -32px; text-align: center; font-family: Poppins, sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 0.15px; line-height: 1.2; color: #fff; background: #c8261c; border-radius: 8px; padding: 5px 10px; z-index: 40; box-shadow: 0 4px 10px rgba(0,0,0,.4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.key.dis { opacity: .35; pointer-events: none; }

/* react pad */
.rpad { position: relative; display: flex; flex-direction: column; height: 100%; }
.rpad .toast { position: relative; left: 0; right: 0; }
.tbh { position: relative; margin: 10px 0 6px; font-family: Bebas; font-size: 13px; letter-spacing: 1.6px; color: #b8946a; }
.tbh small { font-family: Poppins; font-size: 9px; letter-spacing: .2px; font-weight: 600; color: #7a5a3a; }
.tbrow { display: flex; gap: 6px; position: relative; }
.tbrow button { flex: 1; text-align: center; font-size: 11.5px; font-weight: 700; padding: 9px 4px; border-radius: 12px; background: #3a2414; border: 1.5px solid #6a4a28; color: #f3dcb4; min-height: 48px; line-height: 1.2; }
.tbrow button.used { opacity: .35; pointer-events: none; }
.rpad .grow { flex: 1; }
.btn { cursor: pointer; position: relative; overflow: hidden; width: 100%; }
.btn .timer { position: absolute; left: 0; bottom: 0; height: 4px; background: rgba(26,10,5,.45); width: 0; }
.dslots { display: flex; gap: 8px; margin-top: 10px; }
.dslot { flex: 1; height: 74px; border-radius: 14px; background: #0e0705; border: 2px dashed #5a4020; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: Anton; color: #5a4020; font-size: 26px; }
.dslot.hit { border-style: solid; color: #fff; background: #2a160c; border-color: #8a6a2a; animation: pop .35s; }
.dslot.big { border-color: #F5C518; color: #F5C518; }
.dslot.dbl { border-color: #3fbf6b; color: #9ff0b8; }
.dslot.bad { border-color: #c8261c; color: #ff8a7a; }
.dslot small { font-family: Poppins; font-size: 10px; font-weight: 700; color: #b8946a; }
.dtotal { margin-top: 10px; display: flex; justify-content: space-between; align-items: baseline; font-family: Bebas; letter-spacing: 1.4px; color: #b8946a; font-size: 15px; }
.dtotal b { font-family: Anton; font-size: 34px; color: #fff; letter-spacing: 0; }

/* modal */
#modal { position: absolute; inset: 0; z-index: 90; background: rgba(8,3,2,.72); display: flex; align-items: flex-end; animation: modalDim .2s ease-out; }
#modal .sheet { width: 100%; background: linear-gradient(180deg,#2a160c,#1a0d07); border-top: 3px solid #8a6a2a; border-radius: 22px 22px 0 0; padding: 18px 14px 22px; animation: sheetIn .25s ease-out; }
/* 16 Nov QC: slide in solid (no opacity fade) so the sheet is never see-through over the keypad mid-animation; the dim backdrop fades instead */
@keyframes sheetIn { from { transform: translateY(100%); } }
@keyframes modalDim { from { background-color: rgba(8,3,2,0); } }
#modal h3 { font-family: Bebas; font-size: 26px; letter-spacing: 1.5px; color: #F5C518; font-weight: 400; }
#modal p { font-size: 12.5px; color: #e9d6b0; margin: 4px 0 12px; line-height: 1.35; }
#modal .opts { display: flex; gap: 8px; flex-wrap: wrap; }
#modal .opts button { flex: 1; min-width: 64px; height: 56px; border-radius: 14px; font-family: Bebas; font-size: 22px; letter-spacing: 1px; color: #2a160c; background: linear-gradient(180deg,#fff8e8,#ecd8b0); box-shadow: 0 4px 0 #9a7a4a; }
#modal .opts button.alt { background: linear-gradient(180deg,#5a3a20,#3a2414); color: #f3dcb4; box-shadow: 0 4px 0 #1e1008; font-family: Bebas; font-size: 20px; letter-spacing: 1px; }
#modal .opts button.y { background: linear-gradient(180deg,#ffd84a,#e2a814); color: #1a0a05; box-shadow: 0 4px 0 #8a5a08;; font-family: Bebas; font-size: 22px; letter-spacing: 1px; } /* 17 Nov (Ryan): all option buttons slim Bebas */
#modal input { width: 100%; height: 54px; border-radius: 12px; border: 2px solid #5a4020; background: #0e0705; color: #F5C518; font-family: Anton; font-size: 30px; text-align: center; margin-bottom: 10px; }
#modal .res { font-family: Anton; font-size: 22px; color: #fff; text-align: center; min-height: 34px; margin-bottom: 10px; }

/* top buttons */
.topbtns { position: absolute; z-index: 60; display: flex; gap: 6px; }
.topbtns button { width: 34px; height: 34px; border-radius: 50%; background: rgba(26,10,5,.8); border: 1.5px solid #6a4a28; font-size: 16px; display: flex; align-items: center; justify-content: center; }

/* ladder */
#ladder .lad-title { top: 22px; }
#ladder .rungs { top: 150px; }
.rung.soon { opacity: .62; filter: grayscale(.6); }
.badge.soon { background: #2a160c; border: 1.5px dashed #8a6a2a; color: #c9a77a; font-size: 12px; }
.badge.won { }
.rung.boss { cursor: pointer; }
/* 16 Nov: Daz (and any other locked next-rung) stays visible but clearly locked until he is next on the ladder */
#ladder .rung.boss.locked { opacity: .72; filter: grayscale(.55); border-color: #8a6a2a;
  box-shadow: 0 0 0 3px rgba(138,106,42,.18), 0 8px 18px rgba(0,0,0,.5); cursor: pointer; }
#ladder .rung.boss.locked .fb { background: #2a160c; color: #c9a77a; box-shadow: 0 3px 0 #1a0e08; }
#ladder .rung.soon { cursor: pointer; }
#ladder .shelf { top: auto; bottom: 150px; }
#ladder .lad-cta .links span { cursor: pointer; }
.shelf .row span.got { border-color: #F5C518; box-shadow: 0 0 12px rgba(245,197,24,.4); }

/* intro */
#intro { background: #120705; }
#intro .bgp { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(2px) brightness(.45); }
#intro .spot { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, rgba(255,214,120,.28), rgba(0,0,0,0) 55%), linear-gradient(to bottom, rgba(18,7,5,.2), rgba(18,7,5,.95) 92%); }
#intro .walk { position: absolute; left: 0; width: 100%; top: 120px; animation: walkOn 1.6s cubic-bezier(.2,.9,.3,1) both; }
@keyframes walkOn { from { transform: translateX(110%) scale(.92); } 70% { transform: translateX(-3%) scale(1); } to { transform: translateX(0); } }
#intro .name { position: absolute; left: 0; right: 0; top: 34px; text-align: center; z-index: 5; }
#intro .name .k { font-family: Bebas; letter-spacing: 4px; color: #ffe6c8; font-size: 15px; }
#intro .name .w { font-family: Anton; font-size: 64px; color: #F5C518; line-height: 1; text-shadow: 0 4px 0 #8a1414, 0 8px 18px rgba(0,0,0,.6); animation: splashIn .6s .9s both cubic-bezier(.2,1.6,.4,1); }
#intro .name .s { font-family: Bebas; letter-spacing: 2px; color: #fff; font-size: 16px; margin-top: 4px; }
#intro .bubble { top: auto; }
#intro .cta { position: absolute; left: 14px; right: 14px; bottom: 22px; z-index: 30; }
.shake-emoji { position: absolute; left: 50%; top: 42%; transform: translate(-50%,-50%); font-size: 110px; z-index: 25; animation: hs 1.2s ease-in-out; pointer-events: none; }
@keyframes hs { 0%{transform:translate(-50%,-50%) scale(.3);opacity:0} 20%{transform:translate(-50%,-50%) scale(1.15);opacity:1} 35%{transform:translate(-50%,-56%) rotate(-8deg)} 50%{transform:translate(-50%,-44%) rotate(8deg)} 65%{transform:translate(-50%,-56%) rotate(-8deg)} 80%{transform:translate(-50%,-50%) scale(1)} 100%{opacity:0} }

/* end */
#end { background: #120705; }
#end .bgp { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(3px) brightness(.35); }
#end .dz { position: absolute; left: 0; width: 100%; top: -10px; opacity: .9; -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 75%); mask-image: linear-gradient(to bottom, #000 45%, transparent 75%); }
#end .res { position: absolute; left: 0; right: 0; top: 50px; text-align: center; z-index: 5; }
#end .res .w { font-family: Anton; font-size: 50px; line-height: 1; color: #F5C518; text-shadow: 0 4px 0 #8a1414, 0 8px 18px rgba(0,0,0,.6); }
#end .res .w.lose { color: #ff8a7a; }
#end .res .sc { font-family: Anton; font-size: 34px; color: #fff; }
#end .bubble { top: 230px; }
.stats { position: absolute; left: 12px; right: 12px; z-index: 10; background: rgba(20,9,5,.94); border: 2px solid #8a6a2a; border-radius: 16px; padding: 8px 12px; box-shadow: 0 10px 24px rgba(0,0,0,.5); }
.stats table { width: 100%; border-collapse: collapse; }
.stats th { font-family: Bebas; letter-spacing: 1.5px; font-weight: 400; font-size: 15px; padding: 3px 0 5px; }
.stats th.y { color: #9fb6ff; } .stats th.d { color: #ff9a8a; }
.stats td { font-size: 12.5px; padding: 4.5px 0; border-top: 1px solid rgba(138,106,42,.25); text-align: center; font-weight: 700; color: #fff; }
.stats td.l { color: #c9a77a; font-weight: 600; font-size: 11px; letter-spacing: .3px; }
.stats td.best { color: #F5C518; }
.unlock { position: absolute; left: 12px; right: 12px; z-index: 10; text-align: center; font-family: Bebas; letter-spacing: 1.4px; font-size: 16px; color: #1a0a05; background: #F5C518; border-radius: 10px; padding: 4px; }
#end .cta { position: absolute; left: 12px; right: 12px; bottom: 16px; z-index: 10; display: flex; flex-direction: column; gap: 8px; }
.toastmsg { position: absolute; left: 20px; right: 20px; top: 46%; z-index: 95; text-align: center; background: rgba(14,6,4,.95); border: 2px solid #F5C518; color: #fff; border-radius: 14px; padding: 10px; font-weight: 700; font-size: 13px; }
.legban { position: absolute; left: 0; right: 0; z-index: 29; text-align: center; pointer-events: none; overflow: hidden;
  font-family: inherit; font-size: 16px; color: inherit; -webkit-text-stroke: 0; text-shadow: none; line-height: 1.15; }
.legban .legban-strip {
  display: block; width: 100%; box-sizing: border-box;
  background: linear-gradient(180deg, #f6d056 0%, #e0b122 55%, #c89612 100%);
  color: #1a0a05;
  font-family: Bebas; font-size: 17px; letter-spacing: 2.2px;
  padding: 4px 14px 3px;
  border-radius: 8px;
  border: 1.5px solid #7a5a10;
  box-shadow: 0 3px 0 #5a3a08, 0 7px 14px rgba(0,0,0,.35);
  transform: translateY(-120%);
  opacity: 0;
}
#phone.short .legban .legban-strip { font-size: 16px; }
.legban.in:not(.out) .legban-strip {
  animation: legbanSlide .45s cubic-bezier(.2,1.15,.35,1) forwards;
}
.legban.out .legban-strip {
  animation: legbanSlideOut .4s ease-in forwards;
}
@keyframes legbanSlide {
  from { transform: translateY(-120%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes legbanSlideOut {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(-120%); opacity: 0; }
}

.splash { font-size: 84px; }
.splash .sub2 { font-size: 30px; margin-top: 4px; }
.emo { position: relative; margin-top: 12px; justify-content: space-between; }
.emo span { cursor: pointer; width: 44px; height: 44px; font-size: 21px; }
.emo span:active { transform: scale(.9); }
.floatemo { position: absolute; z-index: 40; font-size: 40px; pointer-events: none; animation: floatUp 1.6s ease-out forwards; }
@keyframes floatUp { from { transform: translateY(0) scale(.6); opacity: 0; } 15% { opacity: 1; transform: translateY(-20px) scale(1.1); } to { transform: translateY(-220px) scale(1); opacity: 0; } }

/* =================== v2 (14 Nov 2026) =================== */
/* scoreboards: bigger, taller, remaining score is the hero */
.hud { height: 178px; grid-template-columns: 1fr 86px 1fr; gap: 6px; }
.pl { padding: 8px 10px 8px; display: flex; flex-direction: column; }
.pl .nm { font-size: 15px; letter-spacing: 1.2px; opacity: .9; }
.pl .rem { font-size: 84px; line-height: .98; margin: 4px 0 2px; letter-spacing: 0; flex: 1; display: flex; align-items: center; }
.pl.daz .rem { justify-content: flex-end; }
.pl .meta { font-size: 9px; gap: 7px; opacity: .9; }
.pl .nerve { height: 5px; margin-top: 5px; }
.mid { padding: 6px 2px; }
.mid .lg { font-size: 15px; letter-spacing: 2.5px; }
.mid .legs { font-size: 58px; line-height: 1; margin: 2px 0; }
.mid .legs span { padding: 0 1px; font-size: 40px; vertical-align: 8px; }
.mid .dec { font-size: 17px; padding: 2px 8px; margin-top: 6px; letter-spacing: 1.5px; }
#match .boss-tag { top: 224px; font-size: 11px; }
.mood { top: 224px; }
.thinking { top: 300px; }
.scene img.bg { transition: top .2s; }

/* speech bubble: compact tag in the band under the scoreboards, above Daz's head */
.bubble.mini { left: 56px; right: auto; max-width: 300px; top: 254px; bottom: auto !important; padding: 5px 10px 6px; border-width: 2.5px; border-radius: 14px; box-shadow: 3px 4px 0 rgba(0,0,0,.45); display: flex; align-items: center; gap: 6px; }
.bubble.mini .who { display: inline-block; font-size: 11px; margin: 0; padding: 1px 5px; background: #c8261c; color: #fff; border-radius: 6px; letter-spacing: 1px; }
.bubble.mini .tx { font-size: 15px; font-weight: 700; line-height: 1.2; }
.bubble.mini.long .tx { font-size: 12.5px; }
.bubble.mini .sub { margin: 0; font-size: 12px; opacity: .55; }
.bubble.mini:after { width: 12px; height: 12px; left: 46%; bottom: -8px; top: auto; transform: rotate(45deg); border-right: 2.5px solid #1a0c0a; border-bottom: 2.5px solid #1a0c0a; }
#intro .bubble .tx { font-size: 14px; }
#intro .bubble { padding: 8px 12px; }

/* score call-out: TV caller strip just above the pad */
.callout { position: absolute; z-index: 27; left: 10px; right: 10px; bottom: 334px; height: 46px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border-radius: 12px;
  background: linear-gradient(90deg, rgba(14,6,4,.95), rgba(42,22,12,.92)); border: 2px solid #F5C518; box-shadow: 0 6px 16px rgba(0,0,0,.55); pointer-events: none; }
.callout.daz { border-color: #ff6a4a; }
.callout .n { font-family: Anton; font-size: 32px; color: #F5C518; line-height: 1; min-width: 52px; text-align: center; }
.callout.daz .n { color: #ff9a7a; }
.callout .w { font-family: Bebas; font-size: 22px; letter-spacing: 1.2px; color: #fff; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.callout.big .n, .callout.big .w { color: #F5C518; } .callout.big { box-shadow: 0 0 22px rgba(245,197,24,.45), 0 6px 16px rgba(0,0,0,.55); }
.callout.bust .n { color: #ff5a3c; font-size: 26px; }
.callout.in { animation: callIn .28s cubic-bezier(.2,1.5,.4,1); }
@keyframes callIn { from { transform: translateY(14px) scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }

/* keypad: Lock it in + Bust, live remaining */
.entry { height: 44px; }
.chip.miss { background: #2a160c; border: 2px solid #6a4a28; color: #f3dcb4; }
.remlive { position: relative; margin-top: 5px; height: 20px; border-radius: 8px; display: flex; align-items: center; justify-content: center; gap: 4px; font-family: Bebas; font-size: 15px; letter-spacing: 1.2px; color: #c9a77a; background: rgba(0,0,0,.35); }
.remlive b { font-family: Anton; font-weight: 400; color: #fff; font-size: 16px; letter-spacing: .5px; margin: 0 2px; }
.remlive.bust { background: #5a0f0a; color: #ffb3a3; border: 1px solid #ff5a3c; animation: shake .35s; }
.remlive.bad { background: #3a0c0a; color: #ff8a7a; }
.remlive.out { background: #0d3a1e; color: #9ff0b8; }
.quick { margin: 6px 0; }
.quick span { padding: 3px 0; }
.keys { gap: 6px; }
.key { height: 44px; }
.key.ok { grid-column: span 2; grid-row: auto; height: 44px; font-size: 25px; flex-direction: row; letter-spacing: 1px; }
.key.bustk { background: linear-gradient(180deg, #c8261c, #8a1410); color: #fff; box-shadow: 0 4px 0 #4a0806; font-family: Bebas; font-size: 22px; letter-spacing: 1.5px; }

/* react / Daz pads: no talk-back; undo always there */
.padrow { display: flex; gap: 8px; position: relative; }
.padrow .btn { height: 48px; }
.padrow .undob { width: 34%; flex: none; font-size: 19px; border-color: #c9a77a; }
.padrow #dSkip { font-size: 17px; }
.padrow #rBtn { font-size: 20px; }
.rpad .toast .big { font-size: 40px; }
.rpad .toast .t { font-size: 13px; }

/* boot splash */
#boot { background: radial-gradient(ellipse at 50% 42%, #3a1a0c 0%, #120705 70%); z-index: 100; display: none; align-items: center; justify-content: center; transition: opacity .25s; }
#boot.on { display: flex; }
#boot.out { opacity: 0; }
.bootc { text-align: center; }
.board { position: relative; width: 150px; height: 150px; margin: 0 auto 18px; border-radius: 50%; background: repeating-conic-gradient(#1a1a1a 0 9deg, #f3e3c0 9deg 18deg); border: 8px solid #2a1a10; box-shadow: 0 0 40px rgba(245,197,24,.25), 0 10px 30px rgba(0,0,0,.6); animation: boardIn .45s ease-out both; }
.board .ring { position: absolute; border-radius: 50%; border: 6px solid; border-color: #c8261c #2f8f4a #c8261c #2f8f4a; }
.board .r1 { inset: 4px; } .board .r2 { inset: 34px; } .board .r3 { inset: 56px; border-width: 4px; }
.board .bull { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #c8261c; box-shadow: 0 0 0 5px #2f8f4a; }
.board .dart { position: absolute; left: 50%; top: 50%; width: 0; height: 0; animation: dartIn .5s .45s cubic-bezier(.5,0,.9,.6) both; }
.board .dart i { position: absolute; left: -3px; top: -86px; width: 6px; height: 86px; border-radius: 3px; background: linear-gradient(180deg, #F5C518 0 26%, #ddd 26% 80%, #888 80%); transform-origin: 3px 86px; transform: rotate(-28deg); }
.board .dart i:before { content: ''; position: absolute; left: -9px; top: -4px; width: 24px; height: 26px; background: #F5C518; clip-path: polygon(50% 0, 100% 100%, 50% 75%, 0 100%); }
.bootc .logo { display: flex; flex-direction: column; line-height: .9; animation: logoIn .45s .85s cubic-bezier(.2,1.6,.4,1) both; }
.bootc .logo .a { font-family: Anton; font-size: 64px; color: #F5C518; text-shadow: 0 4px 0 #8a1414, 0 10px 22px rgba(0,0,0,.6); }
.bootc .logo .b { font-family: Bebas; font-size: 44px; letter-spacing: 14px; color: #fff3d0; margin-left: 14px; }
.bootc .tag { margin-top: 12px; font-family: Bebas; letter-spacing: 6px; font-size: 16px; color: #c9a77a; animation: logoIn .3s 1.05s both; }
@keyframes boardIn { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes dartIn { 0% { transform: translate(160px,-220px) scale(1.6); opacity: 0; } 70% { opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes logoIn { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.board { animation: boardIn .45s ease-out both, thudShake .25s .95s both; }
@keyframes thudShake { 0%,100% { transform: none; } 30% { transform: translate(3px,2px); } 60% { transform: translate(-2px,-1px); } }

/* home title */
#ladder .lad-title .k { font-family: Anton; font-size: 22px; letter-spacing: 3px; color: #fff3d0; text-shadow: 0 2px 0 #8a1414; }

/* end + my-stats screens: scrolling column, TV-graphic stats */
#statsPage { background: #120705; }
#statsPage .bgp { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(3px) brightness(.3); }
.endscroll { position: absolute; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; z-index: 6; padding: 46px 12px 18px; display: flex; flex-direction: column; gap: 10px; }
#end .res, #statsPage .res { position: relative; top: auto; }
#statsPage .res .w { font-family: Anton; font-size: 42px; color: #F5C518; text-align: center; text-shadow: 0 4px 0 #8a1414; }
#end .res .w { font-size: 44px; }
#end .bubble.mini.end { position: relative; left: auto; top: auto; align-self: center; max-width: 100%; }
#end .bubble.mini.end:after { display: none; }
#end .bubble.mini.end .tx { font-size: 13.5px; }
.unlock { position: relative; left: auto; right: auto; }
#end .cta, #statsPage .cta { position: relative; left: auto; right: auto; bottom: auto; display: flex; flex-direction: column; gap: 8px; margin-top: 2px; }
.stats.tv { position: relative; left: auto; right: auto; top: auto !important; bottom: auto !important; padding: 0 0 10px; overflow: hidden; border: 2px solid #F5C518; background: linear-gradient(180deg, rgba(20,9,5,.96), rgba(10,4,2,.97)); }
.tvhead { display: flex; align-items: center; height: 38px; background: linear-gradient(90deg, #1d2b52 0 33%, #F5C518 33% 67%, #5a1414 67%); font-family: Bebas; letter-spacing: 2px; }
.tvhead span { flex: 1; text-align: center; font-size: 18px; }
.tvhead .y { color: #cfe0ff; } .tvhead .d { color: #ffd2c8; } .tvhead .t { color: #1a0a05; font-size: 20px; }
.tvhead.solo { background: linear-gradient(90deg, #8a1414, #F5C518 30%, #F5C518 70%, #8a1414); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px 10px 0; }
.tile { background: linear-gradient(180deg, #2a160c, #1a0c06); border: 1.5px solid #6a4a28; border-radius: 12px; padding: 7px 4px 6px; text-align: center; }
.tile .tl { font-family: Bebas; font-size: 13px; letter-spacing: 1.3px; color: #c9a77a; }
.tile .tv { font-family: Anton; font-size: 38px; line-height: 1.05; color: #fff; }
.tile .tv small { font-size: 18px; }
.tile .ts { font-size: 10px; font-weight: 700; color: #ffb3a3; }
.tile.hot { border-color: #F5C518; box-shadow: 0 0 14px rgba(245,197,24,.3) inset; }
.tile.hot .tv { color: #F5C518; }
.h2hs { padding: 8px 10px 0; display: flex; flex-direction: column; gap: 6px; }
.h2h { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; gap: 6px; }
.h2h > b { font-family: Anton; font-weight: 400; font-size: 19px; color: #e9d6b0; text-align: center; }
.h2h > b.win { color: #F5C518; }
.h2h .bars { position: relative; height: 24px; border-radius: 6px; background: rgba(255,255,255,.06); overflow: hidden; }
.h2h .bars i { position: absolute; top: 0; bottom: 0; }
.h2h .bars .by { right: 50%; background: linear-gradient(270deg, #3d5bb0, #7d9bff); }
.h2h .bars .bd { left: 50%; background: linear-gradient(90deg, #a8261c, #ff6a4a); }
.h2h .bars span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: Bebas; font-size: 14px; letter-spacing: 1.3px; color: #fff; text-shadow: 0 1px 3px #000, 0 0 6px #000; }
.rowstat { display: flex; justify-content: space-between; align-items: baseline; padding: 3px 4px; border-top: 1px solid rgba(138,106,42,.25); font-family: Bebas; letter-spacing: 1.3px; font-size: 15px; color: #c9a77a; }
.rowstat b { font-family: Anton; font-weight: 400; font-size: 20px; color: #fff; }
.sec { padding: 10px 12px 0; font-family: Bebas; font-size: 15px; letter-spacing: 1.6px; color: #F5C518; display: flex; justify-content: space-between; align-items: center; }
.sec small { font-size: 12px; color: #c9a77a; display: flex; align-items: center; gap: 4px; }
.sec small i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; margin-left: 6px; }
.sec .ky { background: #7d9bff; } .sec .kd { background: #ff6a4a; }
.chart { display: flex; gap: 8px; height: 96px; padding: 6px 12px 0; align-items: stretch; }
.chart .col { flex: 1; display: flex; flex-direction: column; }
.chart .pair { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 3px; border-bottom: 1.5px solid #6a4a28; }
.chart .pair i { position: relative; width: 42%; border-radius: 4px 4px 0 0; animation: grow .6s ease-out both; }
.chart.solo .pair i { width: 62%; }
.chart .pair em { position: absolute; top: -15px; left: 0; right: 0; text-align: center; font-style: normal; font-family: Anton; font-size: 11px; color: #fff; }
.chart .cy { background: linear-gradient(180deg, #7d9bff, #3d5bb0); } .chart .cd { background: linear-gradient(180deg, #ff6a4a, #a8261c); }
.chart.solo .cy { background: linear-gradient(180deg, #ffd84a, #c88a10); }
.chart span { text-align: center; font-family: Bebas; font-size: 12px; letter-spacing: 1px; color: #c9a77a; margin-top: 3px; }
.chart .empty { flex: 1; display: flex; align-items: center; justify-content: center; color: #8a6a4a; font-size: 12px; font-weight: 600; }
@keyframes grow { from { transform: scaleY(0); transform-origin: bottom; } to { transform: none; transform-origin: bottom; } }
.stats.tv .dsays { margin: 0; }
.dsays { margin: 10px 10px 0; display: flex; align-items: center; gap: 10px; background: #fffdf4; color: #1a0c0a; border-radius: 12px; padding: 6px 10px 6px 6px; border: 2px solid #1a0c0a; }
.dsays img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid #c8261c; flex: none; background: #2a160c; }
.dsays b { display: block; font-family: Bebas; font-weight: 400; color: #c8261c; letter-spacing: 1.3px; font-size: 12px; }
.dsays div { font-weight: 700; font-size: 14px; line-height: 1.25; }
.note { text-align: center; font-size: 10px; color: #8a6a4a; padding-top: 8px; }

/* report form */
#modal textarea { width: 100%; height: 96px; border-radius: 12px; border: 2px solid #5a4020; background: #0e0705; color: #fff; font: 600 14px Poppins, sans-serif; padding: 10px; resize: none; margin-bottom: 8px; }
#modal #repTik { font: 600 15px Poppins, sans-serif; color: #fff; height: 46px; text-align: left; padding: 0 12px; }
#modal .hp { position: absolute; left: -9999px; height: 0; overflow: hidden; margin: 0; }
#modal .repmsg { min-height: 18px; font-size: 12px; font-weight: 700; color: #ffb3a3; margin-bottom: 8px; }
#modal .opts button.wide { flex-basis: 100%; }
#match .boss-tag { display: none; }
.bubble.mini { left: 10px; top: 222px; max-width: 272px; }
.bubble.mini:after { left: 62%; }
.hud { height: 166px; }
.pl .rem { font-size: 80px; }
.bubble.mini { top: 211px; }
.mood { top: 212px; }
.scene .scbg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(2px) brightness(.55); }
.endscroll > * { flex-shrink: 0; }
.chart.solo { justify-content: center; } .chart.solo .col { max-width: 62px; }
/* react pad: no talk-back now, so the score summary gets the space */
.rpad .toast { flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 14px 12px; margin-top: 10px; }
.rpad .toast .big { font-size: 76px; line-height: .95; }
.rpad .toast .t { font-size: 15px; line-height: 1.35; }

/* v2.1: home screen as a flex column so the trophy shelf never slides under the ladder,
   whatever the frame height (badge strip on netlify.app, small iPhones). */
#ladder.on { display: flex; flex-direction: column; padding: 18px 12px 14px; gap: 8px; }
#ladder .lad-title, #ladder .rungs, #ladder .shelf, #ladder .lad-cta { position: relative; top: auto; bottom: auto; left: auto; right: auto; flex: none; }
#ladder .rungs { flex: 1 1 auto; min-height: 0; justify-content: space-between; gap: 5px; }
#ladder .rung { flex: 1 1 64px; height: auto; min-height: 44px; max-height: 64px; }
#ladder .rung.boss { flex: 1.4 1 92px; min-height: 66px; max-height: 92px; }
#ladder .rung img { width: auto; height: 100%; max-height: 50px; aspect-ratio: 1; object-fit: cover; }
#ladder .rung.boss img { max-height: 74px; height: calc(100% - 8px); }
#ladder .rung .info { overflow: hidden; }
#ladder .shelf .h { margin-bottom: 4px; }

/* v2.2: full-screen intro (outside the phone frame) */
#boot { position: fixed; inset: 0; z-index: 200; background: #120705; overflow: hidden; display: none; padding: 0; }
#boot.on { display: block; }
#boot.out { opacity: 0; transition: opacity .25s; }
#boot .bootimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; }
#boot .bootshade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10,4,2,.78) 0%, rgba(10,4,2,0) 22%, rgba(10,4,2,0) 74%, rgba(10,4,2,.85) 100%); }
#boot .boottxt { position: absolute; left: 0; right: 0; text-align: center; font-family: Anton; color: #F5C518; line-height: 1; letter-spacing: 1px;
  text-shadow: 0 4px 0 #8a1414, 0 8px 0 #4a0a0a, 0 14px 30px rgba(0,0,0,.8); -webkit-text-stroke: 2px #1a0a05; }
#boot .boottxt.top { top: max(18px, 2.5vh); font-size: min(19vw, 11vh); }
#boot .boottxt.bot { bottom: max(18px, 3vh); font-size: min(21vw, 12vh); letter-spacing: .14em; padding-left: .14em; color: #fff3d0; }
#boot .boottap { position: absolute; left: 50%; bottom: calc(max(18px, 3vh) + min(21vw, 12vh) + 18px); transform: translateX(-50%); font-family: Bebas; font-size: 24px; letter-spacing: 2px; color: #1a0a05;
  background: #F5C518; padding: 8px 22px; border-radius: 30px; box-shadow: 0 6px 18px rgba(0,0,0,.6); animation: tapPulse 1.1s ease-in-out infinite; white-space: nowrap; }
@keyframes tapPulse { 0%,100% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.08); } }
#boot.go .bootimg { animation: introZoom 2.6s ease-out both; }
#boot.go .boottxt.top { animation: slamTop .45s cubic-bezier(.2,1.5,.4,1) both; }
#boot.go .boottxt.bot { animation: slamBot .45s .7s cubic-bezier(.2,1.5,.4,1) both; }
@keyframes introZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes slamTop { from { transform: translateY(-60px) scale(1.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes slamBot { from { transform: translateY(60px) scale(1.4); opacity: 0; } to { transform: none; opacity: 1; } }
#boot .boottxt.top { font-size: min(17vw, 9.5vh); top: max(14px, 2vh); }
/* v2.3: legs score ~17% smaller; speech tag in the top-left corner over the background, not his face */
.mid .legs { font-size: 48px; }
.mid .legs span { font-size: 33px; vertical-align: 6px; }
.bubble.mini { left: 8px; top: 210px; max-width: 46%; align-items: flex-start; flex-wrap: wrap; row-gap: 2px; }
.bubble.mini .tx { font-size: 13.5px; }
.bubble.mini:after { display: none; }
.bubble.mini { top: auto !important; bottom: 388px !important; left: 8px; max-width: 58%; }
/* v2.3: taller score boxes, big remaining centred, AVG / LAST / DARTS stacked underneath */
.hud { height: 204px; }
.pl { padding: 7px 8px 8px; align-items: stretch; text-align: center; }
.pl .nm, .pl.daz .nm { justify-content: center; }
.pl .rem, .pl.daz .rem { font-size: 74px; justify-content: center; text-align: center; flex: 0 0 auto; margin: 2px 0 4px; }
.pl .meta, .pl.daz .meta { flex-direction: column; align-items: center; justify-content: flex-start; gap: 1px; font-size: 12.5px; line-height: 1.25; letter-spacing: .6px; opacity: 1; flex: 1; }
.pl .meta span { display: block; white-space: nowrap; }
.pl .meta b { font-size: 13.5px; margin-left: 2px; }
.pl .nerve { margin-top: 4px; }
.mood { top: 220px; }
/* short phones (e.g. 375x667): slightly tighter boxes, tag above the keypad so it clears his face */
#phone.short .hud { height: 190px; }
#phone.short .pl .rem { font-size: 68px; margin: 0 0 2px; }
#phone.short .pl .meta { font-size: 12px; line-height: 1.2; }
#phone.short .mood { top: 204px; }
#phone.short .bubble.mini { bottom: 396px !important; }
.callout.special { box-shadow: 0 0 0 2px #F5C518, 0 0 18px rgba(245,197,24,.5); }
.callout.special .w { color: #ffe27a; }
/* ton-plus finish flourish: gold flash over the whole screen */
#phone.tonflash::after { content: ''; position: absolute; inset: 0; z-index: 60; pointer-events: none; background: radial-gradient(circle at 50% 40%, rgba(255,226,122,.55), rgba(245,197,24,0) 70%); opacity: 0; animation: tonflash .9s ease-out 2 forwards; }
/* 15 Nov fix: the overlay had no resting opacity, so once the 2 flashes ended it sat at full strength (gold wash stuck over
   the next leg and the end screen). Now it rests at 0 and JS also removes the class (timer, animationend, leg/screen change, tab hidden). */
@keyframes tonflash { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; } }
#phone.short .splash { font-size: 62px; }
#phone.short .splash .sub2 { font-size: 23px; }
/* ===== v2.4 intro: muted step-up video, end frame, big PLAY ===== */
#boot .bootvid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; background: transparent; }
#boot .bootvid.gone { display: none; }
#boot.go .bootimg { animation: none; }
#boot .boottxt { z-index: 3; } #boot .bootshade { z-index: 2; }
#boot.go .boottxt.top { animation: slamTop .45s .15s cubic-bezier(.2,1.5,.4,1) both; }
#boot.go .boottxt.bot { animation: slamBot .45s 2.3s cubic-bezier(.2,1.5,.4,1) both; }
#boot.end .boottxt.bot { animation: none; opacity: 1; transform: none; }
#boot .bootplay { position: absolute; z-index: 4; left: 0; right: 0; margin: 0 auto; width: max-content; bottom: calc(max(18px, 3vh) + min(21vw, 12vh) + 22px); opacity: 0;
  font-family: Anton; font-size: min(11.5vw, 6.1vh); letter-spacing: .12em; padding: .12em 1.1em .1em 1.22em; color: #1a0a05; cursor: pointer;
  background: linear-gradient(180deg, #ffe27a 0%, #F5C518 55%, #d9a400 100%); border-radius: 18px; border: 3px solid #1a0a05;
  box-shadow: 0 6px 0 #8a5a00, 0 12px 30px rgba(0,0,0,.6); transition: opacity .25s ease-out; isolation: isolate; }
/* PLAY itself stays perfectly still (no transform, no animation); only a soft glow behind it breathes */
#boot .bootplay::before { content: ''; position: absolute; inset: -3px; border-radius: 20px; pointer-events: none; z-index: -1;
  box-shadow: 0 0 0 6px rgba(245,197,24,.55), 0 0 26px 10px rgba(245,197,24,.55); opacity: 0; will-change: opacity; }
#boot .bootplay.in { opacity: 1; }
#boot .bootplay.in::before { animation: playGlow 1.6s .3s ease-in-out infinite; }
#boot .bootplay.hit { box-shadow: 0 2px 0 #8a5a00, 0 6px 16px rgba(0,0,0,.6); filter: brightness(.92); }
#boot .bootplay.hit::before { animation: none; opacity: 0; }
@keyframes playGlow { 0%,100% { opacity: .15; } 50% { opacity: 1; } }
/* ===== v2.4 mode select ===== */
#modesel { display: none; flex-direction: column; padding: 0 16px; }
#modesel.on { display: flex; }
#modesel .lad-bg { position: absolute; inset: 0; z-index: 0; } #modesel .lad-bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.35) blur(1px); }
#modesel > *:not(.lad-bg) { position: relative; z-index: 1; }
#modesel .ms-head { text-align: center; margin-top: 34px; }
#modesel .ms-head .k { font-family: Bebas; font-size: 18px; letter-spacing: 3px; color: #e9c46a; }
#modesel .ms-head .w { font-family: Anton; font-size: 44px; line-height: 1; color: #fff8e0; text-shadow: 0 4px 0 #8a1414, 0 10px 24px rgba(0,0,0,.6); margin-top: 4px; }
#modesel .ms-head .s { font-size: 14px; font-weight: 600; color: #e8d6b8; margin-top: 8px; }
#modesel .ms-list { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
#modesel .msb { border-radius: 18px; padding: 14px 18px 14px; border: 3px solid rgba(255,255,255,.18); cursor: pointer; position: relative; overflow: hidden;
  box-shadow: 0 6px 0 rgba(0,0,0,.45), 0 12px 26px rgba(0,0,0,.5); transition: transform .12s; }
#modesel .msb:active { transform: translateY(3px); }
#modesel .msb .l { font-family: Anton; font-size: 46px; line-height: 1; color: #fff; text-shadow: 0 3px 0 rgba(0,0,0,.4); letter-spacing: 1px; }
#modesel .msb .a { font-family: Bebas; font-size: 21px; letter-spacing: 1.5px; color: #fff3d0; margin-top: 4px; }
#modesel .msb .a b { font-family: Anton; font-weight: 400; font-size: 26px; color: #F5C518; }
#modesel .msb .q { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.82); margin-top: 2px; }
#modesel .msb.easy { background: linear-gradient(135deg, #1f6b3a 0%, #0f3a1f 100%); }
#modesel .msb.normal { background: linear-gradient(135deg, #1d3f8f 0%, #0d1f4d 100%); }
#modesel .msb.hard { background: linear-gradient(135deg, #a31d1d 0%, #4d0b0b 100%); }
#modesel .msb.sel { border-color: #F5C518; box-shadow: 0 0 0 3px rgba(245,197,24,.45), 0 6px 0 rgba(0,0,0,.45), 0 12px 26px rgba(0,0,0,.5); }
#modesel .msb.sel::after { content: 'LAST PLAYED'; position: absolute; right: 14px; top: 14px; font-family: Bebas; font-size: 14px; letter-spacing: 1.5px; color: #1a0a05; background: #F5C518; padding: 2px 8px; border-radius: 6px; }
#modesel .ms-foot { text-align: center; font-size: 12px; font-weight: 600; color: #b8946a; margin-top: 18px; }
.mid .mtag { margin-top: 6px; font-family: Bebas; font-size: 12px; letter-spacing: 1.5px; color: #e8d6b8; opacity: .85; }
.mid .mtag.easy { color: #8fe3a8; } .mid .mtag.hard { color: #ff9d8a; }
.rung .st .ms { font-family: Bebas; letter-spacing: 1px; padding: 0 5px; border-radius: 4px; background: rgba(245,197,24,.18); color: #F5C518; }
.bubble.mini.fade { opacity: 0; transition: opacity .35s ease; }
/* keypad v3 */
.key.bs { color: #fff3d0; }
.key.bs svg { width: 44px !important; height: 31px !important; }
.key.bs svg { width: 46px; height: 33px; display: block; filter: drop-shadow(0 2px 0 rgba(0,0,0,.35)); }
.entry .chip.bust { background: linear-gradient(180deg, #c8261c, #8a1410); border: 2px solid #ff6a5a; color: #fff; box-shadow: 0 3px 0 #4a0806; font-size: 21px; letter-spacing: 1.5px; }
.entry .chip.bust small { color: #ffd2c8; opacity: .95; font-size: 7.5px; }

.pl .meta span.coline { margin-top: 2px; font-size: 11.5px; letter-spacing: .5px; }
.pl .meta span.coline b { font-size: 13px; color: #ffe27a; letter-spacing: .8px; }
.pl .meta span.coline b.cobogey { color: #ff9a8a; }
.pl .meta span[hidden] { display: none; }
.pl .meta span.coline { line-height: 1.1; }
.pl .meta span.coline b { display: block; margin-left: 0; }
.pl .meta span.coline, .pl .meta span.coline b { text-align: center; }
.entry .chip.bust, .entry .chip.out { display: flex; align-items: center; justify-content: center; }
.entry .chip.out { font-size: 15px; letter-spacing: .5px; }
/* keypad v3b: BUST + CHECKOUT same font, width follows the word */
.entry .chip.bust, .entry .chip.out { width: auto; flex: 0 0 auto; padding: 0 14px; font-family: Bebas; font-size: 20px; letter-spacing: 1.2px; line-height: 1; }
.entry .box { min-width: 0; }
#phone.short .entry .chip.bust, #phone.short .entry .chip.out { font-size: 19px; padding: 0 12px; }
/* keypad v3c: smaller backspace, bigger right-column labels */
.key.bs svg { width: 34px !important; height: 24px !important; }
#kUndo, #kMore { font-size: 18px !important; }
.key[data-k="NOSCORE"] { font-size: 16px !important; }
#phone.short #kUndo, #phone.short #kMore { font-size: 17px !important; }
#phone.short .key[data-k="NOSCORE"] { font-size: 15px !important; }
/* remaining strip: icon + words are one centred unit (Ryan t2345: GAME SHOT with dart was off-centre) */
.remlive { display: flex; align-items: center; justify-content: center; text-align: center; line-height: 20px; white-space: nowrap; overflow: hidden; }
.remlive .rlunit { display: inline-flex; align-items: center; justify-content: center; gap: 6px; max-width: 100%; }
.remlive b { font-family: Bebas; font-size: 19px; line-height: 20px; vertical-align: baseline; letter-spacing: 1px; margin: 0 3px; }
.remlive .rli { width: 14px; height: 14px; margin: 0; flex: none; display: block; }
/* BUST greyed out when a bust isn't possible (more than 180 left) */
.entry .chip.bust.off { background: #3a302a; border-color: #5a4a40; color: #8a7a70; box-shadow: none; opacity: .55; pointer-events: none; }
/* CHECKOUT greyed out unless the remaining score is a real 3-dart finish (2–170, not a bogey, not 0 or 1). */
.entry .chip.out.off { background: #3a302a; border-color: #5a4a40; color: #8a7a70; box-shadow: none; opacity: .55; pointer-events: none; }

/* ===== v2.5 dart-by-dart pad ===== */
#padDart { position: relative; }
.dwrow { display: grid; grid-template-columns: 1fr 1fr 1fr 78px; gap: 6px; height: 50px; }
.dwin, .dwtot { border-radius: 11px; background: #0e0705; border: 2px solid #5a4020; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; cursor: pointer; position: relative; }
.dwin .n, .dwtot .n { font-family: Bebas; font-size: 11px; letter-spacing: 1.4px; color: #b8946a; }
.dwin b { font-family: Anton; font-weight: 400; font-size: 21px; color: #5a4020; margin-top: 1px; letter-spacing: .5px; }
.dwin small { font-family: Bebas; font-size: 10px; letter-spacing: 1px; color: #8a6a4a; margin-top: 1px; }
.dwin.filled b { color: #F5C518; }
.dwin.filled small { color: #f3dcb4; }
.dwin.sel { border-color: #F5C518; box-shadow: 0 0 0 2px rgba(245,197,24,.35), inset 0 0 12px rgba(245,197,24,.15); }
.dwin.sel::after { content: ''; position: absolute; bottom: -7px; left: 50%; margin-left: -6px; border: 6px solid transparent; border-top-color: #F5C518; border-bottom: 0; }
.dwin.lock { opacity: .45; cursor: default; }
.dwin.lock b { color: #8a6a4a; }
.dwin.dbl { border-color: #3fbf6b; background: #0d3a1e; } .dwin.dbl b { color: #9ff0b8; }
.dwin.bad { border-color: #ff5a3c; background: #3a0c0a; } .dwin.bad b { color: #ff8a7a; }
.dwtot { background: #1e120a; border-color: #8a6a3a; cursor: default; }
.dwtot b { font-family: Anton; font-weight: 400; font-size: 25px; color: #fff3d0; }
.dwtot.out { background: #0d3a1e; border-color: #3fbf6b; } .dwtot.out b { color: #9ff0b8; }
.dwtot.bust { background: #3a0c0a; border-color: #ff5a3c; } .dwtot.bust b { color: #ff8a7a; font-size: 21px; }
#padDart .remlive { margin-top: 6px; }
.dtabs { display: grid; grid-template-columns: 1fr 1fr 1fr 54px 76px; gap: 5px; margin-top: 6px; height: 30px; }
.dtabs span { border-radius: 9px; display: flex; align-items: center; justify-content: center; font-family: Bebas; font-size: 15px; letter-spacing: 1.2px; cursor: pointer; border: 1px solid #6a4a28; background: #3a2414; color: #c9a77a; }
.dtabs span.on.s { background: linear-gradient(180deg, #fff6e0, #e8d3a8); color: #2a160c; border-color: #fff3d0; }
.dtabs span.on.d { background: linear-gradient(180deg, #e0382c, #a01810); color: #fff; border-color: #ff8a7a; }
.dtabs span.on.t { background: linear-gradient(180deg, #2fa65c, #17703a); color: #fff; border-color: #9ff0b8; }
.dtabs .dchip.bust { background: linear-gradient(180deg, #c8261c, #8a1410); border-color: #ff6a5a; color: #fff; }
.dtabs .dchip.bust.off { background: #3a302a; border-color: #5a4a40; color: #8a7a70; opacity: .55; pointer-events: none; }
.dtabs .dchip.out.off { background: #3a302a; border-color: #5a4a40; color: #8a7a70; opacity: .55; pointer-events: none; }
.dtabs .dchip.out { background: #0d3a1e; border-color: #3fbf6b; color: #9ff0b8; }
.dgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-top: 6px; }
.dk { height: 37px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-family: Anton; font-size: 20px; color: #2a160c; cursor: pointer; position: relative;
  background: linear-gradient(180deg, #fff6e0, #e8d3a8); box-shadow: 0 3px 0 #9a7a4a; line-height: 1; user-select: none; -webkit-user-select: none; }
.dk:active { transform: translateY(2px); box-shadow: 0 1px 0 #9a7a4a; }
.dk i { font-style: normal; font-family: Bebas; font-size: 12px; margin-right: 1px; align-self: center; opacity: .9; }
.dk.o25 { background: linear-gradient(180deg, #4cc47a, #1f8a4c); color: #fff; box-shadow: 0 3px 0 #0c4a26; font-size: 18px; }
.dk.dis { opacity: .3; pointer-events: none; }
.dbot { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr 2fr; gap: 5px; margin-top: 7px; }
.dbot .dk { height: 42px; flex-direction: column; font-family: Bebas; font-size: 17px; letter-spacing: 1px; }
.dbot .dk small { font-family: Bebas; font-size: 10px; letter-spacing: .8px; opacity: .75; margin-top: 1px; }
.dbot .dk.bull { background: radial-gradient(circle at 50% 45%, #e0382c 0 30%, #1f8a4c 31% 62%, #17703a 63%); color: #fff; box-shadow: 0 3px 0 #0c4a26; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.dbot .dk.miss { background: linear-gradient(180deg, #5a3a20, #3a2414); color: #f3dcb4; box-shadow: 0 3px 0 #1e1008; }
.dbot .dk.fn { background: linear-gradient(180deg, #5a3a20, #3a2414); color: #f3dcb4; box-shadow: 0 3px 0 #1e1008; font-size: 15px; }
.dbot .dk.ok { background: linear-gradient(180deg, #ffd84a 0%, #e2a814 100%); box-shadow: 0 3px 0 #8a5a08, 0 6px 12px rgba(0,0,0,.4); font-size: 22px; letter-spacing: 1px; color: #1a0a05; }
.dbot .dk.ok.out { background: linear-gradient(180deg, #5fe08a, #1f8a4c); color: #fff; box-shadow: 0 3px 0 #0c4a26, 0 0 14px rgba(95,224,138,.5); }
.dbot .dk.ok.bust { background: linear-gradient(180deg, #ff6a5a, #c8261c); color: #fff; box-shadow: 0 3px 0 #6a0e08; }
/* ===== v2.5 who's on the oche first ===== */
#first { background: #120705; overflow: hidden; }
#first .bgp { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(2px) brightness(.4); }
#first .spot { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, rgba(255,214,120,.22), rgba(0,0,0,0) 60%), linear-gradient(to bottom, rgba(18,7,5,.3), rgba(18,7,5,.92) 95%); }
.wf-head { position: relative; z-index: 2; text-align: center; padding-top: 30px; }
.wf-head .k { font-family: Bebas; font-size: 16px; letter-spacing: 3px; color: #e9c46a; }
.wf-head .w { font-family: Anton; font-size: 40px; line-height: .98; color: #fff8e0; text-shadow: 0 4px 0 #8a1414, 0 10px 24px rgba(0,0,0,.6); margin-top: 4px; letter-spacing: .5px; }
.wf-body { position: relative; z-index: 2; padding: 0 16px; }
.wf-daz { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.wf-daz img { width: 96px; height: 96px; border-radius: 50%; border: 4px solid #F5C518; box-shadow: 0 6px 18px rgba(0,0,0,.6); object-fit: cover; background: #2a160c; flex: none; }
.wf-chalk { flex: 1; background: #1d2a22; border: 6px solid #6a4426; border-radius: 10px; padding: 10px 12px; font-family: Bebas; font-size: 19px; letter-spacing: 1px; line-height: 1.15; color: #f4f1e4;
  box-shadow: inset 0 0 18px rgba(0,0,0,.55), 0 6px 14px rgba(0,0,0,.5); text-shadow: 0 0 1px rgba(255,255,255,.6); }
.wf-opts { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.wf-card { display: flex; align-items: center; gap: 14px; border-radius: 18px; padding: 14px 16px; border: 3px solid rgba(255,255,255,.18); cursor: pointer; box-shadow: 0 6px 0 rgba(0,0,0,.45), 0 12px 26px rgba(0,0,0,.45); }
.wf-card:active { transform: translateY(3px); }
.wf-card .ic { font-size: 40px; width: 52px; text-align: center; flex: none; }
.wf-card .t { font-family: Anton; font-size: 27px; line-height: 1; color: #fff; letter-spacing: .5px; }
.wf-card .q { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.85); margin-top: 4px; }
.wf-card.bull { background: linear-gradient(135deg, #1f6b3a 0%, #0f3a1f 100%); }
.wf-card.coin { background: linear-gradient(135deg, #a3741d 0%, #4d330b 100%); }
.wf-card.play { background: linear-gradient(135deg, #a31d1d 0%, #4d0b0b 100%); }
.wf-card.play .ic { font-size: 34px; color: #F5C518; }
.wf-skip { text-align: center; font-family: Bebas; font-size: 20px; letter-spacing: 1.5px; color: #f3dcb4; padding: 12px; border-radius: 14px; border: 2px dashed #6a4a28; background: rgba(0,0,0,.35); cursor: pointer; }
.wf-bwrap { display: flex; justify-content: center; margin-top: 14px; }
.wf-board { width: 232px; height: 232px; filter: drop-shadow(0 8px 16px rgba(0,0,0,.6)); overflow: visible; }
.wf-board .bn { font-family: Anton; font-size: 15px; fill: #f3e6c8; text-anchor: middle; dominant-baseline: central; }
.wf-board .mk .pin { stroke: #fff; stroke-width: 1.5; }
.wf-board .mk.you .pin { fill: #2f6bff; } .wf-board .mk.daz .pin { fill: #F5C518; }
.wf-board .mk .ml { font-family: Bebas; font-size: 12px; letter-spacing: 1px; text-anchor: middle; fill: #fff; paint-order: stroke; stroke: #000; stroke-width: 3px; }
.wf-board .mk.fly { animation: wfFly .5s cubic-bezier(.2,.8,.3,1) both; transform-origin: var(--x) var(--y); }
@keyframes wfFly { from { transform: translate(0, -160px) scale(2.2); opacity: 0; } 60% { opacity: 1; } to { transform: none; opacity: 1; } }
.wf-res { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 12px; font-family: Bebas; letter-spacing: 1.2px; }
.wf-res > span { flex: 1; text-align: center; padding: 6px 4px; border-radius: 10px; background: rgba(0,0,0,.45); border: 2px solid #5a4020; font-size: 15px; color: #c9a77a; }
.wf-res b { display: block; font-family: Anton; font-weight: 400; font-size: 20px; color: #fff3d0; letter-spacing: .5px; }
.wf-res .vs { flex: none; background: none; border: 0; font-family: Anton; font-size: 18px; color: #F5C518; }
.wf-res .you { border-color: #2f6bff; } .wf-res .daz { border-color: #F5C518; }
.wf-res.done.you .you, .wf-res.done.daz .daz { background: #0d3a1e; border-color: #3fbf6b; }
.wf-ask { margin-top: 12px; }
.wf-ask .h { text-align: center; font-family: Bebas; font-size: 17px; letter-spacing: 1.5px; color: #F5C518; margin-bottom: 8px; }
.wf-ask .g { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wf-b { height: 52px; border-radius: 13px; display: flex; flex-direction: row; align-items: center; justify-content: center; text-align: center; font-family: Anton; font-size: 20px; letter-spacing: .5px; line-height: 1; cursor: pointer;
  background: linear-gradient(180deg, #fff6e0, #e8d3a8); color: #2a160c; box-shadow: 0 4px 0 #9a7a4a; padding: 0 8px; box-sizing: border-box; }
.wf-b small { display: none; }   /* Ryan t2296: no 'Dead centre' / 'Just off' under BULL / OUTER 25 */
.wf-b.r0 { background: radial-gradient(circle at 50% 50%, #e0382c 0 28%, #c8261c 29%, #a01810); color: #fff; box-shadow: 0 4px 0 #5a0a06; } .wf-b.r0 small { color: #ffd2c8; }
.wf-b.r1 { background: linear-gradient(180deg, #4cc47a, #1f8a4c); color: #fff; box-shadow: 0 4px 0 #0c4a26; } .wf-b.r1 small { color: #d8ffe4; }
.wf-b:active { transform: translateY(3px); }
.wf-ask.wait .g { opacity: .35; pointer-events: none; }
.wf-ban { margin-top: 14px; text-align: center; font-family: Anton; font-size: 34px; line-height: 1; color: #F5C518; text-shadow: 0 3px 0 #8a1414, 0 8px 18px rgba(0,0,0,.6); animation: splashIn .5s both cubic-bezier(.2,1.6,.4,1); }
.wf-ban small { display: block; font-family: Bebas; font-size: 19px; letter-spacing: 2px; color: #fff3d0; text-shadow: none; margin-top: 4px; }
.wf-ban.you { color: #9ff0b8; }
.wf-cta { position: absolute; left: 16px; right: 16px; bottom: 24px; z-index: 31; }
.wf-cta.two { display: flex; flex-direction: column; gap: 10px; }
.wf-cta .btn.d { height: 48px; }
#first .wf-bub { left: 16px; right: 16px; top: auto; bottom: 100px; z-index: 30; }
#first.cta2 .wf-bub { bottom: 148px; }
.wf-coinwrap { display: flex; justify-content: center; margin-top: 40px; perspective: 700px; }
.wf-coin { width: 168px; height: 168px; position: relative; transform-style: preserve-3d; }
.wf-coin .face { position: absolute; inset: 0; border-radius: 50%; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 30%, #fff1a8, #F5C518 45%, #b88a0a 80%, #7a5a04); border: 6px solid #8a6a08; box-shadow: inset 0 0 0 4px rgba(255,255,255,.35), 0 10px 24px rgba(0,0,0,.6); }
.wf-coin .face img { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; border: 3px solid #8a6a08; filter: sepia(.5) saturate(1.3); }
.wf-coin .face span { font-family: Bebas; font-size: 16px; letter-spacing: 3px; color: #4a3204; margin-top: 2px; }
.wf-coin .face b { font-family: Anton; font-weight: 400; font-size: 58px; color: #6a4a04; text-shadow: 0 2px 0 rgba(255,255,255,.4); line-height: 1; }
.wf-coin .face.t { transform: rotateY(180deg); }
.wf-coin.flip.land-h { animation: coinH 1.4s cubic-bezier(.3,.1,.3,1) both; }
.wf-coin.flip.land-t { animation: coinT 1.4s cubic-bezier(.3,.1,.3,1) both; }
@keyframes coinH { 0% { transform: translateY(0) rotateY(0); } 45% { transform: translateY(-30px) rotateY(1080deg); } 100% { transform: translateY(0) rotateY(2160deg); } }
@keyframes coinT { 0% { transform: translateY(0) rotateY(0); } 45% { transform: translateY(-30px) rotateY(1170deg); } 100% { transform: translateY(0) rotateY(1980deg); } }
.wf-ask .g.two { grid-template-columns: 1fr 1fr; }

#first .wf-bub:after { display: none; }
/* bull up: confirm / redo before Daz throws */
.wf-conf { display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px; margin-top: 10px; }
.wf-conf .btn { height: 50px; }
.wf-conf .btn.d { font-size: 20px; border-color: #c9a77a; }
.wf-conf .btn.y { font-size: 22px; }
.wf-ask.confirm .wf-b { opacity: .45; }
.wf-ask.confirm .wf-b.picked { opacity: 1; outline: 3px solid #F5C518; outline-offset: 2px; box-shadow: 0 0 0 6px rgba(245,197,24,.25), 0 4px 0 #9a7a4a; }
/* keypad switch key (PER DART / TOTAL): player-panel blue so it never reads as UNDO */
.key.swk, .dk.swk { background: linear-gradient(180deg, #3558b8 0%, #1d2f72 100%) !important; color: #eef3ff !important; border: 1px solid #6f8fe6;
  box-shadow: 0 4px 0 #0c1640, inset 0 1px 0 rgba(255,255,255,.22) !important; font-family: Bebas !important; letter-spacing: 1px; flex-direction: column; line-height: 1; }
.key.swk { font-size: 17px !important; gap: 4px; }
.dk.swk { font-size: 15px !important; gap: 3px; }
.swk .swi { fill: none; stroke: #bcd0ff; stroke-width: 1.6; }
.key.swk .swi { width: 30px; height: 14px; }
.dk.swk .swi { width: 20px; height: 15px; }
#phone.short #kMore { font-size: 16px !important; }
/* final: the switch key is just big ⇄ arrows on both pads */
.swk .swi { fill: none; stroke: #ffffff; stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 2px 0 rgba(0,0,0,.35)); }
.key.swk .swi { width: 46px !important; height: 37px !important; }
.dk.swk .swi { width: 40px !important; height: 32px !important; }
/* result panel: one centred line; Daz's darts underneath */
.rpad .toast .t { width: 100%; text-align: center; font-size: 17px; }
.rdarts { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; height: 66px; margin-top: 10px; }
.rdarts .dwin { cursor: default; }
.rdarts .dwin b { font-size: 26px; }
.rdarts .dwin small { font-size: 12px; }
#phone.short .rdarts { height: 64px; margin-top: 8px; }
#phone.short .rdarts .dwin b { font-size: 25px; }
/* bull up v2: tap the board; only BULL + OUTER 25 buttons */
.wf-bwrap { cursor: crosshair; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.wf-board { width: 312px; height: 312px; }
#phone.short .wf-board { width: 290px; height: 290px; }
#phone.short .wf-bwrap { margin-top: 8px; }
.wf-board .mk .pin { stroke-width: 1.2; }
.wf-res b small { display: block; font-family: Bebas; font-size: 12px; letter-spacing: 1px; color: #c9a77a; margin-top: 1px; }
.wf-ask .g .wf-b { height: 48px; }
#first .wf-bub { bottom: 84px; }
#first.cta2 .wf-bub { bottom: 148px; }
#phone.short #first .wf-bub, #phone.short #first.cta2 .wf-bub { top: 52px; bottom: auto; }
/* per-dart BULL key: see below; MISS just the word */
/* Ryan 14 Nov: cream outer ring (was dark green); red bull, green 25 ring, dark readable text */
.dbot .dk.bull { background: radial-gradient(circle at 50% 45%, #e0382c 0 30%, #1f8a4c 31% 62%, #fff6e0 63%); color: #2a160c; text-shadow: 0 0 3px #fff6e0, 0 0 2px #fff6e0; box-shadow: 0 3px 0 #9a7a4a; font-size: 19px; }
.dbot .dk.miss { font-size: 19px; }
/* bull up: neat grid, every box the same size; two equal columns, same edges, gap and radius on every row */
#first .wf-res, #first .wf-ask .g { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; box-sizing: border-box; }
#first .wf-conf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: 10px; width: 100%; box-sizing: border-box; }
#first .wf-res { position: relative; margin-top: 12px; }
#first .wf-res > span:not(.vs), #first .wf-ask .g .wf-b, #first .wf-conf .btn { height: 58px; min-width: 0; box-sizing: border-box; border-radius: 13px; margin: 0; }
#first .wf-res > span:not(.vs) { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 6px; overflow: hidden; font-size: 13px; line-height: 1; }
#first .wf-res b { font-size: 20px; line-height: 1.05; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
#first .wf-res b small { font-size: 11px; margin-top: 1px; }
#first .wf-res .vs { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 26px; height: 26px; border-radius: 50%; background: #120705; border: 2px solid #F5C518; display: flex; align-items: center; justify-content: center; font-size: 14px; z-index: 2; padding: 0; }
#first .wf-ask .g .wf-b { font-size: 21px; padding: 0 8px; flex-direction: row; align-items: center; justify-content: center; text-align: center; line-height: 1; }
#first .wf-ask .g .wf-b small { display: none; }
#first .wf-conf { margin-top: 10px; }
#first .wf-conf .btn { width: auto; font-family: Bebas; font-size: 20px !important; letter-spacing: 1px; gap: 0; white-space: nowrap; overflow: hidden; padding: 0 8px; justify-content: center; text-align: center; }
#first .wf-conf .btn.d { border-width: 2px; }
#first .wf-conf .btn.y { font-size: 20px !important; }
#phone.short #first .wf-res > span:not(.vs), #phone.short #first .wf-ask .g .wf-b, #phone.short #first .wf-conf .btn { height: 52px; }
#phone.short #first .wf-conf, #phone.short #first .wf-res { margin-top: 8px; }
/* quit: danger red in the pub style */
#modal .opts button.quit { background: linear-gradient(180deg,#e0382c,#a01810); color: #fff3d0; box-shadow: 0 4px 0 #5a0a06; font-family: Bebas; font-size: 22px; letter-spacing: 1px; border: 0; }
/* score boxes, tripod-readable: no checkout line; AVG / LAST / DARTS bigger, evenly spaced, label left, value right */
.pl .meta, .pl.daz .meta { flex: 1; display: flex; flex-direction: column; justify-content: space-evenly; align-items: stretch; gap: 0; padding: 0 2px; opacity: 1; }
.pl .meta span:not(.coline) { display: flex; justify-content: space-between; align-items: baseline; width: 100%; font-family: Bebas; font-weight: 400; font-size: 19px; letter-spacing: 1.4px; line-height: 1.05; }
.pl .meta b { font-family: Anton; font-weight: 400; font-size: 26px; letter-spacing: .5px; margin-left: 6px; color: #fff; }
.pl .meta span.coline { display: none !important; }
.pl .rem, .pl.daz .rem { margin: 0 0 2px; }
#phone.short .pl .meta span:not(.coline) { font-size: 16px; letter-spacing: 1.2px; }
#phone.short .pl .meta b { font-size: 21px; }
/* mood bars, labelled and thicker: FORM (your last 3 visits) / SWAGGER (Daz's mood) */
.pl .mbar { display: flex; align-items: center; gap: 6px; margin-top: 5px; }
.pl.daz .mbar { flex-direction: row-reverse; }
.pl .mbar .mlab { font-family: Bebas; font-size: 14px; letter-spacing: 1.3px; color: #e9c46a; line-height: 1; flex: none; }
.pl .mbar .nerve { flex: 1; margin-top: 0 !important; height: 11px; border-radius: 6px; border: 1px solid rgba(255,255,255,.18); }
.pl .mbar .nerve i { border-radius: 6px; }
#phone.short .pl .mbar .mlab { font-size: 12.5px; }
#phone.short .pl .mbar .nerve { height: 9px; }
/* mood badges, tripod-readable: Daz's (right) and your FORM (left) match */
.mood { font-size: 16px; padding: 3px 11px 2px 8px; gap: 6px; }
.mood .ic { font-size: 18px; }
.mood.form { right: auto; left: 12px; border-color: #2f6bff; color: #dfe8ff; }
.mood.form.f1 { border-color: #8a8a8a; color: #d8d8d8; }
.mood.form.f2 { border-color: #2f6bff; color: #dfe8ff; }
.mood.form.f3 { border-color: #3fbf6b; color: #b4f5c8; }
.mood.form.f4 { border-color: #ff8a2a; color: #ffd0a0; }
.mood.form.f5 { border-color: #F5C518; color: #ffe27a; box-shadow: 0 0 12px rgba(245,197,24,.5), 0 3px 10px rgba(0,0,0,.45); }
/* tripod keypad: bigger quick chips (6), symbol-only undo, chunkier NO SCORE */
#match .pad { height: 344px; }
.quick { gap: 6px; margin: 8px 0 8px; }
.quick span { height: 40px; padding: 0; display: flex; align-items: center; justify-content: center; font-size: 24px; letter-spacing: .5px; border-radius: 11px;
  background: linear-gradient(180deg, #4a2e18, #321e10); border: 1.5px solid #8a6438; color: #fff0d0; box-shadow: 0 3px 0 #1e1008; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
#phone.short .quick { margin: 6px 0; }
#phone.short .quick span { height: 36px; font-size: 22px; }
#kUndo.undok { font-family: Anton !important; font-size: 30px !important; line-height: 1; }
.key.nosk { font-family: Anton !important; font-size: 17px !important; letter-spacing: .6px; line-height: 1; }
#phone.short .key.nosk { font-size: 16px !important; }
#phone.short #kUndo.undok { font-size: 28px !important; }
.qedit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 6px; }
#modal .qedit input { height: 52px; margin: 0; font-size: 26px; }
#modal .qedit input.bad { border-color: #ff5a3c; color: #ff8a7a; animation: shake .35s; }
#sheet .res#qErr { min-height: 18px; color: #ffb3a3; font-family: Bebas; letter-spacing: 1px; font-size: 16px; text-align: center; margin-bottom: 6px; }
#phone.short #match .pad { height: 332px; }
#phone.short .quick { margin: 5px 0; }
#phone.short .quick span { height: 34px; font-size: 21px; }
/* 14 Nov: taller pad -> lift the checkout bar, callouts and mini bubble clear of it; scene ends at the pad */
#match .scene { bottom: 344px; }
#match .co { bottom: 352px; }
.callout { bottom: 356px; }
.bubble.mini { bottom: 410px !important; }
#phone.short #match .scene { bottom: 332px; }
#phone.short #match .co { bottom: 340px; }
#phone.short .callout { bottom: 344px; }
#phone.short .bubble.mini { bottom: 396px !important; }
/* 14 Nov (Ryan, tripod v2): LOCK IT IN text dead centre (Bebas sits high; letter-spacing adds a trailing gap) */
.key.ok, .dbot .dk.ok { box-sizing: border-box; padding: 4px 0 0 1px; line-height: 1; text-align: center; }
.key.ok { padding-top: 3px; }
/* 14 Nov (Ryan, tripod v2): main score much bigger and spaced off the name; AVG/LAST/DARTS a touch bigger.
   Width for the bigger digits comes from a slimmer LEGS column and tighter panel padding. */
#match .hud { grid-template-columns: 1fr 72px 1fr; gap: 5px; left: 6px; right: 6px; height: 240px; }
#match .pl { padding: 7px 6px 8px; }
#match .pl .nm { font-size: 16px; }
#match .pl .rem, #match .pl.daz .rem { font-size: 88px; line-height: .98; letter-spacing: -1px; margin: 6px 0 2px; }
#match .pl .meta span:not(.coline) { font-size: 20.5px; }
#match .pl .meta b { font-size: 28px; }
#match .mid .legs { font-size: 44px; }
#match .mid .legs span { font-size: 30px; }
.mood { top: 256px; }
#phone.short #match .hud { height: 207px; }
#phone.short #match .pl .rem, #phone.short #match .pl.daz .rem { font-size: 78px; margin: 4px 0 1px; }
#phone.short #match .pl .meta span:not(.coline) { font-size: 17px; }
#phone.short #match .pl .meta b { font-size: 23px; }
#phone.short .mood { top: 221px; }
/* 14 Nov: ⇄ alternative checkout routes on the green bar */
.co .coswap { flex: 0 0 auto; width: 44px; height: 36px; margin-left: 2px; margin-right: -6px; border-radius: 10px; border: 1.5px solid #9ff0b8; background: rgba(0,0,0,.35); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; padding: 0; cursor: pointer; }
.co .coswap[hidden] { display: none; }
.co .coswap .ic { font-size: 20px; line-height: 18px; font-weight: 700; }
.co .coswap small { font-family: Bebas; font-size: 10px; letter-spacing: .8px; color: #9ff0b8; margin-top: 1px; }
.co .coswap:active { transform: scale(.94); background: rgba(159,240,184,.25); }
.co .route.swapin span { animation: pop .35s; }
/* ===== 14 Nov: GAME MODES screen (Quick Match main, Pub Team + Volts secondary) ===== */
#gamemodes, #pubteam, #volts { display: none; flex-direction: column; padding: 0 16px; }
#gamemodes.on, #pubteam.on, #volts.on { display: flex; }
#gamemodes .lad-bg, #pubteam .lad-bg, #volts .lad-bg { position: absolute; inset: 0; z-index: 0; }
#gamemodes .lad-bg img, #pubteam .lad-bg img, #volts .lad-bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.35) blur(1px); }
#gamemodes > *:not(.lad-bg), #pubteam > *:not(.lad-bg), #volts > *:not(.lad-bg) { position: relative; z-index: 1; }
.gm-head, .pt-head { text-align: center; margin-top: 40px; }
.gm-head .k, .pt-head .k { font-family: Bebas; font-size: 18px; letter-spacing: 3px; color: #e9c46a; }
.gm-head .w, .pt-head .w { font-family: Anton; font-size: 42px; line-height: 1.02; color: #fff8e0; text-shadow: 0 4px 0 #1f5a33, 0 10px 24px rgba(0,0,0,.6); margin-top: 6px; }
.gm-big { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 30px; }
.gm-main { position: relative; border-radius: 20px; padding: 20px 10px 18px; text-align: center; cursor: pointer; border: 3px solid #F5C518; min-height: 236px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 0 0 3px rgba(245,197,24,.25), 0 7px 0 rgba(0,0,0,.55), 0 16px 30px rgba(0,0,0,.55); }
.gm-main:active { transform: translateY(3px); }
.gm-main.pub { background: linear-gradient(160deg, #2a8a4c 0%, #145a2e 55%, #0b3a1d 100%); }
.gm-main.volts { background: linear-gradient(160deg, #3a3fa8 0%, #1f2470 55%, #10133f 100%); }
.gm-main .ic { font-size: 44px; line-height: 1; }
.gm-main .l { font-family: Anton; font-size: 30px; line-height: 1.02; color: #fff8e0; letter-spacing: .5px; text-shadow: 0 3px 0 rgba(0,0,0,.4); margin-top: 10px; }
.gm-main .q { font-size: 12px; font-weight: 700; color: #e8f0d8; margin-top: 8px; line-height: 1.3; }
.gm-main .tag { position: absolute; top: -10px; right: 12px; font-family: Bebas; font-size: 14px; letter-spacing: 1.2px; padding: 1px 8px; border-radius: 6px; background: #5fe08a; color: #0b3a1d; }
.gm-main .tag.soon { background: #F5C518; color: #1a0a05; }
.gm-quick { margin-top: 20px; height: 54px; border-radius: 14px; display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer;
  background: linear-gradient(180deg, #3a2414, #24140a); border: 2px solid #b8946a; box-shadow: 0 4px 0 #120804, 0 8px 16px rgba(0,0,0,.45); }
.gm-quick:active { transform: translateY(2px); }
.gm-quick .ic { font-size: 22px; } .gm-quick .l { font-family: Bebas; font-size: 24px; letter-spacing: 1.5px; color: #f3dcb4; padding-top: 2px; } .gm-quick .ar { font-size: 14px; color: #F5C518; }
.gm-foot { text-align: center; font-size: 12px; font-weight: 600; color: #b8946a; margin-top: 10px; }
/* pub career intro + volts card */
.pt-top { margin-top: 14px; height: 34px; }
.pt-back { height: 34px; padding: 0 12px; border-radius: 10px; background: rgba(26,10,5,.8); border: 1.5px solid #6a4a28; color: #f3dcb4; font-family: Bebas; font-size: 17px; letter-spacing: 1.2px; cursor: pointer; }
#pubteam .pt-head, #volts .pt-head { margin-top: 6px; }
#pubteam .pt-head .w { font-size: 34px; }
.pt-chat { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.pt-msg { display: flex; align-items: flex-start; gap: 10px; animation: ptIn .3s ease-out; }
@keyframes ptIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.pt-av { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: Anton; font-size: 22px; color: #fff8e0; border: 2px solid #f3dcb4; box-shadow: 0 3px 0 rgba(0,0,0,.4); }
.pt-av.g { background: #1f5a33; } .pt-av.s { background: #b8306a; } .pt-av.o { background: #2f5fb8; } .pt-av.b { background: #7a5a2a; }
.pt-bub { flex: 1; background: #fff6e0; color: #2a160c; border-radius: 4px 14px 14px 14px; padding: 7px 11px 8px; box-shadow: 0 3px 8px rgba(0,0,0,.35); }
.pt-bub .who { font-family: Bebas; font-size: 15px; letter-spacing: 1px; color: #1f5a33; line-height: 1.1; }
.pt-bub .who small { font-family: Poppins; font-size: 10px; font-weight: 600; letter-spacing: 0; color: #8a6a4a; margin-left: 4px; }
.pt-bub .tx { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.gm-card { margin-top: 16px; border-radius: 16px; padding: 14px 16px; text-align: center; border: 2px dashed #F5C518; background: rgba(26,10,5,.82); animation: ptIn .3s ease-out; }
.gm-card[hidden] { display: none; }
.gm-card .t { font-family: Anton; font-size: 26px; color: #F5C518; letter-spacing: 1px; line-height: 1.1; }
.gm-card .b { font-size: 14px; font-weight: 600; color: #f3dcb4; line-height: 1.4; margin-top: 6px; }
.gm-card.big { margin-top: 28px; padding: 18px 18px 20px; }
.gm-card.big .b { font-size: 15px; margin-top: 10px; }
.pt-foot { margin-top: auto; padding-bottom: 76px; }   /* keeps clear of the Netlify badge strip */
.pt-foot .btn { width: 100%; }
/* short phones */
#phone.short .gm-head { margin-top: 26px; }
#phone.short .gm-head .w { font-size: 36px; }
#phone.short .gm-big { margin-top: 20px; }
#phone.short .gm-main { min-height: 196px; padding: 14px 8px 14px; }
#phone.short .gm-main .ic { font-size: 36px; }
#phone.short .gm-main .l { font-size: 27px; margin-top: 6px; }
#phone.short .gm-quick { margin-top: 16px; height: 50px; }
#phone.short #pubteam .pt-head .w { font-size: 28px; }
#phone.short .pt-chat { gap: 7px; margin-top: 10px; }
#phone.short .pt-av { width: 38px; height: 38px; font-size: 19px; }
#phone.short .pt-bub { padding: 5px 10px 6px; }
#phone.short .pt-bub .tx { font-size: 12.5px; line-height: 1.25; }
#phone.short .gm-card { margin-top: 10px; padding: 10px 14px; }
#phone.short .gm-card .t { font-size: 22px; }
#phone.short .pt-foot { padding-bottom: 66px; }
/* pub career chat: fills the space between the header and the button; newest bubble at the bottom, older ones scroll up */
.pt-chat { flex: 1 1 0; min-height: 0; overflow-y: auto; scrollbar-width: none; padding-bottom: 4px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18px); mask-image: linear-gradient(to bottom, transparent 0, #000 18px); padding-top: 14px; }
.pt-chat::-webkit-scrollbar { display: none; }
.pt-chat > .pt-msg:first-child { margin-top: auto; }
#pubteam .gm-card { flex: 0 0 auto; }
#pubteam .pt-foot { margin-top: 14px; flex: 0 0 auto; }
.gm-big { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.gm-main { padding-left: 6px; padding-right: 6px; }
.gm-main .l { font-size: 27px; letter-spacing: 0; }
#phone.short .gm-main .l { font-size: 25px; }

/* ---------- TROPHY CABINET (15 Nov) ---------- */
#trophyPage { display: none; flex-direction: column; padding: 10px 12px 12px; }
#trophyPage.on { display: flex; }
#trophyPage .lad-bg { z-index: 0; }
#trophyPage > *:not(.lad-bg) { position: relative; z-index: 1; }
.tr-top { height: 36px; display: flex; align-items: center; }
.tr-head { text-align: center; margin-top: 2px; }
.tr-head .k { font-family: Bebas; letter-spacing: 3px; font-size: 13px; color: #b8946a; }
.tr-head .w { font-family: Bebas; font-size: 36px; line-height: 1; letter-spacing: 1.5px; color: #F5C518; text-shadow: 0 2px 0 #5a2a08, 0 0 18px rgba(245,197,24,.35); }
.tr-head .s { font-family: Bebas; letter-spacing: 2px; font-size: 15px; color: #f3dcb4; margin-top: 3px; }
.tr-head .bar { height: 7px; margin: 5px 40px 0; border-radius: 4px; background: rgba(0,0,0,.5); border: 1px solid #6a4a28; overflow: hidden; }
.tr-head .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #c8860a, #F5C518); }
.tr-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(132px, auto); align-content: start; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; scroll-padding: 10px; gap: 8px; margin-top: 10px;
  padding: 10px 8px; border-radius: 14px; background: linear-gradient(#3a1d0e, #24110a); border: 2px solid #6a4a28; box-shadow: inset 0 2px 10px rgba(0,0,0,.6); }
.tr { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border-radius: 11px; padding: 4px 3px;
  background: rgba(0,0,0,.28); border: 1.5px solid rgba(106,74,40,.6); min-height: 0; overflow: hidden; }
.tr .cup { position: relative; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: radial-gradient(circle at 35% 30%, #fff3b0, #F5C518 40%, #b0700a 100%); border: 2px solid #ffe27a; box-shadow: 0 3px 0 #5a2a08, 0 0 14px rgba(245,197,24,.45); }
.tr .cup:after { content: ''; position: absolute; bottom: -7px; left: 50%; width: 26px; height: 6px; margin-left: -13px; border-radius: 2px; background: #7a4a1a; box-shadow: 0 1px 0 #3a1d0e; }
.tr .cup .ic { font-size: 25px; line-height: 1; }
.tr .cup .lk { position: absolute; right: -6px; bottom: -4px; font-size: 15px; }
.tr .tn { font-family: Bebas; font-size: 14.5px; line-height: 1.05; letter-spacing: .8px; color: #F5C518; margin-top: 10px; }
.tr .td { font-size: 9.5px; font-weight: 700; line-height: 1.2; color: #f3dcb4; margin-top: 2px; }
.tr .td em { display: block; font-style: normal; font-size: 8.5px; color: #b8946a; text-transform: uppercase; letter-spacing: .6px; }
.tr.got { background: rgba(245,197,24,.1); border-color: #c8960a; }
.tr.lock .cup { background: radial-gradient(circle at 35% 30%, #777, #4a4a4a 60%, #2c2c2c); border-color: #666; box-shadow: 0 3px 0 #1a1a1a; }
.tr.lock .cup .ic { filter: grayscale(1) brightness(.75); opacity: .55; }
.tr.lock .tn { color: #9a8a78; }
.tr.lock .td { color: #8a7a68; }
.tr-foot { margin-top: 10px; }
.tr-foot .btn { width: 100%; }
#phone.short .tr-head .w { font-size: 31px; }
#phone.short .tr .cup { width: 44px; height: 44px; } #phone.short .tr .cup .ic { font-size: 22px; }
#phone.short .tr .tn { margin-top: 8px; font-size: 13.5px; }
#phone.short .tr-grid { margin-top: 8px; gap: 6px; padding: 8px 6px; grid-auto-rows: minmax(118px, auto); }

/* 15 Nov: 7 rungs now (Kai added). On short phones the regulars' rungs are ~42px, so drop their one-line quote
   and tighten the name so nothing spills out of the rung. Shelf: 7 equal slots. */
#phone.short #ladder .rung:not(.boss) .q { display: none; }
#phone.short #ladder .rung:not(.boss) .n { font-size: 19px; }
#phone.short #ladder .rung:not(.boss) .st { margin-top: 1px; }
#ladder .shelf .row span { flex: 1 1 0; min-width: 0; text-align: center; }
#ladder .shelf { cursor: pointer; }

/* 15 Nov (b): shelf gone, the ladder fills the screen. Rungs grow with the frame (no 64px cap), avatars grow with
   the rung, text steps up on tall rungs. Netlify badge ignored (not in the app-store build). */
#ladder.on { padding: 14px 8px 12px; gap: 8px; }
#ladder .rungs { gap: 6px; justify-content: stretch; }
#ladder .rung { flex: 1 1 0; min-height: 50px; max-height: none; padding: 0 10px 0 6px; gap: 10px; }
#ladder .rung.boss { flex: 1.45 1 0; min-height: 72px; max-height: none; }
#ladder .rung img { height: calc(100% - 10px); max-height: 74px; width: auto; aspect-ratio: 1; }
#ladder .rung.boss img { height: calc(100% - 10px); max-height: 104px; }
#ladder .rung .no { font-size: 24px; width: 26px; }
#ladder .rung .n { font-size: 24px; }
#ladder .rung .n em { font-size: 11px; }
#ladder .rung .st { font-size: 11.5px; margin-top: 3px; }
#ladder .rung .q { font-size: 10.5px; margin-top: 2px; }
#ladder .rung.boss .n { font-size: 34px; }
#ladder .rung .badge.soon { font-size: 13px; padding: 4px 8px; }
#phone.short #ladder .rung:not(.boss) .q { display: block; }
#phone.short #ladder .rung .n { font-size: 21px; }
#phone.short #ladder .rung.boss .n { font-size: 30px; }
#phone.short #ladder .rung .st { font-size: 10.5px; margin-top: 1px; }
#phone.short #ladder .rung .q { font-size: 9.5px; margin-top: 0; }
#phone.short #ladder .rung .no { font-size: 21px; }
#ladder .rung .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 23px; }
#ladder .rung .n em { font-size: 10.5px; }
#ladder .rung .q { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.2; }
#ladder .rung .badge.soon { font-size: 12px; padding: 4px 6px; }
#ladder .rung img { height: calc(100% - 8px); }
#phone.short #ladder .rung .q { display: block; white-space: nowrap; text-overflow: ellipsis; }
#phone.short #ladder .rung .n { font-size: 20px; }
#ladder .rung .q { display: block; white-space: nowrap; text-overflow: ellipsis; font-size: 10px; line-height: 1.25; }
#ladder .rung.boss.beat .fb { background: #3fbf6b; color: #062a12; }

/* ---------- YOUR banner at the foot of the ladder + profile editor (15 Nov) ---------- */
#ladder .rung.you { flex: 0 0 62px; min-height: 0; max-height: none; cursor: pointer; border: 2px solid #e8d2a6;
  background: linear-gradient(90deg, rgba(232,210,166,.22), rgba(60,34,18,.92) 60%); box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 4px 14px rgba(0,0,0,.45); }
#ladder .rung.you .no { font-family: Anton; color: #F5C518; }
#ladder .rung.you img.ph { height: 52px; max-height: 52px; border-radius: 50%; border: 2.5px solid #F5C518; background: #3a2414; object-fit: cover; }
#ladder .rung.you .n { color: #fff3d6; }
#ladder .rung.you .n em { color: #F5C518; }
#ladder .rung.you .q { color: #e8d2a6; font-style: normal; }
#ladder .rung.you .ed { flex: none; font-family: Bebas; font-size: 15px; letter-spacing: 1px; color: #1a0a05; background: linear-gradient(180deg,#fff8e8,#ecd8b0); border-radius: 9px; padding: 6px 9px 4px; box-shadow: 0 3px 0 #9a7a4a; }
#phone.short #ladder .rung.you { flex-basis: 52px; }
#phone.short #ladder .rung.you img.ph { height: 44px; max-height: 44px; }
#phone.short #ladder .rung:not(.boss):not(.you) { min-height: 40px; }
#phone.short #ladder .rung.boss { min-height: 64px; }
.pfedit { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }
.pfpic { position: relative; flex: none; width: 96px; height: 96px; cursor: pointer; }
.pfpic img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid #F5C518; background: #3a2414; display: block; }
.pfpic span { position: absolute; right: -2px; bottom: -2px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; background: #F5C518; border: 2px solid #1a0a05; }
.pfflds { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.pfflds label { font-family: Bebas; font-size: 14px; letter-spacing: 1.2px; color: #c9a77a; display: flex; flex-direction: column; gap: 3px; }
.pfflds input { height: 42px; border-radius: 10px; border: 2px solid #6a4a28; background: #120705; color: #fff3d6; font-family: Poppins, sans-serif; font-size: 16px; font-weight: 600; padding: 0 10px; width: 100%; }
.pfflds input:focus { outline: none; border-color: #F5C518; }
.pfflds input.bad { border-color: #e04a3a; background: #2a0a06; }
.pfrow { display: flex; gap: 8px; margin-bottom: 6px; }
.pfrow button { flex: 1; height: 42px; border-radius: 12px; font-family: Bebas; font-size: 17px; letter-spacing: 1px; color: #f3dcb4; background: linear-gradient(180deg,#5a3a20,#3a2414); box-shadow: 0 3px 0 #1e1008; border: 0; cursor: pointer; }
#pfErr { min-height: 18px; font-size: 12.5px; font-weight: 700; color: #ff9a8a; margin-bottom: 6px; }
/* short phones with the YOU banner: tighter title, regulars drop their quote line, step-up button a touch shorter */
#phone.short #ladder.on { padding-top: 10px; gap: 6px; }
#phone.short #ladder .lad-title .k { font-size: 18px; }
#phone.short #ladder .lad-title .w { font-size: 50px; }
#phone.short #ladder .lad-title .s { margin-top: 3px; }
#phone.short #ladder .rungs { gap: 5px; }
#phone.short #ladder .rung:not(.boss):not(.you) .q { display: none; }
#phone.short #ladder .lad-cta .btn { height: 50px; }
#phone.short #ladder .rung:not(.boss):not(.you) img { height: calc(100% - 4px); }
#modal .pfflds input { height: 42px; font-family: Poppins, sans-serif; font-size: 16px; font-weight: 600; text-align: left; letter-spacing: 0; padding: 0 10px; width: 100%; }
#modal .pfflds input::placeholder { color: #7a6048; font-weight: 500; }

/* ---------- home row (15 Nov): matching brass-on-dark-wood buttons, embossed symbols, icons only ---------- */
#ladder .links { gap: 8px; }
#ladder .links span.em { display: flex; align-items: center; justify-content: center; height: 58px; padding: 0; border-radius: 14px; cursor: pointer;
  background: repeating-linear-gradient(92deg, rgba(255,255,255,.025) 0 2px, rgba(0,0,0,.05) 2px 5px), linear-gradient(180deg,#4a2c17,#2a170c);
  border: 2px solid #b8862b; box-shadow: inset 0 1px 0 rgba(255,230,170,.25), inset 0 -2px 0 rgba(0,0,0,.45), 0 3px 0 #140a05, 0 5px 10px rgba(0,0,0,.45);
  -webkit-tap-highlight-color: transparent; }
#ladder .links span.em:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255,230,170,.18), inset 0 -1px 0 rgba(0,0,0,.45), 0 1px 0 #140a05, 0 2px 5px rgba(0,0,0,.45); }
#ladder .links span.em:focus-visible { outline: 2px solid #F5C518; outline-offset: 2px; }
#ladder .links span.em svg { width: 34px; height: 34px; overflow: visible; fill: url(#gBrass); stroke: url(#gBrass);
  filter: drop-shadow(0 -1px 0 rgba(255,245,210,.45)) drop-shadow(0 1.5px 0 rgba(0,0,0,.75)) drop-shadow(0 2px 2px rgba(0,0,0,.4)); }
#ladder .links span.em svg .ln { fill: none; stroke-width: 1.9; stroke-linecap: round; }
#phone.short #ladder .links span.em { height: 52px; }
#phone.short #ladder .links span.em svg { width: 30px; height: 30px; }
/* big CHALLENGE button: text only, one line, font shrinks for long names (setChallenge) */
#stepUp { padding: 0 14px; }
#stepUpTx { display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-align: center; letter-spacing: 1.5px; }

/* ---------- STATS TABLE (15 Nov): pub take on a side-by-side match sheet; no bars, no charts ---------- */
.stats.tv { border: 0; background: none; padding: 0; overflow: visible; display: flex; flex-direction: column; gap: 10px; }
.st-card { position: relative; border-radius: 16px; padding: 12px 12px 10px; text-align: center; border: 2px solid #b8862b;
  background: repeating-linear-gradient(92deg, rgba(255,255,255,.025) 0 2px, rgba(0,0,0,.05) 2px 5px), linear-gradient(180deg,#4a2c17,#2a170c);
  box-shadow: inset 0 1px 0 rgba(255,230,170,.25), 0 4px 12px rgba(0,0,0,.5); }
.st-fmt { font-family: Bebas; font-size: 24px; letter-spacing: 2px; color: #F5C518; line-height: 1; text-shadow: 0 2px 0 #140a05; }
.st-date { font-family: Poppins; font-size: 12px; font-weight: 600; color: #d8bf92; margin-top: 3px; }
.st-chips { display: flex; justify-content: center; gap: 6px; margin: 8px 0 10px; }
.st-chips span { font-family: Bebas; font-size: 14px; letter-spacing: 1.3px; padding: 3px 10px 2px; border-radius: 99px; background: #f3e2b8; color: #3a1f0c; box-shadow: inset 0 -1px 0 rgba(0,0,0,.25); }
.st-vs { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: start; gap: 8px; }
.st-who { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.st-who img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid #e0b04a; background: #3a2414; box-shadow: 0 3px 8px rgba(0,0,0,.5); }
.st-who.r img { border-color: #c0392b; }
.st-who .nm { font-family: Bebas; font-size: 21px; letter-spacing: 1px; color: #fff3d6; margin-top: 5px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1; }
.st-who .sb { font-family: Poppins; font-size: 11px; font-style: italic; color: #c9a77a; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-who .cup { height: 28px; font-size: 24px; line-height: 28px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.6)); }
.st-score { margin-top: 8px; display: flex; align-items: center; gap: 6px; padding: 6px 12px 16px; position: relative; border-radius: 12px; background: #140a05; border: 2px solid #b8862b; box-shadow: inset 0 2px 6px rgba(0,0,0,.7); }
.st-score b { font-family: Anton; font-weight: 400; font-size: 40px; line-height: 1; color: #fff3d6; }
.st-score i { font-style: normal; font-family: Anton; font-size: 26px; color: #b8862b; }
.st-score small { position: absolute; left: 0; right: 0; bottom: 2px; font-family: Bebas; font-size: 11px; letter-spacing: 1.5px; color: #c9a77a; }
.st-cols { display: grid; grid-template-columns: 1fr 120px 1fr; padding: 0 12px; font-family: Bebas; font-size: 15px; letter-spacing: 2px; color: #F5C518; text-align: center; margin: 2px 0 -4px; }
.st-rows { border-radius: 16px; overflow: hidden; border: 2px solid #6b4a22; background: rgba(20,9,5,.9); }
.st-row { display: grid; grid-template-columns: minmax(0,1fr) 120px minmax(0,1fr); align-items: center; padding: 8px 10px; }
.st-row + .st-row { border-top: 1px solid rgba(184,134,43,.22); }
.st-row:nth-child(even) { background: rgba(255,230,170,.035); }
.st-row b { font-family: Anton; font-weight: 400; font-size: 34px; line-height: 1.05; color: #f3e2b8; text-align: center; white-space: nowrap; }
.st-row b.win { color: #F5C518; text-shadow: 0 0 12px rgba(245,197,24,.35); }
.st-row b small { font-family: Bebas; font-size: 15px; letter-spacing: .5px; color: #c9a77a; }
.st-pill { justify-self: center; font-family: Bebas; font-size: 14px; letter-spacing: 1.2px; line-height: 1; padding: 5px 9px 4px; border-radius: 99px; white-space: nowrap;
  background: linear-gradient(180deg, #e9c46a, #b8862b); color: #2a170c; box-shadow: inset 0 1px 0 rgba(255,245,210,.6), 0 1px 0 #140a05; }
#phone.short .st-row { padding: 6px 10px; }
#phone.short .st-row b { font-size: 30px; }
#phone.short .st-who img { width: 56px; height: 56px; }

/* 15 Nov: AVG CLUB trophies show their number on the gold cup; the cabinet scrolls (17 trophies) */
.tr .cup .ic.num { font-family: Anton; font-size: 19px; letter-spacing: -.5px; color: #5a2a08; text-shadow: 0 1px 0 rgba(255,243,176,.8); }
.tr.lock .cup .ic.num { color: #222; opacity: .6; filter: none; text-shadow: 0 1px 0 rgba(255,255,255,.25); }
#phone.short .tr .cup .ic.num { font-size: 17px; }
.tr .cup .ic.num:has(+ *), .tr .cup .ic.num { line-height: 1; }

/* 15 Nov v2: end/STATS scroll area starts below the 🔊 ☰ buttons, so nothing ever runs under them; content fades out at the top edge */
.endscroll { top: 58px; padding-top: 6px; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14px); mask-image: linear-gradient(to bottom, transparent 0, #000 14px); }
#phone.short .endscroll { top: 54px; }
.unlock { padding: 6px 8px 8px; }
.unlock .uh { font-size: 18px; letter-spacing: 1.6px; line-height: 1.1; }
.unlock .ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; margin-top: 4px; }
.unlock .ul span { font-size: 14px; letter-spacing: 1px; line-height: 1; padding: 4px 8px 3px; border-radius: 99px; background: rgba(26,10,5,.14); white-space: nowrap; }

/* 15 Nov: ranks. Your row carries its real rank number (same column) + a RANKED pill (same red pill as the share card) */
#ladder .rung.you .yt { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; }
#ladder .rung.you .rk { font-family: Bebas; font-size: 14px; letter-spacing: 2px; line-height: 1; color: #fff3d0; background: #8a1414; border-radius: 99px; padding: 4px 9px 3px 11px; box-shadow: 0 1px 0 rgba(0,0,0,.5); }
#ladder .rung.you .ed { font-size: 12px; padding: 3px 7px 2px; box-shadow: 0 2px 0 #9a7a4a; }
#ladder .rung .badge.beat { background: #0d3a1e; border: 1.5px solid #3fbf6b; color: #9ff0b8; font-size: 13px; padding: 4px 8px; }
#phone.short #ladder .rung.you .yt { flex-direction: row; gap: 4px; }
#phone.short #ladder .rung.you .rk { font-size: 12px; padding: 3px 7px 2px 8px; }
#phone.short #ladder .rung.you .ed { font-size: 11px; }

/* ---------- RESULT PAGE v2 (15 Nov) ---------- */
/* slim one-line trophy banner, whole thing taps through to the Trophies page */
#end .unlock { display: flex; align-items: center; justify-content: center; position: relative; height: 34px; padding: 0 34px; border-radius: 10px; cursor: pointer;
  font-family: Bebas; font-size: 18px; letter-spacing: 1.8px; color: #1a0a05; background: linear-gradient(180deg, #ffd84a, #e2a814); box-shadow: 0 3px 0 #8a5a08; -webkit-tap-highlight-color: transparent; }
#end .unlock[hidden] { display: none; }
#end .unlock .ut { white-space: nowrap; line-height: 1; padding-top: 2px; }
#end .unlock .ua { position: absolute; right: 12px; top: 50%; transform: translateY(-52%); font-family: Anton; font-size: 26px; line-height: 1; }
#end .unlock:active { transform: translateY(2px); box-shadow: 0 1px 0 #8a5a08; }
#end .unlock:focus-visible { outline: 2px solid #fff3d0; outline-offset: 2px; }
/* roomier match card + rows on the result page */
#end .st-card { padding: 16px 12px 14px; }
#end .st-who img { width: 74px; height: 74px; }
#end .st-who .nm { font-size: 23px; margin-top: 7px; }
#end .st-score { margin-top: 12px; }
#end .st-row { padding: 10px 10px; }
#end .st-row b { font-size: 36px; }
#phone.short #end .st-row { padding: 7px 10px; }
#phone.short #end .st-row b { font-size: 31px; }
#phone.short #end .st-who img { width: 62px; height: 62px; }
/* values all cream, no better-side gold */
.st-row b, .st-row b.win { color: #f3e2b8; text-shadow: none; }
.st-row b small.pc { font-family: Anton; font-size: .62em; color: #f3e2b8; letter-spacing: 0; }
/* embossed brass winner badge (same brass-on-wood finish as the home buttons) */
.st-win { height: 46px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; margin-top: 8px; gap: 2px; }
.st-win .em { display: flex; align-items: center; justify-content: center; width: 46px; height: 30px; border-radius: 9px;
  background: repeating-linear-gradient(92deg, rgba(255,255,255,.025) 0 2px, rgba(0,0,0,.05) 2px 5px), linear-gradient(180deg,#4a2c17,#2a170c);
  border: 1.5px solid #b8862b; box-shadow: inset 0 1px 0 rgba(255,230,170,.25), inset 0 -2px 0 rgba(0,0,0,.45), 0 2px 0 #140a05; }
.st-win .em svg { width: 20px; height: 20px; fill: url(#gBrass); filter: drop-shadow(0 -1px 0 rgba(255,245,210,.45)) drop-shadow(0 1.5px 0 rgba(0,0,0,.75)); }
.st-win small { font-family: Bebas; font-size: 11px; letter-spacing: 2px; color: #d8b56a; line-height: 1; }
/* buttons: REMATCH full width, then LADDER | SHARE half and half */
#end .ctarow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#end .ctarow .btn { box-sizing: border-box; height: 52px; width: auto; font-size: 22px; gap: 8px; }
#end #toLadder .sh { display: none; } #end #toLadder.short .lg { display: none; } #end #toLadder.short .sh { display: inline; }
#end #toLadder .lg, #end #toLadder .sh { white-space: nowrap; }
#end .sharebtn { box-sizing: border-box; color: #2a170c; background: linear-gradient(180deg, #fbe7a1, #e0b04a 55%, #b8862b); border: 2px solid #8a5a18; box-shadow: 0 5px 0 #6a4210, 0 10px 18px rgba(0,0,0,.45); }
#end .sharebtn svg { width: 22px; height: 22px; fill: #2a170c; stroke: #2a170c; flex: none; }
#end .sharebtn svg .ln { fill: none; stroke-width: 2; stroke-linecap: round; }
#end.on .sharebtn.pulse { animation: sharePulse 1.6s ease-in-out infinite; }
@keyframes sharePulse { 0%, 100% { transform: scale(1); box-shadow: 0 5px 0 #6a4210, 0 10px 18px rgba(0,0,0,.45), 0 0 0 rgba(245,197,24,0); }
  50% { transform: scale(1.04); box-shadow: 0 5px 0 #6a4210, 0 10px 18px rgba(0,0,0,.45), 0 0 22px rgba(245,197,24,.75); } }
@media (prefers-reduced-motion: reduce) { #end.on .sharebtn.pulse { animation: none; box-shadow: 0 5px 0 #6a4210, 0 0 14px rgba(245,197,24,.6); } }

/* ---------- KAYDEN (15 Nov): playable first rung ---------- */
#ladder .rung.open { cursor: pointer; -webkit-tap-highlight-color: transparent; }
#ladder .rung.open:active { transform: translateY(1px); }
#ladder .rung .badge.play { background: linear-gradient(180deg, #ffd84a, #e2a814); border: 1.5px solid #8a5a08; color: #1a0a05; font-family: Bebas; font-size: 15px; letter-spacing: 1.2px; padding: 4px 9px; box-shadow: 0 2px 0 #8a5a08; }

/* ---------- Ryan feedback 15 Nov 17:54 ---------- */
/* winner badge: embossed brass trophy, chip + label dead centre under the name */
.st-win { align-self: stretch; width: 100%; align-items: center; text-align: center; }
.st-win .em { width: 50px; height: 34px; margin: 0 auto; }
.st-win .em svg { width: 24px; height: 24px; display: block; }
.st-win small { display: block; text-indent: 2px; }   /* balances the 2px letter-spacing after the last letter */
/* your banner: rolling AVG first; W/L and trophies drop off (JS) if the line won't fit */
#ladder .rung.you .st { white-space: nowrap; overflow: hidden; }
#ladder .rung.you .st .av b { color: #F5C518; }
#ladder .rung.you .q.motto { font-style: italic; color: #f0dcb4; }
/* profile: optional catchphrase, full width under the name fields */
#modal .pfmotto { font-family: Bebas; font-size: 14px; letter-spacing: 1.2px; color: #c9a77a; display: flex; flex-direction: column; gap: 3px; margin: 10px 0 2px; text-align: left; }
#modal .pfmotto small { font-family: Poppins; font-size: 10px; letter-spacing: 0; color: #8a7050; }
#modal .pfmotto input { height: 42px; border-radius: 10px; border: 2px solid #6a4a28; background: #120705; color: #fff3d6; font-family: Poppins, sans-serif; font-size: 15px; font-style: italic; font-weight: 600; text-align: left; letter-spacing: 0; padding: 0 10px; width: 100%; box-sizing: border-box; }
#modal .pfmotto input:focus { outline: none; border-color: #F5C518; }
#modal .pfmotto input.bad { border-color: #e04a3a; background: #2a0a06; }
#modal .pfmotto input::placeholder { color: #7a6048; font-weight: 500; }
#ladder .rung.you .q { font-style: italic; }   /* Ryan 15 Nov 18:53: same tagline style as the players, catchphrase or "Next up" */
/* Ryan 15 Nov 18:55: quoted nicknames: natural, even tracking (no fractional letter-spacing, which rounded unevenly between
   letters at small sizes) and sitting on the centre line of the big name. The nickname is sized relative to the name (0.48em)
   and its baseline raised so its cap-height centre meets the name's cap-height centre:
   Bebas cap 0.70 -> name centre 0.35 x name size = 0.729 x nickname size; Poppins cap 0.701 -> nickname centre 0.3505. Raise = 0.379em. */
#ladder .rung .n em, .rung .n em { font-size: .48em; letter-spacing: 0; word-spacing: 0; font-kerning: normal; font-feature-settings: "kern" 1, "liga" 1; text-rendering: optimizeLegibility; vertical-align: .379em; line-height: 1; margin-left: .3em; font-family: Poppins, sans-serif; font-weight: 600; font-style: normal; }
/* Big names: whole-pixel-free tracking in em so it scales with the name size, kerning on (Bebas L/A/Y pairs looked gappy). */
#ladder .rung .n, .rung .n { letter-spacing: .03em; font-kerning: normal; font-feature-settings: "kern" 1; text-rendering: optimizeLegibility; }
#ladder .rung .st { font-kerning: normal; font-feature-settings: "kern" 1; text-rendering: optimizeLegibility; }

/* Ryan 15 Nov 22:06: who-goes-first bubble = in the flow, directly under the opponent's avatar, tail pointing up at it */
#first .wf-bub.under { position: relative !important; left: auto !important; right: auto !important; top: auto !important; bottom: auto !important; z-index: 3; margin: 14px 0 0; }
#first .wf-bub.under:after { display: block; left: var(--tail, 37px); top: -13px; bottom: auto; transform: rotate(-135deg); }
#first.wfbub-on .wf-opts { margin-top: 14px; }
.wf-daz.mini { margin-top: 10px; gap: 10px; }
.wf-daz.mini img { width: 52px; height: 52px; border-width: 3px; }
.wf-daz.mini .wf-nm { font-family: Bebas; font-size: 22px; letter-spacing: 1.5px; color: #F5C518; }
#first.wfbub-on .wf-daz.mini + .wf-bub.under + .wf-bwrap, #first.wfbub-on .wf-daz.mini + .wf-bub.under + .wf-coinwrap { margin-top: 10px; }
#first.wftight .wf-board { width: 196px; height: 196px; } #first.wftight .wf-coinwrap { margin-top: 14px; } #first.wftight .wf-coin { width: 140px; height: 140px; }
#first.wftight .wf-opts { gap: 9px; } #first.wftight .wf-card { padding: 10px 14px; } #first.wftight .wf-daz:not(.mini) { margin-top: 12px; }
#first.wftight .wf-head { padding-top: 22px; }
#first.wftight2 .wf-board { width: 168px; height: 168px; } #first.wftight2 .wf-head .w { font-size: 34px; } #first.wftight2 .wf-daz:not(.mini) img { width: 80px; height: 80px; }
#first.wftight2 .wf-card .t { font-size: 24px; } #first.wftight2 .wf-res { margin-top: 8px; }


/* Ryan 15 Nov: difficulty ladder. At #8 the ladder CTA starts the next difficulty; on the hardest it shows LADDER COMPLETE */
#stepUp.nextmode, #nextMode { background: linear-gradient(180deg, #ffe066, #f5b518 55%, #d98f0a); box-shadow: 0 5px 0 #8a5a06, 0 0 22px rgba(245,197,24,.55); animation: nmGlow 1.8s ease-in-out infinite; }
#stepUp.done { background: linear-gradient(180deg, #2f7a48, #1b4d2c); color: #e9ffef; box-shadow: 0 5px 0 #0c2a17; }
#stepUp.done #stepUpTx { color: #e9ffef; }
@keyframes nmGlow { 50% { box-shadow: 0 5px 0 #8a5a06, 0 0 34px rgba(245,197,24,.85); } }
#nextMode[hidden], #rematch[hidden] { display: none !important; }
.rung .st .ms.easy { background: rgba(63,191,107,.2); color: #8ff0b0; } .rung .st .ms.hard { background: rgba(200,38,28,.28); color: #ffb0a8; }
/* QC 15 Nov 22:25: the up-pointing tail (::after, a 22px rotated square in the bubble colour) reaches ~13px down into the
   bubble and painted over the speaker name (KAYDEN's N / DAZ's Z). Text sits above the tail; the tail keeps its outline. */
#first .wf-bub.under .who, #first .wf-bub.under .tx { position: relative; z-index: 1; }
/* Ryan 22:27: the three who-goes-first buttons: identical title→description gap, line-height, letter-spacing and padding;
   each text block vertically centred; every description on one line (BULL UP shortened) */
#first .wf-card { padding: 14px 16px; min-height: 84px; }
#first.wftight .wf-card { padding: 11px 14px; min-height: 74px; }
#first .wf-card > div:last-child { display: flex; flex-direction: column; justify-content: center; gap: 6px; min-width: 0; }
#first .wf-card .t { line-height: 1; margin: 0; }
#first .wf-card .q { margin: 0; font-size: 13px; line-height: 1.25; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* ---------- overall STATS page (Ryan 16 Nov, DC-style layout in pub style) ---------- */
#statsPage .stats.tv { gap: 10px; }
.cs-wl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cs-pill { display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 14px; border-radius: 14px; border: 2px solid #b8862b;
  background: linear-gradient(180deg, #3a2414, #1c0f07); box-shadow: 0 3px 0 rgba(0,0,0,.5); }
.cs-pill span { font-family: Bebas; font-size: 17px; letter-spacing: 1.5px; color: #d8bf92; line-height: 1; }
.cs-pill b { font-family: Anton; font-weight: 400; font-size: 28px; line-height: 1; color: #fff3d6; }
.cs-pill.w { border-color: #F5C518; } .cs-pill.w span { color: #F5C518; }
.cs-pill.l { border-color: #8a2a20; } .cs-pill.l span { color: #e0857a; }
.cs-bar { height: 10px; border-radius: 99px; background: #8a2a20; overflow: hidden; border: 1.5px solid #140a05; box-shadow: inset 0 1px 2px rgba(0,0,0,.5); }
.cs-bar i { display: block; height: 100%; background: linear-gradient(90deg, #e2a814, #F5C518); border-radius: 99px 0 0 99px; }
.cs-bar.empty { background: #3a2414; }
.cs-rows { border-radius: 16px; overflow: hidden; border: 2px solid #6b4a22; background: rgba(20,9,5,.92); }
.cs-row { display: grid; grid-template-columns: 104px minmax(0,1fr) 62px; align-items: center; gap: 10px; padding: 9px 12px; min-height: 70px; box-sizing: border-box; }
.cs-row + .cs-row { border-top: 1px solid rgba(184,134,43,.22); }
.cs-row:nth-child(even) { background: rgba(255,230,170,.035); }
.cs-l span { display: block; font-family: Bebas; font-size: 15px; letter-spacing: 1.2px; line-height: 1; color: #F5C518; white-space: nowrap; }
.cs-l b { display: block; font-family: Anton; font-weight: 400; font-size: 31px; line-height: 1.1; color: #f3e2b8; margin-top: 4px; white-space: nowrap; }
.cs-l b small.pc, .cs-r b small.pc { font-family: Bebas; font-size: .55em; letter-spacing: 0; color: #c9a77a; }
.cs-ch { position: relative; height: 44px; display: flex; align-items: flex-end; gap: 3px; padding: 0 1px; border-bottom: 1.5px solid rgba(184,134,43,.45); }
.cs-ch i { flex: 1 1 0; max-width: 14px; min-width: 0; border-radius: 3px 3px 0 0; background: rgba(216,191,146,.42); }
.cs-ch i.now { background: linear-gradient(180deg, #ffd84a, #e2a814); box-shadow: 0 0 8px rgba(245,197,24,.4); }
.cs-ch i.nil { background: none; }
.cs-ch u { position: absolute; left: 0; right: 0; height: 0; border-top: 1.5px dashed rgba(255,243,214,.75); pointer-events: none; }
.cs-ch em { align-self: center; margin: auto; font-family: Poppins; font-style: normal; font-size: 11px; color: #8a6a4a; }
.cs-r { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 6px; row-gap: 3px; }
.cs-r span { font-family: Bebas; font-size: 11px; letter-spacing: 1px; color: #c9a77a; line-height: 1; }
.cs-r b { font-family: Anton; font-weight: 400; font-size: 16px; line-height: 1; color: #f3e2b8; text-align: right; white-space: nowrap; }
.cs-last { border-radius: 16px; padding: 12px 12px 12px; text-align: center; border: 2px solid #b8862b; background: linear-gradient(180deg, #3a2414, #1c0f07); box-shadow: 0 4px 0 rgba(0,0,0,.5); }
.cs-lh { font-family: Bebas; font-size: 24px; letter-spacing: 2px; color: #F5C518; line-height: 1; text-shadow: 0 2px 0 #140a05; }
.cs-lf { font-family: Bebas; font-size: 15px; letter-spacing: 1.2px; color: #f3e2b8; margin-top: 5px; line-height: 1; }
.cs-ld { font-size: 12px; font-weight: 600; color: #c9a77a; margin: 4px 0 10px; }
.cs-last .st-who img { width: 58px; height: 58px; }
.cs-last .st-score { margin-top: 6px; }
.cs-av { font-family: Bebas; font-size: 14px; letter-spacing: 1.2px; color: #c9a77a; margin: 2px 0 4px; line-height: 1.2; }
.cs-av b { font-family: Anton; font-weight: 400; font-size: 20px; letter-spacing: 0; color: #f3e2b8; margin-left: 4px; }
.cs-other { height: 50px; font-size: 22px; color: #F5C518; border: 2px solid #b8862b; background: linear-gradient(180deg, #3a2414, #1c0f07); box-shadow: 0 4px 0 rgba(0,0,0,.5); box-sizing: border-box; }
.cs-empty { text-align: center; padding: 22px 16px; border-radius: 16px; border: 2px dashed #6b4a22; background: rgba(20,9,5,.85); }
.cs-empty img { width: 76px; height: 76px; border-radius: 50%; border: 3px solid #F5C518; object-fit: cover; }
.cs-empty b { display: block; font-family: Bebas; font-size: 26px; letter-spacing: 2px; color: #F5C518; margin-top: 8px; line-height: 1; }
.cs-empty p { font-size: 13px; font-weight: 600; color: #d8bf92; margin-top: 6px; line-height: 1.35; }
.cs-hist { display: flex; flex-direction: column; gap: 8px; }
#phone.short .cs-row { min-height: 62px; padding: 7px 12px; }
#phone.short .cs-l b { font-size: 28px; }
#phone.short .cs-ch { height: 38px; }

/* tappable rows / cards (detail pages wired later), back arrow, match history cards, reopened match sheet */
.cs-row.tap, .cs-last.tap { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cs-row.tap:active { background: rgba(245,197,24,.08); }
.cs-last { position: relative; }
.cs-last.tap:active { transform: translateY(2px); }
.cs-go { position: absolute; right: 12px; top: 12px; width: 22px; height: 22px; color: #F5C518; } .cs-go svg, .cs-back svg { width: 100%; height: 100%; display: block; }
.cs-last.card { padding: 10px 12px 10px; }
.cs-last.card .cs-lf { font-size: 18px; letter-spacing: 1.5px; color: #F5C518; margin-top: 0; text-align: left; padding-right: 26px; }
.cs-last.card .cs-ld { text-align: left; margin: 4px 0 8px; }
.cs-last.card .cs-go { top: 50%; margin-top: -11px; right: 8px; }
.cs-last.card .st-vs { padding-right: 18px; }
.cs-last.card .st-who img { width: 50px; height: 50px; }
.cs-last.card .st-who .nm { font-size: 19px; }
.cs-last.card .st-score b { font-size: 34px; }
.cs-last.card .st-win { transform: scale(.85); transform-origin: top center; }
.cs-back { position: absolute; left: 0; top: 50%; margin-top: -22px; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  padding: 10px 12px 10px 9px; box-sizing: border-box; color: #F5C518; border: 2px solid #b8862b; background: rgba(28,15,7,.9); cursor: pointer; z-index: 2; }
.cs-back[hidden] { display: none; }
#statsPage .res { position: relative; min-height: 46px; display: flex; align-items: center; justify-content: center; }
.cs-match { display: flex; flex-direction: column; gap: 10px; }
.cs-match .st-card { padding: 16px 12px 14px; } .cs-match .st-who img { width: 74px; height: 74px; } .cs-match .st-who .nm { font-size: 23px; margin-top: 7px; }
.cs-match .st-score { margin-top: 12px; } .cs-match .st-row { padding: 10px 10px; } .cs-match .st-row b { font-size: 36px; }
#phone.short .cs-match .st-row { padding: 7px 10px; } #phone.short .cs-match .st-row b { font-size: 31px; } #phone.short .cs-match .st-who img { width: 62px; height: 62px; }
/* stat detail pages (3 / 9 dart avg): summary, PERFORMANCE TREND, TOP 25 BEST */
.cs-dsum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cs-dsum > div { text-align: center; padding: 8px 4px 7px; border-radius: 14px; border: 2px solid #6b4a22; background: rgba(20,9,5,.92); }
.cs-dsum span { display: block; font-family: Bebas; font-size: 13px; letter-spacing: 1.2px; color: #F5C518; line-height: 1; }
.cs-dsum b { display: block; font-family: Anton; font-weight: 400; font-size: 28px; line-height: 1.1; color: #f3e2b8; margin-top: 4px; }
.cs-panel { border-radius: 16px; border: 2px solid #6b4a22; background: rgba(20,9,5,.92); padding: 10px 12px 12px; }
.cs-ph { font-family: Bebas; font-size: 20px; letter-spacing: 2px; color: #F5C518; line-height: 1; margin-bottom: 8px; }
.cs-trend { display: block; width: 100%; height: auto; overflow: visible; }
.cs-trend .gl { stroke: rgba(184,134,43,.25); stroke-width: 1; }
.cs-trend text { font-family: Bebas; font-size: 11px; letter-spacing: .8px; fill: #c9a77a; }
.cs-trend .ln { fill: none; stroke: #d8bf92; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.cs-trend circle { fill: #f3e2b8; stroke: #1c0f07; stroke-width: 1.5; }
.cs-trend circle.now { fill: #F5C518; }
.cs-trend .tr { stroke: #F5C518; stroke-width: 2; stroke-dasharray: 6 5; stroke-linecap: round; }
.cs-key { display: flex; gap: 16px; justify-content: center; margin-top: 6px; font-family: Bebas; font-size: 12px; letter-spacing: 1px; color: #c9a77a; }
.cs-key span { display: flex; align-items: center; gap: 6px; } .cs-key i { display: block; width: 18px; height: 0; }
.cs-key .k1 { border-top: 2px solid #d8bf92; } .cs-key .k2 { border-top: 2px dashed #F5C518; }
.cs-none { font-size: 12px; font-weight: 600; color: #8a6a4a; text-align: center; padding: 14px 0; }
.cs-top { display: flex; flex-direction: column; }
.cs-t { display: grid; grid-template-columns: 26px 62px minmax(0,1fr) 34px; align-items: center; gap: 8px; padding: 7px 2px; cursor: pointer; }
.cs-t + .cs-t { border-top: 1px solid rgba(184,134,43,.2); }
.cs-t:active { background: rgba(245,197,24,.08); }
.cs-t em { font-style: normal; font-family: Anton; font-size: 18px; color: #c9a77a; text-align: center; line-height: 1; }
.cs-t:nth-child(-n+3) em { color: #F5C518; }
.cs-t b { font-family: Anton; font-weight: 400; font-size: 24px; line-height: 1; color: #f3e2b8; }
.cs-tm { min-width: 0; } .cs-tm span { display: block; font-family: Bebas; font-size: 15px; letter-spacing: 1px; color: #fff3d6; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-tm small { display: block; font-size: 11px; font-weight: 600; color: #c9a77a; margin-top: 2px; white-space: nowrap; }
.cs-t img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid #c0392b; }
.cs-t.cl { grid-template-columns: 26px minmax(0,1fr) auto 22px; }
.cs-t.cl b { font-size: 26px; text-align: right; }
.cs-t.cl .cs-go { position: static; width: 20px; height: 20px; margin: 0; }
.cs-t.cl .cs-tm span { font-size: 16px; }
.cs-t.cl b small { font-family: Bebas; font-size: 13px; letter-spacing: 1px; color: #c9a77a; }
/* 180s / 140s: plain all-time tallies, side by side, not tappable */
.cs-tally { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(184,134,43,.22); }
.cs-row.tl { display: flex; align-items: center; justify-content: space-between; min-height: 60px; padding: 8px 14px; background: none !important; }
.cs-row.tl + .cs-row.tl { border-top: 0; border-left: 1px solid rgba(184,134,43,.22); }
.cs-row.tl span { font-family: Bebas; font-size: 17px; letter-spacing: 1.5px; color: #F5C518; line-height: 1; }
.cs-row.tl b { font-family: Anton; font-weight: 400; font-size: 31px; line-height: 1; color: #f3e2b8; }
#phone.short .cs-row.tl { min-height: 54px; } #phone.short .cs-row.tl b { font-size: 28px; }
.cs-row .cs-r { row-gap: 7px; align-content: center; }
.cs-row .cs-r span.cs-go { color: #F5C518; position: static; grid-column: 1 / -1; justify-self: end; width: 18px; height: 18px; margin-right: -3px; }
/* 16 Nov (Ryan): Old Chalk's rung is paid for by the bottom buttons, not the rungs. CHALLENGE + the 3 icon buttons
   now share ONE row, so every rung keeps the exact height it had with 8 spots. */
#ladder .lad-cta { display: flex; align-items: stretch; gap: 6px; height: 52px; }
#ladder .lad-cta #stepUp { flex: 1 1 auto; min-width: 0; width: auto; height: auto; padding: 0 8px; }
#ladder .lad-cta .links { margin-top: 0; gap: 6px; flex: none; }
#ladder .lad-cta .links span.em { width: 52px; height: auto; flex: none; border-radius: 13px; }
#ladder .lad-cta .links span.em svg { width: 28px; height: 28px; }
#phone.short #ladder .lad-cta { height: 55px; }
#phone.short #ladder .lad-cta .btn { height: auto; }
#phone.short #ladder .lad-cta .links span.em { height: auto; width: 50px; }
#phone.short #ladder .lad-cta .links span.em svg { width: 30px; height: 30px; }
/* 16 Nov (Ryan): once Big Daz is beaten YOU take his boss banner (same size/look as his unbeaten row); Daz drops to a normal row */
#ladder .rung.you.top { flex: 1.45 1 0; min-height: 72px; border: 3px solid #F5C518; background: linear-gradient(90deg, rgba(110,20,16,.96), rgba(50,10,8,.96));
  box-shadow: 0 0 0 3px rgba(245,197,24,.25), 0 0 30px rgba(245,197,24,.45), 0 8px 18px rgba(0,0,0,.5); }
#ladder .rung.you.top img.ph { height: calc(100% - 10px); max-height: 104px; }
#ladder .rung.you.top .n { font-size: 28px; color: #F5C518; }
#ladder .rung.you.top .no { color: #F5C518; }
#ladder .rung.you.top .q { color: #ffcfa8; }
#phone.short #ladder .rung.you.top { min-height: 64px; flex-basis: 0; }
#phone.short #ladder .rung.you.top img.ph { height: calc(100% - 10px); max-height: 104px; }
#phone.short #ladder .rung.you.top .n { font-size: 25px; }
/* QUICK GAME picker (16 Nov): any regular, off the ladder */
#modal .qg-sub { margin-bottom: 10px; }
#modal .qg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
#modal .qg { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px 7px; border-radius: 14px; cursor: pointer;
  background: linear-gradient(180deg, rgba(70,40,20,.95), rgba(36,18,10,.95)); border: 1.5px solid #6a4a28; box-shadow: 0 3px 0 #140a05; }
#modal .qg:active { transform: translateY(2px); box-shadow: 0 1px 0 #140a05; }
#modal .qg img { width: 58px; height: 58px; border-radius: 50%; }
#modal .qg b { font-family: Bebas; font-weight: 400; font-size: 17px; letter-spacing: .5px; color: #fff3d6; line-height: 1; white-space: nowrap; }
#modal .qg small { font-size: 10px; font-weight: 700; color: #F5C518; line-height: 1; }
#modal .qg[data-id="daz"] { border-color: #F5C518; background: linear-gradient(180deg, rgba(110,20,16,.96), rgba(50,10,8,.96)); }
#modal #qgClose { height: 48px; font-size: 22px; background: linear-gradient(180deg,#5a3a20,#3a2414); color: #f3dcb4; box-shadow: 0 4px 0 #1e1008; }
/* mode tag in the QUICK GAME window (Ryan 16 Nov), same colours as the ladder's EASY / NORMAL / HARD tags */
#modal h3.qg-h { display: flex; align-items: center; gap: 10px; }
#modal .qg-mode { font-family: Bebas; font-size: 16px; letter-spacing: 1.5px; line-height: 1; padding: 4px 8px 3px; border-radius: 5px; background: rgba(245,197,24,.18); color: #F5C518; }
#modal .qg-mode.easy { background: rgba(63,191,107,.2); color: #8ff0b0; } #modal .qg-mode.hard { background: rgba(200,38,28,.28); color: #ffb0a8; }

/* ===== Ryan's PS match layout (16 Nov): smaller score cards + compact stats/form, short LEGS box, small mood pills,
   opponent scene lifted 45px (SCENE_LIFT in app.js) so more of each character shows. Short phones (H < 760) match his PS 1:1. ===== */
#match .hud { height: 206px; }
#phone.short #match .hud { height: 191px; }
#match .pl { padding: 6px 7px 7px; }
#match .pl .nm { font-size: 15px; }
#match .pl .rem, #match .pl.daz .rem { font-size: 86px; margin: 2px 0 1px; }
#phone.short #match .pl .rem, #phone.short #match .pl.daz .rem { font-size: 77px; margin: 0; }
#match .pl .meta, #match .pl.daz .meta { flex: 0 0 auto; justify-content: flex-start; gap: 1px; padding: 0 3px; }
#match .pl .meta span:not(.coline), #phone.short #match .pl .meta span:not(.coline) { font-size: 14px; letter-spacing: 1.2px; line-height: 1.12; }
#match .pl .meta b, #phone.short #match .pl .meta b { font-size: 18px; line-height: 1.05; }
#phone.short #match .pl .meta span:not(.coline) { font-size: 13px; }
#phone.short #match .pl .meta b { font-size: 16.5px; }
#match .pl .mbar { margin-top: auto; padding: 0 3px; gap: 5px; }
#match .pl .mbar .mlab, #phone.short #match .pl .mbar .mlab { font-size: 11.5px; letter-spacing: 1.2px; }
#match .pl .mbar .nerve, #phone.short #match .pl .mbar .nerve { height: 7px; }
#match .mid { align-self: start; height: 150px; padding: 5px 2px; justify-content: space-evenly; }
#phone.short #match .mid { height: 136px; }
#match .mid .lg { font-size: 14px; }
#match .mid .legs { font-size: 42px; margin: 0; }
#match .mid .dec { font-size: 15px; margin-top: 2px; padding: 1px 7px; }
#match .mid .mtag { margin-top: 2px; font-size: 11px; }
#match .mood { top: 221px; font-size: 12.5px; letter-spacing: 1.2px; padding: 2px 8px 1px 6px; gap: 4px; }
#phone.short #match .mood { top: 205px; }
#match .mood .ic { font-size: 13px; }
/* Ryan 16 Nov "this window isn't spaced in the middle": the active card's 3px outer ring ate into the 5px gap on one side only,
   so the LEGS box looked off-centre. Draw the ring inside the card instead (border + 1px inset = same 3px look), and offset
   the letter-spacing trail so LEGS / LEG 1 / EASY ink is optically centred. */
#match .pl.active { border-color: #F5C518; box-shadow: inset 0 0 0 1px #F5C518, 0 0 18px rgba(245,197,24,.5), 0 6px 18px rgba(0,0,0,.55); }
#match .mid .lg { padding-left: 2.5px; }
#match .mid .dec, #match .mid .mtag { text-indent: 1.5px; }
/* 16 Nov walk-in fix (Ryan: "intro Daz walk in is glitching ... background animation"): the walk-on slid the whole daz_oche
   picture (Daz AND his own pub background) in from the right over the blurred pub, so a hard picture edge and a second
   background swept across the screen. Now the background stays still: Daz's picture fades up in place with a small
   step-forward (rise + settle), and its edges are feathered into the pub so there's no visible picture edge. */
#intro .walk { animation: walkOn2 1.1s cubic-bezier(.2,.8,.3,1) both; will-change: transform, opacity;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 84%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 84%, transparent 100%); }
@keyframes walkOn2 { from { opacity: 0; transform: translateY(26px) scale(.94); } 65% { opacity: 1; transform: translateY(-3px) scale(1.01); } to { opacity: 1; transform: none; } }
/* Ryan 16 Nov: ‹ BACK on every bottom sheet (top right of the sheet: well clear of the "Powered by Netlify" badge, bottom right) */
#modal .sheet { position: relative; }
#modal .sheet .sh-back { position: absolute; top: 12px; right: 12px; height: 40px; min-width: 84px; padding: 0 14px; border-radius: 20px; z-index: 2;
  font-family: Bebas; font-size: 19px; letter-spacing: 1px; color: #f3dcb4; background: linear-gradient(180deg,#5a3a20,#3a2414); box-shadow: 0 3px 0 #1e1008; border: 1px solid #8a6a2a; }
/* Equal side padding so the title (text + emoji) stays optically centred under the BACK button (Ryan t2345). */
#modal .sheet h3 { text-align: center; padding-left: 96px; padding-right: 96px; }
#modal .sheet h3 .sh-title { display: inline-flex; align-items: center; justify-content: center; gap: .2em; max-width: 100%; line-height: 1.1; }
#modal .sheet h3 .sh-emoji { display: inline-block; flex: none; line-height: 1; font-size: 1.05em; font-style: normal; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
#modal .sheet .sh-back + h3 + p { padding-right: 0; padding-left: 0; text-align: left; }
/* the badge (192x64 viewport px, fixed bottom right on *.netlify.app) must never cover a sheet's buttons: keep that strip empty */
#modal .sheet { padding-bottom: calc(22px + var(--nlb, 0px)); }
/* Ryan 16 Nov: full-screen share preview */
#sharePrev { position: absolute; inset: 0; z-index: 120; background: rgba(6,2,1,.9); display: flex; flex-direction: column; padding: 14px 14px calc(14px + var(--nlb, 0px)); gap: 12px; animation: spIn .2s ease-out; }
@keyframes spIn { from { opacity: 0; } }
#sharePrev[hidden] { display: none; }
#sharePrev .sp-card { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
#sharePrev .sp-card img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 14px; box-shadow: 0 0 0 2px #8a6a2a, 0 14px 40px rgba(0,0,0,.7); }
#sharePrev .sp-bar { display: flex; gap: 10px; flex: 0 0 auto; }
#sharePrev .sp-bar button { height: 54px; border-radius: 14px; font-family: Bebas; font-size: 24px; letter-spacing: 1px; border: 0; }
#sharePrev .sp-back { flex: 0 0 34%; color: #f3dcb4; background: linear-gradient(180deg,#5a3a20,#3a2414); box-shadow: 0 4px 0 #1e1008; }
#sharePrev .sp-go { flex: 1; color: #1a0a05; background: linear-gradient(180deg,#ffd84a,#e2a814); box-shadow: 0 4px 0 #8a5a08; }
/* 16 Nov per-dart checkout help */
.co .route span.msg { font-family: Bebas; font-size: 14px; letter-spacing: 1px; background: none; border: 0; padding: 1px 2px; color: #ffe9b0; }
.co.done { border-color: #F5C518; }
.co .cobyd { width: 50px; border-color: #F5C518; }
.co .cobyd .ic { font-size: 14px; line-height: 1; }
.co .cobyd small { font-size: 8px; letter-spacing: .3px; font-family: Bebas; }
/* 16 Nov: Quit on the match screen. Option A (default): small pill under the sound/menu icons, right edge, clear of the face zone.
   Option B (?quitpos=b, preview only): pill in the same row, left of the sound icon. */
#topbtns { position: absolute; }
#quitBtn { position: absolute; top: 40px; right: 0; width: auto; height: 28px; padding: 0 10px 0 8px; border-radius: 14px; gap: 4px;
  font-family: Bebas; font-size: 15px; letter-spacing: 1.2px; color: #ffd9cf; background: rgba(120,20,14,.82); border: 1.5px solid #c8402e; }
#quitBtn .x { display: block; }
#quitBtn[hidden] { display: none; }
html.quit-b #quitBtn { position: static; height: 34px; border-radius: 17px; }
/* 16 Nov: MENU sheet redesign + keep every sheet above the Netlify badge / iPhone home bar */
#modal .sheet { padding-bottom: calc(22px + var(--nlb, 0px) + env(safe-area-inset-bottom, 0px)); }
#modal .sheet.menu .opts { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
#modal .sheet.menu .opts button { height: 50px; min-width: 0; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: Bebas; font-size: 19px; letter-spacing: 1px; padding: 0 6px; }
#modal .sheet.menu .opts button.wide { grid-column: 1 / -1; }
#modal .sheet.menu .opts button.mresume { height: 58px; font-size: 26px; letter-spacing: 2px; }
#modal .sheet.menu .opts button.quit { margin-top: 4px; }
#modal .sheet.menu p { margin-bottom: 14px; }
/* 16 Nov (Ryan t2157): ⚙ settings replaces ☰ + the sound icon; switches for sound / checkout help / average */
#muteBtn { display: none !important; }
html.noavg .pl .meta .avgrow { display: none; }
#modal .sheet.settings h3 { padding-right: 96px; }
#modal .sheet.settings .opts { margin-bottom: 10px; }
#modal .sheet.settings .opts.small button { height: 40px; font-size: 16px; }
#modal .st-sws { background: rgba(0,0,0,.28); border: 1.5px solid #5a3a20; border-radius: 14px; padding: 2px 12px; margin-bottom: 10px; }
#modal .st-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; }
#modal .st-row + .st-row { border-top: 1px solid rgba(138,106,42,.35); }
#modal .st-l { display: flex; flex-direction: column; min-width: 0; }
#modal .st-l b { font-family: Bebas; font-weight: 400; font-size: 19px; letter-spacing: 1.2px; color: #fff3d6; line-height: 1.1; white-space: nowrap; }
#modal .st-l small { font-size: 10.5px; color: #c9a77a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#modal .st-sw { flex: none; position: relative; width: 54px; height: 32px; border-radius: 16px; background: #3a2414; border: 2px solid #6a4a28; padding: 0; transition: background .18s, border-color .18s; box-shadow: inset 0 2px 4px rgba(0,0,0,.5); }
#modal .st-sw i { position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(180deg,#fff8e8,#d8c49a); box-shadow: 0 2px 3px rgba(0,0,0,.5); transition: transform .18s; }
#modal .st-sw.on { background: linear-gradient(180deg,#ffd84a,#e2a814); border-color: #8a5a08; }
#modal .st-sw.on i { transform: translateX(22px); }
#modal .st-report { display: block; width: 100%; height: 36px; border-radius: 10px; border: 1.5px dashed #8a6a2a; background: rgba(245,197,24,.08); color: #e9d6b0; font: 600 12.5px Poppins, sans-serif; white-space: nowrap; }
#modal .st-report b { font-family: Bebas; font-weight: 400; font-size: 16px; letter-spacing: 1px; color: #F5C518; margin-left: 4px; }
#modal .st-l, #modal .st-l b, #modal .st-l small { text-align: left; align-items: flex-start; }
/* 16 Nov (Ryan t2158): tighter score cards. 12px less dead space between DARTS and the FORM/MOOD bar; LEGS box, pills and scene follow.
   MOOD bar now reads like FORM: label on the left, fills left-to-right with the same gradient orientation. */
#match .hud { height: 194px; }
#phone.short #match .hud { height: 179px; }
#match .pl { padding-bottom: 4px; }
#match .mid { height: 138px; }
#phone.short #match .mid { height: 124px; }
#match .mood { top: 209px; }
#phone.short #match .mood { top: 193px; }
#match .pl.daz .mbar { flex-direction: row; }
#match .pl.daz .nerve i { left: 0; right: auto; background: linear-gradient(90deg, #ff5a3c, #F5C518); }
/* 16 Nov (Ryan t2159): SHOW AVERAGE off -> cards + LEGS box lose the AVG row height, pills follow, scene rises by the same amount */
:root { --avgh: 20px; }
#phone.short { --avgh: 19px; }
html.noavg #phone { --avglift: var(--avgh); }

#match .hud, #match .mid, #match .mood, #topbtns { transition: height .2s ease, top .2s ease; }
html.noavg #match .hud { height: calc(194px - var(--avgh)); }
html.noavg #phone.short #match .hud { height: calc(179px - var(--avgh)); }
html.noavg #match .mid { height: calc(138px - var(--avgh)); }
html.noavg #phone.short #match .mid { height: calc(124px - var(--avgh)); }
html.noavg #match .mood { top: calc(209px - var(--avgh)); }
html.noavg #phone.short #match .mood { top: calc(193px - var(--avgh)); }
/* t2160: plain-text buttons, switches label-only + tighter rows */
#modal .st-row { min-height: 40px; }
#modal .st-sws { padding: 0 12px; }
/* t2162: Quit = round red button, same size as the cog, white ✕, in the row beside the cog */
#topbtns #quitBtn { position: static; width: 34px; height: 34px; padding: 0; border-radius: 50%; gap: 0; background: radial-gradient(circle at 50% 35%, #e0382c, #a01810); border: 1.5px solid #ff8a7a; color: #fff; line-height: 0; }
#topbtns #quitBtn .x { position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: 0; padding: 0; transform: translate(-50%, -50%); display: block; overflow: visible; }

/* Ryan t2189: Quit sits directly UNDER the settings cog (same centre), and reads a touch smaller than the cog */
#topbtns { flex-direction: column; align-items: center; gap: 7px; }
#topbtns #menuBtn { order: 1; }
#topbtns #quitBtn { order: 2; position: relative; top: auto; right: auto; width: 30px; height: 30px; border-width: 1px; border-color: rgba(255,138,122,.75);
  background: radial-gradient(circle at 50% 35%, #d8352a, #9a170f); box-shadow: 0 1px 3px rgba(0,0,0,.45); line-height: 0; }
#topbtns #quitBtn .x { position: absolute; left: 50%; top: 50%; width: 11px; height: 11px; margin: 0; padding: 0; transform: translate(-50%, -50%); display: block; }
#topbtns #quitBtn::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; }   /* 38px tap target */
#topbtns #menuBtn { position: relative; display: flex; align-items: center; justify-content: center; padding: 0; line-height: 0; }
#topbtns #menuBtn svg { position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: 0; transform: translate(-50%, -50%); display: block; overflow: visible; }

/* Ryan t2194: delete a game (bin, top-left of each match card) */
.cs-last .cs-del { position: absolute; top: 8px; left: 8px; width: 34px; height: 34px; border-radius: 50%; padding: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(20,9,5,.85); border: 1.5px solid #7a4a2a; color: #e8a08a; z-index: 2; }
.cs-last .cs-del svg { width: 17px; height: 17px; }
.cs-last .cs-del::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; }
.cs-last .cs-del:active { background: #5a1a10; color: #fff; }

/* Ryan t2194: delete a game (bin, top-left of each match card) */
.cs-last .cs-del { position: absolute; top: 8px; left: 8px; width: 34px; height: 34px; border-radius: 50%; padding: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(20,9,5,.85); border: 1.5px solid #7a4a2a; color: #e8a08a; z-index: 2; }
.cs-last .cs-del svg { width: 17px; height: 17px; }
.cs-last .cs-del::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; }
.cs-last .cs-del:active { background: #5a1a10; color: #fff; }

/* ===================== NINE-DARTER CELEBRATION (Ryan t2193) ===================== */
.n9 { position: absolute; inset: 0; z-index: 400; overflow: hidden; font-family: Bebas; color: #fff3d6; pointer-events: auto; }
.n9-dim { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 44%, rgba(70,38,8,.9), rgba(4,2,1,.97) 68%); opacity: 0; transition: opacity .5s; }
.n9.p1 .n9-dim { opacity: 1; }
.n9-conf { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity .6s; }
.n9.p1 .n9-conf { opacity: 1; }
.n9.out { transition: opacity .35s; opacity: 0; }
.n9-wrap { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding: calc(env(safe-area-inset-top, 0px) + 34px) 14px 18px; }
.n9-slam { display: flex; flex-direction: column; align-items: center; line-height: .86; font-family: Anton; text-transform: uppercase; transform: scale(3.2); opacity: 0; transition: transform .45s cubic-bezier(.2,1.6,.4,1), opacity .2s, margin .5s;
  background: linear-gradient(180deg, #fff6c8 0%, #F5C518 45%, #b07a12 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 5px 0 #6a1010) drop-shadow(0 0 18px rgba(245,197,24,.6)); }
.n9-slam span { font-size: 92px; letter-spacing: 3px; }
.n9.p1 .n9-slam { transform: scale(1); opacity: 1; }
.n9.p1 .n9-wrap { animation: n9shake .5s .25s; }
@keyframes n9shake { 0%,100% { transform: none; } 20% { transform: translate(-7px,4px); } 40% { transform: translate(6px,-5px); } 60% { transform: translate(-4px,3px); } 80% { transform: translate(3px,-2px); } }
.n9.p3 .n9-slam { transform: scale(.52); margin: -46px 0 -44px; }
.n9-stage { position: relative; width: 300px; height: 330px; margin-top: 16px; opacity: 0; transform: translateY(40px) scale(.9); transition: all .45s cubic-bezier(.2,1.3,.4,1); }
.n9.p3 .n9-stage { opacity: 1; transform: none; }
.n9-card { position: absolute; left: 25px; top: 0; width: 250px; height: 320px; border-radius: 18px; overflow: hidden; border: 4px solid #e0b04a; box-shadow: 0 0 0 3px #3a2414, 0 0 34px rgba(245,197,24,.55); background: #2a170c; transition: transform .5s, filter .5s; }
.n9-card img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; }
.n9.side .n9-card { left: 0; width: 176px; }
.n9-fx { position: absolute; inset: 0; pointer-events: none; }
.n9-bub { margin-top: 14px; max-width: 340px; background: #fff3d6; color: #2a170c; border-radius: 16px; padding: 9px 14px 8px; font-family: Poppins; font-weight: 700; font-size: 16px; line-height: 1.25; text-align: center;
  box-shadow: 0 4px 0 rgba(0,0,0,.5); opacity: 0; transform: scale(.7); transition: all .3s cubic-bezier(.2,1.5,.4,1); }
.n9-bub b { display: block; font-family: Bebas; font-weight: 400; font-size: 15px; letter-spacing: 1px; color: #8a1414; }
.n9.talk .n9-bub { opacity: 1; transform: none; }
.n9-go { margin-top: auto; height: 52px; padding: 0 30px; border-radius: 26px; font-family: Bebas; font-size: 24px; letter-spacing: 1.5px; background: linear-gradient(#ffd84a, #e0a812); color: #2a170c; border: 0; box-shadow: 0 4px 0 #8a5a0a; opacity: 0; transition: opacity .4s; }
.n9.p6 .n9-go { opacity: 1; }
/* Big Daz (Ryan t2197): shirt on (daz_laugh) -> RRRIP flash -> torn-open shirt (daz_nine) with the player's own 9 darts inked on his chest */
.n9-daz .n9-card img { object-position: 50% 50%; }
.n9-daz .n9-card img.n9-pre { position: absolute; inset: 0; object-position: 50% 16%; transition: opacity .14s; }
.n9-daz.p4 .n9-card img.n9-pre { opacity: 0; }
.n9-tat { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: multiply; opacity: 0; transition: opacity .5s .3s; }
.n9-daz.p4 .n9-tat { opacity: .9; }
.n9-rip { position: absolute; left: 50%; top: 150px; transform: translate(-50%,-50%) rotate(-8deg) scale(.4); font-family: Anton; font-size: 44px; color: #fff3d6; -webkit-text-stroke: 2px #8a1414; text-shadow: 0 3px 0 #8a1414; opacity: 0; z-index: 3; }
.n9-daz.p4 .n9-rip { animation: n9rip .9s ease-out forwards; }
@keyframes n9rip { 0% { opacity: 0; transform: translate(-50%,-50%) rotate(-8deg) scale(.4); } 18% { opacity: 1; transform: translate(-50%,-50%) rotate(-8deg) scale(1.15); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%,-50%) rotate(-8deg) scale(1.3); } }
.n9-roar { position: absolute; left: 150px; top: 120px; width: 10px; height: 10px; border-radius: 50%; border: 4px solid rgba(245,197,24,.9); opacity: 0; transform: translate(-50%,-50%); }
.n9.p5 .n9-roar { animation: n9ring 1s ease-out 2; }
.n9.p5 .n9-roar.r2 { animation-delay: .35s; }
@keyframes n9ring { 0% { opacity: 1; width: 10px; height: 10px; } 100% { opacity: 0; width: 330px; height: 330px; } }
.n9-daz.p5 .n9-card { animation: n9shake .4s 3; }
/* Nana: knitting drops, party popper, little jig */
.n9-yarn, .n9-needles { position: absolute; font-size: 42px; left: 40px; top: 238px; transition: transform .9s cubic-bezier(.5,0,.7,1.6); }
.n9-needles { left: 78px; top: 246px; font-size: 34px; }
.n9.p4 .n9-yarn { transform: translate(-18px, 70px) rotate(220deg); }
.n9.p4 .n9-needles { transform: translate(6px, 66px) rotate(-140deg); }
.n9-popper { position: absolute; right: 18px; top: 200px; font-size: 46px; transform: rotate(-20deg); }
.n9-streamers { position: absolute; right: 44px; top: 214px; }
.n9-streamers i { position: absolute; width: 5px; height: 16px; border-radius: 3px; background: var(--c); opacity: 0; }
.n9.p4 .n9-streamers i { animation: n9burst .9s ease-out forwards; }
@keyframes n9burst { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(-1 * var(--d) - 60px)); } }
.n9-nana.p5 .n9-card { animation: n9jig .42s ease-in-out infinite alternate; }
@keyframes n9jig { 0% { transform: rotate(-4deg) translateY(0); } 100% { transform: rotate(4deg) translateY(-10px); } }
.n9-notes i { position: absolute; font-style: normal; font-size: 26px; top: 40px; opacity: 0; }
.n9-notes i:nth-child(1) { left: 8px; } .n9-notes i:nth-child(2) { right: 6px; top: 70px; } .n9-notes i:nth-child(3) { left: 30px; top: 110px; }
.n9.p5 .n9-notes i { animation: n9float 1.4s ease-out infinite; }
.n9.p5 .n9-notes i:nth-child(2) { animation-delay: .45s; } .n9.p5 .n9-notes i:nth-child(3) { animation-delay: .9s; }
@keyframes n9float { 0% { opacity: 0; transform: translateY(10px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-40px); } }
/* Kai: the gold chain snaps, sulk, grudging slow clap */
.n9-chain { position: absolute; top: 214px; display: flex; gap: 0; transition: transform .8s cubic-bezier(.5,0,.7,1.5), opacity .8s; }
.n9-chain.l { left: 62px; transform-origin: 0 50%; transform: rotate(14deg); } .n9-chain.r { left: 150px; transform-origin: 100% 50%; transform: rotate(-14deg); }
.n9-chain i { width: 16px; height: 11px; border-radius: 50%; border: 3.5px solid #F5C518; box-shadow: 0 0 6px rgba(245,197,24,.8); margin-right: -3px; }
.n9.p4 .n9-chain.l { transform: translate(-10px, 90px) rotate(70deg); opacity: .0; }
.n9.p4 .n9-chain.r { transform: translate(10px, 90px) rotate(-70deg); opacity: .0; }
.n9-snap { position: absolute; left: 112px; top: 196px; font-family: Anton; font-size: 30px; color: #F5C518; text-shadow: 0 3px 0 #6a1010; opacity: 0; transform: scale(.4); }
.n9.p4 .n9-snap { animation: n9pop .8s forwards; }
@keyframes n9pop { 0% { opacity: 0; transform: scale(.4); } 30% { opacity: 1; transform: scale(1.25); } 100% { opacity: 0; transform: scale(1); } }
.n9-kai.p5 .n9-card { filter: saturate(.45) brightness(.82); transform: translateY(8px) rotate(-2deg); }
.n9-sulk { position: absolute; right: 14px; top: 18px; font-size: 34px; opacity: 0; transition: opacity .4s; } .n9.p5 .n9-sulk { opacity: 1; }
.n9-claps { position: absolute; left: 0; right: 0; bottom: -4px; display: flex; justify-content: center; gap: 36px; }
.n9-claps i { font-style: normal; font-size: 36px; opacity: 0; }
.n9.p5 .n9-claps i { animation: n9clap .5s forwards; } .n9.p5 .n9-claps i:nth-child(2) { animation-delay: 1s; } .n9.p5 .n9-claps i:nth-child(3) { animation-delay: 2s; }
@keyframes n9clap { 0% { opacity: 0; transform: scale(.5); } 50% { opacity: 1; transform: scale(1.3); } 100% { opacity: 1; transform: scale(1); } }
/* side layout: card left, prop panel right */
.n9.side .n9-fx > * { position: absolute; }
/* Old Chalk: chalks it on the board, framed and hung on the wall */
.n9-board { left: 186px; top: 92px; width: 114px; height: 150px; border-radius: 6px; background: #1f3b2a; border: 7px solid #7a4a22; box-shadow: 0 6px 12px rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; transition: transform .7s cubic-bezier(.3,1.4,.5,1), border-color .4s, box-shadow .4s; }
.n9-ctext { text-align: center; color: #f4f1e6; clip-path: inset(0 100% 0 0); transition: clip-path 1.2s steps(14); font-family: 'Bebas'; }
.n9-ctext b { display: block; font-size: 38px; line-height: .95; text-shadow: 0 0 2px rgba(255,255,255,.6); } .n9-ctext span { font-size: 15px; opacity: .8; }
.n9.p4 .n9-ctext { clip-path: inset(0 0 0 0); }
.n9.p5 .n9-board { border-color: #e0b04a; box-shadow: 0 0 0 3px #8a5a0a, 0 0 22px rgba(245,197,24,.7); transform: translateY(-74px); animation: n9swing 1.6s .7s ease-in-out infinite alternate; transform-origin: 50% -22px; }
@keyframes n9swing { from { transform: translateY(-74px) rotate(-4deg); } to { transform: translateY(-74px) rotate(4deg); } }
.n9-nail { left: 236px; top: -8px; width: 12px; height: 12px; border-radius: 50%; background: #c9c3b5; box-shadow: 0 2px 0 #555; opacity: 0; transition: opacity .3s; }
.n9.p5 .n9-nail { opacity: 1; }
/* Lammy: probability readout spins, calculator overheats, he faints */
.n9-calc { left: 190px; top: 70px; width: 108px; height: 170px; border-radius: 12px; background: linear-gradient(#6b6f77, #3c3f45); border: 2px solid #1d1f23; padding: 8px; transition: box-shadow .4s, background .4s; }
.n9-lcd { background: #b8c9a1; border-radius: 5px; padding: 4px 5px; color: #1d2a12; text-align: right; font-family: 'Courier New', monospace; }
.n9-lcd small { display: block; font-size: 8px; font-weight: 700; text-align: left; } .n9-lcd b { font-size: 15px; }
.n9-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; } .n9-keys i { height: 18px; border-radius: 4px; background: #23252a; }
.n9.p4 .n9-calc { background: linear-gradient(#a8443a, #5a1a10); box-shadow: 0 0 24px rgba(255,90,40,.9); animation: n9shake .3s infinite; }
.n9.p4 .n9-lcd { background: #ff9b7a; }
.n9-smoke { left: 210px; top: 30px; } .n9-smoke i { position: absolute; font-style: normal; font-size: 28px; opacity: 0; }
.n9-smoke i:nth-child(2) { left: 30px; } .n9-smoke i:nth-child(3) { left: 60px; }
.n9.p4 .n9-smoke i { animation: n9float 1.2s infinite; } .n9.p4 .n9-smoke i:nth-child(2) { animation-delay: .4s; } .n9.p4 .n9-smoke i:nth-child(3) { animation-delay: .8s; }
.n9-boom { left: 214px; top: 110px; font-size: 64px; opacity: 0; } .n9.p5 .n9-boom { animation: n9pop 1s forwards; }
.n9.p5 .n9-calc { animation: none; opacity: .45; box-shadow: none; }
.n9-lammy.p5 .n9-card { transform: rotate(-11deg) translateY(16px); filter: brightness(.9); }
.n9-stars { left: 40px; top: 4px; width: 110px; } .n9-stars i { position: absolute; font-style: normal; font-size: 24px; opacity: 0; }
.n9-stars i:nth-child(2) { left: 42px; top: -6px; } .n9-stars i:nth-child(3) { left: 84px; }
.n9.p5 .n9-stars i { opacity: 1; animation: n9orbit 1.2s linear infinite; }
@keyframes n9orbit { 0% { transform: translate(0,0); } 25% { transform: translate(10px,6px); } 50% { transform: translate(0,10px); } 75% { transform: translate(-10px,4px); } 100% { transform: translate(0,0); } }
/* Kayden: goes live, Aura meter breaks */
.n9-phone { left: 184px; top: 8px; width: 116px; height: 300px; border-radius: 20px; background: #0c0c10; border: 3px solid #3a3a46; padding: 10px 8px; font-family: Poppins; }
.n9-live { display: inline-block; background: #e0242a; color: #fff; font-weight: 800; font-size: 12px; padding: 2px 7px; border-radius: 6px; animation: n9blink .8s infinite; }
@keyframes n9blink { 50% { opacity: .5; } }
.n9-view { color: #fff; font-size: 13px; margin-top: 6px; } .n9-view b { color: #F5C518; }
.n9-hearts { position: relative; height: 70px; } .n9-hearts i { position: absolute; bottom: 0; font-style: normal; font-size: 20px; opacity: 0; animation: n9float 1.4s infinite; }
.n9-hearts i:nth-child(1) { left: 4px; } .n9-hearts i:nth-child(2) { left: 28px; animation-delay: .3s; } .n9-hearts i:nth-child(3) { left: 52px; animation-delay: .6s; } .n9-hearts i:nth-child(4) { left: 76px; animation-delay: .9s; } .n9-hearts i:nth-child(5) { left: 40px; animation-delay: 1.15s; }
.n9-aura { position: relative; text-align: center; color: #c79cff; margin-top: 6px; }
.n9-aura small { font-family: Bebas; font-size: 16px; letter-spacing: 1px; }
.n9-meter { width: 40px; height: 120px; margin: 2px auto 0; border-radius: 10px; border: 2px solid #8a5cff; background: #1a1030; position: relative; overflow: hidden; }
.n9-meter i { position: absolute; left: 0; right: 0; bottom: 0; height: 10%; background: linear-gradient(#ff6bd6, #8a5cff); transition: height 1.3s ease-in; }
.n9.p3 .n9-meter i { height: 100%; }
.n9-crack { position: absolute; left: 50%; top: 23px; width: 40px; height: 120px; transform: translateX(-50%); fill: none; stroke: #fff; stroke-width: 2.4; opacity: 0; }
.n9.p5 .n9-crack { opacity: 1; } .n9.p5 .n9-meter { border-color: #ff4a6a; animation: n9shake .3s 2; }
.n9-aura b { display: block; font-family: Anton; font-size: 18px; color: #ff4a6a; opacity: 0; margin-top: 4px; } .n9.p5 .n9-aura b { opacity: 1; animation: n9blink .5s infinite; }
/* Lottie: sledge cut off, nail snaps, white flag */
.n9-sledge { left: 186px; top: 30px; width: 114px; background: #fff3d6; color: #2a170c; font-family: Poppins; font-weight: 700; font-size: 13px; border-radius: 12px; padding: 8px; }
.n9-sledge u { position: absolute; left: 6px; right: 6px; top: 50%; height: 3px; background: #e0242a; transform: scaleX(0) rotate(-8deg); transform-origin: 0 50%; transition: transform .4s; }
.n9.p4 .n9-sledge u { transform: scaleX(1) rotate(-8deg); }
.n9-nail2 { left: 214px; top: 120px; font-size: 44px; } .n9-nail2 b { position: absolute; left: 30px; top: -10px; font-size: 26px; opacity: 0; }
.n9.p4 .n9-nail2 b { animation: n9pop 1.2s forwards; }
.n9-flag { left: 220px; top: 186px; font-size: 54px; opacity: 0; transform-origin: 10% 100%; } .n9.p5 .n9-flag { opacity: 1; animation: n9wave .5s ease-in-out infinite alternate; }
@keyframes n9wave { from { transform: rotate(-12deg); } to { transform: rotate(12deg); } }
.n9-tag { left: 186px; top: 262px; width: 114px; text-align: center; font-size: 17px; line-height: 1; color: #F5C518; opacity: 0; } .n9.p5 .n9-tag { opacity: 1; }
/* Malcombe: the marker's sheet ticks down 501 -> 0, VERIFIED stamp */
.n9-sheet { left: 186px; top: 30px; width: 114px; background: #f8f4e8; color: #2a170c; border-radius: 6px; padding: 8px 9px; box-shadow: 0 6px 12px rgba(0,0,0,.6); background-image: repeating-linear-gradient(#f8f4e8 0 33px, #c9d7ec 33px 34px); }
.n9-sheet .h { font-size: 15px; letter-spacing: .5px; color: #8a1414; border-bottom: 2px solid #8a1414; margin-bottom: 4px; }
.n9-sheet .rw { display: flex; justify-content: space-between; align-items: center; height: 34px; font-family: Anton; font-size: 26px; opacity: 0; }
.n9-sheet .rw span { color: #1a7a2a; font-size: 22px; }
.n9.p4 .n9-sheet .rw { animation: n9chip .3s calc(var(--i) * .3s) forwards; }
.n9-stamp { left: 178px; top: 214px; width: 124px; text-align: center; border: 4px solid #d01a1a; color: #d01a1a; border-radius: 8px; font-size: 18px; line-height: 1; padding: 5px 0; transform: rotate(-14deg) scale(2.4); opacity: 0; background: rgba(255,255,255,.12); }
.n9-stamp b { font-family: Anton; font-size: 26px; font-weight: 400; }
.n9.p5 .n9-stamp { animation: n9stamp .35s forwards; }
@keyframes n9stamp { to { opacity: .92; transform: rotate(-14deg) scale(1); } }
#phone.short .n9-slam span { font-size: 78px; }
#phone.short .n9-stage { transform-origin: 50% 0; }
#phone.short .n9.p3 .n9-stage { transform: scale(.82); margin-bottom: -58px; }
/* 16 Nov (Ryan t2193): 180s / 140s / 100+ tally, three across, label over number. Ryan t2379: 100+ replaced 9-DARTERS; count is inclusive of 140s and 180s.
   Ryan t2382: value centred under its label in every box (full-width, text-align center).
   padding-left on the label cancels trailing letter-spacing so the glyphs sit on the same centre as the number. */
.cs-tally { grid-template-columns: 1fr 1fr 1fr; }
.cs-row.tl { flex-direction: column; justify-content: center; align-items: center; gap: 5px; padding: 8px 6px; text-align: center; }
.cs-row.tl span, .cs-row.tl b { display: block; width: 100%; text-align: center; box-sizing: border-box; }
.cs-row.tl span { padding-left: 1.5px; }
.cs-row.tl.nine span { color: #ffd76a; }
/* Ryan t2197: the generic 9-dart route row is gone; keep the chip keyframes (Malcombe's sheet uses them) and recentre the stage */
@keyframes n9chip { to { opacity: 1; transform: none; } }
.n9-stage { margin-top: 44px; }
.n9-bub { margin-top: 22px; }
#phone.short .n9-stage { margin-top: 20px; }
#phone.short .n9-bub { margin-top: 14px; }

/* 16 Nov: ‹ BACK on the Daz walk-on and the who-throws-first screen (same pill as the sheets).
   Top-left, clear of the notch via safe-area, opposite the mute and settings icons. */
.pre-back { position: absolute; top: calc(10px + env(safe-area-inset-top, 0px)); left: max(10px, env(safe-area-inset-left, 0px));
  z-index: 70; height: 40px; min-width: 84px; padding: 0 14px; border-radius: 20px; cursor: pointer;
  font-family: Bebas; font-size: 19px; letter-spacing: 1px; color: #f3dcb4;
  background: linear-gradient(180deg,#5a3a20,#3a2414); box-shadow: 0 3px 0 #1e1008; border: 1px solid #8a6a2a; }
.pre-back::after { content: ''; position: absolute; inset: -6px; }   /* 52px tap target */
.pre-back:active { transform: translateY(2px); }
#intro .name { top: calc(54px + env(safe-area-inset-top, 0px)); padding: 0 12px; }
#first .wf-head { padding-top: calc(54px + env(safe-area-inset-top, 0px)); }

/* 16 Nov: Reset this mode — red, separated from the sliders, home Match Settings only */
#modal .st-reset { margin-top: 16px; padding-top: 16px; border-top: 1.5px solid rgba(192,48,32,.45); }
#modal .st-reset-btn { display: block; width: 100%; height: 48px; border-radius: 12px; cursor: pointer;
  font-family: Bebas; font-size: 20px; letter-spacing: 1.2px; color: #fff3d0;
  background: linear-gradient(180deg,#e0382c,#a01810); box-shadow: 0 4px 0 #5a0a06; border: 0; }
#modal .st-reset-btn:active { transform: translateY(2px); }

/* 16 Nov (Ryan t2230): match speech bubble is compact and sits just above the checkout/keypad
   (placeBubble sets bottom). Smaller type and a narrow max-width keep long Lottie lines on the
   torso / dart-hand, never over the face, on both 390x844 and short Safari (~700). */
#match .bubble.mini {
  left: 8px;
  right: auto;
  max-width: 200px;
  padding: 4px 8px 5px;
  align-items: flex-start;
  flex-wrap: wrap;
  row-gap: 1px;
  box-sizing: border-box;
}
#match .bubble.mini .who { font-size: 10px; padding: 1px 4px; margin: 0 4px 0 0; }
#match .bubble.mini .tx { font-size: 12px; font-weight: 700; line-height: 1.15; }
#match .bubble.mini.long { max-width: 220px; }
#match .bubble.mini.long .tx { font-size: 11px; line-height: 1.15; }
#phone.short #match .bubble.mini { max-width: 180px; }
#phone.short #match .bubble.mini .tx { font-size: 11px; }
#phone.short #match .bubble.mini.long .tx { font-size: 10.5px; }


/* 17 Nov (Ryan t2233–t2235): GAME SHOT / TON+ FINISH and other shout banners
   live in the empty space under the result panel, never over the character or the
   speech bubble. A slim checkout meta row (darts, route, leg avg, match score)
   sits under "You checked out". */
#rMeta { display: none !important; } #rMetaOld { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px 10px; margin: 6px 8px 0;
  font-family: Bebas; font-size: 15px; letter-spacing: 0.8px; color: #e9c46a; text-align: center; line-height: 1.2; }
#rMeta b { font-family: Anton; font-weight: 400; color: #fff; letter-spacing: 0; font-size: 16px; }
#rMeta .sep { color: #8a6a4a; }
#phone.short #rMeta { font-size: 13px; margin-top: 4px; gap: 4px 8px; }
#phone.short #rMeta b { font-size: 14px; }
#rGrow { min-height: 64px; }
#phone.short #rGrow { min-height: 52px; }
#splash.inpad { z-index: 120; text-align: center; pointer-events: none; line-height: .88;
  -webkit-text-stroke: 2.5px #1a0a05; text-shadow: 0 4px 0 #8a1414, 0 8px 16px rgba(0,0,0,.55); }
#splash.inpad .sub2 { font-size: 22px; margin-top: 2px; }
#phone.short #splash.inpad .sub2 { font-size: 18px; }
/* 17 Nov (Ryan t2269–t2271): visible-viewport sizing, scrollable chrome screens,
   and in-pad shouts centred in #rGrow so they never cover the button row. */
html, body {
  height: 100%;
  height: 100svh;
  height: 100dvh;
  height: var(--vh, 100dvh);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-sizing: border-box;
}
#phone { box-sizing: border-box; }
#first, #intro, #modesel, #ladder, #gamemodes, #pubteam, #volts, #statsPage, #trophyPage {
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}
#match { overflow: hidden; }
#end .endscroll { padding-bottom: max(18px, env(safe-area-inset-bottom, 0px)); }
#modal .sheet { max-height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.wf-cta { bottom: max(16px, env(safe-area-inset-bottom, 0px)); }
#rGrow, #padDaz .grow { position: relative; overflow: hidden; }
#splash.inpad { z-index: 120; text-align: center; pointer-events: none; line-height: .88;
  padding: 6px 8px; box-sizing: border-box;
  -webkit-text-stroke: 2.5px #1a0a05; text-shadow: 0 4px 0 #8a1414, 0 8px 16px rgba(0,0,0,.55); }
#splash.inpad .sub2 { font-size: 22px; margin-top: 2px; }
#phone.short #splash.inpad .sub2 { font-size: 18px; }
#thinking { z-index: 30; max-width: calc(100% - 24px); width: max-content; white-space: nowrap; text-align: center; line-height: 1.05; }

#splash.inpad.in { animation: splashInPad .5s cubic-bezier(.2,1.6,.4,1); }
@keyframes splashInPad {
  from { transform: translate(-50%, -50%) rotate(-5deg) scale(.3); opacity: 0; }
  to { transform: translate(-50%, -50%) rotate(-5deg) scale(1); opacity: 1; }
}
#splash.inpad.out { animation: splashOutPad .4s ease-in forwards; pointer-events: none; }
@keyframes splashOutPad {
  from { transform: translate(-50%, -50%) rotate(-5deg) scale(1); opacity: 1; }
  to { transform: translate(-50%, -50%) rotate(-5deg) scale(.72); opacity: 0; }
}
#rBtn { gap: 0; overflow: hidden; }
#rBtnTx { display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-align: center; letter-spacing: 1px; pointer-events: none; }

/* Ryan t2315: number-only score call, shrink-wrapped and offset left; lining-up pill offset right on the same row. */
.callout {
  left: 10px;
  right: auto;
  width: max-content;
  max-width: 46%;
  height: auto;
  min-height: 42px;
  padding: 4px 12px;
  box-sizing: border-box;
  transform: none;
  gap: 0;
}
.callout .n { min-width: 0; padding: 0 2px; }
.callout .w { display: none; }
.callout.game .n { font-size: 32px; }
#thinking {
  left: auto;
  right: 10px;
  transform: none;
  width: max-content;
  max-width: 52%;
  white-space: nowrap;
  text-align: center;
  box-sizing: border-box;
}

/* 17 Nov (Ryan t2357): profile photo crop editor — circular mask, pinch/drag/slider */
#photoCrop { position: absolute; inset: 0; z-index: 120; background: #120705; display: flex; flex-direction: column; padding: 16px 14px calc(16px + env(safe-area-inset-bottom, 0px)); touch-action: none; overscroll-behavior: none; -webkit-user-select: none; user-select: none; }
#photoCrop[hidden] { display: none !important; }
#phone.cropping, html.cropping, body.cropping { overflow: hidden !important; touch-action: none; overscroll-behavior: none; }
.pc-head { font-family: Bebas; font-size: 28px; letter-spacing: 1.6px; color: #F5C518; text-align: center; flex: none; }
.pc-stage { position: relative; width: min(100%, 340px); margin: 14px auto 0; aspect-ratio: 1 / 1; overflow: hidden; background: #1a0d07; border-radius: 8px; touch-action: none; cursor: grab; flex: none; }
.pc-stage.grabbing { cursor: grabbing; }
#pcImg { position: absolute; left: 50%; top: 50%; transform: translate(calc(-50% + var(--tx, 0px)), calc(-50% + var(--ty, 0px))) scale(var(--sc, 1)); transform-origin: center center; max-width: none; pointer-events: none; will-change: transform; display: block; }
.pc-mask { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 800px rgba(8,3,2,.64); pointer-events: none; border: 2px solid #F5C518; }
.pc-hint { font-family: Poppins, sans-serif; font-size: 12px; font-weight: 500; color: #c9a77a; text-align: center; margin: 10px 8px 0; line-height: 1.35; flex: none; }
.pc-tools { display: flex; align-items: center; gap: 10px; margin: 12px 4px 0; flex: none; }
.pc-zoomlab { font-family: Bebas; font-size: 16px; letter-spacing: 1.2px; color: #c9a77a; flex: none; }
#pcZoom { flex: 1; height: 28px; accent-color: #F5C518; }
.pc-err { font-family: Poppins, sans-serif; font-size: 12px; font-weight: 600; color: #ffb0a4; text-align: center; margin: 8px 0 0; }
.pc-opts { display: flex; gap: 8px; margin-top: auto; padding-top: 16px; flex: none; }
.pc-opts button { flex: 1; height: 56px; border-radius: 14px; font-family: Bebas; font-size: 22px; letter-spacing: 1px; border: 0; cursor: pointer; }
.pc-opts button.alt { background: linear-gradient(180deg,#5a3a20,#3a2414); color: #f3dcb4; box-shadow: 0 4px 0 #1e1008; }
.pc-opts button.y { background: linear-gradient(180deg,#ffd84a,#e2a814); color: #1a0a05; box-shadow: 0 4px 0 #8a5a08; }
#phone.short .pc-head { font-size: 24px; }
#phone.short .pc-stage { width: min(100%, 280px); margin-top: 8px; }
#phone.short .pc-opts button { height: 50px; }
