/* builds 25-27. No colour values here: they live in tokens.css. */

/* ----- build 25: viewers */
.pill.newp{background:var(--saw-on);border-color:transparent;color:var(--on-vid)}
.seenl{display:inline-flex;align-items:center;gap:6px;margin-top:6px;font:600 13px/1.2 var(--body);color:var(--on-vid);text-shadow:var(--vid-text-shadow)}
.seenl .ic{width:16px;height:16px;color:var(--on-vid);stroke:var(--on-vid)}
.vw-head{display:flex;gap:16px;align-items:center;margin:6px 0 14px}
.vw-poster{position:relative;flex:none;width:96px;aspect-ratio:9/16;border-radius:14px;overflow:hidden;background:var(--tile);box-shadow:var(--tile-shadow)}
.vw-poster img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.vw-num{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0}
.vw-n{font:400 64px/1 var(--head);color:var(--text);text-shadow:0 0 22px var(--glow)}
.vw-u{font:700 15px/1.2 var(--body);color:var(--ruby-text);margin-bottom:6px}
.vw-promise{padding:12px 14px;border:1px solid var(--soft-line);border-radius:16px;background:var(--soft);margin-bottom:14px}
.vw-promise b{display:block;font-size:15px;margin-bottom:2px}
.vw-promise .sub{margin:0;font-size:13.5px}
.vw-row{display:flex;align-items:center;gap:12px;min-height:56px;padding:8px 0;border-bottom:1px solid var(--line-soft)}
.vw-i{flex:none;width:30px;font:400 13px/1 var(--head);color:var(--dim)}
.vw-t{display:flex;flex-direction:column;min-width:0;flex:1}
.vw-t b{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vw-t small{font-size:12.5px;color:var(--dim)}
.vw-saw .ic{width:20px;height:20px;color:var(--saw-on);stroke:var(--saw-on)}
.vw-vis{display:flex;align-items:center;gap:8px;margin:14px 0 4px;font-size:14px;color:var(--dim)}
.vw-vis .ic{width:18px;height:18px}
.seen-prev{display:flex;justify-content:center;margin:4px 0 10px}
.seen-prev img{width:min(62vw,240px);aspect-ratio:9/16;border-radius:16px;box-shadow:var(--tile-shadow);object-fit:cover}
.seen-sh .acts .btn,.seen-sh .acts .btn-line{width:100%}

/* ----- build 26: badges */
.bdg{display:inline-grid;place-items:center;min-width:24px;height:20px;padding:0 5px;border-radius:999px;font:700 10.5px/1 var(--body);letter-spacing:.02em}
.bdg.f100{background:var(--ruby);color:var(--on-ruby)}
.bdg.tom{background:var(--vid-pill);border:1px solid var(--gold-line);color:var(--gold)}
.bdg.tom .ic{width:13px;height:13px;stroke:var(--gold)}
.bdgs{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin:6px 0 2px}
.bdg-l{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 10px 0 4px;border-radius:999px;border:1px solid var(--soft-line);background:var(--soft);font:600 12.5px/1 var(--body);color:var(--text)}
.bdg-l i{display:grid;place-items:center;min-width:20px;height:20px;padding:0 4px;border-radius:999px;font:700 10px/1 var(--body);font-style:normal}
.bdg-l.f100 i{background:var(--ruby);color:var(--on-ruby)}
.bdg-l.tom{border-color:var(--gold-line)}
.bdg-l.tom i{color:var(--gold)}
.f100-card{display:flex;align-items:center;gap:12px;margin:0 0 14px;padding:12px 14px;border:1px solid var(--soft-line);border-radius:18px;background:var(--soft)}
.f100-card>i{flex:none;display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--ruby);color:var(--on-ruby);font:700 13px/1 var(--body);font-style:normal;box-shadow:var(--ring-glow)}
.f100-card span{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.f100-card b{font-size:14.5px}
.f100-card small{font-size:12.5px;color:var(--dim)}
.yo-crown{position:absolute;z-index:2;display:block;width:22px;height:22px;color:var(--gold);filter:drop-shadow(0 0 6px rgba(0,0,0,.5))}
.yo-crown .ic{width:22px;height:22px;stroke:var(--gold);fill:var(--gold)}
.yo-badge.crowned{position:relative}
.yo-badge.crowned .yo-crown{left:10px;top:-14px}
.yo-cap-f .yo-crown{left:23px;top:-12px}

/* ----- build 26: Talent of the Month */
.tom-bar{display:flex;align-items:center;gap:12px;margin:0 0 14px;padding:12px 14px;border:1px solid var(--gold-line);border-radius:18px;background:var(--hero-bg);color:var(--hero-text)}
.tom-bar.pad-m{margin:4px 20px 6px}
.tom-bar>.ic:first-child{flex:none;width:26px;height:26px;stroke:var(--gold);fill:var(--gold)}
.tom-bar span{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.tom-bar b{font:400 15px/1.2 var(--head)}
.tom-bar small{font-size:12.5px;color:var(--hero-dim)}
.tom-hero{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:18px 16px 16px;border:2px solid var(--hero-line);border-radius:22px;background:var(--hero-bg);color:var(--hero-text);margin-bottom:6px}
.tom-hero .cap{color:var(--gold-text);margin:0}
.tom-hero b{font:400 22px/1.15 var(--head)}
.tom-hero>span:not(.cap):not(.tom-crown){font:600 13.5px/1.3 var(--body);color:var(--ruby-text)}
.tom-hero p{margin:6px 0 0;font-size:13px;line-height:1.45;color:var(--hero-dim)}
.tom-crown{display:block;color:var(--gold)}
.tom-crown .ic{width:22px;height:22px;stroke:var(--gold);fill:var(--gold)}
.tom-crown.big{position:absolute;right:16px;top:14px}
.tom-crown.big .ic{width:34px;height:34px;filter:drop-shadow(0 0 10px rgba(242,193,78,.45))}
.tom-win .rowx{padding:0 0 6px}
.tom-wc{position:relative;flex:none;display:flex;flex-direction:column;align-items:center;gap:4px;width:84px;text-align:center}
.tom-wc .tom-crown{position:absolute;top:-10px}
.tom-wc .av{box-shadow:0 0 0 2px var(--gold-line),var(--gold-glow)}
.tom-wc b{max-width:84px;font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tom-wc small{font-size:11.5px;color:var(--dim)}
.tom-list{margin-top:6px}
.tom-c{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--line-soft)}
.tom-c.mine .tom-p{box-shadow:0 0 0 2px var(--ruby),var(--sel-shadow)}
.tom-p{position:relative;flex:none;width:64px;aspect-ratio:9/16;border-radius:12px;overflow:hidden;background:var(--tile)}
.tom-p img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.tom-t{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}
.tom-n{display:flex;align-items:center;gap:8px;min-width:0}
.tom-n b{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tom-t small{font-size:12.5px;color:var(--dim)}
.tom-c .btn.sm{flex:none;height:40px}
.tom-c .badge{flex:none}

/* ----- build 26: a duel link opened without an account */
.duel-guest{display:flex;gap:12px;align-items:flex-start;margin:0 0 14px;padding:12px 14px;border:1px solid var(--nb-line);border-radius:18px;background:var(--soft)}
.duel-guest>.ic{flex:none;width:24px;height:24px;stroke:var(--ruby-text);margin-top:2px}
.duel-guest b{display:block;font-size:15px;margin-bottom:2px}
.duel-guest span{font-size:13.5px;line-height:1.4;color:var(--dim)}

/* ----- build 27: the in-app banner (compact, approved) */
.nbn{position:fixed;z-index:60;left:10px;right:10px;top:calc(8px + env(safe-area-inset-top));max-width:440px;margin:0 auto;display:flex;gap:8px;align-items:center;padding:5px 6px;border-radius:16px;background:var(--nb-bg);border:1px solid var(--nb-line);box-shadow:var(--nb-shadow);color:var(--nb-text);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);animation:nbn-in .28s ease-out both}
.nbn.out{transform:translateY(-130%);opacity:0;transition:transform .24s ease-in,opacity .24s ease-in}
@keyframes nbn-in{from{transform:translateY(-130%);opacity:0}to{transform:none;opacity:1}}
.nbn-i{flex:none;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--tab-bar);box-shadow:inset 0 0 0 1.5px var(--ruby-hot);color:var(--nb-text)}
.nbn-i.hot{background:var(--ruby);color:var(--on-ruby)}
.nbn-i .ic{width:13px;height:13px;stroke:currentColor}
.nbn-i .av{--s:26px!important}
.nbn-t{display:flex;flex-direction:column;flex:1;min-width:0}
.nbn-t b{font-size:12px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nbn-t span{font-size:11px;line-height:1.3;color:var(--nb-dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nbn-go{flex:none;font:700 11px/1 var(--body);padding:5px 9px;border-radius:999px;box-shadow:inset 0 0 0 1.5px var(--ruby-hot)}
@media (prefers-reduced-motion:reduce){.nbn{animation:none}.nbn.out{transition:none}}

/* ----- build 27: Settings → Notifications */
.nf-card{padding:14px 16px;border:1px solid var(--soft-line);border-radius:18px;background:var(--soft);margin:4px 0 8px}
.nf-card .btn,.nf-card .btn-line{width:100%;margin-top:6px}
.nf-card .sub{margin:6px 0}
.nf-st{display:flex;align-items:center;gap:10px}
.nf-st b{font-size:15.5px}
.nf-dot{width:10px;height:10px;border-radius:50%;background:var(--dim)}
.nf-dot.on{background:var(--pass);box-shadow:0 0 8px var(--pass)}
.nf-dot.blocked{background:var(--ruby-hot)}

/* fix (found with the duel link test): the "Waiting for…" slot of an open duel pushed the page wider than the phone */
.rounds{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}
.round.empty,.round.gone{aspect-ratio:auto;align-self:stretch;min-width:0}
.round.empty .sub,.round.gone .sub{font-size:13px;line-height:1.35;overflow-wrap:anywhere;margin:0}
/* Numbers: a value never hides behind "…" (it wraps instead) */
.val.strong{flex:0 1 auto;white-space:normal;overflow:visible;text-align:right}
/* buttons with an icon: icon and words side by side; buttons in a column keep their full height */
.btn:has(>.ic),.btn-line:has(>.ic){grid-auto-flow:column;justify-content:center;align-items:center;column-gap:8px}
.btn>.ic,.btn-line>.ic{width:20px;height:20px}
.acts.col>*{flex:none}
.tom-hero b{padding-right:44px}
