/* iPhone app shell. All overrides are deliberately native-only. */
html.native-ios {
  height:100%; background:#f3eddf; -webkit-text-size-adjust:100%;
  overscroll-behavior:none; --native-header-height:58px; --native-tabs-height:62px;
}
.native-ios body {
  position:fixed; inset:0; width:100%; height:100%; margin:0; overflow:hidden;
  overscroll-behavior:none; -webkit-tap-highlight-color:transparent;
}
.native-ios *, .native-ios *::before, .native-ios *::after {box-sizing:border-box}
.native-ios * {scrollbar-width:none}
.native-ios *::-webkit-scrollbar {display:none; width:0; height:0}
.native-ios .app {
  position:fixed; inset:0; width:100%; max-width:none; height:100%; margin:0; padding:0;
  display:grid; grid-template-rows:calc(var(--native-header-height) + env(safe-area-inset-top)) minmax(0,1fr) calc(var(--native-tabs-height) + env(safe-area-inset-bottom));
  background:var(--paper); box-shadow:none; overflow:hidden;
}
.native-ios .topbar {
  position:relative; z-index:3; height:auto; min-height:0;
  padding:calc(env(safe-area-inset-top) + 7px) max(18px,env(safe-area-inset-right)) 7px max(18px,env(safe-area-inset-left));
  border-bottom:1px solid var(--line); background:var(--paper); gap:12px;
}
.native-ios .brand {font-size:31px; letter-spacing:-2.5px; gap:10px; align-items:center; min-height:44px; flex-shrink:0}
.native-ios .brand span {font-size:7px; letter-spacing:2px; line-height:1.45; max-width:78px}
.native-ios .wallet {min-height:39px; padding:5px 12px 5px 7px; gap:7px; font-size:15px; border-radius:24px; background:var(--card)}
.native-ios .wallet .coin {width:25px; height:25px; font-size:16px}
.native-ios .wallet b {font-variant-numeric:tabular-nums}
.native-ios #main {
  min-height:0; min-width:0; width:100%; overflow-y:auto; overflow-x:hidden;
  padding:16px max(17px,env(safe-area-inset-right)) 20px max(17px,env(safe-area-inset-left));
  -webkit-overflow-scrolling:touch; overscroll-behavior-y:contain; scroll-padding:14px; isolation:isolate;
}
/* Dialog focus restoration may focus main. It is a landmark, not a control. */
.native-ios #main:focus, .native-ios #main:focus-visible {outline:none; box-shadow:none}
.native-ios :is(button,a,input,select,textarea,summary):focus-visible {outline:2px solid var(--wine); outline-offset:3px}
.native-ios :is(button,a) {touch-action:manipulation; -webkit-touch-callout:none}
.native-ios button {transition:transform 110ms ease,background-color 160ms ease,box-shadow 160ms ease}
.native-ios :is(button,a).native-pressed:not(:disabled) {transform:scale(.97)}
.native-ios .bottomnav {
  position:relative; inset:auto; left:auto; bottom:auto; transform:none; width:100%; max-width:none;
  display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); min-width:0; z-index:3;
  padding:5px max(6px,env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left));
  background:var(--appearance-nav,var(--card)); border-top:1px solid var(--line); gap:2px; box-shadow:0 -5px 20px #30282404;
}
.native-ios .bottomnav button {min-width:0; min-height:50px; margin:0; padding:5px 1px 4px; border-radius:16px; font-size:10px; line-height:1.3; white-space:nowrap; color:var(--muted)}
.native-ios .bottomnav button>span {font-size:22px; height:26px; line-height:25px; margin:0 0 2px}
.native-ios .bottomnav button.active {color:var(--wine); background:var(--line); font-weight:750}
.native-ios .bottomnav button.active>span {transform:translateY(-1px)}
.native-ios h1 {font-size:27px; line-height:1.12; letter-spacing:-.9px; margin:7px 0 10px; overflow-wrap:anywhere}
.native-ios h2 {font-size:20px; line-height:1.2; letter-spacing:-.5px}
.native-ios h3 {font-size:15px; line-height:1.25}
.native-ios p {font-size:13px; line-height:1.5}
.native-ios .eyebrow {font-size:9px; letter-spacing:1.6px; line-height:1.5}
.native-ios .small {font-size:11px; line-height:1.45}
.native-ios .pagehead {margin:0 0 18px}
.native-ios .pagehead>p {margin:0; max-width:44ch; font-size:12px; line-height:1.5}
.native-ios .pagehead>.eyebrow {display:none}
.native-ios .section-title {margin:21px 0 11px; gap:10px}
.native-ios .section-title h2 {margin:0; font-size:19px}
.native-ios .section-title>span {font-size:11px; white-space:nowrap}
.native-ios .panel {padding:17px; border-radius:20px; margin-bottom:13px; min-width:0}
.native-ios .primary, .native-ios .secondary {min-height:46px; padding:12px 14px; border-radius:15px; font-size:13px; line-height:1.3}
.native-ios .iconbutton {min-width:44px; min-height:44px}
.native-ios .linkbutton {min-height:44px; font-size:12px}
.native-ios .two {gap:9px; min-width:0}
.native-ios .two>* {min-width:0}
.native-ios .segmented {padding:4px; margin:14px 0; border-radius:15px; gap:3px}
.native-ios .segmented button {min-width:0; min-height:40px; padding:9px 5px; font-size:12px; border-radius:12px}
.native-ios input, .native-ios select, .native-ios textarea {font-size:16px; min-height:46px; max-width:100%}
.native-ios .field {font-size:12px}
.native-ios .field input, .native-ios .field select {margin-top:7px}
.native-ios .hero {padding:21px; border-radius:24px; overflow:hidden}
.native-ios .hero h1 {font-size:28px; max-width:285px; margin:10px 0}
.native-ios .hero p {font-size:12px; line-height:1.5; margin:9px 0 16px}
.native-ios .hero .eyebrow {font-size:8px; letter-spacing:1.3px}
.native-ios .hero-mark {font-size:113px; right:-9px; top:19px; opacity:.13}
.native-ios .hero .primary {min-height:46px}
.native-ios .hero .starter-notice {font-size:10px; line-height:1.45; margin:11px 0 0}
.native-ios .strip {padding:13px 15px; margin:12px 0; border-radius:18px; gap:12px}
.native-ios .strip>span {font-size:26px}
.native-ios .strip strong {font-size:13px}
.native-ios .strip small {font-size:10px; line-height:1.45; margin-top:4px}
.native-ios .mode-grid {gap:10px}
.native-ios .mode-card {min-height:125px; padding:15px 13px; border-radius:20px}
.native-ios .mode-icon {font-size:26px; margin-bottom:12px; line-height:1}
.native-ios .mode-card h3 {font-size:15px; margin:8px 0 5px}
.native-ios .mode-card small {font-size:10px; line-height:1.4}
.native-ios .mode-card .arrow {top:15px; right:13px; font-size:16px; opacity:.65}
.native-ios .mode-card:last-child:nth-child(odd) {min-height:95px}
.native-ios .mode-card:last-child:nth-child(odd) .mode-icon {margin-bottom:0}
.native-ios .footnote {font-size:10px; line-height:1.55; margin:20px 0 9px}
.native-ios .help-footer {min-height:40px; font-size:11px; margin:10px auto 0; padding:10px 14px; text-underline-offset:4px}
.native-ios .board-row {padding:14px 0; gap:9px; grid-template-columns:25px minmax(0,1fr) auto}
.native-ios .board-row strong {font-size:13px; overflow-wrap:anywhere}
.native-ios .board-row small {font-size:10px; line-height:1.5}
.native-ios .board-row .metric {font-size:11px; white-space:nowrap}
.native-ios .empty {padding:25px 8px; font-size:12px; line-height:1.6}
.native-ios .empty>span {font-size:30px; margin-bottom:10px}
/* Profile becomes an identity card, followed by achievements and activity. */
.native-ios [data-native-page="profile"] #main>.pagehead {
  display:grid; grid-template-columns:56px minmax(0,1fr); align-items:center; column-gap:13px; row-gap:3px;
  padding:17px; background:var(--card); border:1px solid var(--line); border-radius:24px; margin:0 0 19px;
}
.native-ios [data-native-page="profile"] .profile-avatar {grid-column:1; grid-row:1/4; width:56px; height:56px; font-size:25px; border-radius:19px; margin:0}
.native-ios [data-native-page="profile"] .pagehead>.eyebrow {display:block; grid-column:2; grid-row:1; font-size:8px; letter-spacing:1.1px}
.native-ios [data-native-page="profile"] .pagehead>h1 {grid-column:2; grid-row:2; font-size:24px; margin:0; line-height:1.15; letter-spacing:-.7px}
.native-ios [data-native-page="profile"] .pagehead>p {grid-column:2; grid-row:3; font-size:11px; overflow-wrap:anywhere}
.native-ios [data-native-page="profile"] .pagehead>.xp {grid-column:1/-1; height:5px; margin:17px 0 4px}
.native-ios [data-native-page="profile"] .pagehead>.small {grid-column:1/-1; font-size:10px}
.native-ios [data-native-page="profile"] .stats {grid-column:1/-1; margin:17px 0 16px; padding:14px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); gap:6px}
.native-ios [data-native-page="profile"] .stats b {font-size:23px; line-height:1.1}
.native-ios [data-native-page="profile"] .stats small {font-size:8px; letter-spacing:.3px; margin-top:5px}
.native-ios [data-native-page="profile"] .pagehead>.two, .native-ios [data-native-page="profile"] .pagehead>.linkbutton {grid-column:1/-1}
.native-ios [data-native-page="profile"] .pagehead>.linkbutton {font-size:10px; margin:0}
.native-ios [data-native-page="profile"] .pagehead .secondary {font-size:11px; padding:10px 8px}
.native-ios .badge-grid {gap:8px}
.native-ios .badge {min-width:0; min-height:91px; padding:13px 5px 12px; border-radius:19px; font-size:9px; line-height:1.4}
.native-ios .badge>span {font-size:24px; margin-bottom:7px}
.native-ios .badge b {display:block; font-size:10px; overflow-wrap:anywhere}
.native-ios .history-item {padding:13px 0; gap:12px; font-size:12px}
.native-ios .history-item>div {min-width:0}
.native-ios .history-item b {font-size:12px}
.native-ios .history-item small {font-size:10px; line-height:1.4}
.native-ios .history-item .linkbutton {min-height:34px; padding:7px 0 0; font-size:10px}
/* Collection: equipped style is visible immediately; the wallet is already in the bar. */
.native-ios [data-native-page="shop"] .pagehead {margin-bottom:7px}
.native-ios [data-native-page="shop"] .pagehead>p {font-size:11px; max-width:40ch}
.native-ios [data-native-page="shop"] #main>.row.between.panel {padding:0; margin:0 0 10px; border:0; background:none; justify-content:flex-end}
.native-ios [data-native-page="shop"] #main>.row.between.panel>div {display:none}
.native-ios [data-native-page="shop"] #earn-info {min-height:36px; padding:8px 2px; font-size:11px; border:0; background:none; color:var(--wine)}
.native-ios .appearance-current {display:grid; grid-template-columns:minmax(115px,.85fr) minmax(0,1fr); border-radius:21px; margin-bottom:17px; min-height:117px}
.native-ios .appearance-current-scene {height:100%; min-height:117px; gap:0}
.native-ios .appearance-current-scene .appearance-cup {flex-basis:72px; margin:0 -6px}
.native-ios .appearance-current-scene .appearance-avatar {top:10px; left:10px; width:23px; height:23px; font-size:12px; border-radius:8px}
.native-ios .appearance-scene-label {font-size:7px; letter-spacing:1.1px; bottom:10px}
.native-ios .appearance-current-copy {padding:16px 12px; align-self:center; min-width:0}
.native-ios .appearance-current-copy strong {font-size:12px; line-height:1.35; margin-bottom:5px}
.native-ios .appearance-current-copy span {font-size:10px; line-height:1.45}
.native-ios .appearance-current-copy small {display:none}
.native-ios .shop-grid {gap:10px; align-items:start}
.native-ios .shop-item {padding:11px; border-radius:20px; min-width:0}
.native-ios .appearance-preview {height:103px; border-radius:13px; margin-bottom:10px}
.native-ios .appearance-cup {flex-basis:99px}
.native-ios .appearance-preview-table .appearance-cup {flex-basis:47px}
.native-ios .shop-item>small {font-size:9px; line-height:1.3}
.native-ios .shop-item h3 {min-height:34px; font-size:13px; margin:5px 0 6px; line-height:1.3; overflow-wrap:anywhere}
.native-ios .appearance-purpose {min-height:41px; font-size:10px!important; line-height:1.4!important; margin:0 0 9px!important}
.native-ios .shop-item .secondary {width:100%; min-height:43px; padding:10px 5px; font-size:10px; border-radius:13px}
.native-ios .shop-item>.linkbutton {font-size:9px; padding:7px 0; min-height:32px}
/* Native sheets sit above the keyboard and scroll independently of the page. */
.native-ios dialog {
  position:fixed; inset:auto 0 var(--native-keyboard-inset,0px); width:100%; max-width:640px;
  max-height:calc(var(--native-viewport-height,100dvh) - env(safe-area-inset-top) - 12px);
  margin:0 auto; padding:21px max(20px,env(safe-area-inset-right)) calc(19px + env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));
  overflow:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch;
  border:1px solid #ffffff55; border-bottom:0; border-radius:29px 29px 0 0; background:var(--paper);
  box-shadow:0 -15px 70px #20120d24; scroll-padding:18px;
}
.native-ios dialog::before {content:""; display:block; width:34px; height:4px; margin:-11px auto 15px; border-radius:5px; background:var(--muted); opacity:.3}
.native-ios dialog[open] {animation:native-sheet-in 220ms cubic-bezier(.2,.75,.25,1)}
.native-ios dialog::backdrop {background:#20171375; -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px)}
.native-ios #sheet-content {min-width:0}
.native-ios dialog .close-sheet {position:sticky; top:0; float:right; margin:-2px -3px 4px 10px; width:37px; min-width:37px; height:37px; min-height:37px; font-size:23px; z-index:3; border-radius:50%; background:var(--line); box-shadow:0 2px 5px #30282405}
.native-ios dialog h2 {font-size:23px; letter-spacing:-.7px; margin:12px 0}
.native-ios dialog p {font-size:13px; line-height:1.55}
.native-ios dialog .dialog-icon {font-size:37px; margin:5px 0 12px}
.native-ios dialog .dialog-actions {gap:9px; margin-top:20px}
.native-ios dialog .notice {padding:13px; font-size:11px; border-radius:15px; line-height:1.5}
.native-ios dialog .code {font-size:18px; overflow-wrap:anywhere; padding:16px}
.native-ios dialog .help-rule h3 {font-size:18px}
.native-ios dialog .help-rule li {font-size:13px}
.native-ios dialog .lot-card {padding:12px; border-radius:15px}
.native-ios .native-keyboard-open dialog {padding-bottom:17px}
.native-ios #toast {bottom:calc(var(--native-tabs-height) + env(safe-area-inset-bottom) + 13px); padding:13px 18px; border-radius:18px; font-size:12px; line-height:1.45; max-width:calc(100% - 38px); z-index:100}
.native-ios .native-keyboard-open #toast {bottom:calc(var(--native-keyboard-inset,0px) + 14px)}
.native-ios .game-screen {padding-top:env(safe-area-inset-top); padding-bottom:env(safe-area-inset-bottom)}
@keyframes native-sheet-in {from {transform:translateY(36px); opacity:0} to {transform:translateY(0); opacity:1}}
@media(max-width:360px) {
  .native-ios #main {padding-right:13px; padding-left:13px}
  .native-ios .bottomnav button {font-size:9px}
  .native-ios .hero {padding:18px}
  .native-ios .hero h1 {font-size:25px}
  .native-ios .mode-card {padding:13px 11px}
  .native-ios .appearance-current {grid-template-columns:minmax(105px,.8fr) minmax(0,1fr)}
  .native-ios [data-native-page="profile"] .pagehead>h1 {font-size:21px}
  .native-ios .shop-item {padding:9px}
}
@media(orientation:landscape) and (max-height:520px) {
  html.native-ios {--native-header-height:49px; --native-tabs-height:54px}
  .native-ios .topbar {padding-top:calc(env(safe-area-inset-top) + 2px); padding-bottom:2px}
  .native-ios .bottomnav {padding-top:2px; padding-bottom:calc(2px + env(safe-area-inset-bottom))}
  .native-ios .bottomnav button {min-height:46px}
  .native-ios .bottomnav button>span {height:21px; line-height:21px; font-size:19px}
  .native-ios #main {padding-top:12px}
  .native-ios .mode-grid {grid-template-columns:repeat(3,minmax(0,1fr))}
  .native-ios .mode-card:last-child:nth-child(odd) {grid-column:auto; min-height:125px}
}
@media(prefers-reduced-motion:reduce) {
  .native-ios *, .native-ios *::before, .native-ios *::after {animation:none!important; transition:none!important; scroll-behavior:auto!important}
  .native-ios :is(button,a).native-pressed:not(:disabled) {transform:none}
}
/* Compact native screen markup from screens.js. */
.native-ios .native-play-heading {display:flex; flex-direction:column; gap:3px; margin:0 0 17px}
.native-ios .native-play-heading .eyebrow {font-size:8px; color:var(--muted); letter-spacing:1.7px}
.native-ios .native-play-heading h1 {font-size:27px; margin:0; letter-spacing:-.8px}
.native-ios .native-featured-modes {display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px; margin-top:15px}
.native-ios .native-mode-card {display:flex; flex-direction:column; min-width:0; min-height:0; padding:15px; overflow:hidden; position:relative; text-align:left; border-radius:23px}
.native-ios .native-mode-card .native-mode-cups {display:flex; align-items:center; justify-content:center; gap:0; width:100%; height:84px; margin:0 0 6px; flex-shrink:0}
.native-ios .native-mode-cups .appearance-cup {flex:0 1 78px; min-width:0; margin:0 -8px}
.native-ios .native-mode-cups .cup-svg {max-height:94px}
.native-ios .native-mode-copy {position:relative; z-index:1; min-width:0}
.native-ios .native-mode-copy>small {display:block; font-size:8px; line-height:1.4; letter-spacing:1px; text-transform:uppercase; color:var(--muted)}
.native-ios .native-mode-copy>h2 {font-size:18px; margin:6px 0; line-height:1.13; letter-spacing:-.4px; overflow-wrap:anywhere}
.native-ios .native-mode-copy>p {font-size:10px; line-height:1.5; margin:0; color:var(--muted)}
.native-ios .native-mode-card>.arrow {top:13px; right:14px; font-size:17px}
.native-ios .native-mode-card[data-mode="triangle"] {grid-column:1/-1; display:grid; grid-template-columns:104px minmax(0,1fr); align-items:center; min-height:142px; padding:17px 22px 17px 11px; background:var(--wine); color:var(--card); border-color:var(--wine)}
.native-ios .native-mode-card[data-mode="triangle"] .native-mode-cups {height:100px; margin:0; width:104px}
.native-ios .native-mode-card[data-mode="triangle"] .appearance-cup {flex-basis:79px; margin:0 -21px}
.native-ios .native-mode-card[data-mode="triangle"] .native-mode-copy>h2 {font-size:23px; letter-spacing:-.7px}
.native-ios .native-mode-card[data-mode="triangle"] .native-mode-copy>small {color:var(--lime)}
.native-ios .native-mode-card[data-mode="triangle"] .native-mode-copy>p {color:var(--card); opacity:.78}
.native-ios .native-more-modes {display:grid; gap:8px}
.native-ios .native-mode-row {display:grid; grid-template-columns:40px minmax(0,1fr) 18px; align-items:center; gap:12px; text-align:left; width:100%; min-height:69px; padding:12px 14px; border:1px solid var(--line); background:var(--card); color:var(--ink); border-radius:18px}
.native-ios .native-mode-icon {display:grid; place-items:center; width:39px; height:39px; font-size:23px; border-radius:13px; background:var(--paper); color:var(--wine)}
.native-ios .native-mode-row-copy {min-width:0}
.native-ios .native-mode-row-copy>strong {display:block; font-size:13px; line-height:1.3; margin-bottom:4px}
.native-ios .native-mode-row-copy>small {display:block; font-size:10px; line-height:1.4; color:var(--muted)}
.native-ios .native-mode-row>.arrow {font-size:17px; color:var(--wine); opacity:.65}
.native-ios .native-shop>.pagehead {margin-bottom:6px}
.native-ios .native-shop>.pagehead h1 {font-size:25px}
.native-ios .native-shop-balance.row.between.panel {padding:0; margin:0 0 10px; border:0; background:none; justify-content:flex-end}
.native-ios .native-shop-balance>div {display:none}
.native-ios .native-shop-tabs {position:sticky; top:-16px; z-index:2; display:flex; gap:7px; overflow-x:auto; margin:0 -17px 13px; padding:9px 17px; background:var(--paper); -webkit-overflow-scrolling:touch}
.native-ios .native-shop-tabs>button {flex-shrink:0; min-height:42px; padding:9px 14px; background:var(--card); color:var(--muted); border:1px solid var(--line); border-radius:15px; font-size:11px; white-space:nowrap}
.native-ios .native-shop-tabs>button[aria-pressed="true"] {background:var(--wine); border-color:var(--wine); color:var(--card); font-weight:700}
.native-ios .native-profile-header {display:grid; grid-template-columns:56px minmax(0,1fr) 38px; gap:12px; align-items:center; margin:2px 0 18px}
.native-ios .native-profile-header .profile-avatar {width:56px; height:56px; border-radius:19px; font-size:25px; margin:0}
.native-ios .native-profile-identity {min-width:0}
.native-ios .native-profile-identity .eyebrow {display:block; font-size:8px; letter-spacing:1px; margin-bottom:4px}
.native-ios .native-profile-identity .native-profile-name {font-size:24px; margin:0 0 4px; line-height:1.12; letter-spacing:-.7px; overflow-wrap:anywhere}
.native-ios .native-profile-identity>p {font-size:11px; margin:0; color:var(--muted); overflow-wrap:anywhere}
.native-ios .native-profile-header #native-settings {justify-self:end; width:38px; min-width:38px; height:44px; background:transparent; border:0; color:var(--wine); font-size:22px}
.native-ios .native-xp.xp {height:5px; margin:0 0 6px}
.native-ios .native-xp+.small {display:block; font-size:10px}
.native-ios .native-profile-stats.stats {margin:17px 0 13px; padding:16px 6px; border:1px solid var(--line); border-radius:20px; background:var(--card)}
.native-ios .native-profile-stats.stats b {font-size:24px}
.native-ios .native-profile-stats.stats small {font-size:8px; letter-spacing:.3px}
.native-ios .native-profile-actions {margin:0 0 7px}
.native-ios .native-profile-actions .secondary {font-size:11px; padding-right:8px; padding-left:8px}
.native-ios .native-profile .section-title {margin-top:22px}
.native-ios .native-profile .native-history {margin-bottom:16px}
@media(max-width:360px) {
  .native-ios .native-mode-card {padding:13px 11px}
  .native-ios .native-mode-card[data-mode="triangle"] {grid-template-columns:90px minmax(0,1fr); padding-right:15px; padding-left:5px; min-height:138px}
  .native-ios .native-mode-card[data-mode="triangle"] .native-mode-cups {width:90px}
  .native-ios .native-mode-card[data-mode="triangle"] .native-mode-copy>h2 {font-size:21px}
  .native-ios .native-mode-copy>h2 {font-size:16px}
  .native-ios .native-profile-header {grid-template-columns:50px minmax(0,1fr) 35px; gap:10px}
  .native-ios .native-profile-header .profile-avatar {width:50px; height:50px}
  .native-ios .native-profile-identity .native-profile-name {font-size:21px}
  .native-ios .native-shop-tabs {margin-right:-13px; margin-left:-13px; padding-right:13px; padding-left:13px}
}
.native-ios .native-featured-modes>.native-mode-card:not([data-mode="triangle"]) {grid-column:auto; min-height:192px}
.native-ios .native-shop-balance>span {display:none}
.native-ios .native-xp-label {margin:0 0 14px!important; font-size:10px!important}
.native-ios .native-history-result {text-align:right; flex-shrink:0; max-width:53%}
.native-ios .native-profile-header {grid-template-columns:56px minmax(0,1fr) 44px}
.native-ios .native-profile-header #native-settings {min-width:44px; width:44px}
.native-ios .native-shop-tabs>button {min-height:44px}
.native-ios [data-native-page="shop"] #earn-info {min-height:44px}
.native-ios :is(.native-resume,.native-daily,.native-challenge) {display:grid; grid-template-columns:28px minmax(0,1fr) auto; width:100%; text-align:left}
.native-ios :is(.native-resume,.native-daily,.native-challenge)>span:nth-child(2) {font-size:13px; min-width:0}
.native-ios :is(.native-resume,.native-daily,.native-challenge) .arrow {font-size:17px; color:var(--wine); opacity:.65}
@media(max-width:360px) {
  .native-ios .native-profile-header {grid-template-columns:50px minmax(0,1fr) 44px}
}

.native-ios .native-settings-list {display:grid;gap:8px;margin:18px 0}
.native-ios .native-settings-list .secondary {justify-content:space-between;font-size:13px}
.native-ios .native-settings-list .secondary b {font-size:12px;color:var(--wine)}
.native-ios .native-result-wallet {display:flex;align-items:center;gap:5px;font-size:13px;font-weight:750;white-space:nowrap;margin-left:auto}
.native-ios .native-result-wallet .coin {width:21px;height:21px;font-size:12px}
.native-ios .result-score {font-size:38px;line-height:1.15;letter-spacing:-1px}
.native-ios .result-details {margin:12px 0;gap:8px}
.native-ios .result-details>div {padding:12px}
.native-ios .result-details b {font-size:18px;font-variant-numeric:tabular-nums}

/* Decorative feedback only: cup buttons and grid cells never move or resize. */
.native-ios .ktb-motion-layer{position:fixed;inset:0;z-index:120;pointer-events:none;overflow:hidden;contain:strict;border:0;margin:0;padding:0;width:100vw;height:100dvh;background:transparent}
.native-ios .cup-face>svg{transition:transform 80ms ease-out}
.native-ios .cup-button.ktb-pressed .cup-face>svg{transform:scale(.975)}
.native-ios .ktb-cup-arrive .cup-face>svg{animation:ktb-cup-arrive 240ms ease-out both;animation-delay:var(--ktb-stagger,0ms)}
.native-ios .ktb-cup-arrive .cup-index{animation:ktb-label-arrive 240ms ease-out both;animation-delay:var(--ktb-stagger,0ms)}
.native-ios .ktb-cup-select .cup-index{animation:ktb-selection-confirm 140ms ease-out}
.native-ios .matched .cup-button{filter:none}
.native-ios .ktb-cup-match .cup-face>svg{animation:ktb-match 260ms ease-out}
.native-ios .ktb-cup-match .cup-button::before{border-color:#719c43;background:#719c431a;animation:ktb-match-ring 300ms ease-out}
.native-ios .ktb-cup-match .cup-index{animation:ktb-index-match 300ms ease-out}
.native-ios .ktb-cup-miss .cup-face>svg{animation:ktb-miss 220ms ease-out}
.native-ios .ktb-game-result .dialog-icon{animation:ktb-result-star 600ms cubic-bezier(.18,.7,.2,1)}
.native-ios .ktb-game-result .result-score{animation:ktb-result-score 450ms cubic-bezier(.18,.7,.2,1)}
.native-ios .ktb-game-result .reward{animation:ktb-reward-row 480ms ease-out both}
.native-ios .ktb-game-result .reward:nth-of-type(2){animation-delay:65ms}
.native-ios .ktb-count-underlay{color:transparent!important;text-shadow:none!important}
.native-ios .ktb-count-visual{position:absolute;display:block;white-space:nowrap;font-variant-numeric:tabular-nums}
.native-ios .ktb-flying-coin{position:absolute;display:grid;place-items:center;width:23px;height:23px;margin:-11.5px;border:2px solid #ce9630;border-radius:50%;background:#f2c45d;color:#815619;font:800 14px/1 system-ui;box-shadow:0 2px 5px #80592124;animation:ktb-coin-flight 600ms cubic-bezier(.3,.15,.3,1) both}
.native-ios .ktb-effect-particle{position:absolute;width:16px;height:16px;margin:-8px;color:#c99b36;font:700 17px/1 system-ui;animation:ktb-effect-burst 800ms ease-out both}
.native-ios .ktb-effect-bean{width:11px;height:17px;margin:-8px -5px;border-radius:50%;background:#795233;box-shadow:inset -2px -1px 0 #3e2b1e33}
.native-ios .ktb-effect-bean::after{content:"";position:absolute;top:2px;bottom:2px;left:5px;width:1px;background:#dab586;border-radius:50%;transform:rotate(9deg)}
.native-ios .ktb-wallet-reward .coin{animation:ktb-wallet-reward 420ms ease-out}
.native-ios .ktb-purchase-moment{animation:ktb-purchase-moment 600ms ease-out}
.native-ios .ktb-equip-moment{animation:ktb-equip-moment 550ms ease-out}
@keyframes ktb-cup-arrive{from{opacity:.25}to{opacity:1}}
@keyframes ktb-label-arrive{from{opacity:0}to{opacity:1}}
@keyframes ktb-selection-confirm{from{opacity:.7}to{opacity:1}}
@keyframes ktb-match{from{opacity:.85;transform:scale(.99)}to{opacity:1;transform:scale(1)}}
@keyframes ktb-match-ring{from{opacity:.9}to{opacity:0}}
@keyframes ktb-index-match{from{opacity:.7}to{opacity:1}}
@keyframes ktb-miss{0%,100%{transform:translateX(0)}25%{transform:translateX(-2px)}60%{transform:translateX(2px)}}
@keyframes ktb-result-star{from{opacity:0;transform:scale(.7) rotate(-14deg)}65%{opacity:1;transform:scale(1.05) rotate(2deg)}to{transform:scale(1) rotate(0)}}
@keyframes ktb-result-score{from{opacity:.25}to{opacity:1}}
@keyframes ktb-reward-row{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@keyframes ktb-coin-flight{0%{opacity:0;transform:translate(0,0) scale(.6)}15%{opacity:1}45%{opacity:1;transform:translate(calc(var(--coin-x)*.45 + var(--coin-bend)),calc(var(--coin-y)*.45 - 30px)) scale(1)}88%{opacity:1}100%{opacity:0;transform:translate(var(--coin-x),var(--coin-y)) scale(.45)}}
@keyframes ktb-effect-burst{0%{opacity:0;transform:translate(0,0) scale(.45) rotate(0)}18%{opacity:1}75%{opacity:.85}100%{opacity:0;transform:translate(var(--burst-x),var(--burst-y)) scale(.75) rotate(var(--burst-rotation))}}
@keyframes ktb-wallet-reward{35%{transform:scale(1.12)}100%{transform:scale(1)}}
@keyframes ktb-purchase-moment{from{opacity:.8}to{opacity:1}}
@keyframes ktb-equip-moment{from{opacity:.8}to{opacity:1}}
@media(prefers-reduced-motion:reduce){
 .native-ios .cup-button.ktb-pressed .cup-face>svg{transform:none!important;transition:none!important}
 .native-ios [class*="ktb-cup-"] .cup-face>svg,.native-ios [class*="ktb-cup-"] .cup-index,.native-ios .ktb-cup-match .cup-button::before,.native-ios .ktb-game-result .dialog-icon,.native-ios .ktb-game-result .result-score,.native-ios .ktb-game-result .reward,.native-ios .ktb-wallet-reward .coin,.native-ios .ktb-purchase-moment,.native-ios .ktb-equip-moment{animation:none!important}
 .native-ios .ktb-flying-coin,.native-ios .ktb-count-visual,.native-ios .ktb-effect-particle{display:none}
 .native-ios .ktb-count-underlay{color:inherit!important}
}

/* Small native offline/sync indicators. Status text and state are supplied by the client. */
.native-ios .native-offline-statusbar {
  position:sticky; top:-16px; z-index:3; display:flex; align-items:center; justify-content:center;
  min-height:35px; margin:-5px 0 11px; padding:5px 0; background:var(--paper);
}
.native-ios .native-offline-chip {
  display:inline-flex; align-items:center; justify-content:center; gap:6px; min-width:0; min-height:25px;
  max-width:100%; padding:5px 10px; border:1px solid var(--line); border-radius:20px;
  background:var(--card); color:var(--muted); font-size:10px; line-height:1.35; font-weight:600;
  white-space:normal; text-align:center; font-variant-numeric:tabular-nums;
}
.native-ios .native-offline-chip::before {
  content:""; display:block; flex:0 0 5px; width:5px; height:5px; border-radius:50%; background:currentColor; opacity:.7;
}
.native-ios .native-offline-chip[data-state="offline"] {color:var(--wine); border-style:dashed}
.native-ios .native-offline-chip[data-state="syncing"] {color:var(--wine)}
.native-ios .native-offline-chip[data-state="syncing"]::before {
  width:10px; height:10px; flex-basis:10px; border-radius:50%; background:none;
  border:1.5px solid var(--line); border-top-color:var(--wine); animation:native-sync-turn 900ms linear infinite;
}
.native-ios .native-offline-chip[data-state="saved"] {color:#39664a; background:#e8efdd; border-color:#cbd8bc}
.native-ios .native-offline-chip[data-state="error"] {color:var(--wine); border-color:var(--wine); border-style:solid}
.native-ios .native-offline-chip[hidden],
.native-ios .native-offline-statusbar[hidden],
.native-ios .native-pending-coins[hidden],
.native-ios .native-offline-economy[hidden] {display:none!important}
.native-ios .native-pending-coins {
  display:inline-flex; align-items:center; gap:4px; padding:3px 6px; margin-left:4px;
  border:1px dashed var(--wine); border-radius:8px; color:var(--wine); background:var(--paper);
  font-size:9px; line-height:1.3; font-weight:650; font-variant-numeric:tabular-nums; white-space:nowrap;
}
.native-ios .native-offline-economy {
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:6px 12px;
  padding:11px 13px; margin:10px 0 13px; border:1px dashed var(--line); border-radius:15px;
  font-size:11px; line-height:1.45; color:var(--muted); background:var(--card);
}
.native-ios .native-offline-economy strong {color:var(--wine); font-size:12px; font-variant-numeric:tabular-nums}
.native-ios .native-offline-economy small {display:block; flex-basis:100%; font-size:10px; line-height:1.45}
.native-ios .native-offline-notice {padding:15px; border:1px solid var(--wine); border-radius:20px; background:var(--card); color:var(--ink)}
.native-ios .native-offline-notice h2 {margin:0 0 7px; font-size:18px}
.native-ios .native-offline-notice p {margin:7px 0 12px; font-size:12px; line-height:1.5}
.native-ios .native-offline-notice button {min-height:44px; width:100%}
/* Keep this slot mounted during a round: changing network status must not move cups. */
.native-ios .native-offline-game-slot {display:flex; justify-content:center; align-items:center; flex:0 0 26px; min-height:26px; max-height:26px; padding:0 8px; overflow:hidden}
.native-ios .native-offline-game-slot .native-offline-chip {min-height:22px; padding:3px 8px; font-size:9px}
@keyframes native-sync-turn {to {transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce) {
  .native-ios .native-offline-chip[data-state="syncing"]::before {animation:none}
}
/* The installed indicator owns a permanent 26px row, including when online. */
html.native-ios.native-offline-ui {--native-header-height:84px}
.native-ios.native-offline-ui .topbar {padding-bottom:33px}
.native-ios .native-offline-top-slot {position:absolute; left:17px; right:17px; bottom:3px; height:25px; display:flex; align-items:center; justify-content:center}
.native-ios .native-offline-top-slot .native-offline-chip {min-height:24px; height:24px; padding:3px 10px; white-space:nowrap; font-size:10px; line-height:16px; font-weight:600; max-width:100%; text-overflow:ellipsis; overflow:hidden}
.native-ios .native-offline-chip {cursor:pointer; -webkit-tap-highlight-color:transparent}
.native-ios .native-offline-chip[data-state="saved"] {background:transparent; border-color:transparent; color:var(--muted)}
.native-ios .native-offline-chip[data-state="saved"]::before {opacity:.45}
.native-ios .native-offline-chip[data-state="pending"],.native-ios .native-offline-chip[data-state="account"] {color:var(--wine); border-style:dashed}
.native-ios .native-offline-chip[data-state="loading"] {color:var(--muted); background:transparent; border-color:transparent}
.native-ios .native-offline-game-slot .native-offline-chip {max-width:100%; white-space:nowrap}
.native-ios .native-offline-announcer {position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); clip-path:inset(50%); white-space:nowrap; border:0; pointer-events:none}
/* Menu illustration only. Leave gameplay cup geometry and hit targets untouched. */
.native-ios .native-mode-card[data-mode="triangle"] .appearance-cup {width:46px; flex:0 0 46px; margin:0 -8px}
.native-ios .native-mode-card[data-mode="triangle"] {column-gap:8px}
.native-ios .native-mode-card[data-mode="triangle"] .native-mode-cups {overflow:visible; gap:0}
@media(orientation:landscape) and (max-height:520px) {
  html.native-ios.native-offline-ui {--native-header-height:75px}
  .native-ios.native-offline-ui .topbar {padding-bottom:28px}
}

/* Native cup faces cross-fade; no rotateY/backface rendering at 90 degrees. */
.native-ios .cup-slot {perspective:none}
.native-ios .cup-rotator {transform:none!important;transform-style:flat;transition:none!important}
.native-ios .cup-face {transform:none!important;backface-visibility:visible;-webkit-backface-visibility:visible;transition:opacity 150ms ease-out;will-change:auto}
.native-ios .cup-face:not(.cup-bottom) {opacity:1}
.native-ios .cup-face.cup-bottom {opacity:0;pointer-events:none}
.native-ios .shown .cup-face:not(.cup-bottom) {opacity:0}
.native-ios .shown .cup-face.cup-bottom {opacity:1}
.native-ios .native-reward-details {margin:10px 0;min-height:44px}
.native-ios .native-reward-details>summary {min-height:44px;padding:12px 0;font-size:12px;color:var(--muted);cursor:pointer}
.native-ios [data-result-sync-status] {min-height:52px;margin:12px 0 4px;display:flex;align-items:center}
.native-ios [data-result-earned] {font-variant-numeric:tabular-nums;white-space:nowrap}
@media(prefers-reduced-motion:reduce){.native-ios .cup-face{transition:none!important}}

/* Added career screen. Existing five-tab shell, palette and free-play screens are unchanged. */
.career-entry{background:var(--card);border:1px solid var(--line);margin:0 0 17px;padding:17px;gap:12px;align-items:center}
.career-entry>span:first-child{display:grid;place-items:center;flex:0 0 43px;width:43px;height:43px;border-radius:15px;color:var(--wine);background:var(--paper);font-size:26px}
.career-entry>span:nth-child(2){flex:1;min-width:0}
.career-entry strong{font-size:15px;line-height:1.25;overflow-wrap:anywhere}
.career-entry small{display:block;font-size:11px;color:var(--muted)}
.career-entry .arrow{position:static;flex:0 0 auto;font-size:22px;color:var(--wine)}
.career-screen{min-width:0;width:100%}
.career-back{display:inline-flex;align-items:center;padding:0;min-height:44px;margin:-8px 0 1px;font-size:12px;color:var(--muted)}
.career-heading.pagehead{margin-bottom:16px}
.career-heading .eyebrow{display:block}
.career-heading h1{max-width:15ch}
.career-overall{margin:0 0 19px}
.career-overall-label{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:var(--muted)}
.career-overall-label>span:last-child{color:var(--wine);white-space:nowrap}
.career-overall-track,.career-quest-track{overflow:hidden;height:5px;border-radius:8px;background:var(--line);margin-top:7px}
.career-overall-track>i,.career-quest-track>i{display:block;height:100%;background:var(--wine);border-radius:inherit}
.career-chapter-controls{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:end;gap:7px;min-width:0}
.career-chapter-controls .iconbutton{min-width:44px;min-height:46px;padding:0;border-radius:14px}
.career-chapter-label{display:block;min-width:0}
.career-chapter-label>span{display:block;color:var(--muted);font-size:11px;margin:0 0 5px}
.career-chapter-label select{font-size:16px;min-width:0;min-height:46px;width:100%;padding:11px 8px}
.career-map{height:720px;position:relative;margin:9px 0 0;min-width:0;isolation:isolate}
.career-map-path{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.career-map-path path{fill:none;stroke:var(--line);stroke-width:5;vector-effect:non-scaling-stroke;stroke-linecap:round}
.career-stop{position:absolute;left:var(--career-x);top:var(--career-y);width:92px;transform:translate(-50%,-50%);text-align:center;display:flex;align-items:center;flex-direction:column;gap:5px;z-index:1}
.career-level{position:relative;display:grid;place-items:center;min-width:48px;min-height:48px;width:48px;height:48px;padding:0;border:1px solid var(--line);border-radius:50%;background:var(--card);font-weight:750;font-size:16px;box-shadow:0 3px 0 var(--line)}
.career-level.is-current{background:var(--wine);color:var(--card);border-color:var(--wine)}
.career-level.is-done{background:var(--card);border-color:var(--wine);color:var(--wine)}
.career-level.is-locked{color:var(--muted);background:var(--paper)}
.career-level[aria-pressed="true"]{outline:2px solid var(--wine);outline-offset:5px}
.career-level.is-current[aria-pressed="true"]{outline-width:2px}
.career-next-dot{position:absolute;right:-4px;top:-3px;width:12px;height:12px;border:2px solid var(--paper);border-radius:50%;background:var(--wine)}
.career-stars{display:inline-block;font-size:13px;line-height:1.2;letter-spacing:1px;white-space:nowrap;color:var(--wine)}
.career-node-caption{color:var(--muted);font-size:10px;line-height:1.15;max-width:92px}
.career-stop.is-final .career-node-caption{color:var(--wine);font-weight:650}
.career-selected.panel{margin-bottom:14px;padding:17px}
.career-selected-title{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:8px}
.career-selected h2{font-size:18px;margin:0 0 7px}
.career-selected p{color:var(--muted);font-size:12px;line-height:1.5;margin:0 0 14px}
.career-chest-row{display:grid;grid-template-columns:37px minmax(0,1fr) auto;align-items:center;gap:10px;padding:15px 0 22px;min-width:0}
.career-chest-row strong,.career-daily-reward strong{display:block;font-size:13px;line-height:1.3}
.career-chest-row small,.career-daily-reward small{display:block;font-size:11px;line-height:1.4;color:var(--muted);margin-top:4px}
.career-chest-row>button{font-size:11px;min-width:65px;min-height:44px;padding:9px 10px}
.career-chest-mark{display:grid;place-items:center;width:36px;height:36px;color:var(--wine);background:var(--card);border:1px solid var(--line);border-radius:12px;font-size:25px}
.career-chest-row.is-ready .career-chest-mark{border-color:var(--wine)}
.career-daily .section-title{margin:0 0 9px}
.career-daily .section-title h2{font-size:18px}
.career-quest{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:13px;padding:13px 0;border-bottom:1px solid var(--line)}
.career-quest>div{min-width:0}
.career-quest strong{font-size:12px;font-weight:650;line-height:1.4;display:block}
.career-quest-count{font-size:12px;color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}
.career-quest.is-done .career-quest-count{color:var(--wine)}
.career-quest-track{height:4px;margin-top:7px}
.career-daily-actions{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:15px}
.career-daily-actions .linkbutton{font-size:12px;padding:0}
.career-daily-actions>button:last-child{font-size:12px;min-height:44px;padding:10px 12px}
.career-claim-caption{margin:12px 0 0;overflow-wrap:anywhere}
.career-chest-row [data-career-claim-status],.career-daily-reward [data-career-claim-status]{overflow-wrap:anywhere}
.career-footnote.footnote{margin-top:15px;font-size:11px;line-height:1.55}
.career-level-sheet{padding-top:9px}
.career-level-sheet h2{margin-top:7px;max-width:90%}
.career-level-best{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:16px;flex-wrap:wrap}
.career-goal{padding:16px;border-radius:17px;background:var(--paper);margin:17px 0}
.career-goal strong{display:block;font-size:12px;color:var(--muted);margin-bottom:6px}
.career-goal p{margin:0;font-size:14px;line-height:1.5;font-weight:600}
.career-star-rules{display:grid;gap:9px;margin:15px 0 20px}
.career-star-rules>div{display:grid;grid-template-columns:42px minmax(0,1fr);gap:10px;align-items:center}
.career-star-rules>div>span{color:var(--wine);white-space:nowrap;font-size:13px;letter-spacing:-1px}
.career-star-rules p{margin:0;font-size:12px;color:var(--muted)}
.career-quests-sheet .career-daily-reward{display:flex;align-items:center;gap:11px;margin:20px 0}
.career-quests-sheet>button.secondary{margin-top:10px}
.career-result-stars{color:var(--wine);font-size:36px;line-height:1.2;letter-spacing:4px;text-align:center;margin:22px 0 15px;white-space:nowrap}
.career-reward-sheet{padding-top:9px;text-align:center}
.career-reward-sheet h2{margin:11px 0 14px}
.career-chest-open{display:flex;align-items:center;justify-content:center;gap:18px;margin-top:21px;color:var(--wine);font-size:21px}
.career-chest-open .coin{width:57px;height:57px;font-size:31px}
.career-reward-coins{display:flex;gap:8px;justify-content:center;align-items:center;font-size:34px;font-weight:800;margin:13px 0 19px}
.career-reward-item{display:inline-flex;text-align:left;align-items:center;gap:13px;padding:14px 19px;border:1px solid var(--line);border-radius:17px;background:var(--card);margin-bottom:18px;max-width:100%}
.career-reward-item>span{color:var(--wine);font-size:30px}
.career-reward-item small{font-size:11px;color:var(--muted);display:block;margin-bottom:4px}
.career-reward-item strong{display:block;font-size:14px;overflow-wrap:anywhere}
.career-reward-sheet .notice{text-align:left;font-size:12px}
@media(max-width:350px){.career-entry{padding:14px;gap:10px}.career-entry strong{font-size:14px}.career-chapter-controls{gap:5px}.career-chapter-label select{padding-left:6px;padding-right:4px}.career-chest-row{gap:8px;grid-template-columns:34px minmax(0,1fr) auto}.career-chest-row>button{min-width:57px;font-size:10px;padding-left:8px;padding-right:8px}.career-chest-row strong{font-size:12px}.career-daily.panel{padding:15px}.career-selected.panel{padding:15px}.career-daily-actions>button:last-child{font-size:11px}}
@media(prefers-reduced-motion:no-preference){.career-chest-open .coin{animation:career-chest-reward 420ms cubic-bezier(.2,.7,.3,1) both}.career-chest-open>span:not(.coin){animation:career-reward-spark 480ms ease-out both}.career-reward-coins{animation:career-reward-appear 380ms ease-out both}}
@keyframes career-chest-reward{from{transform:translateY(9px) scale(.88);opacity:.3}to{transform:none;opacity:1}}
@keyframes career-reward-spark{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
@keyframes career-reward-appear{from{opacity:.4}to{opacity:1}}

/* A career triangle occupies the existing table; ordinary four/eight-group boards retain their layout. */
.board.triangle-grid[data-groups="1"]{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
.board.triangle-grid[data-groups="1"] .triangle-group{padding:12px}
.board.triangle-grid[data-groups="1"] .triangle-group>span{font-size:12px;line-height:1.4}

/* Keep three full-width cups in each row as the memory load grows. */
.board.career-triangle-batch{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);gap:6px}
.board.career-triangle-batch[data-groups="2"]{grid-template-rows:repeat(2,minmax(0,1fr))}
.board.career-triangle-batch[data-groups="3"]{grid-template-rows:repeat(3,minmax(0,1fr))}
.board.career-triangle-batch[data-groups="4"]{grid-template-rows:repeat(4,minmax(0,1fr))}
.board.career-triangle-batch .triangle-group{padding:4px 7px;min-height:70px}
.board.career-triangle-batch .triangle-group>span{font-size:11px;line-height:1.25;flex-shrink:0}
.board.career-triangle-batch .triangle-cups{min-height:50px;gap:4px}
.board.career-triangle-batch .cup-button{min-height:44px;max-height:100%;flex:1 1 auto}
.board.career-triangle-batch .cup-index{font-size:9px;line-height:11px;flex-shrink:0}
.board.career-triangle-batch .answer-correct>span{color:var(--wine);font-weight:650}
.board.career-triangle-batch .answer-wrong>span{font-weight:650}
.preview-ready{white-space:nowrap;min-width:125px}
[data-career-pace="fast"] .game-footer>span{max-width:31ch}
@media(max-height:650px){.board.career-triangle-batch{gap:4px}.board.career-triangle-batch .triangle-group{padding:2px 5px;min-height:64px}.board.career-triangle-batch .triangle-group>span{font-size:10px}.board.career-triangle-batch .triangle-cups{min-height:46px}[data-career-pace="fast"] .game-footer{min-height:48px;padding:3px 0}[data-career-pace="fast"] .game-tools{min-height:32px}.preview-ready{min-width:109px}}

/* The same phone UI, centered rather than stretched on a desktop browser. */
html.web-app {background:#ded6c9}
.web-app body {background:#ded6c9}
.web-app .app {left:50%;right:auto;width:min(100%,540px);transform:translateX(-50%);box-shadow:0 0 60px #30282415}
.web-app .game-screen {width:100%;max-width:540px;box-shadow:0 0 60px #30282415}
.web-app dialog {max-width:540px}
.web-app #toast {max-width:min(calc(100% - 38px),502px)}
@media(max-width:540px){html.web-app,.web-app body{background:var(--paper)}.web-app .app,.web-app .game-screen{box-shadow:none}}
