/* Phone layouts. S14/S15 follow their mockups (853 px image = 390 CSS px at 2.19x);
   other screens reflow into a single column with the same art and components. */

/* ---------------------------------------------------------------- S14 artist */
.s14 { display: flex; flex-direction: column; overflow: hidden; background: #fdf8eb; padding: 0; height: 100%; }
.s14-top { flex: none; height: calc(43px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 18px 0 19px; display: flex; align-items: center; justify-content: space-between; color: #fff;
  background: #333740 radial-gradient(circle at 10% 30%, rgba(255,255,255,0.04) 0 1px, transparent 1.5px) 0 0 / 5px 5px; }
.s14-role { display: flex; align-items: center; gap: 16px; font: 800 22px var(--f-ui); letter-spacing: 0.06em; }
.s14-role .ico { font-size: 27px; color: #fdfdfd; }
.s14-timer { display: flex; align-items: center; gap: 10px; color: #fd6a5c; }
.s14-timer .ico { font-size: 26px; }
.s14-time { font: 700 31px var(--f-ui); font-stretch: 85%; letter-spacing: 0.02em; }
.s14-timer.warn .s14-time { animation: pulse 1s infinite; }
.s14-stage { position: relative; flex: 1; min-height: 0; background: #fdf8eb; }
.s14 .canvas-sheet { box-shadow: 0 0 0 1px rgba(32, 35, 43, 0.1), 0 2px 10px rgba(32, 35, 43, 0.06); }
.s14-ref { position: absolute; right: 10px; top: calc(52px + env(safe-area-inset-top)); width: 109px; height: 137px; z-index: 5; border: 0; border-radius: 10px; background: #fdfaf3; box-shadow: 0 2px 8px rgba(32, 35, 43, 0.18); padding: 0; display: block; }
.s14-ref-cap { position: absolute; left: 0; right: 0; top: 6px; text-align: center; font: 700 8.5px var(--f-ui); letter-spacing: 0.04em; color: #8b8d93; }
.s14-ref-img { position: absolute; left: 6px; right: 6px; top: 19px; height: 98px; border-radius: 4px; overflow: hidden; }
.s14-ref-name { position: absolute; left: 0; right: 0; bottom: 3px; text-align: center; font: 700 13px var(--f-ui); letter-spacing: 0.03em; color: #2b2d33; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 4px; }
.s14-ref-zoom { position: absolute; right: 9px; top: 94px; width: 20px; height: 20px; border-radius: 4px; background: #2b2d33; color: #fff; display: grid; place-items: center; font-size: 12px; }
.s14-ctl { right: 124px !important; left: auto !important; top: calc(50px + env(safe-area-inset-top)) !important; }
.s14-ctl .ctl-btn { width: 40px; height: 40px; font-size: 18px; }
.dock { flex: none; position: relative; z-index: 6; background: #fdfaf2; border-radius: 18px 18px 0 0; box-shadow: 0 -2px 10px rgba(32, 35, 43, 0.08); padding: 11px 15.5px max(12px, calc(env(safe-area-inset-bottom) + 6px)); display: grid; gap: 0; }
.dock-tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; position: relative; }
.dock-tile { height: 62px; border: 1.5px solid #e2dfd7; border-radius: 10px; background: #fdfaf2; display: grid; justify-items: center; align-content: center; gap: 4px; padding: 0; color: #2b2d33; }
.dock-tile .dock-ico { font-size: 25px; line-height: 1; }
.dock-tile .dock-label { font: 700 10.5px var(--f-ui); letter-spacing: 0.02em; white-space: nowrap; }
.dock-tile.on { background: #dee9fe; border: 2px solid #2f5cf6; color: #2f5cf6; }
.dock-tile:disabled { opacity: 0.45; }
/* Corner badge inside the Brush tile (tile width = (100% - 3 gaps) / 4). */
.dock-more { position: absolute; left: calc((100% - 42px) / 4 - 24px); top: 4px; width: 20px; height: 20px; border-radius: 5px; border: 0; background: #2f5cf6; color: #fff; display: grid; place-items: center; font-size: 12px; padding: 0; box-shadow: 0 1px 3px rgba(32, 35, 43, 0.25); }
.dock-more::after { content: ''; position: absolute; inset: -11px; } /* 42 px touch target */
.dock-rule { height: 1px; background: #e6e2d8; margin: 12px 0 11px; }
.dock-row2 { display: flex; align-items: center; height: 34px; }
.dock-swatches { display: flex; gap: 9px; }
.dock-swatch { width: 27px; height: 27px; border-radius: 50%; border: 0; background: var(--c); padding: 0; position: relative; }
.dock-swatch::after { content: ''; position: absolute; inset: -8px; }
.dock-swatch[data-c='#fdfaf2'] { box-shadow: inset 0 0 0 1px #cfccc4; }
.dock-swatch.on { box-shadow: 0 0 0 2px #fdfaf2, 0 0 0 3.5px #2f5cf6; }
.dock-sep { width: 1px; height: 30px; background: #dcd8cf; margin: 0 11px 0 13px; }
.dock-palette { width: 43px; height: 34px; border-radius: 8px; border: 0; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14); display: grid; grid-template-columns: repeat(3, 8px); gap: 3px 3px; place-content: center; padding: 0; }
.dock-palette i { width: 8px; height: 8px; border-radius: 50%; }
.dock-sizebox { flex: 1; margin-left: 16px; display: grid; gap: 0; }
.dock-size-label { display: flex; justify-content: space-between; font: 600 10.5px var(--f-ui); color: #6b6d73; }
.dock-size-label span { font: 500 11px var(--f-body); color: #55575e; }
.dock-size { width: 100%; height: 22px; --fill: #2f5cf6; --track: #e1e3e8; }
.dock-size::-webkit-slider-thumb { width: 16px; height: 16px; margin-top: -5px; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35); }
.dock-size::-webkit-slider-runnable-track { height: 6px; background: linear-gradient(90deg, #2f5cf6 0 var(--pct, 50%), #e1e3e8 var(--pct, 50%)); }
.dock-submit { margin-top: 13px; height: 50px; border-radius: 14px; font-size: 22px; font-weight: 700; letter-spacing: 0.08em; gap: 18px; background: #fc6c5f; }
.dock-submit .ico { font-size: 26px; }
.s14-sheet-host { position: absolute; left: 0; right: 0; bottom: 0; top: 0; pointer-events: none; z-index: 7; }
.s14-sheet-host > * { pointer-events: auto; }
.tp-sheet { left: 0; right: 0; bottom: var(--dock-h, 0px); max-height: 62%; border-radius: 18px 18px 0 0; border-width: 2px 0 0; box-shadow: 0 -8px 30px rgba(32, 35, 43, 0.2); }
.s14.sheet-open .dock { box-shadow: none; }
.tp-sheet .tp-anchor-s06 { position: static; }
.tp-sheet .tp-head { padding: 10px 10px 8px; }
.tp-sheet .tp-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.tp-sheet .tp-tab { font-size: 15px; padding: 0 12px; }
.tp-sheet .tp-tiles { grid-template-columns: repeat(3, 1fr); }
.tp-sheet .tp-tiles-2 { grid-template-columns: repeat(2, 1fr); }
.tp-sheet .tp-palette { grid-template-columns: repeat(8, 1fr); gap: 4px; }
.tp-sheet .tp-sw { min-width: 36px; min-height: 36px; }
.tp-sheet .tp-custom { grid-template-columns: 1fr; }
.tp-sheet .tp-sv { width: 100%; height: 130px; }
.tp-sheet .tp-row { grid-template-columns: 86px 1fr 80px; }
.tp-sheet .tp-view { grid-template-columns: repeat(3, 1fr); }
.s14-pre { position: absolute; left: 0; right: 0; bottom: 0; top: calc(43px + env(safe-area-inset-top)); z-index: 8; background: #fdf8eb; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 16px; }
.s14-pre[hidden] { display: none; }
.s14-pre-card { width: min(88vw, 360px); border: 2.5px solid #20232b; border-radius: 12px; background: #fffcf5; overflow: hidden; }
.s14-pre-head { background: #fd6a5c; color: #fff; display: flex; align-items: center; gap: 12px; padding: 10px 14px; font: 700 18px var(--f-ui); letter-spacing: 0.04em; }
.s14-pre-img { height: min(52vh, 340px); position: relative; }
.s14-pre-name { font: 800 34px var(--f-ui); text-align: center; text-transform: uppercase; letter-spacing: 0.02em; padding: 6px 10px 0; }
.s14-pre-note { font: 600 13px var(--f-ui); color: #6b6d73; text-align: center; padding-bottom: 12px; letter-spacing: 0.04em; }
.s14-pre-count { display: flex; align-items: center; gap: 14px; font: 700 18px var(--f-ui); }
.s14-pre-count .num { font: 900 54px 'Segoe UI Black', 'Arial Black', sans-serif; color: #fd6a5c; line-height: 1; }
.s14-pre.loading .num { display: none; }

/* ---------------------------------------------------------------- S15 guesser */
.s15 { background: #fef8ed; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); display: flex; flex-direction: column; overflow-y: auto; }
.s15-head { position: relative; height: 69px; flex: none; border-bottom: 2px solid #20232b; margin: 0 6px; }
.s15-title { position: absolute; left: 4px; top: 10px; width: 218px; height: auto; }
.s15-timer { position: absolute; right: 25px; top: 23px; display: flex; align-items: center; gap: 9px; color: #20232b; }
.s15-timer .ico { font-size: 28px; }
.s15-timer .t { font: 700 32px var(--f-ui); font-stretch: 80%; color: #fd6259; }
.s15-timer.warn .t { animation: pulse 1s infinite; }
.s15-art { position: relative; margin: 13px 12.5px 0; aspect-ratio: 365 / 388; background: #fffefa; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18); flex: none;
  background-image: radial-gradient(circle, rgba(62, 108, 240, 0.8) 1.3px, transparent 1.6px), radial-gradient(circle, rgba(62, 108, 240, 0.8) 1.3px, transparent 1.6px);
  background-size: 5px 5px, 5px 5px; background-position: 0 0, 100% 100%; background-repeat: no-repeat; }
.s15-art .frozen { background: transparent; }
.s15-art .draw-cover { background: repeating-linear-gradient(135deg, #fffdf6 0 14px, #f7f1e4 14px 28px); }
.s15-art .cover-title { font-size: 24px; }
.s15-art .cover-sub { font-size: 16px; }
.s15-art .cover-pencil { font-size: 48px; }
.s15-by { position: absolute; right: 38px; bottom: 16px; font: 700 15px var(--f-hand); letter-spacing: 0.08em; transform: rotate(-8deg); color: #20232b; }
.s15-form { padding: 12px 15.5px 10px; display: grid; gap: 0; }
.s15-label { font: 800 16px var(--f-ui); letter-spacing: 0.02em; margin: 2px 0 7px; }
.s15-input { height: 39px; border: 2px solid #20232b; border-radius: 8px; background: #fffefb; padding: 0 12px; font: 400 18px var(--f-body); outline: none; }
.s15-input:focus { border-color: var(--cobalt); }
.s15-input:disabled { border-color: #bdbdc2; background: #f6f3ec; }
.s15-note { font: 600 13px var(--f-ui); color: var(--ink-2); min-height: 9px; margin: 3px 0 3px; }
.s15-note:empty { min-height: 6px; }
.s15-submit { height: 38px; min-height: 38px; border-radius: 14px; font: 700 18px 'Segoe UI', sans-serif; letter-spacing: 0.02em; background: #fd665b; }
.s15-hint { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; font: 400 15px var(--f-body); color: #3b3d44; }
.s15-hint .ico { font-size: 22px; color: #3a6ef0; }
.s15-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; }
.s15-ctl { right: 8px !important; left: auto !important; bottom: 8px !important; top: auto !important; position: fixed !important; }
.s15.kb .s15-art { aspect-ratio: auto; height: 38vh; }
.s15.kb .s15-hint, .s15.kb .s15-list { display: none; }

/* ---------------------------------------------------------------- reflowed phone screens */
.mobile-screen:not(.s14):not(.s15) { padding: calc(14px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; }
.mobile-screen:not(.s14):not(.s15) > * { flex-shrink: 0; }
.m-title, .m-wordmark, .m-headline, .m-hero, .m-tagline, .m-steps { width: 100%; height: auto; display: block; }
.m-wordmark { width: 78%; margin: 0 auto; }
/* The hero art is cut from the desktop mockup, whose headline overlaps its left 12%: trim it on phones. */
.m-hero { border-radius: 14px; aspect-ratio: 776 / 880; object-fit: cover; object-position: 100% 50%; }
.m-tagline { width: 90%; margin: 0 auto; }
.m-home-actions { display: grid; gap: 10px; }
.m-big { height: 56px; font-size: 24px; justify-content: space-between; padding: 0 18px; border-radius: 10px; }
.m-big .ico { font-size: 28px; }
.m-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.m-row2 .btn { font-size: 16px; border-width: 1.5px; }
.m-actions { display: flex; gap: 12px; justify-content: space-between; margin-top: 4px; }
.m-actions .btn { flex: 1; font-size: 22px; height: 56px; }
.m-modes { display: grid; gap: 12px; }
.m-modes .mode-card { position: relative; height: 240px; }
.m-modes .mode-card .mode-art { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); object-fit: contain; }
.m-card { border: 3px solid; border-radius: 12px; background: #fffcf5; padding: 12px 14px 16px; display: grid; gap: 8px; }
.m-card.coral { border-color: #fd584d; }
.m-card.cobalt { border-color: #2a5afd; }
.m-card-head { width: 80%; height: auto; margin: 0 auto 4px; display: block; }
.m-card form { display: grid; gap: 8px; }
.m-card .s03-label { font: 700 16px var(--f-ui); color: var(--graphite); }
.m-card .field { height: 52px; }
.m-card .field input { font-size: 18px; }
.m-card .field .field-ico { font-size: 26px; color: #8a8d96; }
.m-card .code-field .code-input { font-size: 24px; letter-spacing: 0.5em; padding-left: 8px; }
.m-card .code-slots { left: 60px; right: 26px; bottom: 12px; }
.m-card .code-slots i { width: 22px; }
.m-card .s03-btn { position: static; height: 54px; font-size: 26px; }
.m-card .s03-btn .txt { padding-left: 0; }
.m-s03 .s03-back { height: 52px; }
.m-s04-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.m-s04-top .m-wm { width: 46%; height: auto; flex: none; }
.m-s04 .s04-ctl { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; min-width: 0; }
.m-s04 .ctl-pill { font-size: 13px; padding: 0 10px; }
.m-lobby-title { width: 70%; height: auto; }
.m-codebox { border: 1.5px solid #2c2f37; border-radius: 10px; padding: 10px 12px; display: grid; gap: 8px; background: #fdfaf3; }
.m-codebox .cap { font: 600 13px var(--f-ui); letter-spacing: 0.1em; color: #7a7c83; }
.m-codebox .row { display: flex; align-items: center; gap: 12px; }
.m-codebox .s04-code { font-size: 46px; }
.m-codebox .s04-copy { width: 48px; height: 48px; font-size: 24px; }
.m-codebox .s04-invite { height: 50px; font-size: 20px; }
.m-s04 .s04-roster { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; grid-auto-rows: 118px; }
.m-s04 .s04-card { position: relative; }
.m-s04 .s04-av { position: absolute; left: 6px; top: 6px; width: 64px; height: 64px; border-radius: 6px; }
.m-s04 .avatar.monogram span { font-size: 36px; }
.m-s04 .s04-name { position: absolute; left: 78px; right: 6px; top: 10px; display: flex; flex-direction: column; gap: 2px; }
.m-s04 .s04-name .nm { font-size: 18px; max-width: 100%; }
.m-s04 .s04-name .host, .m-s04 .s04-name .you { font-size: 14px; }
.m-s04 .s04-ready { position: absolute; left: 6px; right: 6px; bottom: 6px; height: 36px; font-size: 15px; }
.m-s04 .s04-ready .ico { font-size: 20px; }
.m-s04 .s04-panel { position: relative; height: 270px; }
.m-s04 .s04-panel-title { font-size: 20px; }
.m-s04 .s04-setrow { grid-template-columns: 84px minmax(0, 1fr); padding-left: 10px; }
.m-s04 .s04-setwrap { min-width: 0; }
.m-s04 .set-btn { width: 100%; min-width: 0; gap: 8px; font-size: 15px; padding: 0 8px; }
.m-s04 .set-btn .set-ico { font-size: 20px; }
.m-s04 .set-btn .set-chev { font-size: 18px; }
.m-s04 .s04-setlabel { font-size: 14px; }
.m-s04 .set-btn { font-size: 16px; }
.m-s04 .set-pop { width: min(86vw, 340px); right: 0; }
.m-s04 .s04-status { height: 60px; font-size: 18px; padding-left: 16px; gap: 12px; }
.m-s04 .s04-status-ico { font-size: 34px; }
.m-s04 .s04-start { height: 62px; font-size: 26px; }
.m-s08 .s08-round { font-size: 16px; }
.m-rr { margin: 0; font: 700 34px var(--f-brush); text-align: center; }
.m-s08 .s08-head { position: relative; height: 96px; }
.m-s08 .s08-head .swash { height: 96px; }
.m-s08 .s08-head .txt { top: 12px; height: 64px; left: 18px; right: 10px; font-size: 30px; }
.m-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; height: 250px; }
.m-pair > * { position: relative; }
.m-s08 .s08-refname { height: 44px; font-size: 20px; }
.m-s08 .s08-refimg { bottom: 44px; }
.m-s08 .s08-next { position: relative; }
.m-s08 .s08-next .txt { font-size: 26px; line-height: 32px; }
.m-s08 .s08-next .ul { margin: -2px auto 0; display: block; width: 110px; height: 22px; }
.m-s08 .s08-chips { height: 70px; gap: 10px; }
.m-s08 .s08-chip { gap: 8px; padding: 0 8px; }
.m-s08 .s08-chip .n { font-size: 20px; max-width: none; flex: 0 1 auto; min-width: 0; }
.m-s08 .s08-chip .p { flex: none; }
.m-s08 .s08-chip .p { font-size: 40px; }
.m-s08 .next-pill, .m-s11 .next-pill { height: 60px; font-size: 22px; }
.m-s10-title { font: 800 26px var(--f-ui); text-align: center; letter-spacing: 0.04em; }
.m-s10-ref { display: grid; justify-items: center; gap: 4px; }
.m-s10-ref .s10-ref, .m-s11-ref .s11-ref { position: relative; width: 120px; height: 120px; }
.m-s10 .s10-q { font: 800 18px 'Segoe UI', sans-serif; text-align: center; }
.m-s10 .s10-timer { font-size: 36px; }
.m-s10-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.m-s10-cards > div { display: grid; gap: 8px; }
.m-s10 .s10-card { position: relative; aspect-ratio: 8 / 7; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15); }
.m-s10 .s10-vote { height: 52px; font-size: 22px; }
.m-s10 .s10-status { font-size: 15px; }
.m-s11-ref { display: flex; align-items: center; gap: 12px; }
.m-s11 .s11-head { height: 64px; font-size: 26px; }
.m-s11-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; height: 250px; }
.m-s11-cards .s11-card { position: relative; }
.m-s11 .s11-name { font-size: 20px; height: 32px; }
.m-s11 .s11-card .s11-img { bottom: 40px; }
.m-s11 .s11-card.win .s11-img { top: 34px; }
.m-s11 .winner-badge { width: 150px; height: 28px; }
.m-s11-tallies { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; height: 130px; }
.m-s11 .s11-tally .num { font-size: 56px; }
.m-s11 .s11-tally .nm { font-size: 18px; }
.m-s11 .s11-tally .cap { font-size: 14px; }
.m-s11 .s11-delta { height: 90px; }
.m-s11 .s11-delta .d b, .m-s11 .s11-delta .d em { font-size: 34px; }
.m-s112-hero { display: grid; justify-items: center; gap: 0; }
.m-s112-hero .s112-hero { position: relative; width: 160px; height: 160px; }
.m-s112-hero .s112-heroname { position: relative; width: 220px; height: 50px; margin-top: -10px; }
.m-s112-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.m-s112-pair > div { display: grid; gap: 4px; justify-items: center; }
.m-s112-pair .s112-frame { position: relative; width: 100%; aspect-ratio: 8 / 7; }
.m-s112-pair .s112-name { position: relative; width: 130px; height: 40px; }
.m-s112-pair .s112-name .txt { font-size: 22px; }
.m-unscored { text-align: center; font: 700 26px var(--f-brush); color: #fff; background: #fd6a5c; border-radius: 10px; padding: 8px; display: grid; }
.m-unscored small { font: 600 13px var(--f-ui); letter-spacing: 0.1em; color: #fff; }
.m-s112 .s112-back, .m-s12 .s12-back { position: static; height: 60px; font-size: 26px; }
.m-final { margin: 0; text-align: center; font: 700 40px var(--f-brush); }
.m-final span { color: #fd5a4e; }
.m-s12 .s12-mode { position: relative; height: 64px; }
.m-s12 .s12-mode .txt { font-size: 30px; }
.m-s12 .s12-rows { padding-top: 24px; }
.m-s12 .s12-rows .s12-row { height: 64px; grid-template-columns: 70px 1fr 70px; }
.m-s12 .s12-rows .s12-row.top { height: 72px; }
.m-s12 .s12-rank { height: 54px; }
.m-s12 .s12-rank .blot { width: 50px; height: 48px; left: 12px; }
.m-s12 .s12-rank b, .m-s12 .s12-name { font-size: 28px; }
.m-s12 .s12-score, .m-s12 .s12-row.top .s12-score { font-size: 38px; }
.m-s12 .s12-crown { left: 36px; top: -30px; width: 50px; height: 40px; }
.m-s12 .s12-rows.size-s { grid-template-columns: 1fr; }
.m-ctl { position: fixed !important; right: 10px !important; left: auto !important; top: 10px !important; }
.m-s13 .m-rows { display: grid; gap: 8px; }
.m-s13 .s13-row { height: 60px; grid-template-columns: 64px 1fr 48px; }
.m-s13 .s13-ico { font-size: 34px; }
.m-s13 .s13-row-title { font-size: 22px; }
.m-s13 .s13-detail { position: relative; padding: 18px; }
.m-s13 .s13-detail ul { font-size: 16px; }
.m-s13 .s13-detail h2 { font-size: 24px; }
.m-s13 .s13-back { height: 54px; }
/* Forms use native-coordinate absolute layout on desktop stages only. */
.mobile-screen form.flowless { position: static; width: auto; height: auto; display: grid; gap: 8px; }
.mobile-screen form.flowless > * { position: static; }
.mobile-screen .s03-offline { position: static; }
.m-card { min-width: 0; }
.m-card .field, .m-card .s03-btn { width: 100%; min-width: 0; }
.m-card .field input { width: 100%; }
/* Phones: the HUD sits clear of Submit rows (top-left under the S14 strip, bottom-right elsewhere). */
.mobile-screen:not(.s14) { padding-bottom: calc(76px + env(safe-area-inset-bottom)) !important; }
.hud.mobile .hud-btn { width: 40px; height: 40px; font-size: 18px; }
.hud.on-S14 { top: calc(50px + env(safe-area-inset-top)); left: 8px; right: auto; bottom: auto; flex-direction: column; }
.hud.mobile ~ .sound-pop, .hud.on-S14 ~ .sound-pop { right: 8px; bottom: 60px; }
.hud-menu { max-width: calc(100vw - 20px); }
.hud.mobile.mid.on-PRACTICE { top: calc(100px + env(safe-area-inset-top)); left: 8px; right: auto; bottom: auto; flex-direction: column; }
.m-s04 .s04-name .nm { min-height: 2.1em; }
.s14-ref-name { height: 24px; bottom: 1px; display: flex; align-items: center; justify-content: center; }

/* Phone score line: wrap rather than cut names off. */
.m-s08 .s08-score { white-space: normal; text-overflow: clip; overflow: visible; line-height: 1.35; padding: 0 4px; }
