.chase-menu141{max-width:720px;margin:auto;padding:24px;display:grid;gap:24px}.chase-menu141 label{display:grid;gap:12px}.chase-menu141 select{min-height:48px}.chase-menu141 .actions,.chase-modes141{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.chase-modes141{margin:16px 0}.chase-modes141 a{min-height:48px;white-space:normal;justify-content:flex-start}.chase-health141{display:grid;gap:4px;color:#292342;background:#fff8ee;border:1px solid #514169;border-radius:12px;padding:8px 12px;min-width:0}.chase-health141 span{display:flex;justify-content:space-between;gap:12px;font-weight:750}.chase-health141 meter{width:100%;height:16px;accent-color:#26744c}.chase-health141 small{color:#4e435e}.chase-health141.is-caught{background:#fce2e1;color:#701e29}.chase-hud141{max-width:250px;pointer-events:none}.race-overlay>.chase-hud141{position:absolute;top:172px;left:12px;right:100px;z-index:3}.room-race-hud>.chase-hud141{flex-basis:100%;max-width:none}.roulette-lane .chase-health141{margin-top:8px}.chase-monster141{position:absolute;left:0;bottom:0;display:block;width:56px;height:64px;transform:translateX(var(--chase-monster-x,0px));pointer-events:none}.chase-monster141 img{width:56px;height:64px;object-fit:contain;filter:hue-rotate(245deg) saturate(1.25) brightness(.72)}.chase-monster141:before,.chase-monster141:after{content:'';position:absolute;top:0;width:10px;height:15px;background:#713863;clip-path:polygon(50% 0,100% 100%,0 100%);z-index:1}.chase-monster141:before{left:14px;transform:rotate(-20deg)}.chase-monster141:after{right:9px;transform:rotate(20deg)}.chase-result141{display:grid;gap:12px}.chase-result141 ol{padding:0;list-style:none;max-height:40vh;overflow:auto}.chase-result141 li{display:flex;justify-content:space-between;gap:12px;padding:8px;border-bottom:1px solid #d3c9dc}@media(max-width:480px){.chase-menu141{padding:16px}.chase-modes141{grid-template-columns:1fr}.race-overlay>.chase-hud141{top:152px;right:90px;left:8px}.chase-health141{padding:6px 8px}.chase-health141 small{font-size:12px}}@media(prefers-reduced-motion:reduce){.chase-monster141{transition:none;animation:none}}

.roulette-track .chase-monster141{left:clamp(0px,calc(var(--chase-monster-progress,0)*1% - 32px),calc(100% - 64px));transform:none}.roulette-track .chase-monster141 img{left:0;width:56px;height:64px;transition:none}.room-race-hud{flex-wrap:wrap}

/* A chase adds health to the existing guidance. Stack their natural heights,
   including translated and enlarged text, without covering the controls. */
.race-overlay>.gameplay-info141{position:absolute;z-index:3;top:150px;left:12px;right:12px;max-height:calc(100% - 340px);min-height:0;display:flex;flex-direction:column;align-items:center;gap:8px;overflow-y:auto;overscroll-behavior:contain;pointer-events:auto}
.race-overlay>.gameplay-info141:focus-visible{outline:3px solid #2453a4;outline-offset:2px}
body.race-running .race-overlay>.gameplay-info141>:is(.rule-pill,.rule-next,.running-rule-guide){position:static;inset:auto;transform:none;margin:0;max-width:min(100%,500px);box-sizing:border-box;white-space:normal}
.race-overlay>.gameplay-info141>.chase-hud141{position:static;width:min(100%,250px);max-width:100%;pointer-events:none}
.race-overlay>.gameplay-info141>.running-rule-guide{width:min(100%,500px)}

/* Keep the whole result readable while the next actions remain beside, not
   over, the scrollable rankings. The same markup stays in document order. */
.race-sheet.chase-result141{box-sizing:border-box;display:flex;flex-direction:column;gap:12px;min-height:0;overflow-y:auto;overscroll-behavior:contain;scroll-padding-block:12px}
.chase-result141>.chase-result-summary141{display:grid;gap:8px;flex:0 0 auto;min-width:0;overflow-wrap:anywhere}
.chase-result141>.chase-result-summary141 :is(h2,p){margin:0}
.chase-result141>.chase-result-ranks141{box-sizing:border-box;flex:1 0 max(4.5em,var(--chase-result-row-height141,0px));min-height:max(4.5em,var(--chase-result-row-height141,0px));max-height:40vh;margin:0;overflow-y:auto;overscroll-behavior:contain;scroll-padding-block:12px}
.chase-result141>.chase-result-ranks141:focus-visible{outline:3px solid #2453a4;outline-offset:-3px}
.chase-result141>.chase-result-ranks141 li{flex-wrap:wrap;min-width:0;overflow-wrap:anywhere}
.chase-result141>.chase-result-ranks141 li span{min-width:0;max-width:100%;overflow-wrap:anywhere}
.chase-result141>.chase-result-actions141{display:grid;gap:12px;flex:0 0 auto;min-width:0}
.chase-result141>.chase-result-actions141 :is(button,a){box-sizing:border-box;width:100%;min-height:48px;white-space:normal;overflow-wrap:anywhere}
/* The result keeps health, distance and rank readable without making the
   action area compete with an empty-looking list on a narrow screen. */
.chase-result-summary141 .chase-health141{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:2px 12px;padding:6px 8px;align-items:center}
.chase-result-summary141 .chase-health141 span{grid-column:1;min-width:0;flex-wrap:wrap;overflow-wrap:anywhere}
.chase-result-summary141 .chase-health141 small{grid-column:2;grid-row:1;min-width:0;text-align:right;overflow-wrap:anywhere}
.chase-result-summary141 .chase-health141 meter{grid-column:1/-1;grid-row:2}
.chase-result141>.chase-result-actions141>a.btn{display:flex;align-items:center;justify-content:center;border:1px solid #cfc3e3;border-radius:16px;background:#fff;color:#665084;font-weight:750;text-decoration:none}
.chase-result141>.chase-result-actions141>a.btn:hover{background:#f5f1fa}
.chase-result141>.chase-result-actions141>a.btn:focus-visible{outline:3px solid #2453a4;outline-offset:2px}
@media(max-width:480px){.race-sheet.chase-result141{padding:16px}}

/* On very short screens the entire card can scroll, so enlarged text and
   both actions remain reachable even if the fixed summary would not fit. */
@media(max-height:480px){
 .race-sheet.chase-result141{overflow-y:auto;overscroll-behavior:contain;scroll-padding-block:12px}
 .chase-result141>.chase-result-ranks141{flex:0 0 auto;min-height:0;max-height:none;overflow:visible}
}

/* Align the guidance to the edge of the actual portrait game surface. The
   percentage belongs to that surface, not the often much wider desktop. */
@media(min-width:38rem) and (min-height:38rem){
 .race-overlay>.gameplay-info141{left:12px;right:auto;width:min(250px,46%);align-items:stretch}
}


/* Keep health and distance together without covering as much of the course.
   The DOM and reading order remain unchanged; longer text wraps naturally. */
@media(max-width:480px){
 .race-overlay>.gameplay-info141>.chase-hud141{width:min(100%,250px)}
 .race-overlay>.gameplay-info141 .chase-health141{grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:12px;row-gap:2px;align-items:center}
 .race-overlay>.gameplay-info141 .chase-health141 span{grid-column:1;min-width:0;flex-wrap:wrap;overflow-wrap:anywhere}
 .race-overlay>.gameplay-info141 .chase-health141 small{grid-column:2;grid-row:1;min-width:0;text-align:right;overflow-wrap:anywhere}
 .race-overlay>.gameplay-info141 .chase-health141 meter{grid-column:1/-1;grid-row:2}
}
@media(max-height:600px) and (orientation:landscape){.race-overlay>.gameplay-info141{top:140px;max-height:calc(100% - 280px)}}

/* The existing live cue shares the guidance stack so it cannot overlap the
   next-rule text. Its status node and existing show timer are unchanged. */
.gameplay-stage141 .race-overlay>.gameplay-info141>.race-cue,
.gameplay-stage141 .race-overlay>.gameplay-info141>.race-cue.show{
 position:static;inset:auto;transform:none;box-sizing:border-box;max-width:100%;
 margin:0;white-space:normal;text-align:center
}
.gameplay-stage141 .race-overlay>.gameplay-info141>.race-cue:not(.show){
 max-height:0;padding-block:0;overflow:hidden
}

/* Share the first row with the temporary cue so the full rule guide has
   more room; longer labels still wrap within the scrollable guidance area. */
@media(max-width:480px){
 .gameplay-stage141 .race-overlay>.gameplay-info141{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start
 }
 .gameplay-stage141 .race-overlay>.gameplay-info141>.rule-pill{grid-column:1;grid-row:1}
 .gameplay-stage141 .race-overlay>.gameplay-info141>.race-cue{grid-column:2;grid-row:1}
 .gameplay-stage141 .race-overlay>.gameplay-info141>.rule-next{grid-column:1/-1;grid-row:2}
 .gameplay-stage141 .race-overlay>.gameplay-info141>.chase-hud141{grid-column:1/-1;grid-row:3;justify-self:center}
 .gameplay-stage141 .race-overlay>.gameplay-info141>.running-rule-guide{grid-column:1/-1;grid-row:4;justify-self:center}
}

.chase-rules-trigger141,.chase-rules141{display:none}

/* Keep the live rule, status cue and health close to the top. Longer rule
   instructions are available in the pause sheet. Time-sensitive lane,
   mirror and beat signals still belong on the course. */
@media(max-width:480px) and (orientation:portrait){
 .gameplay-stage141 .race-overlay>.gameplay-info141.compact-chase141{
  grid-template-columns:repeat(4,minmax(0,1fr))
 }
 .gameplay-stage141 .race-overlay>.compact-chase141>.rule-pill{
  grid-column:1/3;
  min-width:0;
  overflow-wrap:anywhere
 }
 .gameplay-stage141 .race-overlay>.compact-chase141>.race-cue{
  grid-column:3/-1;
  overflow-wrap:anywhere
 }
 .gameplay-stage141 .race-overlay>.compact-chase141>.chase-hud141{
  grid-column:1/4;
  grid-row:2;
  width:100%
 }
 .gameplay-stage141 .race-overlay>.compact-chase141>.rule-next,
 .compact-chase141>.running-rule-guide :is([data-running-hint],[data-running-clock]),
 .compact-chase141>.running-rule-guide:not(:has([data-running-cue]>span:not(:empty))){
  display:none
 }
 .gameplay-stage141 .race-overlay>.compact-chase141>.running-rule-guide{
  grid-row:3;
  padding:4px 8px;
  overflow-wrap:anywhere
 }
 .compact-chase141>.chase-rules-trigger141{
  display:inline-flex;
  grid-column:4;
  grid-row:2;
  align-self:center;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:4px;
  min-width:48px;
  min-height:48px;
  padding:4px;
  border:1px solid #ffffff85;
  border-radius:12px;
  background:#293245;
  color:#fff;
  font-size:.8125rem;
  font-weight:800;
  overflow-wrap:anywhere
 }
 .chase-rules-trigger141:focus-visible{
  outline:3px solid #ffe6a0;
  outline-offset:-4px
 }
 .race-sheet.pause-sheet:has(.chase-rules141){
  box-sizing:border-box;
  padding:16px;
  overscroll-behavior:contain;
  scroll-padding-block:12px
 }
 .pause-sheet:has(.chase-rules141) .plain-action{
  min-height:48px;
  margin:12px auto 0
 }
 .pause-sheet>.chase-rules-heading141{
  margin-block:0 12px;
  overflow-wrap:anywhere
 }
 .chase-rules-heading141:focus-visible{
  outline:3px solid #2453a4;
  outline-offset:2px
 }
 .chase-rules141{
  display:grid;
  gap:8px;
  margin-block:12px;
  padding:12px;
  border:1px solid #d3c9dc;
  border-radius:12px;
  background:#fff;
  text-align:start;
  overflow-wrap:anywhere
 }
 .chase-rules141 :is(h3,p){margin:0}
 .chase-rules141>.running-rule-guide{
  position:static;
  max-width:none;
  margin:0;
  padding:0;
  border:0;
  background:transparent;
  box-shadow:none;
  text-align:start
 }
}

.chase-menu-guide141{display:grid;gap:12px;min-width:0}
.chase-menu-guide141>p{display:flex;align-items:flex-start;gap:8px;margin:0;color:var(--ink,#233c4c);line-height:1.5}
.chase-menu-guide141>p svg{flex:none;margin-block-start:.2em}

/* ROM shared design tokens. Font Awesome Free SVG attribution: vendor/fontawesome/LICENSE.txt */
:root{--font:"Pretendard","SUIT","Noto Sans CJK KR","Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif;--ink:#292438;--muted:#716b82;--line:#e7e3ed;--paper:#fff;--bg:#f8f7fb;--violet:#7451d8;--deep:#5136a3;--lilac:#eee7ff;--mint:#d5f18f;--danger:#af3f59;--radius:20px;--shadow:0 10px 30px #29243809;--focus:#7956db}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.6 var(--font);letter-spacing:-.025em;word-break:keep-all;overflow-wrap:break-word}button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}a{text-decoration:none;color:inherit}h1,h2,h3,p{margin:0}h1,h2,h3{line-height:1.3;letter-spacing:-.045em}button,input,textarea,select{color:inherit}a,button{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--focus);outline-offset:3px}.rom-icon{display:inline-block;flex-shrink:0;vertical-align:-.16em;overflow:visible;stroke:none!important;fill:currentColor}.muted{color:var(--muted)}.small{font-size:12px}.overline{display:block;font-size:11px;font-weight:750;letter-spacing:.04em;color:var(--muted);margin-bottom:7px}.btn{min-height:44px;border:1px solid var(--line);background:white;border-radius:12px;display:inline-flex;gap:10px;align-items:center;justify-content:center;padding:11px 17px;font-size:13px;font-weight:750;line-height:1.4;transition:background .15s,transform .15s,box-shadow .15s;white-space:normal}.btn:hover{background:#f6f3fc;border-color:#c5b8de}.btn:active{transform:translateY(1px)}.btn.primary{color:white;background:var(--violet);border-color:var(--violet);box-shadow:0 3px 0 var(--deep)}.btn.primary:hover{background:#6542c9}.btn.mint{background:var(--mint);border-color:#c4e77b;color:#2d3b1e;box-shadow:0 3px 0 #a7c75f}.btn.tonal{background:var(--lilac);border-color:var(--lilac);color:var(--deep)}.btn.ghost{border-color:transparent;background:transparent}.btn.danger{color:var(--danger);background:#fff5f7;border-color:#f1c8d4}.btn .rom-icon{width:16px;height:16px}.icon-btn{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:13px;background:white;width:44px;height:44px;flex-shrink:0;transition:.15s}.icon-btn:hover{background:var(--lilac);color:var(--violet);border-color:#c9b9ed}.icon-btn .rom-icon{width:17px;height:17px}.actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.spacer{flex:1}.brand{display:inline-flex;align-items:center;gap:11px;flex-shrink:0}.brand-symbol{display:grid;place-items:center;width:43px;height:45px;border-radius:15px;background:linear-gradient(145deg,#ae8bff,#7150d5 55%,#523395);color:#fff;box-shadow:inset 0 2px 1px #ffffff66,0 3px 0 #463276,0 6px 10px #7451d823;transform:rotate(-6deg)}.brand-copy strong{display:block;font-size:25px;line-height:1.1;font-weight:900;letter-spacing:-1px}.brand-copy small{display:block;font-size:9px;letter-spacing:.035em;margin-top:4px;color:var(--muted)}.badge{display:inline-flex;align-items:center;gap:5px;vertical-align:middle;border-radius:7px;font-size:11px;font-weight:700;line-height:1.3;padding:5px 8px;background:#f0eef5;color:#716b82;white-space:nowrap;letter-spacing:-.02em}.badge.violet{background:#eee7ff;color:#6342bb}.badge.green{background:#e4f3eb;color:#287953}.badge.amber{background:#fff2d9;color:#966414}.badge.red{background:#fbe9ed;color:#a33855}.badge.dark{background:#ffffff22;color:#fff}.badge.outline{border:1px solid var(--line);background:transparent}.icon-tile{--t1:#bea1ff;--t2:#7952dc;--t3:#5639a4;display:inline-grid;place-items:center;width:60px;height:60px;border-radius:20px;background:linear-gradient(145deg,var(--t1),var(--t2));box-shadow:inset 0 2px 1px #ffffff99,inset 0 -3px 2px #00000015,0 4px 0 var(--t3),0 10px 18px #29243818;color:white;flex-shrink:0}.icon-tile .rom-icon{filter:drop-shadow(0 2px 1px #00000020);width:28px;height:28px}.icon-tile.mint{--t1:#8bd7ba;--t2:#42a885;--t3:#287d62}.icon-tile.pink{--t1:#f7adc4;--t2:#d16f9f;--t3:#ad4d82}.icon-tile.amber{--t1:#ffe098;--t2:#e9b253;--t3:#bd852c}.icon-tile.blue{--t1:#94cafa;--t2:#559bcf;--t3:#367baa}.icon-tile.small-tile{width:36px;height:36px;border-radius:11px;box-shadow:inset 0 1px 1px #ffffff99,0 2px 0 var(--t3)}.icon-tile.small-tile .rom-icon{width:17px;height:17px}.searchbox{display:flex;gap:10px;align-items:center;border:1px solid var(--line);border-radius:11px;padding:0 13px;background:white;min-height:44px;color:var(--muted)}.searchbox input{border:0;outline:none!important;min-width:0;width:100%;background:transparent;font-size:13px;height:42px}.searchbox .rom-icon{width:15px;height:15px}.field{display:block;margin-bottom:17px}.field>span,.field>label{display:block;font-size:12px;font-weight:750;margin-bottom:7px}.field input,.field textarea,.field select{width:100%;background:#fff;border:1px solid var(--line);border-radius:10px;min-height:44px;padding:10px 12px;font-size:13px}.field textarea{min-height:100px;resize:vertical}.field small{display:block;color:var(--muted);font-size:11px;margin-top:6px}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:16px}.panel{background:white;border:1px solid var(--line);border-radius:18px;padding:24px;box-shadow:var(--shadow)}.panel h2{font-size:18px;margin-bottom:9px}.notice{display:flex;gap:10px;align-items:flex-start;font-size:12px;padding:14px 17px;background:#f1eef9;border:1px solid #e4ddf3;border-radius:12px;color:#665886}.notice .rom-icon{width:15px;height:15px;margin-top:2px}.notice.warn{background:#fff8e9;color:#816124;border-color:#f0e1bd}.empty{padding:55px 25px;text-align:center;background:#fff;border:1px dashed #d8d1e5;border-radius:20px}.empty .icon-tile{margin-bottom:23px}.empty h2{font-size:23px;margin-bottom:12px}.empty p{max-width:420px;margin:0 auto 22px;color:var(--muted);font-size:14px}.skip{position:fixed;left:15px;top:-80px;padding:10px 16px;background:white;border:2px solid var(--violet);z-index:999}.skip:focus{top:15px}.toast{position:fixed;left:50%;bottom:25px;transform:translate(-50%,18px);background:#30263f;color:white;border:1px solid #ffffff33;border-radius:12px;padding:13px 20px;z-index:999;opacity:0;pointer-events:none;font-size:13px;max-width:calc(100vw - 36px);box-shadow:0 12px 30px #29243833;transition:.18s}.toast.shown{opacity:1;transform:translate(-50%,0)}.rom-dialog{color:var(--ink);background:#fff;border:1px solid var(--line);border-radius:22px;padding:0;width:min(610px,calc(100vw - 28px));max-height:90dvh;box-shadow:0 30px 100px #16122a33}.rom-dialog[open]{display:flex;flex-direction:column;overflow:hidden}.rom-dialog::backdrop{background:#21163566;backdrop-filter:blur(3px)}.dialog-head{padding:22px 26px;display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid var(--line);flex-shrink:0}.dialog-head h2{font-size:21px}.dialog-body{padding:24px 26px;overflow:auto;min-height:0}.dialog-body p{margin-bottom:16px;color:var(--muted);font-size:14px}.rom-dialog.drawer{height:100dvh;max-height:100dvh;width:540px;max-width:100vw;margin:0 0 0 auto;border-radius:22px 0 0 22px}.tabbar{display:flex;gap:4px;padding:4px;background:#f3f1f7;border-radius:11px;margin-bottom:22px;overflow:auto}.tabbar button{flex:1;white-space:nowrap;border:0;border-radius:8px;background:transparent;padding:10px 12px;font-size:12px;font-weight:700;min-height:42px;color:var(--muted)}.tabbar button.active{background:white;color:var(--ink);box-shadow:0 2px 6px #29243809}.switch{display:inline-flex;align-items:center;gap:12px;min-height:44px;cursor:pointer}.switch input{appearance:none;width:36px;height:22px;flex-shrink:0;margin:0;background:#d6d1de;border-radius:20px;border:1px solid #c9c3d4;position:relative;transition:.15s;cursor:pointer}.switch input:before{content:"";position:absolute;left:3px;top:3px;width:14px;height:14px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #29243833;transition:.15s}.switch input:checked{background:var(--violet);border-color:var(--violet)}.switch input:checked:before{transform:translateX(14px)}.switch input:disabled{opacity:.5;cursor:not-allowed}.switch span{font-size:13px;font-weight:650}.switch small{display:block;font-size:11px;font-weight:400;color:var(--muted)}.divider{height:1px;background:var(--line);margin:23px 0}.mono{font-family:ui-monospace,monospace;font-size:11px;overflow-wrap:anywhere;word-break:break-all}img{max-width:100%;height:auto}button[aria-pressed=true]{background:var(--lilac);color:var(--deep)}
@media(max-width:640px){body{font-size:14px}.panel{padding:20px}.two-col{grid-template-columns:1fr;gap:0}.rom-dialog.drawer{width:100%;border-radius:0}.dialog-head,.dialog-body{padding:20px}.brand-copy strong{font-size:22px}.brand-symbol{width:38px;height:40px;border-radius:13px}.toast{bottom:88px;width:max-content}.btn{font-size:13px}.field input,.field select,.field textarea{font-size:16px}.searchbox input{font-size:16px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.spacer{flex:1}.actions{display:flex;align-items:center;gap:10px}.admin-body .admin-table .switch{min-height:44px}.admin-body .check-cell{position:relative}.admin-body .check-cell input{cursor:pointer}

/* Generated from design-system/tokens/collection.json. Do not edit. */
:root {
  --rom-shelf-text-primary: #28243b;
  --rom-shelf-text-secondary: #696178;
  --rom-shelf-text-on-strong: #ffffff;
  --rom-shelf-action-primary: #6238cc;
  --rom-shelf-action-selected-surface: #f1ebff;
  --rom-shelf-action-selected-border: #d7c6fa;
  --rom-shelf-border-default: #e5dfef;
  --rom-shelf-border-empty: #d7cce8;
  --rom-shelf-border-input: #bcb0d3;
  --rom-shelf-surface-default: #ffffff;
  --rom-shelf-surface-art: #e9e5f0;
  --rom-shelf-surface-overlay: #ffffffed;
  --rom-shelf-surface-empty: #fdfcff;
  --rom-shelf-surface-emphasis: #ede5fc;
  --rom-shelf-status-error: #a42540;
  --rom-shelf-status-error-text: #85344b;
  --rom-shelf-size-touch: 48px;
  --rom-shelf-radius-control: 13px;
  --rom-shelf-radius-card: 22px;
  --rom-shelf-space-card: 20px;
}

/* Public application only. Internal environment labels and controls are not rendered here. */
body{background:#faf9fc}.player-header{height:88px;max-width:1600px;padding:0 50px;display:flex;align-items:center;justify-content:space-between;margin:auto;gap:28px}.top-nav{display:flex;align-items:center;gap:6px}.top-nav a{display:flex;gap:9px;align-items:center;font-size:14px;font-weight:750;padding:13px 17px;border-radius:13px;min-height:46px;color:#61586e}.top-nav a:hover,.top-nav a[aria-current=page]{background:#efebf9;color:#6443b8}.player-main{max-width:1480px;margin:auto;padding:24px 42px 0;outline:none}.play-hero{display:grid;grid-template-columns:1.1fr .9fr;background:#eeebfa;border:1px solid #e0d7f1;border-radius:32px;min-height:404px;padding:44px 54px;position:relative;overflow:hidden;box-shadow:0 8px 0 #e8e0f4}.play-hero:after{content:"";position:absolute;right:-130px;top:-130px;width:660px;height:660px;border:70px solid #ffffff25;border-radius:50%;pointer-events:none}.hero-copy{position:relative;z-index:2;align-self:center}.hero-eyebrow{display:flex;align-items:center;gap:8px;font-size:12px;color:#705993;font-weight:700;margin-bottom:18px}.tiny-star{color:#8a64d6;display:inline-flex}.hero-copy h1{font-size:58px;line-height:1.15;letter-spacing:-3.5px;font-weight:900}.hero-copy h1 span{color:#6b46bd}.hero-copy>p{color:#736780;font-size:15px;line-height:1.9;margin:21px 0 25px}.hero-cta{min-width:172px;min-height:49px;font-size:14px}.hero-foot{display:flex;gap:20px;margin-top:23px;font-size:11px;font-weight:600;color:#7d6e94}.hero-foot span{display:flex;align-items:center;gap:7px}.hero-stage{position:relative;display:flex;align-items:center;justify-content:center;min-height:300px;isolation:isolate}.stage-ring{position:absolute;width:300px;height:300px;border-radius:50%;background:#faf7e9;box-shadow:10px 13px 0 #d4c7e9;transform:rotate(-8deg);z-index:-2}.hero-runner{width:290px;height:300px;object-fit:contain;z-index:2;filter:drop-shadow(0 17px 12px #59497922)}.runner-platform{position:absolute;width:190px;height:27px;border-radius:50%;background:#d9c9ae;bottom:20px;box-shadow:0 6px 0 #bdacd0;z-index:-1}.floating-icon{position:absolute;z-index:3}.floating-one{top:8px;right:6%;transform:rotate(12deg)}.floating-two{bottom:17%;left:2%;transform:rotate(-13deg)}.floating-icon .icon-tile{width:49px;height:49px;border-radius:16px}.floating-icon .rom-icon{width:23px;height:23px}.stage-label{position:absolute;right:0;bottom:6px;background:#fffefa;border:1px solid #e0d5e7;border-radius:50px;transform:rotate(-6deg);font-size:11px;font-weight:750;padding:12px 16px;box-shadow:0 4px 0 #d2c5e1;z-index:3;display:flex;gap:8px;align-items:center}.section-title{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:42px 0 20px}.section-title h2{font-size:24px}.text-link{display:inline-flex;align-items:center;gap:10px;min-height:44px;font-size:12px;color:#725795;font-weight:700}.category-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}.category-card{background:#fff;border:1px solid var(--line);border-radius:23px;overflow:hidden;box-shadow:var(--shadow);transition:transform .2s,box-shadow .2s}.category-card:hover{transform:translateY(-4px);box-shadow:0 12px 30px #4f33761c}.category-art{height:115px;position:relative;background:#f1ebff;display:grid;place-items:center;overflow:hidden}.category-card.pink .category-art{background:#faeaf1}.category-card.amber .category-art{background:#fcf1d9}.category-card.mint .category-art{background:#e7f5ee}.category-orbit{position:absolute;left:50%;top:22%;width:90px;height:90px;border-radius:50%;border:1px solid #ffffffaa;transform:translateX(-50%);background:#ffffff55}.category-art .icon-tile{z-index:1;transform:rotate(-7deg);width:61px;height:61px}.category-art .icon-tile .rom-icon{width:30px;height:30px}.category-copy{position:relative;padding:19px 22px 24px}.category-copy h3{font-size:20px;margin-bottom:6px}.category-copy p{color:var(--muted);font-size:12px;max-width:82%;line-height:1.65}.round-arrow{position:absolute;right:19px;top:22px;background:#f5f2fa;border-radius:50%;display:grid;place-items:center;width:29px;height:29px;color:#66527e}.start-tip{display:flex;align-items:center;gap:16px;margin-top:30px;border:1px solid var(--line);border-radius:18px;padding:19px 24px;background:#fff}.start-tip>.rom-icon{color:#8b74aa}.start-tip strong{font-size:13px}.start-tip p{font-size:12px;color:var(--muted);margin-top:3px}.start-tip .btn{margin-left:auto;white-space:nowrap}.player-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:32px 0 25px;color:#8d8198;font-size:11px}.footer-links{display:flex;align-items:center;gap:18px}.text-button{color:inherit;font:inherit;letter-spacing:inherit;border:0;background:transparent;padding:10px 0;min-height:40px}.bottom-nav{display:none}.crumb{display:flex;align-items:center;gap:13px;font-size:12px;color:#8a7e97;margin:0 0 25px;flex-wrap:wrap}.back-button{display:inline-flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:10px;padding:10px 13px;background:white;font-size:12px;font-weight:700;min-height:42px;margin-right:5px}.crumb>a{min-height:42px;display:flex;align-items:center}.crumb [aria-current]{color:#4f425f}.catalog-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin:0 0 29px}.catalog-heading>.searchbox{width:290px;max-width:100%}.catalog-heading>div{position:relative;padding:5px 0 5px 90px;min-height:92px}.catalog-heading .icon-tile{position:absolute;left:0;top:12px}.catalog-heading h1{font-size:35px;margin-bottom:9px}.catalog-heading p{font-size:13px;color:var(--muted)}.category-subnav{display:flex;gap:8px;margin:0 0 20px;flex-wrap:wrap}.service-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.service-card{background:white;border:1px solid var(--line);border-radius:22px;padding:24px;display:flex;flex-direction:column;box-shadow:var(--shadow);transition:.18s;min-height:249px}.service-card:hover{transform:translateY(-3px);border-color:#cab9e5;box-shadow:0 12px 25px #5d34780f}.service-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:23px}.service-card .icon-tile{width:47px;height:47px;border-radius:15px}.service-card .icon-tile .rom-icon{width:22px;height:22px}.service-card h3{font-size:18px;margin-bottom:11px}.service-card p{color:var(--muted);font-size:13px;line-height:1.75;margin-bottom:20px}.card-link{display:flex;gap:10px;align-items:center;font-size:12px;color:#715397;font-weight:700;margin-top:auto}.card-link .rom-icon{margin-left:auto}.catalog-count{color:var(--muted);font-size:12px;margin-top:18px}.service-grid .empty{grid-column:1/-1}.detail-grid{display:grid;grid-template-columns:1.1fr .9fr;background:white;border:1px solid var(--line);border-radius:28px;overflow:hidden;box-shadow:var(--shadow);min-height:380px}.detail-copy{padding:44px}.detail-copy h1{font-size:42px;line-height:1.28;margin:22px 0}.detail-copy>p{color:var(--muted);font-size:14px;line-height:1.9;max-width:510px;margin-bottom:26px}.detail-copy .availability-note{font-size:12px;line-height:1.8;margin-top:21px;margin-bottom:0;display:flex;gap:8px;align-items:flex-start}.availability-note .rom-icon{margin-top:4px;flex-shrink:0}.detail-art{background:linear-gradient(140deg,#f4effc,#eae3f6);display:grid;place-items:center;min-width:0;padding:25px}.detail-art>img{width:100%;height:100%;object-fit:contain;border-radius:15px}.detail-symbol{width:210px;height:210px;background:#ffffff70;border-radius:50%;box-shadow:12px 15px 0 #d8cde8;display:grid;place-items:center}.detail-symbol .icon-tile{width:107px;height:107px;border-radius:31px;transform:rotate(-8deg);box-shadow:inset 0 2px 3px #ffffff99,0 7px 0 var(--t3),0 20px 30px #57416e33}.detail-symbol .rom-icon{width:51px;height:51px}.user-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:17px;padding:0;list-style:none;margin:0}.user-steps li{display:flex;gap:14px;align-items:center;background:white;border:1px solid var(--line);border-radius:15px;padding:20px;font-size:14px}.step-number{display:grid;place-items:center;width:32px;height:32px;border-radius:11px;background:#eee6ff;color:#7751c9;font-size:13px;font-weight:800;flex-shrink:0}.service-note{margin-top:22px}.service-note p{font-size:13px;line-height:1.9}.steps-panel{margin-bottom:25px}.quick-results{margin-top:16px;display:flex;flex-direction:column;gap:5px}.quick-results a{display:flex;align-items:center;gap:13px;padding:13px 12px;border-radius:10px;font-size:13px;min-height:46px}.quick-results a:hover{background:var(--lilac)}.quick-results a .rom-icon:last-child{margin-left:auto}.preview-step-count{display:flex;gap:6px;margin:0 0 28px}.preview-step-count span{height:5px;flex:1;background:#eeebf3;border-radius:5px}.preview-step-count span.active{background:var(--violet)}.preview-visual{text-align:center;padding:22px 8px 30px}.preview-visual h3{font-size:22px;margin:27px 0 15px}.preview-visual p{max-width:390px;margin:auto}.engine-top{display:flex;align-items:center;gap:18px;margin-bottom:18px}.engine-top strong{font-size:15px}.engine-hint{margin-left:auto;font-size:12px;color:var(--muted)}.engine-wrap{background:white;border:1px solid var(--line);border-radius:24px;overflow:hidden}.engine-wrap iframe{display:block;width:100%;height:calc(100dvh - 200px);min-height:500px;border:0}.in-engine .player-footer{display:none}.in-engine .player-main{padding-top:10px}.in-engine .bottom-nav{display:none}.in-engine .player-header{height:72px}
@media(min-width:1700px){.player-main{max-width:1620px}.play-hero{min-height:440px}.hero-copy h1{font-size:66px}.hero-stage{transform:scale(1.07)}}
@media(max-width:1100px){.player-header{padding:0 30px;gap:20px}.top-nav{gap:0}.top-nav a{padding:12px;font-size:13px}.top-nav .rom-icon{display:none}.player-main{padding:20px 28px 0}.play-hero{padding:36px 38px}.hero-copy h1{font-size:49px}.hero-runner{width:250px}.stage-ring{width:250px;height:250px}.floating-one{right:-8%}.floating-two{left:-5%}.category-grid{gap:14px}.category-copy{padding:17px}.category-copy h3{font-size:18px}.category-copy p{font-size:11px}.service-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.detail-copy{padding:32px}}
@media(max-width:760px){.player-header{padding:0 20px;height:74px}.top-nav{display:none}.player-main{padding:17px 18px 78px}.play-hero{border-radius:25px;padding:27px 25px;grid-template-columns:1fr .7fr;min-height:305px}.hero-copy h1{font-size:40px;letter-spacing:-2px}.hero-eyebrow{font-size:10px;margin-bottom:15px;white-space:nowrap}.hero-copy>p{font-size:12px;margin:18px 0 22px}.hero-copy .actions{gap:10px}.hero-copy .btn:not(.primary){display:none}.hero-cta{min-width:155px;font-size:13px;padding:12px 15px}.hero-foot{display:none}.hero-stage{min-height:220px}.hero-runner{width:180px;max-width:none;height:220px}.stage-ring{width:185px;height:185px}.runner-platform{width:130px;bottom:18px;height:18px}.floating-icon .icon-tile{width:34px;height:34px;border-radius:11px}.floating-icon .rom-icon{width:16px;height:16px}.floating-one{top:15px;right:-12px}.floating-two{bottom:30px;left:0}.stage-label{display:none}.section-title{margin-top:34px;margin-bottom:18px}.section-title h2{font-size:23px}.section-title .overline{font-size:10px}.text-link{font-size:11px}.category-grid{grid-template-columns:repeat(2,1fr);gap:14px}.category-art{height:94px}.category-art .icon-tile{width:52px;height:52px;border-radius:17px}.category-art .rom-icon{width:25px;height:25px}.category-copy h3{font-size:18px}.category-copy p{font-size:12px;max-width:100%;padding-right:7px}.category-copy{min-height:98px;padding:15px 17px}.round-arrow{width:24px;height:24px;right:14px;top:14px}.round-arrow .rom-icon{width:11px}.category-copy h3{padding-right:20px}.start-tip{padding:17px;align-items:flex-start;gap:12px}.start-tip>.rom-icon{width:16px;height:16px;margin-top:3px;flex-shrink:0}.start-tip .btn{display:none}.start-tip p{font-size:11px}.start-tip strong{font-size:12px}.player-footer{flex-direction:column;align-items:flex-start;font-size:10px;padding-top:27px;gap:6px}.footer-links{gap:14px;flex-wrap:wrap}.bottom-nav{position:fixed;bottom:0;left:0;right:0;display:flex;align-items:center;justify-content:space-around;background:#fffffff7;border-top:1px solid var(--line);padding:7px 7px calc(8px + env(safe-area-inset-bottom));backdrop-filter:blur(15px);z-index:40;box-shadow:0 -5px 25px #29243806}.bottom-nav a{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;flex:1;font-size:10px;color:#867a96;font-weight:650;min-height:49px;border-radius:13px}.bottom-nav a[aria-current=page]{color:var(--violet);background:#f3eefb}.bottom-nav .rom-icon{width:19px;height:19px}.catalog-heading{flex-direction:column;align-items:stretch;gap:18px;margin-bottom:22px}.catalog-heading>.searchbox{width:100%}.catalog-heading>div{padding-left:74px;min-height:84px}.catalog-heading h1{font-size:29px}.catalog-heading p{font-size:12px}.catalog-heading .icon-tile{width:51px;height:51px;border-radius:17px}.catalog-heading .rom-icon{width:24px;height:24px}.crumb{gap:8px;font-size:11px;margin-bottom:17px}.back-button{font-size:11px;padding:9px 12px;margin-right:0}.service-grid{gap:13px}.service-card{padding:19px 16px;border-radius:18px;min-height:256px}.service-card h3{font-size:17px}.service-card p{font-size:12px;line-height:1.75}.service-card-top{flex-direction:column;gap:13px;margin-bottom:17px}.service-card .icon-tile{width:44px;height:44px;border-radius:14px}.service-card .badge{font-size:10px}.card-link{font-size:11px;gap:5px}.card-link .rom-icon{width:11px;height:11px}.detail-grid{display:flex;flex-direction:column}.detail-copy{padding:27px 25px;order:1}.detail-art{height:170px;order:0;padding:20px}.detail-symbol{width:124px;height:124px;box-shadow:7px 7px 0 #d8cde8}.detail-symbol .icon-tile{width:70px;height:70px;border-radius:22px}.detail-symbol .rom-icon{width:35px;height:35px}.detail-copy h1{font-size:33px;margin:21px 0}.detail-copy>p{font-size:13px}.detail-copy .availability-note{font-size:11px}.user-steps{grid-template-columns:1fr;gap:11px}.user-steps li{font-size:13px;padding:16px}.engine-top{margin:12px;gap:13px}.engine-hint{display:none}.engine-wrap{border-radius:0;border:0}.engine-wrap iframe{height:calc(100dvh - 132px);min-height:0}.in-engine .player-header{height:68px}.in-engine .player-header .actions .icon-btn:first-child{display:none}.in-engine .player-main{padding:0}.in-engine .engine-top .btn{min-height:40px;padding:9px 12px}.in-engine .engine-top{margin:10px 14px}.in-engine .player-main:focus{outline:none}}
@media(max-width:390px){.player-header{padding:0 17px;gap:10px}.player-header .actions{gap:6px}.player-header .icon-btn{width:38px;height:42px}.player-main{padding-left:15px;padding-right:15px}.play-hero{padding:24px 21px;grid-template-columns:1fr 105px;min-height:299px}.hero-copy h1{font-size:35px}.hero-eyebrow{font-size:9px;letter-spacing:-.02em}.hero-runner{width:156px;height:195px;margin-left:10px}.stage-ring{width:154px;height:154px;left:-9px}.floating-one{right:-5px;top:17px}.floating-two{left:-8px;bottom:25px}.hero-copy>p{font-size:11px}.hero-cta{min-width:137px;padding:11px 13px;font-size:12px}.hero-cta .rom-icon:last-child{display:none}.hero-stage{margin-left:0}.category-copy{padding:14px}.category-copy h3{font-size:17px}.category-copy p{font-size:11px}.category-grid{gap:11px}.service-grid{gap:10px}.service-card{padding:17px 13px}.service-card h3{font-size:16px}.service-card p{font-size:11px}.section-title h2{font-size:21px}}
/* S24: rights explanations need a full reading column on a phone. */
@media(max-width:600px){.essential-guide .service-grid{grid-template-columns:minmax(0,1fr)}}

/* User-facing full-viewport play/watch surfaces. No internal release labels. */
body.in-shorts{overflow:hidden;background:#151521;color:#fff}body.in-shorts .skip{z-index:300}body.in-shorts #root{height:100dvh}.shorts-root{height:100dvh;position:relative;background:#161724;isolation:isolate}.shorts-root [hidden]{display:none!important}.shorts-root button,.shorts-root a{font:inherit;-webkit-tap-highlight-color:transparent}.shorts-root button{cursor:pointer}.shorts-root :focus-visible{outline:3px solid #ffe49a;outline-offset:4px}.shorts-header{position:absolute;top:0;left:0;right:0;height:86px;padding:22px 36px;display:flex;align-items:center;justify-content:space-between;z-index:20;background:linear-gradient(#111220a6,transparent);pointer-events:none}.shorts-header>*{pointer-events:auto}.shorts-brand{display:flex;flex-direction:column;color:#fff;text-decoration:none;font-weight:950;font-size:29px;line-height:1;letter-spacing:-1px;text-shadow:0 2px 7px #0003}.shorts-brand span{font-size:10px;letter-spacing:1.2px;font-weight:600;margin-top:7px}.shorts-tabs{position:absolute;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:5px;border-radius:100px;padding:5px;background:#2021357a;backdrop-filter:blur(18px);border:1px solid #ffffff26;box-shadow:0 5px 25px #1b213420}.shorts-tabs a{color:#ffffffbc;font-size:16px;font-weight:800;display:flex;align-items:center;gap:9px;padding:12px 24px;text-decoration:none;white-space:nowrap;border-radius:100px}.shorts-tabs a[aria-current]{background:#fff;color:#30243d;box-shadow:0 2px 5px #0001}.shorts-section-name{position:absolute;font-size:11px;top:-22px;left:50%;transform:translateX(-50%);letter-spacing:2px;font-weight:700;color:#fff}.shorts-tools{display:flex;gap:10px}.shorts-tool,.round-action{border:1px solid #fff4;background:#1d27395c;backdrop-filter:blur(14px);width:46px;height:46px;display:inline-flex;align-items:center;justify-content:center;border-radius:16px;color:#fff;transition:transform .14s,background .14s;flex-shrink:0}.round-action:hover,.shorts-tool:hover{background:#3c3a52cc;transform:translateY(-1px)}.shorts-feed{height:100%;overflow-y:auto;scroll-snap-type:y mandatory;overscroll-behavior-y:contain;scrollbar-width:none;touch-action:pan-y pinch-zoom}.shorts-feed::-webkit-scrollbar{display:none}.shorts-item{height:100dvh;min-height:100dvh;position:relative;scroll-snap-align:start;scroll-snap-stop:always;overflow:hidden;isolation:isolate}.play-item{background:linear-gradient(135deg,#7ab6d4,#b0d3d5)}.play-item.pink{background:linear-gradient(130deg,#8e7fac,#eed1c2)}.play-item.violet{background:linear-gradient(130deg,#2b365b,#93b8c9)}.play-scene{position:absolute;inset:0;overflow:hidden}.play-scene canvas{display:block;width:100%;height:100%;outline:0}.course-teaser{position:absolute;width:100%;height:100%;object-fit:contain;background:#1c253036}.play-intro{position:absolute;z-index:5;bottom:8.5vh;left:7vw;max-width:580px;text-shadow:0 2px 18px #11202b35}.play-item:has(.play-intro:not([hidden])):after{content:'';position:absolute;inset:40% 0 0;background:linear-gradient(transparent,#1c2236b8);pointer-events:none;z-index:1}.intro-tag{font-size:13px;font-weight:700;display:flex;align-items:center;gap:9px;color:#fff5d9;margin-bottom:15px;letter-spacing:.3px}.intro-tag span{opacity:.5}.play-intro h1{font-size:clamp(34px,4.7vw,66px);font-weight:900;letter-spacing:-2px;margin:0 0 12px;color:#fff;line-height:1.1;word-break:keep-all}.intro-lead{font-size:20px;font-weight:750;margin:0 0 8px;letter-spacing:-.5px}.intro-description{font-size:14px;margin:0 0 25px;color:#edf2ffd9;line-height:1.7}.intro-actions{display:flex;align-items:center;gap:12px}.race-start{display:inline-flex;align-items:center;justify-content:center;gap:12px;border:0;text-decoration:none;background:#ffe397;color:#3a2b33;box-shadow:0 5px 0 #bc945b,0 12px 30px #11132833;border-radius:18px;padding:17px 24px;font-weight:850!important;font-size:17px!important;min-height:54px;letter-spacing:-.2px;transition:transform .13s,box-shadow .13s}.race-start:hover{background:#ffebac;transform:translateY(-2px)}.race-start:active{transform:translateY(3px);box-shadow:0 2px 0 #bc945b}.race-start.compact{min-height:46px;font-size:14px!important;padding:13px 19px;border-radius:14px;box-shadow:0 3px 0 #bc945b}.local-play-note{display:block;font-size:12px;color:#f2f3fed6;margin-top:18px}.shorts-swipe-hint{position:absolute;bottom:21px;left:50%;transform:translateX(-50%);font-size:11px;display:flex;align-items:center;gap:7px;white-space:nowrap;color:#fff9;z-index:8}.shorts-navigation{position:absolute;right:34px;top:48%;display:flex;align-items:center;flex-direction:column;gap:13px;z-index:18}.shorts-pagination{font-size:12px;font-variant-numeric:tabular-nums;color:#fff8}.scroll-label{font-size:10px;writing-mode:vertical-rl;letter-spacing:2px;color:#fff7;margin-top:7px}.scene-loading{display:grid;place-content:center;position:absolute;inset:0;color:#fff9}.shorts-empty{height:100dvh;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:16px;color:#fff;padding:30px;text-align:center}.shorts-empty h1{font-size:26px;color:#fff}.shorts-empty p{color:#fff9;line-height:1.8}.race-overlay{position:absolute;inset:0;z-index:9;pointer-events:none}.race-top{position:absolute;top:100px;left:30px;display:flex;align-items:center;gap:10px}.race-top>*{pointer-events:auto}.lap-chip,.position-chip{border:1px solid #ffffff55;background:#172e3b9e;backdrop-filter:blur(10px);padding:8px 15px;border-radius:15px;display:flex;gap:8px;align-items:baseline;box-shadow:0 5px 15px #192d3220}.lap-chip strong,.position-chip strong{font-size:26px;font-weight:900;font-variant-numeric:tabular-nums}.lap-chip span,.position-chip span{font-size:12px;font-weight:700;color:#fff9}.position-chip strong{color:#ffe69a}.rule-pill{position:absolute;left:50%;transform:translateX(-50%);top:105px;border:1px solid #fff8;padding:10px 19px;border-radius:14px;background:#fff4dbf5;color:#3a3b52;box-shadow:0 4px 0 #988b6947;display:flex;align-items:center;gap:9px;font-size:14px;font-weight:850;white-space:nowrap}.rule-next{position:absolute;top:157px;left:50%;transform:translateX(-50%);background:#27203e99;border-radius:10px;font-size:12px;font-weight:700;padding:5px 10px;white-space:nowrap}.rule-next:empty{display:none}.lap-map{width:94px;height:94px;position:absolute;top:98px;right:105px;background:#1b213581;border:1px solid #fff3;backdrop-filter:blur(10px);border-radius:23px;box-shadow:0 8px 25px #0002}.map-road{stroke:#fffd;stroke-width:9;fill:none;opacity:.3}.map-progress{stroke:#ffde97;stroke-width:2;fill:none;opacity:.65}.lap-map text{fill:#fff9;font-size:9px;font-weight:900;letter-spacing:.5px}.race-cue{position:absolute;top:27%;left:50%;transform:translateX(-50%) translateY(8px);opacity:0;padding:10px 19px;background:#293245b0;backdrop-filter:blur(8px);color:#fff9d9;border-radius:14px;font-size:16px;font-weight:800;transition:opacity .15s,transform .15s;white-space:nowrap}.race-cue.show{opacity:1;transform:translateX(-50%) translateY(0)}.draft-note{position:absolute;bottom:155px;left:50%;transform:translateX(-50%);font-size:13px;color:#fff8c4;background:#473466a8;border-radius:13px;padding:6px 12px;white-space:nowrap}.draft-note:empty{display:none}.race-controls{position:absolute;bottom:48px;left:5vw;right:5vw;display:flex;justify-content:space-between;align-items:flex-end;pointer-events:none}.steer-controls,.action-controls{display:flex;gap:12px;align-items:flex-end;pointer-events:auto}.race-controls button{border:1px solid #ffffff85;border-radius:21px;width:70px;height:64px;color:#fff;background:linear-gradient(#4a5b75e8,#27344bdc);box-shadow:0 5px 0 #1b21388c,0 7px 18px #13202a44;backdrop-filter:blur(8px);display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;touch-action:none;user-select:none}.race-controls button.pressed{transform:translateY(4px);box-shadow:0 1px 0 #111b;filter:brightness(1.22)}.race-controls button span{font-size:11px;font-weight:750}.race-controls .small-control{width:51px;height:48px;border-radius:15px;background:linear-gradient(#4a5b75bb,#28344ddd)}.race-controls .jump-control{background:linear-gradient(#b6a2e8ed,#7566a9ec)}.race-controls .turbo-control{background:linear-gradient(#ffdc85f2,#d79852f2);color:#4f3240;position:relative;overflow:hidden;width:78px;height:74px}.turbo-fill{position:absolute;inset:0;background:#fff7;transform-origin:center bottom;pointer-events:none}.turbo-control>svg,.turbo-control>span:last-child{position:relative}.race-progress{position:absolute;bottom:0;height:3px;background:#ffffff40;left:0;right:0}.race-progress i{height:100%;display:block;background:#ffe59b;box-shadow:0 0 12px #ffd683}.race-result-layer{position:absolute;inset:0;z-index:15;display:grid;place-items:center;padding:94px 20px 25px;background:#11182b3a;backdrop-filter:blur(7px)}.race-sheet{color:#342e46;background:linear-gradient(150deg,#fffef8,#eee9f8);border:1px solid #fff9;border-radius:28px;box-shadow:0 30px 100px #11233c45;text-align:center;padding:30px;width:min(380px,100%);max-height:100%;overflow-y:auto}.race-sheet h2{font-size:27px;letter-spacing:-1px;line-height:1.3;margin:12px 0}.race-sheet p{color:#696478;font-size:14px;line-height:1.8;margin:10px 0 20px}.race-sheet .eyebrow{font-size:11px;letter-spacing:2px;font-weight:750;color:#847997}.race-sheet .race-start{width:100%;font-size:15px!important}.plain-action{border:0;background:none;padding:13px;color:#70677e;font-size:13px;display:block;margin:8px auto 0;min-height:40px}.finish-emblem{display:inline-flex;padding:20px;color:#a9783d;background:linear-gradient(#ffebae,#f0cf89);border-radius:22px;box-shadow:0 4px 0 #d5b87b}.finish-sheet h2{font-size:60px;margin:0}.finish-sheet h2 small{font-size:18px;margin-left:7px}.finish-metrics{display:flex;justify-content:center;gap:27px;font-size:11px;color:#857b91;margin-bottom:24px}.finish-metrics span{display:flex;flex-direction:column;gap:4px}.finish-metrics strong{font-size:19px;color:#41394f;font-variant-numeric:tabular-nums}.finish-secondary{display:flex;align-items:center;justify-content:center;gap:10px;background:#fff;color:#665084;border:1px solid #cfc3e3;border-radius:16px;min-height:49px;width:100%;margin-top:15px;font-weight:800;font-size:14px}.finish-sheet>small{display:block;color:#958b9e;font-size:10px;margin-top:10px}.watch-item{background:radial-gradient(ellipse at 50% 38%,#36364a,#151520 80%)}.watch-video-area{position:relative;width:min(100%,56.25dvh);height:100%;margin:auto;overflow:hidden;box-shadow:0 0 70px #0003}.watch-video-area video{width:100%;height:100%;object-fit:contain;display:block}.video-toggle{position:absolute;inset:0;border:0;background:transparent;color:#fff;display:grid;place-items:center}.video-toggle>span{display:grid;place-items:center;width:80px;height:80px;background:#111a3e77;border:1px solid #fff5;border-radius:50%;backdrop-filter:blur(6px);transition:opacity .15s}.video-playing .video-toggle>span{opacity:0}.video-toggle:focus-visible>span{opacity:1}.watch-gradient{position:absolute;inset:48% 0 0;background:linear-gradient(transparent,#151522c9);pointer-events:none}.watch-caption{position:absolute;bottom:52px;left:25px;right:70px;z-index:4;color:#fff;text-shadow:0 2px 14px #0004}.creator-label{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:800}.creator-label small{font-weight:450;font-size:10px;color:#fff9}.watch-caption h1{font-size:23px;color:#fff;line-height:1.35;margin:12px 0 7px;letter-spacing:-.7px;word-break:keep-all}.watch-caption p{color:#f1effde0;font-size:12px;line-height:1.7;margin:0 0 18px}.watch-actions{position:absolute;right:13px;bottom:92px;display:flex;flex-direction:column;align-items:center;gap:5px;color:#fff;z-index:5}.watch-actions span{font-size:10px;font-weight:700;margin-bottom:12px}.watch-actions .round-action{border-radius:17px;width:44px;height:44px}.watch-actions .chosen{color:#ff91b6;background:#7d365977}.video-scrub{position:absolute;bottom:22px;left:20px;right:20px;z-index:6}.video-scrub input{width:100%;height:16px;accent-color:#ffe09a;cursor:pointer}.clip-review{width:100%;max-height:42vh;object-fit:contain;background:#181826;border-radius:15px}.clip-title-label{display:flex;flex-direction:column;gap:8px;margin:18px 0;font-size:13px;font-weight:700}.clip-title-label input{padding:12px;border:1px solid #ded8e8;border-radius:12px;font:inherit}.local-clip-list{display:flex;flex-direction:column;gap:12px}.local-clip-row{padding:14px;border:1px solid #e8e3ee;border-radius:12px;display:flex;flex-wrap:wrap;align-items:center;gap:10px}.local-clip-row>span{display:flex;align-items:center;gap:7px;flex:1;font-size:13px;min-width:100%}.shorts-help h3{font-size:15px;margin:20px 0 8px}.shorts-help p{font-size:13px;line-height:1.9}.in-shorts dialog{color:#322c40}.in-shorts .toast{z-index:120}
@media(min-width:1100px){.watch-video-area{width:min(100%,56.25dvh)}.watch-caption{bottom:65px}.shorts-navigation{right:calc(50% - 28.125dvh - 90px)}.play-item~.shorts-navigation{right:34px}.shorts-root:has(.play-item) .shorts-navigation{right:34px}.play-scene:has(.course-teaser){background:linear-gradient(90deg,#384455,#162439)}.play-scene .course-teaser{width:auto;min-width:40%;height:100%;left:50%;transform:translateX(-50%);opacity:.94}.play-item .play-intro{background:#19253536;backdrop-filter:blur(3px);border:1px solid #fff2;border-radius:26px;padding:27px 30px;bottom:10vh;left:5vw}.play-item:has(.play-intro:not([hidden])):after{inset:0;background:linear-gradient(90deg,#1d2738b0,transparent 68%)}.intro-description{max-width:390px}}
@media(max-width:700px){.shorts-header{height:99px;padding:14px 17px;align-items:flex-start}.shorts-brand{font-size:22px;margin-top:3px}.shorts-brand span{display:none}.shorts-tabs{top:54px;padding:4px;gap:3px}.shorts-tabs a{font-size:14px;padding:10px 20px;gap:7px}.shorts-section-name{display:none}.shorts-tools{gap:7px}.shorts-tools .shorts-tool{width:34px;height:34px;border-radius:12px;background:#24364861}.play-intro{bottom:11vh;left:24px;right:23px;max-width:none}.play-intro h1{font-size:38px;letter-spacing:-1.7px}.intro-tag{font-size:11px;margin-bottom:12px}.intro-lead{font-size:17px}.intro-description{font-size:12px;margin-bottom:23px;max-width:320px}.race-start{padding:16px 22px;font-size:16px!important;min-height:54px}.intro-actions .round-action{width:50px;height:50px}.shorts-swipe-hint{bottom:calc(23px + env(safe-area-inset-bottom))}.shorts-navigation{right:12px;top:45%;gap:9px}.shorts-navigation .round-action{width:32px;height:32px;border-radius:12px;background:#2b344444;border-color:#fff2}.shorts-pagination{font-size:9px}.scroll-label{display:none}.shorts-root:has(.watch-item) .shorts-navigation{display:none}.race-top{top:110px;left:16px;gap:6px}.lap-chip,.position-chip{padding:6px 10px;border-radius:13px;gap:5px}.lap-chip strong,.position-chip strong{font-size:23px}.lap-chip span,.position-chip span{font-size:10px}.race-top .shorts-tool{width:36px;height:38px;border-radius:13px}.lap-map{width:65px;height:65px;right:15px;top:110px;border-radius:17px}.rule-pill{top:170px;font-size:12px;padding:9px 14px;max-width:92vw}.rule-next{top:212px;font-size:10px}.race-cue{top:31%;font-size:13px;padding:9px 12px;max-width:94%;white-space:normal;text-align:center}.race-controls{bottom:calc(59px + env(safe-area-inset-bottom));left:14px;right:14px;gap:12px}.steer-controls{gap:6px;align-self:flex-end}.steer-controls button{width:48px;height:52px;border-radius:16px}.action-controls{display:grid;grid-template-columns:42px 58px 58px;grid-template-rows:40px 58px;gap:7px;align-items:end}.action-controls .small-control{width:42px;height:40px;border-radius:13px}.action-controls .small-control:first-child{grid-column:1;grid-row:2}.action-controls .small-control:nth-child(2){grid-column:1;grid-row:1}.action-controls .jump-control{grid-column:2;grid-row:2;width:58px;height:58px;border-radius:18px}.action-controls .turbo-control{grid-column:3;grid-row:2;width:58px;height:67px;border-radius:18px}.race-controls button span{font-size:9px}.draft-note{bottom:183px;font-size:11px}.race-result-layer{padding-top:109px}.race-sheet{padding:24px;max-width:340px;border-radius:24px}.race-sheet h2{font-size:23px}.finish-sheet h2{font-size:54px}.finish-sheet .eyebrow{margin-bottom:4px}.finish-emblem{padding:16px;border-radius:19px}.finish-sheet p{font-size:12px;margin-bottom:16px}.watch-video-area{width:100%;height:100%}.watch-caption{bottom:calc(57px + env(safe-area-inset-bottom));left:19px;right:65px}.watch-caption h1{font-size:21px}.watch-caption p{font-size:11px;line-height:1.6;margin-bottom:13px}.creator-label{font-size:11px;flex-wrap:wrap}.race-start.compact{font-size:13px!important;gap:8px;padding:12px 16px;min-height:43px;border-radius:13px}.watch-actions{bottom:calc(111px + env(safe-area-inset-bottom));right:12px}.watch-actions .round-action{width:40px;height:40px;border-radius:15px}.watch-actions span{font-size:9px;margin-bottom:9px}.video-scrub{bottom:calc(20px + env(safe-area-inset-bottom))}.watch-gradient{inset:45% 0 0}.local-play-note{font-size:10px;margin-top:15px}}
@media(max-height:620px) and (orientation:landscape){.shorts-header{height:66px;padding:12px 25px}.shorts-tabs a{padding:9px 22px}.race-top{top:72px;left:18px}.rule-pill{top:76px}.lap-map{top:72px;width:66px;height:66px}.race-controls{bottom:25px;left:30px;right:30px}.race-controls button{height:50px;width:58px}.race-controls .turbo-control{height:59px;width:64px}.play-intro{bottom:55px;left:30px;padding:18px!important}.play-intro h1{font-size:31px}.intro-description{display:none}.shorts-swipe-hint{bottom:8px}.finish-sheet{padding:16px;display:grid;grid-template-columns:1fr 1fr;gap:5px;width:540px;max-width:85vw}.finish-emblem{display:none}.finish-sheet .eyebrow,.finish-sheet>p,.finish-metrics,.finish-sheet>small{grid-column:1/-1}.finish-sheet h2{font-size:35px;grid-column:1/-1}.finish-sheet>p{margin:0}.finish-metrics{margin-bottom:5px}.finish-sheet .finish-secondary{margin:0}.finish-sheet .plain-action{grid-column:1/-1;margin:0;padding:4px}.race-result-layer{padding-top:73px}}
@media(prefers-reduced-motion:reduce){.shorts-root *{transition:none!important;scroll-behavior:auto!important}.race-start:hover{transform:none}}

.shorts-brand{flex-direction:row;align-items:center;gap:11px}.shorts-brand .brand-symbol{display:flex;align-items:center;justify-content:center;width:43px;height:43px;border-radius:14px;background:linear-gradient(145deg,#e2c9fb,#9581c2);box-shadow:0 4px 0 #574667,0 8px 19px #14213538;color:#fff;border:1px solid #fff5;transform:rotate(-5deg)}.shorts-brand .brand-copy{display:flex;flex-direction:column;gap:3px;margin:0;font-size:27px;letter-spacing:-1px}.shorts-brand .brand-copy strong{color:#fff;font-size:27px}.shorts-brand .brand-copy small{font-size:9px;color:#fff;letter-spacing:1px}.shorts-brand .brand-symbol svg{display:block}.shorts-brand span{margin:0}.play-scene:has(canvas){background:transparent}
@media(max-width:700px){.shorts-brand{gap:7px}.shorts-brand .brand-symbol{display:flex;width:29px;height:29px;border-radius:9px}.shorts-brand .brand-symbol svg{width:17px;height:17px}.shorts-brand .brand-copy{display:flex}.shorts-brand .brand-copy strong{font-size:20px}.shorts-brand .brand-copy small{display:none}}

@media(min-width:701px){.shorts-section-name{position:static;transform:none;letter-spacing:0;font-size:12px;margin:0 10px 0 13px;color:#fffc}}

/* S24: a transient message must not cover pause-sheet actions on short phones. */
.in-shorts:has(.pause-sheet) .toast{top:132px;bottom:auto;max-width:calc(100vw - 32px);padding:8px 12px;font-size:12px}
@media(max-height:440px){.in-shorts:has(.pause-sheet) .toast{top:65px;left:20px;max-width:230px;transform:none}}

/* ROM S20: shared personal-space patterns. Static materials, restrained depth,
   no infinite decorative animation. Keep the gameplay/video viewport intact. */
:root{--rom-surface:#fff;--rom-ink:#28243d;--rom-muted:#656578;--rom-accent:#7950d9;--rom-line:#e5e1ee;--rom-soft:#f5f2fb;--rom-radius:24px}
html{scroll-behavior:auto}body{word-break:keep-all;overflow-wrap:break-word}button,a,input{touch-action:manipulation}.btn{min-height:44px}.player-main{max-width:1400px}.player-header .brand-symbol{box-shadow:inset 0 2px 1px #fff9,0 4px 0 #c5b2e4,0 8px 20px #9a7cbd16}.category-card{transition:transform .16s,box-shadow .16s}.category-card:hover{transform:translateY(-3px)}.icon-tile{box-shadow:inset 0 2px 1px #fff9,0 5px 0 #56447312,0 8px 15px #79638613}.power-saving .shorts-tabs,.power-saving .shorts-tool,.power-saving .round-action,.power-saving .lap-chip,.power-saving .position-chip{backdrop-filter:none}.reduced-motion *, .reduced-motion *::before,.reduced-motion *::after{animation:none!important;scroll-behavior:auto!important;transition:none!important}.reduced-motion .category-card:hover{transform:none}
.home-library-banner{margin-top:32px;padding:26px 30px;border:1px solid #dceae5;border-radius:24px;background:linear-gradient(110deg,#edf8f3,#f8f6ff);display:flex;align-items:center;gap:20px}.home-library-banner>div{flex:1}.home-library-banner h2{font-size:20px;line-height:1.4;margin:0 0 5px}.home-library-banner p{font-size:14px;color:var(--rom-muted);margin:0}.library-heading{display:flex;gap:20px;align-items:center;margin:36px 0}.library-heading>.icon-tile{width:76px;height:76px;border-radius:24px;flex-shrink:0}.library-heading h1{font-size:clamp(28px,3.4vw,44px);letter-spacing:-1.4px;line-height:1.15;margin:7px 0 12px}.library-heading p{font-size:15px;color:var(--rom-muted);line-height:1.7;margin:0}.library-portals{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.library-portal{border:1px solid var(--rom-line);background:var(--rom-surface);border-radius:var(--rom-radius);padding:32px;position:relative;color:var(--rom-ink);text-decoration:none;min-height:235px;transition:transform .16s,box-shadow .16s;box-shadow:0 7px 0 #ebe7f0,0 20px 44px #4c396006;overflow:hidden}.library-portal:hover{transform:translateY(-4px);box-shadow:0 9px 0 #e5dfef,0 22px 44px #4c39600c}.library-portal>.icon-tile{width:68px;height:68px;border-radius:22px;margin-bottom:20px}.library-portal h2{font-size:25px;line-height:1.2;margin:0 0 10px}.library-portal p{font-size:14px;max-width:220px;line-height:1.8;color:var(--rom-muted);margin:0 0 18px}.library-portal .round-arrow{position:absolute;right:28px;bottom:28px}.portal-count{position:absolute;right:24px;top:29px;font-size:12px;color:var(--rom-muted);background:#f6f5fa;padding:7px 11px;border-radius:100px}.device-note{display:flex;gap:14px;align-items:center;margin:34px 0 20px;padding:21px 25px;background:#eef7f4;border:1px solid #dfece7;border-radius:18px;color:#376855}.device-note svg{flex-shrink:0}.device-note strong{font-size:14px}.device-note p{font-size:13px;line-height:1.8;margin:4px 0 0}.library-links{display:flex;gap:12px;align-items:center}.library-toolbar{display:flex;justify-content:space-between;gap:20px;align-items:center;margin:30px 0 20px}.library-toolbar>span{font-size:14px;color:var(--rom-muted)}.history-grid,.clip-library-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.history-card,.clip-library-card{border:1px solid var(--rom-line);background:white;padding:25px;border-radius:22px;color:var(--rom-ink);text-decoration:none;box-shadow:0 4px 0 #edeaf2;display:block}.history-card:hover{border-color:#b5a1d8}.history-card-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.history-card h2,.clip-library-card h2{font-size:21px;line-height:1.4;margin:24px 0 18px}.history-stats{display:flex;align-items:baseline;gap:14px}.history-stats strong{font-size:38px;letter-spacing:-1px;line-height:1}.history-stats small{font-size:15px;margin-left:6px}.history-stats span{color:var(--rom-muted);font-size:15px}.history-card p,.clip-library-card p{font-size:13px;color:var(--rom-muted);margin:16px 0}.history-detail{display:grid;grid-template-columns:1.05fr 1fr;border:1px solid var(--rom-line);border-radius:28px;overflow:hidden;background:#fff;margin-top:32px;box-shadow:0 8px 0 #eae5f2}.history-detail-hero{padding:44px;background:linear-gradient(150deg,#f3edff,#eef9f6);display:flex;align-items:flex-start;flex-direction:column}.history-detail-hero>.icon-tile{width:94px;height:94px;border-radius:30px;margin-bottom:32px}.history-detail-hero h1{font-size:33px;line-height:1.3;letter-spacing:-1px;margin:10px 0}.history-detail-hero p{color:var(--rom-muted);font-size:13px;margin:0}.history-detail-score{display:flex;gap:28px;align-items:center;margin-top:36px}.history-detail-score>strong{font-size:88px;line-height:1;letter-spacing:-5px}.history-detail-score small{font-size:23px;margin-left:8px;letter-spacing:0}.history-detail-score b{font-size:26px}.history-detail-score span{display:block;font-size:13px;color:var(--rom-muted);margin-top:8px}.history-detail-actions{display:flex;flex-direction:column;gap:14px;padding:44px;justify-content:center}.history-detail-actions h2{font-size:23px;margin:0 0 3px}.history-detail-actions p{font-size:15px;line-height:1.9;color:var(--rom-muted);margin:0 0 15px}.history-detail-actions small{font-size:12px;color:var(--rom-muted);line-height:1.8;margin-top:10px}.history-detail-actions .btn{justify-content:center;min-height:50px}.delete-zone{display:flex;align-items:center;justify-content:space-between;margin:32px 0;color:var(--rom-muted);font-size:12px;gap:16px}.danger{color:#a73745!important}.btn.danger{background:#fdebf0;border:1px solid #ebcad3}.library-empty{text-align:center;border:1px dashed #d8cde8;background:#faf8fe;border-radius:26px;padding:55px 24px}.library-empty>.icon-tile{width:76px;height:76px;margin:0 auto 24px;border-radius:24px}.library-empty h2{font-size:24px;line-height:1.4;margin:0 0 12px}.library-empty p{font-size:14px;line-height:1.8;color:var(--rom-muted);margin:0 0 24px}.library-loading{display:flex;justify-content:center;align-items:center;gap:14px;min-height:320px;color:var(--rom-muted)}.device-save-state{font-size:12px;color:var(--rom-muted);margin-top:24px}.import-label{position:relative;overflow:hidden;cursor:pointer}.import-label input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%}.import-summary{max-height:240px;overflow:auto;line-height:2}.settings-menu{max-width:860px;display:grid;gap:16px}.settings-menu>a{display:flex;align-items:center;gap:24px;border:1px solid var(--rom-line);border-radius:22px;padding:26px;background:white;text-decoration:none;color:var(--rom-ink);box-shadow:0 4px 0 #ece7f3}.settings-menu>a>span:nth-child(2){flex:1}.settings-menu strong{display:block;font-size:21px}.settings-menu small{display:block;font-size:13px;color:var(--rom-muted);margin-top:9px}.settings-panel{max-width:960px;background:white;border:1px solid var(--rom-line);border-radius:26px;padding:34px;box-shadow:0 6px 0 #ece7f3}.settings-panel h2{font-size:23px;margin:25px 0 22px}.settings-panel p{font-size:14px;color:var(--rom-muted);line-height:1.9}.quality-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.quality-choice{display:flex;flex-direction:column;align-items:flex-start;text-align:left;border:2px solid var(--rom-line);background:#fff;border-radius:20px;padding:22px;gap:15px;color:var(--rom-ink);cursor:pointer}.quality-choice.selected{border-color:#9672dc;background:#f8f3ff}.quality-choice strong{font-size:18px}.quality-choice>span:last-child{font-size:12px;color:var(--rom-muted);line-height:1.8}.settings-hint{font-size:12px!important}.settings-panel .switch{padding:19px 0;gap:14px;display:flex;align-items:flex-start}.settings-panel .switch small{display:block;font-size:13px;color:var(--rom-muted);line-height:1.8;margin-top:7px}.settings-panel input[type=checkbox]{width:22px;height:22px;accent-color:#7950d9;flex-shrink:0}.volume-control{display:block;margin:24px 0}.volume-control>span{display:flex;justify-content:space-between;font-size:15px}.volume-control output{font-size:13px;color:var(--rom-muted)}.volume-control input{width:100%;accent-color:#7950d9;min-height:44px;margin-top:14px}.shorts-tools{gap:8px}.shorts-tools .shorts-tool{width:42px;height:42px;min-width:42px}.finish-sheet .plain-action[href]{display:block;text-decoration:none;color:#594c6b;text-align:center;padding:10px}.finish-sheet [data-history-save]{line-height:1.7}.watch-item video{object-fit:contain!important}
@media(max-width:900px){.library-portals{gap:16px}.library-portal{padding:23px}.library-portal h2{font-size:22px}.portal-count{position:static;display:inline-block;margin-bottom:16px}.library-portal>.icon-tile{display:flex}.history-grid,.clip-library-grid{grid-template-columns:repeat(2,1fr)}.history-detail-hero,.history-detail-actions{padding:28px}.shorts-tools .shorts-tool{width:38px;min-width:38px;height:38px}.shorts-header{padding-left:18px;padding-right:18px}}
@media(max-width:600px){.shorts-header .shorts-tools{gap:5px}.shorts-tools .shorts-tool{width:36px;min-width:36px;height:40px;border-radius:13px}.shorts-tools{right:12px}.shorts-header{padding-left:12px;padding-right:12px}.library-heading{align-items:flex-start;gap:14px;margin:24px 0}.library-heading>.icon-tile{width:54px;height:54px;border-radius:18px}.library-heading h1{font-size:28px;letter-spacing:-1px;margin:6px 0 10px}.library-heading p{font-size:13px}.library-portals{grid-template-columns:1fr;gap:17px}.library-portal{padding:24px 24px 24px 99px;min-height:146px}.library-portal>.icon-tile{position:absolute;left:21px;top:25px;width:56px;height:56px;border-radius:18px;margin:0}.portal-count{margin:0 0 10px;font-size:11px;padding:4px 9px}.library-portal h2{font-size:22px;margin-bottom:5px}.library-portal p{font-size:12px;margin:0;max-width:175px}.library-portal .round-arrow{right:20px;bottom:22px}.device-note{padding:18px;margin-top:26px;align-items:flex-start}.device-note p{font-size:12px}.library-toolbar{align-items:flex-start;flex-direction:column;gap:13px}.library-toolbar>.actions{width:100%;display:flex;gap:8px}.library-toolbar .btn{font-size:12px;flex:1;padding:10px 12px}.history-grid,.clip-library-grid{grid-template-columns:1fr}.history-card{padding:23px}.history-card h2{margin:18px 0}.history-detail{grid-template-columns:1fr;border-radius:24px;margin-top:20px}.history-detail-hero{padding:28px}.history-detail-hero>.icon-tile{width:70px;height:70px;margin-bottom:24px}.history-detail-hero h1{font-size:27px}.history-detail-score{margin-top:25px}.history-detail-score>strong{font-size:65px}.history-detail-actions{padding:28px}.delete-zone{align-items:flex-start;flex-direction:column;gap:8px}.library-links{flex-wrap:wrap}.home-library-banner{align-items:flex-start;flex-wrap:wrap;padding:24px}.home-library-banner>div{min-width:190px}.home-library-banner .btn{width:100%;justify-content:center}.settings-menu>a{gap:17px;padding:20px}.settings-menu strong{font-size:18px}.settings-menu small{font-size:12px;line-height:1.7}.settings-panel{padding:22px}.quality-grid{grid-template-columns:1fr}.quality-choice{position:relative;padding:18px 18px 18px 85px;min-height:95px;gap:9px}.quality-choice>.icon-tile{position:absolute;left:18px;top:20px;width:48px;height:48px}.quality-choice>span:last-child{font-size:12px}.library-empty{padding:40px 22px}.library-empty h2{font-size:22px}.volume-control{margin:22px 0}.library-heading .overline{font-size:10px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition:none!important}}

/* S20 touch target correction without reducing the visible play surface. */
.shorts-tools{gap:4px}.shorts-tool{min-width:44px;min-height:44px}.shorts-side-nav button{min-width:44px;min-height:44px}
@media(max-width:680px){.shorts-tool{width:44px;height:44px}.shorts-header{padding-left:12px;padding-right:12px}.shorts-tools{gap:3px}}
/* Same specificity as the inherited mobile theme: touch area is never <44px. */
.shorts-tools .shorts-tool{width:44px;height:44px;min-width:44px;min-height:44px}
.shorts-navigation .round-action{min-width:44px;min-height:44px}
/* A legacy category arrow had top:22px. Explicitly clear it in library cards,
   otherwise a count badge and arrow occupy the same corner. */
.library-portal .round-arrow{top:auto}

/* UX48 settings: short icon-and-word choices; explanation follows selection.
   These scoped overrides retain the existing tokens and add no animation. */
.settings-surface{min-width:0}
.settings-surface .settings-crumb{flex-wrap:wrap;gap:8px}
.settings-surface .settings-crumb a,.settings-surface .settings-crumb button,.settings-surface .settings-return{display:inline-flex;align-items:center;gap:8px;min-height:48px;min-width:48px}
.settings-surface .library-heading>span>.icon-tile{width:64px;height:64px;flex-shrink:0}
.settings-surface .settings-menu{grid-template-columns:repeat(2,minmax(0,1fr))}
.settings-surface .settings-menu>a{min-height:76px;min-width:48px;padding:18px 22px;gap:14px;box-shadow:none;transition:none}
.settings-surface .settings-menu strong{flex:1;min-width:0;font-size:19px}
.settings-surface .settings-menu>a>span{display:inline-flex;flex:0 0 auto}
.settings-surface .quality-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.settings-surface .quality-choice{position:static;flex-direction:row;align-items:center;justify-content:center;min-height:64px;min-width:48px;padding:14px 16px;gap:12px;transition:none}
.settings-surface .quality-choice>span{display:inline-flex;flex-shrink:0;color:inherit}
.settings-surface .quality-choice strong{font-size:17px;line-height:1.4}
.settings-surface .quality-choice.selected{background:var(--rom-shelf-action-selected-surface);border-color:var(--rom-shelf-action-primary)}
.settings-surface .settings-choice-description{padding:14px 16px;margin:16px 0 8px;min-height:56px;border-radius:var(--rom-shelf-radius-control);background:var(--rom-shelf-surface-empty);color:var(--rom-shelf-text-primary);border:1px solid var(--rom-shelf-border-default)}
.settings-surface .switch{min-height:64px;cursor:pointer;align-items:center}
.settings-surface .switch input{accent-color:var(--rom-shelf-action-primary)}
.settings-surface .volume-control input{min-height:48px;accent-color:var(--rom-shelf-action-primary)}
.settings-surface .settings-storage-section+.settings-storage-section{margin-top:28px;padding-top:12px;border-top:1px solid var(--rom-shelf-border-default)}
.settings-surface .settings-folders{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}
.settings-surface .settings-folder{min-height:56px;min-width:48px;justify-content:flex-start;transition:none;transform:none}
.settings-surface .settings-folder>span:nth-child(2){flex:1;text-align:left}
.settings-surface .settings-folder>span[aria-hidden]{display:inline-flex;flex-shrink:0}
.settings-surface .settings-limits{margin-top:16px;border:1px solid var(--rom-shelf-border-default);border-radius:var(--rom-shelf-radius-control);padding:0 16px}
.settings-surface .settings-limits summary{display:flex;align-items:center;gap:10px;min-height:48px;cursor:pointer;font-weight:700}
.settings-surface .settings-limits summary:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.settings-surface .settings-limits ul{margin:4px 0 12px;padding-left:22px;line-height:1.9}
.settings-surface .settings-limits p{margin:0 0 16px}
@media(max-width:520px){.settings-surface .settings-menu,.settings-surface .settings-folders{grid-template-columns:minmax(0,1fr)}.settings-surface .quality-grid{grid-template-columns:minmax(0,1fr)}.settings-surface .quality-choice{justify-content:flex-start}.settings-surface .settings-panel{padding:20px}.settings-surface .settings-menu>a{min-height:64px}.settings-surface .library-heading>span>.icon-tile{width:48px;height:48px}}

.settings-surface .settings-limits summary>span:last-child{margin-left:auto}

/* S21: destination-aware personal record flow. Shared with the existing ROM
   material/spacing scale; no perpetual animation, remote fonts or bitmap cropping. */
:root{--vault-accent:#7252cf;--vault-ink:#29233f;--vault-muted:#696579;--vault-stroke:#e5e0ef}
.visit-banner{display:flex;gap:22px;align-items:center;padding:27px 30px;margin-top:34px;border-radius:24px;border:1px solid #ded6f1;background:linear-gradient(105deg,#f0ebfc 0%,#f6faf7 100%);color:var(--vault-ink);text-decoration:none;box-shadow:0 5px 0 #e8e2f1}
.visit-banner h2{font-size:21px;line-height:1.4;margin:5px 0 4px}.visit-banner p{font-size:13px;margin:0;line-height:1.8;color:var(--vault-muted)}.visit-banner>div{flex:1}.visit-banner-action{font-size:13px;font-weight:700;display:flex;align-items:center;gap:10px}
.vault-hero{display:grid;grid-template-columns:1.1fr 1fr;min-height:390px;margin:30px 0 34px;border-radius:30px;border:1px solid var(--vault-stroke);background:linear-gradient(125deg,#fff 35%,#f1edfb);overflow:hidden;box-shadow:0 8px 0 #eee8f6}
.vault-copy{padding:42px 0 42px 42px;align-self:center}.vault-copy h1{font-size:clamp(32px,3.7vw,52px);line-height:1.2;letter-spacing:-1.5px;margin:16px 0 22px}.vault-copy h1 em{font-style:normal;color:var(--vault-accent)}.vault-copy p{color:var(--vault-muted);font-size:15px;line-height:1.9;max-width:490px}.vault-copy .actions{margin-top:26px}.vault-visual{position:relative;display:flex;align-items:center;justify-content:center;min-height:340px;isolation:isolate}.vault-visual img{width:min(80%,290px);height:auto;object-fit:contain;filter:drop-shadow(0 18px 14px #6c549820);z-index:1}.vault-orbit{width:280px;height:280px;position:absolute;border-radius:50%;border:1px solid #d6c9ef;background:radial-gradient(circle,#f9f7ff 50%,#e8ddfb 100%);box-shadow:0 15px 0 #e4daf21c}.vault-chip{position:absolute;bottom:28px;left:50%;transform:translateX(-50%);z-index:2;padding:10px 15px;border:1px solid #e9e2f3;background:#fff;border-radius:16px;box-shadow:0 4px 0 #e9e3f1;display:flex;gap:8px;align-items:center;white-space:nowrap;font-size:12px;font-weight:700;color:#6b559c}
.vault-promises{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.vault-promises article{border:1px solid var(--vault-stroke);border-radius:24px;background:#fff;padding:28px}.vault-promises h2{font-size:19px;line-height:1.4;margin:22px 0 12px}.vault-promises p{font-size:13px;color:var(--vault-muted);line-height:1.9;margin:0}.vault-promises .icon-tile{width:52px;height:52px;border-radius:18px}
.vault-steps{list-style:none;display:flex;gap:12px;margin:30px 0;padding:0}.vault-steps li{display:flex;gap:9px;align-items:center;border:1px solid var(--vault-stroke);border-radius:16px;padding:13px 18px;color:var(--vault-muted);background:#fff;font-size:13px;flex:1}.vault-steps li>span{width:25px;height:25px;display:grid;place-items:center;flex-shrink:0;background:#f1eff6;border-radius:50%;font-size:12px}.vault-steps [aria-current]{border-color:#bba6e8;background:#f4effc;color:#6240ac;font-weight:700}.vault-steps [aria-current]>span{background:#7954ce;color:#fff}
.vault-consent{display:grid;grid-template-columns:1.2fr 1fr;background:#fff;border:1px solid var(--vault-stroke);border-radius:28px;overflow:hidden;box-shadow:0 7px 0 #eae5f2}.vault-consent>div:first-child{padding:38px}.vault-consent h1{font-size:31px;line-height:1.35;margin:24px 0 16px;letter-spacing:-.9px}.vault-consent p{font-size:14px;line-height:1.9;color:var(--vault-muted)}.vault-consent dl{margin:28px 0 0}.vault-consent dl>div{display:grid;grid-template-columns:100px 1fr;gap:14px;padding:16px 0;border-top:1px solid #ece8f4;font-size:13px;line-height:1.8}.vault-consent dt{color:#6f608b;font-weight:700}.vault-consent dd{margin:0;color:#4f4b61}.vault-consent-action{padding:38px;background:#f6f3fc;display:flex;flex-direction:column;justify-content:center;gap:14px}.vault-consent-action h2{font-size:22px;line-height:1.5;margin:0}.vault-consent-action p{margin:0 0 8px}.vault-consent-action .btn{min-height:50px;justify-content:center}.vault-consent-action .text-link{font-size:13px;align-self:center;padding:10px}.vault-checkbox{display:flex;gap:13px;align-items:flex-start;padding:19px 17px;background:#fff;border:1px solid #ddd3ed;border-radius:17px;font-size:14px;line-height:1.8}.vault-checkbox input{width:22px;height:22px;flex-shrink:0;accent-color:#7954ce;margin-top:1px}.vault-consent button:disabled{cursor:not-allowed;opacity:.55}
.vault-title{margin:34px 0 24px}.vault-title h1{font-size:clamp(28px,3vw,40px);line-height:1.25;letter-spacing:-1px;margin:12px 0 16px}.vault-title p{font-size:14px;line-height:1.9;color:var(--vault-muted)}.vault-toolbar{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:26px 0 22px}.vault-toolbar>span{font-size:14px;color:var(--vault-muted)}.vault-records,.vault-choices{display:grid;gap:14px}.vault-record,.vault-choice{display:flex;align-items:center;gap:22px;padding:23px 27px;border:1px solid var(--vault-stroke);border-radius:23px;background:#fff;color:var(--vault-ink);text-decoration:none;box-shadow:0 4px 0 #ede8f4;transition:transform .15s,border-color .15s}.vault-record:hover,.vault-choice:hover{transform:translateY(-2px);border-color:#b9a5dc}.vault-record-copy,.vault-choice>span:nth-child(2){flex:1;min-width:0}.vault-record strong,.vault-choice strong{display:block;font-size:19px;line-height:1.4}.vault-record small,.vault-choice small{display:block;font-size:12px;line-height:1.8;color:var(--vault-muted);margin-top:8px}.vault-record-status{font-size:12px;color:#34715b;background:#edf8f2;border-radius:99px;padding:8px 11px;white-space:nowrap}.vault-empty{text-align:center;background:#faf8fe;border:1px dashed #d9cfe8;border-radius:28px;padding:48px 26px;margin:30px 0}.vault-empty .icon-tile{margin:0 auto 25px;width:74px;height:74px;border-radius:24px}.vault-empty h1,.vault-empty h2{font-size:26px;line-height:1.4;margin:0 0 16px}.vault-empty p{font-size:14px;line-height:1.9;max-width:600px;margin:0 auto 24px;color:var(--vault-muted)}.vault-empty .actions{justify-content:center}
.vault-detail{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--vault-stroke);border-radius:30px;background:#fff;overflow:hidden;margin:32px 0;box-shadow:0 7px 0 #eae5f2}.vault-detail-main{padding:44px;background:linear-gradient(145deg,#f3edfd,#ecf7f1);display:flex;align-items:flex-start;flex-direction:column}.vault-detail-main>.icon-tile{width:86px;height:86px;border-radius:28px;margin-bottom:28px}.vault-detail-main h1{font-size:32px;letter-spacing:-1px;line-height:1.3;margin:12px 0}.vault-detail-main p{font-size:13px;color:var(--vault-muted)}.vault-duration{font-size:64px;letter-spacing:-2px;line-height:1.2;margin:20px 0}.vault-duration small{font-size:20px;margin-left:7px}.vault-saved{font-size:12px;color:#48785e;line-height:1.8}.vault-detail-next{padding:40px;display:flex;flex-direction:column;gap:14px;justify-content:center}.vault-detail-next h2{font-size:24px;line-height:1.4;margin:0 0 10px}.vault-detail-next p{font-size:14px;line-height:1.9;color:var(--vault-muted);margin:0 0 18px}.vault-detail-next .btn{min-height:50px;justify-content:center}.vault-detail-next .text-button{margin-top:14px;min-height:44px}
.progress-review{text-align:center;padding:18px 5px 25px}.review-orbit{width:68px;height:68px;border-radius:22px;background:linear-gradient(145deg,#ad8ceb,#7750cc);color:white;display:grid;place-items:center;margin:0 auto 24px;box-shadow:0 5px 0 #d8cce9}.progress-review h3{font-size:21px}.progress-review p{font-size:14px;line-height:1.8;color:var(--vault-muted)}.progress-review progress{display:block;width:100%;height:10px;accent-color:#7954ce;margin:25px 0 12px}.progress-review #history-progress-text{font-size:13px;color:var(--vault-muted)}
@media(max-width:900px){.vault-copy{padding:32px 0 32px 30px}.vault-visual img{width:230px}.vault-orbit{width:235px;height:235px}.vault-promises{gap:14px}.vault-promises article{padding:22px}.vault-consent>div:first-child,.vault-consent-action{padding:28px}.vault-detail-next,.vault-detail-main{padding:30px}}
@media(max-width:600px){.visit-banner{padding:23px;gap:15px;flex-wrap:wrap}.visit-banner>div{flex:1;min-width:180px}.visit-banner h2{font-size:19px}.visit-banner-action{width:100%;justify-content:flex-end;font-size:12px}.vault-hero{grid-template-columns:1fr;margin-top:22px}.vault-copy{padding:28px 26px 8px}.vault-copy h1{font-size:35px;line-height:1.18}.vault-copy p{font-size:13px;line-height:1.85}.vault-copy .actions{gap:7px;flex-wrap:wrap}.vault-copy .btn{padding:12px 16px;font-size:13px}.vault-visual{min-height:245px;padding-bottom:25px}.vault-visual img{width:190px}.vault-orbit{width:180px;height:180px}.vault-chip{bottom:19px;font-size:11px}.vault-promises{grid-template-columns:1fr}.vault-promises article{padding:22px 22px 22px 92px;position:relative;min-height:125px}.vault-promises .icon-tile{position:absolute;left:21px;top:26px}.vault-promises h2{margin:0 0 9px;font-size:17px}.vault-promises p{font-size:12px}.vault-steps{gap:7px;margin:24px 0}.vault-steps li{padding:12px 8px;flex-direction:column;gap:8px;font-size:11px;text-align:center;border-radius:15px}.vault-consent{grid-template-columns:1fr;border-radius:24px}.vault-consent>div:first-child,.vault-consent-action{padding:26px}.vault-consent h1{font-size:26px}.vault-consent p{font-size:13px}.vault-consent dl>div{grid-template-columns:80px 1fr;gap:10px;font-size:12px}.vault-consent-action h2{font-size:20px}.vault-checkbox{font-size:13px;gap:11px;padding:17px 14px}.vault-checkbox input{width:22px;height:22px}.vault-title h1{font-size:29px}.vault-title p{font-size:13px}.vault-toolbar{align-items:flex-start;flex-direction:column;gap:13px}.vault-toolbar .btn{width:100%;justify-content:center}.vault-choice,.vault-record{gap:14px;padding:21px 18px;border-radius:20px}.vault-record strong,.vault-choice strong{font-size:17px}.vault-record small,.vault-choice small{font-size:11px}.vault-record-status{display:none}.vault-record .icon-tile,.vault-choice .icon-tile{width:46px;height:46px;border-radius:16px}.vault-detail{grid-template-columns:1fr;border-radius:24px}.vault-detail-main{padding:28px}.vault-detail-main h1{font-size:28px}.vault-detail-main>.icon-tile{width:70px;height:70px;border-radius:23px}.vault-duration{font-size:55px}.vault-detail-next{padding:28px}.vault-empty{padding:40px 23px}.vault-empty h1,.vault-empty h2{font-size:24px}.vault-empty p{font-size:13px}.vault-empty .actions{flex-direction:column}.vault-empty .actions .btn{width:100%;justify-content:center}}

@media(max-width:720px){.vault-progressing .bottom-nav{display:none}.vault-progressing .main{padding-bottom:26px}.vault-progressing .vault-consent-action{padding-bottom:calc(28px + env(safe-area-inset-bottom))}}

/* S22 private clip workflow. Preserve the ROM palette and shared SVG geometry. */
.clip-studio{width:min(760px,calc(100vw - 36px));max-height:calc(100dvh - 32px);border-radius:26px;padding:0;box-shadow:0 28px 85px #20114242;border:1px solid #dad5ec}
.clip-studio .dialog-head{padding:22px 26px 14px;background:linear-gradient(135deg,#f5f0ff,#f1faf8);border-bottom:1px solid #e5e0f0}
.clip-studio .dialog-body{padding:20px 26px 24px;overflow:auto}
.clip-steps{display:flex;list-style:none;margin:0 0 22px;padding:0;gap:18px;color:#656075;font-size:13px;font-weight:650}
.clip-steps li{display:flex;align-items:center;gap:7px;white-space:nowrap}.clip-steps li+li:before{content:"";width:20px;height:1px;background:#d3cdde;margin-right:6px}.clip-steps span{display:grid;place-items:center;width:25px;height:25px;border-radius:9px;background:#edeaf4;color:#676174}.clip-steps [aria-current=step]{color:#5f3cad}.clip-steps [aria-current=step] span{background:#7250c7;color:white;box-shadow:0 3px 0 #543696}
.clip-choice-banner{display:flex;align-items:center;gap:17px;margin:6px 0 20px;padding:17px;border-radius:20px;background:linear-gradient(115deg,#f6f2ff,#f0faf7);border:1px solid #e7e0f5}.clip-choice-banner h3,.clip-review-copy h3{margin:0 0 8px;font-size:20px;line-height:1.4;letter-spacing:-.04em}.clip-choice-banner p{margin:0;font-size:14px;line-height:1.7;color:#625c74}
#clip-options fieldset{border:0;padding:0;margin:18px 0}#clip-options legend{font-weight:750;font-size:15px;margin-bottom:10px}.clip-choices{display:grid;grid-template-columns:1fr 1fr;gap:10px}.clip-choices label{display:flex;align-items:flex-start;gap:10px;padding:14px 16px;min-height:78px;border:1.5px solid #e4dfed;border-radius:16px;cursor:pointer;box-shadow:0 3px 0 #eeebf4;background:white}.clip-choices label:has(input:checked){border-color:#8663d1;background:#f6f2ff;box-shadow:0 3px 0 #bca5e7}.clip-choices input{accent-color:#7250c7;width:18px;height:18px;margin:2px 0;flex:0 0 auto}.clip-choices strong{display:block;font-size:15px;color:#33284d}.clip-choices small{display:block;font-size:12px;color:#6d647c;line-height:1.6;margin-top:5px}
.clip-private-note{display:flex;gap:8px;align-items:center;font-size:13px;color:#675e79;line-height:1.65}.clip-footer{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:20px;padding-top:17px;border-top:1px solid #e7e2ef;flex-wrap:wrap}.clip-footer .btn{min-height:46px;border-radius:13px;display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:normal;word-break:keep-all}.clip-footer .btn.primary{box-shadow:0 4px 0 #573299}.clip-footer .btn.primary:active{transform:translateY(2px);box-shadow:0 2px 0 #573299}.clip-footer>span{font-size:12px;color:#6d647c;margin-left:auto}
.clip-generating{text-align:center;padding:18px 20px}.clip-generating .icon-tile{margin:0 auto 16px}.clip-generating h3{font-size:23px;letter-spacing:-.04em}.clip-generating p{line-height:1.85;color:#645b76}.clip-generating progress{width:100%;height:10px;accent-color:#7553c5;display:block;margin:23px auto 12px}.clip-generating progress::-webkit-progress-bar{background:#ebe7f3;border-radius:8px}.clip-generating progress::-webkit-progress-value{background:linear-gradient(90deg,#a589ed,#7150c0);border-radius:8px}.clip-generating #clip-percent{display:block;color:#6b48b7;font-variant-numeric:tabular-nums}
.clip-studio-review{width:min(840px,calc(100vw - 36px))}.clip-review-layout{display:grid;grid-template-columns:minmax(200px,260px) minmax(0,1fr);gap:26px;align-items:center}.clip-review-media{border-radius:20px;background:#201b33;overflow:hidden;border:1px solid #e2daef}.clip-review-media .clip-review{display:block;width:100%;max-height:430px;aspect-ratio:9/16;object-fit:contain;margin:0}.clip-review-copy p{font-size:14px;color:#665d76;line-height:1.8}.clip-ready{display:inline-flex;align-items:center;gap:6px;color:#267c69;background:#e8f7ef;border:1px solid #cae9dd;border-radius:50px;padding:5px 9px;font-size:12px;margin-bottom:16px}.clip-review-copy .clip-title-label{display:block;font-size:13px;font-weight:700;margin:20px 0 12px}.clip-review-copy input{display:block;width:100%;min-height:46px;padding:10px 12px;margin-top:8px;border:1px solid #d4cbe0;border-radius:12px;background:#fbfaff;color:#352c48}.clip-review-copy input:focus-visible,.clip-choices label:focus-within{outline:3px solid #c9b8f0;outline-offset:3px}.clip-studio [disabled]{opacity:.6;cursor:wait}.clip-studio :is(p,small,h2,h3,span){word-break:keep-all;overflow-wrap:anywhere}.clip-studio #clip-save-status{color:#954444;font-size:13px}
@media(max-width:600px){.clip-studio,.clip-studio-review{width:calc(100vw - 18px);max-height:calc(100dvh - 18px);border-radius:22px}.clip-studio .dialog-head{padding:17px 18px 12px}.clip-studio .dialog-head h2{font-size:21px}.clip-studio .dialog-body{padding:16px 18px 20px}.clip-steps{gap:10px;margin-bottom:16px;font-size:12px}.clip-steps li+li:before{width:12px;margin-right:0}.clip-choice-banner{padding:14px;gap:12px}.clip-choice-banner h3{font-size:18px}.clip-choice-banner p{font-size:13px}.clip-choices label{padding:12px 10px;gap:7px}.clip-choices strong{font-size:14px}.clip-choices small{font-size:12px}.clip-footer{position:sticky;bottom:-20px;background:linear-gradient(0deg,#fff 88%,#fff0);padding:14px 0 7px;gap:8px}.clip-footer .btn{flex:1;font-size:13px}.clip-footer>span{flex-basis:100%;text-align:center}.clip-review-layout{grid-template-columns:1fr;gap:16px}.clip-review-media{width:min(100%,220px);margin:auto}.clip-review-media .clip-review{max-height:330px}.clip-review-copy h3{font-size:20px}.clip-review-copy p{font-size:13px}.clip-ready{margin-bottom:9px}.clip-generating{padding:15px 0}.clip-generating h3{font-size:21px}}
@media(prefers-reduced-motion:reduce){.clip-studio *{scroll-behavior:auto!important;transition:none!important}}
@media(max-width:600px){.clip-studio-review .clip-footer{display:grid;grid-template-columns:1fr 1fr;position:static;background:white;padding-bottom:0}.clip-studio-review #clip-keep{grid-column:1/-1;grid-row:1;min-height:48px}.clip-studio-review .clip-footer .btn{white-space:nowrap;padding:12px 8px}.clip-studio-review .clip-review-media{width:min(100%,198px)}.clip-studio-review .clip-review-media .clip-review{max-height:352px}}
/* Covers come from each actual clip, not repeated decorative assets. They remain
   still images: opening the library never starts eight video decoders at once. */
.clip-gallery-card{padding:0;overflow:hidden;background:#fff;border-radius:24px;box-shadow:0 5px 0 #ece5f6}
.clip-cover{position:relative;display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:9/16;background:linear-gradient(145deg,#ece5fb,#e5f5ed);border:0;padding:0;cursor:pointer;overflow:hidden}
.clip-cover img{width:100%;height:100%;object-fit:contain;display:block}
.clip-cover-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:48px;height:48px;background:#fffef0e8;color:#5f4793;border-radius:50%;box-shadow:0 4px 0 #45315c25}
.clip-length{position:absolute;bottom:12px;right:12px;padding:5px 9px;border-radius:14px;background:#272134d9;color:white;font-size:12px}
.clip-gallery-text{padding:22px}.clip-gallery-text h2{font-size:19px;line-height:1.5;margin:8px 0 10px}.clip-gallery-text p{font-size:12px;margin:0 0 16px}.clip-gallery-text .actions{display:flex;gap:8px}.clip-gallery-text .btn{flex:1;justify-content:center;min-width:0;padding:9px 12px;font-size:13px}
@media(max-width:600px){.clip-library-grid:has(.clip-gallery-card){grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.clip-gallery-card{border-radius:20px}.clip-gallery-text{padding:14px 12px}.clip-gallery-text h2{font-size:15px;margin:7px 0 8px}.clip-gallery-text .overline{font-size:9px}.clip-gallery-text .actions{gap:5px}.clip-gallery-text .btn{font-size:12px;padding:9px 6px}.clip-gallery-text .btn svg{width:12px}.clip-gallery-text p{font-size:11px;line-height:1.6}.clip-cover-play{width:42px;height:42px}.clip-length{font-size:10px;bottom:9px;right:9px}}

.clip-studio-review>.clip-footer{flex:0 0 auto;position:static;margin:0;padding:16px 26px 22px;background:#fff;border-top:1px solid #e5dff0}.clip-studio-review>.dialog-body{flex:1 1 auto;min-height:0}
@media(max-width:600px){.clip-studio-review>.clip-footer{padding:12px 18px 17px;gap:8px}.clip-studio-review .clip-review-media{width:172px}.clip-studio-review .clip-review-media .clip-review{max-height:306px}}

/* Keep the preview and decision readable independently of title length. */
.clip-review-layout>*{min-width:0}
.clip-review-copy h3{margin-bottom:6px}
.clip-review-copy p{margin:8px 0}
.clip-review-copy .clip-title-label{margin:18px 0 12px}
.clip-studio-review>.clip-footer .btn{min-width:0}
@media(max-width:600px){
  .clip-studio-review .clip-review-layout{gap:14px}
  .clip-studio-review .clip-review-media{width:min(172px,100%)}
  .clip-studio-review .clip-footer .btn{white-space:normal;line-height:1.35;overflow-wrap:anywhere}
}
@media(max-height:600px) and (max-width:600px){
  .clip-studio-review .clip-review-media{width:min(130px,100%)}
}

/* Creation and saved moments: clearer focus and comfortable portrait controls. */
.clip-studio :is(button,input,select,textarea):focus-visible,
.clip-gallery-card :is(button,a):focus-visible {
  outline: 3px solid #523291;
  outline-offset: 3px;
}
.clip-choices label { box-sizing: border-box; min-width: 0; }
.clip-choices label:has(input:checked) strong { color: #412474; }
.clip-studio .dialog-body { overscroll-behavior: contain; }
.clip-gallery-card { border: 1px solid #e0d9eb; }
.clip-gallery-text { min-width: 0; }
.clip-gallery-text h2 { overflow-wrap: anywhere; }
.clip-gallery-text .actions { flex-wrap: wrap; }
.clip-gallery-text .btn { min-height: 48px; }
.clip-cover:focus-visible { outline-offset: -4px; }
@media (max-width: 360px) {
  .clip-choices { grid-template-columns: 1fr; }
  .clip-choices label { min-height: 64px; }
  .clip-gallery-text .actions { flex-direction: column; }
  .clip-gallery-text .btn { width: 100%; }
}

/* Match the home surface while retaining the clip workflow's existing states. */
.clip-studio{background:#fffcff;border-color:#d9cbed;color:#30234c}
.clip-studio .dialog-head{background:#f4eefb;border-color:#e2d8f0}
.clip-choice-banner{background:#f8f4fd;border-color:#e2d8f0}
.clip-choices label{border-color:#ded3ed}
.clip-choices label:has(input:checked){border-color:#6847bc;background:#eee7fc}
.clip-studio :is(button,input,select,textarea):focus-visible{outline-color:#6847bc}
@media(max-width:360px){
 .clip-steps{flex-wrap:wrap;column-gap:8px;row-gap:8px}
 .clip-steps li{white-space:normal;min-width:0}
 .clip-steps li+li:before{width:8px}
 .clip-studio .dialog-body{padding-inline:14px}
 .clip-studio .dialog-head{padding-inline:14px}
}
@media(forced-colors:active){.clip-choices label:has(input:checked){outline:2px solid Highlight;outline-offset:-3px}}

/* S23 consumer layout: portrait first, isolated gestures, private creation.
   Game canvas alone owns direct-manipulation input. Other pages retain zoom. */
.shorts-root{background:radial-gradient(ellipse at 20% 30%,#243b43,#151c29 65%)}
.shorts-feed{width:min(100%,56.25dvh);margin:0 auto;box-shadow:0 0 80px #0005}
.shorts-feed.session-locked{overflow-y:hidden;scroll-snap-type:none;overscroll-behavior:none}
.session-locked .play-scene,.session-locked .race-overlay{touch-action:none}
.session-locked .shorts-swipe-hint,.session-locked .shorts-navigation{visibility:hidden}
.shorts-feed .race-sheet{touch-action:pan-y;overscroll-behavior:contain}
.shorts-header{padding:20px 28px;background:linear-gradient(#132130b8,transparent);height:100px}
.shorts-tabs a{padding:12px 20px;font-size:14px}
.shorts-tools{gap:8px}.shorts-tool{min-width:44px;min-height:44px}
.shorts-navigation{right:auto;left:calc(50% + 28.125dvh + 25px)}
.portrait-context{position:absolute;left:clamp(24px,4vw,76px);top:27%;width:calc(50% - 28.125dvh - 70px);max-width:310px;display:flex;flex-direction:column;gap:14px;color:#d3e3e9}
.portrait-context .overline{color:#97d9c5;font-size:10px;letter-spacing:1.6px}.portrait-context h2{font-size:clamp(28px,3vw,48px);line-height:1.35;color:#fff;letter-spacing:-1.7px;margin:8px 0}
.portrait-context p{line-height:1.9;font-size:13px;color:#c4d3dc}.portrait-context a{min-height:44px;display:flex;align-items:center;border-bottom:1px solid #c1d2dd26;color:#f0f6fa;text-decoration:none;font-size:14px}.portrait-context a:hover{color:#ffe397}.portrait-context small{font-size:11px;line-height:1.8;color:#99acb7;margin-top:12px}
.play-intro{left:24px;right:24px;bottom:85px;max-width:none}.play-intro h1{font-size:clamp(28px,4vw,40px);line-height:1.2;letter-spacing:-1.4px}.intro-lead{font-size:17px}.intro-description{font-size:13px;margin-bottom:22px}
.race-top{top:106px;left:16px;gap:8px}.lap-chip,.position-chip{padding:7px 10px;gap:5px}.lap-chip strong,.position-chip strong{font-size:23px}.lap-chip span,.position-chip span{font-size:10px}
.lap-map{top:106px;right:16px;width:64px;height:64px;border-radius:16px}.map-road{stroke-width:5;opacity:.55}.lap-map text{display:none}
.rule-pill{top:180px;font-size:13px;max-width:calc(100% - 24px);white-space:normal;text-align:center;padding:9px 14px}.rule-next{top:226px;font-size:11px}.race-cue{top:34%;max-width:90%;white-space:normal;text-align:center;font-size:15px}
.race-controls{bottom:calc(35px + env(safe-area-inset-bottom));left:16px;right:16px;gap:12px}
.steer-controls{gap:8px}.race-controls .steer-controls button{width:56px;height:60px;border-radius:18px}
.action-controls{display:grid;grid-template-columns:56px 60px;grid-template-rows:44px 64px;gap:9px;align-items:end}
.action-controls .small-control:first-child{grid-column:1;grid-row:1}.action-controls .small-control:nth-child(2){grid-column:2;grid-row:1}.action-controls .jump-control{grid-column:1;grid-row:2}.action-controls .turbo-control{grid-column:2;grid-row:2}
.race-controls .small-control{width:56px;height:44px;border-radius:14px;gap:2px}.race-controls .jump-control{width:56px;height:60px;border-radius:18px}.race-controls .turbo-control{width:60px;height:64px;border-radius:18px}
.draft-note{bottom:calc(158px + env(safe-area-inset-bottom));max-width:90%;white-space:normal;text-align:center;font-size:11px;pointer-events:none}
.race-result-layer{padding:104px 16px calc(24px + env(safe-area-inset-bottom))}.race-sheet{max-height:100%;padding:24px}.race-sheet p{font-size:13px}.race-sheet .plain-action{min-height:44px}
.period-panel{padding:24px;background:#fff;border:1px solid #e0e5e9;border-radius:24px;margin-bottom:24px;box-shadow:0 8px 28px #1c284906}
.period-tabs{display:grid;grid-template-columns:repeat(5,1fr);gap:5px;background:#f0f2f6;padding:5px;border-radius:16px;max-width:550px}.period-tabs button{border:0;border-radius:12px;min-height:44px;background:none;font:inherit;font-weight:700;color:#657086;cursor:pointer}.period-tabs button[aria-pressed=true]{background:#214b4c;color:#fff;box-shadow:0 3px 7px #1d41432a}
.period-controls{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:18px 0 12px}.period-controls strong{font-size:15px;font-variant-numeric:tabular-nums}.period-controls label{font-size:12px;margin-left:auto;display:flex;align-items:center;gap:8px}.period-controls input{border:1px solid #d7dfe5;padding:9px;border-radius:10px;font:inherit;min-height:44px;max-width:170px}
.period-stats{display:grid;grid-template-columns:repeat(4,1fr);margin-top:20px;border-top:1px solid #e8ecf0;padding-top:20px;gap:12px}.period-stats div{display:flex;flex-direction:column;gap:7px}.period-stats strong{font-size:30px;color:#214b4c;font-variant-numeric:tabular-nums}.period-stats strong small{font-size:13px;padding-left:3px}.period-stats span{color:#6c7889;font-size:12px}.archive-limit{line-height:1.9;margin-top:25px;padding:14px 16px;background:#f1f5f4;border-radius:12px}
.studio-heading{padding:36px 40px;background:linear-gradient(135deg,#e4f4ee,#f6f4ec);border:1px solid #d9e8e1;border-radius:28px;margin-bottom:36px}.studio-heading h1,.community-heading h1,.compose-heading h1,.editor-heading h1{font-size:clamp(25px,3vw,40px);letter-spacing:-1.3px;line-height:1.4;margin:12px 0}.studio-heading p{font-size:15px;line-height:1.9;color:#566a66;margin-bottom:25px}.studio-heading .btn{margin:0 8px 10px 0}
.studio-samples{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:20px 0 40px}.studio-samples article{display:flex;flex-direction:column;overflow:hidden;border:1px solid #e2e7ed;border-radius:20px;background:#fff}.studio-samples img{width:100%;height:220px;object-fit:cover;object-position:center 35%;background:#eef4f1}.studio-samples article>div{padding:18px}.studio-samples h3{margin-bottom:14px}.studio-samples .btn{margin:0 4px 4px 0}
.studio-drafts{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:20px 0 35px}.studio-drafts article{padding:23px;border:1px solid #e1e6eb;border-radius:20px;background:#fff;overflow-wrap:anywhere}.studio-drafts h3{margin:15px 0 10px}.studio-drafts p{font-size:12px;color:#6c7488;line-height:1.8}.studio-drafts .btn{margin:9px 5px 0 0}.studio-saved>p{font-size:13px;line-height:1.8;color:#657085}.studio-loading{min-height:60vh;display:grid;place-content:center;text-align:center;gap:15px}
.editor-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:26px}.editor-layout{display:grid;grid-template-columns:minmax(240px,.95fr) minmax(300px,1.05fr);gap:32px;align-items:start;max-width:1080px;margin:auto}
.editor-preview{position:sticky;top:100px;background:#142333;border-radius:24px;padding:20px;color:#d6e0e6;text-align:center;overflow:hidden}.editor-preview canvas{display:block;width:auto;max-width:100%;height:auto;max-height:68dvh;margin:auto;border-radius:12px}.editor-preview .small{margin:12px 0 0;color:#c4d2db}.editor-playback{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:14px;font-size:12px}.editor-playback label{flex:1;min-width:100px}.editor-playback input{width:100%;min-height:32px}.editor-playback .btn{padding:10px;font-size:11px;color:#283548}
.editor-controls{background:#fff;border:1px solid #e0e5ec;border-radius:24px;padding:26px;min-width:0}
.editor-controls label,.creator-auth label,.creator-settings label,#creator-compose label{display:flex;flex-direction:column;gap:9px;margin-bottom:18px;font-weight:650;font-size:13px}
.editor-controls input:not([type=range]),.editor-controls select,.editor-controls textarea,.creator-auth input,.creator-settings input,.creator-settings textarea,#creator-compose input,#creator-compose select,#creator-compose textarea{width:100%;min-height:46px;border:1px solid #d7dfe5;border-radius:12px;padding:11px 12px;font:inherit;background:#fafbfc;color:#283449;box-sizing:border-box;min-width:0}
.editor-controls input[type=range]{width:100%;height:36px;accent-color:#367367}.editor-controls fieldset{border:0;border-top:1px solid #e5ebef;padding:20px 0 6px;margin:6px 0}.editor-controls legend{font-size:14px;font-weight:800;padding-right:10px;color:#315456}.editor-controls fieldset p{font-size:12px;line-height:1.9;color:#697385}.editor-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.filter-options{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:20px}.filter-options button{font:inherit;cursor:pointer;font-size:12px;min-height:44px;padding:9px 13px;border:1px solid #d9e2e6;border-radius:12px;background:#fff;color:#4f6272}.filter-options button[aria-pressed=true]{background:#214b4c;color:#fff;border-color:#214b4c}
.editor-commit{padding-top:20px;border-top:1px solid #e5e9ed;display:flex;gap:10px;flex-wrap:wrap}.editor-commit p{width:100%;font-size:13px;line-height:1.9;color:#536c66}.editor-commit progress{width:100%;accent-color:#367367;height:12px}.editor-controls button{min-height:44px}#edit-output{margin-top:22px;padding-top:22px;border-top:1px solid #e2e8ed}#edit-output-preview img,#edit-output-preview video{width:100%;height:auto;max-height:360px;object-fit:contain;background:#172232;border-radius:14px;margin:16px 0}#edit-output .actions{flex-wrap:wrap}
.creator-nav{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 20px}.creator-nav a{display:flex;align-items:center;gap:7px;min-height:44px;padding:9px 16px;border:1px solid #dce5e8;border-radius:30px;font-size:13px;font-weight:700;background:#fff}.creator-nav a:hover{background:#e5f3ec}
.pilot-note{display:flex;gap:14px;background:#f1f4f7;color:#617182;border-radius:12px;padding:13px 18px;margin-bottom:25px;font-size:12px;line-height:1.8}.pilot-note strong{white-space:nowrap;color:#405363}
.community-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:30px}.community-heading p,.compose-heading p{color:#6b7587;font-size:14px;line-height:1.9}.community-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;align-items:start}.community-grid:has(>.community-post:only-child){grid-template-columns:1fr;max-width:500px;margin:0 auto}.community-post{overflow:hidden;border:1px solid #e0e5ec;border-radius:23px;background:#fff}.post-media{width:100%;aspect-ratio:9/13;background:#162434;display:flex;align-items:center;justify-content:center}.post-media video,.post-media img{width:100%;height:100%;object-fit:contain;max-height:600px}.post-content{padding:21px;overflow-wrap:anywhere}.post-content h2{font-size:19px;line-height:1.5;margin:16px 0 10px}.post-caption{white-space:pre-wrap;font-size:13px;line-height:1.8;color:#677184;margin-bottom:10px}.post-author{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:750}.post-author small{display:block;color:#7b8796;font-size:11px;font-weight:500;margin-top:3px}.creator-avatar{display:grid;place-items:center;width:39px;height:39px;background:#def2e8;color:#285c4f;border:1px solid #cae9dc;border-radius:14px;font-size:18px;font-weight:800;flex-shrink:0}.creator-avatar.large{width:104px;height:104px;border-radius:32px;font-size:45px}
.post-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}.post-actions .btn{font-size:11px;min-height:44px;padding:9px 13px}.creator-empty{grid-column:1/-1;background:#edf4f2;padding:48px 30px;border-radius:24px;text-align:center;line-height:1.9;min-height:250px}.creator-empty h2{font-size:24px;margin-bottom:12px}.creator-empty p{font-size:14px;margin-bottom:24px;color:#5d7271}.creator-empty .btn{margin:7px}.creator-profile{display:flex;gap:27px;padding:34px;background:#fff;border:1px solid #e1e8ed;border-radius:26px;margin-bottom:30px}.creator-profile h1{margin:8px 0;font-size:32px}.creator-profile p{margin:14px 0;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.creator-profile .actions{flex-wrap:wrap}.profile-counts{display:flex;gap:23px;flex-wrap:wrap;margin-top:22px;font-size:13px;color:#677987}.profile-counts b{color:#234947;font-size:20px;margin-right:4px}
.creator-auth,.creator-settings{max-width:560px;margin:20px auto;padding:35px;background:#fff;border:1px solid #e2e7ed;border-radius:25px}.creator-auth h1,.creator-settings h1{font-size:29px;line-height:1.4;margin:14px 0}.creator-auth>p,.creator-settings>p{font-size:13px;line-height:1.9;color:#6b7787;margin-bottom:24px}.creator-auth form,.creator-settings form{margin:24px 0}.creator-auth small,.creator-settings small{font-weight:400;line-height:1.8;font-size:11px;color:#6a7484}.creator-auth .creator-check,.creator-settings .creator-check,#creator-compose .creator-check{flex-direction:row;align-items:flex-start;line-height:1.8;font-weight:500}.creator-check input[type=checkbox]{width:20px;min-height:20px;height:20px;flex:0 0 20px;margin-top:2px;accent-color:#35705f}.creator-settings .actions{margin:25px 0 0;flex-wrap:wrap}#auth-status,#profile-status,#compose-status{font-size:13px;line-height:1.9;color:#365c52;margin:15px 0;min-height:1em}
.creator-offline{max-width:840px;margin:30px auto;padding:45px;border:1px solid #d8e7e4;border-radius:28px;background:linear-gradient(145deg,#e5f4ee,#faf9f5)}.creator-offline h1{font-size:36px;line-height:1.5;margin:20px 0}.creator-offline>p{font-size:15px;line-height:1.9;margin-bottom:25px;color:#5c716d}.creator-offline .device-note{display:block;margin-bottom:25px;background:#ffffffc9;padding:22px;line-height:1.9}.creator-offline .device-note p{margin-top:12px}.creator-offline .btn{margin:0 8px 14px 0}.creator-offline details{margin-top:24px;font-size:13px;line-height:1.9}.creator-offline summary{cursor:pointer;min-height:44px}.creator-offline code{padding:2px 6px;background:#d8eae4;border-radius:5px}
.compose-layout{display:grid;grid-template-columns:.9fr 1.1fr;gap:30px;max-width:950px;margin:30px auto}.compose-preview{background:#172738;border-radius:23px;overflow:hidden;align-self:start;position:sticky;top:100px}.compose-preview video,.compose-preview img{width:100%;max-height:70dvh;object-fit:contain;display:block}#creator-compose{padding:26px;border:1px solid #e3e8ed;background:#fff;border-radius:23px}#creator-compose>p{font-size:12px;line-height:1.9;margin:16px 0}.rule-stamp{background:#eef6f1;border:1px solid #dbe9e1;border-radius:13px;padding:16px;margin:20px 0}.rule-stamp code{display:block;overflow-wrap:anywhere;font-size:12px;padding:10px 0}.rule-stamp p{font-size:11px;line-height:1.8;color:#617469}.small{line-height:1.8}#community-more{display:flex;margin:25px auto}
@media(max-width:1150px){.portrait-context{left:22px;width:calc(50% - 28.125dvh - 36px);gap:9px}.portrait-context h2{font-size:30px}.portrait-context .overline{font-size:8px}.portrait-context p{font-size:11px}.shorts-header{padding-left:22px;padding-right:22px}.shorts-tools{gap:5px}.shorts-tools [data-sh=help]{display:none}}
@media(max-width:900px){.portrait-context{display:none}.shorts-navigation{left:auto;right:16px}.shorts-header{height:122px;padding:calc(12px + env(safe-area-inset-top)) 16px 0;align-items:flex-start}.shorts-tabs{top:calc(70px + env(safe-area-inset-top));padding:4px;gap:3px}.shorts-section-name{display:none}.shorts-tabs a{min-height:44px;padding:10px 18px;font-size:13px}.shorts-brand{padding-top:3px}.shorts-brand .brand-copy small{display:none}.shorts-tools [data-sh=settings],.shorts-tools [data-sh=help]{display:none}.shorts-tools .shorts-tool{width:44px;height:44px;min-width:44px;border-radius:14px}.shorts-feed{width:100%;max-width:540px}.shorts-header .brand-copy strong{font-size:23px}.shorts-tools{gap:7px}.race-top{top:calc(135px + env(safe-area-inset-top))}.lap-map{top:calc(135px + env(safe-area-inset-top))}.rule-pill{top:calc(210px + env(safe-area-inset-top))}.rule-next{top:calc(254px + env(safe-area-inset-top))}.play-intro{left:22px;right:22px;bottom:85px}.race-result-layer{padding-top:calc(128px + env(safe-area-inset-top))}.shorts-navigation{display:none}.studio-drafts{grid-template-columns:repeat(2,1fr)}.community-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.editor-layout{gap:20px}.editor-controls{padding:20px}.editor-preview{padding:12px}.pilot-note{flex-direction:column;gap:4px}}
@media(max-width:650px){.studio-heading{padding:27px 24px;border-radius:23px}.studio-heading p{font-size:13px}.studio-samples{gap:12px;grid-template-columns:1fr}.studio-samples article{display:grid;grid-template-columns:105px minmax(0,1fr)}.studio-samples img{height:165px;width:105px;object-fit:cover}.studio-samples article>div{padding:16px}.studio-samples h3{font-size:16px}.studio-samples .btn{font-size:12px;padding:9px 12px;min-height:44px}.studio-drafts{grid-template-columns:1fr}.editor-layout,.compose-layout{grid-template-columns:1fr;gap:20px}.editor-preview,.compose-preview{position:static}.editor-preview canvas{max-height:57dvh}.editor-heading{flex-direction:column;align-items:flex-start;gap:6px;margin-bottom:20px}.editor-heading h1{font-size:25px}.editor-heading .badge{display:none}.editor-controls{padding:21px}.editor-row{gap:10px}.period-panel{padding:17px;border-radius:19px}.period-tabs{gap:2px;padding:4px}.period-tabs button{font-size:13px}.period-controls{gap:8px}.period-controls strong{font-size:12px}.period-controls .btn{padding:10px;min-width:40px}.period-controls label{width:100%;margin:4px 0 0;justify-content:space-between}.period-stats{gap:8px}.period-stats strong{font-size:25px}.period-stats span{font-size:10px;line-height:1.7}.community-grid{grid-template-columns:1fr}.community-post{border-radius:22px}.community-heading{display:block}.community-heading .btn{margin-top:20px}.community-heading h1{font-size:27px}.creator-nav{gap:6px}.creator-nav a{padding:8px 11px;font-size:11px}.creator-auth,.creator-settings{padding:25px 22px;margin:10px auto}.creator-profile{padding:23px;gap:18px;flex-direction:column}.creator-avatar.large{height:72px;width:72px;border-radius:23px;font-size:31px}.creator-profile h1{font-size:29px}.creator-profile .actions .btn{font-size:12px;padding:10px 13px}.profile-counts{gap:16px;font-size:12px}.creator-offline{padding:26px 23px;margin:16px auto}.creator-offline h1{font-size:28px}.creator-offline>p{font-size:13px}.compose-heading h1{font-size:26px}.compose-preview video,.compose-preview img{max-height:57dvh}.pilot-note{padding:12px 14px;font-size:11px}.post-media{aspect-ratio:9/12}.post-content{padding:20px}.creator-empty{padding:30px 21px}.creator-empty h2{font-size:21px}.creator-empty p{font-size:13px}.editor-commit .btn{padding:11px 14px}}
@media(max-width:360px){.shorts-header{padding-left:12px;padding-right:12px}.shorts-brand .brand-copy{display:none}.shorts-tools{gap:5px}.race-top{left:12px;gap:5px}.lap-chip,.position-chip{padding:6px 7px}.lap-chip strong,.position-chip strong{font-size:21px}.lap-map{right:12px;width:60px;height:60px}.race-controls{left:12px;right:12px}.play-intro h1{font-size:28px}.intro-lead{font-size:15px}.intro-description{font-size:12px}.race-start{font-size:15px!important;padding:15px 19px}.period-stats strong{font-size:22px}.period-controls strong{font-size:11px}.studio-samples article{grid-template-columns:86px 1fr}.studio-samples img{width:86px}.editor-controls{padding:17px}.creator-nav a{font-size:10px;padding:8px 9px}}
@media(orientation:landscape) and (max-height:520px){.portrait-context{display:none}.shorts-feed{width:min(100%,680px);max-width:none}.shorts-header{height:60px;padding:10px 16px}.shorts-tabs{top:9px}.shorts-tabs a{padding:8px 14px;min-height:40px}.shorts-tools [data-sh=library]{display:none}.shorts-header .shorts-brand .brand-copy{display:none}.race-top{top:67px;left:12px}.lap-map{top:65px;right:12px;width:58px;height:58px}.rule-pill{top:69px;max-width:220px;font-size:11px;padding:8px 10px}.rule-next{top:113px;font-size:10px}.race-cue{top:42%;font-size:13px}.race-controls{bottom:22px;left:14px;right:14px}.action-controls{display:flex;gap:8px}.race-controls .small-control{width:48px;height:44px}.race-controls .jump-control,.race-controls .steer-controls button{width:52px;height:50px}.race-controls .turbo-control{width:56px;height:55px}.draft-note{bottom:91px;font-size:10px}.play-intro{left:27px;bottom:48px}.play-intro h1{font-size:28px;margin-bottom:7px}.intro-tag,.intro-description,.local-play-note{display:none}.intro-lead{font-size:13px;margin-bottom:13px}.race-start{min-height:44px;padding:10px 17px;font-size:13px!important}.race-result-layer{padding:64px 16px 14px}.race-sheet{padding:17px}.race-sheet h2{font-size:22px}.race-sheet p{margin:7px 0 13px;font-size:12px}.shorts-swipe-hint{bottom:12px}.editor-preview{position:static}.editor-preview canvas{max-height:78dvh}}
@media(prefers-reduced-motion:reduce){.shorts-root *{scroll-behavior:auto!important;transition:none!important}.portrait-context a,.filter-options button{transition:none}}
/* Native hidden semantics must win over flex/button display declarations. */
.editor-layout [hidden],#community-more[hidden]{display:none!important}

.session-locked .toast{bottom:calc(215px + env(safe-area-inset-bottom));font-size:12px;padding:9px 13px}
@media(orientation:landscape) and (max-height:520px){.session-locked .toast{bottom:90px;max-width:350px}}

/* S24: text-free control artwork; no shift in touch-target size. */
.game-control-mark{object-fit:contain;display:inline-block;vertical-align:middle;pointer-events:none;flex:none}
[hidden]{display:none!important}
.creator-check input{flex-shrink:0}
.creator-profile p,.post-caption{overflow-wrap:anywhere}

/* Editor: preserve the preview and group controls for touch and keyboard use. */
.editor-layout > * { min-width: 0; }
.editor-preview { box-shadow: 0 12px 30px #1423331c; }
.editor-preview canvas { object-fit: contain; }
.editor-controls { box-shadow: 0 8px 28px #1c28490a; }
.editor-controls fieldset { min-width: 0; }
.editor-controls :is(input,select,textarea,button):focus-visible,
.editor-preview :is(input,button):focus-visible {
  outline: 3px solid #356f62;
  outline-offset: 3px;
}
.editor-preview :is(input,button):focus-visible { outline-color: #b8f0d8; }
.editor-controls input[type=range] { cursor: pointer; }
.filter-options button { font-weight: 700; }
.filter-options button[aria-pressed=true] { box-shadow: inset 0 0 0 1px #fff7; }
.editor-commit .btn { min-height: 48px; }
@media (max-width: 650px) {
  .editor-layout { gap: 14px; }
  .editor-preview { border-radius: 20px; }
  .editor-controls { border-radius: 20px; }
  .editor-controls fieldset { padding-top: 18px; }
  .editor-commit .btn { flex: 1 1 140px; justify-content: center; }
}
@media (max-width: 360px) {
  .editor-row { grid-template-columns: 1fr; gap: 0; }
}

/* Keep the editor visually connected to the ROMEME home without obscuring media. */
.editor-preview{background:#30234c;box-shadow:0 12px 30px #30234c1c}
.editor-controls{background:#fffcff;border-color:#d9cbed;box-shadow:0 8px 28px #6b459f12}
.editor-controls fieldset,.editor-commit,#edit-output{border-color:#e6ddf0}
.editor-controls legend{color:#563997}
.editor-controls input:not([type=range]),.editor-controls select,.editor-controls textarea{background:#fff;border-color:#d9cbed;color:#30234c}
.editor-controls input[type=range],.editor-commit progress{accent-color:#6847bc}
.filter-options button{border-color:#d9cbed;color:#51435f;background:#fff}
.filter-options button[aria-pressed=true]{background:#6847bc;border-color:#6847bc;color:#fff}
.editor-controls :is(input,select,textarea,button):focus-visible{outline-color:#6847bc}
.editor-preview :is(input,button):focus-visible{outline-color:#eee7fc}
@media(forced-colors:active){.filter-options button[aria-pressed=true]{outline:2px solid Highlight;outline-offset:-3px}}

/* S25 experience layer. Shared navigation + task surfaces, not a second app.
 * Semantic tokens are centralized; gameplay physics and legacy skins are unchanged.
 * Breakpoints follow available width, not device model detection.
 */
:root {
  --xp-paper:#fff; --xp-ink:#28243b; --xp-secondary:#625b72;
  --xp-accent:#6941c6; --xp-accent-soft:#f0eafd; --xp-border:#e5dfed;
  --xp-focus:#5930b3; --xp-gap:16px; --xp-touch:44px;
}
body:not(.in-shorts) {font-size:16px;background:#f8f7fb;color:var(--xp-ink)}
body:not(.in-shorts) .btn {font-size:14px;min-height:var(--xp-touch);gap:8px}
body:not(.in-shorts) .small {font-size:13px;color:var(--xp-secondary)}
body:not(.in-shorts) .overline {font-size:12px;letter-spacing:.015em}
body:not(.in-shorts) .btn.primary {background:var(--xp-accent);border-color:var(--xp-accent);box-shadow:none}
body:not(.in-shorts) .btn:active {transform:scale(.98)}
body:not(.in-shorts) .player-header {height:80px;max-width:none;padding:0 32px;gap:20px;border-bottom:1px solid var(--xp-border)}
.header-context {margin-right:auto;font-size:13px;color:var(--xp-secondary);border-left:1px solid var(--xp-border);padding-left:24px}
body:not(.in-shorts) .player-main {max-width:1120px;margin:0 auto 0 144px;padding:32px 32px 36px}
.experience-nav {display:flex;align-items:center;justify-content:space-around;z-index:40;background:var(--xp-paper)}
.experience-nav a {display:flex;align-items:center;justify-content:center;gap:6px;font-weight:700;color:var(--xp-secondary);border-radius:15px;min-width:44px;min-height:60px;font-size:13px;line-height:1.35;transition:background 160ms,color 160ms}
.experience-nav a .rom-icon {width:20px;height:20px}
.experience-nav a[aria-current=page] {background:var(--xp-accent-soft);color:var(--xp-accent)}
body:not(.in-shorts) .bottom-nav.experience-nav {position:fixed;inset:112px auto auto 24px;width:100px;flex-direction:column;gap:12px;padding:10px 6px;border:1px solid var(--xp-border);border-radius:24px;box-shadow:none}
body:not(.in-shorts) .bottom-nav.experience-nav a {flex:none;flex-direction:column;width:100%;padding:12px 4px}
body:not(.in-shorts) .player-footer {font-size:12px;color:var(--xp-secondary);padding-top:36px;flex-wrap:wrap}
body:not(.in-shorts) .footer-links {flex-wrap:wrap;gap:14px}
body:not(.in-shorts) .footer-links a,body:not(.in-shorts) .text-button {min-height:44px;display:inline-flex;align-items:center}
body:not(.in-shorts) .crumb {font-size:13px;color:var(--xp-secondary);margin-bottom:20px;gap:12px}
body:not(.in-shorts) .crumb a,body:not(.in-shorts) .back-button {min-height:44px}
body:not(.in-shorts) .searchbox:focus-within {outline:3px solid var(--xp-focus);outline-offset:3px}
body:not(.in-shorts) input,body:not(.in-shorts) textarea,body:not(.in-shorts) select {font-size:16px}
.home-heading {margin-bottom:24px}.home-heading h1 {font-size:34px;line-height:1.25}.home-heading p {font-size:15px;color:var(--xp-secondary);margin-top:9px}
.launch-hero.play-hero {grid-template-columns:1.15fr .85fr;padding:30px 38px;min-height:300px;border-radius:26px;box-shadow:none;background:#efe9fb}
.launch-hero:after {display:none}.launch-hero h2 {font-size:44px;line-height:1.12;letter-spacing:-.045em}.launch-hero h2 span {color:var(--xp-accent)}
.launch-hero .hero-copy>p {margin:16px 0 20px;color:var(--xp-secondary);font-size:15px}.launch-hero .hero-eyebrow {font-size:13px;margin-bottom:14px}
.launch-hero .hero-stage {min-height:240px}.launch-hero .stage-ring {width:230px;height:230px;box-shadow:none;background:#fbf9ee}
.launch-hero .hero-runner {width:240px;height:240px;object-fit:contain}.practice-label {display:block;font-size:12px;color:var(--xp-secondary);margin-top:18px}
.home-tasks .section-title {margin:30px 0 16px}.section-title h2,.home-revisit h2 {font-size:22px}
.task-shortcuts {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.task-shortcut {display:flex;gap:13px;align-items:center;background:var(--xp-paper);border:1px solid var(--xp-border);border-radius:18px;padding:20px 16px;min-height:92px;font-size:16px}
.task-shortcut>.rom-icon {margin-left:auto;width:13px}.task-shortcut .icon-tile {width:40px;height:40px;border-radius:13px}.task-shortcut .icon-tile svg {width:20px;height:20px}
.task-shortcut:hover,.compact-service:hover {background:#faf7ff;border-color:#b5a0d9;transform:none}
.home-revisit {display:flex;gap:20px;align-items:center;justify-content:space-between;background:var(--xp-paper);border:1px solid var(--xp-border);border-radius:22px;padding:24px;margin-top:24px}
.home-revisit p {font-size:14px;color:var(--xp-secondary);margin-top:6px}
.service-grid {gap:14px}.service-card.compact-service {min-height:104px;display:flex;flex-direction:row;align-items:center;gap:16px;padding:20px;box-shadow:none;position:relative;border-radius:18px}
.compact-service h3 {font-size:16px;line-height:1.45;margin:0;flex:1}.compact-service .icon-tile {width:42px;height:42px;border-radius:14px}.compact-service .icon-tile svg {width:20px;height:20px}.service-arrow {color:var(--xp-secondary)}
/* The chosen tool, preview and confirmation stay together, not a long form. */
.in-studio-editor .player-main {max-width:1250px;padding-top:16px}
.in-studio-editor .editor-heading {display:flex;align-items:center;justify-content:space-between;margin:0 0 20px;gap:16px}
.editor-heading h1 {font-size:28px;margin:0}.editor-heading p {font-size:14px;color:var(--xp-secondary);margin-top:7px}
.edit-history-actions {display:flex;gap:8px;flex-wrap:wrap}.edit-history-actions .btn {padding:10px 13px}
.experience-editor.editor-layout {grid-template-columns:minmax(240px,.9fr) minmax(330px,1.1fr);align-items:start;gap:28px;max-width:none;margin-top:0}
.experience-editor .editor-preview {position:sticky;top:20px;padding:18px;border-radius:22px;background:#182737;min-width:0;text-align:center}
.experience-editor .editor-preview canvas {display:block;margin:0 auto;width:auto;max-width:100%;height:auto;max-height:63dvh;border-radius:12px}
.preview-note {display:flex;justify-content:center;align-items:center;gap:7px;font-size:12px;color:#d9e4ec;margin:12px 0 0}
.experience-editor .editor-controls {padding:22px;border-radius:22px;border-color:var(--xp-border);min-width:0;box-shadow:none}
.experience-editor .editor-controls label {font-size:14px;font-weight:650;margin:0 0 14px;display:flex;flex-direction:column;gap:8px}
.experience-editor .editor-controls input:not([type=range]),.experience-editor .editor-controls select,.experience-editor .editor-controls textarea {padding:10px 12px;width:100%;min-height:46px;border:1px solid #cfc6dc;border-radius:10px;background:#fff;font-size:16px;line-height:1.5}
.experience-editor .editor-controls input[type=range] {min-height:44px;width:100%;accent-color:var(--xp-accent);margin:0}
.editor-tool-tabs {display:flex;gap:3px;padding:4px;margin:6px 0 0;background:#f4f1f8;border-radius:14px}
.editor-tool-tabs button {flex:1;min-width:44px;min-height:60px;border:0;border-radius:10px;background:transparent;color:var(--xp-secondary);padding:8px 3px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;font-size:13px;line-height:1.3;font-weight:700}
.editor-tool-tabs button[aria-selected=true] {background:#fff;color:var(--xp-accent);box-shadow:0 1px 6px #34224b12}
.editor-tool-panel {padding:18px 0 0;min-height:255px;outline-offset:4px}
.editor-tool-panel .tool-description {margin:0 0 18px;font-size:14px;line-height:1.6;color:var(--xp-secondary)}
.experience-editor .editor-row {gap:16px}.editor-tool-panel .filter-options {display:grid;grid-template-columns:repeat(3,1fr);gap:9px}
.editor-tool-panel .filter-options button {min-height:84px;padding:10px 6px;display:flex;align-items:center;flex-direction:column;gap:8px;border:1px solid var(--xp-border);border-radius:12px;font-size:13px;background:#fff;color:var(--xp-ink)}
.editor-tool-panel .filter-options button[aria-pressed=true] {border:2px solid var(--xp-accent);background:var(--xp-accent-soft);color:var(--xp-accent)}
.filter-swatch {display:block;width:30px;height:30px;border-radius:50%;background:#b8c9d7}.filter-warm {background:#dfbd93}.filter-cool {background:#92b6d3}.filter-noir {background:#656873}.filter-pop {background:#c893cb}
.experience-editor .editor-commit {margin-top:14px;border-top:1px solid var(--xp-border);padding-top:18px;display:block}
.editor-commit-actions {display:flex;gap:10px;flex-wrap:wrap}.editor-commit-actions .btn {flex:1}
.experience-editor #edit-status {margin:12px 0 0;font-size:14px;line-height:1.65;color:var(--xp-ink)}
.experience-editor #edit-save-state {margin:7px 0 0}.experience-editor #edit-output {border-top:1px solid var(--xp-border);margin-top:16px;padding-top:22px}
#edit-output h2 {font-size:20px}.experience-editor .editor-playback {display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:12px;color:#fff;margin-top:12px}
.experience-editor .editor-playback label {flex:1;min-width:100px}.experience-editor #edit-time {min-width:38px}.experience-editor #edit-seek {width:100%;min-height:32px;accent-color:#b9a1ff}
#edit-trim-feedback {font-size:14px;line-height:1.6;margin-bottom:12px}.editor-controls [aria-invalid=true] {border:2px solid #ac3a52!important}
/* Library: compact choices first; limits/consents are still readable in context. */
body:not(.in-shorts) .library-heading {margin-bottom:26px}.library-heading h1 {font-size:32px}.library-heading p {font-size:15px!important}
body:not(.in-shorts) .library-portal {min-height:132px;padding:22px}.library-portal h2 {font-size:19px}.library-portal .portal-count {font-size:13px}
body:not(.in-shorts) .device-note p {font-size:14px}.record-filters {display:flex;flex-wrap:wrap;gap:12px;padding:18px;background:#fff;border:1px solid var(--xp-border);border-radius:18px;margin:20px 0}
.record-filters>label {display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:650;flex:1;min-width:120px}.record-filters .record-query {flex:2;min-width:170px}
.record-filters input,.record-filters select {border:1px solid #cfc6dc;background:white;border-radius:10px;min-height:46px;padding:10px;font-size:16px;min-width:0;width:100%}
.record-result-count {font-size:14px;color:var(--xp-secondary)}.record-filter-clear {align-self:end}
body:not(.in-shorts) .history-card h2 {font-size:18px}.history-grid {align-items:stretch}.history-card .card-link {font-size:14px}
body:not(.in-shorts) .period-stats span {font-size:13px}.period-stats strong {font-variant-numeric:tabular-nums}
.period-controls .btn {min-width:44px}.period-tabs button {min-height:44px;font-size:14px}
/* No fixed editor controls hide fields when the mobile keyboard opens. */
@media(max-width:1000px) {
 body:not(.in-shorts) .player-main {margin:0 auto;max-width:900px;padding:26px 22px 110px}
 body:not(.in-shorts) .player-header {height:72px;padding:0 22px}
 .header-context {display:none}
 body:not(.in-shorts) .bottom-nav.experience-nav {inset:auto 12px 12px;bottom:calc(8px + env(safe-area-inset-bottom));width:auto;flex-direction:row;gap:0;border-radius:22px;padding:5px;box-shadow:0 8px 25px #29243815}
 body:not(.in-shorts) .bottom-nav.experience-nav a {flex:1;width:auto;padding:7px 4px;min-height:58px;font-size:12px}
 .in-studio-editor .bottom-nav.experience-nav {display:none!important}
 .in-studio-editor .player-main {padding-bottom:28px}
 .task-shortcuts {grid-template-columns:repeat(2,minmax(0,1fr))}
 .experience-editor.editor-layout {grid-template-columns:minmax(210px,.8fr) minmax(320px,1.2fr);gap:18px}
}
@media(max-width:650px) {
 body:not(.in-shorts) .player-header {height:68px;padding:0 16px;gap:12px}
 body:not(.in-shorts) .player-main {padding:22px 16px 105px}
 body:not(.in-shorts) .brand-copy strong {font-size:23px}.brand-copy small {font-size:9px}
 .player-header .actions {gap:7px}.home-heading h1 {font-size:29px}.home-heading p {font-size:14px}
 .home-heading {margin-bottom:20px}.launch-hero.play-hero {grid-template-columns:1fr 110px;padding:23px 20px;min-height:260px;border-radius:22px;gap:8px}
 .launch-hero .hero-copy {z-index:2;grid-column:1/-1;grid-row:1}.launch-hero h2 {font-size:34px;max-width:160px}
 .launch-hero .hero-eyebrow {font-size:12px}.launch-hero .hero-copy>p {font-size:14px;margin:12px 0 18px}
 .launch-hero .hero-stage {grid-column:2;grid-row:1;min-height:150px;align-self:start;margin-top:30px;pointer-events:none}
 .launch-hero .hero-runner {width:135px;height:160px;max-width:none}.launch-hero .stage-ring {height:116px;width:116px;box-shadow:none}
 .launch-hero .hero-copy .actions {gap:8px}.launch-hero .hero-cta {min-width:0;font-size:14px}
 .practice-label {font-size:12px;margin-top:17px}.home-tasks .section-title {margin:25px 0 13px}.section-title h2,.home-revisit h2 {font-size:20px}
 .task-shortcuts {gap:10px}.task-shortcut {padding:16px 12px;min-height:82px;gap:10px;font-size:15px}.task-shortcut>.rom-icon {display:none}
 .task-shortcut .icon-tile {width:38px;height:38px}.home-revisit {display:block;padding:20px;border-radius:18px}.home-revisit .actions {margin-top:16px}
 .service-card.compact-service {min-height:88px;padding:16px;border-radius:16px;gap:12px}.compact-service h3 {font-size:15px}.service-grid {grid-template-columns:1fr}
 .in-studio-editor .player-header {display:none}.in-studio-editor .player-main {padding:12px 14px 24px}
 .in-studio-editor .crumb {margin-bottom:8px}.in-studio-editor .editor-heading {display:block;margin-bottom:14px}
 .editor-heading h1 {font-size:24px}.editor-heading p {display:none}
 .edit-history-actions {margin-top:12px;gap:8px}.edit-history-actions .btn {min-height:44px;padding:9px 12px;font-size:13px}
 .experience-editor.editor-layout {grid-template-columns:1fr;gap:14px}
 .experience-editor .editor-preview {position:static;padding:14px;border-radius:18px}
 .experience-editor .editor-preview canvas {max-height:34dvh;max-width:100%;width:auto}
 .experience-editor .editor-controls {padding:16px;border-radius:18px}
 .preview-note {margin-top:10px}.editor-tool-tabs {margin-top:4px}.editor-tool-tabs button {min-height:56px;font-size:12px;gap:6px}
 .editor-tool-panel {min-height:0;padding-top:16px}.editor-tool-panel .filter-options {grid-template-columns:repeat(3,1fr)}
 .experience-editor .editor-row {gap:12px}.experience-editor .editor-controls label {font-size:14px;margin-bottom:12px}
 .experience-editor .editor-commit {margin-top:10px;padding-top:15px}.editor-commit-actions {gap:8px}
 body:not(.in-shorts) .library-heading h1 {font-size:27px}.record-filters {padding:15px;gap:12px}.record-filters>label {min-width:90px}.record-filters .record-query {flex-basis:100%}
 .record-filter-clear {flex-basis:100%}.period-stats span {font-size:12px!important}.period-controls strong {font-size:13px}
 body:not(.in-shorts) .player-footer {font-size:12px;padding-top:26px}.footer-links {gap:12px}
}
@media(max-width:360px) {
 .player-header .brand-copy small {display:none}.player-header .brand-symbol {width:37px;height:39px}.player-header .brand {gap:7px}
 .player-header .actions {gap:5px}.player-header .icon-btn {width:44px;height:44px}
 .launch-hero.play-hero {padding:20px 16px;grid-template-columns:1fr 85px}.launch-hero .hero-runner {width:118px;height:146px}.launch-hero .stage-ring {width:97px;height:97px}
 .launch-hero h2 {font-size:31px}.task-shortcut {font-size:14px;padding:15px 11px;gap:9px}.task-shortcut .icon-tile {width:34px;height:34px;border-radius:11px}
 .editor-tool-tabs button {font-size:11px}.experience-editor .editor-controls {padding:14px}.editor-tool-tabs {gap:0;padding:3px}
 .editor-heading h1 {font-size:23px}.editor-commit-actions .btn {padding:11px 8px}
}
@media(prefers-reduced-motion:reduce) {
 .experience-nav a,.btn,.compact-service,.task-shortcut {transition:none!important;transform:none!important}
}
body[data-motion=reduced] .experience-nav a {transition:none}
.in-engine .bottom-nav.experience-nav,.vault-progressing .bottom-nav.experience-nav {display:none!important}

/* The game keeps a dedicated portrait play surface; no navigation overlays its controls. */
.in-shorts .course-map-action{width:auto;min-width:72px;padding:0 14px;gap:6px;border-radius:18px;font-size:13px;font-weight:700}
.in-shorts .portrait-context a{display:flex;align-items:center;gap:10px;min-height:44px}
.studio-empty{border:1px dashed var(--xp-border);border-radius:16px;padding:24px;grid-column:1/-1;background:white}
body:not(.in-shorts) .record-filters label{display:flex;flex-direction:column;gap:8px;font-size:14px;font-weight:700}
body:not(.in-shorts) .record-filters input,body:not(.in-shorts) .record-filters select{width:100%;min-width:0}
body:not(.in-shorts) .record-filters{grid-template-columns:minmax(220px,2fr) repeat(3,minmax(100px,1fr)) auto;align-items:end}
body:not(.in-shorts) .record-filters .record-query{grid-column:auto}
@media(max-width:1000px){body:not(.in-shorts) .record-filters{grid-template-columns:repeat(3,minmax(0,1fr))}body:not(.in-shorts) .record-query{grid-column:1/-1!important}body:not(.in-shorts) #record-reset{grid-column:1/-1;justify-self:start}}
@media(max-width:650px){body:not(.in-shorts) .editor-preview canvas{max-height:28dvh}body:not(.in-shorts) .editor-heading{margin-bottom:12px}.studio-heading h1{font-size:30px}.studio-heading p{font-size:16px}}
@media(max-width:360px){body:not(.in-shorts) .record-filters{grid-template-columns:repeat(2,minmax(0,1fr))}body:not(.in-shorts) #record-reset{grid-column:auto;justify-self:stretch}}
/* Filter controls are a real grid, not compressed single-line selects. */
body:not(.in-shorts) .record-filters{display:grid}
body:not(.in-shorts) .record-filters>label{min-width:0}
@media(max-width:650px){
 body:not(.in-shorts) .record-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
 body:not(.in-shorts) #record-reset{grid-column:auto;justify-self:stretch}
}
/* Hide the skip link by clipping as well as position (full-page captures can rebase fixed offsets). */
.skip:not(:focus){clip-path:inset(50%);width:1px;height:1px;padding:0;overflow:hidden;white-space:nowrap}

/* Explicit form boundaries and comfortable non-game icon/timeline targets. */
:root {--xp-control-border:#91849f}
body:not(.in-shorts) :is(input,textarea,select):not([type=range]) {border-color:var(--xp-control-border)}
body:not(.in-shorts) .icon-btn {min-width:44px;min-height:44px}
.experience-editor #edit-seek {min-height:44px}

/* S26 input affordances share portrait/mobile layout; no text baked into icons. */
.keyboard-trigger{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:9px 12px;border:1px solid var(--line,#dce0ea);border-radius:12px;background:var(--surface,#fff);color:var(--text,#1f2440);font:inherit;font-size:13px;font-weight:700;cursor:pointer;white-space:nowrap}
.keyboard-trigger svg{flex:none}.keyboard-dialog{max-width:min(620px,calc(100vw - 24px))!important}.keyboard-dialog .dialog-body{max-height:75dvh;overflow:auto}
.keyboard-guide details{border-top:1px solid #dce0ea;padding:12px 0}.keyboard-guide summary{min-height:44px;padding:10px 0;font-weight:800;cursor:pointer}.keyboard-guide p,.keyboard-settings p{font-size:14px;line-height:1.65;color:#515872}
.key-guide-row{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:44px;padding:6px 0}.key-guide-row span{font-size:14px}
kbd{display:inline-block;font:600 12px/1.5 ui-monospace,monospace;border:1px solid #c6cbd8;background:#f4f5fa;border-radius:6px;padding:3px 7px;color:#343953;text-align:center;white-space:normal}
.key-bindings{display:grid;grid-template-columns:1fr 1fr;gap:12px}.key-bindings label{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:700}.key-bindings select{width:100%;min-width:0;min-height:44px;font:inherit;padding:8px;border:1px solid #bcc4d5;border-radius:10px;background:white;color:#232944}
.keyboard-settings .switch{align-items:flex-start}.keyboard-settings small{line-height:1.5}#key-settings-status{min-height:24px}
.command-list{display:grid;gap:6px;margin-top:12px}.command-item{display:flex;align-items:center;gap:12px;width:100%;min-height:48px;padding:10px 12px;border:1px solid #e0e3ed;border-radius:12px;background:#fff;color:#232944;text-align:left;font:inherit;font-weight:700;font-size:15px;line-height:1.5;cursor:pointer}.command-item span{flex:1}.command-item:hover{background:#f4f1ff}.command-count{font-size:13px;color:#515872}
:where(button,a,input,select,textarea,summary,[tabindex]):focus-visible{outline:3px solid #6342d8;outline-offset:3px}
.play-scene:focus-visible{outline:3px solid #f5ce6b;outline-offset:-5px}.shorts-feed:focus-visible{outline:3px solid #f5ce6b;outline-offset:-4px}.editor-preview:focus-visible{outline:3px solid #6342d8;outline-offset:3px}
.game-key-hint{display:none;pointer-events:none}.shorts-tools .keyboard-trigger{background:rgba(255,255,255,.13);color:#fff;border-color:rgba(255,255,255,.28);padding:6px 9px;font-size:12px}
@media(hover:hover) and (pointer:fine) and (min-width:900px){.game-key-hint{display:inline-block;margin-top:2px;font-size:10px;padding:0 4px;background:#292842;color:#fff;border-color:#78748d}.race-controls button{flex-direction:column;gap:2px}}
@media(max-width:480px){.key-bindings{grid-template-columns:1fr}.key-guide-row{gap:8px;align-items:flex-start}.key-guide-row kbd{max-width:58%}.player-header .keyboard-trigger{padding:8px}.keyboard-trigger span{font-size:12px}.header-context{display:none}}
@media(prefers-reduced-motion:reduce){.keyboard-dialog,.command-item{scroll-behavior:auto;transition:none}}
@media(max-width:480px){.player-header [data-action=sound],.player-header [data-action=settings]{display:none}}

/* Key chips must not crowd out the action name or overflow the smaller buttons.
   A compact hint is decorative; the guide retains full left/right key names. */
@media(hover:hover) and (pointer:fine) and (min-width:900px){
 .game-key-hint{white-space:nowrap;flex-shrink:0;position:relative;line-height:1.4}
 .race-controls button>svg,.race-controls button>img{flex-shrink:0}
 .action-controls{grid-template-columns:60px 60px;grid-template-rows:64px 76px}
 .race-controls .small-control{height:64px;width:60px}
 .race-controls .jump-control,.race-controls .turbo-control{height:76px;width:60px}
 .turbo-control>[data-hud=turbo]{position:relative}
 .draft-note{bottom:calc(198px + env(safe-area-inset-bottom))}
}

/* Shared account/creation language: compact choices, clear focus, portrait base.
 * Uses the existing design tokens instead of a separate visual theme. */
.creation-heading{margin:28px 0 24px}.creation-heading h1{font-size:clamp(25px,3vw,36px);margin-bottom:10px}.creation-heading p{color:var(--muted);margin:8px 0}
.creation-nav{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 20px}.creation-nav a{display:inline-flex;gap:8px;align-items:center;min-height:44px;padding:10px 12px;border-radius:12px;background:var(--paper);border:1px solid var(--line);font-size:14px;font-weight:650}
.creation-entry{margin:30px 0}.creation-entry h2{font-size:20px;margin-bottom:16px}.creation-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.creation-shortcut{display:flex;gap:16px;align-items:center;border:1px solid var(--line);background:var(--paper);padding:18px;border-radius:18px}.creation-shortcut strong{flex:1;font-size:16px}.creation-shortcut .icon-tile{width:44px;height:44px;border-radius:14px}
.creation-filters{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0 8px}.creation-count{margin-bottom:12px;color:var(--muted)}.creation-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.creation-grid>.creator-empty{grid-column:1/-1}.creation-card{overflow:hidden;background:var(--paper);border:1px solid var(--line);border-radius:20px;min-width:0}.creation-art{display:grid;place-items:center;aspect-ratio:1;background:var(--lilac);padding:28px}.creation-art img{max-height:100%;width:100%;object-fit:contain;aspect-ratio:1}.creation-card-copy{display:flex;align-items:flex-start;flex-direction:column;gap:12px;padding:20px}.creation-card-copy h2{font-size:20px;overflow-wrap:anywhere}.creation-author{font-size:14px;color:var(--deep);overflow-wrap:anywhere}.creation-status{display:inline-flex;gap:6px;align-items:center;padding:6px 10px;font-size:13px;font-weight:700;line-height:1.5;border-radius:10px;background:var(--lilac);color:var(--deep)}.creation-status[data-state=approved]{background:#e3f5ec;color:#256844}.creation-status[data-state=rejected]{background:#fff0e2;color:#835323}
.creation-editor,.creation-detail{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:32px;align-items:start;max-width:1040px;margin:0 auto 32px}.creation-image-field,.creation-fields,.creation-detail-copy{min-width:0}.creation-preview,.creation-detail-art{display:grid;place-items:center;background:var(--lilac);border:1px solid var(--line);border-radius:24px;padding:32px;aspect-ratio:1;overflow:hidden;min-width:0}.creation-preview img,.creation-detail-art img{width:100%;height:100%;object-fit:contain;aspect-ratio:1}.creation-placeholder{display:flex;gap:22px;flex-direction:column;align-items:center;color:var(--deep)}.creation-image-field>.btn{margin:16px 0 10px}.creation-image-field>input[type=file]{display:block;max-width:100%;font-size:14px;min-height:44px}.creation-fields{background:var(--paper);border:1px solid var(--line);border-radius:20px;padding:26px}.creation-fields label,#creation-appeal-form label{display:block;font-size:15px;font-weight:650;margin-bottom:20px}.creation-fields input,.creation-fields textarea,#creation-appeal-form textarea{display:block;width:100%;min-height:48px;border:1px solid var(--line);border-radius:12px;background:var(--paper);font-size:16px;padding:12px;margin-top:8px}.creation-fields textarea{resize:vertical}.creation-guidance{color:var(--muted);font-size:14px;padding:14px 0;line-height:1.7}.creation-detail-copy{display:flex;flex-direction:column;gap:18px;padding:16px 0}.creation-detail-copy h1{font-size:32px;overflow-wrap:anywhere}.creation-detail-copy>p{white-space:pre-wrap}.creation-detail .actions{margin-top:14px}#creation-status,#creation-detail-status,#creation-modal-status{margin-top:16px;line-height:1.7;font-size:14px}
.form-error-summary{background:#fff4f6;border:2px solid var(--danger);border-radius:14px;padding:16px;margin:0 0 22px;grid-column:1/-1}.form-error-summary[hidden]{display:none}.form-error-summary:focus{outline:3px solid var(--focus);outline-offset:3px}.form-error-summary h2{font-size:17px;margin-bottom:8px}.form-error-summary ul{padding:0;margin:0;list-style:none}.form-error-summary button{background:none;border:0;text-align:left;min-height:44px;color:var(--danger);text-decoration:underline;font-size:14px;padding:8px 0}.field-error{color:var(--danger)!important;font-size:14px!important;line-height:1.6;font-weight:500;margin:7px 0 0!important}input[aria-invalid=true],textarea[aria-invalid=true]{border:2px solid var(--danger)!important}
.password-control{display:flex;align-items:center;gap:8px}.password-control input{min-width:0;flex:1}.password-control .password-toggle{margin:8px 0 0;min-width:64px;white-space:nowrap}.creator-auth,.creator-settings{scroll-margin-top:90px}.creator-auth input,.creator-settings input,.creator-settings textarea{font-size:16px!important}.creator-auth form>[type=submit]{width:100%;margin-top:12px}.creator-profile{border-radius:24px}.creator-profile .profile-counts{padding:14px 0;gap:24px}.creator-profile .profile-counts b{font-size:24px}.creator-profile .actions{gap:8px}
#report-form fieldset,#creation-review-form fieldset{border:0;padding:0;margin:0 0 18px;min-width:0}#report-form legend,#creation-review-form legend{font-size:15px;font-weight:700;margin-bottom:12px}.choice-buttons{display:grid;gap:10px;grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}.choice-buttons label{position:relative;display:block;margin:0}.choice-buttons input{position:absolute;left:12px;top:50%;transform:translateY(-50%);width:18px;height:18px;accent-color:var(--violet);margin:0}.choice-buttons span{display:flex;align-items:center;gap:8px;min-height:52px;border:1px solid var(--line);border-radius:12px;padding:12px 12px 12px 38px;font-size:14px;font-weight:650}.choice-buttons input:checked+span{background:var(--lilac);border-color:var(--violet);color:var(--deep)}.choice-buttons input:focus-visible+span{outline:3px solid var(--focus);outline-offset:2px}.choice-buttons input:disabled+span{opacity:.5}.choice-buttons input:disabled{cursor:not-allowed}.creator-check .field-error{grid-column:1/-1}#creation-review-form .creator-check{display:grid;grid-template-columns:24px minmax(0,1fr);gap:10px;align-items:start;min-height:44px;margin:18px 0}#creation-review-form input[type=checkbox]{width:20px;height:20px;margin:2px 0;accent-color:var(--violet)}
.reaction-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:18px}.reaction-option{display:flex;flex-direction:column;align-items:center;gap:8px;min-height:132px;background:var(--paper);border:1px solid var(--line);border-radius:14px;padding:14px 8px;overflow-wrap:anywhere}.reaction-option img{width:64px;height:64px;object-fit:contain}.reaction-option strong{font-size:14px}.reaction-option small{font-size:11px}.reaction-option[aria-pressed=true]{border:2px solid var(--violet)}
@media(max-width:860px){.creation-shortcuts{grid-template-columns:1fr}.creation-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.creation-editor,.creation-detail{gap:22px}}
@media(max-width:640px){.creation-editor,.creation-detail{grid-template-columns:1fr}.creation-preview,.creation-detail-art{padding:24px;max-width:400px;margin:0 auto}.creation-fields{padding:20px}.creation-detail-copy h1{font-size:26px}.creation-card-copy{padding:16px}.creation-grid{grid-template-columns:1fr}.creation-art{aspect-ratio:4/3}.creation-art img{max-width:220px}.creation-nav a{font-size:13px;padding:10px}.reaction-picker{grid-template-columns:repeat(2,minmax(0,1fr))}.creation-heading .overline{line-height:1.7}.creator-profile .actions .btn{flex:1 1 auto}.creator-auth{padding:22px 16px}}

/* Checkbox feedback remains below its own label, not a narrow third column. */
.creator-check{display:grid!important;grid-template-columns:24px minmax(0,1fr);gap:8px 12px;align-items:start}
.creator-check>.field-error{grid-column:2;margin:0}

.creation-image-field>input.creation-file-input{position:absolute;width:1px;height:1px;min-height:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0;padding:0}
.creator-auth input,.creator-settings input,.creator-settings textarea,.creation-fields input,.creation-fields textarea{scroll-margin-block:110px}
@media(max-width:640px){.in-creation-editor .experience-nav{display:none}}

/* One interaction zone per game. Controls never overlap the visual arena.
   These CSS tokens are scoped; existing race appearance is deliberately intact. */
.game-switch{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:4px 0 20px}.game-switch a{display:inline-flex;gap:7px;align-items:center;min-height:44px;padding:10px 15px;border:1px solid var(--line,#dedfe9);border-radius:14px;color:inherit;text-decoration:none;font-weight:700}.game-switch [aria-current=page]{background:#e5f4ef;border-color:#36847a;color:#175e55}
.survival-shell{--sv-ink:#25394b;--sv-sub:#526173;--sv-line:#dde4e6;--sv-green:#186a5d;max-width:1040px;margin:0 auto 28px;color:var(--sv-ink)}
.survival-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;gap:12px}.survival-title h1{font-size:clamp(25px,4vw,38px);margin:5px 0 0;letter-spacing:-.035em}.survival-title .overline{color:var(--sv-sub);letter-spacing:0;font-size:12px}.survival-goal{font-size:38px;font-weight:800;color:var(--sv-green);font-variant-numeric:tabular-nums}.survival-goal small{font-size:14px;margin-left:3px}
.survival-layout{display:grid;grid-template-columns:minmax(0,520px) minmax(240px,1fr);gap:32px;align-items:start}.survival-card{border:1px solid var(--sv-line);border-radius:24px;background:#fff;box-shadow:0 10px 35px rgba(37,57,75,.08);overflow:hidden;min-width:0;position:relative}
.survival-hud{display:flex;gap:28px;align-items:center;padding:12px 18px;background:#fff;min-height:62px}.survival-hud>span{display:flex;gap:4px;flex-direction:column}.survival-hud small{font-size:12px;color:var(--sv-sub)}.survival-hud strong{font-size:23px;line-height:1.05;font-variant-numeric:tabular-nums}.survival-hud .icon-btn{margin-left:auto;min-width:44px;min-height:44px}
.survival-cue{min-height:40px;padding:8px 14px;display:flex;align-items:center;justify-content:center;gap:8px;font-size:15px;line-height:1.4;font-weight:750;background:#f6f5ef;color:#4c4d38}.survival-cue span{min-width:0}
.survival-surface{position:relative;aspect-ratio:1/1;min-height:180px;touch-action:none;overscroll-behavior:contain;outline-offset:-4px;background:#d6edf0;isolation:isolate}.survival-surface:focus-visible{outline:3px solid #306ec9}.survival-surface canvas{display:block;width:100%;height:100%;position:absolute;inset:0}
.survival-controls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:12px;background:#fff}.survival-controls button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;min-height:60px;min-width:0;border-radius:16px;border:1px solid #ccd9df;background:#f2f7f7;color:#25394b;cursor:pointer;font:inherit;touch-action:none;user-select:none;-webkit-user-select:none;font-size:13px;font-weight:700}.survival-controls button:nth-child(3){background:#1c7064;color:white;border-color:#1c7064}.survival-controls button.pressed{background:#c9e7df;box-shadow:inset 0 0 0 2px #1b7362;color:#154b42}.survival-controls kbd{font-size:12px;color:inherit;background:transparent;border:0;box-shadow:none;font-weight:500}.survival-controls[inert]{opacity:.6}
.survival-stage{position:relative;display:flex;gap:7px;align-items:center;justify-content:center;padding:6px 12px 10px;font-size:12px;color:#506468;background:#fff}.survival-stage i{position:absolute;bottom:0;left:0;right:0;height:4px;background:#287b6d;transform-origin:left;transform:scaleX(0)}
.survival-choices{padding-top:18px}.survival-choices h2{font-size:24px;line-height:1.3;letter-spacing:-.035em;margin:0 0 12px}.survival-choices>p{color:var(--sv-sub);font-size:15px;line-height:1.7;max-width:360px}.survival-modes{border:0;padding:0;margin:22px 0}.survival-modes legend{font-weight:750;font-size:14px;margin-bottom:10px}.survival-modes>div{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.survival-modes button{min-height:46px;cursor:pointer;padding:9px;border:1px solid #c9d6d7;border-radius:12px;background:#fff;color:var(--sv-ink);font:inherit;font-size:14px}.survival-modes [aria-pressed=true]{background:#e5f4ef;border-color:#217565;color:#155b4c;box-shadow:inset 0 0 0 1px #217565;font-weight:750}.survival-modes p{font-size:13px;line-height:1.5;color:var(--sv-sub);min-height:20px;margin:10px 0 0}
.survival-shell .sv-start{width:100%;min-height:52px;background:#1c7064;border-color:#1c7064;color:white;border-radius:15px}.sv-solo{font-size:12px!important;text-align:center;margin:9px 0 18px}.sv-guide,.sv-code{border-top:1px solid var(--sv-line);padding:12px 0}.sv-guide summary,.sv-code summary{display:flex;gap:9px;align-items:center;min-height:32px;cursor:pointer;font-weight:650;font-size:14px}.sv-guide p,.sv-code p{font-size:14px;line-height:1.6}.sv-code label{display:block;font-size:13px;margin:10px 0 5px}.sv-code input,#sv-copy-code{width:100%;min-height:44px;border:1px solid #b7c5c9;border-radius:9px;padding:10px;font:inherit;font-size:16px;color:#24374a;background:white}.sv-code .field-error{min-height:0;color:#a63534}
.survival-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(15,36,44,.43);padding:16px;overflow:auto;z-index:1}.survival-overlay[hidden]{display:none}.sv-sheet{display:flex;flex-direction:column;align-items:stretch;text-align:center;gap:9px;background:rgba(255,255,255,.99);border-radius:20px;max-width:350px;width:100%;padding:22px;box-shadow:0 12px 30px rgba(0,0,0,.13);margin:auto;color:#25394b}.sv-sheet h2{font-size:23px;line-height:1.2;margin:0;letter-spacing:-.03em}.sv-sheet p{font-size:13px;line-height:1.55;margin:0 0 3px;color:#526173}.sv-sheet .btn{min-height:44px;flex:none}.sv-sheet .btn.primary{background:#1c7064;border-color:#1c7064;color:white}.sv-emblem{color:#a96e0d;align-self:center}.sv-metrics{display:flex;justify-content:space-around;margin:2px 0 8px}.sv-metrics span{font-size:12px;display:flex;flex-direction:column;gap:4px;color:#526173}.sv-metrics strong{font-size:25px;line-height:1.1;color:#25394b;font-variant-numeric:tabular-nums}.sv-result small{font-size:11px;line-height:1.5;color:#526173}.sv-record-link{font-size:13px;min-height:36px;display:flex;align-items:center;justify-content:center;color:#196b5b}.sv-sheet .keyboard-trigger{align-self:center}
body.in-survival .player-footer{display:none}body.survival-running .player-header,body.survival-running .experience-nav,body.survival-running .game-switch,body.survival-running .survival-title{display:none}body.survival-running .player-main{padding:12px!important;margin-left:0!important;max-width:none!important}body.survival-running .survival-shell{max-width:520px;margin:0 auto}body.survival-running .survival-layout{display:block}body.survival-running .survival-card{display:flex;flex-direction:column;height:calc(100dvh - 24px);max-height:860px}body.survival-running .survival-surface{flex:1;aspect-ratio:auto;min-height:100px}body.survival-running .survival-controls,body.survival-running .survival-hud,body.survival-running .survival-stage,body.survival-running .survival-cue{flex-shrink:0}
.survival-records{max-width:900px;margin:0 auto 28px}.survival-records h1{font-size:32px;margin:16px 0 9px}.survival-records>p{color:#526173;line-height:1.6}.sv-periods{display:flex;gap:8px;flex-wrap:wrap;margin:22px 0 14px}.sv-periods .btn{transition:box-shadow .15s}.sv-periods [aria-pressed=true]{background:#1c7064;color:#fff}.sv-date{display:flex;align-items:center;gap:12px}.sv-date label{display:flex;gap:8px;align-items:center;font-size:13px;min-width:0}.sv-date input{min-width:0;max-width:170px;min-height:44px;border:1px solid #ccd7db;background:white;color:#25394b;padding:6px 10px;border-radius:10px;font:inherit;font-size:16px}.sv-record-stats{display:grid;grid-template-columns:repeat(3,1fr);background:#eaf4f0;border-radius:18px;padding:20px;margin:20px 0;gap:12px}.sv-record-stats span{display:flex;flex-direction:column;gap:6px;font-size:13px;color:#526173}.sv-record-stats strong{font-size:28px;color:#25394b;font-variant-numeric:tabular-nums}.sv-record-toolbar{display:flex;justify-content:space-between;align-items:center;margin:15px 0}.sv-record{display:flex;gap:16px;padding:22px 0;border-top:1px solid #dde4e6}.sv-record>div{min-width:0}.sv-record h2{margin:0;font-size:18px}.sv-record p{font-size:13px;color:#526173;line-height:1.6}.sv-record-icon{padding:12px;background:#e7f2ee;border-radius:15px;height:fit-content;display:flex;color:#176958}.sv-record .btn{font-size:13px;min-height:44px}.sv-retention{font-size:12px}
@media(max-width:700px){.game-switch{gap:6px;margin:0 0 14px}.game-switch a{font-size:12px;padding:8px 11px;min-height:40px}.survival-layout{display:flex;flex-direction:column;gap:0}.survival-card{width:100%;border-radius:19px}.survival-title{margin:0 0 14px}.survival-title h1{font-size:26px}.survival-title .overline{font-size:11px}.survival-goal{font-size:30px}.survival-choices{width:100%;padding-top:18px}.survival-choices h2{font-size:21px}.survival-choices>p{max-width:none}.survival-surface{aspect-ratio:1.18}.survival-controls{gap:8px;padding:10px}.survival-controls button{min-height:52px}.survival-controls kbd{display:none}.survival-hud{padding:10px 14px;min-height:58px}.survival-modes>div{grid-template-columns:repeat(4,1fr)}.survival-modes button{font-size:12px;padding:8px 3px}.sv-sheet{padding:16px;gap:8px}.sv-sheet h2{font-size:22px}.sv-emblem{display:none}.survival-records h1{font-size:27px}.sv-periods{gap:5px}.sv-periods .btn{padding:8px 13px;font-size:13px}.sv-date label{flex-direction:column;align-items:flex-start;font-size:11px;gap:3px}.sv-record-stats{padding:16px;gap:10px}.sv-record h2{font-size:16px}.sv-record-icon{padding:9px}.sv-record{gap:11px}.sv-record .actions{gap:7px}.sv-record .btn{padding:8px 10px}.survival-title .overline{line-height:1.5}body.in-survival .header-context{display:none}}
@media(max-height:500px) and (min-width:560px){body.survival-running .survival-shell{max-width:960px}body.survival-running .survival-card{display:grid;grid-template-columns:minmax(0,1fr) 220px;grid-template-rows:70px 50px 1fr 36px;height:calc(100dvh - 16px)}body.survival-running .player-main{padding:8px!important}.survival-running .survival-surface{grid-column:1;grid-row:1/5;min-height:0}.survival-running .survival-hud{grid-column:2;grid-row:1;gap:15px;padding:8px 12px}.survival-running .survival-cue{grid-column:2;grid-row:2;font-size:13px}.survival-running .survival-controls{grid-column:2;grid-row:3;grid-template-columns:repeat(2,1fr);align-content:center}.survival-running .survival-controls kbd{display:none}.survival-running .survival-stage{grid-column:2;grid-row:4}.sv-sheet{padding:14px;gap:6px}.sv-sheet p{font-size:12px}.sv-result .sv-metrics{display:none}}
@media(prefers-reduced-motion:reduce){.survival-shell *, .game-switch *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

body.in-survival:not(.survival-running) .survival-hud,body.in-survival:not(.survival-running) .survival-cue,body.in-survival:not(.survival-running) .survival-controls,body.in-survival:not(.survival-running) .survival-stage{display:none}
body.race-running .survival-entry{display:none!important}
@media(max-width:700px){body.in-survival:not(.survival-running) .survival-surface{height:200px;min-height:180px;aspect-ratio:auto}.survival-choices{padding-top:14px}.survival-choices>p{margin:7px 0;font-size:13px}.survival-modes{margin:14px 0}.survival-title{margin-bottom:10px}.in-survival .player-main{padding-top:14px}.survival-title .overline{display:none}.survival-shell .sv-start{min-height:48px}.shorts-tabs .survival-entry{font-size:12px;padding-left:8px;padding-right:8px}}

/* The first action stays above the optional settings on a small phone. */
@media(max-width:700px){.survival-choices{display:flex;flex-direction:column}.survival-choices .sv-start{order:-2;margin:0 0 5px}.survival-choices .sv-solo{order:-1;margin:3px 0 14px}.survival-choices h2{font-size:19px}.survival-choices[hidden]{display:none}}

body.survival-result .survival-hud,body.survival-result .survival-cue,body.survival-result .survival-controls,body.survival-result .survival-stage{display:none}
@media(max-height:500px) and (min-width:560px){body.survival-result .survival-card{display:flex;max-width:650px;margin:auto}.survival-result .sv-result{max-width:480px}}

/* Portrait first: one column, no hidden gesture-only actions; no copied artwork text. */
.in-challenge .player-main { max-width:1120px; }
.challenge-page { --challenge-accent:var(--primary,#6244df); max-width:980px; margin:auto; padding-bottom:24px; }
.challenge-nav { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:24px; }
.challenge-nav a { display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:10px 16px; border-radius:14px; border:1px solid var(--line,#d9dfeb); text-decoration:none; font-weight:700; }
.challenge-nav a[aria-current] { background:#eae4ff; color:#382386; border-color:#b9a8ef; }
.challenge-heading { margin:20px 0 28px; }.challenge-heading h1 { font-size:clamp(26px,4vw,38px); line-height:1.25; margin:8px 0; }
.challenge-heading p { color:#506075; }.challenge-preview { display:grid; grid-template-columns:minmax(220px,.85fr) minmax(0,1.2fr); overflow:hidden; border:1px solid #d8e0ec; border-radius:28px; background:#fff; box-shadow:0 12px 36px #24324b0b; }
.challenge-art { min-height:330px; position:relative; display:grid; place-items:center; background:linear-gradient(145deg,#e4f1ff,#eee9ff); isolation:isolate; overflow:hidden; }
.challenge-art.survival { background:linear-gradient(145deg,#d8f7ef,#e6f2ff); }
.challenge-art-ring { position:absolute; width:240px; height:240px; border:24px solid #ffffff70; border-radius:50%; z-index:-1; }
.challenge-art img { width:min(75%,240px); height:auto; object-fit:contain; filter:drop-shadow(0 16px 18px #3649641a); }
.challenge-summary { padding:30px; min-width:0; }.challenge-summary h2 { font-size:28px; margin:12px 0 24px; line-height:1.3; overflow-wrap:anywhere; }
.challenge-kind { display:inline-flex; gap:8px; align-items:center; color:#38516c; font-weight:700; }
.challenge-facts { display:grid;grid-template-columns:minmax(80px,.7fr) minmax(0,1.3fr); gap:20px; margin:0 0 18px; }
.challenge-facts dt { color:#526176; font-size:13px; margin-bottom:5px; }.challenge-facts dd { margin:0; font-size:20px; font-weight:800; }.challenge-facts dd span { font-size:14px; margin-left:4px; }
.challenge-practice { font-size:13px; color:#526176; }.challenge-actions,.challenge-secondary {display:flex;flex-wrap:wrap;gap:8px;margin-top:16px;}.challenge-actions .btn { min-height:48px; padding-inline:22px; }.challenge-secondary .btn { min-height:44px; }
.challenge-page button[hidden],.challenge-page a[hidden],.challenge-attachment[hidden],.creator-check[hidden] { display:none!important; }
#challenge-state { min-height:1.4em; font-size:14px; color:#704108; }
.challenge-code-detail { margin-top:20px; }.challenge-code-detail summary { cursor:pointer; min-height:44px; padding:10px 0; font-weight:600; }.challenge-code-detail code { display:block; overflow-wrap:anywhere; white-space:normal; padding:14px; background:#f0f3f8; border-radius:10px; }.challenge-code-detail p {font-size:13px;color:#526176;}
.challenge-input { background:white; border:1px solid #d8e0ec; padding:24px; border-radius:20px; margin-bottom:20px; max-width:680px; }.challenge-input label {font-weight:700;display:block;margin-bottom:12px;}.challenge-input>div {display:flex;gap:8px;}.challenge-input input {min-width:0;flex:1;font-size:16px;}.challenge-input [aria-invalid=true] {border:2px solid #aa2638;}
.challenge-filters {display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:16px;}.challenge-filters label,.challenge-anchor label {display:flex;flex-direction:column;gap:8px;font-weight:600;}.challenge-filters input,.challenge-filters select,.challenge-anchor input {font-size:16px;min-height:44px;}
.challenge-periods {display:flex;flex-wrap:wrap;gap:8px;margin:20px 0 16px;}.challenge-periods .btn[aria-pressed=true] {background:#382386;color:white;border-color:#382386;transition:none;}
.challenge-anchor {display:flex;align-items:end;gap:10px;}.challenge-anchor input {width:170px;max-width:100%;}.challenge-anchor .icon-btn {min-width:44px;min-height:44px;}.challenge-shelf-toolbar {display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:24px 0 16px;}
.challenge-saved-card {display:flex;gap:18px;padding:20px;margin:12px 0;border:1px solid #d8e0ec;border-radius:20px;background:#fff;}.challenge-saved-card>div {min-width:0;flex:1;}.challenge-saved-card h2 {font-size:20px;line-height:1.4;margin:0 0 6px;}.challenge-saved-card p {margin:0 0 6px;}.challenge-saved-card small {color:#526176;}.challenge-saved-card .actions {flex-wrap:wrap;margin-top:12px;}.challenge-card-icon {display:grid;place-items:center;width:48px;height:48px;border-radius:16px;background:#ebe5ff;color:#382386;flex-shrink:0;}
.challenge-attachment {padding:16px;background:#f5f2ff;border:1px solid #d6caed;border-radius:16px;margin-block:12px;}.challenge-attachment .creator-check {margin:0;}.challenge-attachment p {font-size:14px;margin:8px 0 0;color:#4f5871;}.challenge-attachment strong {display:block;margin:10px 0 0;}
.challenge-page :focus-visible {outline:3px solid #6544c8;outline-offset:3px;scroll-margin-block:100px;}
@media(max-width:680px){.challenge-preview{grid-template-columns:1fr;}.challenge-art{min-height:170px;max-height:190px;}.challenge-art img{width:150px;}.challenge-art-ring{width:170px;height:170px;border-width:16px;}.challenge-summary{padding:20px;}.challenge-summary h2{font-size:25px;margin-bottom:18px;}.challenge-filters{grid-template-columns:1fr;gap:12px;}.challenge-input{padding:18px;}.challenge-input>div{flex-wrap:wrap;}.challenge-input input{flex-basis:100%;}.challenge-saved-card{padding:16px;gap:12px;}.challenge-saved-card .actions{gap:8px;}.challenge-saved-card .btn{min-height:44px;}.challenge-card-icon{width:36px;height:40px;}.challenge-nav{margin-bottom:16px;}}
@media(prefers-reduced-motion:reduce){.challenge-page *{scroll-behavior:auto!important;transition:none!important;}}

/* Compact portrait preparation keeps facts and Start ahead of decoration. */
.challenge-heading h1 { width:fit-content; border-radius:8px; }
.challenge-page .challenge-actions .btn { min-height:48px!important; }
@media(max-width:680px){
 .challenge-heading { margin:12px 0 16px; }.challenge-heading h1 {font-size:26px;margin:4px 0;}
 .challenge-heading p {margin:6px 0;font-size:15px;}
 .challenge-art {min-height:106px;max-height:106px;}.challenge-art img{width:104px;}
 .challenge-art-ring{width:120px;height:120px;border-width:12px;}
 .challenge-summary{padding:16px 20px;}.challenge-summary h2{font-size:24px;margin:6px 0 12px;}
 .challenge-facts{margin-bottom:8px;gap:12px;}.challenge-practice{margin:8px 0;font-size:12px;}
 .challenge-actions{margin-top:10px;}.challenge-nav{margin-bottom:12px;}
}
@media(max-width:360px){.challenge-art{min-height:82px;max-height:82px;}.challenge-art img{width:84px;}.challenge-art-ring{width:98px;height:98px;}.challenge-summary{padding-top:12px;}}
/* Native form controls share the app's rounded field treatment, not browser defaults. */
.challenge-filters label,.challenge-anchor label { min-width:0; }
.challenge-filters input,.challenge-filters select,.challenge-anchor input,.challenge-input input {
 box-sizing:border-box; min-width:0; max-width:100%; min-height:48px; border:1px solid #b7c2d4;
 border-radius:12px; background:#fff; color:#28243b; padding:10px 12px; line-height:1.4;
}
.challenge-filters input,.challenge-filters select{width:100%;}
.challenge-anchor input:disabled {background:#f2f2f7;color:#615b70;}
html:has(body.in-challenge){scroll-padding-block:90px 110px;}
/* UX44: quiet, portrait-first private collection. Reuses existing approved art.
   Text is DOM, never baked into images. No blur/shader or animated thumbnails. */
.shelf-page{--shelf-ink:var(--rom-shelf-text-primary);--shelf-muted:var(--rom-shelf-text-secondary);--shelf-line:var(--rom-shelf-border-default);--shelf-paper:var(--rom-shelf-surface-default);--shelf-accent:var(--rom-shelf-action-primary);max-width:1060px;color:var(--shelf-ink)}
.shelf-page [hidden]{display:none!important}.shelf-page .crumb{margin-bottom:18px}.shelf-page .back-button{min-height:var(--rom-shelf-size-touch)}
.shelf-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}.shelf-heading h1{font-size:clamp(28px,4vw,38px);letter-spacing:-.035em;line-height:1.2;margin:10px 0}.shelf-heading p{color:var(--shelf-muted);font-size:15px;line-height:1.5;margin:0}.shelf-eyebrow{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:var(--shelf-accent)}
body .shelf-page .btn,body .shelf-page .icon-btn{min-height:var(--rom-shelf-size-touch);min-width:var(--rom-shelf-size-touch);border-radius:var(--rom-shelf-radius-control)}.shelf-heading>.btn{flex-shrink:0}
.shelf-tools{display:flex;gap:10px;align-items:stretch}.challenge-shelf-search{flex:1;min-width:0;display:flex;align-items:center;padding-inline:16px 4px;border:1px solid var(--shelf-line);background:var(--rom-shelf-surface-default);border-radius:16px;gap:10px}.challenge-shelf-search input{flex:1;min-width:0;width:100%;border:0!important;background:transparent!important;box-shadow:none!important;outline:none;font-size:16px;padding:12px 0;min-height:52px}.challenge-shelf-search:focus-within{outline:3px solid var(--shelf-accent);outline-offset:3px}.challenge-shelf-search .icon-btn{border:0;background:transparent;box-shadow:none}.challenge-shelf-search>.rom-icon{color:var(--shelf-muted);flex-shrink:0}
.shelf-kind-filters{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.shelf-kind-filters .btn[aria-pressed=true]{background:var(--shelf-ink);border-color:var(--shelf-ink);color:var(--rom-shelf-text-on-strong)}.shelf-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px;align-items:start}.shelf-options>details{min-width:0;border:1px solid var(--shelf-line);border-radius:14px;background:var(--shelf-paper)}.shelf-options summary,.shelf-storage summary{display:flex;gap:8px;align-items:center;min-height:var(--rom-shelf-size-touch);padding:10px 14px;cursor:pointer;font-size:13px;font-weight:700;list-style:none;box-sizing:border-box}.shelf-options summary>.rom-icon:last-child{margin-inline-start:auto}.shelf-options summary::-webkit-details-marker,.shelf-storage summary::-webkit-details-marker{display:none}.shelf-options details[open] summary{border-bottom:1px solid var(--shelf-line)}.shelf-filter-content,.shelf-transfer>div{padding:14px}.shelf-filter .challenge-periods{margin:0 0 14px;gap:6px}.shelf-filter .challenge-periods .btn{padding-inline:12px}.shelf-filter .challenge-anchor{gap:6px}.shelf-filter .challenge-anchor label{flex:1}.shelf-filter .challenge-anchor input{width:100%}.shelf-sort-label{display:grid;gap:8px;font-size:13px;font-weight:650;margin-top:14px}.shelf-sort-label select{min-height:var(--rom-shelf-size-touch);border:1px solid var(--shelf-line);border-radius:12px;background:var(--rom-shelf-surface-default);padding:10px;font-size:15px;min-width:0}.shelf-transfer p{font-size:13px;line-height:1.6;color:var(--shelf-muted);margin:0 0 12px}.shelf-transfer .actions{flex-wrap:wrap}
#shelf-feedback{font-size:13px;line-height:1.5;color:var(--shelf-muted);min-height:0;margin:12px 0}#shelf-feedback:empty{display:none}.shelf-count-row{display:flex;align-items:center;justify-content:space-between;color:var(--shelf-muted);font-size:12px;margin:24px 0 12px}.challenge-shelf-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.challenge-shelf-grid .challenge-shelf-card{display:flex;flex-direction:column;gap:0;margin:0;padding:0;border:1px solid var(--shelf-line);border-radius:var(--rom-shelf-radius-card);overflow:hidden;background:var(--shelf-paper)}
.challenge-shelf-card .shelf-card-art{flex:none;position:relative;aspect-ratio:2.7;overflow:hidden;background:var(--rom-shelf-surface-art);display:grid;place-items:center}.shelf-card-art img{width:100%;height:100%;display:block;object-fit:cover}.shelf-pin-label{position:absolute;top:12px;left:12px;display:flex;gap:6px;align-items:center;font-size:11px;font-weight:750;color:var(--shelf-ink);padding:6px 10px;border-radius:20px;background:var(--rom-shelf-surface-overlay)}.challenge-shelf-card .shelf-card-content{padding:16px 20px 20px}.shelf-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:-5px}.shelf-kind{display:flex;gap:6px;align-items:center;color:var(--shelf-muted);font-size:12px;font-weight:650}.shelf-card-top .shelf-more{border:0;background:transparent;box-shadow:none;padding:8px;color:var(--shelf-muted);font-size:12px}.challenge-shelf-card h2{font-size:21px;line-height:1.45;margin:3px 0 6px;overflow-wrap:anywhere;letter-spacing:-.02em}.challenge-shelf-card .shelf-condition{font-size:13px;line-height:1.5;color:var(--shelf-muted);margin:0 0 20px}.shelf-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.shelf-card-bottom time{font-size:12px;color:var(--shelf-muted)}.shelf-card-bottom .actions{margin:0;gap:8px}.shelf-card-bottom .btn{font-size:13px;padding-inline:14px}.shelf-pin[aria-pressed=true]{color:var(--shelf-accent);background:var(--rom-shelf-action-selected-surface);border-color:var(--rom-shelf-action-selected-border)}
.shelf-empty{grid-column:1/-1;border:1px dashed var(--rom-shelf-border-empty);border-radius:var(--rom-shelf-radius-card);text-align:center;padding:42px 22px;background:var(--rom-shelf-surface-empty)}.shelf-empty-icon{height:72px;width:72px;border-radius:24px;background:var(--rom-shelf-surface-emphasis);color:var(--shelf-accent);display:grid;place-items:center;margin:0 auto 22px}.shelf-empty h2{font-size:21px;line-height:1.5;margin-bottom:10px}.shelf-empty p{font-size:14px;line-height:1.6;color:var(--shelf-muted);margin-bottom:22px}.shelf-storage{margin-top:24px;color:var(--shelf-muted)}.shelf-storage summary{padding-inline:0;font-size:12px}.shelf-storage p,.shelf-notice{font-size:13px;line-height:1.6}.shelf-notice{border:1px solid var(--shelf-line);border-radius:12px;padding:12px;margin-top:16px}
.shelf-more-actions{display:grid;gap:10px}.shelf-more-actions .btn{min-height:52px;justify-content:flex-start;gap:12px}.shelf-name-form label{font-weight:700;display:block;margin-bottom:12px}.shelf-name-form input{display:block;width:100%;box-sizing:border-box;min-height:52px;padding:12px;font-size:16px;border:1px solid var(--rom-shelf-border-input);border-radius:12px}.shelf-name-form p{font-size:14px;line-height:1.6;margin:12px 0;color:var(--rom-shelf-text-secondary)}.shelf-name-form [aria-invalid=true]{border:2px solid var(--rom-shelf-status-error)}.shelf-name-form [data-shelf-status]{color:var(--rom-shelf-status-error-text);min-height:1.5em}.shelf-name-form .actions{justify-content:flex-end;gap:8px}.shelf-name-form .btn{min-height:var(--rom-shelf-size-touch)}
.shelf-page :is(button,a,summary,input,select):focus-visible{outline:3px solid var(--shelf-accent);outline-offset:3px;scroll-margin-block:100px 130px}
@media(max-width:700px){.shelf-heading{display:block;margin-bottom:20px}.shelf-heading>.btn{margin-top:16px}.shelf-heading h1{font-size:28px}.shelf-heading p{font-size:14px}.shelf-tools{gap:8px}.shelf-tools>#shelf-refresh{font-size:12px;padding-inline:12px}.challenge-shelf-search{padding-inline-start:12px}.challenge-shelf-grid{grid-template-columns:1fr;gap:14px}.shelf-options{grid-template-columns:1fr}.shelf-kind-filters{gap:6px}.shelf-kind-filters .btn{font-size:12px;padding-inline:12px}.challenge-shelf-card .shelf-card-art{aspect-ratio:3}.challenge-shelf-card .shelf-card-content{padding:12px 16px 16px}.challenge-shelf-card h2{font-size:20px}.challenge-shelf-card .shelf-condition{margin-bottom:16px}.shelf-count-row{margin-top:20px}.shelf-page .crumb{margin:0 0 12px}.shelf-options{grid-template-columns:1fr 1fr}.shelf-filter[open],.shelf-transfer[open]{grid-column:1/-1}.shelf-filter[open]+.shelf-transfer{grid-column:1/-1}}
@media(max-width:360px){.shelf-kind-filters .btn{padding-inline:9px}.shelf-tools{flex-wrap:wrap}.challenge-shelf-search{flex-basis:100%}.shelf-card-bottom .actions{width:100%;justify-content:flex-end}}
@media(prefers-reduced-motion:reduce){.shelf-page *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Route headings are programmatic landmarks, not outlined interactive controls. */
.shelf-heading h1:focus{outline:none}
@media(min-width:361px) and (max-width:700px){.shelf-heading{display:flex;align-items:center;gap:12px}.shelf-heading>div{min-width:0;flex:1}.shelf-heading>.btn{margin:0;font-size:12px;padding-inline:10px;max-width:105px;white-space:normal}.shelf-heading h1{font-size:26px}.shelf-heading p{font-size:13px}.shelf-kind-filters .btn{font-size:12px;padding-inline:10px}}

/* The composite search already has one visible focus-within ring. */
.shelf-page .challenge-shelf-search input:focus-visible{outline:none}

/* S32 common reading surfaces. Scoped: no game-physics or studio layout changes. */
.collection-page,.discovery-page{--c-ink:#24223a;--c-muted:#625f75;--c-accent:#6142cd;--c-soft:#eeebfa;--c-line:#e4e2ed;--c-space:16px;color:var(--c-ink);max-width:1120px;margin:auto}
#main:focus{outline:none}.collection-page [hidden],.collection-dialog [hidden]{display:none!important}
.collection-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:20px 0 24px}.collection-heading h1{font-size:34px}.collection-heading p{color:var(--c-muted);margin-top:8px;font-size:15px}
.collection-controls{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:8px 0}.collection-periods{display:flex;border:1px solid var(--c-line);border-radius:14px;padding:4px;background:#fff;gap:3px}.collection-periods button{border:0;background:transparent;min-width:64px;min-height:44px;padding:8px 14px;border-radius:10px;font-weight:700;color:var(--c-muted)}.collection-periods button[aria-pressed=true]{background:var(--c-ink);color:#fff}
.collection-date{display:flex;align-items:center;gap:8px}.collection-date input{border:1px solid var(--c-line);background:#fff;border-radius:10px;min-height:44px;min-width:0;padding:8px;font-size:14px}.collection-date input:disabled{color:var(--c-muted);opacity:.5}
.collection-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--c-line);background:#fff;border-radius:18px;margin:16px 0 24px;padding:24px 12px;position:relative}.collection-stats>div{text-align:center;display:flex;flex-direction:column;gap:6px}.collection-stats>div+div{border-left:1px solid var(--c-line)}.collection-stats strong{font-size:30px;line-height:1.1;font-variant-numeric:tabular-nums}.collection-stats span{color:var(--c-muted);font-size:13px}.collection-stats>small{grid-column:1/-1;text-align:center;color:var(--danger);margin-top:12px}
.collection-filters{display:flex;justify-content:space-between;align-items:center;gap:16px}.collection-kinds{display:flex;gap:6px;flex-wrap:wrap}.collection-kinds .btn{padding:9px 12px;box-shadow:none}.collection-kinds [aria-pressed=true]{background:var(--c-soft);color:var(--c-accent);border-color:var(--c-accent)}.collection-filters .searchbox{max-width:280px;flex:1}.collection-filters .searchbox:focus-within{outline:3px solid var(--focus);outline-offset:3px}
.collection-list-heading{display:flex;align-items:center;justify-content:space-between;margin:20px 0 12px;color:var(--c-muted);font-size:13px}.collection-list-heading select{border:1px solid var(--c-line);border-radius:10px;background:#fff;min-height:44px;padding:8px}
#activity-list{display:grid;grid-template-columns:1fr 1fr;gap:12px}.collection-record{display:flex;align-items:center;gap:16px;min-width:0;background:#fff;border:1px solid var(--c-line);border-radius:16px;padding:14px;transition:background .14s,border-color .14s}.collection-record:hover{background:#faf9ff;border-color:#b2a2dc}.collection-record-art{width:76px;height:82px;flex-shrink:0;display:grid;place-items:center;border-radius:12px;overflow:hidden;background:#ece6fc;color:var(--c-accent)}.collection-record-art img{height:100%;width:100%;object-fit:cover}.collection-record-copy{min-width:0;flex:1}.collection-record h2{font-size:17px;margin:4px 0 5px;overflow-wrap:anywhere}.collection-record p{font-size:12px;color:var(--c-muted);line-height:1.5}.collection-record p span{display:block}.collection-type{display:inline-flex;align-items:center;gap:5px;font-size:12px;color:var(--c-accent);font-weight:700}.collection-arrow{color:var(--c-muted);flex-shrink:0}
.collection-empty{grid-column:1/-1;text-align:center;background:#fff;border:1px dashed #d8d3e8;padding:42px 24px;border-radius:20px}.collection-empty .icon-tile{margin-bottom:24px}.collection-empty h2{font-size:24px}.collection-empty p{color:var(--c-muted);margin:12px auto 22px;max-width:390px}.collection-footnote{font-size:12px;color:var(--c-muted);line-height:1.6;margin:22px 0}
.collection-warning{display:flex;align-items:center;gap:14px;padding:16px;margin-bottom:16px;background:#fff5e6;border:1px solid #ebcfa7;border-radius:12px;color:#72501d;font-size:14px}.collection-warning span{flex:1}.collection-warning strong{display:block}.collection-skeleton{display:grid;gap:12px;margin:24px 0}.collection-skeleton i{height:76px;display:block;border-radius:16px;background:#eeecf5}
.collection-detail{display:grid;grid-template-columns:1fr 1fr;gap:36px;background:#fff;border:1px solid var(--c-line);border-radius:24px;overflow:hidden;margin-top:16px}.collection-detail-art{background:#d7e7ef;min-height:350px;display:grid;place-items:center}.collection-detail-art img{width:100%;height:100%;object-fit:cover}.collection-detail-copy{padding:34px 28px 34px 0}.collection-detail-copy h1{font-size:30px;margin:10px 0}.collection-detail-copy>p{color:var(--c-muted);font-size:14px}.collection-detail-metric{display:flex;align-items:baseline;gap:8px;margin:18px 0 3px}.collection-detail-metric strong{font-size:48px;line-height:1.1}.collection-detail-copy .actions{margin-top:20px}
.collection-import-counts{display:flex;justify-content:center;gap:48px;padding:22px;background:#f4f1fb;border-radius:14px;margin:20px 0}.collection-import-counts span{display:flex;flex-direction:column;align-items:center;font-size:13px}.collection-import-counts strong{font-size:28px;color:#292438}.collection-import-list{list-style:none;padding:0;margin:12px 0;max-height:230px;overflow:auto}.collection-import-list li{display:flex;gap:10px;align-items:center;padding:14px 0;border-bottom:1px solid #e8e3f1;font-size:14px}.collection-import-list li span{flex:1}.collection-import-list small{font-size:12px;color:#625f75}.file-pick-focused{outline:3px solid var(--focus);outline-offset:3px}
@media(max-width:800px){#activity-list{grid-template-columns:1fr}.collection-controls{flex-direction:column;align-items:stretch}.collection-periods{justify-content:space-between}.collection-periods button{min-width:0;flex:1}.collection-date{justify-content:center}.collection-filters{flex-direction:column;align-items:stretch}.collection-filters .searchbox{max-width:none}.collection-heading{align-items:flex-start}.collection-heading h1{font-size:29px}.collection-heading .btn{max-width:125px}.collection-detail{grid-template-columns:1fr;gap:0}.collection-detail-art{min-height:0;height:190px}.collection-detail-copy{padding:24px}.collection-detail-copy h1{font-size:26px}}
@media(max-width:390px){.collection-page .crumb{margin-bottom:10px}.collection-heading{margin-top:12px;gap:10px}.collection-heading p{font-size:14px}.collection-heading .btn{font-size:12px;padding:10px;max-width:115px}.collection-periods button{padding:8px 4px;font-size:13px}.collection-kinds{gap:4px}.collection-kinds .btn{padding:8px;font-size:12px;gap:5px;flex:1}.collection-stats{padding:20px 6px}.collection-stats strong{font-size:26px}.collection-record{gap:12px;padding:12px}.collection-record-art{width:56px;height:68px}.collection-record h2{font-size:16px}.collection-heading h1{font-size:28px}.collection-warning{flex-wrap:wrap}}

/* No empty dashboard: the first useful action leads when no records exist. */
.collection-page.is-empty .collection-controls,.collection-page.is-empty .collection-stats,.collection-page.is-empty .collection-filters,.collection-page.is-empty .collection-list-heading{display:none}.collection-page.is-empty .collection-empty{margin-top:20px;min-height:280px}
@media(max-width:700px){
 .collection-page>.crumb{margin-bottom:12px}
 .collection-heading{margin:12px 0 16px;gap:12px}
 .collection-heading .overline{display:none}
 .collection-heading h1{font-size:28px}
 .collection-heading p{font-size:14px;margin-top:6px}
 .collection-stats{padding:16px 10px;margin:12px 0 16px}
 .collection-stats strong{font-size:26px}
 .collection-list-heading{margin:12px 0 10px}
}

/* Portrait-first content hierarchy; same choices on desktop, not a second app. */
.discovery-heading{display:flex;justify-content:space-between;align-items:center;margin:24px 0 22px;gap:20px}.discovery-heading h1{font-size:38px;line-height:1.25;font-weight:850;letter-spacing:-.055em}.discovery-heading p{margin-top:8px;color:var(--c-muted);font-size:16px}.discovery-signature{width:60px;height:60px;border-radius:20px;display:grid;place-items:center;background:#d7ec94;color:#24372a;transform:rotate(7deg);flex-shrink:0}
.discovery-game-tabs{display:flex;gap:8px;margin-bottom:18px}.discovery-game-tabs button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:46px;min-width:122px;border:1px solid #e2deec;border-radius:25px;padding:10px 20px;background:#fff;color:#625f75;font-weight:750}.discovery-game-tabs [aria-pressed=true]{background:#25243b;border-color:#25243b;color:#fff}
.discovery-featured{display:grid;grid-template-columns:1.35fr 1fr;background:#24233a;border:1px solid #29293b;border-radius:26px;overflow:hidden;min-height:390px;box-shadow:0 12px 32px #27263712}
.discovery-visual{position:relative;min-width:0;overflow:hidden;min-height:390px;background:#acd4e1}.discovery-scene{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}.discovery-visual:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#29476424,transparent 65%);pointer-events:none}.discovery-character{position:absolute;width:190px;height:190px;object-fit:contain;right:16px;bottom:4px;filter:drop-shadow(0 12px 15px #26374f38);z-index:1}.discovery-duration{position:absolute;top:18px;left:18px;display:inline-flex;align-items:center;gap:6px;border:1px solid #ffffff77;background:#ffffffea;border-radius:24px;padding:8px 13px;min-height:36px;color:#24233a;font-size:13px;font-weight:750;z-index:2}
.discovery-copy{padding:40px 32px;color:#fff;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-width:0}.discovery-kicker{display:inline-flex;align-items:center;gap:7px;font-size:12px;color:#d0cbeb;font-weight:650}.discovery-copy h2{font-size:34px;font-weight:800;line-height:1.25;margin:12px 0}.discovery-copy>p{font-size:15px;color:#ddd9ed;line-height:1.6;margin-bottom:23px}.discovery-courses{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:26px}.discovery-courses button{border:1px solid #7b758f;background:transparent;color:#e8e4f4;min-height:44px;padding:8px 14px;border-radius:10px;font-size:13px;font-weight:650}.discovery-courses button[aria-pressed=true]{background:#f2eefc;color:#32244e;border-color:#f2eefc}body:not(.in-shorts) .discovery-play.btn.primary{background:#d8ee94;color:#283b1b;border:1px solid #d8ee94;box-shadow:none;width:100%;font-size:16px;padding:15px 20px;min-height:54px;justify-content:space-between}body:not(.in-shorts) .discovery-play.btn.primary:hover{background:#e5f6b4}.discovery-play .rom-icon:last-child{margin-left:auto}.discovery-copy>small{display:block;color:#bdb6d1;font-size:12px;margin-top:13px;align-self:center}.discovery-page button:focus-visible{outline-color:#9371f0}.discovery-copy button:focus-visible{outline-color:#fff}
.discovery-next{margin:30px 0 8px}.discovery-next h2{font-size:21px;margin-bottom:14px}.discovery-paths{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.discovery-path{display:flex;gap:13px;align-items:center;padding:22px 18px;background:#fff;border:1px solid #e4e2ed;border-radius:18px;min-width:0}.discovery-path:hover{background:#f3f0fb;border-color:#bcb0d8}.discovery-path-icon{height:44px;width:44px;display:grid;place-items:center;border-radius:13px;background:#efebfc;color:#6245b0;flex-shrink:0}.discovery-path.moments .discovery-path-icon{background:#fdebef;color:#a63d70}.discovery-path.activity .discovery-path-icon{background:#e7f3eb;color:#2b7655}.discovery-path>div{flex:1;min-width:0}.discovery-path strong{font-size:15px;display:block}.discovery-path>div>span{font-size:12px;color:var(--c-muted);display:block;margin-top:5px;line-height:1.5}
.discovery-play-options{display:flex;width:100%;flex-wrap:wrap;gap:12px}
.rom-product-home .discovery-play-options :is(.discovery-play,.discovery-friend-room){width:auto;min-width:0;min-height:48px;flex:1 1 9rem;justify-content:center;white-space:normal}
@media(max-width:1000px){.discovery-copy{padding:28px 24px}.discovery-copy h2{font-size:28px}.discovery-paths{grid-template-columns:1fr}.discovery-path{padding:16px 18px}.discovery-path>div>span{display:none}}
@media(max-width:700px){.discovery-heading{margin:8px 0 18px}.discovery-heading h1{font-size:29px}.discovery-heading p{font-size:14px;margin-top:6px}.discovery-signature{display:none}.discovery-game-tabs{margin-bottom:14px}.discovery-game-tabs button{min-width:110px;font-size:14px;padding:9px 16px;min-height:44px}.discovery-featured{grid-template-columns:1fr;border-radius:20px;min-height:0}.discovery-visual{height:206px;min-height:0}.discovery-character{width:144px;height:144px;right:12px;bottom:-3px}.discovery-copy{padding:22px}.discovery-kicker{display:none}.discovery-copy h2{font-size:26px;margin:0 0 6px}.discovery-copy>p{font-size:14px;margin-bottom:16px}.discovery-courses{gap:7px;margin-bottom:18px}.discovery-courses button{flex:1;padding:7px 14px;min-height:44px}body:not(.in-shorts) .discovery-play.btn.primary{min-height:48px;padding:12px 16px;font-size:15px}.discovery-copy>small{margin-top:10px}.discovery-next{margin-top:26px}.discovery-next h2{font-size:19px}}
@media(max-width:360px){.discovery-heading{margin-top:0}.discovery-heading h1{font-size:26px}.discovery-heading p{font-size:13px}.discovery-visual{height:120px}.discovery-copy{padding:18px}.discovery-copy h2{font-size:23px}.discovery-copy>p{font-size:13px;margin-bottom:12px}.discovery-courses{margin-bottom:14px}.discovery-duration{top:12px;left:12px;padding:6px 10px}.discovery-character{width:125px;height:125px}}
@media(prefers-reduced-motion:reduce){.discovery-page *, .collection-page *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* UX49: short, explicit course buttons share the existing target token. Course
 * description stays next to the selection, never inside the action label. */
.discovery-page :is(.discovery-game-tabs button,.discovery-courses button){min-block-size:var(--rom-shelf-size-touch,48px);min-inline-size:var(--rom-shelf-size-touch,48px)}
.discovery-page .discovery-courses button{display:inline-flex;align-items:center;justify-content:center;gap:.375rem;white-space:normal}
.discovery-page .discovery-path{min-block-size:var(--rom-shelf-size-touch,48px)}
.discovery-page .discovery-path strong{overflow-wrap:anywhere}

/* UX34 semantic foundation. Scoped to revised task surfaces, not game/HUD/admin.
 * Colors occur only in tokens here. Existing art is decorative; text remains HTML.
 * Widths reflow rather than truncating translated actions or enlarged type.
 */
:root {
  --task-surface:#ffffff; --task-paper:#f8f7fb; --task-text:#292438;
  --task-muted:#625b72; --task-line:#ddd8e8; --task-accent:#6240bc;
  --task-soft:#eee8fc; --task-strong:#282238; --task-on-strong:#fff;
  --task-positive:#d8ee94; --task-green:#285f49; --task-green-soft:#e8f3ec;
  --task-pink:#993d6c; --task-pink-soft:#f9eaf0; --task-focus:#6240bc;
  --task-radius:20px; --task-target:48px; --task-space:8px;
}
.task-surface{color:var(--task-text);padding-bottom:12px}
.task-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:20px 0 24px}
.task-heading h1{font-size:clamp(1.65rem,3.2vw,2.25rem);font-weight:850;line-height:1.25;letter-spacing:-.045em}
.task-heading p{font-size:1rem;color:var(--task-muted);margin-top:8px;line-height:1.6}
.task-heading-mark{display:grid;place-items:center;background:var(--task-soft);color:var(--task-accent);border-radius:18px;width:56px;height:56px;flex-shrink:0}
.task-categories{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:24px}
.task-category{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:var(--task-target);padding:10px 16px;border:1px solid var(--task-line);border-radius:14px;background:var(--task-surface);font-size:.875rem;font-weight:750;line-height:1.45;min-width:0}
.task-category[aria-current=page]{background:var(--task-strong);color:var(--task-on-strong);border-color:var(--task-strong)}
.task-category:hover:not([aria-current]){border-color:var(--task-accent);background:var(--task-soft)}
.task-search-row{display:flex;gap:8px;margin-bottom:24px}.task-search-row .searchbox{flex:1;min-width:0;min-height:52px;border-radius:14px;border-color:var(--task-line)}
.task-search-row input{font-size:1rem;height:48px}.task-search-row .searchbox:focus-within{outline:3px solid var(--task-focus);outline-offset:3px}.task-search-row .icon-btn{height:52px;width:52px;border-radius:14px}
.task-group+ .task-group{margin-top:26px}.task-group h2{font-size:1rem;margin-bottom:12px;color:var(--task-muted);font-weight:750}
.task-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.task-button{display:flex;align-items:center;gap:12px;min-width:0;min-height:90px;background:var(--task-surface);border:1px solid var(--task-line);border-radius:18px;padding:18px;transition:background 140ms ease,border-color 140ms ease;line-height:1.45;font-size:1rem;font-weight:750}
.task-button>span:nth-child(2){flex:1;min-width:0;overflow-wrap:anywhere}.task-button>.rom-icon{color:var(--task-muted);flex-shrink:0}
.task-button:hover{background:var(--task-soft);border-color:var(--task-accent)}
.task-glyph{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:var(--task-soft);color:var(--task-accent);flex-shrink:0}
.task-glyph.space{background:var(--task-green-soft);color:var(--task-green)}.task-glyph.share{background:var(--task-pink-soft);color:var(--task-pink)}
.task-result-count{color:var(--task-muted);font-size:.8125rem;margin-top:18px}
.task-empty{text-align:center;border:1px dashed var(--task-line);border-radius:var(--task-radius);padding:40px 20px;background:var(--task-surface)}
.task-empty>.rom-icon{color:var(--task-accent);margin-bottom:16px}.task-empty h2{font-size:1.25rem;margin-bottom:10px}.task-empty p{color:var(--task-muted);margin-bottom:20px;font-size:.9375rem}.task-empty .btn{min-height:var(--task-target)}
.task-empty-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.workspace-privacy{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;font-size:.8125rem;color:var(--task-green);border:1px solid var(--task-line);background:var(--task-green-soft);padding:7px 10px;border-radius:24px}
.workspace-categories .task-category{flex:1;max-width:240px}.workspace-panel{border:1px solid var(--task-line);background:var(--task-surface);border-radius:var(--task-radius);padding:28px;min-width:0}
.workspace-panel>h2{font-size:1.5rem;margin-bottom:8px}.workspace-panel>p{font-size:.9375rem;color:var(--task-muted);margin-bottom:24px}
.workspace-import{display:grid;grid-template-columns:1fr minmax(180px,.75fr);align-items:center;gap:24px;min-height:260px}
.workspace-import h2{font-size:1.7rem;margin-bottom:10px}.workspace-import p{font-size:.9375rem;line-height:1.65;color:var(--task-muted);margin-bottom:24px}
.workspace-file-art{min-height:200px;display:grid;place-items:center;background:var(--task-soft);border-radius:24px;color:var(--task-accent);position:relative;isolation:isolate}.workspace-file-art>.rom-icon{width:72px;height:72px}.workspace-file-art .workspace-spark{position:absolute;inset-inline-end:20%;top:20%;width:28px;height:28px}
.workspace-import .import-label{position:relative;overflow:hidden;min-height:52px;padding:13px 22px;font-size:1rem;background:var(--task-accent);border-color:var(--task-accent);box-shadow:none;color:var(--task-on-strong)}
.workspace-import .import-label:focus-within{outline:3px solid var(--task-focus);outline-offset:4px}.workspace-import .import-label input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}
.workspace-limits{font-size:.875rem;color:var(--task-muted);margin-top:22px;border-top:1px solid var(--task-line);padding-top:16px}.workspace-limits summary{cursor:pointer;min-height:var(--task-target);display:flex;gap:8px;align-items:center;font-weight:700;color:var(--task-text)}.workspace-limits p{line-height:1.7;margin-top:8px}
.workspace-caption{display:flex;align-items:center;gap:7px;font-size:.8125rem;color:var(--task-muted);margin-top:16px}
.workspace-samples{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.workspace-samples article{min-width:0;border:1px solid var(--task-line);border-radius:18px;overflow:hidden;background:var(--task-surface)}
.workspace-samples img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}.workspace-samples article>div{padding:16px}.workspace-samples h3{font-size:1rem;margin-bottom:14px}.workspace-samples .actions{gap:8px}.workspace-samples .btn{min-height:var(--task-target);flex:1;padding:10px}
.workspace-more{margin-top:28px}.workspace-more h2{font-size:1.125rem;margin-bottom:12px}.workspace-more .creator-entry-grid{margin:0}
.workspace-drafts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.workspace-draft{padding:20px;border:1px solid var(--task-line);border-radius:18px;background:var(--task-surface);min-width:0}.workspace-draft h3{font-size:1.125rem;margin:14px 0 6px;overflow-wrap:anywhere}.workspace-draft time{display:block;font-size:.8125rem;color:var(--task-muted);margin-bottom:20px}.workspace-draft .btn{min-height:var(--task-target);padding:10px 14px}
.workspace-feedback{border:1px solid var(--task-line);border-radius:18px;padding:20px;margin-bottom:20px;background:var(--task-soft)}.workspace-feedback h2{font-size:1.125rem;margin-bottom:8px}.workspace-feedback p{color:var(--task-muted);margin-bottom:16px}.workspace-feedback .btn{min-height:var(--task-target)}
.workspace-count{font-size:.875rem;font-weight:600;color:var(--task-muted);margin-inline-start:8px}
.task-surface :is(a,button,input,summary):focus-visible{outline:3px solid var(--task-focus);outline-offset:3px}
.player-header .task-header-search{width:auto;min-width:76px;padding:10px 14px;display:flex;gap:8px;font-size:.8125rem;font-weight:750}
.discovery-more{display:flex;justify-content:space-between;align-items:center;margin:24px 0 12px;gap:16px}.discovery-more h2{font-size:1.2rem}.discovery-more .btn{min-height:48px}
@media(max-width:1000px){.task-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace-samples{gap:12px}.workspace-samples article>div{padding:12px}}
@media(max-width:700px){.task-heading{margin:12px 0 20px;gap:12px}.task-heading p{font-size:.9375rem}.task-heading-mark{width:48px;height:48px;border-radius:16px}.task-categories{gap:8px;margin-bottom:20px}.task-category{padding:10px 12px;font-size:.8125rem}.task-button{min-height:116px;flex-direction:column;align-items:flex-start;gap:10px;padding:16px;font-size:.9375rem;position:relative}.task-button>span:nth-child(2){flex:0}.task-button>.rom-icon{position:absolute;right:14px;top:25px}.task-glyph{width:38px;height:38px;border-radius:12px}.task-grid{gap:10px}.task-group+ .task-group{margin-top:24px}.workspace-import{display:flex;flex-direction:column-reverse;align-items:stretch;gap:22px;min-height:0}.workspace-file-art{min-height:130px;border-radius:18px}.workspace-file-art>.rom-icon{width:52px;height:52px}.workspace-import h2{font-size:1.375rem}.workspace-import p{margin-bottom:20px}.workspace-panel{padding:20px}.workspace-import .import-label{width:100%;justify-content:center}.workspace-privacy{font-size:.75rem;padding:6px 9px}.workspace-categories .task-category{flex-direction:column;gap:7px;padding:12px 6px}.workspace-samples{grid-template-columns:1fr}.workspace-samples article{display:grid;grid-template-columns:105px 1fr}.workspace-samples img{height:100%;aspect-ratio:auto}.workspace-samples article>div{padding:16px}.workspace-drafts{grid-template-columns:1fr}.workspace-limits{margin-top:18px}.task-surface .crumb{margin-top:12px}.task-surface .back-button{min-height:48px}}
@media(max-width:360px){.task-button{padding:13px;font-size:.875rem}.task-category{padding:9px 10px}.workspace-panel{padding:16px}.workspace-samples article{grid-template-columns:82px 1fr}.workspace-samples article>div{padding:12px}.workspace-privacy{white-space:normal;max-width:80px}.workspace-file-art{min-height:100px}}
@media(prefers-reduced-motion:reduce){.task-surface *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Purpose-first root: four stable choices; details appear after selection. */
.task-root-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.task-root-button{display:flex;align-items:center;gap:18px;min-height:146px;padding:28px;border:1px solid var(--task-line);border-radius:var(--task-radius);background:var(--task-surface);font-size:1.375rem;font-weight:800;line-height:1.4;min-width:0}
.task-root-button>span:nth-child(2){flex:1;overflow-wrap:anywhere}.task-root-button>.rom-icon{color:var(--task-muted);flex-shrink:0}.task-root-button .task-glyph{height:56px;width:56px;border-radius:18px}.task-root-button:hover{background:var(--task-soft);border-color:var(--task-accent)}
@media(max-width:700px){.task-root-button{padding:20px;flex-wrap:wrap;gap:18px;min-height:150px;font-size:1.125rem;position:relative}.task-root-button .task-glyph{width:46px;height:46px;border-radius:15px}.task-root-button>span:nth-child(2){flex-basis:100%}.task-root-button>.rom-icon{position:absolute;inset-inline-end:18px;top:33px}}

/* Match legacy body selector specificity without affecting game or admin buttons. */
body .task-surface .btn{min-height:var(--task-target);min-width:var(--task-target)}

.workspace-draft-preview{display:block;width:100%;aspect-ratio:8/5;height:auto;object-fit:contain;background:var(--task-paper);border:1px solid var(--task-line);border-radius:12px;margin-bottom:16px}

.player-header .task-header-search{min-height:48px}

/* UX44 optional subcategories: same destinations, fewer unrelated choices.
   Filter buttons are not ARIA tabs and never create duplicate page panels. */
.task-facets{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 18px}
.task-facets button{display:inline-flex;align-items:center;gap:8px;min-height:48px;min-width:48px;border:1px solid var(--task-line);background:var(--task-surface);color:var(--task-text);border-radius:24px;padding:10px 16px;font-size:14px;font-weight:700;cursor:pointer;line-height:1.5}
.task-facets button .rom-icon{flex:none}
.task-facets [aria-pressed=true]{background:var(--task-strong);border-color:var(--task-strong);color:var(--task-on-strong)}
@media(max-width:360px){.task-facets button{font-size:13px;padding-inline:12px}}

/* UX49: retain a visible short label, including touch and enlarged-text use. */
.task-search-row .task-search-clear{flex-shrink:0;min-block-size:var(--task-target);padding-inline:.875rem;white-space:normal;max-inline-size:9rem}

/* Keep both search and its separate clear action usable at 320px and when
 * browser text enlargement makes a one-line row too narrow. */
@media(max-width:480px){.task-search-row{flex-direction:column}.task-search-row .searchbox{width:100%;flex:auto}.task-search-row .task-search-clear{align-self:flex-end;max-inline-size:none}}

/* The fixed mobile navigation already contains these four destinations. On a
 * selected category, repeating them above every task pushed the actual choice
 * below the first screen at 320px. Keep the desktop cross-category links. */
@media(max-width:700px){.task-directory>.task-categories{display:none}}
@media(max-width:480px){.task-search-row .task-search-clear:disabled{display:none}}

/* The connected service directory takes its paper and lavender palette from
 * the November site reference. Keep the player's existing routes and shell. */
.task-directory.task-directory-brand {
    --task-text:#302542;
    --task-muted:#594d6b;
    --task-line:#d8cce9;
    --task-accent:#6446ae;
    --task-soft:#eee7fc;
    background:#fcfaff;
    border-color:var(--task-line);
}
.task-directory-brand .task-heading {
    padding:clamp(1rem,3vw,2rem);
    border:1px solid var(--task-line);
    border-radius:1.25rem;
    background:linear-gradient(120deg,#eee7fc,#fcfaff 73%);
}
.task-directory-brand .task-heading h1 {color:var(--task-text); overflow-wrap:anywhere}
.task-directory-brand .task-heading p {color:var(--task-muted)}
.task-directory-brand .task-heading .task-heading-mark {background:#e8ddfa; color:var(--task-accent)}
.task-directory-brand :is(.task-root-grid,.task-grid,.task-categories,.task-search-row) {gap:.75rem}
.task-directory-brand :is(.task-root-button,.task-button) {
    border-color:var(--task-line);
    color:var(--task-text);
    min-block-size:3rem;
}
.task-directory-brand :is(.task-root-button,.task-button):hover {
    background:var(--task-soft);
    border-color:var(--task-accent);
}
.task-directory-brand :is(.task-root-button,.task-button)>span:nth-child(2) {overflow-wrap:anywhere}
@media(max-width:420px) {
    .task-directory-brand .task-heading-mark {display:none}
    .task-directory-brand .task-root-grid {grid-template-columns:minmax(0,1fr)}
    .task-directory-brand .task-search-clear:disabled {display:none!important}
}
@media(forced-colors:active) {
    .task-directory-brand .task-heading {border-color:CanvasText}
    .task-directory-brand :is(.task-root-button,.task-button) {border-color:LinkText}
}

/* UX36 scoped library. No global layout overrides, infinite animation, filters,
 * backdrop blur or hidden technical status. Touch targets remain text-sized. */
.library-hub,.media-shelf{color:var(--task-text)}
.shelf-back{display:inline-flex;gap:8px;align-items:center;min-height:48px;font-size:.875rem;font-weight:700}
.library-hub .task-heading{margin-bottom:28px}.hub-kicker{color:var(--task-muted);font-size:.8125rem;font-weight:700;margin-bottom:8px}
.hub-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.hub-card{display:flex;flex-direction:column;align-items:flex-start;gap:24px;padding:26px;border:1px solid var(--task-line);background:var(--task-surface);border-radius:20px;min-width:0;position:relative}
.hub-card:hover{background:var(--task-soft);border-color:var(--task-accent)}.hub-card h2{font-size:1.25rem;line-height:1.4;overflow-wrap:anywhere;margin:0}
.hub-card .hub-icon{width:48px;height:48px;border-radius:14px;background:var(--task-soft);color:var(--task-accent);display:grid;place-items:center}
.hub-card:nth-child(2) .hub-icon{background:var(--task-green-soft);color:var(--task-green)}.hub-card:nth-child(3) .hub-icon{background:var(--task-pink-soft);color:var(--task-pink)}
.hub-card>.rom-icon{position:absolute;right:24px;top:39px;color:var(--task-muted)}
.hub-more{margin-top:28px}.hub-more h2{font-size:1rem;margin-bottom:12px}.hub-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.hub-list a,.hub-list button{display:flex;align-items:center;gap:12px;text-align:start;padding:16px;min-height:56px;background:var(--task-surface);border:1px solid var(--task-line);border-radius:14px;font-size:.875rem;color:var(--task-text);font-weight:650;min-width:0}
.hub-list :is(a,button) span{flex:1;overflow-wrap:anywhere}.hub-note{margin-top:26px;padding:18px 20px;background:var(--task-green-soft);border-radius:16px;color:var(--task-green);display:flex;gap:12px;font-size:.875rem;line-height:1.65}.hub-note .rom-icon{flex-shrink:0;margin-top:3px}
.shelf-destinations{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:24px}.media-shelf .btn{min-height:48px;white-space:normal;line-height:1.45}
.shelf-controls{padding:20px;border:1px solid var(--task-line);border-radius:18px;background:var(--task-surface);margin-bottom:20px}
.shelf-kinds{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}.shelf-kinds .btn{box-shadow:none;border-radius:12px}.shelf-kinds [aria-pressed=true]{background:var(--task-strong);color:var(--task-on-strong);border-color:var(--task-strong)}
.shelf-search{display:flex;gap:8px}.shelf-search .searchbox{flex:1;min-width:0;min-height:48px;border-color:var(--task-line);border-radius:12px}.shelf-search input{font-size:1rem;width:100%;min-width:0;height:46px}.shelf-search .icon-btn{width:48px;height:48px;border-radius:12px;flex-shrink:0}
.shelf-list-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px}.shelf-list-heading p{font-size:.875rem;color:var(--task-muted)}.shelf-list-heading select{min-height:48px;padding:10px;border:1px solid var(--task-line);border-radius:12px;font-size:.875rem;background:var(--task-surface);color:var(--task-text);max-width:100%}
.shelf-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.shelf-card{min-width:0;border:1px solid var(--task-line);border-radius:18px;overflow:hidden;background:var(--task-surface)}
.shelf-cover{position:relative;display:grid;place-items:center;aspect-ratio:4/3;background:var(--task-soft);min-height:48px;overflow:hidden}.shelf-cover img{position:absolute;inset:0;width:100%;height:100%;max-height:100%;object-fit:cover;display:block}.shelf-cover-empty{color:var(--task-accent)}
.shelf-kind-label{position:absolute;bottom:10px;left:10px;display:flex;gap:6px;align-items:center;border-radius:8px;padding:5px 8px;background:var(--task-strong);color:var(--task-on-strong);font-size:.75rem;font-weight:700}
.shelf-card-copy{padding:16px}.shelf-card h2{font-size:1rem;line-height:1.45;overflow-wrap:anywhere;margin-bottom:8px}.shelf-card h2 a{display:flex;align-items:center;min-height:48px}.shelf-card time{font-size:.8125rem;color:var(--task-muted)}
.shelf-footnote{font-size:.8125rem;color:var(--task-muted);line-height:1.65;margin-top:24px}.shelf-footnote p+p{margin-top:6px}.shelf-footnote .rom-icon{vertical-align:middle;margin-right:6px}
.shelf-warning{padding:20px;border:1px solid var(--task-line);background:var(--task-soft);border-radius:18px;margin-bottom:20px}.shelf-warning h2{font-size:1.125rem;margin-bottom:8px}.shelf-warning p{font-size:.9375rem;line-height:1.6;color:var(--task-muted);margin-bottom:14px}
.shelf-detail{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px;align-items:start}.shelf-preview{margin:0;background:var(--task-strong);border-radius:20px;overflow:hidden;display:grid;place-items:center;min-height:220px}.shelf-preview :is(img,video){width:100%;max-height:65vh;object-fit:contain;display:block}.shelf-preview p{background:var(--task-surface);padding:18px}
.shelf-detail-kind{display:inline-flex;gap:7px;color:var(--task-accent);font-size:.875rem;align-items:center;margin-bottom:12px}.shelf-detail-copy h2{font-size:1.5rem;line-height:1.4;overflow-wrap:anywhere;margin-bottom:8px}.shelf-detail-copy time{font-size:.875rem;color:var(--task-muted)}.shelf-detail-copy>p{font-size:.9375rem;line-height:1.65;color:var(--task-muted);margin:18px 0}
.shelf-primary-actions,.shelf-secondary-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}.shelf-primary-actions .btn{flex:1}.shelf-secondary-actions{padding-top:16px;border-top:1px solid var(--task-line)}
:is(.library-hub,.media-shelf) :is(a,button,input,select):focus-visible{outline:3px solid var(--task-focus);outline-offset:3px}
@media(max-width:1000px){.shelf-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.hub-card{padding:20px;gap:20px}.hub-card h2{font-size:1.0625rem}.hub-card>.rom-icon{top:35px;right:16px;width:14px}.hub-grid{gap:10px}.hub-list{grid-template-columns:1fr}.shelf-controls{padding:16px}.shelf-grid{gap:12px}.shelf-card-copy{padding:12px}.shelf-detail{grid-template-columns:1fr;gap:20px}/* Keep the next action visible on a default portrait phone without cropping media. */.shelf-preview :is(img,video){max-height:min(30vh,260px)}.shelf-detail-copy h2{font-size:1.375rem}.shelf-destinations .btn{flex:1}}
@media(max-width:360px){.hub-card{padding:16px;gap:18px}.hub-card>.rom-icon{right:12px;top:31px}.shelf-grid{grid-template-columns:1fr}.shelf-controls{padding:12px}.shelf-kind-label{font-size:.75rem}.shelf-kinds{gap:6px}}
@media(prefers-reduced-motion:reduce){:is(.library-hub,.media-shelf) *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.shelf-session-note{font-size:.875rem;line-height:1.6;padding:14px 16px;margin-bottom:20px;border:1px solid var(--task-line);border-radius:14px;color:var(--task-muted);background:var(--task-surface)}

/* UX50 visible short labels stay readable without shrinking the search input. */
.media-shelf #shelf-clear{flex-shrink:0;min-width:48px;padding-inline:12px}
.media-shelf #shelf-action-state{font-size:.875rem;line-height:1.65;color:var(--task-muted)}

/* Detail actions wrap naturally for longer translated labels and narrow screens. */
.shelf-detail-copy{min-width:0}
.shelf-detail-kind{font-weight:700}
.shelf-detail-copy h2{margin-top:0}
.shelf-primary-actions .btn,.shelf-secondary-actions .btn{min-width:0;justify-content:center;overflow-wrap:anywhere}
.shelf-primary-actions .btn{flex:1 1 130px}
.shelf-secondary-actions .btn{flex:0 1 auto}
.shelf-detail-copy #shelf-action-state:empty,.shelf-detail-copy #shelf-share-status:empty{display:none}
@media(max-width:700px){
  .shelf-detail{gap:18px}
  .shelf-preview{min-height:180px}
  .shelf-detail-copy>p{margin:14px 0}
  .shelf-primary-actions .btn{flex-basis:140px}
}

.media-shelf .shelf-empty-art{display:block;margin:0 auto 12px;object-fit:contain}

.shelf-preview-recovery{padding:20px;text-align:center;max-width:32rem}
.shelf-preview-recovery p{padding:0;margin:0 0 12px;background:transparent;color:inherit;line-height:1.55}
.shelf-preview-recovery .btn{min-block-size:48px;white-space:normal}

/* Saved scenes use the same quiet paper and lavender as the home surface. */
.media-shelf .shelf-controls,.media-shelf .shelf-card{background:#fffcff;border-color:#d9cbed}
.media-shelf .shelf-controls{box-shadow:0 8px 28px #6b459f0d}
.media-shelf .shelf-kinds [aria-pressed=true]{background:#6847bc;border-color:#6847bc;color:#fff}
.media-shelf .shelf-cover{background:#eee7fc}
.media-shelf .shelf-cover img{object-fit:contain}
.media-shelf .shelf-cover-empty{color:#6847bc}
.media-shelf .shelf-kind-label{background:#30234c;color:#fff}
.media-shelf .shelf-card h2 a{color:#30234c;text-decoration:none}
.media-shelf .shelf-card h2 a:hover{text-decoration:underline;text-underline-offset:.15em}
.media-shelf .shelf-card time,.media-shelf .shelf-list-heading p{color:#5c506d}
.media-shelf .task-empty{background:#f8f4fd;border-color:#d9cbed}
.media-shelf .media-brand-art{display:block;width:min(100%,200px);height:auto;object-fit:contain;margin:0 auto 1rem}
.media-shelf :is(a,button,input,select):focus-visible{outline-color:#6847bc}
@media(max-width:360px){
 .media-shelf .shelf-list-heading{align-items:flex-start;flex-wrap:wrap}
 .media-shelf .shelf-search{flex-wrap:wrap}
 .media-shelf .shelf-search .searchbox{flex-basis:9rem}
 .media-shelf .shelf-grid{grid-template-columns:minmax(0,1fr)}
 .media-shelf .shelf-cover{aspect-ratio:16/10}
}
@media(forced-colors:active){.media-shelf .shelf-kinds [aria-pressed=true]{outline:2px solid Highlight;outline-offset:-3px}}

/* UX37: quiet storage/identity surfaces built from the existing brand tokens.
 * No filters, continuous animation, remote fonts or image-embedded text.
 * 한국어 인계: 버튼/본문의 레이아웃은 번역과 글꼴 확대를 허용한다. */
/* Shared experience selectors resolve their touch token in the local surface.
 * Override the token, not the entire global button rule, to avoid a 44px cascade. */
.account-vault,.account-auth-shell,.rom-dialog:has(#av-dialog-confirm){--xp-touch:48px}
.account-vault{max-width:1080px;margin:0 auto;padding:8px 0 40px}
.av-heading{display:flex;justify-content:space-between;align-items:center;margin:20px 0 26px}
.av-heading h1{font-size:clamp(27px,4vw,40px);line-height:1.22;margin:8px 0 0;letter-spacing:-.035em}
.av-eyebrow{display:flex;align-items:center;gap:8px;color:var(--deep);font-size:13px;font-weight:750;margin:0}
.av-entry{display:grid;grid-template-columns:180px 1fr;align-items:center;gap:30px;background:var(--paper);border:1px solid var(--line);border-radius:26px;padding:40px}
.av-entry-symbol{display:grid;place-items:center;position:relative;width:96px;height:96px;border-radius:27px;color:var(--deep);background:var(--lilac);margin:0 auto}
.av-entry-symbol>span{display:grid;place-items:center;position:absolute;right:-7px;bottom:-5px;width:36px;height:36px;border-radius:13px;background:var(--mint);border:3px solid var(--paper)}
.av-entry-copy h2{font-size:clamp(25px,3vw,32px);margin:0 0 12px;letter-spacing:-.025em}.av-entry-copy p{max-width:520px;color:var(--muted);line-height:1.8}
.av-actions{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}.account-vault .btn,.account-vault .icon-btn{min-height:48px;line-height:1.4;white-space:normal;text-align:center}.account-vault .btn{padding:12px 16px}.account-vault .icon-btn{min-width:48px}
.av-account-bar{display:flex;align-items:center;gap:14px;padding:20px 24px;background:var(--paper);border:1px solid var(--line);border-radius:20px}
.av-avatar{display:grid;place-items:center;width:48px;height:48px;border-radius:16px;background:var(--lilac);color:var(--deep);flex:none}.av-account-bar>div{display:flex;flex:1;min-width:0;flex-direction:column;gap:5px}.av-account-bar strong{overflow-wrap:anywhere;font-size:16px}.av-account-bar>div>span{font-size:13px;color:var(--muted)}
.av-filter{display:flex;flex-wrap:wrap;gap:8px;margin:24px 0 14px}.av-filter [aria-pressed=true]{background:var(--deep);color:white;border-color:var(--deep)}
.av-search{display:flex;align-items:center;gap:8px}.av-search .searchbox{flex:1;max-width:none;min-width:0}.av-search input{width:100%;min-width:0;min-height:48px;font-size:16px}.av-count{font-size:13px;color:var(--muted);margin:18px 0 12px}
.av-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.av-card{display:block;min-width:0;border:1px solid var(--line);border-radius:20px;overflow:hidden;background:var(--paper)}
.av-card-art{display:grid;place-items:center;position:relative;aspect-ratio:16/10;background:var(--lilac);color:var(--deep)}.av-card:nth-child(3n+2) .av-card-art{background:#e4f3ed;color:#246454}.av-card:nth-child(3n) .av-card-art{background:#fff0de;color:#7c5a20}
.av-card-art>span{position:absolute;bottom:12px;right:12px;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--paper)}
.av-card>div{padding:18px}.av-card h2{font-size:17px;line-height:1.5;margin:0 0 8px;overflow-wrap:anywhere}.av-card p{font-size:13px;color:var(--muted);margin:0 0 14px}.av-card-link{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:750;color:var(--deep)}
.av-empty{text-align:center;border:1px dashed var(--line);border-radius:24px;padding:36px 24px;background:var(--paper)}.av-empty h2{margin:20px 0 10px;font-size:23px}.av-empty p{max-width:480px;color:var(--muted);line-height:1.8;margin:10px auto 20px}.av-empty .av-actions{justify-content:center}
.av-footnote{color:var(--muted);font-size:13px;line-height:1.8;margin-top:24px}.av-footnote svg{margin-right:6px}.av-notice{padding:16px;background:#fff3df;border-radius:14px;font-size:14px;line-height:1.7}
.av-confirm-layout,.av-detail{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:28px;align-items:start}.av-selection,.av-confirm,.av-detail-copy{min-width:0}.av-selection{border:1px solid var(--line);border-radius:24px;background:var(--paper);overflow:hidden}.av-selection>h2{margin:22px 24px 10px;font-size:23px;overflow-wrap:anywhere}.av-selection>p{margin:0 24px 22px;font-size:14px;color:var(--muted)}
.av-destination{padding:18px 24px;background:var(--lilac);display:flex;flex-direction:column;gap:8px}.av-destination>span{color:var(--muted);font-size:13px}.av-destination strong{font-size:16px;overflow-wrap:anywhere}.av-confirm{background:var(--paper);padding:28px;border:1px solid var(--line);border-radius:24px}.av-confirm>p{margin:0 0 22px;line-height:1.9;font-size:15px}
.av-consent{display:grid;grid-template-columns:24px minmax(0,1fr);gap:12px;border:1px solid var(--line);border-radius:16px;padding:18px;line-height:1.7;font-size:15px;cursor:pointer}.av-consent input{width:22px;height:22px;accent-color:var(--deep);margin:2px 0}.av-consent:has(input:checked){background:var(--lilac);border-color:var(--deep)}.av-consent:focus-within{outline:3px solid var(--focus);outline-offset:3px}
.av-text-link{display:inline-flex;align-items:center;min-height:48px;color:var(--deep);font-size:14px;text-decoration:underline}.av-preview{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:14px;min-width:0;min-height:280px;aspect-ratio:4/3;background:var(--lilac);border-radius:24px;overflow:hidden}.av-preview p{font-size:13px;color:var(--muted);padding:0 24px;text-align:center}.av-preview img,.av-preview video{width:100%;height:100%;max-height:460px;object-fit:contain}.av-detail-copy h2{font-size:clamp(23px,3vw,30px);line-height:1.4;margin:12px 0;overflow-wrap:anywhere}.av-detail-copy>p{font-size:14px;line-height:1.8;color:var(--muted)}
.av-location-switch{display:flex;gap:8px;margin:12px 0 18px}.av-location-switch>a{min-height:48px;flex:1;display:flex;align-items:center;justify-content:center;gap:8px;padding:12px;border-radius:13px;border:1px solid var(--line);background:var(--paper);font-size:14px;font-weight:700}.av-location-switch [aria-current=page]{background:var(--deep);color:#fff}
.account-auth-shell{display:grid;grid-template-columns:.85fr 1fr;gap:42px;align-items:start;max-width:1020px;margin:28px auto 40px}.account-auth-intro{padding:34px 16px}.account-auth-intro h2{font-size:clamp(28px,4vw,42px);line-height:1.2;letter-spacing:-.03em;margin:24px 0 18px}.account-auth-intro>p{font-size:15px;color:var(--muted);line-height:1.85;max-width:330px}.account-auth-intro .av-entry-symbol{margin:0}.account-auth-shell .creator-auth{margin:0;max-width:none;width:100%;padding:28px;border:1px solid var(--line);border-radius:24px;background:var(--paper)}.account-auth-shell .creator-auth h1{font-size:28px;line-height:1.3}.account-auth-shell .creator-auth form label{font-weight:650;font-size:14px}.account-auth-shell .creator-auth .btn{min-height:48px}.account-auth-switch{display:flex!important;min-height:48px;align-items:center;justify-content:center;margin:10px 0;border:1px solid var(--line);border-radius:12px;font-weight:650}.account-auth-shell .creator-auth>p.small{font-size:12px;line-height:1.7;margin-top:20px}.account-vault button[hidden]{display:none!important}
@media(max-width:800px){.av-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.av-confirm-layout,.av-detail{gap:18px}.account-auth-shell{grid-template-columns:1fr;max-width:520px;gap:18px}.account-auth-intro{display:none}}
@media(max-width:600px){.account-vault{padding-top:0}.av-heading{margin:18px 0 22px}.av-entry{grid-template-columns:1fr;text-align:center;padding:32px 24px;gap:24px}.av-entry .av-actions{justify-content:center}.av-account-bar{padding:16px;gap:10px;flex-wrap:wrap}.av-account-bar>.btn{flex:1 1 100%}.av-card>div{padding:14px}.av-card h2{font-size:16px}.av-grid{gap:12px}.av-confirm-layout,.av-detail{grid-template-columns:1fr}.av-selection>.av-card-art{aspect-ratio:auto;height:104px}.av-selection>h2{font-size:21px;margin:18px 20px 8px}.av-selection>p{margin:0 20px 18px}.av-destination{padding:14px 20px}.av-confirm{padding:22px}.av-preview{min-height:180px;max-height:240px;aspect-ratio:auto;padding:16px}.av-preview:has(img),.av-preview:has(video){padding:0}.av-preview img,.av-preview video{max-height:240px}.av-detail-copy .av-actions .btn{flex:1}.av-consent{padding:14px}.account-auth-shell{margin:18px 0 32px}.account-auth-shell .creator-auth{padding:22px}.av-footnote{margin-top:18px}}
@media(max-width:359px){.av-grid{grid-template-columns:1fr}.av-actions>.btn{width:100%}.av-filter .btn{padding:12px}}
@media(prefers-reduced-motion:reduce){.account-vault *,.account-auth-shell *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Short-screen confirmation: primary actions stay above the existing bottom rail
 * at 390x844 with default text. Larger text remains scrollable, never clipped. */
@media(max-width:600px){.av-selection>.av-card-art{height:64px}.av-selection>h2{margin:12px 20px 6px;font-size:20px}.av-selection>p{margin:0 20px 12px}.av-destination{padding:10px 20px;gap:5px}.av-confirm{padding:18px}.av-confirm .av-actions{margin:14px 0}.av-confirm>p{margin-bottom:16px}.account-auth-shell .creator-auth h1{margin-bottom:12px}.account-auth-shell #auth-status:empty{margin:0;min-height:0}.account-vault [hidden]{display:none!important}}

/* UX79: text uses the reader's base size. Card columns depend on readable
 * widths, not a fixed count. Icons remain separate SVGs, never text bitmaps.
 * These rules support later 200%/320px manual review; they are not a WCAG
 * certification or measured physical-browser layout result. */
.account-vault,.account-auth-shell{font-size:1rem;line-height:1.6}
.av-heading h1{font-size:clamp(1.75rem,3.5vw,2.625rem)}
.av-entry-copy h2{font-size:clamp(1.5rem,3vw,2rem)}
.av-detail-copy h2{font-size:clamp(1.4375rem,3vw,1.875rem)}
.av-eyebrow,.av-account-bar>div>span,.av-count,.av-card p,.av-card-link,.av-footnote,.av-preview p,.account-auth-shell .creator-auth>p.small{font-size:.875rem}
.av-account-bar strong,.av-destination strong,.av-search input{font-size:1rem}
.av-card h2{font-size:1.0625rem}.av-empty h2,.av-selection>h2{font-size:1.4375rem}
.av-notice,.av-selection>p,.av-destination>span,.av-text-link,.av-detail-copy>p,.av-location-switch>a,.account-auth-shell .creator-auth form label{font-size:.9375rem}
.av-confirm>p,.av-consent,.account-auth-intro>p{font-size:1rem}
.account-auth-intro h2{font-size:clamp(1.75rem,4vw,2.625rem)}
.account-auth-shell .creator-auth h1{font-size:1.75rem}
.av-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr))}
.account-vault :is(a,button,input):focus-visible{outline:3px solid var(--focus,var(--deep));outline-offset:4px}
.av-preview:not(:has(img,video)){max-height:none;aspect-ratio:auto;min-height:12rem}
.account-vault [data-av-body][hidden]{display:none!important}
@media(max-width:600px){.av-selection>h2{font-size:1.3125rem}.av-detail-copy .av-actions .btn{flex:1 1 8rem}.av-confirm{padding:1.125rem}.av-consent{padding:.875rem}}
@media(forced-colors:active){.av-card,.av-entry,.av-empty,.av-account-bar,.av-selection,.av-confirm,.av-consent{border-color:CanvasText}.av-filter [aria-pressed=true]{background:Highlight;color:HighlightText}.account-vault :is(a,button,input):focus-visible{outline-color:Highlight}}

/* UX39 account workspace — existing ROM tokens, no new fonts or moving artwork.
 * Scope touch targets locally so legacy games/other screens retain their layout.
 * Headings and labels wrap; no fixed-height cards clip translated text. */
.account-control,.ac-dialog{--xp-touch:48px;--ac-gap:18px}
.account-control{max-width:1080px;margin:0 auto;padding:8px 0 48px}
.account-control [hidden],.ac-dialog [hidden]{display:none!important}
.account-control .btn,.ac-dialog .btn{min-height:48px;min-width:48px;white-space:normal;line-height:1.4;text-align:center;padding:12px 17px}
.ac-heading{margin:22px 0 26px}.ac-heading h1{font-size:clamp(28px,4vw,40px);line-height:1.22;letter-spacing:-.035em;margin:10px 0 0}
.ac-lead{font-size:15px;color:var(--muted);line-height:1.85;margin:18px 0 24px}.ac-actions{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 0}.ac-actions:empty{display:none}
.ac-identity{display:flex;align-items:center;gap:16px;padding:24px;border:1px solid var(--line);border-radius:24px;background:var(--paper)}.ac-avatar{width:58px;height:58px;display:grid;place-items:center;flex:none;border-radius:20px;background:var(--deep);color:white;font-weight:800;font-size:25px}.ac-identity>div{display:flex;flex-direction:column;gap:6px;min-width:0;flex:1}.ac-identity strong{font-size:20px;overflow-wrap:anywhere}.ac-identity>div>span{font-size:14px;color:var(--muted);overflow-wrap:anywhere}.ac-private{display:flex;align-items:center;gap:7px;color:var(--deep);font-size:13px;font-weight:650;padding:10px 12px;border-radius:12px;background:var(--lilac)}
.ac-task-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.ac-task{display:flex;gap:18px;align-items:center;padding:26px;min-height:110px;border:1px solid var(--line);border-radius:22px;background:var(--paper);text-decoration:none}.ac-task-icon{width:52px;height:52px;flex:none;display:grid;place-items:center;background:var(--lilac);color:var(--deep);border-radius:18px}.ac-task:nth-child(2) .ac-task-icon{background:#e4f1e8;color:#2a6652}.ac-task:nth-child(3) .ac-task-icon{background:#fff0d8;color:#825927}.ac-task>span:nth-child(2){flex:1;display:flex;flex-direction:column;gap:8px;min-width:0}.ac-task strong{font-size:18px;line-height:1.4;overflow-wrap:anywhere}.ac-task small{color:var(--muted);font-size:13px}.ac-task:hover{border-color:var(--deep)}.ac-task:focus-visible{outline:3px solid var(--focus);outline-offset:4px}
.ac-related{display:flex;flex-wrap:wrap;gap:10px;margin:28px 0 0;padding-top:24px;border-top:1px solid var(--line)}
.ac-split{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1fr);gap:32px;align-items:start}.ac-context{padding:24px 18px 24px 0}.ac-context h2{font-size:28px;line-height:1.3;margin:24px 0 12px;letter-spacing:-.025em}.ac-context p{font-size:15px;line-height:1.85;max-width:400px}.ac-symbol{width:86px;height:86px;display:grid;place-items:center;flex:none;background:var(--lilac);color:var(--deep);border-radius:26px}.ac-form-panel{border:1px solid var(--line);border-radius:24px;padding:28px;background:var(--paper);min-width:0}.ac-form-panel h2{font-size:23px;line-height:1.4;margin:0 0 12px}.ac-form-panel>p{font-size:14px;line-height:1.85;color:var(--muted)}
.ac-field{display:flex;flex-direction:column;gap:9px;margin:0 0 20px;font-size:14px;font-weight:650;min-width:0}.ac-field input,.ac-field textarea{width:100%;font:inherit;font-size:16px;font-weight:400;min-width:0;min-height:50px;background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:12px;color:var(--ink)}.ac-field input:focus-visible,.ac-code-card textarea:focus-visible{outline:3px solid var(--focus);outline-offset:3px}.ac-input-row{display:flex;gap:8px;align-items:stretch;min-width:0}.ac-input-row input{flex:1}.ac-input-row .btn{font-size:13px;padding:10px 12px;flex:none}.ac-field [aria-invalid=true]{border-color:#a92732}
.ac-hint{font-size:13px;color:var(--muted);line-height:1.8}.ac-note{font-size:13px!important;color:var(--muted);line-height:1.9;padding-top:14px}.ac-status{font-size:14px;line-height:1.8;margin:16px 0 0;overflow-wrap:anywhere}.ac-status:empty{display:none}.ac-notice{padding:20px;border-radius:16px;background:#fff0d8;line-height:1.85;font-size:14px}.ac-divider{border-top:1px solid var(--line);margin:24px 0}.ac-help{border-top:1px solid var(--line);padding-top:16px;margin-top:20px}.ac-help summary{display:flex;align-items:center;min-height:48px;cursor:pointer;font-size:14px;font-weight:700;text-decoration:underline}.ac-help p{font-size:13px;line-height:1.9}
.ac-setup{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}.ac-code-card{padding:28px;background:var(--lilac);border-radius:24px;min-width:0}.ac-code-card h2{font-size:24px;line-height:1.35;margin:20px 0 12px}.ac-code-card p{line-height:1.85;font-size:14px}.ac-step{display:grid;place-items:center;width:30px;height:30px;background:var(--deep);color:white;border-radius:50%;font-size:13px;font-weight:750;margin-bottom:18px}.ac-code-card textarea{width:100%;resize:none;min-height:106px;margin-top:14px;border:1px solid var(--deep);border-radius:14px;padding:15px;background:var(--paper);color:var(--deep);font-family:ui-monospace,monospace;font-size:18px;line-height:1.8;letter-spacing:.04em;overflow-wrap:anywhere}.ac-cancel{margin-top:12px}.ac-login-list{display:grid;gap:14px}.ac-login{display:flex;align-items:center;gap:18px;padding:22px 24px;border:1px solid var(--line);border-radius:22px;background:var(--paper)}.ac-login.ac-current{border-color:#aecfbe;background:#f5faf6}.ac-login>div{flex:1;min-width:0}.ac-login h2{font-size:17px;line-height:1.5;margin:0 0 8px}.ac-login p{font-size:13px;color:var(--muted);line-height:1.7;margin:3px 0}.ac-number{font-weight:400;color:var(--muted)}.ac-current-mark{color:#2a6652}.ac-history{list-style:none;margin:22px 0;padding:0;background:var(--paper);border:1px solid var(--line);border-radius:22px;overflow:hidden}.ac-history li{display:flex;gap:16px;padding:22px;border-bottom:1px solid var(--line)}.ac-history li:last-child{border-bottom:0}.ac-history li>span{color:var(--deep)}.ac-history li>div{display:flex;flex-direction:column;gap:8px}.ac-history strong{font-size:15px;line-height:1.6}.ac-history time{font-size:13px;color:var(--muted)}
.ac-guest,.ac-success{padding:38px 28px;border:1px solid var(--line);border-radius:26px;background:var(--paper);max-width:720px}.ac-guest h2,.ac-success h2{font-size:28px;line-height:1.4;margin:24px 0 12px}.ac-guest p,.ac-success p{font-size:15px;line-height:1.9;color:var(--muted);max-width:560px}.ac-success .ac-symbol{background:#e4f1e8;color:#2a6652}.ac-dialog>p{line-height:1.8;margin:0 0 22px}.ac-dialog .ac-field{margin-bottom:18px}.ac-dialog .ac-actions{justify-content:flex-end}
@media(max-width:800px){.ac-split,.ac-setup{grid-template-columns:1fr;gap:20px}.ac-context{padding:0}.ac-context>.ac-symbol,.ac-context>h2{display:none}.ac-context p{max-width:none;margin:0}.ac-context .ac-note{padding-top:10px}.ac-setup{max-width:560px;margin:0 auto}.ac-form-panel{padding:24px}.ac-identity{padding:20px}.ac-task{padding:20px;gap:14px}}
@media(max-width:600px){.account-control{padding-top:0}.ac-heading{margin:18px 0 22px}.ac-private{display:none}.ac-avatar{width:48px;height:48px;border-radius:17px;font-size:22px}.ac-identity strong{font-size:18px}.ac-task-grid{gap:12px}.ac-task{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:16px;padding:20px;min-height:146px}.ac-task>svg:last-child{position:absolute;right:16px;top:24px}.ac-task>span:nth-child(2){gap:7px}.ac-task strong{font-size:16px}.ac-task-icon{width:46px;height:46px;border-radius:16px}.ac-related .btn{flex:1 1 calc(50% - 10px)}.ac-form-panel{padding:20px}.ac-field{margin-bottom:17px}.ac-actions>.primary{flex:1}.ac-setup{gap:16px}.ac-code-card{padding:22px}.ac-code-card h2{font-size:22px}.ac-code-card textarea{font-size:16px;min-height:105px}.ac-login{padding:18px;gap:12px;flex-wrap:wrap}.ac-login .btn{margin-left:58px;flex:1}.ac-login .ac-task-icon{align-self:flex-start}.ac-login>div{flex-basis:calc(100% - 72px)}.ac-login.ac-current>div{flex-basis:0}.ac-guest,.ac-success{padding:28px 22px}.ac-guest h2,.ac-success h2{font-size:24px}.ac-heading h1{font-size:29px}.ac-form-panel>.ac-step{margin-bottom:14px}.ac-note{padding-top:10px}.ac-lead{margin-bottom:20px}}
@media(max-width:359px){.ac-task-grid{grid-template-columns:1fr}.ac-task{flex-direction:row;min-height:92px;align-items:center}.ac-task>svg:last-child{position:static}.ac-task>span:nth-child(2){flex:1}.ac-related .btn{flex-basis:100%}}
@media(prefers-reduced-motion:reduce){.account-control *,.ac-dialog *{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
/* Task pages already identify the account in the breadcrumb. Removing the
 * repeated eyebrow leaves the primary action above the mobile bottom bar without
 * hiding password-change consequences or shrinking touch targets. */
@media(max-width:600px){.account-control:not([data-account-page="home"]) .ac-heading .av-eyebrow{display:none}.account-control:not([data-account-page="home"]) .ac-heading{margin-top:16px;margin-bottom:20px}.ac-field{margin-bottom:14px}}

/* UX79: account tasks follow the same scalable type and focus treatment as
 * the private library. Native zoom, forced-color and password-manager behavior
 * still require physical-browser review before accessibility acceptance. */
.account-control,.ac-dialog{font-size:1rem;line-height:1.6}
.ac-heading h1{font-size:clamp(1.75rem,4vw,2.5rem)}
.ac-lead,.ac-context p,.ac-guest p,.ac-success p,.ac-history strong{font-size:1rem}
.ac-identity strong{font-size:1.25rem}.ac-avatar{font-size:1.5625rem}
.ac-identity>div>span,.ac-field,.ac-form-panel>p,.ac-status,.ac-notice,.ac-code-card p{font-size:.9375rem}
.ac-private,.ac-task small,.ac-input-row .btn,.ac-hint,.ac-help p,.ac-step,.ac-login p,.ac-history time{font-size:.875rem}
.ac-note{font-size:.875rem!important}.ac-task strong{font-size:1.125rem}
.ac-context h2,.ac-guest h2,.ac-success h2{font-size:1.75rem}.ac-form-panel h2{font-size:1.4375rem}
.ac-code-card h2{font-size:1.5rem}.ac-code-card textarea{font-size:1.125rem;min-height:6.625rem}
.ac-field input,.ac-field textarea{font-size:1rem}.ac-help summary{font-size:.9375rem}.ac-login h2{font-size:1.0625rem}
.ac-task-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,20rem),1fr))}
.account-control :is(a,button,input,textarea,summary):focus-visible,.ac-dialog :is(button,input):focus-visible{outline:3px solid var(--focus,var(--deep));outline-offset:4px}
.account-control [data-ac-body][hidden]{display:none!important}
@media(max-width:600px){.ac-avatar{font-size:1.375rem}.ac-task{min-height:8rem}.ac-code-card textarea{font-size:1rem}.ac-guest h2,.ac-success h2{font-size:1.5rem}}
@media(forced-colors:active){.ac-identity,.ac-task,.ac-form-panel,.ac-login,.ac-history,.ac-guest,.ac-success{border-color:CanvasText}.ac-task-icon,.ac-private,.ac-code-card{background:Canvas;color:CanvasText}.ac-current-mark{color:CanvasText}.account-control :focus-visible,.ac-dialog :focus-visible{outline-color:Highlight}}

/* UX82: a calm two-part setup with the key as real, selectable text. No QR
 * bitmap, animation loop, fixed-height translated copy or external font load. */
.ac-app-code{letter-spacing:.14em;font-variant-numeric:tabular-nums}
.ac-app-details{margin:1.25rem 0;display:grid;gap:.625rem;font-size:.9375rem}
.ac-app-details>div{display:flex;flex-wrap:wrap;gap:.5rem 1rem;justify-content:space-between}
.ac-app-details dt{color:var(--muted)}.ac-app-details dd{margin:0;overflow-wrap:anywhere}
.ac-app-choice{display:flex;align-items:flex-start;gap:.75rem;line-height:1.7;font-size:.9375rem;cursor:pointer}
.ac-app-choice input{width:1.25rem;height:1.25rem;min-width:1.25rem;min-height:1.25rem;margin-top:.2rem;accent-color:var(--deep)}
.ac-enabled-mark{display:flex;align-items:center;gap:.625rem;font-weight:700;color:var(--deep)}

/* UX40: a static overview and one option group at a time. No render loop or blur.
 * Native radio controls keep keyboard conventions and forced-colour fallback.
 */
.remix-page{max-width:1120px;margin:0 auto;padding-bottom:24px}.rx-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:18px 0 28px}.rx-heading h1{font-size:36px;letter-spacing:-.045em;line-height:1.2;margin:0}.rx-heading p{color:var(--c-muted);margin:10px 0 0}.rx-heading-icon{width:60px;height:60px;display:grid;place-items:center;background:#d9eda9;border-radius:19px;color:#2e492a;transform:rotate(-6deg)}.rx-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:30px;align-items:start}.rx-preview{border-radius:26px;background:#ecf4e3;border:1px solid #dce6d1;padding:24px;position:sticky;top:96px;overflow:hidden;color:#24352d}.rx-preview.candy{background:#f8ebf2;border-color:#eed4e5}.rx-preview.aurora{background:#eeeafa;border-color:#dfd9f0}.rx-preview-top{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12px;font-weight:700}.rx-preview-top>span:first-child{display:flex;align-items:center;gap:6px}.rx-time{background:#ffffffd9;padding:7px 11px;border-radius:20px;white-space:nowrap}.rx-preview > svg{width:100%;height:auto;max-height:285px;display:block;margin:20px auto 0;overflow:visible}.rx-road,.rx-road-shadow,.rx-road-line{fill:none;stroke-linejoin:round;stroke-linecap:round}.rx-road-shadow{stroke:#344c3b20;stroke-width:27;transform:translateY(6px)}.rx-road{stroke:#fff;stroke-width:22}.rx-road-line{stroke:#adc791;stroke-width:2;stroke-dasharray:2 7}.candy .rx-road-line{stroke:#cd8ab2}.aurora .rx-road-line{stroke:#a291d8}.rx-start-point{fill:#334735;stroke:#fff;stroke-width:4}.rx-preview-caption{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:8px 0 22px}.rx-preview-caption strong{font-size:23px;letter-spacing:-.04em}.rx-preview-caption>span{font-size:13px;white-space:nowrap}.rx-first{display:flex;gap:12px;align-items:center;background:#fff9;padding:15px;border-radius:17px}.rx-first-icon{background:#ffffffb0;border-radius:12px;width:44px;height:44px;display:grid;place-items:center;flex-shrink:0}.rx-first>div{display:grid;gap:5px}.rx-first small{font-size:11px;color:#566052}.rx-first strong{font-size:16px}.rx-panels{display:flex;gap:6px;padding:5px;background:#efedf5;border-radius:16px}.remix-page .rx-panels button{display:flex;flex:1;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:10px;border:1px solid transparent;border-radius:12px;color:#625d75;background:transparent;font-weight:750}.remix-page .rx-panels [aria-pressed=true]{background:#fff;color:#2f2944;border-color:#d9d5e5;box-shadow:0 2px 5px #2f294409}.rx-panel-body{margin-top:25px}.rx-panel-body h2{font-size:20px;margin:0 0 7px}.rx-panel-body>p{color:var(--c-muted);line-height:1.6;font-size:14px;margin:0 0 18px}.rx-choices{border:0;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.rx-time.rx-choices{background:none;border-radius:0;grid-template-columns:repeat(2,minmax(0,1fr));white-space:normal}.rx-option{cursor:pointer;position:relative;display:block;min-width:0}.rx-option input{position:absolute;top:12px;left:12px;width:18px;height:18px;opacity:0}.rx-option-box{position:relative;display:flex;align-items:center;flex-direction:column;justify-content:center;gap:12px;border:1.5px solid #e2deec;border-radius:16px;min-height:104px;padding:18px 10px;background:#fff;color:#51465d}.rx-option strong{font-size:14px;line-height:1.4;text-align:center}.rx-option input:checked+.rx-option-box{background:#f0eafb;border-color:#7451b0;color:#563183}.rx-option input:focus-visible+.rx-option-box{outline:3px solid #7251b2;outline-offset:3px}.rx-check{position:absolute;right:8px;top:8px;display:none}.rx-option input:checked+.rx-option-box .rx-check{display:block}.rx-option input:disabled+.rx-option-box{opacity:.65;cursor:wait}.rx-rule-hint{padding:14px 16px;background:#f4f2f8;border-radius:12px;line-height:1.6;font-size:13px;margin:17px 0 10px;color:#51475d;min-height:48px}.rx-tune-actions{display:flex;gap:10px;margin:8px 0 15px;flex-wrap:wrap}.remix-page .rx-tune-actions button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:48px;border:0;background:none;padding:10px 8px;font-size:13px;color:#5b4d73}.rx-main-actions{display:grid;grid-template-columns:1.15fr 1fr;gap:10px}.remix-page .rx-main-actions .btn{min-height:52px;border-radius:14px;font-size:15px;gap:8px;white-space:normal}.rx-scope{font-size:12px;color:#767084;text-align:center;margin:12px 0}.remix-page #rx-status{font-size:13px;line-height:1.6;color:#635476}.remix-page #rx-saved-link[hidden]{display:none!important}.rx-details{border:1px solid #e4e0ec;border-radius:18px;margin:26px 0 12px;background:#fff}.rx-details summary{list-style:none;min-height:54px;padding:18px;display:flex;align-items:center;gap:9px;font-weight:750;cursor:pointer;font-size:14px}.rx-details summary:after{content:'+';margin-left:auto;font-size:20px}.rx-details[open] summary:after{content:'−'}.rx-details>p{color:var(--c-muted);font-size:13px;margin:0 18px 14px}.rx-details ol{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:0;padding:0 18px 18px}.rx-details li{border:1px solid #e9e6f0;background:#faf9fc;border-radius:10px;padding:12px;display:grid;gap:8px}.rx-details li span{color:#797183;font-size:11px}.rx-details li strong{font-size:13px}.rx-private-note{display:flex;gap:7px;color:#787083;font-size:12px;line-height:1.6;margin:17px 3px}.remix-page button:disabled{cursor:wait}.discovery-remix{display:flex;justify-content:center;align-items:center;gap:8px;color:#efebf6;border:1px solid #878193;border-radius:10px;min-height:48px;width:100%;margin-top:10px;padding:10px;font-size:13px}.discovery-remix:hover{background:#ffffff12}.discovery-more{display:flex;align-items:center;justify-content:space-between;gap:10px}.discovery-more a{min-height:48px}
@media(max-width:760px){.rx-workspace{grid-template-columns:1fr;gap:20px}.rx-heading{margin:12px 0 20px}.rx-heading h1{font-size:29px}.rx-heading p{font-size:14px;line-height:1.5}.rx-heading-icon{width:48px;height:48px;border-radius:16px;flex-shrink:0}.rx-preview{position:static;padding:17px;border-radius:20px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 12px}.rx-preview-top{grid-column:1/-1}.rx-preview > svg{grid-row:2/4;max-height:152px;margin:12px 0 0}.rx-preview-caption{display:block;margin:22px 0 12px}.rx-preview-caption strong{font-size:17px;display:block;line-height:1.3}.rx-preview-caption>span{display:block;margin-top:7px;font-size:11px}.rx-first{padding:9px;gap:9px;border-radius:12px;align-self:start;margin-bottom:0}.rx-first-icon{width:30px;height:30px;border-radius:8px}.rx-first-icon svg{width:19px;height:19px}.rx-first strong{font-size:13px}.rx-first small{font-size:10px}.rx-panel-body{margin-top:20px}.rx-option-box{min-height:86px;gap:10px;padding:15px 6px}.rx-option strong{font-size:13px}.rx-rule.rx-choices{grid-template-columns:repeat(3,minmax(0,1fr))}.rx-details ol{grid-template-columns:repeat(2,minmax(0,1fr))}.rx-main-actions .btn{font-size:14px!important}.rx-controls{min-width:0}}
@media(max-width:360px){.rx-heading h1{font-size:26px}.rx-heading-icon{display:none}.rx-preview{padding:13px;gap:0 8px}.rx-preview-caption strong{font-size:15px}.rx-first{padding:7px}.rx-first-icon{display:none}.rx-main-actions{grid-template-columns:1fr}.rx-panels button{font-size:12px}.rx-choices{gap:7px}}
@media(prefers-reduced-motion:reduce){.remix-page *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(forced-colors:active){.rx-option input{opacity:1}.rx-option-box{border-color:ButtonText}.rx-option input:checked+.rx-option-box{border:3px solid Highlight}.rx-road{stroke:CanvasText}.rx-road-line{stroke:Canvas}.rx-start-point{fill:Highlight}}

/* Programmatic reading focus is not a selectable heading. Keyboard controls keep their own visible focus. */
.rx-heading h1:focus{outline:none}
/* A longer translation or enlarged system text must wrap, not push a control off screen. */
.rx-controls,.rx-panel-body,.rx-first>div{min-width:0}.remix-page .rx-panels button{min-width:0;overflow-wrap:anywhere;flex-wrap:wrap;white-space:normal}.rx-option strong,.rx-main-actions .btn{overflow-wrap:anywhere}

/* UX41: bounded, static end-of-run sheet. No continuous animation or new artwork.
   Scope explicitly beats legacy landscape rules; controls may wrap rather than shrink. */
.shorts-root .race-result-layer.has-run-result{padding:100px 16px 22px;align-items:center;overflow:hidden;}
.shorts-root .result-sheet{width:min(100%,460px);max-height:100%;overflow:auto;overscroll-behavior:contain;scroll-padding-block:12px;box-sizing:border-box;padding:24px;border-radius:26px;background:#fff;color:#272239;text-align:left;box-shadow:0 18px 58px #100a2a40;}
.result-sheet .result-kicker{display:flex;align-items:center;gap:12px;}
.result-sheet .result-seal{display:grid;place-items:center;background:#f3e9c3;color:#75510e;width:50px;height:50px;border-radius:17px;flex:none;}
.result-sheet .result-kicker p{font-size:17px;line-height:1.4;margin:0;font-weight:800;color:#30263f;}
.result-sheet .result-kicker span:not(.result-seal){font-size:13px;color:#60556b;}
.result-sheet .result-score{display:flex;align-items:center;gap:24px;margin:18px 0 8px;}
.result-sheet .result-score h2{display:flex;align-items:baseline;gap:6px;margin:0;line-height:1;white-space:nowrap;font-size:64px;letter-spacing:-3px;}
.result-sheet .result-score h2 strong{font-size:inherit;font-weight:900;}
.result-sheet .result-score h2 small{font-size:18px;letter-spacing:0;}
.result-sheet .result-score dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;flex:1;margin:0;}
.result-sheet .result-score dt{font-size:12px;color:#6a6077;margin-bottom:8px;}
.result-sheet .result-score dd{font-size:20px;font-weight:800;margin:0;white-space:nowrap;}
.result-sheet .result-score dd small{font-size:12px;font-weight:500;margin-left:2px;}
.result-sheet .result-context{font-size:12px;color:#65596e;line-height:1.5;margin:8px 0 18px;}
.result-sheet .result-primary,.result-sheet .result-secondary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px;}
.shorts-root .result-sheet button,.shorts-root .result-sheet a{min-height:48px!important;height:auto;line-height:1.45;font-size:14px!important;padding:12px 10px;display:flex;align-items:center;justify-content:center;gap:8px;white-space:normal;overflow-wrap:anywhere;box-sizing:border-box;margin:0;width:auto;text-decoration:none;letter-spacing:0;}
.result-sheet .race-start{background:#6544b8;color:#fff;border:1px solid #6544b8;box-shadow:none;border-radius:14px;}
.result-sheet .finish-secondary{background:#f4f0fc;color:#443267;border:1px solid #d9cdeb;border-radius:14px;}
.result-sheet #run-friend{background:#e8f5f0;border-color:#b8dace;color:#245c4c;}
.result-sheet .result-exits{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;margin-top:12px;}
.result-sheet .plain-action{background:transparent;border:0;color:#5a4c6b;font-weight:700;border-radius:12px;}
.result-sheet .result-save{border-top:1px solid #e9e3ef;margin-top:12px;padding-top:10px;}
.result-sheet [data-history-save]{font-size:12px;line-height:1.65;margin:0;color:#685f72;}
.result-sheet [hidden]{display:none!important;}
.shorts-root .result-sheet :focus-visible{outline:3px solid #6143b7;outline-offset:2px;}
/* Give the three statistics their own row on narrow phones: times such as
   51.3 seconds need more room than the rank and must not touch the next value. */
@media(max-width:360px){.shorts-root .result-sheet{padding:18px;}.result-sheet .result-score{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;}.result-sheet .result-score h2{font-size:54px;}.result-sheet .result-score dl{gap:8px;}.result-sheet .result-score dd{font-size:17px;}}
@media(max-height:570px) and (orientation:landscape){.shorts-root .race-result-layer.has-run-result{padding-top:70px;padding-bottom:12px;align-items:flex-start;}.shorts-root .result-sheet{max-height:100%;}}
/* Native modal deliberately adopts light text/color, even above the dark game. */
.challenge-handoff{color:#30263f;background:white;width:min(520px,calc(100vw - 24px));max-height:calc(100dvh - 32px);}
.challenge-handoff .handoff-intro{display:flex;align-items:center;gap:12px;margin-bottom:20px;}
.challenge-handoff .handoff-intro p{margin:0;line-height:1.65;font-size:15px;}
.challenge-handoff .handoff-intro .icon-tile{width:52px;height:52px;flex:none;}
.challenge-handoff .handoff-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.challenge-handoff .handoff-actions button:first-child{grid-column:1/-1;}
.challenge-handoff .btn,.challenge-handoff .icon-btn,.challenge-handoff summary{min-height:48px!important;white-space:normal;line-height:1.45;height:auto;}
.challenge-handoff .btn{justify-content:center;gap:8px;overflow-wrap:anywhere;}
.challenge-handoff #handoff-state{min-height:1.5em;font-size:14px;color:#5c4877;}
.challenge-handoff .handoff-code{padding:8px 14px;border:1px solid #dfd7ea;border-radius:14px;background:#f9f7fd;}
.challenge-handoff summary{display:flex;align-items:center;font-weight:700;cursor:pointer;}
.challenge-handoff label{display:block;font-size:13px;color:#65576f;margin:10px 0;}
.challenge-handoff textarea{display:block;width:100%;resize:vertical;min-height:80px;padding:10px;border:1px solid #c3b8d0;border-radius:10px;background:#fff;color:#342b43;font:16px/1.5 ui-monospace,monospace;overflow-wrap:anywhere;}
.challenge-handoff .handoff-code p,.challenge-handoff .handoff-privacy{font-size:13px;line-height:1.75;color:#665d71;}
.challenge-handoff :focus-visible{outline:3px solid #6544b8;outline-offset:2px;}
@media(prefers-reduced-motion:reduce){.result-sheet *,.challenge-handoff *{transition:none!important;animation:none!important;scroll-behavior:auto!important;}}
.shorts-root .result-sheet .plain-action{display:flex;align-items:center;gap:8px;}

.challenge-handoff .handoff-summary{font-size:13px;font-weight:700;color:#5a4573;background:#f3eef9;padding:12px 14px;border-radius:12px;line-height:1.6;}

/* UX42 received challenge: existing art, steady layout, no animated renderer.
 * Keep these selectors scoped; legacy game screens and shelf layout are unchanged. */
.arrival-page{max-width:1040px;--arrival-ink:#20243d;--arrival-muted:#555d72;color:var(--arrival-ink)}
.arrival-page .btn,.arrival-page .challenge-nav a{min-height:48px!important;white-space:normal;line-height:1.35;text-align:center}
.arrival-nav{margin-bottom:20px}.arrival-nav a{font-size:14px;background:#fff}.arrival-nav a[aria-current]{background:#ede8fb;color:#44307e}
.arrival-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:8px 0 24px}
.arrival-heading h1{font-size:clamp(26px,3vw,36px);letter-spacing:-.04em;line-height:1.2;margin:0 0 8px}.arrival-heading p{margin:0;color:var(--arrival-muted);line-height:1.6}
.arrival-symbol{width:62px;height:62px;background:#e9e2fa;color:#59408f;border-radius:21px;display:grid;place-items:center;flex:none}
.arrival-entry .arrival-heading{justify-content:flex-start}.arrival-entry{max-width:760px}
.arrival-input{max-width:none;padding:28px;background:#fff;border-radius:24px;box-shadow:0 6px 28px #30205208}
.arrival-input #arrival-input-help{font-size:14px;color:var(--arrival-muted);line-height:1.5;margin:0 0 18px}
.arrival-input .arrival-field{display:flex;gap:12px;flex-wrap:nowrap}.arrival-field input{width:100%;min-width:0;min-height:52px;background:#f7f8fc;border:1px solid #c3c7d6;border-radius:13px;font-size:16px;padding:12px 14px}
.arrival-field button{flex:none;min-width:116px}.arrival-input .arrival-input-tools{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.arrival-input-tools .btn{font-size:14px;background:#f5f3fa}.arrival-input #challenge-code-error{min-height:1.5em;margin:14px 0 0;font-size:14px;line-height:1.55;color:#555d72}
.arrival-input #challenge-code-error[data-tone=error]{color:#8b3544}
.arrival-alternatives{display:grid;grid-template-columns:1fr 1fr;gap:12px}.arrival-alternatives a{display:flex;gap:12px;justify-content:flex-start;background:#fff;border:1px solid #dedeea;padding:18px;font-weight:700;text-decoration:none;border-radius:18px}
.arrival-badge{display:inline-flex;align-items:center;gap:7px;flex:none;font-size:13px;font-weight:700;border:1px solid #d7d0e9;background:#f5f0ff;color:#4b3678;padding:9px 12px;border-radius:100px}
.arrival-preview{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);box-shadow:0 12px 32px #28263c0b;border-radius:26px}
.arrival-art{position:relative;overflow:hidden;min-width:0;background:#deebf4;min-height:360px;display:grid;place-items:center}
.arrival-art img{width:100%;height:100%;position:absolute;object-fit:cover}.arrival-art>span{position:absolute;left:18px;bottom:18px;display:inline-flex;align-items:center;gap:7px;padding:9px 14px;border-radius:100px;background:#ffffffeb;color:#303952;font-weight:700;font-size:14px}
.arrival-summary{padding:28px}.arrival-summary h2{margin:0 0 20px;font-size:26px;line-height:1.3;letter-spacing:-.03em}
.arrival-facts{gap:12px;grid-template-columns:1fr 1.25fr;margin-bottom:14px}.arrival-facts>div{background:#f6f4fb;border:1px solid #e8e4f2;padding:13px;border-radius:14px;min-width:0}
.arrival-facts dt{color:#5b5470;font-size:13px}.arrival-facts dd{font-size:20px;display:flex;align-items:center;gap:6px;flex-wrap:wrap;word-break:keep-all;overflow-wrap:anywhere}
.arrival-page .challenge-practice{font-size:13px;line-height:1.5;margin:0 0 14px;color:#596174}.arrival-actions{display:grid;grid-template-columns:1fr 1.1fr;gap:10px;margin:0}
.arrival-actions .btn{padding:12px!important;font-size:16px}.arrival-page #challenge-state{line-height:1.55;margin:12px 0 6px;min-height:1.5em}
.arrival-shelf-check{display:flex;align-items:center;justify-content:space-between;gap:10px;border-block:1px solid #eae7f1;padding:8px 0;color:#626779;font-size:12px;line-height:1.5}
.arrival-shelf-check .btn{flex:none;font-size:12px;padding:9px;background:transparent}.arrival-page .challenge-secondary{gap:7px;margin-top:12px}.arrival-page .challenge-secondary .btn{font-size:13px;padding:10px 12px}
.arrival-guide,.arrival-code{border:1px solid #dcdde9;background:white;border-radius:18px;margin-top:16px;padding:0 18px}.arrival-page summary{min-height:52px;display:flex;align-items:center;gap:10px;font-weight:700;list-style:none;cursor:pointer;padding:14px 0}
.arrival-page summary::after{content:'+';margin-left:auto;font-size:20px;font-weight:400}.arrival-page details[open]>summary::after{content:'−'}
.arrival-guide p{font-size:14px;line-height:1.6;color:var(--arrival-muted)}.arrival-guide ol{list-style:none;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.arrival-guide li{border:1px solid #eeeaf5;border-radius:12px;padding:11px;min-width:0}.arrival-guide small{display:block;color:var(--arrival-muted);font-size:12px;margin-bottom:6px}.arrival-guide li>span{display:flex;gap:8px;align-items:center;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.arrival-scope{display:flex;gap:9px;align-items:flex-start;font-size:13px;color:#626b7c;line-height:1.6;margin-top:22px}.arrival-scope svg{margin-top:3px}.arrival-classic{font-size:13px;color:#6b5570;line-height:1.5}
.arrival-page form[hidden]{display:none!important}
@media(max-width:680px){
 .arrival-nav{margin-bottom:16px}.arrival-heading{margin:0 0 16px;align-items:flex-start;gap:10px}.arrival-heading h1{font-size:26px}.arrival-heading p{font-size:14px}.arrival-symbol{width:48px;height:48px;border-radius:16px}.arrival-badge{font-size:11px;padding:7px 9px}
 .arrival-preview{grid-template-columns:1fr}.arrival-art{min-height:140px;height:140px}.arrival-art img{object-position:center 52%}.arrival-art>span{left:14px;bottom:12px;padding:7px 10px;font-size:12px}
 .arrival-summary{padding:18px}.arrival-summary h2{font-size:24px;margin-bottom:14px}.arrival-facts>div{padding:10px}.arrival-facts dd{font-size:18px}.arrival-shelf-check{align-items:flex-start}.arrival-shelf-check .btn{min-width:72px}
 .arrival-input{padding:20px}.arrival-input .arrival-field{flex-direction:column}.arrival-field button{width:100%}.arrival-alternatives{gap:10px}.arrival-alternatives a{font-size:14px;padding:14px;gap:8px}
 .arrival-guide ol{grid-template-columns:repeat(2,minmax(0,1fr))}.arrival-page .challenge-secondary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.arrival-page .challenge-secondary .btn{padding:10px 6px;font-size:12px}
}
@media(max-width:350px){.arrival-heading{flex-wrap:wrap}.arrival-heading .arrival-badge{display:none}.arrival-alternatives{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.arrival-page *{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

.arrival-heading h1{width:fit-content;border-radius:6px}
@media(max-width:680px) and (max-height:740px){.arrival-art{height:96px;min-height:96px}.arrival-heading{margin-bottom:12px}.arrival-nav{margin-bottom:12px}.arrival-summary{padding:16px}}

/* COLLECTION_STYLE_20260922_CANDIDATE — authored, not executed or render-tested.
 * One maintenance location for the earlier mobile shelf and activity recovery CSS.
 * Load after the unchanged UX44 stylesheet, then the existing help-flow stylesheet.
 * 한국어 인계: 이전 후보에 겹쳐 들어 있던 보관함 스타일을 이 파일 한 곳으로 모았다.
 * 서비스·버튼·저장 자료를 삭제하지 않는다. DOM 텍스트와 기존 아이콘은 그대로 둔다.
 * 이 파일은 CSS 소스이며 이미지 파일 크기·게임 판정·배터리 절감의 증거가 아니다.
 */


/* 1. Saved challenges are a retrieval surface: title and actions precede large art.
 * No line-clamp or fixed card height. Existing data and action markup is unchanged.
 * These selectors intentionally outrank the original mobile card selectors.
 */
@media (max-width: 700px) {
  .shelf-page .challenge-shelf-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: .875rem;
  }


  .shelf-page .challenge-shelf-grid .challenge-shelf-card {
    --shelf-review-thumb: 4rem;
    display: grid;
    grid-template-columns: minmax(0, var(--shelf-review-thumb)) minmax(0, 1fr);
    align-items: start;
    gap: .75rem;
    padding: .875rem;
  }


  .shelf-page .challenge-shelf-card .shelf-card-art {
    inline-size: 100%;
    block-size: auto;
    max-inline-size: var(--shelf-review-thumb, 4rem);
    min-inline-size: 0;
    min-block-size: 0;
    aspect-ratio: 1;
    border-radius: .75rem;
  }


  .shelf-page .challenge-shelf-card .shelf-card-art img {
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
  }


  .shelf-page .challenge-shelf-card .shelf-card-content {
    min-inline-size: 0;
    padding: 0;
  }


  .shelf-page .shelf-card-top {
    margin-block-start: -.375rem;
    gap: .375rem;
    flex-wrap: wrap;
  }


  /* Reduce utility-to-results whitespace without reducing any touch target. */
  .shelf-page .shelf-count-row { margin-block: 1rem .5rem; }
  .shelf-page .shelf-card-bottom time { min-inline-size: 0; overflow-wrap: anywhere; }

  .shelf-page .shelf-kind { font-size: .75rem; }


  .shelf-page .challenge-shelf-card h2 {
    font-size: 1.125rem;
    line-height: 1.55;
    margin-block: .125rem .375rem;
    overflow-wrap: anywhere;
  }


  .shelf-page .challenge-shelf-card .shelf-condition {
    font-size: .8125rem;
    line-height: 1.65;
    margin-block-end: .875rem;
    overflow-wrap: anywhere;
  }


  .shelf-page .shelf-card-bottom .actions {
    /* Let the date and actions share one row when they fit. At narrow widths
     * flex-wrap keeps both actions intact rather than hiding them under the dock. */
    inline-size: auto;
    max-inline-size: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: .5rem;
  }


  .shelf-page .shelf-card-bottom .btn {
    min-block-size: var(--rom-shelf-size-touch, 48px);
    min-inline-size: var(--rom-shelf-size-touch, 48px);
    max-inline-size: 100%;
    padding-inline: .875rem;
    font-size: .875rem;
    line-height: 1.45;
    white-space: normal;
    overflow-wrap: anywhere;
  }


  .shelf-page .shelf-pin-label {
    inset: auto 0 0;
    justify-content: center;
    padding: .25rem .125rem;
    gap: .125rem;
    border-radius: 0 0 .75rem .75rem;
    font-size: .6875rem;
    white-space: normal;
  }
}


@media (max-width: 360px) {
  .shelf-page .challenge-shelf-grid .challenge-shelf-card {
    --shelf-review-thumb: 3rem;
    gap: .625rem;
    padding: .75rem;
  }
}


/* 2. Activity recovery preserves the existing semantic colors and button glyphs.
 * Error meaning belongs to the JavaScript state, not a color or CSS selector.
 * 48px is a project control-size target, not a claim about WCAG's minimum value.
 */
.collection-page [data-activity-read-notice] {
  flex-wrap: wrap;
  align-items: flex-start;
  gap: .75rem;
}


.collection-page [data-activity-read-notice] > span {
  flex: 1 1 16rem;
  min-inline-size: 0;
  overflow-wrap: anywhere;
}


.collection-page [data-activity-read-notice] > .actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0;
  max-inline-size: 100%;
}


.collection-page [data-activity-read-notice] .btn,
.collection-page [data-activity-read-state] .btn {
  min-block-size: 48px;
  min-inline-size: 48px;
  max-inline-size: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}


.collection-page [data-activity-read-state] :is(h2, p) {
  overflow-wrap: anywhere;
}


.collection-page [data-activity-read-notice] :is(button, a):focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
  scroll-margin-block: 6rem 8rem;
}


@media (max-width: 540px) {
  .collection-page [data-activity-read-notice] > .actions { inline-size: 100%; }
}


/* No new animation or request is created here. Existing reduced-motion rules remain.
 * Integration checks still required: original cascade, long Korean/English labels,
 * 320/390/768/1440 widths, 200% browser zoom, focus after dialogs, OFF rights routes,
 * first Open button visibility and real-device thermal/battery behavior.
 * Help presentation remains solely in MemeGame_help_flow_20260921.css.
 */
/* Unknown totals keep the same visual weight as confirmed counts. */
.collection-page #activity-stats strong > span {font:inherit;color:inherit;}

/* UX49: retrieval controls stay at the project's 48px target and retain their
 * full labels when text grows. Scope to Activity; saved challenges are unchanged. */
.activity-page :is(.collection-periods button,.collection-date input,.collection-date button,.collection-kinds .btn,.collection-list-heading select,.collection-detail .btn){
  min-block-size:var(--rom-shelf-size-touch,48px);
  min-inline-size:var(--rom-shelf-size-touch,48px);
}
.activity-page .activity-search-row{display:flex;align-items:stretch;gap:.5rem;flex:1;min-inline-size:0;max-inline-size:24rem}
.activity-page .activity-search-row .searchbox{min-inline-size:0;min-block-size:var(--rom-shelf-size-touch,48px);max-inline-size:none}
.activity-page .activity-search-row input{min-inline-size:0;min-block-size:var(--rom-shelf-size-touch,48px);font-size:1rem}
.activity-page .activity-search-row .btn{min-block-size:var(--rom-shelf-size-touch,48px);flex-shrink:0;padding-inline:.75rem;white-space:normal}
.activity-page #activity-action-state:empty{display:none}
.activity-page #activity-action-state{line-height:1.65;margin-block:1rem .5rem;overflow-wrap:anywhere}
.activity-page :is(input,select,button,a):focus-visible{outline:3px solid var(--rom-shelf-action-primary);outline-offset:3px;scroll-margin-block:6rem 8rem}
@media(max-width:800px){.activity-page .activity-search-row{max-inline-size:none;inline-size:100%}}

/* HELP_FLOW_20260921_CANDIDATE — authored, not render-tested.
 * Load AFTER UX45.1 styles. Reuses the existing ROM semantic tokens.
 * No game, account, media or storage selectors. The one shared notice selector
 * belongs to the explicit common-layout hook documented in the integration plan.
 * Text remains DOM text. No web fonts, image downloads, blur, video or animation loop.
 */
.help-flow {
  --help-ink: var(--rom-shelf-text-primary, #24202f);
  --help-muted: var(--rom-shelf-text-secondary, #645e70);
  --help-paper: var(--rom-shelf-surface-default, #fff);
  --help-line: var(--rom-shelf-border-default, #ded9e6);
  --help-accent: var(--rom-shelf-action-primary, #5e3a96);
  --help-soft: var(--rom-shelf-surface-emphasis, #f2ecfc);
  --help-on-strong: var(--rom-shelf-text-on-strong, #fff);
  --help-touch: var(--rom-shelf-size-touch, 48px);
  box-sizing: border-box;
  max-inline-size: 64rem;
  margin-inline: auto;
  padding: clamp(1.125rem, 3vw, 2rem);
  color: var(--help-ink);
  background: var(--help-paper);
  border: 1px solid var(--help-line);
  border-radius: 1.5rem;
}
.help-flow *, .help-flow *::before, .help-flow *::after { box-sizing: border-box; }
.help-flow [hidden], [data-service-availability][hidden] { display: none !important; }
.help-flow .help45-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-block-end: 1.5rem;
}
.help-flow .help45-head > div { min-inline-size: 0; }
.help-flow .help45-head h1 {
  margin: 0 0 .5rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.help-flow .help45-head p {
  margin: 0;
  font-size: .9375rem;
  line-height: 1.7;
  color: var(--help-muted);
}
.help-flow .help45-mark {
  display: grid;
  place-items: center;
  flex: none;
  inline-size: 3.5rem;
  block-size: 3.5rem;
  border-radius: 1.125rem;
  background: var(--help-soft);
  color: var(--help-accent);
}
.help-flow .help45-search {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .25rem .875rem;
  border: 1px solid var(--help-line);
  border-radius: .875rem;
  background: var(--help-paper);
}
.help-flow .help45-search input {
  inline-size: 100%;
  min-inline-size: 0;
  min-block-size: 3rem;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--help-ink);
  font: inherit;
  font-size: 1rem;
}
.help-flow .help45-search:focus-within {
  outline: 3px solid var(--help-accent);
  outline-offset: 3px;
}
.help-flow .help-flow-layout { display: grid; gap: 1.25rem; margin-block-start: 1.25rem; }
.help-flow .help-flow-results { min-inline-size: 0; }
.help-flow .help45-cats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .5rem;
  align-content: start;
  margin: 0;
}
/* Outrank the legacy body:not(.in-shorts) .btn sizing without !important. */
.help-flow.help45 .btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: .5rem;
  min-block-size: var(--help-touch);
  min-inline-size: var(--help-touch);
  max-inline-size: 100%;
  padding: .625rem .875rem;
  border: 1px solid var(--help-line);
  border-radius: .75rem;
  background: var(--help-paper);
  color: var(--help-ink);
  font: inherit;
  font-size: .9375rem;
  font-weight: 650;
  line-height: 1.5;
  text-align: start;
  text-decoration: none;
  white-space: normal;
  cursor: pointer;
}
.help-flow .help-flow-label { min-inline-size: 0; overflow-wrap: anywhere; }
.help-flow .help45-cats .btn[aria-pressed="true"] {
  color: var(--help-on-strong);
  background: var(--help-ink);
  border-color: var(--help-ink);
}
.help-flow .help45-count {
  color: var(--help-muted);
  font-size: .8125rem;
  line-height: 1.6;
  margin: 0 0 .5rem;
}
.help-flow .help45-item { border-block-end: 1px solid var(--help-line); }
.help-flow .help45-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-block-size: max(3.5rem, var(--help-touch));
  padding-block: 1rem;
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 650;
  list-style: none;
  cursor: pointer;
}
.help-flow .help45-item summary::-webkit-details-marker { display: none; }
.help-flow .help-flow-question { min-inline-size: 0; overflow-wrap: anywhere; }
.help-flow .help-flow-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; }
.help-flow .help45-item summary > .help-flow-icon { transition: transform 140ms ease-out; }
.help-flow .help45-item[open] summary > .help-flow-icon { transform: rotate(180deg); }
.help-flow .help-flow-answer { padding-block-end: 1.125rem; }
.help-flow .help-flow-answer p {
  margin: 0 0 .875rem;
  color: var(--help-muted);
  font-size: .9375rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.help-flow .help-flow-feedback, .help-flow .help45-note {
  margin-block: 1.25rem 0;
  color: var(--help-muted);
  font-size: .8125rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.help-flow .help-flow-feedback:empty { margin: 0; }
.help-flow .help45-empty { padding: 1.5rem .5rem; text-align: center; }
.help-flow .help45-empty h2 { font-size: 1.25rem; line-height: 1.5; margin: 0 0 .625rem; }
.help-flow .help45-empty p { color: var(--help-muted); margin: 0 0 1rem; line-height: 1.7; }
.help-flow :is(summary,button,a,input) { scroll-margin-block: 6rem 8rem; touch-action: manipulation; }
.help-flow :is(summary,button,a):focus-visible { outline: 3px solid var(--help-accent); outline-offset: 3px; }
@media (hover: hover) {
  .help-flow .btn:not([aria-pressed="true"]):hover { background: var(--help-soft); }
  .help-flow summary:hover { color: var(--help-accent); }
}
@media (max-width: 420px) {
  .help-flow .help45-cats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .help-flow .help45-head { gap: .75rem; }
  .help-flow .help45-mark { inline-size: 3rem; block-size: 3rem; border-radius: 1rem; }
}
@media (min-width: 960px) {
  .help-flow .help-flow-layout { grid-template-columns: 11.5rem minmax(0,1fr); gap: 2rem; }
  .help-flow .help45-cats { grid-template-columns: minmax(0,1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .help-flow *, .help-flow *::before, .help-flow *::after {
    transition: none !important; animation: none !important; scroll-behavior: auto !important;
  }
}
/* Acceptance still required: real UX44 stylesheet cascade, 320/390/768/1440px,
 * enlarged text, native keyboard/IME, fixed navigation focus visibility, policy
 * OFF and re-enable, no duplicated page headings, mobile device battery/heat.
 * A stylesheet file and a review harness do not prove those checks passed.
 */
/* Generated from design-system/tokens/journey.json. Do not edit. */
:root {
  --rom-journey-color-ink: #25243b;
  --rom-journey-color-surface-soft: #f2eff8;
  --rom-journey-color-paper: #ffffff;
  --rom-journey-color-border-dark: #5d566b;
  --rom-journey-color-art-fallback: #b9ddea;
  --rom-journey-color-accent-text: #d5eaaa;
  --rom-journey-color-text-on-dark: #dfdbea;
  --rom-journey-color-icon-on-dark: #454157;
  --rom-journey-color-accent: #d9ef9c;
  --rom-journey-color-muted-on-dark: #c9c3d9;
  --rom-journey-color-on-accent: #28351a;
  --rom-journey-color-surface-dark-raised: #39364c;
  --rom-journey-color-border-on-dark: #888093;
  --rom-journey-color-border: #dfdce8;
  --rom-journey-color-muted: #666177;
  --rom-journey-color-selected: #e8e1f6;
  --rom-journey-color-selected-border: #8a74b5;
  --rom-journey-color-primary: #543580;
  --rom-journey-color-selected-dark: #302943;
  --rom-journey-color-icon: #73569c;
  --rom-journey-color-success-border: #a4bc99;
  --rom-journey-color-success-surface: #fbfdf8;
  --rom-journey-color-success-soft: #e8f2dc;
  --rom-journey-color-success-text: #3d6330;
  --rom-journey-color-track: #eeebf3;
  --rom-journey-color-progress: #8064a5;
  --rom-journey-color-success: #6b914e;
  --rom-journey-color-border-strong: #c9c2d5;
  --rom-journey-color-focus: #765495;
  --rom-journey-color-shadow: #ebeadf;
  --rom-journey-color-accent-soft: #e4d9f3;
  --rom-journey-color-discovery-success: #f2f5e9;
  --rom-journey-color-success-border-soft: #dbe3c8;
}

/* UX47: shared portrait/desktop journeys. Static color and SVGs; no animated
   backdrop, blur filters, video preview or extra remote font/asset requests. */
/* Account records stay separate from the six device goals. Text can wrap;
   no card or action depends on a fixed content height. */
.goals-device-title { margin: 0 0 16px; font-size: 22px; line-height: 1.4; }
.goals-account { margin-top: 40px; padding: 24px; border: 1px solid var(--rom-journey-color-border); border-radius: 24px; background: var(--rom-journey-color-surface-soft); }
.goals-account-heading { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.goals-account-heading > div { min-width: 0; }
.goals-account-heading h2 { margin: 0; font-size: 24px; line-height: 1.4; overflow-wrap: anywhere; }
.goals-account-heading p { margin: 8px 0 0; color: var(--c-muted); line-height: 1.7; max-width: 68ch; }
.goals-account-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.goals-account-actions > .btn { min-height: 48px; max-width: 100%; padding: 12px 20px; white-space: normal; overflow-wrap: anywhere; line-height: 1.5; text-align: center; }
.goals-account-actions > .btn:focus-visible { outline: 3px solid var(--rom-journey-color-primary); outline-offset: 4px; }
.goals-account [hidden] { display: none !important; }
.goals-account [data-account-goals-status] { min-height: 1.7em; margin: 16px 0; color: var(--c-muted); line-height: 1.7; }
.goals-account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.goals-account-grid .goal-card h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.5; overflow-wrap: anywhere; }
.goals-account-grid .goal-value { margin-top: auto !important; padding-top: 20px; }
@media (max-width: 640px) {
    .goals-account { padding: 20px 16px; }
    .goals-account-heading { gap: 12px; }
    .goals-account-heading h2 { font-size: 22px; }
    .goals-account-grid { grid-template-columns: minmax(0, 1fr); }
    .goals-account-actions { flex-direction: column; align-items: stretch; }
    .goals-account-actions > .btn { width: 100%; }
}
.journey-page{--journey-ink:var(--rom-journey-color-ink);--journey-soft:var(--rom-journey-color-surface-soft);max-width:1100px;margin:auto;padding-bottom:24px}
.journey-heading{margin:24px 0}.journey-heading h1{font-size:clamp(28px,4vw,40px);line-height:1.2;letter-spacing:-.045em}.journey-heading p{margin:10px 0 0;color:var(--c-muted);line-height:1.6}
.daily-card{display:grid;grid-template-columns:1.12fr 1fr;border-radius:26px;overflow:hidden;background:var(--journey-ink);color:var(--rom-journey-color-paper);border:1px solid var(--rom-journey-color-border-dark)}
.daily-art{position:relative;min-height:360px;overflow:hidden;background:var(--rom-journey-color-art-fallback)}.daily-art>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.daily-badge{position:absolute;top:20px;left:20px;display:flex;align-items:center;gap:8px;background:var(--rom-journey-color-paper);color:var(--rom-journey-color-ink);padding:10px 14px;border-radius:24px;font-weight:750;font-size:14px}
.daily-copy{padding:34px;min-width:0}.journey-eyebrow{color:var(--rom-journey-color-accent-text);letter-spacing:.14em;font-size:11px;font-weight:800}.daily-copy h2{font-size:30px;line-height:1.3;margin:10px 0 16px;letter-spacing:-.03em}.daily-specs{display:flex;flex-wrap:wrap;gap:16px;color:var(--rom-journey-color-text-on-dark);font-size:13px}.daily-specs>span{display:inline-flex;align-items:center;gap:6px}
.daily-rule{display:flex;gap:14px;align-items:center;padding:18px 0;margin-top:10px}.daily-rule>span{display:grid;place-items:center;border-radius:16px;width:50px;height:50px;background:var(--rom-journey-color-icon-on-dark);color:var(--rom-journey-color-accent);flex-shrink:0}.daily-rule small{display:block;font-size:12px;color:var(--rom-journey-color-muted-on-dark);margin-bottom:5px}.daily-rule strong{font-size:19px}.daily-copy>p{font-size:13px;line-height:1.6;color:var(--rom-journey-color-text-on-dark);margin:0 0 20px}
.daily-actions{display:flex;flex-wrap:wrap;gap:12px}.daily-actions>.btn{flex:1;min-height:50px;white-space:normal;text-align:center}.daily-actions>.btn.primary{background:var(--rom-journey-color-accent);color:var(--rom-journey-color-on-accent);border-color:var(--rom-journey-color-accent);box-shadow:none}.daily-actions>.btn:not(.primary){background:var(--rom-journey-color-surface-dark-raised);color:var(--rom-journey-color-paper);border-color:var(--rom-journey-color-border-on-dark)}.daily-actions>.btn:focus-visible{outline:3px solid var(--rom-journey-color-paper);outline-offset:4px}.daily-copy>.daily-reset{margin:18px 0 0;font-size:12px;color:var(--rom-journey-color-muted-on-dark)}.daily-reset time{font-weight:700;color:var(--rom-journey-color-text-on-dark);margin-left:4px}
.daily-week{margin-top:20px;border:1px solid var(--rom-journey-color-border);background:var(--rom-journey-color-paper);border-radius:18px;padding:0 20px}.daily-week summary{display:flex;align-items:center;gap:10px;min-height:56px;font-weight:750;cursor:pointer}.daily-week summary::after{content:'+';font-size:22px;margin-left:auto}.daily-week[open] summary::after{content:'−'}.daily-week>p{color:var(--c-muted);font-size:13px;margin:0 0 16px;line-height:1.6}.daily-week ol{list-style:none;padding:0;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin:0 0 20px}.daily-week li{padding:12px 10px;background:var(--rom-journey-color-surface-soft);border-radius:12px;min-width:0;display:flex;flex-direction:column;gap:6px}.daily-week li>span{font-size:12px;color:var(--rom-journey-color-muted)}.daily-week li>strong{font-size:12px;line-height:1.5;overflow-wrap:anywhere}.daily-week li[aria-current]{background:var(--rom-journey-color-selected);outline:1px solid var(--rom-journey-color-selected-border)}.daily-week small{font-size:11px;font-weight:750;color:var(--rom-journey-color-primary)}
.journey-scope{font-size:13px;color:var(--c-muted);line-height:1.7;margin:20px 0 0;max-width:75ch}
.goals-overview{display:flex;gap:18px;align-items:center;background:var(--rom-journey-color-ink);color:var(--rom-journey-color-paper);border-radius:22px;padding:26px;margin-bottom:24px}.goals-emblem{width:64px;height:64px;border-radius:20px;background:var(--rom-journey-color-accent);color:var(--rom-journey-color-on-accent);display:grid;place-items:center;flex-shrink:0}.goals-overview p{font-size:13px;color:var(--rom-journey-color-muted-on-dark);margin:0 0 6px}.goals-overview strong{font-size:26px;line-height:1.3;overflow-wrap:anywhere}.goals-overview>.btn{margin-left:auto;color:var(--rom-journey-color-paper);border-color:var(--rom-journey-color-border-on-dark);background:var(--rom-journey-color-surface-dark-raised)}
.goals-filters{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:14px}.goals-filters>button{padding:10px 18px;min-height:48px;border:1px solid var(--rom-journey-color-border);border-radius:24px;background:var(--rom-journey-color-paper);color:var(--rom-journey-color-muted);font-weight:700}.goals-filters>button[aria-pressed=true]{color:var(--rom-journey-color-paper);background:var(--rom-journey-color-selected-dark);border-color:var(--rom-journey-color-selected-dark)}#goals-status{font-size:13px;line-height:1.6;color:var(--c-muted);margin:0 0 14px}#goals-retry{margin-bottom:16px}
.goals-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.goal-card{background:var(--rom-journey-color-paper);border:1px solid var(--rom-journey-color-border);border-radius:20px;padding:22px;min-width:0;display:flex;flex-direction:column}.goal-top{display:flex;gap:8px;align-items:center;justify-content:space-between;margin-bottom:20px}.goal-icon{height:48px;width:48px;display:grid;place-items:center;border-radius:16px;color:var(--rom-journey-color-icon);background:var(--rom-journey-color-surface-soft);flex-shrink:0}.goal-state{font-size:12px;font-weight:700;color:var(--rom-journey-color-muted);display:flex;align-items:center;gap:5px}.goal-card.reached{border-color:var(--rom-journey-color-success-border);background:var(--rom-journey-color-success-surface)}.goal-card.reached .goal-icon{background:var(--rom-journey-color-success-soft);color:var(--rom-journey-color-success-text)}.goal-card.reached .goal-state{color:var(--rom-journey-color-success-text)}.goal-card h2{font-size:18px;line-height:1.45;letter-spacing:-.02em;margin:0 0 6px}.goal-card>p{font-size:13px;line-height:1.6;color:var(--rom-journey-color-muted);margin:0}.goal-value{margin:20px 0 0!important;font-size:13px;line-height:1.5}.goal-value>span{display:block;text-align:right;font-variant-numeric:tabular-nums;font-weight:700;color:var(--rom-journey-color-primary)}.goal-value progress{width:100%;height:7px;appearance:none;border:0;border-radius:8px;overflow:hidden;background:var(--rom-journey-color-track);margin-top:8px;display:block}.goal-value progress::-webkit-progress-bar{background:var(--rom-journey-color-track)}.goal-value progress::-webkit-progress-value{background:var(--rom-journey-color-progress)}.goal-value progress::-moz-progress-bar{background:var(--rom-journey-color-progress)}.reached progress::-webkit-progress-value{background:var(--rom-journey-color-success)}.reached progress::-moz-progress-bar{background:var(--rom-journey-color-success)}.goal-action{display:flex;align-items:center;justify-content:space-between;min-height:48px;gap:10px;margin-top:auto;padding-top:14px;color:var(--rom-journey-color-primary);font-weight:750;font-size:13px}
.journey-empty{grid-column:1/-1;padding:32px;background:var(--rom-journey-color-paper);border:1px dashed var(--rom-journey-color-border-strong);border-radius:20px}.journey-empty h2{font-size:22px;margin:0 0 10px}.journey-empty p{color:var(--c-muted);font-size:14px;line-height:1.6}.journey-page [hidden]{display:none!important}.journey-page :is(a,button,summary):focus-visible{outline:3px solid var(--rom-journey-color-focus);outline-offset:4px}.journey-page :is(a,button,summary){scroll-margin:95px 0 105px}
/* Dark cards need a light focus ring; the default purple ring has insufficient
   contrast on the dark surface. Focus remains outside the control border. */
.journey-page :is(.daily-card,.goals-overview) :is(a,button,summary):focus-visible{outline-color:var(--rom-journey-color-accent)}
/* The discovery image remains an authentic local game capture. Text overlays
   are real text for translation and enlarged text settings. */
.discovery-page .discovery-heading{margin-bottom:22px}.discovery-page .discovery-heading h1{font-weight:850}.discovery-page .discovery-signature{border-radius:18px;transform:none;box-shadow:5px 5px 0 var(--rom-journey-color-shadow)}.discovery-page .discovery-courses button{min-height:48px}.discovery-page .discovery-game-tabs button{min-height:48px}
.discovery-journeys{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:20px}.discovery-journey{display:flex;align-items:center;gap:16px;border-radius:18px;border:1px solid var(--rom-journey-color-border);background:var(--rom-journey-color-surface-soft);padding:22px;min-width:0}.discovery-journey>span{display:grid;place-items:center;width:48px;height:48px;border-radius:16px;background:var(--rom-journey-color-accent-soft);color:var(--rom-journey-color-primary);flex-shrink:0}.discovery-journey.goals{background:var(--rom-journey-color-discovery-success);border-color:var(--rom-journey-color-success-border-soft)}.discovery-journey.goals>span{background:var(--rom-journey-color-success-soft);color:var(--rom-journey-color-success-text)}.discovery-journey>div{flex:1;min-width:0}.discovery-journey strong{display:block;font-size:16px}.discovery-journey small{display:block;color:var(--rom-journey-color-muted);font-size:12px;margin-top:6px}.discovery-explore{margin-top:30px}.discovery-explore h2{font-size:20px;margin-bottom:14px}.discovery-category-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.discovery-category{display:flex;align-items:center;justify-content:center;gap:10px;min-height:62px;background:var(--rom-journey-color-paper);border:1px solid var(--rom-journey-color-border);border-radius:16px;font-weight:750;font-size:14px;text-align:center;padding:12px;min-width:0;overflow-wrap:anywhere}.discovery-category .rom-icon{color:var(--rom-journey-color-icon);flex-shrink:0}
@media(max-width:900px){.goals-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.daily-copy{padding:26px}.daily-copy h2{font-size:26px}.daily-week ol{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:700px){.journey-heading{margin:18px 0 22px}.daily-card{grid-template-columns:1fr;border-radius:22px}.daily-art{min-height:0;height:185px}.daily-copy{padding:24px}.daily-copy h2{font-size:26px;margin-bottom:12px}.daily-rule{margin-top:5px;padding:14px 0}.daily-copy>p{margin-bottom:16px}.daily-badge{top:14px;left:14px}.goals-overview{padding:22px;gap:14px;flex-wrap:wrap}.goals-overview strong{font-size:23px}.goals-overview>.btn{margin-left:78px;min-height:48px}.goals-emblem{width:58px;height:58px}.goal-card{padding:20px}.discovery-page .discovery-visual{height:176px}.discovery-page .discovery-copy{padding:22px}.discovery-journeys{gap:10px}.discovery-journey{padding:18px 14px;gap:10px;align-items:flex-start;flex-wrap:wrap}.discovery-journey>span{width:42px;height:42px;border-radius:14px}.discovery-journey>div{flex-basis:100%}.discovery-journey>.rom-icon{margin-left:auto;align-self:center}.discovery-journey strong{font-size:15px}.discovery-journey small{line-height:1.5}.discovery-category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.discovery-category{justify-content:flex-start;min-height:60px;padding:14px}.daily-week{padding:0 16px}}
@media(max-width:460px){.goals-grid{grid-template-columns:1fr}.goal-top{margin-bottom:14px}.goal-card{padding:20px}.goal-card h2{font-size:19px}.goal-value{margin-top:14px!important}.goal-action{padding-top:12px}.goals-overview>.btn{margin-left:0}.daily-week ol{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:360px){.discovery-page .discovery-visual{height:138px}.discovery-journeys{grid-template-columns:1fr}.discovery-journey{align-items:center;flex-wrap:nowrap}.discovery-journey>div{flex-basis:auto}.daily-copy{padding:20px}.daily-actions{flex-direction:column}.daily-art{height:155px}}
@media(prefers-reduced-motion:reduce){.journey-page *, .discovery-journeys *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Retained activity is a readable summary, separate from achieved targets. */
.account-activity{margin:24px 0 30px;padding:24px;border:1px solid var(--rom-journey-color-border,#d9e1eb);border-radius:22px;background:var(--rom-journey-color-paper,#fff);min-width:0}
.activity-heading{display:flex;align-items:flex-start;gap:12px;margin-bottom:18px}
.activity-heading>div{min-width:0}.activity-heading h2{margin:0 0 6px;font-size:22px;line-height:1.4;overflow-wrap:anywhere}
.activity-heading p{margin:0;line-height:1.65;overflow-wrap:anywhere;color:var(--rom-journey-color-muted,#526278)}
.activity-emblem{display:grid;place-items:center;flex:0 0 48px;height:48px;border-radius:16px;background:#edf2fc;color:#285498}
.activity-actions{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0}
.activity-actions .btn,.activity-scope summary{min-height:48px;white-space:normal;overflow-wrap:anywhere}
.activity-actions .btn{min-width:0;padding:12px 18px;line-height:1.5}
.activity-actions .btn:focus-visible,.activity-scope summary:focus-visible{outline:3px solid #955800;outline-offset:4px}
.activity-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,175px),1fr));gap:12px;margin-top:18px}
.activity-grid[hidden]{display:none}.activity-card{min-width:0;padding:18px;border:1px solid var(--rom-journey-color-border,#d9e1eb);border-radius:16px;background:var(--rom-journey-color-background,#f7f9fc)}
.activity-icon{color:#285498}.activity-card h3{margin:10px 0;font-size:15px;line-height:1.5;overflow-wrap:anywhere}
.activity-value{margin:0;font-size:clamp(20px,2.5vw,28px);font-weight:750;line-height:1.45;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.activity-card dl{margin:0}.activity-card dl>div{display:flex;justify-content:space-between;flex-wrap:wrap;gap:4px 12px;margin:8px 0}
.activity-card dt,.activity-card dd{margin:0;overflow-wrap:anywhere;font-size:14px;line-height:1.5}.activity-card dd{font-weight:700;font-variant-numeric:tabular-nums}
.activity-scope{margin-top:18px;color:var(--rom-journey-color-muted,#526278)}.activity-scope summary{display:list-item;width:fit-content;padding:12px 0;line-height:1.5;cursor:pointer;text-decoration:underline;text-underline-offset:4px}
.activity-scope p{max-width:76ch;margin:8px 0 0;line-height:1.75;font-size:14px}
@media(max-width:540px){.account-activity{padding:20px;border-radius:18px}.activity-grid{grid-template-columns:1fr}.activity-actions .btn{width:100%}.activity-heading h2{font-size:20px}}
@media(forced-colors:active){.activity-card,.activity-emblem{border:1px solid CanvasText}.activity-actions .btn:focus-visible,.activity-scope summary:focus-visible{outline-color:Highlight}}

/* UX48: static, token-based rights hub. No image request, polling, animation,
 * sticky action or new font. Existing collection tokens own contrast and sizing. */
.privacy-center{max-width:1040px;margin:0 auto;color:var(--rom-shelf-text-primary)}
.privacy-crumb{display:flex;align-items:center;flex-wrap:wrap;gap:14px;font-size:13px;color:var(--rom-shelf-text-secondary)}
.privacy-crumb>a{display:inline-flex;align-items:center;gap:8px;min-height:var(--rom-shelf-size-touch);padding:0 8px;border-radius:var(--rom-shelf-radius-control);color:var(--rom-shelf-action-primary)}
.privacy-heading{display:flex;align-items:center;gap:18px;margin:20px 0 28px}
.privacy-heading h1{margin:0;font-size:clamp(27px,3.5vw,38px);line-height:1.25;letter-spacing:-.04em}
.privacy-heading p{margin:10px 0 0;color:var(--rom-shelf-text-secondary);font-size:16px;line-height:1.65}
.privacy-emblem{display:grid;place-items:center;width:64px;height:64px;flex-shrink:0;border-radius:20px;background:var(--rom-journey-color-accent);color:var(--rom-journey-color-on-accent)}
.privacy-spaces{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:18px;align-items:start}
.privacy-panel{min-width:0;background:var(--rom-shelf-surface-default);border:1px solid var(--rom-shelf-border-default);border-radius:var(--rom-shelf-radius-card);padding:24px}
.privacy-panel>header{display:flex;align-items:flex-start;gap:12px;margin-bottom:20px}
.privacy-panel h2,.privacy-copy-note h2{font-size:19px;line-height:1.4;margin:0}
.privacy-panel>header p{margin:8px 0 0;font-size:14px;line-height:1.7;color:var(--rom-shelf-text-secondary)}
.privacy-section-mark{display:grid;place-items:center;flex-shrink:0;width:42px;height:42px;border-radius:13px;background:var(--rom-shelf-action-selected-surface);color:var(--rom-shelf-action-primary)}
.privacy-destinations{display:grid;gap:8px}
.privacy-link{display:flex;align-items:center;gap:12px;min-height:var(--rom-shelf-size-touch);padding:12px 14px;border:1px solid var(--rom-shelf-border-default);border-radius:var(--rom-shelf-radius-control);background:var(--rom-shelf-surface-default);color:var(--rom-shelf-text-primary);font-size:15px;font-weight:700;text-decoration:none}
.privacy-link>span:not(.privacy-icon){flex:1;min-width:0;overflow-wrap:anywhere}
.privacy-icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;color:var(--rom-shelf-action-primary)}
.privacy-link:hover{background:var(--rom-shelf-action-selected-surface);border-color:var(--rom-shelf-action-selected-border)}
.privacy-center a:focus-visible{outline:3px solid var(--rom-shelf-action-primary);outline-offset:3px}
.privacy-small{margin:18px 0 0;font-size:13px;line-height:1.7;color:var(--rom-shelf-text-secondary)}
.privacy-account{background:var(--rom-journey-color-surface-soft)}
/* A separately connected personal copy has its own rights path. Keep this
 * third source visible across feature OFF and full width on desktop, so it is
 * neither mistaken for the device nor for the local community account. */
.privacy-connected{grid-column:1/-1}
.privacy-copy-note{display:flex;align-items:flex-start;gap:14px;margin-top:20px;padding:22px;border:1px solid var(--rom-shelf-border-default);border-radius:var(--rom-shelf-radius-card);background:var(--rom-shelf-surface-empty)}
.privacy-copy-note>.privacy-icon{padding-top:2px}
.privacy-copy-note p{margin:8px 0 0;font-size:14px;line-height:1.7;color:var(--rom-shelf-text-secondary)}
.privacy-help{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 0 8px}
.privacy-help>p{margin:0;font-size:13px;line-height:1.65;color:var(--rom-shelf-text-secondary)}
.privacy-help .privacy-link{flex-shrink:0}
@media(max-width:700px){.privacy-spaces{grid-template-columns:1fr}.privacy-heading{align-items:flex-start;margin:12px 0 22px;gap:12px}.privacy-emblem{width:50px;height:50px;border-radius:16px}.privacy-heading p{font-size:14px}.privacy-panel{padding:20px}.privacy-help{align-items:stretch;flex-direction:column;gap:12px}.privacy-copy-note{padding:20px}}
@media(forced-colors:active){.privacy-center a:focus-visible{outline-color:Highlight}.privacy-link,.privacy-panel,.privacy-copy-note{border-color:CanvasText}.privacy-icon{color:LinkText}}

/* UX49: small task entry first; guidance and optional note appear on demand.
 * Existing help tokens preserve contrast and avoid new fonts/media/animation. */
.help-flow .help-recovery { margin-block: 1.5rem 2rem; min-inline-size: 0; }
.help-flow .help-recovery h2 { margin: 0 0 .5rem; font-size: 1.25rem; line-height: 1.5; }
.help-flow .help-recovery-lead { margin: 0 0 1rem; color: var(--help-muted); line-height: 1.7; }
.help-flow .help-recovery-topics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .625rem; }
.help-flow .help-recovery-topics .btn { justify-content: center; }
.help-flow .help-recovery-topics .btn[aria-pressed="true"] { background: var(--help-ink); color: var(--help-on-strong); border-color: var(--help-ink); }
.help-flow .help-recovery-guidance { margin-block-start: 1rem; padding: 1.25rem; border: 1px solid var(--help-line); border-radius: 1rem; background: var(--help-soft); }
.help-flow .help-recovery h3 { margin: 0 0 .75rem; font-size: 1.125rem; line-height: 1.5; scroll-margin-block: 6rem 8rem; }
.help-flow .help-recovery ol { padding-inline-start: 1.35rem; margin: .75rem 0 1rem; color: var(--help-ink); line-height: 1.8; }
.help-flow .help-recovery li + li { margin-block-start: .5rem; }
.help-flow .help-recovery-availability { margin-block: .5rem; color: var(--help-ink); font-weight: 650; line-height: 1.7; }
.help-flow .help-recovery-note { margin-block-start: 1.25rem; border-block-start: 1px solid var(--help-line); padding-block-start: .5rem; }
.help-flow .help-recovery-note summary { display: flex; gap: .5rem; align-items: center; min-block-size: var(--help-touch); cursor: pointer; font-weight: 700; list-style: none; }
.help-flow .help-recovery-note summary::-webkit-details-marker { display: none; }
.help-flow .help-recovery-note summary > :last-child { margin-inline-start: auto; }
.help-flow .help-recovery-note p { line-height: 1.7; color: var(--help-muted); overflow-wrap: anywhere; }
.help-flow .help-recovery-note label { display: block; margin-block: 1rem .375rem; font-weight: 650; }
.help-flow .help-recovery textarea { box-sizing: border-box; inline-size: 100%; min-inline-size: 0; max-inline-size: 100%; padding: .75rem; border: 1px solid var(--help-line); border-radius: .625rem; background: var(--help-paper); color: var(--help-ink); font: inherit; line-height: 1.7; resize: vertical; scroll-margin-block: 6rem 8rem; }
.help-flow .help-recovery textarea:focus-visible { outline: 3px solid var(--help-accent); outline-offset: 3px; }
.help-flow .help-recovery-counter { font-size: .8125rem; margin-block: .25rem 0; }
.help-flow .help-recovery-note .actions { flex-wrap: wrap; gap: .5rem; margin-block-start: .75rem; }
.help-flow .help-recovery-links { flex-wrap: wrap; gap: .5rem; }
.help-flow .help-recovery-status:empty { margin: 0; }
.help-flow .help-recovery :is(p,li,h2,h3,button,a) { overflow-wrap: anywhere; }
@media (max-width: 540px) { .help-flow .help-recovery-topics { grid-template-columns: repeat(2,minmax(0,1fr)); } .help-flow .help-recovery-guidance { padding: 1rem; } }

/* A reconnect action keeps its readable label beside text, and stacks at phone width.
 * Keep hidden ownership with the existing [hidden] rule. */
.help-flow .help-flow-connection > p { min-inline-size: 0; flex: 1 1 auto; }
.help-flow .help-flow-connection > .actions { flex: 0 0 auto; }
.help-flow .help-flow-connection .btn { min-inline-size: 112px; min-block-size: 48px; white-space: nowrap; }
@media (max-width: 480px) {
 .help-flow .help-flow-connection:not([hidden]) { flex-direction: column; align-items: stretch; gap: 12px; }
 .help-flow .help-flow-connection > .actions { inline-size: 100%; margin: 0; }
 .help-flow .help-flow-connection .btn { inline-size: 100%; }
}

/* UX50: preserve existing tokens; compact status stays separate from button names.
   No background media, font downloads, animation loops or layout measurement. */
.settings-surface .settings-current{padding:5px 9px;border-radius:var(--rom-shelf-radius-control);background:var(--rom-shelf-surface-empty);color:var(--rom-shelf-text-secondary);font-size:.8rem;line-height:1.5;white-space:normal;overflow-wrap:anywhere}
.settings-surface .settings-effective{margin:0 0 12px;padding:12px 16px;border-left:3px solid var(--rom-shelf-action-primary);background:var(--rom-shelf-surface-empty);border-radius:0 10px 10px 0}
.settings-surface .settings-preference-footer{margin-top:24px;padding-top:16px;border-top:1px solid var(--rom-shelf-border-default)}
.settings-surface .settings-preference-status{min-height:2.8em;margin:0 0 12px;overflow-wrap:anywhere}
.settings-surface .settings-preference-status[data-state=temporary]{color:var(--rom-shelf-text-primary);font-weight:650}
.settings-surface .settings-reset{min-height:48px;min-width:96px;gap:8px;transition:none;transform:none}
.settings-surface .settings-reset-note{margin:8px 0 0;font-size:13px}
@media(max-width:520px){.settings-surface .settings-menu>a{gap:10px;flex-wrap:wrap}.settings-surface .settings-current{margin-left:auto}.settings-surface .settings-menu>a>span:last-child{display:none}}
@media(forced-colors:active){.settings-surface .quality-choice.selected{outline:2px solid Highlight;outline-offset:-5px}.settings-surface .settings-current{border:1px solid CanvasText}.settings-surface .settings-effective{border-color:Highlight}}

/* UX55: no external fonts, GIFs, blur filters or continuous animation. Scoped
   panels preserve the existing game HUD and all previous service styles. */
.private-vault{max-width:1040px;margin-inline:auto;padding-bottom:24px;color:var(--task-text,#25243b)}
.private-heading{display:flex;align-items:flex-start;gap:20px;margin:20px 0 26px}.private-heading h1{font-size:clamp(1.65rem,4vw,2.35rem);letter-spacing:-.04em;line-height:1.25;margin:4px 0 12px}.private-heading p:not(.hub-kicker){line-height:1.65;color:var(--task-muted,#625f75);max-width:680px}
.private-heading>.private-symbol{width:60px;height:60px;display:grid;place-items:center;border-radius:20px;background:var(--task-green-soft,#e7f3eb);color:var(--task-green,#2b7655);flex-shrink:0}
.private-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:16px}.private-toolbar p{font-size:.875rem;color:var(--task-muted,#625f75);font-variant-numeric:tabular-nums}
.private-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.private-card{padding:22px;border:1px solid var(--task-line,#e2deec);border-radius:18px;background:var(--task-surface,#fff);min-width:0}.private-card>.private-symbol{display:inline-flex;color:var(--task-accent,#6245b0);margin-bottom:14px}.private-card h3{font-size:1.1rem;margin:0 0 8px}.private-card time,.private-item-size{color:var(--task-muted,#625f75);font-size:.8125rem;line-height:1.6}.private-card-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.private-card-actions .btn{flex:1}
.private-empty{grid-column:1/-1;border:1px dashed var(--task-line,#e2deec);background:var(--task-surface,#fff);border-radius:22px;padding:32px;line-height:1.7}.private-empty>.private-symbol{display:flex;color:var(--task-accent,#6245b0);margin-bottom:14px}.private-empty h2{font-size:1.25rem;margin-bottom:8px}.private-empty p{color:var(--task-muted,#625f75);max-width:620px}.private-empty .actions{margin-top:18px}
.private-upload{padding:26px;margin-top:26px;border:1px solid var(--task-line,#e2deec);border-radius:22px;background:var(--task-surface,#fff)}.private-upload h2{font-size:1.25rem;margin:0 0 10px}.private-upload>p{line-height:1.65;color:var(--task-muted,#625f75);font-size:.925rem}
.private-picker{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin:20px 0 10px;font-weight:700}.private-picker input{display:block;max-width:100%;font-size:1rem;min-height:48px}.private-picker input::file-selector-button{min-height:48px;padding:10px 16px;border:1px solid var(--task-line,#e2deec);border-radius:12px;background:var(--task-soft,#f2eefa);color:var(--task-text,#25243b);font-weight:700;margin-right:10px;cursor:pointer}
.private-selection{overflow-wrap:anywhere}.private-consent{display:flex;align-items:flex-start;gap:12px;margin:18px 0 20px;min-height:48px;line-height:1.65;max-width:680px}.private-consent input{width:22px;height:22px;flex-shrink:0;margin-top:3px;accent-color:var(--task-accent,#6245b0)}
.private-status{background:var(--task-soft,#f2eefa);border:1px solid var(--task-line,#e2deec);border-radius:16px;padding:16px 20px;margin-bottom:20px;line-height:1.65;overflow-wrap:anywhere}.private-status[hidden]{display:none}
.private-footnote{display:flex;align-items:flex-start;gap:12px;margin-top:28px;padding:18px 20px;border-radius:16px;background:var(--task-green-soft,#e7f3eb);color:var(--task-green,#2b7655);line-height:1.7;font-size:.875rem}.private-footnote>.private-symbol{flex-shrink:0;margin-top:4px}.private-pending{color:var(--task-muted,#625f75);font-size:.875rem;margin:12px 0;line-height:1.6}
.private-vault :is(a,button,input):focus-visible{outline:3px solid var(--task-focus,#6245b0);outline-offset:3px}.private-vault .btn{min-height:48px;white-space:normal;text-align:center;line-height:1.4}.private-vault .btn:disabled{cursor:not-allowed;opacity:.6}.private-entry{margin-top:18px!important;background:var(--task-green-soft,#e7f3eb)!important}.private-entry small{display:block;margin-top:4px;color:var(--task-muted,#625f75);font-weight:400;line-height:1.6}
.discovery-guide{margin-top:22px;border:1px solid var(--task-line,#e2deec);background:var(--task-surface,#fff);border-radius:16px;padding:4px 18px}.discovery-guide summary{min-height:48px;display:flex;align-items:center;gap:10px;font-weight:700;cursor:pointer;list-style:none}.discovery-guide summary::after{content:'+';margin-left:auto;font-size:20px}.discovery-guide[open] summary::after{content:'−'}.discovery-guide ol{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:12px 0 20px;list-style:none;counter-reset:guide}.discovery-guide li{line-height:1.65;color:var(--task-muted,#625f75);font-size:.875rem}.discovery-guide li::before{counter-increment:guide;content:counter(guide);display:block;font-weight:800;color:var(--task-accent,#6245b0);margin-bottom:8px}.discovery-guide summary:focus-visible{outline:3px solid var(--task-focus,#6245b0);outline-offset:3px;border-radius:8px}
@media(max-width:760px){.private-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.private-heading{gap:14px}.private-heading>.private-symbol{width:48px;height:48px;border-radius:16px}.private-upload{padding:20px}.private-card{padding:18px}.discovery-guide ol{grid-template-columns:1fr;gap:10px}.discovery-guide li::before{display:inline;margin-right:12px}.private-empty{padding:24px}}
@media(max-width:420px){.private-grid{grid-template-columns:1fr}.private-heading>.private-symbol{display:none}.private-card-actions .btn{min-width:90px}}
@media(prefers-reduced-motion:reduce){.private-vault *, .discovery-guide *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* A localized label replaces browser-language file-button text. The native
   input stays keyboard/screen-reader accessible and still invokes the OS picker. */
.private-picker{position:relative;cursor:pointer;width:fit-content}.private-picker input.private-native-picker{position:absolute;width:1px;height:1px;min-height:0;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.private-picker:focus-within{outline:3px solid var(--task-focus,#6245b0);outline-offset:4px;border-radius:12px}.private-picker:has(input:disabled){opacity:.6;cursor:not-allowed}

/* UX58: a compact library first, one explicit add-file task second. Native
   buttons expose pressed state; these are filters, not incomplete ARIA tabs. */
.private-vault [hidden]{display:none!important}
.private-views{display:flex;gap:8px;flex-wrap:wrap;padding:6px;background:var(--task-soft,#f2eefa);border-radius:18px;margin-bottom:24px;width:fit-content;max-width:100%}
.private-views .btn{border-color:transparent;background:transparent;box-shadow:none;min-width:130px}
.private-views .btn[aria-pressed="true"]{background:var(--task-surface,#fff);border-color:var(--task-line,#e2deec);color:var(--task-accent,#6245b0)}
.private-vault .btn .private-symbol{display:inline-flex;flex-shrink:0}.private-vault .btn svg{width:19px;height:19px}
.private-capacity{min-width:0;flex:1;max-width:460px}.private-capacity p{margin:3px 0;font-size:.82rem}.private-capacity p:first-child{font-weight:700;color:var(--task-text,#25243b)}
.private-capacity meter{display:block;width:100%;height:13px;margin-top:9px;accent-color:var(--task-accent,#6245b0)}
.private-filters{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 20px}.private-filters .btn{font-size:.875rem;gap:7px;padding:8px 12px;min-height:44px;border-radius:13px;background:var(--task-surface,#fff)}
.private-filters .btn[aria-pressed="true"]{border-color:var(--task-accent,#6245b0);color:var(--task-accent,#6245b0);background:var(--task-soft,#f2eefa)}
.private-filter-count{font-size:.75rem;font-weight:600;min-width:18px;border-radius:7px;background:var(--task-soft,#f2eefa);padding:2px 3px;color:var(--task-muted,#625f75)}
.private-collection>h2{font-size:1.125rem;margin:24px 0 12px}.private-empty h3{font-size:1.16rem;margin:0 0 8px}
.private-readonly{display:flex;align-items:flex-start;gap:10px;background:var(--task-green-soft,#e7f3eb);border-radius:14px;padding:15px;margin:18px 0;line-height:1.65;font-size:.875rem;color:var(--task-green,#2b7655)}.private-readonly p{margin:0}.private-readonly .private-symbol{flex-shrink:0;display:inline-flex}
.private-cleanup-note{font-size:.8125rem;line-height:1.6;color:var(--task-muted,#625f75);margin:0 0 16px}.private-add-back{margin-top:16px}
.private-upload{margin-top:8px}.private-upload>.btn.primary{min-width:132px}
@media(max-width:420px){.private-views{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;box-sizing:border-box}.private-views .btn{min-width:0;padding:10px}.private-toolbar{gap:10px}.private-toolbar>.btn{padding:10px}.private-filters{gap:6px}.private-filters .btn{padding:8px 10px;font-size:.8rem}.private-card-actions .btn{gap:7px}}
@media(forced-colors:active){.private-views .btn[aria-pressed="true"],.private-filters .btn[aria-pressed="true"]{border:2px solid Highlight}}

/* UX57: bounded, motion-free rule choices. Native radio semantics + visible focus. */
.rule-picker{max-width:1120px;margin:0 auto;padding:8px 0 32px}.rule-breadcrumb{margin-bottom:22px}.rule-heading{display:flex;gap:16px;align-items:center;margin-bottom:26px}.rule-heading h1{font-size:clamp(26px,4vw,40px);margin:0 0 8px;letter-spacing:-.04em}.rule-heading p{margin:0;line-height:1.6;color:var(--muted,#b4adc7)}.rule-mark{display:grid;place-items:center;width:58px;height:58px;background:#eee7fc;border:1px solid #d7c8f1;border-radius:20px;color:#7250a4;flex:none}.rule-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:28px}.rule-options fieldset{border:0;padding:0;margin:0 0 26px;min-width:0}.rule-options legend{font-size:14px;font-weight:700;margin-bottom:14px;color:#625970}.rule-buttons{display:grid;grid-template-columns:1fr 1fr;gap:12px}.rule-option,.rule-course{position:relative;display:block;cursor:pointer}.rule-option input,.rule-course input{position:absolute;opacity:0;width:1px;height:1px}.rule-option>span{min-height:86px;border:1px solid #d9d1e6;border-radius:18px;background:#fff;color:#29233e;display:flex;align-items:center;padding:18px 14px;gap:10px}.rule-option strong{font-size:15px;font-weight:650}.rule-option svg{flex:none;color:#7452a5}.rule-check{margin-left:auto;visibility:hidden;color:#276d55}.rule-option input:checked+span,.rule-course input:checked+span{background:#e5f5ee;border-color:#438d70}.rule-option input:checked+span .rule-check{visibility:visible}.rule-option input:focus-visible+span,.rule-course input:focus-visible+span{outline:3px solid #d6c2ff;outline-offset:4px}.rule-courses{display:flex;gap:10px;flex-wrap:wrap}.rule-course>span{min-height:48px;border:1px solid #d9d1e6;border-radius:24px;display:flex;align-items:center;gap:8px;padding:12px 18px;background:#fff;color:#29233e;font-size:14px}.rule-preview{border:1px solid #d9d1e6;border-radius:24px;overflow:hidden;background:#fff;color:#29233e;align-self:start}.rule-scene{aspect-ratio:16/9;background:#302541;overflow:hidden}.rule-scene img{height:100%;width:100%;object-fit:cover;display:block}.rule-preview-copy{padding:24px}.rule-eyebrow{font-size:12px;color:#6c627d}.rule-preview h2{color:#29233e;font-size:25px;margin:9px 0}.rule-preview p{line-height:1.6}.rule-scope{font-size:13px;color:#645b74}.rule-preview #rule-play{width:100%;min-height:50px;justify-content:center;margin:10px 0 0}.rule-note{font-size:12px;color:#6a607a}.rule-error{padding:14px}.rule-preview #rule-remix{color:#674492;font-size:13px;padding-left:0}@media(max-width:720px){.rule-layout{grid-template-columns:1fr;gap:0}.rule-heading{align-items:flex-start;gap:12px}.rule-mark{width:48px;height:48px;border-radius:16px}.rule-option>span{min-height:78px;padding:14px 12px}.rule-preview-copy{padding:20px}.rule-heading p{font-size:14px}.rule-buttons{gap:10px}}@media(prefers-reduced-motion:reduce){.rule-picker *{animation:none!important;transition:none!important}}

/* UX60: a calm, portrait-first personal result. Reuses existing artwork/tokens.
   Scope keeps older collections, editor dialogs and game HUDs unchanged. */
.record-review{max-width:1080px;margin-inline:auto;}
.record-review .record-detail{grid-template-columns:minmax(220px,.8fr) minmax(0,1.2fr);gap:0;align-items:start;box-shadow:0 10px 32px #29234308;}
.record-review .record-art{position:relative;min-height:320px;height:100%;max-height:720px;border-radius:0;overflow:hidden;}
.record-review .record-art img{object-fit:cover;}
.record-review .record-art-label{position:absolute;inset:auto 16px 16px auto;display:flex;align-items:center;gap:6px;background:#fff;color:#403856;border:1px solid #ded9e8;padding:8px 12px;border-radius:100px;font-size:12px;font-weight:700;}
.record-review .record-copy{padding:28px;min-width:0;}
.record-review .record-kicker{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;font-size:12px;font-weight:700;color:#685d78;}
.record-review .record-outcome{display:flex;align-items:center;gap:6px;color:#3d665a;background:#edf5f1;border-radius:100px;padding:6px 10px;}
.record-review .record-copy h1{font-size:clamp(23px,2.5vw,32px);line-height:1.3;letter-spacing:-.03em;margin:16px 0 8px;overflow-wrap:anywhere;}
.record-review .record-date{font-size:13px;color:#665d72;margin:0 0 22px;}
.record-review .record-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 22px;}
.record-review .record-metrics>div{padding:14px 16px;border:1px solid #e4dfec;border-radius:15px;background:#faf9fc;}
.record-review .record-metrics dt{font-size:12px;line-height:1.5;color:#62596f;}
.record-review .record-metrics dd{margin:7px 0 0;font-size:26px;font-weight:800;line-height:1.2;font-variant-numeric:tabular-nums;color:#30253f;}
.record-review .record-metrics dd small{font-size:13px;margin-inline-start:4px;font-weight:500;}
.record-review .record-main-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.record-review .record-main-actions:has(> :only-child){grid-template-columns:1fr;}
.record-review .btn,.record-review .record-disclosure{min-height:48px;height:auto;white-space:normal;line-height:1.45;gap:8px;font-size:14px;overflow-wrap:anywhere;box-sizing:border-box;justify-content:center;}
.record-review .record-friend{width:100%;background:#edf5f1;border-color:#bbdace;color:#254f43;margin-top:10px;}
.record-review .record-private-note{display:flex;gap:8px;align-items:flex-start;font-size:12px;line-height:1.65;color:#655c70;margin:16px 0 22px;}
.record-review .record-private-note>svg{flex:none;margin-top:2px;}
.record-review .record-comparison{border:1px solid #ddd5e9;border-radius:16px;overflow:hidden;}
.record-review .record-disclosure{display:flex;align-items:center;width:100%;border:0;padding:15px 16px;background:#f7f4fc;color:#493861;text-align:start;font-weight:750;cursor:pointer;}
.record-review .record-disclosure>span{flex:1;}
.record-review .record-disclosure[aria-expanded=true]>svg:last-child{transform:rotate(180deg);}
.record-review #record-comparison-content{padding:0 16px 16px;}
.record-review #record-comparison-content>p{font-size:13px;line-height:1.65;color:#655c70;margin:15px 0;}
.record-review .record-compare-head{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding-inline-start:40%;font-size:12px;color:#675e73;text-align:center;margin-bottom:4px;}
.record-review .record-compare-grid{margin:0;}
.record-review .record-compare-grid>div{display:grid;grid-template-columns:40% 1fr;align-items:center;gap:8px;border-bottom:1px solid #e9e3ef;padding:10px 0;}
.record-review .record-compare-grid dt{font-size:13px;color:#5d5369;overflow-wrap:anywhere;}
.record-review .record-compare-grid dd{margin:0;display:grid;grid-template-columns:1fr 20px 1fr;gap:3px;text-align:center;font-size:17px;font-variant-numeric:tabular-nums;color:#40334f;}
.record-review .record-previous{width:100%;justify-content:space-between;text-align:start;}
.record-review .record-previous span{flex:1;}
.record-review .record-previous small{display:block;font-size:11px;font-weight:500;margin-top:4px;}
.record-review .record-management{margin-top:22px;border-top:1px solid #e8e1ef;padding-top:4px;}
.record-review .record-management .actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.record-review .record-management p{font-size:12px;line-height:1.65;color:#6c5f75;margin:12px 0 0;}
.record-review #activity-action-state:empty{display:none;}
.record-review [hidden]{display:none!important;}
.record-review :focus-visible{outline:3px solid #6342ad;outline-offset:3px;}
@media(max-width:800px){.record-review .record-detail{grid-template-columns:1fr;}.record-review .record-art{min-height:0;height:130px;}.record-review .record-art img{object-position:center 48%;}.record-review .record-copy{padding:22px;}.record-review .record-metrics{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:360px){.record-review .record-copy{padding:16px;}.record-review .record-metrics>div{padding:12px;}.record-review .record-metrics dd{font-size:23px;}.record-review .record-art{height:100px;}.record-review .record-compare-head{padding-inline-start:30%;}.record-review .record-compare-grid>div{grid-template-columns:30% 1fr;}}
@media(prefers-reduced-motion:reduce){.record-review *{animation:none!important;transition:none!important;scroll-behavior:auto!important;}}
@media(forced-colors:active){.record-review .record-comparison,.record-review .record-metrics>div{border-color:CanvasText;}.record-review svg{forced-color-adjust:auto;}.record-review :focus-visible{outline-color:Highlight;}}

.record-review .record-practice-note{font-size:12px;line-height:1.65;color:#62596f;margin:-8px 0 20px;}

.record-review a,.record-review button{scroll-margin-block:100px;}
.record-review .record-disclosure:focus-visible{outline-offset:-4px;}

/* UX62: portrait-first, static vector illustration; no loops, blur or new fonts. */
.connection-center{max-width:760px;margin:auto;padding:0 0 32px;overflow-wrap:anywhere}
.connection-heading{margin:20px 0}.connection-heading h1{font-size:clamp(28px,5vw,38px);margin:6px 0 10px}.connection-heading p{line-height:1.6}
.connection-panel{display:grid;gap:16px;justify-items:center;text-align:center;border:1px solid var(--line,#d4d9e1);border-radius:28px;padding:32px 24px;background:var(--surface,#fff)}
.connection-art{width:160px;height:120px;position:relative;display:grid;place-items:center;background:#e9f8f5;border-radius:36px 52px 28px 54px;color:#0b5e56;margin:6px auto}
.connection-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}.connection-art>.connection-icon:nth-child(2){position:absolute;right:14px;bottom:6px;border:5px solid #fff;background:#d8f2ae;border-radius:20px;padding:8px}.connection-art>.connection-icon:nth-child(3){position:absolute;left:6px;top:10px;color:#705618}
.connection-status h2{font-size:24px;line-height:1.4;margin:0 0 12px}.connection-status p{max-width:440px;margin:0;line-height:1.65}
.connection-message{max-width:440px;margin:0;line-height:1.65}.connection-message:empty{display:none}
.connection-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;width:100%}.connection-actions .btn{min-height:48px;display:inline-flex;gap:8px;justify-content:center;align-items:center;white-space:normal}
.connection-help{margin-top:16px;border:1px solid var(--line,#d4d9e1);border-radius:20px;padding:14px 20px}.connection-help summary{cursor:pointer;min-height:44px;display:list-item;align-content:center;font-weight:700}.connection-help p{line-height:1.7;margin:10px 0}
.connection-center :focus-visible{outline:3px solid #00685d;outline-offset:4px;scroll-margin-block:100px}.connection-status h2:focus{outline:none}
.private-connection-link{display:inline-flex;margin-top:8px;gap:8px;min-height:44px;align-items:center}
@media(max-width:380px){.connection-panel{padding:24px 16px}.connection-actions{flex-direction:column}.connection-actions .btn{width:100%}.connection-art{height:100px;width:142px}}
@media(prefers-reduced-motion:reduce){.connection-center *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* UX68: service choices use the same icon + short word pattern on phone and PC.
 * Keep this focused layer separate from the historical, large public.css file.
 * Icons remain vector-only; all translated words are separate DOM text.
 */
.service-action-group{margin-top:22px}
.service-action-group h2{font-size:16px;margin-bottom:10px}
.service-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.service-action-choice{display:grid;grid-template-columns:38px minmax(0,1fr) 16px;align-items:center;gap:11px;min-width:0;min-height:72px;width:100%;padding:10px 12px;border:1px solid #d9d0e9;border-radius:15px;background:#fff;text-align:left;box-shadow:0 3px 10px #2924380b;transition:background .15s,border-color .15s,transform .15s}
.service-action-choice:hover{background:#f6f2ff;border-color:#a589e6}
.service-action-choice:active{transform:translateY(1px)}
.service-action-choice:first-child{border-color:#ad98df;background:#f5f1ff}
.service-action-choice .choice-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#ebe3ff;color:#6342bb}
.service-action-choice .choice-text{display:block;min-width:0}
.service-action-choice strong{display:block;font-size:14px;line-height:1.35;overflow-wrap:anywhere}
.service-action-choice small{display:block;margin-top:3px;color:var(--muted);font-size:12px;line-height:1.3}
.service-action-choice>.rom-icon{color:#7956b6}
.service-action-choice:focus-visible{outline:3px solid var(--focus);outline-offset:3px}

/* Preview updates one dialog body, so its owner and return focus stay stable. */
.action-preview-head{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.action-preview-head .icon-tile{width:44px;height:44px;border-radius:14px}
.action-preview-head p{margin:0!important;font-size:12px!important}
.action-preview-step{font-size:12px;font-weight:750;color:#6342bb;margin-bottom:7px}
.action-preview-body h3{font-size:20px;margin-bottom:10px}
.action-preview-body h3:focus{outline:none}
.action-preview-body .preview-lead{font-size:14px;line-height:1.6}
.action-preview-needs{display:grid;gap:8px;margin:14px 0 20px;padding:0;list-style:none}
.action-preview-needs li{padding:10px 12px;border-radius:10px;background:#f4f0fc;color:var(--ink);font-size:13px}
.action-preview-outcome{padding:14px;border-radius:12px;background:#f5f0ff;color:var(--ink)!important;font-size:14px!important}
.action-preview-actions{display:flex;align-items:center;gap:10px;margin-top:18px}
.action-preview-actions .btn{min-height:44px}

/* Service cards are choices, not tiny editorial panels. At phone width one
 * full-row card preserves a readable name and a reliable touch target. */
#service-cards .service-card.compact-service{display:grid;grid-template-columns:44px minmax(0,1fr) 18px;grid-template-rows:auto auto;align-content:center;align-items:center;column-gap:12px;row-gap:2px;min-height:94px;padding:15px;border-radius:17px}
#service-cards .compact-service .icon-tile{grid-column:1;grid-row:1 / span 2;width:44px;height:44px;border-radius:13px}
#service-cards .compact-service h3{grid-column:2;grid-row:1;min-width:0;margin:0;font-size:16px;line-height:1.3;overflow-wrap:anywhere}
#service-cards .compact-service .badge{grid-column:2;grid-row:2;justify-self:start;font-size:11px}
#service-cards .compact-service .service-arrow{grid-column:3;grid-row:1 / span 2}
#service-cards .compact-service:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
@media(max-width:1050px){.service-action-grid{grid-template-columns:minmax(0,1fr)}}
/* On a portrait screen the service name and choices appear before decorative art.
 * This keeps the first meaningful action within reach without loading more media. */
@media(max-width:760px){.detail-copy{order:0}.detail-art{order:1;height:120px}}
@media(max-width:680px){#service-cards.service-grid{grid-template-columns:minmax(0,1fr)}.service-action-choice{min-height:68px}}
@media(max-width:390px){#service-cards .service-card.compact-service{min-height:88px}.service-action-choice strong{font-size:14px}.service-action-choice small{font-size:12px}}
@media(prefers-reduced-motion:reduce){.service-action-choice{transition:none}}

/* Native choice controls share the product scale. Keep labels as text and let
 * rows grow at large font sizes; no animation, media or background work. */
.notification-choices {
    inline-size: min(100%, 47.5rem);
    min-inline-size: 0;
    margin-inline: auto;
    padding-block: .75rem 2rem;
    font-size: 1rem;
    line-height: 1.65;
}

.nc-heading {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-block: 1.5rem;
}

.nc-heading > div { min-inline-size: 0; }
.nc-heading h1 { margin-block: 0 .5rem; font-size: clamp(1.5rem, 4.5vw, 2rem); }
.nc-heading p { margin: 0; color: var(--muted); overflow-wrap: anywhere; }

.nc-emblem {
    display: grid;
    place-items: center;
    inline-size: 3.5rem;
    block-size: 3.5rem;
    flex: 0 0 3.5rem;
    border-radius: 1.125rem;
    background: var(--lilac, #eee7ff);
    color: var(--violet, #7451d8);
}

.nc-panel, .nc-delivery, .nc-history {
    min-inline-size: 0;
    margin-block: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--line, #e7e3ed);
    border-radius: 1.25rem;
    background: var(--surface, #fff);
}

.nc-panel fieldset { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.nc-panel legend { padding-block: 0 .75rem; font-size: 1.125rem; font-weight: 700; }
.nc-option { padding-block: 1rem; border-block-start: 1px solid var(--line, #e7e3ed); }
.nc-option label { display: flex; align-items: center; gap: .75rem; min-block-size: 3rem; cursor: pointer; }
.nc-option strong { flex: 1; min-inline-size: 0; font-size: 1rem; overflow-wrap: anywhere; }
.nc-option input { inline-size: 1.5rem; block-size: 1.5rem; flex: 0 0 1.5rem; margin: .625rem 0; accent-color: var(--violet, #7451d8); }
.nc-option-mark { display: grid; place-items: center; inline-size: 2.5rem; block-size: 2.5rem; flex: 0 0 2.5rem; }
.nc-option p { padding-inline-start: 3.25rem; }
.nc-option p, .nc-note, .nc-delivery p { margin-block: .5rem; color: var(--muted); overflow-wrap: anywhere; }
.nc-notice { padding: .75rem 1rem; border-radius: .875rem; background: var(--lilac, #eee7ff); overflow-wrap: anywhere; }

.nc-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
    margin-block-start: 1.5rem;
}

.notification-choices .nc-actions .btn {
    inline-size: 100%;
    min-inline-size: 0;
    min-height: 48px;
    min-block-size: 3rem;
    font-size: 1rem;
    line-height: 1.5;
    white-space: normal;
    overflow-wrap: anywhere;
}

.nc-panel [role=status] { min-block-size: 1.65em; margin-block: 1rem 0; overflow-wrap: anywhere; }
.nc-delivery { background: var(--lilac, #eee7ff); }
.nc-delivery h2, .nc-history h2 { margin-block: 0 .75rem; font-size: 1.125rem; }
.nc-history ol { margin: 0; padding: 0; list-style: none; }
.nc-history li { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: .75rem; padding-block: 1rem; border-block-start: 1px solid var(--line, #e7e3ed); }
.nc-history li > * { min-inline-size: 0; overflow-wrap: anywhere; }
.nc-history time { color: var(--muted); font-size: .9375rem; }
.notification-choices [hidden] { display: none !important; }
.notification-choices :is(button, a, input):focus-visible { outline: 3px solid var(--focus, #7956db); outline-offset: 4px; }

@media (max-width: 30rem) {
    .nc-panel, .nc-delivery, .nc-history { padding: 1rem; }
    .nc-heading { gap: .75rem; }
    .nc-option p { padding-inline-start: 0; }
    .nc-actions, .nc-history li { grid-template-columns: minmax(0, 1fr); }
}

@media (forced-colors: active) {
    .nc-panel, .nc-delivery, .nc-history { border-color: CanvasText; }
    .nc-emblem, .nc-delivery, .nc-notice { color: CanvasText; background: Canvas; }
}

/* UX70 portrait base, explicit controls, static artwork, no continuous animation. */
.candidate-space{max-width:1000px;margin:auto;min-width:0;padding-bottom:32px}
.cn-heading{display:flex;align-items:center;gap:16px;margin:24px 0}.cn-heading h1{font-size:clamp(24px,4vw,34px)}.cn-heading p{color:var(--muted);margin-top:6px}
.cn-emblem{display:grid;place-items:center;flex-shrink:0;width:64px;height:64px;border-radius:22px;color:var(--deep);background:var(--lilac);box-shadow:inset 0 2px 0 #fff}
.cn-tabs,.cn-actions{display:flex;flex-wrap:wrap;gap:10px}.cn-tabs{margin:20px 0}.candidate-space .btn,.cn-season select{min-height:48px}.cn-tabs .btn{flex:1;min-width:0}.cn-tabs [aria-current=page]{border-color:var(--violet)}
.cn-season,.cn-choice{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);margin:16px 0}
.cn-season h2{font-size:22px;margin:10px 0}.cn-season p,.cn-note,.cn-author{color:var(--muted);font-size:14px}.cn-season-label{display:grid;gap:5px;min-width:0;max-width:240px}.cn-season select{width:100%;min-width:0;padding:8px;border:1px solid var(--line);border-radius:12px;background:white}
.cn-choice{background:var(--lilac);border-color:#d8cbf6}.cn-choice h2{font-size:15px}.cn-choice p{margin-top:4px;font-weight:750}.cn-choice .btn{flex-shrink:0}
.cn-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:18px 0}.cn-card{display:flex;gap:16px;align-items:flex-start;padding:18px;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);min-width:0;box-shadow:var(--shadow)}
.cn-art{display:grid;place-items:center;align-self:start;flex:0 0 112px;width:112px;min-height:112px;border-radius:16px;background:#f4f1fa;overflow:hidden}.cn-art img{display:block;width:112px;height:112px;object-fit:contain}.cn-art-placeholder{color:var(--muted)}.cn-image-note{padding:10px;color:var(--muted);font-size:12px}
.cn-card-copy{display:grid;gap:10px;min-width:0;flex:1}.cn-card h2{font-size:18px;overflow-wrap:anywhere}.cn-card p{overflow-wrap:anywhere}.cn-card-meta{display:flex;gap:8px;flex-wrap:wrap;align-items:center;font-size:13px;color:var(--muted)}.cn-card-copy>.btn{justify-self:stretch}
.cn-panel,.cn-empty{padding:24px;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);margin:16px 0}.cn-empty{text-align:center;grid-column:1/-1}.cn-empty-art{display:block;max-width:177px;margin:0 auto 16px}.cn-empty h2{font-size:23px;margin-bottom:10px}.cn-empty p{color:var(--muted);max-width:460px;margin:0 auto 18px}.cn-empty .cn-actions{justify-content:center}
.cn-panel fieldset{border:0;padding:0;margin:0}.cn-panel legend{font-size:20px;font-weight:800;margin-bottom:14px}.cn-work-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.cn-work{display:grid;grid-template-columns:64px minmax(0,1fr) 24px;align-items:center;gap:10px;padding:14px;border:1px solid var(--line);border-radius:16px;cursor:pointer;min-width:0}.cn-work .cn-art{width:64px;min-height:64px;flex-basis:64px}.cn-work img{width:64px;height:64px}.cn-work:has(input:checked){border-color:var(--violet);background:var(--lilac)}
.cn-consent{display:flex;align-items:flex-start;gap:12px;margin:20px 0 8px;padding:12px 0;min-height:48px}.cn-work input,.cn-consent input{width:24px;height:24px;flex-shrink:0;accent-color:var(--violet);margin:0}.cn-panel .cn-note{margin:12px 0}.cn-panel>[type=submit]{margin-top:16px}.cn-notice{padding:16px;border-radius:14px;background:#fff8e9;color:#795e24;margin:16px 0}.cn-guest{display:flex;gap:16px;align-items:center;justify-content:space-between;padding:18px;border:1px dashed var(--line);border-radius:16px;margin:16px 0}#cn-status{min-height:28px;margin:12px 0;overflow-wrap:anywhere}
.candidate-space [hidden]{display:none!important}
/* Skip offscreen card layout/paint where supported. Native semantics, focus
   and text remain in the document; this is not a device battery claim. */
@supports(content-visibility:auto){.cn-card{content-visibility:auto;contain-intrinsic-size:auto 320px}}
@media(max-width:760px){.cn-grid,.cn-work-list{grid-template-columns:minmax(0,1fr)}.cn-season{align-items:stretch;flex-direction:column;gap:12px}.cn-season-label{max-width:none}.cn-season select{font-size:16px}.cn-panel,.cn-empty{padding:20px}.cn-tabs{gap:6px}.cn-tabs .btn{padding:10px 8px;gap:7px}.cn-card{padding:16px}.cn-choice{flex-wrap:wrap}.cn-guest{align-items:stretch;flex-direction:column}}
@media(max-width:380px){.cn-art{width:80px;min-height:80px;flex-basis:80px}.cn-art img{width:80px;height:80px}.cn-card{gap:12px}.cn-heading{gap:12px}.cn-emblem{width:48px;height:48px;border-radius:16px}.cn-tabs .rom-icon{width:14px;height:14px}.cn-card h2{font-size:17px}}
/* UX79: readable supporting copy and current controls. Whole artwork and native
   radio/checkbox semantics are retained; hidden identity proof is explicit. */
.candidate-space{font-size:1rem;line-height:1.65}
.candidate-space :is(.cn-note,.cn-author,.cn-season p,.cn-card-meta,.cn-image-note){font-size:.9375rem;line-height:1.65}
.candidate-space :is(.cn-tabs,.cn-actions){gap:.625rem}
.candidate-space .cn-season{flex-wrap:wrap}.candidate-space .cn-season-label{max-inline-size:100%}
.candidate-space .cn-panel fieldset{min-inline-size:0}
.candidate-space .cn-tabs [aria-current=page]{text-decoration:underline;text-decoration-thickness:.125rem;text-underline-offset:.22em}
.candidate-space :is(a,button,input,select):focus-visible{outline:3px solid var(--focus,#276486);outline-offset:4px}
@media(forced-colors:active){.candidate-space :is(.cn-card,.cn-panel,.cn-work,.cn-choice,.cn-season){border-color:CanvasText;background:Canvas;color:CanvasText}.cn-work:has(input:checked){outline:2px solid Highlight}.cn-art{background:Canvas}}

/* Portrait first; desktop keeps readable width rather than stretching gameplay. */
.season-space{max-width:940px;margin:auto;padding:clamp(16px,3vw,28px);color:var(--text,#243a46)}
.sp-heading{display:flex;gap:16px;align-items:center;margin:22px 0}.sp-heading>span{display:grid;place-items:center;background:#e6f3ed;border-radius:24px;width:64px;height:64px;flex-shrink:0}.sp-heading h1{margin:0}.sp-heading p{margin:8px 0 0;color:#536670}
.sp-tabs,.sp-actions{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}.sp-period{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;padding:20px;border:1px solid #dbe5e3;border-radius:22px;background:#fff}.sp-period h2{margin:10px 0}.sp-period select{width:100%;min-height:44px;max-width:280px}.sp-period label{display:grid;gap:6px}
.sp-note{font-size:.91rem;color:#536670;line-height:1.6}.sp-start,.sp-empty,.sp-result{padding:clamp(20px,4vw,36px);border-radius:24px;background:#f5f9f5;margin:20px 0}.sp-start{max-width:620px;margin:24px auto}.sp-scene-mark{background:linear-gradient(135deg,#dceee6,#e4e8f8);border-radius:24px;display:grid;place-items:center;width:92px;height:92px;color:#3c6b68}.sp-consent{display:flex;gap:12px;align-items:center}.sp-consent input{width:22px;height:22px;flex-shrink:0}
.sp-ranking{list-style:none;padding:0}.sp-ranking li{display:flex;gap:18px;align-items:center;padding:18px;border-bottom:1px solid #e1e8e5}.sp-ranking li>div{flex:1;min-width:0;overflow-wrap:anywhere}.sp-ranking span{display:block;color:#536670;font-size:.88rem}.sp-place{min-width:30px;font-size:1.3rem}.sp-ranking p{font-size:.9rem}.sp-achievements{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}.sp-achievement{display:grid;gap:8px;padding:18px;background:#f1f4f2;border:1px solid #dde5df;border-radius:18px;color:#536670}.sp-achievement.earned{background:#e7f4ed;color:#245b42}.sp-achievement span{font-size:.87rem}.sp-records article{display:flex;flex-wrap:wrap;gap:14px;justify-content:space-between;border:1px solid #dbe5e3;border-radius:20px;padding:20px;margin:12px 0;background:#fff}.sp-records p{font-size:.9rem}
.sp-game{max-width:580px;margin:18px auto}.sp-game canvas{display:block;width:100%;height:clamp(260px,50vh,500px);border-radius:24px;background:#dceee6}.sp-hud{font-variant-numeric:tabular-nums;font-weight:700;min-height:24px}.sp-controls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;touch-action:none}.sp-controls button{min-height:56px;display:flex;flex-direction:column;gap:6px;user-select:none;touch-action:none;padding:10px 4px}.sp-controls [data-sp-mask="4"] svg{transform:rotate(-90deg)}.sp-controls [data-sp-mask="8"] svg{transform:rotate(90deg)}.sp-result{text-align:center}.sp-result .sp-actions{justify-content:center}.season-space [hidden]{display:none!important}.season-space .btn{min-height:44px}.season-space #sp-status{min-height:24px;line-height:1.6;overflow-wrap:anywhere}
@media(max-width:540px){.sp-achievements{gap:6px}.sp-achievement{padding:12px 8px;font-size:.88rem}.sp-ranking li{gap:10px;flex-wrap:wrap}.sp-ranking p{width:100%;margin:4px 0 0 40px}.sp-heading>span{width:52px;height:52px}.sp-tabs .btn{flex:1;justify-content:center}}

/* UX71 product typography. Real system fonts; no missing Pretendard/SUIT claim,
 * remote font call, tracking, font download or canvas text baked into artwork.
 * 16px body / 15px control / 13px supporting text; respect browser zoom.
 */
:root{--font:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Apple SD Gothic Neo","Malgun Gothic",sans-serif;--ink:#232c3c;--muted:#596476;--line:#dfe4e8;--bg:#f6f7f5;--paper:#fff;--violet:#6750c4;--deep:#493599;--lilac:#eeeaf9;--focus:#5841b3;--radius:24px;--shadow:0 6px 22px #23314608}
body{font-size:16px;line-height:1.55;letter-spacing:-.012em}h1,h2,h3{letter-spacing:-.028em;line-height:1.3}h1{font-size:clamp(28px,3.3vw,42px)}.btn{font-size:15px;line-height:1.4;font-weight:650;padding:12px 18px;min-height:48px;border-radius:14px}.small,.overline{font-size:13px;line-height:1.5}.notice,.badge{font-size:13px}.searchbox input,.field input,.field select,.field textarea{font-size:16px}.icon-tile{box-shadow:none;background:var(--lilac);color:var(--deep)}.icon-tile.mint{background:#e6f2ea;color:#28644e}.icon-tile.pink{background:#faeaf0;color:#9c426c}.icon-tile.amber{background:#fff0d4;color:#78551f}.icon-tile.blue{background:#e5eef8;color:#355f8a}.icon-tile .rom-icon{filter:none}.brand-symbol{transform:none;box-shadow:none;border-radius:14px}.brand-copy small{font-size:10px}.player-header .header-context{font-size:14px}.player-header .actions{gap:6px}.rom-dialog .dialog-body{font-size:16px}.dialog-body p{font-size:15px}
.rom-product-home{max-width:1100px;margin:auto;padding:12px 0 32px}.rom-product-home .discovery-heading{margin:8px 0 22px;align-items:flex-start}.rom-product-home .discovery-heading h1{font-size:clamp(30px,4vw,46px);margin:8px 0 10px}.rom-product-home .discovery-heading p{font-size:16px;line-height:1.6;max-width:560px}.rom-product-home .product-eyebrow{font-size:12px;font-weight:750;letter-spacing:.1em;color:var(--deep)}.product-purpose{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0 26px;max-width:580px}.product-purpose a{display:flex;align-items:center;justify-content:center;gap:10px;min-height:54px;padding:12px;border-radius:17px;background:white;border:1px solid var(--line);font-weight:650}.product-purpose a.selected{background:var(--ink);color:white;border-color:var(--ink)}
.rom-product-home .discovery-game-tabs{margin-bottom:14px;gap:8px}.rom-product-home .discovery-game-tabs button{min-height:48px;padding:12px 18px;border-radius:14px;font-size:15px}.rom-product-home .discovery-featured{display:grid;grid-template-columns:1.05fr 1fr;overflow:hidden;border:1px solid var(--line);border-radius:28px;background:#fff;box-shadow:var(--shadow);min-height:370px}.rom-product-home .discovery-visual{min-height:360px;position:relative;background:#e8f2f2;overflow:hidden;border-radius:0}.rom-product-home .discovery-scene{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}.rom-product-home .discovery-character{display:none}.rom-product-home .discovery-duration{position:absolute;left:18px;top:18px;right:auto;bottom:auto;background:#ffffffee;border-radius:12px;padding:8px 11px;display:flex;align-items:center;gap:7px;color:#233446;font-size:14px;font-weight:650;box-shadow:none}.rom-product-home .discovery-copy{padding:clamp(24px,3vw,38px);display:flex;flex-direction:column;justify-content:center;align-items:flex-start}.rom-product-home .discovery-kicker{font-size:14px;color:var(--deep);margin:0 0 10px}.rom-product-home .discovery-copy h2{font-size:clamp(26px,3vw,36px);margin:0 0 12px}.rom-product-home .discovery-copy>p{font-size:16px;line-height:1.65;color:var(--muted);margin:0 0 18px}.rom-product-home .discovery-courses{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px}.rom-product-home .discovery-courses button{font-size:14px;min-height:44px;padding:9px 13px}.rom-product-home .discovery-play{width:100%;min-height:56px;font-size:17px;justify-content:center;margin:2px 0 12px}.rom-product-home .discovery-copy>small{font-size:13px;line-height:1.5;color:var(--muted)}.rom-product-home .discovery-remix{min-height:44px;font-size:14px;margin:6px 0 0;display:flex;gap:8px;align-items:center}
.product-after-play{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 24px;margin:20px 0 26px;border:1px solid #dedfe8;border-radius:22px;background:#eeedf5}.product-after-play>div{display:flex;align-items:center;gap:16px}.product-after-play h2{font-size:20px;margin:0 0 6px}.product-after-play p{font-size:14px;line-height:1.6;color:var(--muted);max-width:540px}.product-after-play>.btn{flex-shrink:0}.rom-product-home .discovery-explore h2,.rom-product-home .discovery-next h2{font-size:22px}.rom-product-home .discovery-category{min-height:56px;font-size:16px;box-shadow:none;border-radius:17px}.rom-product-home .discovery-journeys{gap:12px}.rom-product-home .discovery-journey{box-shadow:none;border-radius:20px;border:1px solid var(--line);background:#fff}.rom-product-home .discovery-journey strong{font-size:17px}.rom-product-home .discovery-journey small{font-size:13px}.rom-product-home .discovery-guide{margin-top:24px;font-size:14px;border-radius:16px}.rom-product-home .discovery-paths strong{font-size:16px}
.studio-play-first{max-width:780px;margin:20px auto;padding:clamp(22px,4vw,38px)}.studio-play-symbol{display:grid;place-items:center;background:#eeeaf9;color:var(--deep);width:88px;height:88px;border-radius:24px;margin:0 0 22px}.studio-play-first h2{font-size:clamp(24px,3vw,32px);margin-bottom:12px}.studio-play-first>p{font-size:16px;line-height:1.65;color:var(--muted);max-width:620px}.studio-play-steps{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:24px 0}.studio-play-steps>span{display:inline-flex;gap:8px;align-items:center;font-size:15px;font-weight:650}.studio-other-source{border-top:1px solid var(--line);margin-top:26px;padding-top:16px}.studio-other-source summary{display:flex;align-items:center;gap:10px;min-height:48px;cursor:pointer;font-size:15px}.studio-other-source nav{margin:14px 0}.workspace-categories .task-category{min-height:52px;font-size:15px}.service-action-choice .choice-text small:empty{display:none}.service-action-choice:disabled{opacity:.65;cursor:not-allowed}.service-action-choice{min-height:72px}.service-action-choice .choice-text strong{font-size:16px}.availability-note{font-size:14px}
@media(max-width:680px){body{font-size:16px}.player-main{padding-left:18px;padding-right:18px}.rom-product-home{padding-top:8px}.rom-product-home .discovery-heading{margin-top:8px}.rom-product-home .discovery-featured{grid-template-columns:1fr;min-height:0}.rom-product-home .discovery-visual{min-height:0;height:190px}.rom-product-home .discovery-copy{padding:22px}.product-purpose{gap:8px;margin-bottom:22px}.product-purpose a{font-size:14px;padding:10px 6px;gap:7px}.product-after-play{flex-direction:column;align-items:stretch;padding:20px}.product-after-play>.btn{width:100%}.rom-product-home .discovery-category-grid{gap:8px}.rom-product-home .discovery-courses{width:100%;gap:6px}.rom-product-home .discovery-courses button{flex:1;justify-content:center;padding:10px 7px}.rom-product-home .discovery-game-tabs button{font-size:14px}.player-header .header-context{display:none}.btn{font-size:15px}.workspace-page .task-heading h1{font-size:28px}.studio-play-first .actions .btn{flex:1;min-width:150px}.brand-copy strong{font-size:23px}}
@media(prefers-reduced-motion:reduce){.rom-product-home *{transition:none!important;animation:none!important}}

/* UX72 whole-product visual system. System fonts and existing SVGs require no
   new downloads. Static surfaces, visible focus, wrapping and reduced motion
   apply to all existing routes; game physics/canvas dimensions stay untouched. */
:root{--rom-product-ink:#202736;--rom-product-muted:#535e70;--rom-product-line:#dbe1e9;--rom-product-bg:#f5f7fb;--rom-product-paper:#fff;--rom-product-violet:#5941b4;--rom-product-deep:#432b98;--rom-product-lilac:#eeeafb;--ink:#202736;--muted:#535e70;--line:#dbe1e9;--bg:#f5f7fb;--paper:#fff;--violet:#5941b4;--deep:#432b98;--lilac:#eeeafb}
body{font-family:system-ui,-apple-system,"Segoe UI","Malgun Gothic",sans-serif;letter-spacing:-.015em;color:var(--ink);background:var(--bg)}
main{max-width:1180px;margin-inline:auto;padding-inline:24px}h1,h2,h3,p,a,button,label{overflow-wrap:anywhere}h1{font-size:clamp(26px,3.8vw,38px);line-height:1.22;letter-spacing:-.035em}h2{font-size:clamp(20px,2.6vw,26px);line-height:1.35}h3{font-size:18px;line-height:1.4}p{line-height:1.65}input,select,textarea{font:inherit;font-size:16px;max-width:100%;border-radius:12px}.btn{font-size:15px;font-weight:650;line-height:1.3;min-height:48px;border-radius:14px;padding:12px 18px;gap:8px;box-shadow:none;white-space:normal}.btn.primary{background:var(--violet);border-color:var(--violet);color:#fff}.btn.danger{color:#9d2540;border-color:#d797a5;background:#fff}.btn:disabled{opacity:.7}.small,small{font-size:13px;line-height:1.55}.actions{gap:10px;flex-wrap:wrap}a{color:#493799}svg{flex-shrink:0}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #247b9e;outline-offset:4px}
.topbar{background:rgba(255,255,255,.98);border-bottom:1px solid var(--line);box-shadow:none}.brand-box{background:#5941b4;box-shadow:none;transform:none;border-radius:14px}.topnav a{font-weight:650}.bottom-nav{background:#fff;border-color:var(--line);box-shadow:0 -3px 14px #20273608}.bottom-nav a{min-height:52px;font-size:13px}.bottom-nav a[aria-current="page"]{color:#432b98;background:#eeeafb;border-radius:14px}
.task-surface,.workspace-panel,.settings-surface,.privacy-surface,.help-surface,.record-review,.account-surface,.media-library,.collection-surface{border-radius:24px;background:#fff;border:1px solid var(--line);box-shadow:none}.task-surface{padding:28px}.task-heading{gap:20px;margin-bottom:24px}.task-heading p{font-size:16px;color:var(--muted);max-width:62ch}.task-heading-mark,.service-art,.feature-art{border-radius:22px;background:#eeeafb;color:#5941b4;box-shadow:none}.task-categories,.task-facets{gap:10px;flex-wrap:wrap}.task-category,.task-facets button,.workspace-tabs a{min-height:48px;font-size:15px;border-radius:14px;padding:11px 16px}.task-facets button[aria-pressed="true"]{background:#5941b4;color:#fff;border-color:#5941b4}.searchbox{min-height:52px;border-radius:16px;background:#f5f7fb}.searchbox input{font-size:16px}.task-grid{gap:14px}.task-card,.service-card,.tile,.workspace-draft,.workspace-samples article,.collection-card,.activity-card{border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:none;padding:20px;min-width:0}.task-card:hover,.service-card:hover,.tile:hover{border-color:#aaa0d3;background:#faf9ff;transform:none;box-shadow:none}.task-card strong,.service-card h3,.tile h3{font-size:18px}.task-card p,.service-card p,.tile p{font-size:15px;line-height:1.55;color:var(--muted)}.task-card-icon,.tile-icon{width:48px;height:48px;border-radius:16px;background:#eeeafb;color:#5941b4;box-shadow:none}.badge,.tag{font-size:13px;white-space:normal;padding:5px 9px}.task-search-row{gap:12px}.task-section-title{margin-top:30px}.task-empty{background:#f5f7fb;border-radius:20px;padding:28px;line-height:1.6}
.page-lead,.feature-lead{font-size:17px;line-height:1.7;max-width:64ch}.detail-grid{gap:24px}.detail-copy{min-width:0}.steps,.flow-steps{gap:12px}.step,.flow-step{background:#f5f7fb;border-radius:16px;padding:18px}.choice-grid,.action-grid{gap:14px}.choice,.action-choice{border-radius:18px;border:1px solid var(--line);background:#fff;min-height:60px;box-shadow:none;font-size:16px}.crumb{font-size:14px;margin-bottom:24px;gap:10px}.back-button{min-height:44px;padding:10px 12px;font-size:14px;border-radius:12px}.workspace-page{max-width:1060px;margin:auto}.studio-play-first{padding:30px;text-align:left}.studio-play-symbol{background:#eeeafb;color:#5941b4;box-shadow:none;border-radius:20px}.studio-play-first>p{max-width:64ch}.workspace-drafts{gap:16px}.workspace-draft h3{margin-top:12px}.workspace-privacy{font-size:13px;line-height:1.4}.workspace-feedback{padding:18px;border-radius:16px;background:#f5f7fb}.studio-other-source{margin-top:26px;border-top:1px solid var(--line);padding-top:18px}.studio-other-source summary{min-height:44px;font-size:15px}.video-source-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:20px}.video-source-card{border:1px solid var(--line);border-radius:18px;padding:20px;background:#fff;display:grid;gap:12px}.video-source-card h3,.video-source-card p{margin:0}.video-source-card p{font-size:14px;color:var(--muted)}.video-source-card .btn{justify-self:start}.video-source-heading{margin:28px 0 0}.video-source-status{min-height:24px;font-size:14px;color:var(--muted)}
.settings-grid,.account-grid,.privacy-grid{gap:16px}.settings-card,.privacy-card,.help-card{border-radius:20px;background:#fff;border:1px solid var(--line);padding:22px}.settings-card label{font-size:15px;line-height:1.5}.settings-card input[type="checkbox"],.settings-card input[type="radio"]{width:22px;height:22px}.dialog{border-radius:24px;max-width:min(620px,calc(100vw - 32px));box-shadow:0 24px 80px #20273633}.dialog-body{font-size:16px;line-height:1.6}.dialog-body .actions{margin-top:20px}.dialog-body select{min-height:48px;margin:10px}.dialog-title{font-size:24px}.footer{font-size:14px;line-height:1.6}.record-review .actions,.activity-detail .actions{gap:12px}.record-metric,.activity-metric{background:#f5f7fb;border-radius:16px;padding:16px}.record-metric strong,.activity-metric strong{font-size:26px}.record-metric span,.activity-metric span{font-size:14px}
.task-root-grid{gap:16px}.task-root-button{min-height:100px;border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:none;font-size:20px;font-weight:700;padding:22px;gap:16px}.task-button{min-height:88px;border-radius:18px;background:#fff;border:1px solid var(--line);box-shadow:none;padding:18px;gap:14px;font-size:17px;font-weight:650}.task-glyph{width:48px;height:48px;border-radius:15px;box-shadow:none;background:#eeeafb;color:#5941b4}.task-button:hover,.task-root-button:hover{background:#faf9ff;border-color:#aaa0d3;transform:none;box-shadow:none}.task-button>span:not(.task-glyph),.task-root-button>span:not(.task-glyph){min-width:0;white-space:normal}.rom-dialog{border-radius:24px;border:1px solid var(--line);box-shadow:0 24px 80px #20273633}.rom-dialog::backdrop{background:#20273670}.workspace-import{gap:24px}.workspace-file-art{background:#eeeafb;color:#5941b4;box-shadow:none}.collection-detail{border:1px solid var(--line);border-radius:24px;background:#fff;box-shadow:none}.collection-detail-copy{padding:28px;min-width:0}.record-main-actions{display:flex;flex-wrap:wrap;gap:10px}.record-metrics>div{background:#f5f7fb;border-radius:16px;padding:14px}.record-metrics dt{font-size:14px}.record-metrics dd{font-size:28px}.record-disclosure{min-height:52px;font-size:16px;border-radius:14px}.discovery-mode-button{min-height:52px;font-size:15px}.discovery-copy p{font-size:16px}.product-after-play{border:1px solid #ded7f2;border-radius:20px}.product-purpose a{font-size:17px;min-height:66px}.privacy-center-card,.help45-card,.setting-card{border-radius:20px;background:#fff;border:1px solid var(--line);padding:20px}
:root{--task-text:#202736;--task-muted:#535e70;--task-line:#dbe1e9;--task-accent:#5941b4;--task-soft:#eeeafb;--task-strong:#202736;--task-focus:#247b9e;--rom-shelf-text-primary:#202736;--rom-shelf-text-secondary:#535e70;--rom-shelf-border-default:#dbe1e9;--rom-shelf-action-primary:#5941b4;--rom-shelf-action-selected-surface:#eeeafb;--rom-shelf-action-selected-border:#aaa0d3}
.player-header{background:#fff;border-bottom:1px solid var(--line);box-shadow:none;gap:16px}.player-header .icon-btn{width:46px;height:46px;min-height:46px;border-radius:14px;font-size:14px}.player-header .header-context{font-size:14px;color:var(--muted)}.player-main{max-width:1180px;padding-left:24px;padding-right:24px}.player-footer{font-size:14px;line-height:1.6;margin-top:40px;padding-top:24px;border-color:var(--line)}.player-footer a,.player-footer button{min-height:44px;display:inline-flex;align-items:center;padding:8px 4px}.service-action-grid{gap:12px}.service-action-choice{min-height:76px;padding:18px;border-radius:18px;border:1px solid var(--line);background:#fff;box-shadow:none;font:inherit;text-align:left;gap:14px}.service-action-choice strong{font-size:17px;line-height:1.4}.service-action-choice small{font-size:13px;color:var(--muted)}.service-action-choice .choice-icon{background:#eeeafb;color:#5941b4;width:44px;height:44px;border-radius:14px}.service-action-choice:not(:disabled):hover{background:#faf9ff;border-color:#aaa0d3;transform:none;box-shadow:none}.detail-art{border-radius:24px;background:#eeeafb;box-shadow:none}.detail-art img{object-fit:contain}.detail-copy h1{font-size:clamp(28px,4vw,40px)}.detail-copy>p{font-size:17px;line-height:1.7;color:var(--muted)}.steps-panel{border-radius:22px;background:#fff;border:1px solid var(--line);padding:26px;margin-top:26px}.user-steps{gap:14px;flex-wrap:wrap}.user-steps li{font-size:15px;line-height:1.55;min-width:0}.step-number{background:#eeeafb;color:#5941b4;box-shadow:none}.service-note{background:#fff;border:1px solid var(--line);border-radius:20px;padding:24px}.service-note h2{font-size:20px}.service-note p{font-size:15px;line-height:1.7}.compact-service{min-height:94px;gap:14px}.compact-service h3{font-size:17px}.privacy-panel,.privacy-copy-note,.settings-panel,.help45-contact,.help45-question{border-radius:20px;background:#fff;border-color:var(--line)}.privacy-link{min-height:52px;border-radius:14px}.settings-surface .settings-row{min-height:60px;font-size:16px}.collection-date input{font-size:16px;min-height:48px}.collection-list-heading select{min-height:48px;font-size:16px}.collection-periods button{min-height:48px;font-size:14px}.collection-heading p{font-size:16px}.collection-list-heading{font-size:14px}.collection-page{--c-ink:#202736;--c-muted:#535e70;--c-accent:#5941b4;--c-soft:#eeeafb;--c-line:#dbe1e9}
@media(max-width:600px){.player-main{padding-left:14px;padding-right:14px}.player-header{gap:8px;padding-inline:14px}.player-header .actions{gap:6px}.player-header .header-context{display:none}.service-action-choice{min-height:72px;padding:16px}.detail-copy>p{font-size:16px}.steps-panel,.service-note{padding:20px 16px}.user-steps{grid-template-columns:minmax(0,1fr)}.player-footer .footer-links{gap:10px;flex-wrap:wrap}}
:root{--xp-ink:#202736;--xp-secondary:#535e70;--xp-accent:#5941b4;--xp-accent-soft:#eeeafb;--xp-border:#dbe1e9;--xp-focus:#247b9e;--xp-touch:48px}
body:not(.in-shorts) .btn{font-size:15px;min-height:48px;line-height:1.3;padding:12px 18px;border-radius:14px}body:not(.in-shorts) .btn.primary{background:#5941b4;border-color:#5941b4}body:not(.in-shorts) .player-main{max-width:1180px;padding:28px 24px 36px}body:not(.in-shorts) .player-footer{font-size:14px}body:not(.in-shorts) .crumb{font-size:14px}body:not(.in-shorts) .player-header{height:80px;padding:0 24px;gap:16px}.settings-menu a,.settings-folders a{min-height:64px;border-radius:16px;border-color:var(--line);font-size:16px}.settings-menu strong{font-size:17px}.quality-choice{min-height:82px;border-radius:18px;font-size:15px}.quality-choice.selected{background:#eeeafb;color:#432b98;border-color:#aaa0d3}.settings-panel .switch{min-height:60px;gap:14px}.settings-panel .switch>span{font-size:16px}.settings-panel .switch small{font-size:14px;line-height:1.55}.settings-panel .volume-control{font-size:16px;gap:12px}.settings-panel .volume-control input{min-height:36px}.settings-panel .settings-hint{font-size:14px;line-height:1.65}.settings-panel h2{font-size:23px}
/* Match the original 1000px navigation switch. Preserve scroll clearance for
   tablet widths as well as phones; the portrait player owns its own controls. */
@media(max-width:1000px){body:not(.in-shorts) .player-main{padding:26px 22px calc(110px + env(safe-area-inset-bottom))}body:not(.in-shorts) .player-header{height:72px}.experience-nav a{font-size:13px}}
@media(max-width:600px){body:not(.in-shorts) .player-main{padding:20px 14px calc(110px + env(safe-area-inset-bottom))}body:not(.in-shorts) .player-header{height:68px;padding:0 14px;gap:8px}.settings-menu a,.settings-folders a{padding:16px;min-width:0}.settings-surface .settings-panel{padding:20px 16px}}
@media(max-width:420px){.player-header .keyboard-trigger{display:none}.player-header .task-header-search{width:44px;min-width:44px;padding:0;justify-content:center}.player-header .task-header-search>span{display:none}.player-header .brand{gap:7px}.player-header .brand-symbol{width:37px;height:39px}.player-header .icon-btn{width:44px;min-width:44px;height:44px;min-height:44px}.player-header .actions{gap:6px}}
body.in-studio-editor:not(.in-shorts) .player-main{padding-bottom:28px}
@media(min-width:1100px){.task-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.task-surface{padding:36px}.workspace-panel{padding:30px}}
@media(max-width:600px){main{padding-inline:14px}.task-surface{padding:20px 16px;border-radius:20px}.task-heading{margin-bottom:20px}.task-grid,.video-source-grid{grid-template-columns:minmax(0,1fr)}.task-card,.tile,.service-card,.workspace-draft{padding:18px}.task-search-row{flex-wrap:wrap}.task-search-row .searchbox{flex-basis:100%;min-width:0}.workspace-panel,.studio-play-first{padding:20px 16px}.task-facets{gap:8px}.task-facets button{padding:10px 12px;font-size:14px}.actions .btn{max-width:100%}.detail-grid{grid-template-columns:minmax(0,1fr)}.dialog-body{padding:20px}.video-source-card .btn{justify-self:stretch}.studio-play-steps{flex-wrap:wrap}}
/* The full game name also appears in the existing three-tab player header.
   Its second mobile row needs a bounded width and less horizontal padding;
   retain the 44px touch height and all three destinations at 320px widths. */
@media(max-width:600px){.shorts-tabs{max-width:calc(100vw - 16px);gap:2px}.shorts-tabs a{font-size:14px;min-height:44px;padding:10px 12px;gap:6px}}
@media(prefers-reduced-motion:reduce){.task-card,.service-card,.tile,.btn{transition:none!important;animation:none!important;transform:none!important}}

/* UX73 product foundations. Keep this after historical product skins and
   before dedicated game layouts. Rem sizing respects browser text settings;
   icon frames are consistent without changing any original vector geometry.
   한국어 인계: 버튼은 아이콘 + 짧은 말, 설명은 버튼 밖에 둔다. */
:root{
 --rom-body:1rem;--rom-control:.9375rem;--rom-support:.875rem;
 --rom-space-1:4px;--rom-space-2:8px;--rom-space-3:12px;--rom-space-4:16px;
 --rom-space-5:24px;--rom-space-6:32px;--rom-control-size:48px;
 --rom-icon-size:20px;--rom-focus-color:#247b9e;
}
.player-main{font-size:var(--rom-body)}
body:not(.in-shorts) .btn{font-size:var(--rom-control);min-block-size:var(--rom-control-size);gap:var(--rom-space-2);white-space:normal}
body:not(.in-shorts) .btn>.rom-icon{inline-size:var(--rom-icon-size);block-size:var(--rom-icon-size);flex-shrink:0}
.back-button>.rom-icon,.crumb>.rom-icon{inline-size:18px;block-size:18px;flex-shrink:0}
.task-glyph>.rom-icon,.service-action-choice .choice-icon>.rom-icon{inline-size:24px;block-size:24px;flex-shrink:0}
.experience-nav .rom-icon{inline-size:22px;block-size:22px;flex-shrink:0}
.game-choice-name>.rom-icon{inline-size:20px;block-size:20px;flex-shrink:0}
.player-main :is(input,select,textarea){font-size:var(--rom-body)}
.task-heading p,.discovery-copy>p,.privacy-heading p,.settings-hint,.package-heading p{font-size:var(--rom-body);line-height:1.65}
.task-button,.task-category,.service-action-choice strong,.settings-menu a,.privacy-link{font-size:var(--rom-body);line-height:1.4}
.workspace-panel>p,.record-disclosure,.collection-heading>p{font-size:var(--rom-body)}
.player-main :is(.notice,.preview-note,.collection-footnote,.collection-list-heading,.availability-note){font-size:var(--rom-support);line-height:1.6}
.player-main :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid var(--rom-focus-color);outline-offset:3px}
/* Selection has a visible check or line as well as a color change. */
.game-choice-check{display:inline-flex;align-items:center;justify-content:center;margin-left:auto;width:22px;height:22px;border-radius:50%;background:#5941b4;color:#fff;flex-shrink:0}
.game-choice-check>.rom-icon{width:13px;height:13px}
.arcade-selection-grid button:not([aria-pressed="true"]) .game-choice-check{visibility:hidden}
.game-choice-name{padding-inline:14px!important;text-align:left;justify-content:flex-start!important}
.task-facets button[aria-pressed="true"],.rule-family-nav button[aria-pressed="true"]{box-shadow:inset 0 -3px 0 #5941b4}
.task-categories a[aria-current="page"]{box-shadow:inset 0 -3px 0 #5941b4}
.experience-nav a[aria-current="page"]{font-weight:750}
.experience-nav a[aria-current="page"]>span{border-bottom:2px solid currentColor;padding-bottom:2px}
/* Existing empty/loading/error messages keep their actual semantics. Only the
   spacing/type is shared; failures are never visually relabelled as success. */
.player-main :is(.collection-empty,.task-empty,.media-empty,.arcade-empty){border-radius:22px;border:1px solid var(--line);background:#fff;padding:32px 24px}
.player-main :is(.collection-empty,.task-empty,.media-empty)>p{font-size:var(--rom-body);line-height:1.65;max-width:40rem;margin-inline:auto;color:var(--muted)}
.player-main :is(.collection-empty,.task-empty,.media-empty)>.btn{margin-top:var(--rom-space-4)}
.player-footer{line-height:1.65}.player-footer .footer-links{column-gap:20px;row-gap:8px}
@media(max-width:600px){.game-choice-name{padding-inline:10px!important;font-size:.9375rem!important;gap:6px!important}.game-choice-name>.rom-icon{inline-size:18px;block-size:18px}.game-choice-check{width:20px;height:20px}.player-main :is(.collection-empty,.task-empty,.media-empty,.arcade-empty){padding:26px 18px}}
.reduced-motion .arcade-board button,.reduced-motion .btn{transition:none!important;animation:none!important}

.arcade-selection-grid button{position:relative}.game-choice-check{position:absolute;top:10px;right:10px;margin:0;box-shadow:0 0 0 3px #ffffffd9}

/* Translated two-line game names share the row height without truncation. */
.game-choice-name{flex:1;line-height:1.45}.game-choice-label{min-width:0;overflow-wrap:break-word}

/* Portrait game surfaces. One whole image per cover, all copy in HTML.
   No continuous decorative animation, canvas render loop or external font. */
.rom-product-home .arcade-selection-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;padding:0;background:none;border:0;margin:24px 0}.rom-product-home .arcade-selection-grid button{min-width:0;display:flex;flex-direction:column;gap:0;padding:0;background:#fff;border:2px solid #dbe1e9;border-radius:22px;overflow:hidden;cursor:pointer;box-shadow:none;transform:none}.rom-product-home .arcade-selection-grid button[aria-pressed="true"]{border-color:#5941b4;background:#f8f6ff;color:#432b98}.game-choice-art{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:1;background:#f4f0fb;overflow:hidden}.game-choice-art img{width:100%;height:100%;object-fit:contain;display:block}.game-choice-name{display:flex;align-items:center;justify-content:center;gap:8px;font-size:1rem;line-height:1.3;font-weight:700;min-height:58px;width:100%;padding:12px 8px}.arcade-feature .discovery-scene{object-fit:contain!important;position:static!important;width:100%;height:auto!important;aspect-ratio:1}.arcade-feature .discovery-visual{padding:0;background:#f4f0fb;min-height:0;aspect-ratio:1}.arcade-feature .discovery-copy{display:flex;flex-direction:column;justify-content:center}.arcade-feature .discovery-kicker{align-self:flex-start}
.rule-family-nav{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 24px}.rule-family-nav button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:50px;flex:1;padding:12px 16px;border:1px solid var(--line);border-radius:14px;background:#fff;color:#535e70;font:600 0.9375rem system-ui;cursor:pointer}.rule-family-nav button[aria-pressed="true"]{background:#eeeafb;border-color:#aaa0d3;color:#432b98}.rule-family-nav button>span{font-size:0.75rem;background:#fff;border-radius:8px;padding:4px 7px;color:#535e70}.arcade-bank-intro{display:flex;gap:28px;align-items:center;border:1px solid var(--line);border-radius:24px;background:#fff;padding:24px;margin-bottom:24px}.arcade-bank-intro img{width:220px;height:220px;object-fit:contain;border-radius:18px}.arcade-bank-intro h2{margin:10px 0}.arcade-bank-intro p{font-size:1rem;color:#535e70}.arcade-bank-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.arcade-bank-grid article{display:grid;grid-template-columns:44px minmax(0,1fr);gap:12px;padding:20px;border:1px solid var(--line);background:#fff;border-radius:20px}.arcade-bank-glyph{width:44px;height:44px;border-radius:14px;background:#eeeafb;color:#5941b4;display:flex;align-items:center;justify-content:center}.arcade-bank-grid h3{font-size:1.125rem;margin:0 0 8px}.arcade-bank-grid p{font-size:0.875rem;line-height:1.6;color:#535e70;margin:0}.arcade-bank-grid .btn{grid-column:2;justify-self:start;min-height:44px!important}
@media(max-width:600px){.rom-product-home .arcade-selection-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.game-choice-name{font-size:0.875rem;min-height:50px;gap:6px}.arcade-selection-grid button{border-radius:18px}.game-choice-art{aspect-ratio:1.2}.arcade-bank-grid{grid-template-columns:minmax(0,1fr)}.arcade-bank-intro{flex-direction:column;align-items:flex-start;padding:20px;gap:12px}.arcade-bank-intro img{align-self:center;width:180px;height:180px}.rule-family-nav{gap:7px}.rule-family-nav button{padding:10px 8px;font-size:0.875rem}.rule-family-nav button>span{display:none}}
.arcade-page,.arcade-records{max-width:1040px;margin-inline:auto;--arcade-blue:#286cb7;--arcade-pink:#b52e64;--arcade-yellow:#866018;--arcade-mint:#15776d}
.arcade-breadcrumb{display:flex;justify-content:space-between;gap:16px;margin-bottom:24px;font-size:0.875rem}.arcade-breadcrumb a{display:inline-flex;gap:7px;align-items:center;min-height:44px}
.arcade-heading{display:flex;align-items:center;gap:16px;margin-bottom:28px}.arcade-heading h1{margin:3px 0 8px}.arcade-heading p{margin:0;color:var(--muted);font-size:1rem}.arcade-mode-mark,.arcade-result-mark,.arcade-empty-icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;background:#eeeafb;color:#5941b4;width:60px;height:60px;border-radius:19px}
.arcade-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(260px,.8fr);gap:24px;align-items:start}.arcade-player{position:relative;min-width:0;background:#fff;border:1px solid var(--line);border-radius:28px;padding:24px;overflow:hidden}.arcade-hud{display:flex;align-items:center;gap:22px;min-height:52px;margin-bottom:18px}.arcade-hud>div{display:grid;gap:3px}.arcade-hud small{font-size:0.8125rem;color:var(--muted)}.arcade-hud strong{font-size:1.75rem;font-variant-numeric:tabular-nums;line-height:1.1}.arcade-hud .icon-btn{margin-left:auto;min-width:48px;min-height:48px;background:#f5f7fb;border:1px solid var(--line);border-radius:15px}
.arcade-rule-cue{display:flex;gap:12px;align-items:flex-start;background:#eeeafb;border:1px solid #ded7f2;border-radius:18px;padding:16px;margin-bottom:16px}.arcade-rule-cue>span{color:#5941b4;padding-top:3px}.arcade-rule-cue h2{font-size:1.25rem;margin:0 0 6px;line-height:1.3}.arcade-rule-cue p{font-size:0.875rem;line-height:1.5;margin:0;color:#493a75}.arcade-question{max-width:460px;margin-inline:auto}
.arcade-target{display:flex;align-items:center;justify-content:center;gap:14px;min-height:62px;padding:10px;margin:0 auto 14px;background:#f5f7fb;border:1px dashed #bcc5d4;border-radius:16px;width:max-content;max-width:100%}.arcade-symbol{display:block;width:40px;height:40px}.arcade-symbol svg{width:100%;height:100%;fill:currentColor}.color-0{color:var(--arcade-blue)}.color-1{color:var(--arcade-pink)}.color-2{color:var(--arcade-yellow)}.color-3{color:var(--arcade-mint)}.arcade-tile-detail{display:flex;align-items:center;justify-content:center;gap:6px;font-size:0.8125rem;color:#535e70}.arcade-tile-detail strong{color:#202736;font-size:1rem}
.arcade-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.arcade-board button{position:relative;min-width:0;min-height:105px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;background:#fafbfe;border:2px solid #dbe1e9;border-radius:18px;padding:15px 7px 12px;font:inherit;cursor:pointer;touch-action:manipulation;transition:background .12s,border-color .12s}.arcade-board button:hover{background:#f0ecfd;border-color:#b1a4db}.arcade-board kbd{position:absolute;top:6px;right:8px;font:600 0.6875rem system-ui;color:#647085;background:none;border:0;box-shadow:none;padding:0}.arcade-board button[aria-disabled="true"]{cursor:default}.arcade-board button.is-answer{background:#ecf7f0;border-color:#33815a}.arcade-board button.is-wrong{background:#fff0f2;border-color:#bc3c57}.arcade-board button:focus-visible,.arcade-direction-pad button:focus-visible{outline:3px solid #247b9e;outline-offset:3px}
.arcade-answer-track{height:5px;background:#e9edf4;border-radius:8px;overflow:hidden;margin-top:18px}.arcade-answer-track i{display:block;background:#5941b4;width:100%;height:100%;transform-origin:left center}.arcade-feedback{min-height:28px;text-align:center;font-size:0.9375rem;font-weight:650;margin-top:14px;color:#535e70}.arcade-feedback[data-state="correct"]{color:#276743}.arcade-feedback[data-state="wrong"]{color:#9d2540}.arcade-keyboard-help{display:flex;gap:8px;align-items:center;justify-content:center;font-size:0.8125rem;color:#535e70;margin:6px 0 0}
.arcade-direction-cue{min-height:120px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:9px}.arcade-direction-cue strong{font-size:1.125rem}.arcade-direction-cue .arcade-number-cue{font-size:4.375rem;font-weight:750}.arcade-color-swatch{width:62px;height:62px;background:currentColor;border-radius:19px}.arcade-direction-map{text-align:center;font-size:0.875rem;color:#535e70;margin:5px 0 16px}.arcade-direction-pad{display:grid;grid-template:repeat(3,74px)/repeat(3,minmax(0,1fr));max-width:310px;margin:auto;gap:8px}.arcade-direction-pad button{border:2px solid #dbe1e9;border-radius:17px;background:#fafbfe;color:#432b98;font:inherit;font-size:0.875rem;display:flex;flex-direction:column;gap:6px;align-items:center;justify-content:center;cursor:pointer;touch-action:manipulation}.pad-up{grid-area:1/2}.pad-left{grid-area:2/1}.pad-right{grid-area:2/3}.pad-down{grid-area:3/2}.arcade-direction-pad button.is-answer{background:#ecf7f0;border-color:#33815a;color:#276743}.arcade-direction-pad button.is-wrong{background:#fff0f2;border-color:#bc3c57;color:#9d2540}
.arcade-setup{border:1px solid var(--line);border-radius:24px;background:#fff;padding:24px;display:grid;gap:22px}.arcade-setup fieldset{border:0;padding:0;margin:0;min-width:0}.arcade-setup legend{font-size:0.9375rem;font-weight:700;margin-bottom:12px}.arcade-segments{display:flex;flex-wrap:wrap;gap:7px}.arcade-segments button{flex:1;min-height:48px;border:1px solid var(--line);border-radius:13px;background:#f8f9fc;color:#535e70;font:600 0.875rem system-ui;display:inline-flex;gap:6px;align-items:center;justify-content:center;padding:10px 8px;cursor:pointer}.arcade-segments button[aria-pressed="true"]{background:#eeeafb;border-color:#aaa0d3;color:#432b98}.arcade-setup select{width:100%;min-height:50px;border:1px solid var(--line);background:#fff;padding:10px 12px;color:var(--ink)}.arcade-setup>.btn{width:100%;justify-content:center}.arcade-rule-link{display:flex;align-items:center;justify-content:center;gap:8px;font-size:0.9375rem;min-height:44px}.arcade-local-note{font-size:0.8125rem;line-height:1.6;color:#535e70;margin:0}
.arcade-overlay{position:absolute;inset:0;background:#f8f7fdf5;z-index:3;display:flex;align-items:center;justify-content:center;padding:24px;text-align:center}.arcade-overlay[hidden]{display:none}.arcade-overlay>div{display:grid;justify-items:center;gap:12px;max-width:300px}.arcade-overlay h2,.arcade-overlay p{margin:0}.arcade-overlay p{font-size:0.9375rem;color:#535e70}.arcade-pause-symbol{color:#5941b4;margin-bottom:8px}
.arcade-result{border:1px solid var(--line);border-radius:24px;background:#fff;padding:28px;margin-top:24px}.arcade-result[hidden]{display:none}.arcade-result>header{display:flex;align-items:center;gap:16px}.arcade-result h2{margin:4px 0}.arcade-result-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:24px 0}.arcade-result-metrics>div{background:#f5f7fb;border-radius:16px;padding:16px;min-width:0}.arcade-result dt{font-size:0.875rem;color:#535e70}.arcade-result dd{font-size:1.875rem;font-weight:750;margin:8px 0 0;font-variant-numeric:tabular-nums}.arcade-record-handoff{border-top:1px solid var(--line);margin-top:24px;padding-top:12px}.arcade-record-handoff p{font-size:0.9375rem}.arcade-result>small{display:block;margin-top:20px;color:#535e70}.arcade-code{padding:16px;background:#f5f7fb;border-radius:14px;margin-bottom:18px;overflow-wrap:anywhere}
.arcade-record-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:20px}.arcade-record-toolbar>span{font-size:0.875rem;color:#535e70}.arcade-record-card{display:flex;gap:16px;align-items:flex-start;padding:22px;border:1px solid var(--line);border-radius:22px;background:#fff;margin-bottom:14px}.arcade-record-card>div{min-width:0;flex:1}.arcade-record-card h2{font-size:1.25rem;margin:0 0 8px}.arcade-record-card p{font-size:0.875rem;color:#535e70;margin:0}.arcade-record-card dl{display:flex;flex-wrap:wrap;gap:24px;margin:16px 0}.arcade-record-card dt{font-size:0.8125rem;color:#535e70}.arcade-record-card dd{font-size:1.375rem;font-weight:700;margin:5px 0 0}.arcade-empty{text-align:center;border:1px solid var(--line);border-radius:24px;background:#fff;padding:40px 24px}.arcade-empty h1,.arcade-empty h2{margin-top:20px}.arcade-empty p{color:#535e70}
@media(max-width:760px){.arcade-layout{grid-template-columns:minmax(0,1fr)}.arcade-player{padding:20px;border-radius:24px}.arcade-setup{gap:20px}.arcade-heading{margin-bottom:22px}.arcade-result-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.arcade-running .arcade-setup{display:none}}
@media(max-width:420px){.arcade-player{padding:16px}.arcade-board{gap:7px}.arcade-board button{min-height:96px;padding-inline:3px}.arcade-symbol{width:34px;height:34px}.arcade-tile-detail{font-size:0.75rem;gap:4px}.arcade-rule-cue{padding:14px;gap:9px}.arcade-rule-cue h2{font-size:1.1875rem}.arcade-heading p{font-size:0.9375rem}.arcade-mode-mark{width:48px;height:48px;border-radius:16px}.arcade-heading{gap:12px}.arcade-record-card{padding:18px;gap:12px}.arcade-record-card .arcade-mode-mark{display:none}.arcade-result{padding:20px}.arcade-direction-pad{grid-template-rows:repeat(3,68px)}.arcade-breadcrumb{gap:8px;margin-bottom:16px}}
@media(prefers-reduced-motion:reduce){.arcade-board button{transition:none}}

/* UX73 artwork is always rendered whole, with captions kept in DOM text. */
.arrival-art.arcade img,.arcade-whole-art img,.collection-record-art.arcade img{object-fit:contain!important;background:#f2efff}

/* Ready screen: action first, controls on demand. No modal is needed to start.
   Phone play: keep the clock, current rule, board and Pause together. The
   page remains scrollable for zoom/large text instead of locking its viewport. */
.arcade-options{min-width:0;border-top:1px solid var(--line);padding-top:4px}
.arcade-options>summary{min-height:48px;display:flex;align-items:center;gap:8px;font-size:0.9375rem;font-weight:650;cursor:pointer;list-style:none}
.arcade-options>summary::-webkit-details-marker{display:none}
.arcade-options>summary svg:last-child{margin-left:auto}
.arcade-options[open]>summary svg:last-child{transform:rotate(180deg)}
.arcade-options-body{display:grid;gap:22px;padding-top:16px}
.arcade-session .arcade-setup{display:none}
.arcade-session .arcade-layout{grid-template-columns:minmax(0,680px);justify-content:center}
.arcade-session .arcade-breadcrumb,.arcade-session .arcade-heading,.arcade-session .player-footer,.arcade-session .experience-nav{display:none}
.arcade-keyboard-help{flex-wrap:wrap;line-height:1.6}
.arcade-keyboard-help kbd{font-size:0.75rem;font-family:inherit;padding:2px 6px;border:1px solid #c6cedc;border-radius:6px;background:#f5f7fb;color:#535e70}
@media(max-width:760px){.arcade-setup{grid-row:1;padding:18px;gap:12px}.arcade-layout{gap:18px}.arcade-session .player-header{display:none}.arcade-session:not(.in-shorts) .player-main{padding:12px 12px calc(16px + env(safe-area-inset-bottom))}.arcade-session .arcade-player{border-radius:20px}.arcade-session .arcade-hud{margin-bottom:12px}.arcade-session .arcade-rule-cue{margin-bottom:12px}.arcade-session .arcade-target{margin-bottom:12px}.arcade-session .arcade-feedback{margin-top:10px}}
@media(max-width:420px){.arcade-session .arcade-board button{min-height:88px}.arcade-session .arcade-direction-cue{min-height:100px}.arcade-session .arcade-direction-pad{grid-template-rows:repeat(3,64px)}}

/* Compact key badges do not add a third line to directional touch targets. */
.arcade-direction-pad button{position:relative}.arcade-direction-pad kbd{position:absolute;top:5px;right:7px;font:600 0.6875rem system-ui;color:#647085;padding:0;background:none;border:0}
.arcade-board button[aria-disabled="true"]:hover,.arcade-direction-pad button[aria-disabled="true"]:hover{background:#fafbfe;border-color:#dbe1e9}
@media(pointer:coarse){.arcade-board kbd,.arcade-direction-pad kbd{display:none}}
.arcade-video-ready video{display:block;width:100%;max-width:240px;max-height:440px;aspect-ratio:9/16;object-fit:contain;margin:0 auto 20px;background:#f2effa;border-radius:18px}
.arcade-video-ready p{font-size:1rem;line-height:1.6}.arcade-video-ready .actions{flex-wrap:wrap;gap:10px}

/* Answer status has a whole glyph as well as color. It sits opposite the key
   badge and never replaces a button's semantic rule/shape/color label. */
.arcade-answer-mark{position:absolute;top:6px;left:7px;width:21px;height:21px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:#276743;color:#fff}
.arcade-answer-mark[hidden]{display:none}.is-wrong .arcade-answer-mark{background:#9d2540}.arcade-answer-mark>.rom-icon{width:13px;height:13px}

.arcade-bank-groups{display:flex;gap:8px;flex-wrap:wrap;margin:26px 0 12px}.arcade-bank-groups button{display:inline-flex;gap:8px;align-items:center;justify-content:center;min-height:48px;padding:11px 15px;border:1px solid #dbe1e9;border-radius:14px;background:#fff;color:#535e70;font:600 .9375rem system-ui;cursor:pointer}
.arcade-bank-groups button[aria-pressed="true"]{color:#432b98;background:#eeeafb;border-color:#aaa0d3;box-shadow:inset 0 -3px 0 #5941b4}.arcade-bank-count{font-size:.875rem;color:#535e70;margin:0 0 18px}
@media(max-width:600px){.arcade-bank-groups{gap:7px;margin-top:20px}.arcade-bank-groups button{padding:10px 12px}}

/* Selected-copy flow uses the product type/spacing system and native controls.
   No raster icon sheet, external font, animated background or fixed viewport. */
.personal-package{max-width:940px;margin:auto}
.personal-package>.crumb{display:flex;justify-content:space-between;gap:16px;margin-bottom:24px}
.personal-package>.crumb a{min-height:44px;display:inline-flex;gap:8px;align-items:center}
.package-heading{display:flex;gap:16px;align-items:center;margin-bottom:28px}
.package-heading h1{margin:0 0 10px}.package-heading p{margin:0;color:var(--muted);font-size:1rem}
.package-glyph,.package-review-mark{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:54px;height:54px;border-radius:17px;background:#eeeafb;color:#5941b4}
.package-source-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
.package-source{min-width:0;background:#fff;border:1px solid var(--line);border-radius:22px;padding:22px}
.package-source header{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.package-source .package-glyph{width:42px;height:42px;border-radius:13px}
.package-source h2{font-size:1.125rem;margin:0;flex:1;min-width:100px}
.package-select-all{display:flex;align-items:center;gap:8px;min-height:44px;font-size:0.875rem;cursor:pointer}
.personal-package input[type=checkbox]{width:22px;height:22px;flex-shrink:0;accent-color:#5941b4;margin:0}
.package-source summary{min-height:48px;display:flex;gap:8px;align-items:center;justify-content:space-between;list-style:none;cursor:pointer;color:#535e70;font-size:0.9375rem;border-top:1px solid var(--line);margin-top:16px}
.package-source summary::-webkit-details-marker{display:none}
.package-record-list{max-height:320px;overflow:auto;scrollbar-gutter:stable;overscroll-behavior:contain;padding-right:4px}
.package-record{display:flex;align-items:center;gap:12px;padding:12px 6px;min-height:64px;border-top:1px solid #edf0f5;cursor:pointer}
.package-record>span{display:grid;gap:5px;min-width:0}.package-record strong{font-size:0.9375rem}.package-record time{font-size:0.8125rem;color:#535e70;line-height:1.5}
.package-source-status{min-height:28px;font-size:0.9375rem;color:#535e70;margin:18px 0 0}
.package-action-bar{display:flex;gap:16px;align-items:center;justify-content:space-between;padding:22px 0;margin-top:10px}
.package-action-bar>p{font-size:1rem;font-weight:650;margin:0}.package-action-bar .btn{min-width:160px}
.package-footnote{font-size:0.875rem;line-height:1.65;color:#535e70;border-top:1px solid var(--line);padding-top:20px;margin-top:10px}
.package-review{max-width:650px;margin:auto;padding:30px;background:#fff;border:1px solid var(--line);border-radius:24px}
.package-review-mark{width:64px;height:64px;border-radius:20px}.package-review h2{font-size:1.5625rem;margin:22px 0 12px}.package-review>p{font-size:1rem;color:#535e70;line-height:1.6}
.package-review dl{margin:24px 0}.package-review dl>div{display:flex;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid #edf0f5}.package-review dt{font-size:1rem}.package-review dd{margin:0;font-size:1rem;font-weight:700;font-variant-numeric:tabular-nums}.package-review .actions{gap:10px;margin-top:24px}.package-review #package-download-status{font-size:0.875rem;min-height:24px}
@media(max-width:650px){.package-source-grid{grid-template-columns:minmax(0,1fr)}.package-heading{align-items:flex-start;gap:12px}.package-heading>.package-glyph{width:48px;height:48px}.package-source{padding:18px}.package-review{padding:24px 20px}.package-action-bar .btn{min-width:140px}.package-record-list{max-height:280px}}

/* UX79: the copy belongs to the same portrait product as the account and
   collections. Text controls its height; keep native checkboxes and whole SVGs.
   These rules do not alter replay schemas, record limits or game geometry. */
.personal-package{max-inline-size:58.75rem;min-inline-size:0}
.personal-package>.crumb{flex-wrap:wrap;gap:.75rem 1rem}
.package-heading{align-items:flex-start;gap:1rem}
.package-heading>div{min-inline-size:0}
.personal-package :is(p,time,summary){line-height:1.65}
.personal-package :is(.package-glyph,.package-review-mark){background:#f3eddf;color:#52442b;border:1px solid #ded4bd;box-shadow:none}
.personal-package input[type=checkbox]{inline-size:1.375rem;block-size:1.375rem;accent-color:#52442b}
.package-select-all{font-size:.9375rem;min-block-size:3rem}
.package-record{min-block-size:4rem;gap:.75rem;padding:.75rem .375rem}
.package-record strong{font-size:1rem;line-height:1.5;overflow-wrap:anywhere}
.package-record time,.package-source-status,.package-footnote,.package-review #package-download-status{font-size:.9375rem;color:var(--muted)}
.package-source-status{min-block-size:1.75rem}
.package-record-list{max-block-size:20rem}
.package-action-bar{flex-wrap:wrap;gap:1rem}
.package-action-bar .btn{min-inline-size:10rem;max-inline-size:100%}
.package-review{min-inline-size:0;max-inline-size:40.625rem}
.package-review dl>div{flex-wrap:wrap;gap:.5rem 1rem}
.package-review dt{min-inline-size:0;overflow-wrap:anywhere}
.package-review dd{margin-inline-start:auto}
.personal-package :is(input,summary,button,a):focus-visible{outline:3px solid var(--focus);outline-offset:3px}
@media(max-width:40.625rem){.package-record-list{max-block-size:17.5rem}.package-action-bar .btn{min-inline-size:0;flex:1 1 10rem}.package-review .actions>*{min-inline-size:0;flex:1 1 9rem}.package-heading>.package-glyph{inline-size:3rem;block-size:3rem}}
@media(forced-colors:active){.personal-package :is(.package-source,.package-review,.package-glyph,.package-review-mark){border-color:CanvasText;background:Canvas;color:CanvasText}.personal-package :is(input,summary,button,a):focus-visible{outline-color:Highlight}}

/* One portrait-first running family. Artwork remains whole and text stays DOM. */
.running-page{max-width:1120px;margin:auto;padding:clamp(16px,3vw,32px);color:var(--ink,#23334a)}
.running-breadcrumb{display:flex;justify-content:space-between;gap:12px;margin-bottom:24px}
.running-heading{display:flex;align-items:center;gap:16px;margin-bottom:26px}.running-heading h1{font-size:clamp(1.6rem,4vw,2.25rem);line-height:1.2;margin:0 0 8px}.running-heading p{margin:0;line-height:1.6}
.running-mark,.running-rule-mark{display:grid;place-items:center;background:#e5f3ef;color:#245b60;border-radius:20px;flex:none;width:64px;height:64px}
.running-setup{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:28px;background:#fff;border:1px solid #d9e4e8;border-radius:28px;overflow:hidden;padding:24px}
.running-course-art{position:relative;min-width:0;display:grid;place-items:center;background:#edf7f4;border-radius:20px;overflow:hidden}.running-course-art>img:first-child{width:100%;height:auto;aspect-ratio:4/3;object-fit:contain}.running-course-art .running-character{position:absolute;right:4%;bottom:2%;width:38%;height:auto;object-fit:contain}
.running-options{display:flex;flex-direction:column;gap:20px}.running-options fieldset{border:0;padding:0;margin:0}.running-options legend{font-size:1rem;font-weight:700;margin-bottom:12px}.running-course-buttons,.running-time-buttons{display:flex;flex-wrap:wrap;gap:8px}
.running-page button[aria-pressed=true]{background:#dcefe9;border-color:#286f6b;color:#174c49;box-shadow:inset 0 -3px #286f6b}.running-change{display:flex;gap:8px;align-items:center;margin:0}.running-prepare{min-height:56px}.running-options small{font-size:.875rem;line-height:1.6;color:#546477}.running-bank-link{display:flex;gap:8px;align-items:center;font-weight:700;color:#25635f}
.running-controls-guide {
  min-width:0;
  padding:12px;
  background:#f3f8f7;
  border:1px solid #d5e5e1;
  border-radius:16px;
  color:#233c4c;
}
.running-controls-guide .race-auto-intro141 {
  margin:0 0 8px;
  max-width:none;
  color:inherit;
}
.running-controls-guide summary {
  display:flex;
  align-items:center;
  gap:8px;
  min-height:48px;
  padding:8px 12px;
  box-sizing:border-box;
  border:1px solid #c2d8d3;
  border-radius:12px;
  background:#fff;
  color:#174c49;
  font-weight:700;
  cursor:pointer;
  list-style:none;
}
.running-controls-guide summary::-webkit-details-marker { display:none; }
.running-controls-guide summary svg { flex:none; }
.running-controls-guide summary svg:last-child { margin-inline-start:auto; }
.running-controls-guide details[open] summary svg:last-child { transform:rotate(180deg); }
.running-controls-guide summary:focus-visible { outline:3px solid #286f6b; outline-offset:2px; }
.running-controls-guide details > p { margin:12px 0 8px; line-height:1.5; }
.running-controls-guide dl {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin:0;
}
.running-controls-guide dl > div { min-width:0; padding:8px; background:#fff; border-radius:10px; }
.running-controls-guide dt { display:flex; gap:6px; align-items:center; font-weight:700; overflow-wrap:anywhere; }
.running-controls-guide dt svg { flex:none; }
.running-controls-guide dd { margin:4px 0 0; }
.running-controls-guide kbd { font:inherit; font-size:.875rem; white-space:normal; overflow-wrap:anywhere; }
.running-bank-groups{display:flex;flex-wrap:wrap;gap:8px}.running-rule-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.running-rule-card{display:flex;gap:14px;padding:20px;background:#fff;border:1px solid #d9e4e8;border-radius:22px;min-width:0}.running-rule-card h2{font-size:1.125rem;line-height:1.4;margin:0 0 8px}.running-rule-card p{font-size:.9375rem;line-height:1.6;margin:0 0 16px}.running-rule-mark{width:44px;height:44px;border-radius:14px}.running-new{display:block;font-size:.8125rem;color:#23634f;margin-bottom:4px}
.running-rule-guide{position:absolute;left:16px;right:16px;top:132px;max-width:500px;margin:auto;text-align:center;pointer-events:none;padding:10px 14px;background:rgba(255,255,255,.94);color:#213b50;border:1px solid #bfd4df;border-radius:16px;box-shadow:0 4px 15px #17344512}.running-rule-guide p{font-size:.875rem;line-height:1.5;margin:0 0 4px}.running-rule-guide [data-running-cue]{font-size:1rem;font-weight:800;line-height:1.4}.running-rule-guide [data-running-clock]{display:block;font-size:.8125rem;color:#516277;margin-top:3px}.running-rule-guide .is-warning{color:#7d3e11}.running-inverted .steer-controls{outline:3px solid #865777;outline-offset:4px;border-radius:20px}
@media(max-width:900px){.running-rule-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.running-setup{grid-template-columns:1fr;padding:16px;gap:20px}.running-course-art>img:first-child{max-height:240px}.running-rule-grid{grid-template-columns:1fr}.running-page{padding:16px}.running-heading{gap:12px}.running-mark{width:52px;height:52px;border-radius:16px}.running-rule-guide{left:12px;right:12px;top:122px}.running-rule-guide p{font-size:.8125rem}.running-rule-guide [data-running-cue]{font-size:.9375rem}}
.running-lane-symbol{display:inline-block;width:18px;height:18px;margin-right:6px;vertical-align:-3px;background:#b24d90}.running-lane-symbol.lane-0{clip-path:polygon(50% 0,61% 35%,98% 35%,68% 58%,79% 94%,50% 72%,21% 94%,32% 58%,2% 35%,39% 35%)}.running-lane-symbol.lane-1{border-radius:50%;background:#327891}.running-lane-symbol.lane-2{background:#a57428}
.run-focused .race-top{top:96px;left:20px}.run-focused .lap-map{top:92px;right:20px}.run-focused .rule-pill{top:100px}.run-focused .rule-next{top:145px}.run-focused .running-rule-guide{top:177px}
@media(max-width:700px){.run-focused .race-top{top:90px;left:12px}.run-focused .lap-map{top:90px;right:12px}.run-focused .rule-pill{top:150px}.run-focused .rule-next{top:190px}.run-focused .running-rule-guide{top:220px}.run-focused .race-top .shorts-tool{min-width:44px;min-height:44px}}
@media(min-width:701px) and (max-height:560px){.run-focused .race-top,.run-focused .lap-map{top:72px}.run-focused .rule-pill{top:76px}.run-focused .rule-next{top:116px}.run-focused .running-rule-guide{top:146px;left:25%;right:25%}}
@media(max-width:360px){.running-rule-guide{top:116px;padding:8px}.running-rule-card{padding:16px;gap:10px}}
@media(prefers-reduced-motion:reduce){.running-page *{scroll-behavior:auto;animation:none;transition:none}}

/* UX75: shared, vertical-first free flows. No bitmap labels or external fonts.
 * Rem typography follows system zoom. Grid children shrink; user text wraps.
 * Form errors stay beside their field and status does not move keyboard focus. */
.free-surface{max-width:1060px;margin:0 auto;padding:12px 0 40px;font-size:1rem;line-height:1.6}
.free-surface [hidden]{display:none!important}
.free-usage-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:24px}.free-usage-grid .free-chip{margin-bottom:18px}
.free-usage-number{font-size:1.7rem;font-weight:750;letter-spacing:-.03em}.free-usage-number span{font-size:.875rem;font-weight:500;letter-spacing:0;color:#535e70}
.free-usage-grid progress{width:100%;height:12px;border:0;border-radius:999px;accent-color:#5941b4;overflow:hidden}.free-usage-note{margin:24px 0}.free-owned-links{margin:22px 0}
@media(max-width:760px){.free-usage-grid{grid-template-columns:minmax(0,1fr)}}
.free-heading{display:flex;justify-content:space-between;gap:24px;align-items:center;margin:28px 0 24px}
.free-heading h1{font-size:clamp(1.8rem,4vw,2.5rem);line-height:1.2;margin:8px 0 12px;letter-spacing:-.035em}
.free-heading p{max-width:650px;margin:0;color:var(--muted,#535e70);overflow-wrap:anywhere}
.free-kicker,.free-chip{display:inline-flex;align-items:center;border-radius:999px;padding:4px 12px;background:#eeeafb;color:#4d369f;font-size:.875rem;font-weight:700}
.free-heading-icon{display:grid;place-items:center;flex:none;width:68px;height:68px;border-radius:22px;background:#eeeafb;color:#5941b4}
.free-tabs{display:flex;flex-wrap:wrap;gap:8px;padding:8px 0 22px;border-bottom:1px solid #dde3ec}
.free-tabs a{min-height:48px;display:inline-flex;align-items:center;gap:8px;padding:10px 16px;border:1px solid #dce3ec;border-radius:14px;background:#fff;color:#394258;text-decoration:none;font-weight:650}
.free-tabs a[aria-current=page]{background:#5941b4;color:#fff;border-color:#5941b4}
.free-columns{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:24px;align-items:start}
.free-card{min-width:0;border:1px solid #dde3ec;border-radius:22px;background:#fff;padding:24px;box-shadow:0 4px 18px #1c2e5110}
.free-card h2,.free-card h3,.free-section h2{margin:0 0 12px;font-size:1.25rem;line-height:1.4;overflow-wrap:anywhere}
.free-card h4{margin:0 0 8px;font-size:1rem}
.free-card p{margin:8px 0 16px;overflow-wrap:anywhere}
.free-card form{display:grid;gap:8px}.free-card form>label{font-weight:700;margin-top:12px}
.free-card input:not([type=checkbox]),.free-card textarea,.free-filter select{width:100%;min-width:0;min-height:48px;border:1px solid #bac5d4;border-radius:12px;background:#fff;color:#202736;padding:12px 14px;font:inherit;line-height:1.5}
.free-card textarea{resize:vertical;min-height:160px}.free-card [aria-invalid=true]{border-color:#a82e3b;box-shadow:0 0 0 1px #a82e3b}
.free-card .free-field-error{color:#a82e3b;font-size:.875rem;min-height:0;margin:0}.free-field-error:empty{display:none}
.free-card .free-hint,.free-hint,.free-date{color:#535e70;font-size:.875rem;line-height:1.55}
.free-guide{background:linear-gradient(145deg,#f4f0ff,#fff)}.free-guide ol{margin:18px 0 24px;padding-left:24px;display:grid;gap:12px}
.free-status{min-height:0;margin:16px 0;color:#394258;overflow-wrap:anywhere}.free-status:empty{display:none}.free-status[role=alert]{border-left:4px solid #a82e3b;padding:10px 14px;background:#fff0f1;color:#8b2432;border-radius:8px}
.free-empty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px;padding:44px 24px;border:1px dashed #cbd5e4;border-radius:22px;background:#fff;margin:20px 0}
.free-empty h2,.free-empty p{max-width:560px;margin:0}.free-empty.compact{padding:24px}
.free-section{margin-top:32px}.free-section>header,.free-mine-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin:18px 0}
.free-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.free-card-top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.free-state{font-weight:700;font-size:.875rem;color:#394258}.free-user-text{white-space:pre-wrap;overflow-wrap:anywhere;max-height:32rem;overflow:auto;overscroll-behavior:contain}
.free-reply{padding:18px;border-radius:14px;background:#f4f6fb;margin:20px 0}.free-reply p{margin-bottom:0}
.free-filter{display:grid;grid-template-columns:auto minmax(180px,240px) minmax(0,1fr);align-items:center;gap:16px;margin-bottom:24px}.free-filter label{font-weight:700}.free-filter .free-hint{margin:0}
.free-details{display:grid;gap:12px;margin:20px 0}.free-details>div{display:grid;grid-template-columns:72px minmax(0,1fr);gap:12px}.free-details dt{font-size:.875rem;color:#535e70}.free-details dd{margin:0;overflow-wrap:anywhere}
.free-terms{margin:20px 0;border:1px solid #dde3ec;border-radius:12px;padding:12px 16px}.free-terms summary{cursor:pointer;min-height:28px;font-weight:700}.free-terms[open] summary{margin-bottom:12px}
.free-consent{display:flex;gap:12px;align-items:flex-start;margin:16px 0;font-size:.9375rem}.free-consent input{width:22px;height:22px;flex:none;accent-color:#5941b4;margin-top:2px}
.free-pending{border:1px solid #d1b984;background:#fff9ed;padding:20px;border-radius:18px;margin:20px 0}.free-pending h2{font-size:1.125rem;margin:0 0 8px}.free-pending p{margin:8px 0 16px}
.free-surface .btn{min-height:48px;gap:8px;white-space:normal;text-align:center}.free-surface .actions{gap:10px;flex-wrap:wrap}.free-surface :focus-visible{outline:3px solid #247b9e;outline-offset:3px}
@media(max-width:760px){.free-columns,.free-list{grid-template-columns:minmax(0,1fr)}.free-heading-icon{width:56px;height:56px;border-radius:18px}.free-heading{gap:16px;margin:22px 0}.free-card{padding:20px}.free-filter{grid-template-columns:1fr}.free-filter select{max-width:none}.free-tabs a{flex:1 1 calc(33% - 8px);justify-content:center;padding:10px}.free-details>div{grid-template-columns:64px minmax(0,1fr)}}
@media(max-width:380px){.free-tabs a{flex-basis:calc(50% - 8px)}.free-heading-icon{display:none}.free-card{padding:16px}.free-surface .actions>.btn{flex:1 1 auto}}
@media(prefers-reduced-motion:reduce){.free-surface *{scroll-behavior:auto;animation:none;transition:none}}

/* Confirmed-owner stale view; status remains readable without motion. */
.free-read-notice{font-size:1rem;line-height:1.6;padding:.8rem 1rem;border-left:.25rem solid var(--accent,#465de8);background:var(--soft,#f1f5f9);overflow-wrap:anywhere}
@media(forced-colors:active){.free-read-notice{border:1px solid CanvasText;border-left-width:.25rem}}

/* Related task navigation: two to four short, labelled destinations. */
.free-tabs{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(8rem,100%),1fr));gap:.65rem}
.free-tabs a{min-width:0;min-height:3rem;padding:.65rem .85rem;font-size:1rem;line-height:1.4;justify-content:center;overflow-wrap:anywhere}
@media(max-width:40rem){.free-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(forced-colors:active){.free-tabs a{border:1px solid ButtonText}.free-tabs a[aria-current=page]{outline:2px solid Highlight;outline-offset:2px}}
.free-contest-entry{border-top:1px solid var(--line);margin-top:1.25rem;padding-top:1rem}
.free-contest-entry h4{font-size:1rem;margin:0 0 .75rem}
.free-result-choices{border:0;padding:0;margin:1.25rem 0;display:grid;gap:.75rem}
.free-result-choices legend{font-weight:700;margin-bottom:.75rem}
.free-result-choices label{display:flex;align-items:center;gap:.75rem;padding:1rem;border:1px solid var(--line);border-radius:1rem;min-height:3rem;cursor:pointer}
.free-result-choices label:has(input:checked){border:2px solid var(--accent);background:var(--soft)}
.free-result-choices input{flex:0 0 auto;width:1.25rem;height:1.25rem;accent-color:var(--accent)}
.free-result-choices span{min-width:0;overflow-wrap:anywhere}.free-result-choices strong,.free-result-choices small{display:block}
.free-result-choices small{margin-top:.25rem;color:var(--muted)}
.free-result-choices label:focus-within{outline:3px solid var(--accent);outline-offset:3px}
@media(forced-colors:active){.free-result-choices label:has(input:checked){border-color:Highlight}.free-result-choices label:focus-within{outline-color:Highlight}}

/* Explicit cloud private-help controls. Labels remain independent HTML. */
.help-lifecycle128 .help-actions128{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:12px 0}.help-lifecycle128 .help-actions128 .btn{min-height:48px;white-space:normal;overflow-wrap:anywhere}.help-lifecycle128 .help-hint128{flex-basis:100%;margin:0;line-height:1.6;color:#535e70}.help-lifecycle128 h1,.help-lifecycle128 [role=status]{overflow-wrap:anywhere}@media(max-width:640px){.help-lifecycle128 .help-actions128{display:grid;grid-template-columns:minmax(0,1fr)}.help-lifecycle128 .help-actions128 .btn{width:100%}}

/* UX75 private rooms: shared type/tokens, portrait first; no text baked in art. */
.room-page{max-width:1080px;margin:0 auto;padding:clamp(8px,2vw,24px);font-size:1rem;line-height:1.65;color:var(--ink,#222333)}
.room-page [hidden]{display:none!important}.room-nav,.room-section-heading,.room-card header,.room-heading{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.room-nav{margin-bottom:24px}.room-heading{margin-bottom:24px}.room-heading>span{display:grid;place-items:center;width:64px;height:64px;border-radius:22px;background:#eee9fc;color:#6850a0}.room-heading h1{font-size:clamp(1.625rem,4vw,2.375rem);margin:0;letter-spacing:-.035em}.room-heading p{margin:4px 0}.room-heading .overline{font-size:.75rem;letter-spacing:.1em;color:#686778}
.room-entry-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.room-card,.room-note{padding:clamp(20px,3vw,28px);border:1px solid #e2e0e9;border-radius:24px;background:#fff;box-shadow:0 4px 14px #24203605}.room-card h2{font-size:1.35rem;margin:0 0 20px;display:flex;align-items:center;gap:10px}.room-card form{display:grid;gap:18px}.room-card label{font-weight:600;display:grid;gap:8px}.room-card input:not([type=checkbox]):not([type=radio]),.room-card select{font:inherit;width:100%;min-height:48px;padding:10px 14px;border:1px solid #cfccd9;border-radius:12px;background:#fcfbfe;box-sizing:border-box}.room-form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}.room-character-picker{border:0;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.room-character-picker legend{font-weight:600;margin-bottom:8px}.room-character-picker label>span{border:1px solid #ded9e8;border-radius:14px;display:grid;place-items:center;padding:8px;font-size:.8rem}.room-character-picker input{width:18px;height:18px;margin:0 auto}.room-character-picker input:checked+span{border-color:#8065bd;background:#f2ecfc}.room-character-picker img{object-fit:contain;width:64px;max-width:100%;height:64px}.room-consent{display:flex!important;align-items:flex-start;gap:10px!important;font-size:.9rem;font-weight:400!important}.room-consent input{width:20px;height:20px;flex:none;margin:4px 0}.room-page .btn{min-height:48px;font-size:1rem;display:inline-flex;align-items:center;justify-content:center;gap:8px}.room-status{min-height:1.65em;margin:12px 0}.room-status[role=alert]{color:#a13e44}.room-note{background:#fff7e6;margin-bottom:20px}.room-section{margin-top:28px}.room-section-heading{justify-content:space-between;margin-bottom:16px}.room-section-heading h2{margin:0}.room-history{display:grid;gap:16px;grid-template-columns:repeat(2,minmax(0,1fr))}.room-card header{justify-content:space-between;font-size:.86rem;margin-bottom:16px}.room-chip{border-radius:100px;padding:4px 12px;background:#f0ecf7;color:#655186}.room-empty{padding:40px 20px;text-align:center;border:1px dashed #d9d3e4;border-radius:24px;background:#fcfbfe}.room-code-card{display:grid;gap:8px;justify-items:center;text-align:center;background:#f5f1fc;border-radius:18px;padding:20px;margin:20px 0}.room-code-card strong{font-family:ui-monospace,Consolas,monospace;font-size:clamp(20px,4vw,32px);letter-spacing:.08em;word-break:break-all}.room-code-card p{font-size:.9rem;margin:0}.room-roster{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.room-runner{min-width:0;display:grid;justify-items:center;gap:4px;padding:18px 8px;border-radius:16px;background:#f7f6fa;border:1px solid #eeeaf4}.room-runner strong{word-break:break-word;font-size:.95rem}.room-runner small{color:#655e73}.room-runner.is-own{background:#edf7f3;border-color:#95c4b4}.room-result{padding:20px;background:#edf7f3;border-radius:18px;margin:20px 0}.room-result h2{margin:0 0 6px}.room-result p{margin:0}
.room-race{max-width:740px;margin:auto}.room-race-hud{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:14px 16px;border-radius:16px;background:#29233d;color:#fff;font-size:.85rem}.room-race-hud strong{font-size:1rem;text-align:center}.room-rule-hint{min-height:1.6em;margin:10px 0;font-size:.9rem}.room-stage{position:relative;height:min(66vh,680px);min-height:360px;overflow:hidden;border-radius:24px;background:linear-gradient(#cfecf4,#e8ddf8)}.room-stage canvas{display:block;width:100%;height:100%;outline-offset:-4px}.room-countdown{position:absolute;inset:0;display:grid;place-items:center;font-size:5rem;font-weight:800;text-shadow:0 2px 14px #ffffffa0;pointer-events:none}.room-render-error{position:absolute;inset:20%;padding:20px;background:#fff;border-radius:20px;align-self:center}.room-controls{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;margin:14px 0;touch-action:none}.room-controls button{font:inherit;font-size:.85rem;min-width:0;min-height:64px;border:1px solid #d6cfdf;border-radius:16px;background:#fff;display:grid;place-items:center;gap:4px;touch-action:none;user-select:none}.room-controls button[aria-pressed=true]{background:#e9e0f8;border-color:#8c74b3}.room-controls button:focus-visible,.room-page .btn:focus-visible{outline:3px solid #8c74b3;outline-offset:3px}.room-race-pack{font-size:.8rem;color:#6a6475;overflow-wrap:anywhere;margin:12px 0}
@media(max-width:680px){.room-entry-grid,.room-history{grid-template-columns:1fr}.room-roster{grid-template-columns:repeat(2,minmax(0,1fr))}.room-nav{gap:6px}.room-nav .btn{font-size:.86rem;padding:8px 10px}.room-stage{height:min(62vh,600px)}.room-controls{gap:5px}.room-controls button{font-size:.75rem;min-height:60px;padding:6px 2px}.room-form-row{grid-template-columns:1fr 1fr}.room-race-hud{padding:12px 10px}.room-heading{gap:12px}.room-heading>span{width:52px;height:52px;border-radius:18px}}
@media(prefers-reduced-motion:reduce){.room-page *, .room-page *::before,.room-page *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.room-entry-choices,.room-result-actions{display:flex;flex-wrap:wrap;gap:12px;margin-block:12px}
.room-entry-choices>.btn,.room-result-actions>.btn{max-width:100%;white-space:normal}
.room-entry-single{grid-template-columns:minmax(0,1fr);max-width:44rem}
.room-entry-single .room-card{min-width:0}
@media(max-width:420px){.room-entry-choices>.btn,.room-result-actions>.btn{flex:1 1 8rem}.room-entry-single .room-form-row{grid-template-columns:1fr}}

/* Six controls stay at least 48px wide on small portrait screens. */
.room-controls kbd{font-size:.75rem;line-height:1.4;font-family:ui-monospace,Consolas,monospace;color:#625777}
/* UX76 result continuation: portrait form in the existing modal, never a new
 * character image or a forced wizard. Native radio/checkbox semantics remain. */
#room-rematch{display:grid;gap:1.125rem}
#room-rematch>label{display:grid;gap:.5rem;font-weight:600}
#room-rematch input:not([type=radio]):not([type=checkbox]),#room-rematch select{width:100%;min-width:0;font:inherit;min-height:3rem;padding:.625rem .875rem;border:1px solid #868982;border-radius:.75rem;background:#fff;box-sizing:border-box}
#room-rematch .room-character-picker label{display:grid;gap:.5rem}
#room-rematch .room-character-picker input:checked+span{border-color:#8b6b23;background:#f7efdc}
#room-rematch [data-room-form-error]:empty{display:none}
@media(max-width:360px){#room-rematch .room-form-row{grid-template-columns:1fr}}
@media(max-width:520px){.room-controls{grid-template-columns:repeat(3,minmax(48px,1fr));gap:8px}.room-controls button{font-size:.95rem;min-height:64px}.room-controls kbd{display:none}}

/* UX80: whole approved pictures with separate editable title/attribution.
 * A room has at most eight reactions. No animation, spritesheet cropping,
 * fixed text height, automatic scrolling or background refresh is introduced. */
.room-runner-cheer{margin:.75rem 0 0;display:grid;justify-items:center;gap:.25rem}
.room-runner-cheer img{width:3rem;height:3rem;object-fit:contain}
.room-runner-cheer figcaption{font-size:.875rem;line-height:1.5;overflow-wrap:anywhere;max-width:100%;color:#51465f}
.room-cheer-picker{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(8rem,100%),1fr));gap:.75rem}
.room-cheer-picker button{font:inherit;display:grid;justify-items:center;align-content:start;gap:.5rem;min-width:0;min-height:3rem;padding:1rem .75rem;border:1px solid #8b8495;border-radius:1rem;background:#fff;color:#302638;text-align:center;overflow-wrap:anywhere}
.room-cheer-picker img{width:4rem;height:4rem;object-fit:contain}
.room-cheer-picker small{font-size:.875rem;line-height:1.5;max-width:100%;color:#51465f}
.room-cheer-picker button[aria-pressed=true]{border-width:2px;border-color:#694c89;background:#f0eaf6}
.room-cheer-picker button:focus-visible{outline:3px solid #694c89;outline-offset:3px}
@media(forced-colors:active){.room-cheer-picker button[aria-pressed=true]{border-color:Highlight}.room-cheer-picker button:focus-visible{outline-color:Highlight}}

/* Roulette/slot race: original race scene, bounded turn-triggered motion. */
.roulette-page{max-width:1040px;margin:auto;padding:24px 16px 64px}
.roulette-page header h1{font-size:clamp(1.8rem,5vw,3rem);margin:.5rem 0}
.roulette-page .roulette-nav,.roulette-actions{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0}
.roulette-setup,.roulette-scenario,.roulette-results,.roulette-lobby{padding:clamp(16px,3vw,28px);border:1px solid var(--rom-border,#cbd5e1);border-radius:24px;background:var(--rom-surface,#fff);margin:20px 0}
.roulette-intro141{display:block;width:min(176px,50%);height:auto;aspect-ratio:1;object-fit:contain;margin:0 auto 12px}
.roulette-setup label{display:grid;gap:8px;margin:16px 0}
.roulette-page input:not([type=checkbox]),.roulette-page select{min-height:48px;max-width:100%;width:100%;padding:12px;font:inherit;border:1px solid #94a3b8;border-radius:12px}
.roulette-consent{display:flex!important;align-items:flex-start;gap:12px!important}
.roulette-consent input{min-width:24px;min-height:24px}
.roulette-page .btn{min-height:48px;gap:8px;white-space:normal;overflow-wrap:anywhere}
.roulette-stage{min-width:0}.roulette-page p,.roulette-page li,.roulette-page h2{overflow-wrap:anywhere}
.roulette-scenario{background:linear-gradient(135deg,#eef2ff,#e0f2fe);color:#172554}
.roulette-scenario p{color:#334155}
.roulette-wheel{display:grid;place-items:center;width:112px;height:112px;border-radius:50%;margin:16px auto;border:10px solid #fff;box-shadow:0 4px 20px #243b5322;background:conic-gradient(#dbeafe 0deg 60deg,#fce7f3 60deg 120deg,#fef3c7 120deg 180deg,#dcfce7 180deg 240deg,#ede9fe 240deg 300deg,#cffafe 300deg);font-size:2.5rem;font-weight:800;color:#172554}
.roulette-round{font-variant-numeric:tabular-nums;font-weight:700}
.roulette-lanes{display:grid;gap:12px;padding:0;list-style:none}
.roulette-lane{padding:12px;border:1px solid #cbd5e1;border-radius:16px;background:#f8fafc;color:#1e293b}
.roulette-lane strong{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-variant-numeric:tabular-nums}
.roulette-track{position:relative;height:88px;overflow:hidden;border-radius:12px;background:repeating-linear-gradient(90deg,#e0f2fe 0 48px,#eff6ff 48px 96px);margin-top:8px;border-bottom:3px solid #94a3b8}
.roulette-track img{position:absolute;bottom:0;left:clamp(0px,calc(var(--roulette-progress,0)*1% - 32px),calc(100% - 64px));width:64px;height:64px;object-fit:contain;transition:left .55s ease-out}
.roulette-action-jump img{animation:roulette-hop .5s ease-out 1}
.roulette-action-dash img{animation:roulette-dash .45s ease-out 1}
.roulette-action-slide img{animation:roulette-slide .5s ease-out 1}
.roulette-action-stumble img{animation:roulette-wobble .5s ease-out 1}
.roulette-results ol{padding:0;list-style:none;display:grid;gap:12px}
.roulette-results h2{scroll-margin-block-start:1rem}
.roulette-own-result141{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 12px;margin:12px 0;padding:12px 16px;border:1px solid #5775ba;border-radius:12px;background:#f4f7ff;color:#172554}
.roulette-results li{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;padding:16px;border-radius:12px;background:#eef2ff;color:#172554}
.roulette-code{font-size:clamp(1rem,5vw,1.8rem);letter-spacing:.08em;overflow-wrap:anywhere;user-select:all}
@keyframes roulette-hop{50%{transform:translateY(-20px) rotate(-8deg)}}
@keyframes roulette-dash{50%{transform:skewX(-12deg) translateX(8px)}}
@keyframes roulette-slide{50%{transform:translateY(6px) rotate(14deg)}}
@keyframes roulette-wobble{25%{transform:rotate(-12deg)}75%{transform:rotate(12deg)}}
@media(prefers-reduced-motion:reduce){.roulette-page *{animation:none!important;transition:none!important}}
@media(max-width:380px){.roulette-page{padding-inline:12px}.roulette-actions>*{flex:1 1 100%}.roulette-setup,.roulette-scenario,.roulette-results{padding:16px}}


/* One explicit draw owns these short animations. The numeral and pointer stay
   legible while the six-sector disk turns to the server/browser crypto face. */
.roulette-wheel{position:relative;isolation:isolate;background:#fff}
.roulette-wheel::before{content:"";position:absolute;inset:0;z-index:0;border-radius:50%;background:conic-gradient(#dbeafe 0deg 60deg,#fce7f3 60deg 120deg,#fef3c7 120deg 180deg,#dcfce7 180deg 240deg,#ede9fe 240deg 300deg,#cffafe 300deg);transform:rotate(var(--roulette-to,0deg))}
.roulette-wheel::after{content:"";position:absolute;z-index:2;top:-9px;left:calc(50% - 6px);border-left:6px solid transparent;border-right:6px solid transparent;border-top:12px solid #2449a6}
.roulette-face141{position:relative;z-index:1;display:grid;place-items:center;width:max(48px,1.5em);height:max(48px,1.5em);border-radius:50%;background:#ffffffeb;font-size:1.25rem;line-height:1}
.roulette-wheel.is-spinning141::before{animation:roulette-spin141 .72s cubic-bezier(.15,.75,.25,1) both}
@keyframes roulette-spin141{from{transform:rotate(var(--roulette-from,0deg))}to{transform:rotate(var(--roulette-to,0deg))}}
.roulette-action-jump{--roulette-action-animation:roulette-hop}
.roulette-action-dash{--roulette-action-animation:roulette-dash}
.roulette-action-slide{--roulette-action-animation:roulette-slide}
.roulette-action-stumble{--roulette-action-animation:roulette-wobble}
.roulette-action-run{--roulette-action-animation:roulette-run141}
.roulette-action-shield{--roulette-action-animation:roulette-brace141}
.roulette-score-move141 img{animation-name:roulette-progress141,var(--roulette-action-animation,none);animation-duration:.6s,.5s;animation-timing-function:ease-out;animation-iteration-count:1;animation-fill-mode:both,none}
@keyframes roulette-progress141{from{left:clamp(0px,calc(var(--roulette-before,0)*1% - 32px),calc(100% - 64px))}to{left:clamp(0px,calc(var(--roulette-progress,0)*1% - 32px),calc(100% - 64px))}}
@keyframes roulette-run141{25%,75%{transform:translateY(-4px)}50%{transform:translateY(0)}}
@keyframes roulette-brace141{50%{transform:scale(.92)}}
@media(prefers-reduced-motion:reduce){.roulette-wheel::before{animation:none!important}}

/* One shared course canvas owns the original characters, scenery and actions.
   It draws only during a committed move; score rows remain readable text. */
.spinner-world141{height:clamp(300px,52vh,560px);position:relative;overflow:hidden;border-radius:24px;background:#d7edf3;border:1px solid #9dbdc7;margin:20px 0}
.spinner-world141[hidden]{display:none}
.spinner-world-canvas141{display:block;width:100%;height:100%}
.has-spinner-world141 .roulette-track{display:none}
.has-spinner-world141 .roulette-lanes{grid-template-columns:repeat(2,minmax(0,1fr))}
.has-spinner-world141 .roulette-lane{padding:12px;background:#fff}
.has-spinner-world141 .roulette-lane strong{font-size:.95rem}
.roulette-results[hidden],.roulette-actions[data-roulette-next-room][hidden]{display:none}
.spinner-style141{display:flex;gap:12px;flex-wrap:wrap;margin-block:16px}
.spinner-style141 [aria-current=page]{box-shadow:inset 0 0 0 2px #2449a6;background:#edf4ff}
.slot-machine141{position:relative;max-width:320px;margin:20px auto;padding:20px 24px;border:2px solid #b79052;border-radius:24px;background:linear-gradient(155deg,#fff5d7,#f1cf91);box-shadow:inset 0 3px #fff9ed,0 8px 0 #b88749,0 16px 28px #37315a24}
.slot-reels141{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;border:6px solid #705337;border-radius:14px;background:#705337;overflow:hidden}
.slot-reel141{position:relative;overflow:hidden;display:grid;justify-items:center;align-content:center;min-height:88px;color:#24455e;background:linear-gradient(#e6eef1,#fff 22%,#fff 78%,#dbe6ea);border-radius:6px}
.slot-reel141 span{font-size:1.2rem;font-weight:800;line-height:1.3}
.slot-handle141{position:absolute;width:6px;height:48px;border-radius:4px;right:6px;top:34px;background:#705337}
.slot-handle141:after{content:"";position:absolute;width:16px;height:16px;border-radius:50%;background:#bb4b5d;top:-8px;left:-5px;box-shadow:inset 2px 2px #ffe5c9}
.slot-machine141.is-spinning141 .slot-reel141>*{animation:slot-result141 .96s calc(var(--reel)*.12s) ease-out both}
.slot-machine141.is-spinning141 .slot-reel141::after{content:'✦  ◆  ✧  ●  ✦  ◆  ✧  ●';position:absolute;inset:-150% 0;display:flex;align-items:center;justify-content:center;writing-mode:vertical-rl;letter-spacing:1.05em;font-size:1.25rem;color:#496b80;background:linear-gradient(#e6eef1,#fff 24%,#fff 76%,#dbe6ea);animation:slot-strip141 .96s calc(var(--reel)*.12s) cubic-bezier(.2,.65,.25,1) both;pointer-events:none}
@keyframes slot-strip141{0%{transform:translateY(-18%);opacity:1}75%{opacity:1}100%{transform:translateY(18%);opacity:0}}
@keyframes slot-result141{0%,70%{transform:translateY(-12px);opacity:0}90%{transform:translateY(3px);opacity:1}100%{transform:translateY(0);opacity:1}}
@media(max-width:600px){.spinner-world141{height:46vh;min-height:300px;border-radius:18px}.has-spinner-world141 .roulette-lanes{grid-template-columns:1fr}.roulette-page .roulette-scenario{padding:16px}.slot-machine141{max-width:280px;padding:16px 20px}}
@media(prefers-reduced-motion:reduce){.slot-machine141 *,.slot-machine141 .slot-reel141::after{animation:none!important}.slot-machine141 .slot-reel141::after{display:none}}

/* Keep the original course and its controls in one arena, without covering
   the runners. The control row grows with its actual text. */
/* A portrait-sized arena keeps the course, result and action together on PC.
   On narrow screens it still takes the available width and grows with text. */
.has-spinner-world141 .spinner-world141{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:clamp(200px,35vh,440px) auto;width:min(100%,640px);height:auto;min-height:0;overflow:visible;margin-inline:auto}
.has-spinner-world141 .roulette-stage{width:min(100%,640px);margin-inline:auto}
.has-spinner-world141 .spinner-world141[hidden]{display:none}
.spinner-world141>.spinner-world-canvas141{display:block;box-sizing:border-box;width:100%;height:100%;min-width:0;min-height:0;border-radius:24px 24px 0 0}
.spinner-world141>.roulette-scenario{position:static;box-sizing:border-box;width:100%;max-width:none;margin:0;padding:12px 16px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 12px;border:1px solid #b3c5db;border-radius:0 0 18px 18px;background:#fffffff2;box-shadow:0 3px 16px #1a35542a}
.spinner-world141>.roulette-scenario h2{grid-column:1;grid-row:1;min-width:0;margin:0;font-size:1rem}
/* The general player heading is more specific; retain this game's intended
   proportion while allowing the root text size to scale normally. */
body:not(.in-shorts) .player-main .spinner-world141>.roulette-scenario h2{font-size:1rem;line-height:1.35}
.spinner-world141>.roulette-scenario h2+p{grid-column:1/-1;grid-row:2;min-width:0;margin:0;font-size:.83rem;line-height:1.35}
.spinner-world141>.roulette-scenario>p[role=status]{grid-column:1/-1;grid-row:3;min-width:0;margin:0;font-size:.9rem;line-height:1.35}
.spinner-world141>.roulette-scenario>.roulette-wheel{grid-column:2;grid-row:1;width:62px;height:62px;margin:0}
.spinner-world141>.roulette-scenario>.slot-machine141{grid-column:2;grid-row:1;box-sizing:border-box;width:138px;padding:8px 12px;margin:0;box-shadow:inset 0 2px #fff9ed,0 4px #b88749;max-width:100%}
.spinner-world141 .slot-reels141{gap:4px;border-width:3px;border-radius:8px}
.spinner-world141 .slot-reel141{min-height:50px}
.spinner-world141 .slot-reel141 svg{width:22px;height:22px}
.spinner-world141 .slot-reel141 span{font-size:.9rem}
.spinner-world141 .slot-handle141{height:30px;right:2px;top:22px;width:4px}
.spinner-world141 .slot-handle141:after{width:10px;height:10px;left:-3px}
.spinner-world141>.roulette-scenario>.roulette-actions{grid-column:1/-1;grid-row:4;margin:0;justify-content:center}
.spinner-world141>.roulette-scenario>.roulette-actions .btn{width:min(100%,28rem);min-height:48px}
.spinner-world141>.roulette-scenario>.roulette-actions+p{display:block;grid-column:1/-1;grid-row:5;min-width:0;margin:0;font-size:.9rem;line-height:1.35}
/* The chase summary is a read-only scene overlay; the full participant list
   remains in the page. Without a 3D scene it stays in ordinary document flow. */
.roulette-own-state141[hidden]{display:none}
.has-spinner-world141 .spinner-world141>.roulette-scenario>.roulette-own-state141{position:absolute;z-index:2;top:12px;right:12px;width:min(12rem,calc(100% - 24px));pointer-events:none}
.roulette-own-state141 .chase-health141 small{font-size:.75rem}
@media(max-width:600px){
 .roulette-page .spinner-world141>.roulette-scenario{padding:12px}
 /* Keep the course and action visible together on a narrow screen. */
 .spinner-world141>.roulette-scenario h2{grid-column:1;grid-row:1}
 .spinner-world141>.roulette-scenario>.roulette-wheel,.spinner-world141>.roulette-scenario>.slot-machine141{grid-column:2;grid-row:1;justify-self:end}
 .spinner-world141>.roulette-scenario>.slot-machine141{width:116px;padding:7px 10px}
 .spinner-world141>.roulette-scenario h2+p{grid-row:3}
 .spinner-world141>.roulette-scenario>p[role=status]{grid-row:4}
 .spinner-world141>.roulette-scenario>.roulette-actions{grid-row:5}
 .spinner-world141>.roulette-scenario>.roulette-actions+p{grid-row:6}
 .roulette-page .spinner-world141>.roulette-scenario>.roulette-actions .btn{box-sizing:border-box;min-width:0;min-height:48px;padding-inline:12px;gap:12px}
 .roulette-page .spinner-world141>.roulette-scenario>.roulette-actions .btn svg{flex:0 0 18px}
 .roulette-page .spinner-world141>.roulette-scenario>.roulette-actions .btn span{white-space:normal;overflow-wrap:normal;word-break:normal}
}

/* The slot cabinet should not squeeze a large, translated title into one
   narrow column. Keep both in the natural flow at narrow effective widths. */
@media(max-width:20rem){
 .spinner-world141>.roulette-scenario:has(>.slot-machine141) h2{grid-column:1/-1;grid-row:1}
 .spinner-world141>.roulette-scenario>.slot-machine141{grid-column:1/-1;grid-row:2;justify-self:end}
}

/* Active games share a portrait course surface with the direct race. The
   scenario remains in the grid so enlarged copy can increase its height. */
.roulette-page.gameplay-stage141.has-spinner-world141 .spinner-world141{
 /* Reserve 24px of viewport height (13.5px at the 9:16 width). The
    reveal logic needs a top gutter while the complete course stays visible. */
 --spinner-viewport-width141:calc(56.25dvh - 13.5px);
 width:min(100%,var(--spinner-viewport-width141));aspect-ratio:9/16;grid-template-rows:minmax(min-content,1fr);
 overflow:visible
}
.roulette-page.gameplay-stage141.has-spinner-world141 .spinner-world-canvas141{
 position:absolute;inset:0;width:100%;height:100%;border-radius:24px
}
.roulette-page.gameplay-stage141.has-spinner-world141 .spinner-world141>.roulette-scenario{
 grid-area:1/1;align-self:start;z-index:1;border-radius:18px;
 padding:8px 12px;gap:4px 12px;background:#fffffff2
}
/* Put health and controls together above the nearby runners. Every message
   stays in the grid and can wrap instead of overlapping a separate HUD. */
.roulette-page.gameplay-stage141.has-spinner-world141 .spinner-world141>.roulette-scenario>.roulette-own-state141{
 position:static;grid-column:1/-1;grid-row:1;width:auto;pointer-events:none
}
/* Keep health and distance together without a separate full-height row. */
.roulette-page.gameplay-stage141 .roulette-own-state141 .chase-health141{
 grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 12px;align-items:center
}
.roulette-page.gameplay-stage141 .roulette-own-state141 .chase-health141 span{
 grid-column:1;min-width:0;flex-wrap:wrap;overflow-wrap:anywhere
}
.roulette-page.gameplay-stage141 .roulette-own-state141 .chase-health141 small{
 grid-column:2;grid-row:1;min-width:0;text-align:right;overflow-wrap:anywhere
}
.roulette-page.gameplay-stage141 .roulette-own-state141 .chase-health141 meter{grid-column:1/-1;grid-row:2}
.roulette-page.gameplay-stage141.has-spinner-world141 .spinner-world141>.roulette-scenario>h2{grid-column:1;grid-row:2}
.roulette-page.gameplay-stage141.has-spinner-world141 .spinner-world141>.roulette-scenario>:is(.roulette-wheel,.slot-machine141){grid-column:2;grid-row:2}
.roulette-page.gameplay-stage141.has-spinner-world141 .spinner-world141>.roulette-scenario>h2+p{grid-row:3}
.roulette-page.gameplay-stage141.has-spinner-world141 .spinner-world141>.roulette-scenario>p[role=status]{grid-row:4}
.roulette-page.gameplay-stage141.has-spinner-world141 .spinner-world141>.roulette-scenario>.roulette-actions{grid-row:5}
.roulette-page.gameplay-stage141.has-spinner-world141 .spinner-world141>.roulette-scenario>.roulette-actions+p{grid-row:6}
/* Keep the first rank visible beside the player's summary on narrow screens. */
@media (max-width:380px){
 .roulette-results li{row-gap:6px;padding-block:8px}
}
/* Keep terminal controls clear of the persistent mobile navigation on focus. */
.roulette-page.gameplay-stage141{padding-bottom:max(calc(var(--rom-nav-clearance,0px) + 5rem),var(--roulette-focus-clearance141,0px))}
.roulette-page.gameplay-stage141 .roulette-results :is(button,a){scroll-margin-block-end:calc(var(--rom-nav-clearance,0px) + 12px)}
/* Use the available portrait screen for the course while preserving the
   surrounding page padding and all of the scenario controls. */
@media(max-width:600px) and (orientation:portrait){
 .roulette-page.gameplay-stage141.has-spinner-world141 .spinner-world141{
  /* The fixed bottom navigation owns its measured height. Keep the course
     above it while preserving its aspect ratio and the existing spin target. */
  --spinner-portrait-height141:calc(100dvh - var(--rom-nav-clearance,0px) - 24px);
  --spinner-portrait-width141:min(calc(100vw - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px)),calc(var(--spinner-portrait-height141) * .5625));
  width:var(--spinner-portrait-width141);max-width:none;
  margin-inline:calc((100% - var(--spinner-portrait-width141))/2)
 }
}
/* In short landscape viewports, leave controls in the ordinary scroll flow. */
@media(max-height:480px) and (orientation:landscape){
 .roulette-page.gameplay-stage141.has-spinner-world141 .spinner-world141{
  width:min(100%,640px);aspect-ratio:auto;grid-template-rows:minmax(200px,48vh) auto
 }
 .roulette-page.gameplay-stage141.has-spinner-world141 .spinner-world-canvas141{position:static;grid-area:1/1;border-radius:24px 24px 0 0}
 .roulette-page.gameplay-stage141.has-spinner-world141 .spinner-world141>.roulette-scenario{grid-area:2/1;border-radius:0 0 18px 18px}
}


/* Portrait first. Videos keep their original frame; copy remains editable DOM. */
.hall-page{max-width:960px;margin:0 auto;padding:12px 0 28px;font-size:1rem;line-height:1.55}
.hall-page [hidden]{display:none!important}.hall-page .btn{min-height:48px;gap:8px;font-size:1rem}
.hall-nav{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px}.hall-nav .btn{flex:1 0 auto}
.hall-heading{display:flex;align-items:flex-start;gap:14px;margin:0 0 16px}.hall-heading>span{display:grid;place-items:center;flex:0 0 56px;height:56px;background:var(--accent-soft,#eee7ff);border-radius:18px;color:var(--accent,#6947e8)}
.hall-heading h1{font-size:clamp(1.55rem,4.8vw,2.25rem);letter-spacing:-.025em;line-height:1.2;margin:3px 0 8px}.hall-heading p{margin:0;max-width:60ch}.hall-heading .overline{font-size:.7rem;letter-spacing:.12em}
.hall-status{min-height:1.6em;margin:8px 0}.hall-status[role=alert]{color:var(--danger,#b52d4b)}
.hall-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:16px;align-items:start}
.hall-card{border:1px solid var(--border,#dedde6);border-radius:22px;padding:18px;background:var(--surface,#fff);overflow:hidden}.hall-card.is-chosen{outline:2px solid var(--accent,#6947e8);outline-offset:2px}.hall-card h2{font-size:1.2rem;line-height:1.4;margin:14px 0 8px;overflow-wrap:anywhere}
.hall-video{background:#14151b;aspect-ratio:9/12;border-radius:14px;display:grid;place-items:center;overflow:hidden}.hall-video video{width:100%;height:100%;max-height:460px;object-fit:contain}.hall-author{display:flex;align-items:center;gap:8px;overflow-wrap:anywhere}
.hall-chip{display:inline-flex;padding:5px 10px;border-radius:100px;background:var(--accent-soft,#eee7ff);font-size:.85rem;margin-bottom:12px}
.hall-card>.btn{width:100%}.hall-consent{margin-top:20px}.hall-consent label{display:flex;align-items:flex-start;gap:12px;cursor:pointer}.hall-consent input{width:24px;height:24px;flex:0 0 24px;margin:0;accent-color:var(--accent,#6947e8)}.hall-consent .small{font-size:.92rem;margin:16px 0;color:var(--text-muted,#666575)}
.hall-empty,.hall-note{border:1px solid var(--border,#dedde6);border-radius:22px;padding:24px;background:var(--surface,#fff);margin:10px 0 18px}.hall-empty{text-align:center}.hall-empty h2,.hall-note h2{font-size:1.25rem;line-height:1.35;margin:12px 0}.hall-empty p{max-width:50ch;margin:12px auto 20px}.hall-empty .actions{justify-content:center}
.hall-page :focus-visible{outline:3px solid var(--accent,#6947e8);outline-offset:4px}.hall-page .actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}.hall-card .actions>.btn{flex:1 1 130px}
@media(max-width:480px){.hall-nav .btn{flex:1 1 calc(50% - 8px)}.hall-grid{grid-template-columns:1fr}.hall-card{padding:16px}.hall-heading{gap:10px}.hall-heading>span{flex-basis:48px;height:48px;border-radius:16px}}
@media(prefers-reduced-motion:reduce){.hall-page{scroll-behavior:auto}}

/* UX79: a deliberate refresh is available even on a populated list. */
.hall-toolbar{display:flex;justify-content:flex-end;margin-block:.75rem 1rem}.hall-toolbar .btn{min-height:3rem;font-size:1rem}

.hall-nav a[aria-current=page]{border-color:var(--focus);box-shadow:inset 0 -.18rem var(--focus)}
@media(forced-colors:active){.hall-nav a[aria-current=page]{border:2px solid Highlight}.hall-page :focus-visible{outline-color:Highlight}}

.wallet-page{max-width:760px;margin:auto;display:grid;gap:1rem;padding-bottom:2rem}
.wallet-heading{display:flex;gap:1rem;align-items:center}.wallet-heading h1{font-size:clamp(1.6rem,4vw,2.3rem);margin:0}
.wallet-heading p,.wallet-card p{line-height:1.6}.wallet-card{border:1px solid var(--border,#d6dfe8);border-radius:20px;padding:clamp(1rem,3vw,1.5rem);margin-bottom:1rem;background:var(--panel,#fff)}
.wallet-card h2{font-size:1.15rem;margin-top:0}.wallet-address{display:block;overflow-wrap:anywhere;font-size:1rem;line-height:1.6;padding:1rem;background:var(--soft,#f1f5f9);border-radius:12px}
.wallet-providers{display:grid;gap:.75rem;margin:1rem 0}.wallet-providers .btn{justify-content:flex-start;white-space:normal;overflow-wrap:anywhere}
.wallet-page .btn{min-height:48px;font-size:1rem}.wallet-consent{display:flex;gap:.75rem;align-items:flex-start;line-height:1.6}
.wallet-consent input{min-width:24px;min-height:24px}.wallet-page :focus-visible{outline:3px solid var(--accent,#465de8);outline-offset:3px}
.wallet-note{background:var(--soft,#f1f5f9)}

/* Checking identity temporarily hides this owned surface in every CSS mode.
 * Status/Refresh remain outside it. No blur animation or background requests. */
.wallet-page [data-wallet-body][hidden]{display:none!important}
.wallet-page .wallet-note[role=status]{padding:1rem;border:1px solid var(--border,#d6dfe8);border-radius:12px;line-height:1.6}
.wallet-page .actions{flex-wrap:wrap}.wallet-page .actions>.btn{white-space:normal}
@media(forced-colors:active){.wallet-card,.wallet-page .wallet-note[role=status]{border-color:CanvasText}.wallet-page :focus-visible{outline-color:Highlight}.wallet-address{background:Canvas;color:CanvasText}}

/* One address task per card. The shared final stylesheet owns button height
 * and typography; this surface only arranges equal-width actions and gutters.
 * Long provider names and large text grow the row instead of clipping it.
 */
.wallet-page,.wallet-card,.wallet-page [data-wallet-body]{min-inline-size:0;max-inline-size:100%;box-sizing:border-box}
.wallet-page [data-wallet-body]{display:grid;gap:1rem}
.wallet-page .wallet-card{margin-block-end:0}
.wallet-page>.actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}
.wallet-card>.btn,.wallet-card>button[type=submit]{inline-size:100%}
.wallet-providers{grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}
.wallet-providers>.btn{inline-size:100%;min-inline-size:0}
.wallet-providers>.btn>span{min-inline-size:0;overflow-wrap:anywhere}
.wallet-page .wallet-consent{min-block-size:3rem;align-items:center;margin-block:.75rem}
@media(max-width:30rem){.wallet-providers{grid-template-columns:minmax(0,1fr)}}

.craft-page{max-width:960px;margin:auto;display:grid;gap:1rem;padding-bottom:2rem}.craft-heading{display:flex;gap:1rem;align-items:center}.craft-heading h1{font-size:clamp(1.6rem,4vw,2.3rem);margin:0}
.craft-card{border:1px solid var(--border,#d6dfe8);border-radius:20px;padding:clamp(1rem,3vw,1.5rem);background:var(--panel,#fff)}.craft-card p{line-height:1.6}.craft-card h2,.craft-card h3{font-size:1.15rem}.craft-maker{display:grid;grid-template-columns:1fr 1.2fr;gap:1.5rem}.craft-result-preview{text-align:center;align-self:center}
.craft-preview{max-width:100%;height:auto;display:block;margin:auto}.craft-materials{display:grid;gap:1rem}.craft-materials fieldset{border:0;padding:0;min-width:0}.craft-materials legend{font-weight:700;padding-bottom:.75rem}.craft-choices{display:flex;flex-wrap:wrap;gap:.5rem}.craft-color{display:inline-block;width:18px;height:18px;border-radius:50%;border:1px solid #7e8797}
.craft-choices [aria-pressed=true]{outline:2px solid var(--accent,#465de8);background:var(--soft,#f1f5f9)}.craft-page .btn{min-height:48px;font-size:1rem}.craft-consent{display:flex;gap:.75rem;line-height:1.6;align-items:flex-start}.craft-consent input{min-width:24px;min-height:24px}
.craft-section-heading{display:flex;justify-content:space-between;gap:1rem;align-items:center}.craft-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:1rem}.craft-grid .actions{flex-wrap:wrap}.craft-equipped{font-weight:700}.craft-scope{font-size:1rem;line-height:1.6}.craft-page :focus-visible{outline:3px solid var(--accent,#465de8);outline-offset:3px}
@media(max-width:640px){.craft-maker{grid-template-columns:1fr}.craft-result-preview .craft-preview{width:160px}.craft-grid{grid-template-columns:1fr}}

/* UX110: the same target, icon rail and spacing for choices and inventory.
   Text stays in DOM; wrapping grows a control without squeezing its icon. */
.craft-page .actions{display:flex;flex-wrap:wrap;gap:.75rem;align-items:stretch}
.craft-page .btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:3rem;min-width:3rem;padding:.75rem 1rem;line-height:1.4;white-space:normal;overflow-wrap:anywhere;text-align:center}
.craft-page .btn svg{flex:0 0 1.25rem;width:1.25rem;height:1.25rem}
.craft-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(8rem,100%),1fr));gap:.75rem}
.craft-grid .actions>.btn{flex:1 1 7rem}
.craft-page [hidden]{display:none!important}
@media(max-width:40rem){.craft-section-heading{align-items:flex-start;flex-wrap:wrap}.craft-choices{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.craft-page *{scroll-behavior:auto;transition:none!important;animation:none!important}}

.craft-section-heading h2{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem}.craft-count{font-size:1rem;font-weight:500;font-variant-numeric:tabular-nums}

/* The public recipe chooser shares the real maker's target size and grid. */
.craft-public138{border-color:var(--accent,#465de8);min-width:0;overflow-wrap:anywhere}
.craft-public138 .craft-materials{min-width:0;align-content:center;gap:12px}
.craft-public138 h2,.craft-public138 h3,.craft-public138 p{line-height:1.6;overflow-wrap:anywhere}
@media(forced-colors:active){
 .craft-public138{background:Canvas;color:CanvasText;border-color:CanvasText}
 .craft-public138 .btn{color:ButtonText;background:ButtonFace;border:1px solid ButtonText}
 .craft-public138 [aria-pressed=true]{outline:3px solid Highlight;outline-offset:2px}
}

/* UX75 shared surface refinements. Keep running-game HUD and original physics
 * independent. System Korean fonts require no CDN, font fetch or layout wait. */
body:not(.in-shorts){font-family:system-ui,-apple-system,'Malgun Gothic','Apple SD Gothic Neo',sans-serif;color:#202736}
body:not(.in-shorts) .player-main :is(button,input,textarea,select){font-family:inherit}
body:not(.in-shorts) .player-main .btn{font-size:1rem;line-height:1.35;min-height:48px;white-space:normal;overflow-wrap:anywhere}
body:not(.in-shorts) .player-main :is(.task-card,.service-action-choice,.privacy-link){min-width:0}
.rom-product-home .discovery-heading{margin:4px 0 20px}.rom-product-home .discovery-heading h1{font-size:clamp(1.65rem,4.6vw,2.6rem);line-height:1.22;letter-spacing:-.035em;text-wrap:balance}.rom-product-home .discovery-heading p{font-size:1rem;line-height:1.55;margin-top:10px}
.rom-product-home .product-purpose{margin-bottom:20px}.rom-product-home .product-purpose a{min-height:48px;font-size:1rem}
.rom-product-home .rom75-mode-switch{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;padding:5px;border:1px solid #dedde9;background:#f1eff7;border-radius:18px;margin-bottom:18px}
.rom-product-home .rom75-mode-switch button{min-width:0;display:flex;align-items:center;justify-content:center;gap:8px;padding:12px 10px;min-height:52px;font-size:1rem;line-height:1.3;border:0;border-radius:13px;background:transparent;box-shadow:none;color:#575169}
.rom-product-home .rom75-mode-switch button[aria-pressed=true]{background:#fff;color:#493398;box-shadow:0 2px 8px #30215412}.rom75-mode-switch .game-choice-art{display:grid;place-items:center;width:24px;height:24px;background:transparent}.rom75-mode-switch .game-choice-name{padding:0;display:block}.rom75-mode-switch .game-choice-name>.rom-icon,.rom75-mode-switch .game-choice-check{display:none}
.rom-product-home .discovery-featured{border:1px solid #dce1e9;border-radius:26px;background:#fff;box-shadow:0 12px 32px #23354b08;overflow:hidden;grid-template-columns:1.15fr 1fr}.rom-product-home .discovery-visual{min-height:350px;background:#e9eef5;isolation:isolate}.rom-product-home .discovery-scene{object-fit:contain;background:#e9eef5}
.rom75-crew{position:absolute;inset:auto 8px 0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:end;z-index:2;pointer-events:none}.rom75-crew img{width:100%;height:auto;max-height:210px;object-fit:contain;filter:drop-shadow(0 12px 10px #12264220)}.rom75-crew img:nth-child(2){padding-bottom:14px}.rom75-crew img:nth-child(4){padding-bottom:8px}
.rom-product-home .discovery-copy{padding:28px;display:flex;flex-direction:column;justify-content:center}.rom-product-home .discovery-copy h2{font-size:clamp(1.4rem,3.5vw,2rem);line-height:1.25;letter-spacing:-.025em}.rom-product-home .discovery-copy>p{font-size:1rem;line-height:1.55;margin-bottom:18px}.rom-product-home .discovery-copy>small{font-size:.9rem;line-height:1.6}.rom-product-home .discovery-courses{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.rom-product-home .discovery-courses button{min-width:0;font-size:.95rem;padding:10px 8px;min-height:48px}
.rom75-duration{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 18px;font-size:.9rem}.rom75-duration>div{display:flex;gap:6px}.rom75-duration button{min-height:48px;min-width:48px;padding:8px 12px;border:1px solid #dce1e9;border-radius:12px;background:#fff;font:inherit;color:#535e70}.rom75-duration button[aria-pressed=true]{border-color:#8c78bf;background:#f0ecfa;color:#493398;font-weight:700}
.rom-product-home .discovery-play{width:100%;justify-content:center;font-size:1.05rem!important;min-height:54px!important}.rom75-connected{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0}.rom75-connected .btn{flex:1 1 220px;justify-content:center}.rom75-connected:empty{display:none}
.rom-product-home .discovery-category{min-height:56px;font-size:1rem;border-radius:16px}.rom-product-home .discovery-journey{min-height:84px}.rom-product-home .discovery-journey strong{font-size:1.05rem}.rom-product-home .discovery-journey small{font-size:.9rem;line-height:1.5}
.rom-product-home :focus-visible{outline:3px solid #247b9e;outline-offset:4px}
@media(max-width:700px){.rom-product-home .discovery-featured{grid-template-columns:1fr;border-radius:22px}.rom-product-home .discovery-visual{min-height:0;height:220px}.rom75-crew{inset-inline:4px}.rom75-crew img{max-height:152px}.rom-product-home .discovery-copy{padding:22px 18px}.rom-product-home .discovery-kicker{display:inline-flex;margin-bottom:8px;font-size:.85rem}.rom-product-home .rom75-mode-switch button{padding:12px 6px;font-size:.9rem;gap:6px}.rom75-mode-switch .game-choice-art{width:20px;height:20px}.rom-product-home .discovery-heading p{font-size:.95rem}}
@media(max-width:360px){.rom-product-home .discovery-visual{height:188px}.rom75-crew img{max-height:126px}.rom-product-home .rom75-mode-switch button{font-size:.85rem;flex-direction:column;gap:5px}.rom-product-home .discovery-copy{padding:20px 16px}.rom75-duration{align-items:flex-start;flex-direction:column;gap:8px}.rom75-duration>div{width:100%}.rom75-duration button{flex:1}}
@media(prefers-reduced-motion:reduce){.rom-product-home *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Whole existing course art and separate translated DOM text. */
.daily75-page{max-width:1040px;margin:auto;font-size:1rem;line-height:1.65}.daily75-page [hidden]{display:none!important}.daily75-page>header{display:flex;gap:16px;align-items:center;margin:24px 0}.daily75-page>header>span{display:grid;place-items:center;width:60px;height:60px;flex:none;border-radius:20px;background:#ece6fa;color:#6546a2}.daily75-page h1{font-size:clamp(1.6rem,4vw,2.4rem);line-height:1.3;margin:0}.daily75-page header p{margin:8px 0 0}.daily75-page .crumb{display:flex;flex-wrap:wrap;gap:12px}.daily75-page .crumb a{display:inline-flex;align-items:center;gap:8px;min-height:48px}.daily75-card{display:grid;grid-template-columns:1fr 1fr;border:1px solid #dde1e9;background:#fff;border-radius:24px;overflow:hidden}.daily75-art{background:#ecf0f7;display:grid;place-items:center}.daily75-art img{display:block;max-width:100%;width:100%;height:auto;object-fit:contain}.daily75-copy{padding:clamp(20px,3vw,32px)}.daily75-copy h2{font-size:1.5rem;line-height:1.35;margin:6px 0 12px}.daily75-spec{display:flex;flex-wrap:wrap;gap:16px;margin-bottom:20px}.daily75-spec>span{display:inline-flex;gap:6px;align-items:center}.daily75-rule{display:flex;gap:12px;padding:18px 0;border-block:1px solid #e4e0ed;margin:16px 0}.daily75-rule>span{flex:none;color:#7652ab}.daily75-rule small,.daily75-rule strong{display:block}.daily75-rule strong{font-size:1.1rem}.daily75-rule p{margin:6px 0 0}.daily75-page .btn{min-height:48px;font-size:1rem}.daily75-reset,.daily75-scope{font-size:.9rem;line-height:1.6;color:#5d6674}.daily75-week{margin:24px 0;padding:16px 20px;border:1px solid #dce1eb;border-radius:20px;background:#fff}.daily75-week summary{display:flex;align-items:center;gap:8px;min-height:48px;font-weight:700;cursor:pointer}.daily75-week ol{list-style:none;padding:0;margin:12px 0;display:grid;gap:8px}.daily75-week li{display:grid;grid-template-columns:60px 1fr 60px;align-items:center;gap:12px;padding:12px;border-radius:12px;background:#f8f9fc}.daily75-week li[aria-current=date]{background:#eee8fa;box-shadow:inset 3px 0 #7554b2}.daily75-week li>strong{min-width:0;overflow-wrap:anywhere}.daily75-page :focus-visible{outline:3px solid #247b9e;outline-offset:3px}
@media(max-width:680px){.daily75-card{grid-template-columns:1fr}.daily75-art img{max-height:230px}.daily75-week{padding:14px}.daily75-week li{grid-template-columns:48px 1fr 48px;gap:8px}.daily75-copy .actions{display:grid;grid-template-columns:1fr 1fr}}
@media(prefers-reduced-motion:reduce){.daily75-page *{animation:none!important;transition:none!important}}

/* Separate public-date confirmation, with owned controls and natural wrapping. */
.daily-online125{margin-block:24px;padding:20px;border:1px solid var(--line);border-radius:20px;min-width:0;overflow-wrap:anywhere}
.daily-online125 h2,.daily-online125 h3{margin-block:0 12px}.daily-online125 p{line-height:1.65}
.daily-online125-actions{display:flex;flex-wrap:wrap;gap:12px;margin-block:12px}
.daily-online125 .btn{min-height:48px;min-width:48px;white-space:normal;height:auto;padding:12px 16px}
.daily-online125 article{padding-block:12px}.daily-online125 [hidden]{display:none!important}
@media(max-width:680px){.daily-online125-actions{display:grid;grid-template-columns:minmax(0,1fr)}.daily-online125 .btn{width:100%}}

/* Weekly running: portrait first, readable rem sizes and whole existing art.
   No fixed text heights or clipped labels. Game artwork stays separate from copy. */
.series-page{max-width:66rem;margin-inline:auto;padding:clamp(.75rem,2.5vw,2rem);color:#25272d;line-height:1.65}
.series-page [hidden]{display:none!important}
.series-heading{display:flex;align-items:center;gap:1rem;margin-block:1.75rem}
.series-emblem{display:grid;place-items:center;inline-size:4rem;block-size:4rem;flex:none;background:#f6e3b9;border:1px solid #caa968;border-radius:1.25rem;color:#574020}
.series-heading h1{font-size:clamp(1.75rem,4vw,2.5rem);letter-spacing:-.04em;margin:0;line-height:1.25}
.series-heading p{margin:.375rem 0 0;font-size:1rem}.series-heading .overline{font-size:.75rem;letter-spacing:.12em;color:#5b5e67}
.series-tabs{display:flex;flex-wrap:wrap;gap:.5rem;padding-bottom:1rem;border-bottom:1px solid #d9d8d3}
.series-tabs .btn{border:0;background:transparent;box-shadow:none;border-radius:.625rem;font-size:1rem;min-block-size:3rem}
.series-tabs .btn[aria-current=page]{background:#25272d;color:#fff;box-shadow:inset 0 -3px #e9ba58}
.series-page .btn{min-block-size:3rem;white-space:normal;text-align:center;line-height:1.4;gap:.5rem;display:inline-flex;align-items:center;justify-content:center;font-size:.9375rem}
.series-page .actions{display:flex;flex-wrap:wrap;gap:.625rem}.series-page .actions>*{min-inline-size:0}
.series-page [data-series-status]{min-block-size:1.65em;margin-block:1rem;color:#4f525b}.series-page [data-series-status][role=alert]{color:#9b3434}
.series-today{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);border:1px solid #d9d8d3;border-radius:1.5rem;overflow:hidden;background:#fff}
.series-art{display:grid;place-items:center;min-inline-size:0;min-block-size:16rem;background:#f3eee3}.series-art img{inline-size:100%;block-size:auto;object-fit:contain;display:block}
.series-today-copy{padding:clamp(1.25rem,3vw,2rem);min-inline-size:0}.series-today-copy h2{font-size:1.5rem;line-height:1.35;letter-spacing:-.03em;margin:.5rem 0 1rem}
.series-today-copy .overline{font-size:.8125rem;color:#595c64;letter-spacing:.025em}.series-today-copy p{font-size:1rem}
.series-recipe{display:grid;gap:.5rem;margin-block:1rem;padding:1rem;border-radius:.875rem;background:#f6f4ee}.series-recipe span{display:flex;align-items:center;gap:.625rem;font-weight:650}
.series-today [data-series-join]{background:#25272d;border-color:#25272d;color:#fff}.series-today [data-series-join]:hover{background:#454850}
.series-note-copy,.series-reset{color:#595c64;font-size:.9375rem!important;line-height:1.6}.series-reset time{font-variant-numeric:tabular-nums}
.series-period{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1rem;padding-block:1rem;margin-block:.5rem}
.series-period h2{margin:0;font-size:1.375rem;line-height:1.4}.series-period .overline{margin:0;color:#5b5e67;font-size:.75rem;letter-spacing:.08em}.series-period label{display:grid;gap:.375rem;font-size:.9375rem}
.series-period select{min-block-size:3rem;border:1px solid #bcbebf;border-radius:.625rem;padding:.625rem 1rem;font:inherit;background:#fff;color:inherit;max-inline-size:100%}
.series-achievements{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;margin-block:.5rem 1rem}
.series-achievements>div{padding:1rem;border:1px solid #d9d8d3;background:#fff;border-radius:1rem;min-inline-size:0}.series-achievements dt{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;font-size:.9375rem;color:#555962}.series-achievements dd{margin:.5rem 0 0;font-weight:750;font-size:1.75rem;line-height:1.2;font-variant-numeric:tabular-nums}
.series-records{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-block:1.5rem}.series-record{min-inline-size:0;border:1px solid #d9d8d3;background:#fff;border-radius:1rem;padding:1.25rem}.series-record header{display:flex;gap:.625rem;align-items:center;justify-content:space-between;flex-wrap:wrap;font-size:.875rem;color:#595c64}
.series-chip{padding:.25rem .625rem;border-radius:2rem;background:#f3eee3;color:#574020;font-size:.8125rem}.series-record h3{font-size:1.5rem;margin:.75rem 0 .375rem;line-height:1.35}.series-record p{margin:.5rem 0 1rem;font-size:.9375rem}.series-record .actions .btn{font-size:.875rem}
.series-ranking{list-style:none;padding:0;margin:1.5rem 0;display:grid;gap:.625rem}.series-ranking li{display:grid;grid-template-columns:2.75rem minmax(0,1fr) auto;align-items:center;gap:1rem;border:1px solid #d9d8d3;background:#fff;border-radius:1rem;padding:1rem}
.series-place{display:grid;place-items:center;min-block-size:2.75rem;background:#f3eee3;border-radius:.75rem;font-weight:750;font-variant-numeric:tabular-nums}.series-ranking li>div{display:grid;gap:.125rem;min-inline-size:0}.series-ranking strong{font-size:1rem;overflow-wrap:anywhere}.series-ranking li>div>span{font-size:.875rem;color:#595c64;overflow-wrap:anywhere}.series-rank-score{text-align:end;font-variant-numeric:tabular-nums}
.series-empty{padding:clamp(1.5rem,4vw,3rem);border:1px solid #d9d8d3;border-radius:1.25rem;background:#fff;text-align:center}.series-empty h2{font-size:1.375rem;line-height:1.4}.series-empty p{max-inline-size:35rem;margin-inline:auto;font-size:1rem}.series-empty .actions{justify-content:center}
.series-note{padding:1.25rem;border-radius:1rem;background:#fff5dd;border:1px solid #caa968;margin-block:1rem}.series-note h2{margin:0;font-size:1.125rem}.series-pager{display:flex;justify-content:center;gap:.75rem;padding-block:1rem}
@media(max-width:42rem){.series-today{grid-template-columns:minmax(0,1fr)}.series-art{min-block-size:0}.series-art img{max-block-size:15rem}.series-records{grid-template-columns:minmax(0,1fr)}.series-heading{align-items:flex-start}.series-heading h1{font-size:1.75rem}}
@media(max-width:25rem){.series-achievements{grid-template-columns:minmax(0,1fr)}.series-achievements>div{display:flex;align-items:center;justify-content:space-between;gap:1rem}.series-achievements dd{margin:0}.series-ranking li{grid-template-columns:2.25rem minmax(0,1fr);gap:.75rem}.series-rank-score{grid-column:2;text-align:start}.series-tabs .btn{flex:1;font-size:.875rem}.series-emblem{inline-size:3rem;block-size:3rem}.series-today-copy{padding:1rem}}
@media(prefers-reduced-motion:reduce){.series-page *{scroll-behavior:auto}}
/* UX77: all seven UTC dates in a wrapping list, with text for every state.
   No color-only progress, scrolling animation, badge reward or fixed height. */
.series-week-summary{margin-block:1rem 1.5rem;padding:clamp(1rem,2.5vw,1.5rem);border:1px solid #d9d8d3;border-radius:1.25rem;background:#fff}
.series-week-summary>header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem}.series-week-summary h3{margin:.25rem 0;font-size:1.375rem;line-height:1.4}.series-week-summary .overline{margin:0;color:#595c64;font-size:.8125rem}.series-week-summary>p{font-size:.9375rem;margin:.75rem 0}
.series-summary-total{display:grid;gap:.25rem;font-variant-numeric:tabular-nums}.series-summary-total strong{font-size:1.5rem;line-height:1.3}.series-summary-total span{color:#595c64;font-size:.9375rem}
.series-day-grid{padding:0;margin:1rem 0;list-style:none;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:.5rem}.series-day-grid li{padding:.75rem .5rem;min-inline-size:0;border:1px solid #d9d8d3;border-radius:.75rem;background:#f6f4ee;display:grid;gap:.5rem;overflow-wrap:anywhere;text-align:center}.series-day-grid li.has-result{background:#fff7e5;border-color:#caa968}.series-day-grid time{display:grid;gap:.125rem;font-weight:650}.series-day-grid small,.series-day-grid li>span{color:#595c64;font-size:.8125rem}.series-day-grid strong{font-size:.9375rem;font-variant-numeric:tabular-nums;line-height:1.4}
@media(max-width:48rem){.series-day-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:28rem){.series-day-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.series-summary-total{inline-size:100%}}

/* UX76 studio: portrait first, whole artwork and real owned source choices.
 * No automatic media playback, animated gallery, sheet crop or decoded poster.
 * Override only the workspace; game HUD, captions and administration retain
 * their own layout and contracts. All source action text can grow and wrap. */
.workspace-page .studio76-hero{background:#fffaf1;border-color:#ddd5c6;padding:clamp(1rem,3vw,2rem);text-align:start}
.studio76-intro{display:flex;gap:1.25rem;align-items:center;min-width:0}
.studio76-intro>div{min-width:0}.studio76-intro h2{font-size:clamp(1.45rem,3vw,2.1rem);letter-spacing:-.035em;line-height:1.35;margin:.3rem 0 .65rem}
.studio76-intro p{font-size:1rem;line-height:1.65;color:#5d5a52;margin:0}
.studio76-eyebrow{font-size:.875rem;color:#4e5943;font-weight:750}
.studio76-hero .studio-play-symbol{position:static;display:grid;place-items:center;flex:0 0 5rem;width:5rem;height:5rem;border:1px solid #ddd5c6;border-radius:1.25rem;background:#ffdea1;color:#292825}
.studio76-hero .studio-play-symbol img{display:block;width:3.75rem;height:3.75rem;object-fit:contain}
.studio76-hero .studio-play-steps{list-style:none;display:flex;flex-wrap:wrap;gap:.65rem;padding:0;margin:1.5rem 0;counter-reset:studio-step;justify-content:flex-start}
.studio76-hero .studio-play-steps li{display:flex;align-items:center;gap:.5rem;min-height:3rem;border:1px solid #ddd5c6;background:#fff;border-radius:.8rem;padding:.65rem .85rem;font-size:.9375rem;font-weight:750;counter-increment:studio-step;line-height:1.45}
.studio76-hero .studio-play-steps li::before{content:counter(studio-step);font-variant-numeric:tabular-nums;font-size:.8125rem;color:#655f54}
.studio76-hero .workspace-caption,.studio76-post-note{display:flex;gap:.5rem;align-items:flex-start;font-size:.9375rem;line-height:1.6;color:#57564f;margin:1rem 0 0}
.studio76-post-note .rom-icon{margin-top:.25rem;flex-shrink:0}
.studio76-section-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.75rem;margin:2rem 0 1rem}
.studio76-section-heading h2{margin:0;font-size:1.35rem;font-weight:800}
.studio76-sources .video-source-status{font-size:.9375rem;line-height:1.6;margin:0 0 1rem;color:#5d5a52}
.studio76-source-filters{display:flex;flex-wrap:wrap;gap:.5rem;margin:0 0 1rem}
.studio76-source-filters .btn[aria-pressed=true]{background:#292825;color:#fff;border-color:#292825}
.studio76-sources .video-source-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.studio76-sources .studio-source-card{display:flex;flex-direction:column;padding:0;min-width:0;border:1px solid #dad9d4;border-radius:1.1rem;background:#fff;overflow:hidden}
.studio-source-art{display:block;width:100%;height:10rem;object-fit:contain;background:#f1f3f0;padding:.5rem}
.studio-source-glyph{display:grid;place-items:center;height:8rem;background:#f1f3f0;color:#53564e}
.studio-source-content{display:flex;flex-direction:column;align-items:flex-start;gap:.55rem;padding:1rem;flex:1;min-width:0}
.studio-source-course{font-size:.8125rem;font-weight:750;color:#5a6053;line-height:1.6}
.studio-source-content h3{font-size:1.125rem;line-height:1.45;margin:0;overflow-wrap:anywhere}
.studio-source-content p{font-size:.875rem;line-height:1.6;color:#62645b;margin:0 0 .5rem}
.studio-source-content .btn{margin-top:auto;width:100%;justify-content:center;min-height:3rem;white-space:normal}
.studio-source-empty{grid-column:1/-1;padding:2rem 1rem;border:1px dashed #bcbeb3;border-radius:1.1rem;text-align:center;background:#f8f9f5}
.studio-source-empty h3{font-size:1.125rem;margin:1rem 0 .65rem}.studio-source-empty p{font-size:1rem;line-height:1.65;margin:0 0 1.2rem;color:#5a5e53}
.studio76-other{margin-top:2rem;padding:1rem;border:1px solid #dddcd4;background:#fff;border-radius:1rem}
.studio76-other summary{min-height:3rem;display:flex;align-items:center;gap:.5rem;cursor:pointer;font-size:1rem;font-weight:750}.studio76-other .actions{padding-top:1rem}
.workspace-page .btn{min-height:3rem;white-space:normal;line-height:1.45}.workspace-page [hidden]{display:none!important}
@media(min-width:70rem){.studio76-sources .video-source-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:30rem){.studio76-intro{align-items:flex-start;gap:.8rem}.studio76-hero .studio-play-symbol{flex-basis:3.5rem;width:3.5rem;height:3.5rem;border-radius:1rem}.studio76-hero .studio-play-symbol img{width:2.65rem;height:2.65rem}.studio76-sources .video-source-grid{grid-template-columns:1fr}.studio-source-card{display:grid!important;grid-template-columns:minmax(0,6rem) minmax(0,1fr)}.studio-source-art,.studio-source-glyph{height:100%;min-height:8rem;width:100%;padding:.35rem}.studio-source-content{padding:.9rem}.studio76-hero .actions .btn{flex:1 1 8rem}.studio76-hero .studio-play-steps li{flex:1 1 6rem;justify-content:center}}
@media(max-width:22rem){.studio-source-card{display:flex!important}.studio-source-art{height:8rem}.studio76-intro{flex-direction:column}.studio76-section-heading{align-items:flex-start}.studio76-section-heading .btn{width:100%}}
@media(prefers-reduced-motion:reduce){.workspace-page *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.studio76-banner{display:flex;align-items:center;justify-content:space-between;gap:clamp(12px,3vw,32px)}
.studio76-story-art{display:block;flex:0 1 auto;inline-size:min(36%,236px);height:auto;object-fit:contain}
@media(max-width:550px){
 .studio76-banner{display:grid;gap:8px}
 .studio76-story-art{inline-size:min(46%,158px);justify-self:end}
}

/* Studio surfaces share the home page's paper, ink and lavender palette. */
.workspace-page .studio76-hero{background:linear-gradient(155deg,#fcf9ff 0%,#f3ebff 58%,#e8f6fb 100%);border-color:#d9cbed;color:#30234c;box-shadow:0 12px 34px #6b459f12}
.workspace-entry-actions{display:flex;flex-wrap:wrap;gap:12px;margin-block:0 14px}
.workspace-entry-actions .btn{min-width:0;justify-content:center}
#video-source-heading{scroll-margin-top:6rem}
@media(max-width:420px){.workspace-entry-actions .btn{flex:1 1 7rem}}
@media(forced-colors:active){.workspace-page .studio76-hero{background:Canvas;border-color:CanvasText}}
.studio76-intro p,.studio76-sources .video-source-status,.studio76-hero .workspace-caption,.studio76-post-note{color:#5c506d}
.studio76-eyebrow{color:#6847bc}
.studio76-hero .studio-play-symbol{background:#eee7fc;color:#6847bc;border-color:#d9cbed}
.studio76-hero .studio-play-steps li{background:#f8f4fd;border-color:#e2d8f0;color:#30234c}
.studio76-hero .studio-play-steps li::before{color:#6847bc}
.studio76-sources .studio-source-card,.studio76-other{border-color:#d9cbed;background:#fffcff}
.studio-source-art,.studio-source-glyph{background:#f4eefb;color:#6847bc}
.studio-source-course{color:#6847bc}.studio-source-content p{color:#5c506d}
.studio-source-empty{background:#f8f4fd;border-color:#cfc0e4;color:#30234c}
.studio-source-empty p{color:#5c506d}
.studio76-source-filters .btn[aria-pressed=true]{background:#6847bc;border-color:#6847bc;color:#fff}
.workspace-page :is(a,button,summary,input,select,textarea):focus-visible{outline:3px solid #6847bc;outline-offset:3px}
.studio76-story-art,.studio-brand-art{display:block;max-width:100%;height:auto;object-fit:contain}
@media(max-width:30rem){
 .studio76-banner{grid-template-columns:minmax(0,1fr)}
 .studio76-hero .actions{display:flex;flex-wrap:wrap;gap:.5rem}
 .studio76-hero .actions .btn{min-width:0}
 .studio76-section-heading h2{overflow-wrap:anywhere}
}
@media(forced-colors:active){.studio76-source-filters .btn[aria-pressed=true]{outline:2px solid Highlight;outline-offset:-3px}}

/* Play entry: the same soft colour and generous artwork used by the ROM home.
   Scoped to the play workspace so editor and library layouts stay independent. */
.workspace-play-page .studio-reference-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 12px clamp(24px, 4vw, 64px);
  overflow: hidden;
  padding: clamp(24px, 4vw, 48px);
  background: linear-gradient(155deg, #fcf9ff 0%, #f3ebff 58%, #e8f6fb 100%);
}
.workspace-play-page .studio-reference-copy { min-width: 0; position: relative; z-index: 1; }
.workspace-play-page .studio-reference-copy h1 {
  margin: 12px 0;
  color: #30204d;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
.workspace-play-page .studio-reference-copy p {
  max-width: 36rem;
  margin: 0 0 24px;
  color: #504263;
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  line-height: 1.65;
}
.workspace-play-page .studio-reference-copy .workspace-entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}
.workspace-play-page .studio-reference-copy .workspace-entry-actions .btn {
  min-height: 48px;
  padding-inline: 20px;
  justify-content: center;
}
.workspace-play-page .studio-reference-art {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  isolation: isolate;
}
.workspace-play-page .studio-reference-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(80%, 380px);
  aspect-ratio: 1;
  border: 1px solid #cbb5ec;
  border-radius: 50%;
  box-shadow: 0 0 0 16px #ffffff45, 0 0 0 32px #dfd2f34d;
}
.workspace-play-page .studio-reference-art .studio76-story-art {
  display: block;
  width: 100%;
  max-width: 480px;
  max-height: 360px;
  height: auto;
  object-fit: contain;
  position: relative;
}
.workspace-play-page .studio-reference-hero > .studio76-post-note {
  grid-column: 1 / -1;
  margin: 12px 0 0;
  color: #504263;
}
@media (max-width: 600px) {
  .workspace-play-page .studio-reference-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 24px 16px;
  }
  .workspace-play-page .studio-reference-copy h1 { font-size: clamp(1.75rem, 8vw, 2.25rem); }
  .workspace-play-page .studio-reference-copy p { margin-bottom: 20px; }
  .workspace-play-page .studio-reference-copy .workspace-entry-actions .btn { flex: 1 1 120px; }
  .workspace-play-page .studio-reference-art { padding: 12px 0; }
  .workspace-play-page .studio-reference-art .studio76-story-art { width: min(100%, 300px); max-height: 240px; }
  .workspace-play-page .studio-reference-art::before { width: min(65%, 200px); }
}
@media (forced-colors: active) {
  .workspace-play-page .studio-reference-hero { background: Canvas; color: CanvasText; }
  .workspace-play-page .studio-reference-copy h1,
  .workspace-play-page .studio-reference-copy p,
  .workspace-play-page .studio-reference-hero > .studio76-post-note { color: CanvasText; }
  .workspace-play-page .studio-reference-art::before { border-color: CanvasText; box-shadow: none; }
}

.workspace-play-page .studio-reference-copy .workspace-entry-actions .btn.primary {
  color: #fff;
  background: #6847bc;
  border-color: #6847bc;
}
.workspace-play-page .studio-reference-copy .workspace-entry-actions .btn.primary:hover {
  background: #56379f;
  border-color: #56379f;
}
.workspace-play-page .studio-source-links { gap: 12px; margin-block: 0 16px; }
@media (forced-colors: active) {
  .workspace-play-page .studio-reference-copy .workspace-entry-actions .btn.primary {
    color: ButtonText; background: ButtonFace; border-color: ButtonText;
  }
}
/* Owned-news hierarchy: one title, explicit state, one compact action group.
   No animation loop, autoplay, background refresh or image slicing. */
.inbox-page{max-width:62rem;margin:0 auto;--inbox-ink:#202a2b;--inbox-muted:#536665;--inbox-line:#ccd8d2;color:var(--inbox-ink)}
.inbox-page .crumb{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1.25rem}
.inbox-heading{display:flex;align-items:center;gap:1rem;padding:1.5rem;border-radius:1.5rem;background:#f0f4eb}
.inbox-heading h1{font-size:clamp(1.75rem,4vw,2.5rem);line-height:1.2;margin:.25rem 0 .6rem}
.inbox-heading p{margin:0;line-height:1.6}.inbox-emblem{display:grid;place-items:center;width:4rem;height:4rem;border-radius:1.3rem;background:#244c42;color:white;flex-shrink:0}
.inbox-toolbar{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap;margin:1.5rem 0 1rem}.inbox-toolbar>div:first-child{display:flex;flex-direction:column;gap:.4rem}.inbox-toolbar strong{font-size:1.2rem}.inbox-toolbar span,.inbox-footnote{color:var(--inbox-muted)}
.inbox-filter{display:flex;align-items:center;gap:.75rem;margin:1rem 0;flex-wrap:wrap}.inbox-filter select{min-height:3rem;max-width:100%;font:inherit;background:white;border:1px solid var(--inbox-line);border-radius:.7rem;padding:.6rem 2rem .6rem .75rem;color:inherit}
.inbox-list{display:grid;gap:1rem;grid-template-columns:repeat(2,minmax(0,1fr))}
.inbox-card{min-width:0;padding:1.35rem;border:1px solid var(--inbox-line);border-radius:1.15rem;background:#fff;overflow-wrap:anywhere}
.inbox-card.is-unread{border-inline-start:4px solid #24604e}
.inbox-card header{display:flex;justify-content:space-between;gap:.5rem;align-items:center;flex-wrap:wrap}
.inbox-kind{display:inline-flex;align-items:center;gap:.45rem;color:#284d42;font-weight:700}.inbox-read{border:1px solid #bdcec2;border-radius:2rem;padding:.2rem .55rem;font-size:.85rem}
.inbox-card h2{font-size:1.2rem;line-height:1.5;margin:.85rem 0 .5rem}.inbox-state{font-weight:650;margin:.4rem 0}.inbox-preview{white-space:pre-wrap;line-height:1.75}.inbox-card time{font-size:.9rem;color:var(--inbox-muted);display:block;margin:1rem 0}
.inbox-page .actions,.inbox-pages{display:flex;gap:.5rem;flex-wrap:wrap}.inbox-page .btn{display:inline-flex;align-items:center;justify-content:center;gap:.45rem;min-height:3rem;padding:.6rem .9rem;font-size:1rem;line-height:1.4;white-space:normal}
.inbox-page :is(button,a,input,select):focus-visible{outline:3px solid #9f5424;outline-offset:3px}
.inbox-page :disabled{cursor:wait;opacity:.6}.inbox-empty{grid-column:1/-1;text-align:center;background:#f8f9f4;border:1px dashed #b8cbbd;border-radius:1.2rem;padding:2rem 1.25rem}
.inbox-empty .actions{justify-content:center}.inbox-empty h2{font-size:1.35rem}.inbox-empty p,.inbox-footnote{font-size:.95rem;line-height:1.7}.inbox-note{border:1px solid #ba8c45;background:#fffaea;padding:1rem;border-radius:1rem;margin:1rem 0}.inbox-note h2{font-size:1.2rem}
.inbox-page [data-inbox-status]{line-height:1.65;overflow-wrap:anywhere}.inbox-page [data-inbox-status]:empty{display:none}.inbox-pages{justify-content:flex-end;margin-top:1rem}
@media(max-width:40rem){.inbox-list{grid-template-columns:minmax(0,1fr)}.inbox-heading{padding:1.2rem;align-items:flex-start}.inbox-emblem{width:3rem;height:3rem}.inbox-card{padding:1.1rem}.inbox-toolbar .actions{width:100%}.inbox-toolbar .btn{flex:1}}
@media(prefers-reduced-motion:reduce){.inbox-page *{scroll-behavior:auto;transition:none!important}}

/* Shared control size and natural text wrapping; no animation or idle media. */
.news97{max-width:58rem;margin-inline:auto;min-width:0}
.news97 header,.news97-toolbar,.news97-meta{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}
.news97 header>div{flex:1;min-width:0}.news97 h1{margin-block:.5rem}.news97 h2{font-size:1.25rem;line-height:1.5}
.news97-toolbar{margin-block:1.25rem}.news97-toolbar strong{margin-inline-end:auto}
.news97-list{display:grid;gap:1rem}.news97-card,.news97-empty{padding:1.25rem;border:1px solid var(--line,#dfe4e8);border-radius:1.25rem;background:var(--paper,#fff);overflow-wrap:anywhere}
.news97-card:not(.is-read){border-inline-start:4px solid var(--deep,#493599)}
.news97-meta{justify-content:space-between}.news97 time,.news97-note{font-size:.9375rem;color:var(--muted,#596476)}
.news97 :is(button,a.btn){min-block-size:48px;min-inline-size:48px;white-space:normal;overflow-wrap:anywhere;display:inline-flex;align-items:center;gap:.5rem}
.news97 .rom-icon{flex:0 0 auto}.news97 :focus-visible{outline:3px solid var(--focus,#5841b3);outline-offset:3px}
.news97 [data-news-recovery] aside{padding:1rem;background:var(--lilac,#eeeaf9);border-radius:1rem}
@media(max-width:540px){.news97-card,.news97-empty{padding:1rem}.news97 .social-actions92{display:flex;flex-wrap:wrap}.news97 .social-actions92 .btn{flex:1 1 6rem;justify-content:center}}

/* news126: action groups stay distinct when long labels wrap. */
.news97 .social-actions92,.news97 .social-tabs92,.news97-stop{gap:12px}
.news97-stop{display:flex;margin-block:12px}.news97 [hidden]{display:none!important}
@media(max-width:540px){.news97 .social-actions92{display:grid;grid-template-columns:minmax(0,1fr)}.news97 .social-actions92 .btn{width:100%}}

/*
 * UX76 shared consumer surfaces. Load last; administration and game rendering
 * have separate bundles. Historical semantic token names are kept for callers.
 * 한국어 인계: text lives in DOM/locale resources, original artwork stays whole.
 * Rem sizes follow browser text settings; no fixed text heights or scaled text.
 * Scene/canvas geometry and the embedded legacy player are not restyled here.
 */
:root{
 --ink:#25272d;--muted:#595c64;--line:#d9d8d3;--paper:#fff;--bg:#f7f6f2;
 --violet:#292b31;--deep:#14161b;--lilac:#f3ecd9;--mint:#eed281;
 --shadow:0 8px 28px #25272d08;--focus:#276486;--rom-focus-color:#276486;
 --rom-product-ink:var(--ink);--rom-product-muted:var(--muted);
 --rom-product-line:var(--line);--rom-product-bg:var(--bg);
 --rom-product-violet:var(--violet);--rom-product-deep:var(--deep);
 --rom-product-lilac:var(--lilac);--rom-control:1rem;--rom-support:.9375rem;
}
body{background:var(--bg);color:var(--ink);font-family:system-ui,-apple-system,"Segoe UI","Malgun Gothic","Apple SD Gothic Neo",sans-serif;font-size:1rem;line-height:1.65;letter-spacing:-.015em}
.player-main{max-width:74rem;padding-inline:clamp(1rem,3vw,2.5rem)}
/* OFF and explicit empty/error states must win over flex/grid display rules. */
.player-main [hidden]{display:none!important}
.player-header{max-width:78rem;padding-inline:clamp(1rem,3vw,2.5rem)}
body:not(.in-shorts) .player-main :is(h1,h2,h3,p,a,button,label){overflow-wrap:anywhere}
body:not(.in-shorts) .player-main h1{font-size:clamp(1.75rem,4vw,2.5rem);line-height:1.25}
body:not(.in-shorts) .player-main h2{font-size:clamp(1.3rem,2.7vw,1.65rem);line-height:1.4}
body:not(.in-shorts) .player-main h3{font-size:1.125rem;line-height:1.45}
body:not(.in-shorts) .player-main :is(.small,small){font-size:.9375rem;line-height:1.65}
.player-main .overline{font-size:.875rem;line-height:1.5;letter-spacing:.06em}
body:not(.in-shorts) .btn{min-block-size:3rem;font-size:1rem;line-height:1.4;border-radius:.8rem;box-shadow:none;padding:.65rem 1rem}
body:not(.in-shorts) .btn:not(.danger){color:var(--ink);background:#fff;border-color:var(--line)}
body:not(.in-shorts) .btn.primary{color:white;background:var(--violet);border-color:var(--violet)}
body:not(.in-shorts) .btn:not(:disabled):hover{background:#f4efdf;border-color:#b8afa0}
body:not(.in-shorts) .btn.primary:not(:disabled):hover{color:#fff;background:#454850;border-color:#454850}
body:not(.in-shorts) .btn.danger{color:#963d38;background:#fff7f4;border-color:#ce9c91}
body:not(.in-shorts) .player-main :is(input,select,textarea){font-size:1rem;line-height:1.5}
/* Text-entry boundaries need more contrast than decorative card separators.
 * Keep native checkbox/radio/range/color controls and in-game geometry intact. */
body:not(.in-shorts) .player-main :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),select,textarea){border-color:#868982;background:#fff;color:var(--ink)}
.player-main input[type=checkbox],.player-main input[type=radio]{accent-color:#514425}
.player-main :is(.actions,.crumb){flex-wrap:wrap;gap:.625rem}
.player-main .btn>.rom-icon{inline-size:1.25rem;block-size:1.25rem}
.brand-symbol{background:#292b31;box-shadow:none;transform:none;border-radius:.9rem}
.brand-copy strong{letter-spacing:-.04em}.brand-copy small{font-size:.875rem;line-height:1.5;color:var(--muted)}
.top-nav a{font-size:1rem;min-height:3rem;color:var(--ink);border-radius:.8rem}
.top-nav a:hover,.top-nav a[aria-current=page]{background:#eee7d2;color:#25272d}
.top-nav a[aria-current=page],.experience-nav [aria-current=page]{text-decoration:underline;text-decoration-thickness:.125rem;text-underline-offset:.22em}
.experience-nav{background:#fff;border-color:var(--line);box-shadow:0 -3px 14px #25272d08}
.experience-nav :is(a,button){font-size:.875rem;min-block-size:3.25rem}
.experience-nav [aria-current=page]{color:#342d1e;background:#f1e9d5}
.player-main .icon-tile{box-shadow:none;border:1px solid #d7cfbc;background:#f4ecd7;color:#51432d}
.player-main .icon-tile .rom-icon{filter:none}
.rom-product-home .product-purpose{padding:.35rem;background:#eeeae0;border:1px solid #d9d8d3;border-radius:1rem;gap:.35rem}
.rom-product-home .product-purpose a{color:#4c4e53;min-height:3rem;border:0;box-shadow:none;flex:1;justify-content:center}
.rom-product-home .product-purpose a.selected{background:#fff;color:#25272d;box-shadow:inset 0 -3px #8b6b23}
.rom-product-home .rom76-purpose{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
.rom-product-home .rom76-purpose a{min-width:0;gap:.5rem;flex-wrap:wrap;padding:.7rem .4rem;font-weight:700}
.rom-product-home .discovery-scene,.rom-product-home .rom75-crew img{object-fit:contain}
.rom-product-home .discovery-customize{border:1px solid #d9d8d3;border-radius:.8rem;margin:1rem 0;background:#fff;min-width:0}
.rom-product-home .discovery-customize summary{min-height:3rem;display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;padding:.7rem .8rem;cursor:pointer;color:#3d3e43;font-size:1rem;list-style:none}
.rom-product-home .discovery-customize summary::-webkit-details-marker{display:none}
.rom-product-home .discovery-customize summary small{margin-inline-start:auto;font-size:.9375rem;color:#595c64}
.rom-product-home .discovery-customize summary>.rom-icon:last-child{transition:transform .15s}
.rom-product-home .discovery-customize[open] summary>.rom-icon:last-child{transform:rotate(180deg)}
.rom-product-home .discovery-customize-body{padding:0 .8rem .8rem;border-top:1px solid #e7e6e1}
.rom-product-home .discovery-customize-body .discovery-courses{margin-block:.8rem}
.rom-product-home .discovery-customize-body .rom75-duration{margin:0}
.rom-product-home .rom75-mode-switch{background:#eeeae0;border-color:#d9d8d3}
.rom-product-home .rom75-mode-switch button{font-size:1rem;min-height:3rem;color:#51535a}
.rom-product-home .rom75-mode-switch button[aria-pressed=true]{color:#25272d;box-shadow:inset 0 -3px #8b6b23;background:#fff}
.rom-product-home .discovery-featured{border-radius:1.5rem;border-color:#d9d8d3;box-shadow:none}
.rom-product-home .discovery-visual,.rom-product-home .discovery-scene{background:#f0eee7}
.rom-product-home .discovery-copy{padding:clamp(1.2rem,3vw,2rem)}
.rom-product-home .discovery-copy>p{font-size:1rem;line-height:1.65}
.rom-product-home .discovery-copy>small{font-size:.9375rem;line-height:1.65;color:#595c64}
.rom-product-home .discovery-courses button{font-size:1rem;line-height:1.45;min-height:3rem;border-color:#d9d8d3;background:#fff;color:#595c64}
.rom-product-home .discovery-courses button[aria-pressed=true]{border-color:#9d8449;background:#f7efdc;color:#40351c}
.rom75-duration button{font-size:1rem;min-height:3rem;min-width:3rem;border-color:#d9d8d3;color:#595c64}
.rom75-duration button[aria-pressed=true]{border-color:#9d8449;background:#f7efdc;color:#40351c}
.rom-product-home .discovery-remix{font-size:1rem;color:#51432d;min-height:3rem;display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}
.rom-product-home .discovery-category{min-height:3.5rem;box-shadow:none;border-color:#d9d8d3;background:#fff;color:#25272d}
.rom-product-home .discovery-journey{box-shadow:none;border-color:#d9d8d3;background:#fff}
.rom-product-home .discovery-journey strong{font-size:1.0625rem}.rom-product-home .discovery-journey small{font-size:.9375rem}
.task-directory .task-heading-mark{color:#5e4d25;background:#f3e6bf;box-shadow:none}
.task-directory .task-category,.task-directory [data-task-facet]{font-size:1rem;line-height:1.4;min-height:3rem;border-radius:.75rem}
.task-directory [data-task-facet][aria-pressed=true],.task-directory .task-category[aria-current=page]{background:#292b31;color:white;border-color:#292b31}
.task-directory .task-search{border-color:#868982;box-shadow:none;border-radius:.8rem;background:#fff}
.task-directory .task-search input{font-size:1rem;min-height:3rem}
.task-directory .task-grid{gap:.75rem;grid-template-columns:repeat(3,minmax(0,1fr))}
.task-directory .task-button{min-width:0;min-height:4.4rem;padding:1rem;gap:.75rem;font-size:1rem;border:1px solid #d9d8d3;background:#fff;box-shadow:none;border-radius:.9rem;color:#25272d}
.task-directory .task-button:hover{border-color:#a8997c;background:#fffcf3}
.task-directory .task-glyph{width:2.75rem;height:2.75rem;background:#f3eddf!important;color:#52442b!important;box-shadow:none;border:1px solid #ded4bd;border-radius:.8rem;flex-shrink:0}
.task-directory .task-glyph .rom-icon{width:1.4rem;height:1.4rem;filter:none}
.task-directory .task-group>h2{margin:1.75rem 0 .8rem;font-weight:750}
.settings-menu a,.privacy-link,.ac-task{border-color:#d9d8d3;box-shadow:none;background:#fff}
.settings-menu a{font-size:1rem;min-height:4.25rem;border-radius:.9rem}
.creator-profile{background:#fff;border-color:#d9d8d3;box-shadow:none;border-radius:1.25rem}
.creator-profile .creator-avatar{background:#f3e6bf;color:#5e4d25;box-shadow:none}
.creator-profile :is(p,.small),.creator-settings label{font-size:1rem;line-height:1.65}
.creator-profile .profile-counts{display:flex;flex-wrap:wrap;gap:1rem}.creator-profile .profile-counts span{font-size:.9375rem}
.creator-settings :is(input,textarea),.account-control :is(input,select){font-size:1rem;min-height:3rem}
.series-page .btn[aria-current=page],.series-page [data-series-join]{background:#25272d!important;color:#fff!important;border-color:#25272d!important}
.inbox-page [data-inbox-status][role=alert]{color:#963d38}
@media(max-width:60rem){.task-directory .task-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:40rem){
 .player-main{padding-inline:1rem}.player-header{padding-inline:1rem}
 .task-directory .task-grid{grid-template-columns:minmax(0,1fr)}
 .task-directory .task-button{min-height:4rem;padding:.85rem 1rem}
 .rom-product-home .discovery-courses{gap:.5rem}
 .rom-product-home .discovery-courses button{font-size:.9375rem;padding:.6rem .35rem}
 .rom-product-home .rom75-mode-switch button{font-size:.9375rem;padding:.65rem .35rem}
 .rom-product-home .product-purpose a{font-size:.9375rem;padding:.65rem .35rem}
 .creator-profile{gap:1rem;padding:1.25rem}.creator-profile .actions>*{min-width:0}
}
@media(max-width:22.5rem){.rom-product-home .discovery-courses{grid-template-columns:1fr}.rom-product-home .rom75-mode-switch button{flex-direction:row;font-size:.9375rem}}
@media(forced-colors:active){.player-main :is(a,button,select):focus-visible{outline:3px solid Highlight}.task-directory .task-glyph{border:1px solid CanvasText}.task-directory [aria-pressed=true]{border:2px solid CanvasText}}
@media(prefers-reduced-motion:reduce){body:not(.in-shorts) .player-main *{scroll-behavior:auto;animation:none!important;transition:none!important}}

/* Rule metadata search: portrait reflow, inherited rem text and whole icons. */
.player-main .running-rule-search{margin:0 0 1.25rem;max-width:38rem}
.player-main .running-rule-search>label{display:block;font-weight:700;margin-bottom:.5rem}
.player-main .running-rule-search>div{display:flex;align-items:center;gap:.75rem;background:#fff;border:1px solid #868982;border-radius:1rem;padding:0 1rem}
.player-main .running-rule-search input{flex:1;min-width:0;min-height:3.25rem;border:0;border-radius:0;background:transparent;font:inherit;color:inherit}
.player-main .running-rule-search>div:focus-within{outline:3px solid #347288;outline-offset:3px}
.player-main .running-rule-empty{padding:1.5rem;border:1px solid var(--line);border-radius:1.25rem;background:#fff}
@media(max-width:360px){.player-main .rom76-purpose{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* UX79 shared shell. Older fixed header heights and mobile column cards can
   constrain enlarged labels. Let text set the height; retain whole SVG icons,
   four purpose destinations and the existing portrait-player geometry. */
body:not(.in-shorts):not(.in-engine) .player-header{height:auto;block-size:auto;min-block-size:4.25rem;padding-block:.75rem;flex-wrap:wrap;align-items:center}
body:not(.in-shorts):not(.in-engine) .player-header .brand{min-inline-size:0;max-inline-size:100%}
body:not(.in-shorts):not(.in-engine) .player-header .actions{margin-inline-start:auto;max-inline-size:100%;flex-wrap:wrap}
body:not(.in-shorts):not(.in-engine) .player-header .icon-btn{min-block-size:3rem;block-size:auto;height:auto}
.task-directory .task-root-button{min-block-size:6rem;padding:1.25rem;gap:1rem;border-color:var(--line);border-radius:1rem;background:var(--paper);color:var(--ink);font-size:1.125rem;flex-wrap:nowrap;box-shadow:none}
.task-directory .task-root-button>span:nth-child(2){flex:1;flex-basis:auto;min-inline-size:0}
.task-directory .task-root-button>.rom-icon{position:static;margin-inline-start:auto;color:var(--muted)}
.task-directory .task-root-button .task-glyph{inline-size:3rem;block-size:3rem;flex-shrink:0}
.task-directory .task-root-button:hover{background:#fffcf3;border-color:#a8997c}
.task-directory .task-button{flex-direction:row;align-items:center}
.task-directory .task-button>span:nth-child(2){flex:1;min-inline-size:0}
.task-directory .task-button>.rom-icon{position:static;flex-shrink:0}
.task-directory .task-result-count{font-size:.9375rem;line-height:1.65;color:var(--muted)}
body:not(.in-shorts):not(.in-engine) .player-footer{flex-wrap:wrap;align-items:flex-start;font-size:.9375rem}
@media(max-width:36rem){.task-directory .task-root-grid{grid-template-columns:minmax(0,1fr)}.task-directory .task-root-button{min-block-size:5.25rem;padding:1rem}.task-directory .task-root-button .task-glyph{inline-size:2.75rem;block-size:2.75rem}}
@media(forced-colors:active){.task-directory .task-root-button,.task-directory .task-button{border-color:CanvasText;background:Canvas;color:CanvasText}}

/* UX78 watch surfaces. The video and its editable/translated text stay separate.
 * A single portrait clip plays at a time; details scroll independently so large
 * text and long titles do not cover the seek/play/leave controls. No blur loop,
 * decorative rendering or JS layout animation is needed for this screen.
 */
.in-watch{overflow-y:auto;height:auto;min-height:100dvh}
.in-watch .shorts-root{
 display:flex;flex-direction:column;block-size:100dvh;min-block-size:36rem;
 overflow:hidden;background:#f7f6f2;color:#25272d;font:1rem/1.6 system-ui,-apple-system,"Malgun Gothic","Apple SD Gothic Neo",sans-serif;
}
.in-watch .shorts-header{
 position:relative;inset:auto;flex:none;height:auto;min-height:5.5rem;
 display:flex;align-items:center;flex-wrap:wrap;gap:.75rem;padding:.75rem clamp(.75rem,3vw,2rem);
 background:#fff;border-bottom:1px solid #d9d8d3;box-shadow:0 2px 3px -1px #0000000a;backdrop-filter:none;
}
.in-watch .shorts-brand{color:#25272d;margin:0;font-size:1.25rem;text-shadow:none}
.in-watch .shorts-brand .brand-copy :is(strong,small){color:inherit}
.in-watch .shorts-brand .brand-symbol{display:inline-flex;inline-size:2.75rem;block-size:2.75rem;background:#292b31;color:#fff}
.in-watch .shorts-tabs{position:static;transform:none;display:flex;align-items:center;gap:.25rem;padding:.25rem;background:#eeece4;border:1px solid #d9d8d3;border-radius:.8rem;flex-wrap:wrap;margin-inline:auto}
.in-watch .shorts-section-name{display:none}
.in-watch .shorts-tabs a{font-size:1rem;min-block-size:2.75rem;color:#595c64;padding:.65rem 1rem;gap:.5rem;border-radius:.6rem}
.in-watch .shorts-tabs a[aria-current=page]{color:#25272d;background:#fff;box-shadow:inset 0 -3px #8b6b23}
.in-watch .shorts-tools{position:static;display:flex;gap:.35rem;align-items:center;flex-wrap:wrap}
.in-watch .shorts-tools .shorts-tool{inline-size:2.75rem;min-inline-size:2.75rem;block-size:2.75rem;height:auto;border-radius:.65rem;background:#fff;color:#25272d;border:1px solid #94958f}
.in-watch .shorts-feed{position:relative;inset:auto;flex:1;min-block-size:0;height:auto;width:100%;max-width:76rem;margin-inline:auto;padding:0;overflow-y:auto;scroll-snap-type:y mandatory}
.in-watch .shorts-item.watch-item{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1fr);height:100%;min-height:100%;width:100%;padding:clamp(.75rem,2.5vw,1.5rem);gap:clamp(1rem,3vw,2rem);background:none;overflow:hidden;scroll-snap-align:start}
.in-watch .watch-video-area{position:relative;inline-size:100%;block-size:100%;height:100%;min-inline-size:0;margin:0;border-radius:1rem;background:#17191e;box-shadow:0 2px 3px -1px #0000001a,0 0 0 1px #191c2114;overflow:hidden}
.in-watch .watch-video-area video{inline-size:100%;block-size:100%;height:100%;object-fit:contain!important}
.in-watch .video-toggle{position:absolute;inset:auto;top:50%;left:50%;transform:translate(-50%,-50%);inline-size:4.5rem;block-size:4.5rem;min-height:3rem;display:grid;place-items:center;border:2px solid #fff;border-radius:50%;color:#fff;background:#202329e8;backdrop-filter:none;transition:opacity 120ms ease-out;z-index:2}
.in-watch .video-playing .video-toggle{opacity:0;pointer-events:none}
.in-watch .video-playing .video-toggle:focus-visible{opacity:1;pointer-events:auto}
.in-watch .watch-details{min-inline-size:0;min-block-size:0;overflow-y:auto;overscroll-behavior:contain;padding:.25rem .5rem 1rem .25rem;scrollbar-gutter:stable}
.in-watch .watch-transport{display:flex;align-items:center;flex-wrap:wrap;gap:.75rem;padding-block:.25rem .75rem;border-bottom:1px solid #d9d8d3}
.in-watch .watch-action{font-family:inherit;font-size:1rem;font-weight:600;line-height:1.4;color:#25272d;background:#fff;border:1px solid #94958f;border-radius:.7rem;min-block-size:3rem;padding:.65rem .9rem;display:inline-flex;align-items:center;justify-content:center;gap:.5rem;text-decoration:none;white-space:normal;overflow-wrap:anywhere;max-inline-size:100%;box-shadow:0 2px 3px -1px #00000008}
.in-watch .watch-action>.rom-icon{inline-size:1.25rem;block-size:1.25rem;flex:none}
.in-watch .watch-action:not(:disabled):hover{background:#f4efdf;border-color:#62563a}
.in-watch .watch-action:disabled{opacity:.55;cursor:default}
.in-watch .watch-seek{flex:1;min-inline-size:8rem}
.in-watch .watch-seek label{font-size:.9375rem;display:block;color:#595c64}
.in-watch .watch-seek input{inline-size:100%;block-size:2.5rem;min-height:2.5rem;accent-color:#514425;cursor:pointer}
.in-watch .watch-seek input:disabled{opacity:.55;cursor:default}
.in-watch .watch-time{font-size:.9375rem;font-variant-numeric:tabular-nums;white-space:nowrap;color:#595c64}
.in-watch .watch-status{font-size:.9375rem;line-height:1.6;margin:.75rem 0;color:#595c64}
.in-watch .watch-status[role=alert]{color:#963d38}
.in-watch .watch-retry{display:flex;gap:.5rem;flex-wrap:wrap;margin-block:.5rem 1rem}
.in-watch [hidden]{display:none!important}
.in-watch .watch-caption{position:static;inset:auto;color:#25272d;text-shadow:none;padding:1rem 0;margin:0;min-inline-size:0}
.in-watch .creator-label{font-size:1rem;color:#25272d;line-height:1.5;gap:.5rem;overflow-wrap:anywhere}
.in-watch .watch-caption .watch-kind{font-size:.9375rem;color:#595c64;margin:.5rem 0 1rem}
.in-watch .watch-caption h1{color:#25272d;font-size:clamp(1.3rem,2.4vw,1.8rem);line-height:1.35;letter-spacing:-.015em;margin:.5rem 0 .75rem;overflow-wrap:anywhere}
.in-watch .watch-caption p{font-size:1rem;line-height:1.65;color:#595c64;margin:.75rem 0;max-inline-size:55ch;overflow-wrap:anywhere}
.in-watch .watch-primary{display:flex;gap:.5rem;flex-wrap:wrap;margin-block:1rem}
.in-watch .watch-primary [data-sh=challenge]{background:#292b31;border-color:#292b31;color:#fff}
.in-watch .watch-actions{position:static;inset:auto;display:flex;flex-direction:row;align-items:stretch;gap:.5rem;flex-wrap:wrap;color:#25272d;padding-top:1rem;border-top:1px solid #d9d8d3;margin-bottom:.5rem}
.in-watch .watch-actions span{font-size:1rem;font-weight:600;margin:0}
.in-watch .watch-actions .chosen{color:#963d38;background:#fff7f4;border-color:#b1685e}
.in-watch .watch-recovery{padding:1rem;border:1px solid #b1685e;border-radius:.75rem;background:#fff7f4;margin-bottom:1rem}
.in-watch .watch-recovery .btn{font-size:1rem;min-block-size:3rem;line-height:1.4;white-space:normal}
.in-watch .portrait-context{display:none}
.in-watch .shorts-navigation{position:relative;inset:auto;transform:none;display:flex;flex-direction:row;justify-content:center;align-items:center;gap:1rem;flex:none;padding:.5rem 1rem calc(.5rem + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #d9d8d3;width:100%;min-height:3.75rem}
.in-watch .shorts-navigation .round-action{color:#25272d;background:#fff;border:1px solid #94958f;min-inline-size:3rem;inline-size:auto;min-block-size:3rem;block-size:auto;height:auto;padding:.5rem .75rem;gap:.5rem;font-size:1rem;border-radius:.65rem}
.in-watch .shorts-navigation .round-action:disabled{opacity:.45;cursor:default}
.in-watch .shorts-pagination{font-size:1rem;line-height:1.5;color:#595c64;font-variant-numeric:tabular-nums}
.in-watch .scroll-label{display:none}
.in-watch :is(button,a,input):focus-visible{outline:3px solid #276486;outline-offset:3px}
@media(max-width:700px){
 .in-watch .shorts-header{min-height:0;padding:.5rem .75rem;gap:.5rem}
 .in-watch .shorts-brand .brand-copy{display:none}
 .in-watch .shorts-tools{margin-inline-start:auto;gap:.25rem}
 .in-watch .shorts-tabs{order:3;flex-basis:100%;justify-content:center;margin:0}
 .in-watch .shorts-tabs a{flex:1;justify-content:center;padding:.55rem .5rem}
 .in-watch .shorts-item.watch-item{display:flex;flex-direction:column;padding:.75rem;gap:.75rem}
 .in-watch .watch-video-area{block-size:46%;height:46%;min-block-size:7rem;flex:none;border-radius:.75rem}
 .in-watch .watch-details{flex:1;inline-size:100%;padding:0 .25rem .5rem}
 .in-watch .watch-transport{gap:.5rem}
 .in-watch .watch-time{flex-basis:100%;text-align:end}
 .in-watch .watch-caption{padding:.5rem 0}
 .in-watch .watch-caption h1{font-size:1.3rem}
 .in-watch .shorts-root .shorts-navigation{display:flex;gap:.75rem;padding-inline:.5rem}
 .in-watch .shorts-navigation .round-action{padding:.5rem;flex:1;max-inline-size:10rem}
}
@media(max-height:500px) and (orientation:landscape){
 .in-watch .shorts-root{min-block-size:0}
 .in-watch .shorts-header{padding:.35rem .75rem;min-height:0}
 .in-watch .shorts-tabs{order:0;flex-basis:auto}
 .in-watch .shorts-item.watch-item{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1rem}
 .in-watch .watch-video-area{block-size:100%;height:100%;min-block-size:0}
 .in-watch .watch-details{block-size:100%;height:100%}
 .in-watch .watch-transport{padding-block:.15rem .4rem}
 .in-watch .watch-status{margin:.35rem 0}
 .in-watch .watch-caption{padding:.35rem 0}
 .in-watch .watch-caption .watch-kind{margin:.25rem 0 .45rem}
 .in-watch .watch-caption h1{font-size:1.2rem;margin:.25rem 0 .5rem}
 .in-watch .shorts-navigation{padding:.25rem .75rem;min-height:0}
}

/* Keep the desktop clip and navigation in one sightline. The details stay
 * independently scrollable, so long text cannot resize the clip. */
@media (min-width:1100px) and (min-height:650px) {
 .in-watch .shorts-root{
  --watch-clip-width:min(27rem, calc(56.25dvh - 5.1rem));
  --watch-rail-width:3.75rem;
  --watch-desktop-gap:clamp(.75rem,1.6vw,1.5rem);
  display:grid;
  grid-template-columns:minmax(0,1fr) var(--watch-clip-width) var(--watch-rail-width) minmax(16rem,26rem) minmax(0,1fr);
  grid-template-rows:auto minmax(0,1fr);
  column-gap:var(--watch-desktop-gap);
 }
 .in-watch .shorts-header{grid-column:1/-1}
 .in-watch .shorts-feed{grid-area:2/2/3/5;max-width:none;min-inline-size:0;box-shadow:none}
 .in-watch .shorts-item.watch-item{
  grid-template-columns:var(--watch-clip-width) var(--watch-rail-width) minmax(0,1fr);
  grid-template-rows:minmax(0,1fr);
  column-gap:var(--watch-desktop-gap);
  padding:1rem 0;
 }
 .in-watch .watch-video-area{block-size:auto;height:auto;max-block-size:100%;aspect-ratio:9/16;align-self:center}
 .in-watch .watch-details{grid-column:3;align-self:stretch}
 .in-watch .shorts-navigation{
  grid-area:2/3/3/4;place-self:center;flex-direction:column;gap:.75rem;
  padding:.25rem;min-height:0;background:none;border:0;
 }
 .in-watch .shorts-navigation .round-action{padding:0;inline-size:3rem;block-size:3rem;border-radius:50%;backdrop-filter:none}
 .in-watch .shorts-navigation .round-action>span{display:none}
}

@media(prefers-reduced-motion:reduce){.in-watch .video-toggle{transition:none}.in-watch .shorts-feed{scroll-behavior:auto}}
@media(forced-colors:active){.in-watch .watch-action,.in-watch .shorts-tools .shorts-tool,.in-watch .shorts-navigation .round-action{border-color:ButtonText}.in-watch .video-toggle{border-color:ButtonText;background:Canvas;color:ButtonText}}

/* Creation browsing and editing share the existing product tokens.
 * 한국어 인계: 원본 그림은 그대로 두고, 글자 확대와 좁은 화면에 조작부가
 * 다시 배치되게 한다. 카드 전체를 클릭 처리하지 않아 링크/버튼 의미를 유지한다.
 */
.creation-heading{margin:1.75rem 0 1.5rem;max-width:48rem}
.creation-heading h1{font-size:clamp(1.75rem,4vw,2.5rem);line-height:1.25;letter-spacing:-.025em}
.creation-heading p,.creation-count{font-size:1rem;line-height:1.65}
.creation-nav{display:grid;grid-template-columns:repeat(auto-fit,minmax(9rem,1fr));gap:.5rem;margin:.5rem 0 1.5rem;max-width:64rem}
.creation-nav a{justify-content:center;gap:.5rem;min-height:2.875rem;padding:.65rem .8rem;font-size:.95rem;line-height:1.4;text-align:center}
.creation-nav a[aria-current=page]{background:var(--lilac);border-color:var(--violet);color:var(--deep)}
.creation-grid{gap:1.25rem}
.creation-card-copy{gap:.75rem;padding:1.25rem}
.creation-card-copy h2{font-size:1.25rem;line-height:1.45;margin:0;letter-spacing:-.015em}
.creation-card-copy>.btn{align-self:flex-start;min-height:2.75rem;font-size:.95rem}
.creation-author{font-size:.95rem;line-height:1.5}
.creation-status{font-size:.875rem;padding:.375rem .625rem;max-width:100%;flex-wrap:wrap}
.creation-art img{object-fit:contain;width:100%;height:100%}
.creation-shortcut strong{font-size:1rem;line-height:1.5}
.creation-filters .btn{min-height:2.75rem;font-size:.95rem}
.creation-fields label,#creation-appeal-form label{font-size:1rem;line-height:1.5}
.creation-fields input,.creation-fields textarea,#creation-appeal-form textarea{font-size:1rem;line-height:1.6;min-height:3rem;scroll-margin-block:7rem}
.creation-guidance,#creation-status,#creation-detail-status,#creation-modal-status{font-size:.95rem;line-height:1.7}
.creation-detail-copy h1{font-size:clamp(1.75rem,4vw,2.25rem);line-height:1.3}
.creation-detail-copy>.actions{gap:.5rem;flex-wrap:wrap}
.creation-detail-copy>.actions .btn{min-height:2.75rem;white-space:normal;text-align:center}
.creation-nav a,.creation-card a,.creation-fields button,.creation-detail a,.creation-detail button,.creation-filters a{scroll-margin-block:7rem}
.creation-nav a:focus-visible,.creation-card a:focus-visible,.creation-fields button:focus-visible,.creation-detail a:focus-visible,.creation-detail button:focus-visible,.creation-filters a:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
@media(max-width:40rem){.creation-nav{grid-template-columns:repeat(2,minmax(0,1fr))}.creation-grid{grid-template-columns:1fr}.creation-card-copy{padding:1rem}.creation-fields{padding:1.25rem}.creation-detail-copy>.actions .btn{flex:1 1 8rem}}
@media(max-width:23rem){.creation-nav{grid-template-columns:1fr}.creation-detail-copy>.actions .btn{flex-basis:100%}}
@media(forced-colors:active){.creation-nav a[aria-current=page]{border:2px solid Highlight}.creation-nav a:focus-visible,.creation-card a:focus-visible{outline-color:Highlight}}

/* ROM community: profile first, portrait media, then clear actions.
 * Text and icons remain separate. Rem sizing reflows with enlarged text.
 * No decorative loops, backdrop blur, extra font/media downloads or autoplay.
 */
.player-main .creator-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.4rem;margin-block:.5rem 1.5rem;padding:.4rem;border-radius:1rem;border:1px solid var(--line);background:#eeebe3}
.player-main .creator-nav a{display:flex;align-items:center;justify-content:center;gap:.5rem;min-block-size:3rem;min-inline-size:0;padding:.65rem .4rem;border:0;border-radius:.7rem;background:transparent;font-size:1rem;line-height:1.4;text-align:center;overflow-wrap:anywhere}
.player-main .creator-nav a[aria-current=page]{background:#fff;color:#242830;box-shadow:inset 0 -.18rem #8b6b23;text-decoration:none}
.player-main .community-heading{align-items:center;gap:1.25rem;padding-block:1rem 1.5rem;margin-block:0 1rem;border-block-end:1px solid var(--line)}
.player-main .community-heading p{max-inline-size:42ch;margin-block:.65rem 0;line-height:1.7}
.player-main .community-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:1.25rem}
.player-main .community-post{min-inline-size:0;border-radius:1.25rem;border:1px solid var(--line);background:#fff;box-shadow:0 2px 3px #20232106;overflow:hidden}
.player-main .community-post .post-media{aspect-ratio:4/5;background:#e9e8e1;overflow:hidden;display:grid;place-items:center}
.player-main .community-post .post-media :is(img,video){inline-size:100%;block-size:100%;max-block-size:none;object-fit:contain}
.player-main .community-post .post-content{padding:1.1rem}
.player-main .community-post .post-content h2{font-size:1.125rem;line-height:1.5;margin-block:1rem .5rem}
.player-main .community-post .post-caption{font-size:1rem;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;max-inline-size:65ch}
.player-main .post-author{display:flex;align-items:center;gap:.65rem;min-block-size:3rem;min-inline-size:0}
.player-main .post-author small{display:block;font-size:.875rem;color:var(--muted);overflow-wrap:anywhere}
.player-main .creator-avatar{flex-shrink:0;inline-size:2.75rem;block-size:2.75rem;display:grid;place-items:center;font-size:1.125rem;background:#f3e6bf;color:#453a25;border-radius:.9rem}
.player-main .post-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin-block-start:1rem}
.player-main .post-actions .btn{min-inline-size:0;gap:.4rem;padding:.6rem .75rem;font-size:.9375rem;min-block-size:2.75rem}
.player-main .creator-profile{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:1.25rem;padding:clamp(1.25rem,4vw,2rem);margin-block:1rem 1.5rem;border-radius:1.25rem;min-inline-size:0}
.player-main .creator-profile .creator-avatar.large{inline-size:5rem;block-size:5rem;font-size:2rem;border-radius:1.4rem}
.player-main .creator-profile h1{margin-block:.25rem .4rem;overflow-wrap:anywhere}
.player-main .creator-profile p{max-inline-size:60ch;overflow-wrap:anywhere}
.player-main .profile-counts{display:flex;flex-wrap:wrap;gap:1rem;margin-block:1rem}
.player-main .profile-counts span{font-size:1rem;color:var(--muted)}
.player-main .profile-counts b{color:var(--ink);font-variant-numeric:tabular-nums}
.player-main .creator-find{max-inline-size:44rem;margin-block:1.25rem}
.player-main .creator-find label{display:block;font-weight:700;margin-block:1.5rem .5rem}
.player-main .creator-find-row{display:flex;gap:.75rem;align-items:start}
.player-main .creator-find-row input{flex:1;min-inline-size:0;min-block-size:3rem;padding:.75rem;border:1px solid #868982;border-radius:.75rem;font-size:1rem}
.player-main .creator-find .small{line-height:1.7;max-inline-size:60ch}
.player-main .creator-find-result{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;margin-block:1.5rem 0;padding:1.25rem;background:#fff;border:1px solid var(--line);border-radius:1rem;min-inline-size:0}
.player-main .creator-find-result>div{flex:1;min-inline-size:0;overflow-wrap:anywhere}
.player-main .creator-find-result h2{font-size:1.125rem;margin-block:0 .25rem}
.player-main [data-community-find-error]{color:#963d38;min-block-size:1.5rem}
.player-main :is(.creator-nav,.creator-find,.creator-profile,.post-actions) :is(a,button,input):focus-visible{outline:3px solid #53472e;outline-offset:3px;scroll-margin-block:6rem}
@media(max-width:60rem){.player-main .community-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:40rem){
 .player-main .community-grid{grid-template-columns:minmax(0,1fr);gap:1rem}
 .player-main .community-heading{display:block}.player-main .community-heading>.btn{margin-block-start:1rem}
 .player-main .creator-profile{grid-template-columns:minmax(0,1fr);gap:1rem}
 .player-main .creator-nav a{flex-wrap:wrap;font-size:.9375rem}
 .player-main .creator-profile .actions .btn{flex:1 1 9rem}
}
@media(max-width:23rem){.player-main .creator-nav{grid-template-columns:repeat(2,minmax(0,1fr))}.player-main .creator-find-row{flex-wrap:wrap}.player-main .creator-find-row input{flex-basis:100%}}
@media(prefers-reduced-motion:reduce){.player-main :is(.creator-nav,.community-post,.creator-profile,.creator-find) *{animation:none!important;transition:none!important;scroll-behavior:auto}}
@media(forced-colors:active){.player-main .creator-nav a[aria-current=page]{border:2px solid CanvasText}.player-main :is(.creator-nav,.creator-find,.creator-profile,.post-actions) :focus-visible{outline-color:Highlight}}

/* A whole approved emoji image and independent text form one choice. Keep
   names visible at large text sizes; no image sheet, cropping or raster copy. */
.emoji-reaction-dialog .reaction-picker{grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem}
.emoji-reaction-dialog .reaction-option{padding:1rem .75rem;min-inline-size:0;min-block-size:8rem;gap:.5rem}
.emoji-reaction-dialog .reaction-option[hidden]{display:none}
.emoji-reaction-dialog .reaction-option img{inline-size:4rem;block-size:4rem;object-fit:contain;flex-shrink:0}
.emoji-reaction-dialog .reaction-option strong{font-size:1rem;line-height:1.5;overflow-wrap:anywhere}
.emoji-reaction-dialog .reaction-option small{font-size:.875rem;line-height:1.5;overflow-wrap:anywhere}
.emoji-reaction-dialog .reaction-option[aria-pressed=true]{border-color:#53472e;background:#f3eddf}
.emoji-reaction-dialog .reaction-option:focus-visible{outline:3px solid #53472e;outline-offset:3px;scroll-margin-block:5rem}
.emoji-reaction-dialog [data-reaction-status]{line-height:1.7;overflow-wrap:anywhere}
@media(max-width:32rem){.emoji-reaction-dialog .reaction-picker{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:21rem){.emoji-reaction-dialog .reaction-picker{grid-template-columns:minmax(0,1fr)}}
@media(forced-colors:active){.emoji-reaction-dialog .reaction-option[aria-pressed=true]{border:2px solid Highlight}}

/* UX79 shared race: existing whole artwork and readable state labels. These
 * overrides keep the native forms, responsive controls and race renderer. */
.room-page .room-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.625rem}
.room-page .room-nav .btn{min-width:0;min-height:3rem;font-size:1rem;white-space:normal;overflow-wrap:anywhere;justify-content:center}
.room-page .room-heading p,.room-page .room-card>p,.room-page .room-status{font-size:1rem;line-height:1.6}
.room-page .room-roster{gap:.75rem}
.room-page .room-runner{padding:1rem .625rem;gap:.5rem}
.room-page .room-runner-art{width:5rem;height:5rem;display:grid;place-items:center}
.room-page .room-runner-art img{display:block;max-width:100%;height:100%;object-fit:contain}
.room-page .room-runner strong{font-size:1rem;line-height:1.4;text-align:center;overflow-wrap:anywhere}
.room-page .room-runner small{font-size:.875rem;line-height:1.4;text-align:center}
.room-page .room-character-picker img{object-fit:contain}
.room-page [data-room-action][hidden]{display:none}
.room-page :is(a,button,input,select,canvas):focus-visible{outline:3px solid var(--accent,#785a22);outline-offset:3px;scroll-margin-block:6rem}
.room-page .room-code-card strong{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
@media(max-width:680px){.room-page .room-nav{grid-template-columns:repeat(2,minmax(0,1fr))}.room-page .room-nav .btn{padding:.625rem .75rem;font-size:1rem}}
@media(max-width:360px){.room-page .room-form-row{grid-template-columns:1fr}}
@media(forced-colors:active){.room-page .room-runner,.room-page .room-card{border:1px solid CanvasText}.room-page .room-runner.is-own{border:2px solid Highlight}.room-page :is(a,button,input,select,canvas):focus-visible{outline-color:Highlight}}

/* ROM UX80 consumer design: clear play choices, whole existing scene/crew art,
 * one type family and a restrained blue accent. This file loads after legacy
 * consumer CSS; the game canvas, owner surfaces and source images stay separate.
 * 한국어 인계: 고정 글자 높이를 쓰지 않는다. 큰 글자/320px/키보드/축소동작
 * 요구는 아래 배치의 설계 목표이며 실제 기기에서 별도 확인해야 한다. */
:root{--rom80-ink:#202a37;--rom80-muted:#536273;--rom80-line:#d3dce5;--rom80-blue:#2453a4;--rom80-soft:#edf3fb;--rom80-paper:#fff}
body:not(.in-shorts){background:#f4f7fa;color:var(--rom80-ink)}
/* Retain semantic token names used by older feature modules. The override is
 * consumer-only and outside immersive rendering; owner bundles do not load it. */
body:not(.in-shorts):not(.in-engine){--ink:var(--rom80-ink);--muted:var(--rom80-muted);--line:var(--rom80-line);--paper:var(--rom80-paper);--bg:#f4f7fa;--accent:var(--rom80-blue);--soft:var(--rom80-soft);--focus:var(--rom80-blue);--rom-focus-color:var(--rom80-blue);--violet:var(--rom80-blue);--deep:#193f81;--lilac:var(--rom80-soft)}
body:not(.in-shorts) .brand-symbol{background:var(--rom80-blue)}
body:not(.in-shorts) .top-nav a:hover,body:not(.in-shorts) .top-nav a[aria-current=page]{background:var(--rom80-soft);color:var(--rom80-ink)}
body:not(.in-shorts) .experience-nav [aria-current=page]{color:var(--rom80-blue);background:var(--rom80-soft)}
body:not(.in-shorts) .player-main .icon-tile{background:var(--rom80-soft);color:var(--rom80-blue);border-color:#cbd9eb}
body:not(.in-shorts) .player-header{background:var(--rom80-paper);border-bottom:1px solid var(--rom80-line);border-radius:0;box-shadow:none}
body:not(.in-shorts) .player-main{padding-block:1.5rem 6rem}
body:not(.in-shorts) .player-main :is(.task-heading,.free-heading,.room-heading,.catalog-heading){margin-block:0 1.75rem}
body:not(.in-shorts) .player-main :is(.task-heading,.free-heading,.room-heading,.catalog-heading) h1{font-weight:800;letter-spacing:-.045em}
body:not(.in-shorts) .player-main :is(.task-heading,.free-heading,.room-heading,.catalog-heading) p{max-width:42rem;color:var(--rom80-muted)}
body:not(.in-shorts) .btn.primary{background:var(--rom80-blue);border-color:var(--rom80-blue);color:#fff}
body:not(.in-shorts) .btn.primary:not(:disabled):hover{background:#193f81;border-color:#193f81}
body:not(.in-shorts) .player-main :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid var(--rom80-blue);outline-offset:3px}
.rom-product-home .discovery-heading{margin-block:0 1.25rem}
body:not(.in-shorts) .rom-product-home .discovery-heading h1{font-size:clamp(2rem,5vw,3rem);font-weight:850;letter-spacing:-.05em;margin-block:0 .625rem}
.rom-product-home .discovery-heading p{font-size:1.0625rem;color:var(--rom80-muted);max-width:44rem}
.rom-product-home .product-purpose{background:#e8edf3;border-color:var(--rom80-line);padding:.375rem;border-radius:1rem;margin-block:0 1.25rem}
.rom-product-home .product-purpose a{min-block-size:3.25rem;color:var(--rom80-muted);font-size:1rem}
.rom-product-home .product-purpose a.selected{background:#fff;color:var(--rom80-ink);box-shadow:inset 0 -3px var(--rom80-blue)}
.rom-product-home .rom75-mode-switch{gap:.75rem;margin-block:1.25rem}
.rom-product-home .rom75-mode-switch{background:transparent;border-color:transparent;padding:0}
.rom-product-home .rom75-mode-switch button{min-inline-size:0;min-block-size:4rem;padding:.875rem;border:1px solid var(--rom80-line);border-radius:1rem;background:#fff;box-shadow:none;text-align:start}
.rom-product-home .rom75-mode-switch button[aria-pressed=true]{border:2px solid var(--rom80-blue);background:var(--rom80-soft);color:var(--rom80-ink)}
.rom-product-home .rom75-mode-switch button[aria-pressed=true]{box-shadow:none}
.rom-product-home .game-choice-name{font-size:1.0625rem;line-height:1.45;font-weight:750;display:flex;align-items:center;gap:.625rem;min-width:0}
.rom-product-home .game-choice-name>.rom-icon{inline-size:1.5rem;block-size:1.5rem;flex-shrink:0;color:var(--rom80-blue)}
.rom-product-home .game-choice-label{min-width:0;overflow-wrap:anywhere}
.rom-product-home .discovery-featured{border:1px solid var(--rom80-line);border-radius:1.75rem;background:#fff;box-shadow:0 8px 24px #202a370a;overflow:hidden}
.rom-product-home .discovery-copy{background:#fff;padding:clamp(1.25rem,3vw,2.25rem)}
body:not(.in-shorts) .rom-product-home .discovery-copy h2{font-size:clamp(1.75rem,3vw,2.25rem);line-height:1.3;font-weight:850;letter-spacing:-.04em}
.rom-product-home .discovery-copy>p{font-size:1rem;line-height:1.7;color:var(--rom80-muted)}
.rom-product-home .discovery-customize{border:1px solid var(--rom80-line);border-radius:.875rem;background:#f8fafc;margin-block:1rem}
.rom-product-home .discovery-customize summary{min-block-size:3rem;padding:.75rem;gap:.5rem;flex-wrap:wrap}
.rom-product-home .discovery-customize-body{padding:.5rem .875rem .875rem}
.rom-product-home .discovery-courses button[aria-pressed=true],.rom-product-home .rom75-duration button[aria-pressed=true]{border-color:var(--rom80-blue);background:var(--rom80-soft);color:var(--rom80-ink);font-weight:750}
.rom-product-home .discovery-play{min-block-size:3.5rem;font-size:1.125rem;border-radius:.875rem}
.rom-product-home .discovery-remix{color:var(--rom80-blue);font-weight:650}
.rom-product-home :is(.discovery-path,.discovery-category,.discovery-journey,.product-after-play){background:#fff;border-color:var(--rom80-line);box-shadow:none;border-radius:1.125rem}
.rom-product-home :is(.discovery-path-icon,.discovery-category>.rom-icon,.product-after-play>div>span){background:var(--rom80-soft);color:var(--rom80-blue)}
.task-directory .task-root-button{background:#fff;border:1px solid var(--rom80-line);border-radius:1.125rem;box-shadow:none;min-block-size:5rem;padding:1.125rem;gap:.875rem}
.task-directory .task-root-button>span:not(.task-glyph){font-weight:750;font-size:1.125rem;line-height:1.45}
.task-directory .task-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:.875rem}
.task-directory :is(.task-button,.task-root-button):hover{background:#f8fbff;border-color:#90a8c7}
.task-directory .task-button{min-block-size:4.75rem;border-color:var(--rom80-line);padding:1.125rem;border-radius:1rem;font-weight:650}
.task-directory .task-glyph{background:var(--rom80-soft)!important;color:var(--rom80-blue)!important;border-color:#cbd9eb;border-radius:.875rem}
.task-directory .task-category[aria-current=page],.task-directory [data-task-facet][aria-pressed=true]{background:var(--rom80-blue);border-color:var(--rom80-blue);color:#fff}
.task-directory .task-search-row{gap:.75rem}
.task-directory .task-heading-mark{color:var(--rom80-blue);background:var(--rom80-soft)}
.task-directory .searchbox{border-color:#728599;background:#fff;border-radius:.875rem}
.task-directory .task-group>h2{font-size:1.25rem;letter-spacing:-.025em;margin-block:1.75rem .875rem}
/* Forms and room preparation use the same type and color hierarchy as home.
 * Status color and race character/scene imagery retain their original meaning. */
body:not(.in-shorts) :is(.free-card,.room-card,.creator-profile){border-color:var(--rom80-line);box-shadow:none;border-radius:1.25rem;background:#fff}
body:not(.in-shorts) :is(.free-kicker,.free-chip,.free-heading-icon,.creator-profile .creator-avatar){background:var(--rom80-soft);color:var(--rom80-blue)}
body:not(.in-shorts) .free-tabs a[aria-current=page]{background:var(--rom80-blue);border-color:var(--rom80-blue);color:#fff}
body:not(.in-shorts) .free-guide{background:#f8fafc}
body:not(.in-shorts) :is(.free-consent input,.free-usage-grid progress){accent-color:var(--rom80-blue)}
body:not(.in-shorts) :is(.free-hint,.free-date,.free-state,.free-details dt){font-size:.9375rem;line-height:1.65;color:var(--rom80-muted)}
body:not(.in-shorts) .free-state{font-weight:700}
body:not(.in-shorts) .room-page .room-runner.is-own{border-color:var(--rom80-blue);background:var(--rom80-soft)}
/* Keep result navigation usable with translated words and enlarged text. Field
 * boundaries use the same opaque 3.79:1 white contrast as directory search.
 * This is a source-level choice; actual cascade/reflow needs device review. */
body:not(.in-shorts) .room-result>.btn{margin-block:.75rem 0;margin-inline-end:.5rem;max-inline-size:100%;white-space:normal;overflow-wrap:anywhere}
body:not(.in-shorts) .room-nav .btn{font-size:1rem;white-space:normal;overflow-wrap:anywhere}
body:not(.in-shorts) :is(.free-card input:not([type=checkbox]):not([type=radio]),.free-card textarea,.free-filter select,.room-card input:not([type=checkbox]):not([type=radio]),.room-card select,#room-rematch input:not([type=checkbox]):not([type=radio]),#room-rematch select){min-inline-size:0;border-color:#728599;color:var(--rom80-ink);background:#fff}
body:not(.in-shorts) :is(.room-heading>span,.room-code-card,.room-chip){background:var(--rom80-soft);color:var(--rom80-blue)}
body:not(.in-shorts) .room-runner small{color:var(--rom80-muted)}
body:not(.in-shorts) .room-cheer-picker button{border-color:#728599;color:var(--rom80-ink)}
body:not(.in-shorts) .room-cheer-picker :is(small,figcaption){color:var(--rom80-muted)}
body:not(.in-shorts) .room-cheer-picker button[aria-pressed=true],body:not(.in-shorts) #room-rematch .room-character-picker input:checked+span{border-color:var(--rom80-blue);background:var(--rom80-soft)}
body:not(.in-shorts) :is(.room-cheer-picker button,#room-rematch input,#room-rematch select):focus-visible{outline-color:var(--rom80-blue)}
@media(min-width:960px){.rom-product-home .discovery-featured{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)}.rom-product-home .discovery-copy{display:flex;flex-direction:column;justify-content:center}}
@media(max-width:680px){.rom-product-home .rom75-mode-switch{grid-template-columns:1fr;gap:.625rem}.rom-product-home .rom75-mode-switch button{min-block-size:3.5rem}.rom-product-home .game-choice-name{width:100%}.task-directory .task-grid{grid-template-columns:1fr}.task-directory .task-button{min-block-size:4.25rem}.rom-product-home .discovery-featured{border-radius:1.25rem}.rom-product-home .discovery-customize summary small{flex-basis:100%;margin-inline-start:1.75rem}}
@media(min-width:681px) and (max-width:960px){.task-directory .task-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){body:not(.in-shorts) :is(.rom-product-home,.task-directory) *,body:not(.in-shorts) :is(.rom-product-home,.task-directory) *::before,body:not(.in-shorts) :is(.rom-product-home,.task-directory) *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(forced-colors:active){.rom-product-home .rom75-mode-switch button[aria-pressed=true]{border-color:Highlight}.rom-product-home .product-purpose a.selected{outline:2px solid Highlight}.task-directory .task-glyph{background:Canvas!important;color:CanvasText!important}}

/* Character contest uses complete existing images, with separate text labels. */
.free-contest-art { width:4rem; height:4rem; flex:0 0 4rem; object-fit:contain; border-radius:.75rem; background:#eef2f8; }
.free-character-entry { display:flex; align-items:center; gap:.75rem; margin-block:.75rem; }
.free-character-entry p { min-width:0; overflow-wrap:anywhere; }
.free-character-entry small { display:block; color:#526176; margin-top:.25rem; }
.free-result-choices label { flex-wrap:wrap; }

/* Constant glyph size, complete PNGs, separate words; no filters/render loops. */
.mobile-control-mark {
    display:inline-flex;
    width:32px;
    height:32px;
    align-items:center;
    justify-content:center;
    border-radius:10px;
    background:#293c59;
    color:#fff;
    flex-shrink:0;
    pointer-events:none;
}

.mobile-control-mark img,.mobile-control-mark .rom-icon {
    width:24px;
    height:24px;
    object-fit:contain;
}

.mobile-control-fallback {
    display:none;
}

.steer-controls .touch-word {
    font-size:.875rem;
    line-height:1.2;
    font-weight:700;
    letter-spacing:0;
}

.steer-controls button {
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:4px;
}

.race-controls .action-controls .mobile-control-mark {
    margin:0;
}

.room-controls .mobile-control-mark {
    margin:2px 0;
}

@media(forced-colors:active) {
    .mobile-control-mark {
        background:Canvas;
        color:CanvasText;
        border:1px solid CanvasText;
    }
    .mobile-control-mark img {
        display:none;
    }
    .mobile-control-fallback {
        display:inline-flex;
    }
    .mobile-control-fallback .rom-icon {
        fill:CanvasText;
    }
}

/* Override the older 40px controls together with their grid tracks. A complete
 * icon and a separate word need room; widening only the button would overlap
 * adjacent controls on a narrow phone. Input handlers still own the same bits. */
.race-controls .steer-controls button {
    width:60px;
    min-width:48px;
    height:auto;
    min-height:64px;
    padding:4px 3px;
    box-sizing:border-box;
}

.race-controls .action-controls {
    display:grid;
    grid-template-columns:60px 60px;
    grid-template-rows:minmax(64px,auto) minmax(64px,auto);
    gap:8px;
    align-items:end;
}

.race-controls .action-controls .small-control {
    width:60px;
    min-width:48px;
    height:auto;
    min-height:64px;
    padding:3px 3px;
    box-sizing:border-box;
    gap:3px;
}

.race-controls .action-controls .jump-control,.race-controls .action-controls .turbo-control {
    width:60px;
    min-width:48px;
    height:auto;
    min-height:64px;
    padding:4px 3px;
    box-sizing:border-box;
    gap:3px;
}

.race-controls .action-controls .small-control:first-child {
    grid-column:1;
    grid-row:1;
}

.race-controls .action-controls .small-control:nth-child(2) {
    grid-column:2;
    grid-row:1;
}

.race-controls .action-controls .jump-control {
    grid-column:1;
    grid-row:2;
}

.race-controls .action-controls .turbo-control {
    grid-column:2;
    grid-row:2;
}

.race-controls .steer-controls .touch-word,.race-controls .action-controls button>span:last-child {
    font-size:.875rem;
    line-height:1.2;
    white-space:normal;
    overflow-wrap:anywhere;
}

@media(orientation:landscape) and (max-height:520px) {
    .race-controls .action-controls {
        display:flex;
        gap:6px;
    }
    /* Match the specificity of each variant above. A generic `button` rule
     * lost to .small-control/.jump-control/.turbo-control, leaving 48/60px
     * controls mixed in landscape. Equal frames retain all six input bits. */
    .race-controls .action-controls :is(.small-control,.jump-control,.turbo-control),.race-controls .steer-controls button {
        width:48px;
        height:auto;
        min-height:60px;
        padding:3px 2px;
        gap:3px;
    }
    .race-controls .steer-controls {
        gap:6px;
    }
}

/* Portrait first. Artwork is an entire original; copy remains selectable text. */
.comment-page{max-width:1120px;margin:1rem auto 3rem;min-width:0}
.comment-nav,.comment-heading,.comment-card header,.comment-consent{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}
.comment-nav{margin-block:1rem}.comment-heading{padding-block:1rem 1.5rem}.comment-heading h1{margin:0;font-size:clamp(1.7rem,3vw,2.4rem);line-height:1.2}.comment-heading p{margin:.5rem 0 0;color:var(--muted,#697586)}
.comment-heading>div{flex:1;min-width:180px}.comment-mark{display:grid;place-items:center;width:64px;height:64px;border-radius:20px;background:var(--mint,#eed281);color:var(--ink,#25272d);flex-shrink:0}
.comment-columns{display:grid;gap:1.25rem;align-items:start;min-width:0}.comment-stream,.comment-compose,.comment-note{min-width:0}.comment-list{display:grid;gap:1rem}
.comment-card{padding:1.25rem;background:var(--surface,#fff);border:1px solid var(--border,#dce1e9);border-radius:20px;min-width:0;box-shadow:0 3px 10px #18314a08}
.comment-card header{justify-content:space-between;gap:.75rem}.comment-author{display:flex;align-items:center;gap:.75rem;text-decoration:none;color:inherit;min-width:0}.comment-author>span:last-child{min-width:0}.comment-author strong,.comment-author small{display:block;overflow-wrap:anywhere}.comment-author small,.comment-card time,.comment-state{font-size:.875rem;color:var(--muted,#697586)}
.comment-words{white-space:pre-wrap;overflow-wrap:anywhere;font-size:1.0625rem;line-height:1.65;margin:1rem 0}.comment-state{display:inline-block;padding:.3rem .7rem;border-radius:99px;background:var(--lilac,#f3ecd9)}.comment-state[data-state=pending]{background:#fff0d6;color:#79521b}.comment-state[data-state=rejected]{background:#ffe4e8;color:#8b3448}
.comment-emoji{margin:.75rem 0;max-width:100%}.comment-emoji img{display:block;width:96px;height:96px;object-fit:contain}.comment-emoji figcaption{font-size:.875rem;overflow-wrap:anywhere;margin-top:.4rem}
.comment-compose textarea{display:block;width:100%;min-height:128px;resize:vertical;font:inherit;font-size:1rem;line-height:1.5;border:1px solid var(--border,#dce1e9);border-radius:12px;padding:.875rem;box-sizing:border-box;background:var(--surface,#fff);color:inherit}
.comment-compose .field{display:block;font-weight:650;margin-bottom:.6rem}.comment-art-choice{border:0;padding:0;margin:1.25rem 0;min-width:0}.comment-art-choice legend{font-weight:650;margin-bottom:.6rem}.comment-consent{flex-wrap:nowrap;align-items:flex-start;font-size:1rem;line-height:1.5;padding-block:.75rem}.comment-consent input{width:24px;height:24px;flex-shrink:0;margin-top:0;accent-color:#326b53}
.comment-page .btn,.comment-nav .btn{min-height:48px;white-space:normal;text-align:center}.comment-page .small,.comment-note p{line-height:1.6;overflow-wrap:anywhere}.comment-compose [aria-invalid=true]{border-color:#a64253}
.comment-emoji-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(88px,1fr));gap:.6rem;margin-block:1rem}.comment-emoji-option{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;padding:.6rem;min-height:110px;border:1px solid #dce1e9;border-radius:12px;background:#fff;color:#1d2939;font:inherit;font-size:.875rem;overflow-wrap:anywhere}.comment-emoji-option img{width:64px;height:64px;object-fit:contain}.comment-emoji-option span{max-width:100%}
.comment-empty{padding:1.5rem;line-height:1.6;color:var(--muted,#697586)}.comment-page :focus-visible,.comment-nav :focus-visible{outline:3px solid #5169cc;outline-offset:3px}.comment-page [hidden]{display:none!important}
@media(min-width:880px){.comment-columns{grid-template-columns:minmax(0,1.55fr) minmax(280px,1fr)}}
@media(max-width:420px){.comment-heading{gap:.75rem}.comment-mark{width:48px;height:48px;border-radius:15px}.comment-card{padding:1rem}.comment-card header{align-items:flex-start}.comment-nav{gap:.5rem}.comment-nav .btn{flex:1 1 100px}}
@media(prefers-reduced-motion:reduce){.comment-page *,.comment-nav *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Shared by the introduction and the player. No downloaded font is required.
 * Names describe a purpose, so translations and future skins use one scale. */
:root {
    --rom-font:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Apple SD Gothic Neo","Malgun Gothic",sans-serif;
    --rom-text:1rem;
    --rom-label:1rem;
    --rom-caption:.9375rem;
    --rom-control-height:3rem;
    --rom-control-padding:.75rem 1rem;
    --rom-control-radius:.875rem;
    --rom-control-gap:.5rem;
    --rom-control-icon:1.25rem;
    --rom-space-xs:.5rem;
    --rom-space-sm:.75rem;
    --rom-space-md:1rem;
    --rom-space-lg:1.5rem;
    --rom-space-xl:2rem;
    --rom-content-width:74rem;
    --rom-nav-clearance:0px;
    --rom-header-clearance:5rem;
}

/* Current consumer layout contract, after historical skins and service CSS.
 * This is the authority for control geometry; colors/state still belong to
 * their existing components. Do not normalize gameplay/canvas or owner bundles.
 * 한국어 인계: 높이는 최솟값이다. 번역·큰 글자는 두 줄 이상으로 늘어난다.
 * 카드 선택, 일반 동작, 경기 조작은 서로 다른 역할을 가진다.
 */
#root [hidden],.rom-dialog [hidden] { display:none!important; }
body:not(.in-shorts) { font-family:var(--rom-font); font-size:var(--rom-text); }
body:not(.in-shorts) .player-main {
    min-inline-size:0;
    max-inline-size:var(--rom-content-width);
    padding-inline:clamp(1rem,2.5vw,2rem);
    padding-block:var(--rom-space-xl) calc(var(--rom-nav-clearance) + 2.5rem);
}
html { scroll-padding-block:calc(var(--rom-header-clearance) + 1rem) calc(var(--rom-nav-clearance) + 1rem); }

/* Same measured frame for text controls. No fixed height or nowrap: neither
 * enlarged text nor a long translated word may be cropped to fit a button. */
body:not(.in-shorts) :is(.player-main,.player-header,.rom-dialog) :is(.btn,.back-button,.text-button) {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:var(--rom-control-gap);
    min-inline-size:0;
    max-inline-size:100%;
    min-block-size:var(--rom-control-height);
    height:auto;
    block-size:auto;
    padding:var(--rom-control-padding);
    border-radius:var(--rom-control-radius);
    font-family:var(--rom-font);
    font-size:var(--rom-label);
    font-weight:650;
    line-height:1.5;
    letter-spacing:-.015em;
    white-space:normal;
    overflow-wrap:anywhere;
    text-align:center;
    box-sizing:border-box;
}
body:not(.in-shorts) :is(.player-main,.player-header,.rom-dialog) :is(.btn,.back-button,.text-button)>span { min-inline-size:0; }
body:not(.in-shorts) :is(.player-main,.player-header,.rom-dialog) :is(.btn,.back-button,.text-button)>.rom-icon {
    inline-size:var(--rom-control-icon);
    block-size:var(--rom-control-icon);
    flex:0 0 var(--rom-control-icon);
    margin:0;
}
body:not(.in-shorts) :is(.player-main,.player-header,.rom-dialog) .icon-btn {
    width:var(--rom-control-height);
    height:var(--rom-control-height);
    min-width:var(--rom-control-height);
    min-height:var(--rom-control-height);
    border-radius:var(--rom-control-radius);
    padding:0;
}
body:not(.in-shorts) :is(.player-main,.player-header,.rom-dialog) .icon-btn>.rom-icon {
    width:var(--rom-control-icon);
    height:var(--rom-control-icon);
}
/* Flex/grid children have an implicit min-content width. Clear it at known
 * composition boundaries instead of hiding overflow across the entire page. */
body:not(.in-shorts) .player-main :is(.actions,.crumb,.task-search-row,.editor-heading,.free-card-top,.studio76-section-heading) {
    gap:var(--rom-space-sm);
    flex-wrap:wrap;
    min-inline-size:0;
}
body:not(.in-shorts) .player-main :is(.actions,.crumb,.task-search-row,.editor-heading,.free-card-top,.studio76-section-heading)>* { min-inline-size:0; max-inline-size:100%; }
body:not(.in-shorts) .player-main :is(.task-grid,.task-root-grid,.service-grid,.free-columns,.free-list,.room-entry-grid,.room-form-row,.video-source-grid,.editor-layout,.detail-grid,.studio-source-content)>* { min-inline-size:0; }
body:not(.in-shorts) .player-main :is(.room-entry-grid,.room-form-row,.two-col) { grid-template-columns:repeat(2,minmax(0,1fr)); }
body:not(.in-shorts) .player-main :is(.panel,.free-card,.room-card,.workspace-panel,.task-surface,.editor-controls) { padding:clamp(1rem,2.5vw,1.5rem); }
body:not(.in-shorts) .player-main :is(.task-heading,.free-heading,.room-heading,.catalog-heading,.editor-heading) { gap:var(--rom-space-md); margin-block:0 var(--rom-space-lg); }
body:not(.in-shorts) .player-main :is(.task-heading,.free-heading,.room-heading,.catalog-heading,.editor-heading)>div { min-inline-size:0; }

/* Category/filter controls share labels and gaps, while choice cards retain
 * room for their separate description and complete existing artwork. */
body:not(.in-shorts) .player-main :is(.task-category,.task-facets button,.rule-family-nav button,.free-tabs a,.room-nav .btn,.discovery-courses button,.rom75-duration button) {
    min-inline-size:0;
    min-block-size:var(--rom-control-height);
    padding:.75rem 1rem;
    font-size:var(--rom-label);
    line-height:1.5;
    gap:var(--rom-control-gap);
    border-radius:var(--rom-control-radius);
    white-space:normal;
    overflow-wrap:anywhere;
}
body:not(.in-shorts) .player-main :is(.task-button,.service-action-choice,.task-root-button) { min-inline-size:0; padding:1rem; gap:1rem; }
body:not(.in-shorts) .player-main :is(.searchbox,.field,.free-card,.room-card,.editor-controls,.record-filters,.account-controls) :is(input,select,textarea):not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=hidden]) {
    min-inline-size:0;
    max-inline-size:100%;
    min-block-size:var(--rom-control-height);
    height:auto;
    font-family:var(--rom-font);
    font-size:var(--rom-text);
    line-height:1.5;
    border-radius:var(--rom-control-radius);
}
body:not(.in-shorts) .player-main .searchbox { min-inline-size:0; min-block-size:var(--rom-control-height); border-radius:var(--rom-control-radius); }
body:not(.in-shorts) .player-main .searchbox input { flex:1; min-inline-size:0; padding-block:.75rem; }
body:not(.in-shorts) .player-main .searchbox .rom-icon { width:var(--rom-control-icon); height:var(--rom-control-icon); }

/* An enlarged header grows into another row. The old 68/72/80px fixed heights
 * could let its icons and words escape their background on small screens. */
body:not(.in-shorts) .player-header {
    min-height:5rem;
    height:auto;
    padding:1rem clamp(1rem,2.5vw,2rem);
    gap:1rem;
    flex-wrap:wrap;
}
body:not(.in-shorts) .player-header .actions { margin-inline-start:auto; gap:.5rem; }
body:not(.in-shorts) .player-header .task-header-search { width:auto; padding-inline:1rem; gap:.5rem; }
body:not(.in-shorts) .player-header .brand { min-inline-size:0; max-inline-size:100%; }
body:not(.in-shorts) .player-header .brand-symbol { flex:none; }
body:not(.in-shorts) .player-header .brand-copy { min-inline-size:0; overflow-wrap:anywhere; }
body:not(.in-shorts) .player-main .player-footer { gap:1rem; flex-wrap:wrap; }
body:not(.in-shorts) .player-main .player-footer .footer-links { gap:.5rem 1rem; min-inline-size:0; }
body:not(.in-shorts) .rom-dialog :is(.dialog-head,.dialog-body,.dialog-actions) { padding:1.25rem; }
body:not(.in-shorts) .rom-dialog .dialog-head { flex-wrap:wrap; }
body:not(.in-shorts) .rom-dialog .dialog-actions { display:flex; flex-wrap:wrap; gap:.75rem; }

/* Keep the existing navigation destinations. Measure its actual height when
 * fonts/translations wrap; see layout-clearance.js. Do not set a fixed bar height. */
@media(max-width:1000px) {
    body:not(.in-shorts) .player-main { margin-inline:auto; }
    body:not(.in-shorts):not(.session-locked):has(.bottom-nav.experience-nav) .toast { bottom:max(25px,calc(var(--rom-nav-clearance,0px) + 12px)); }
    body:not(.in-shorts) .bottom-nav.experience-nav { inset:auto 0 0; width:auto; flex-direction:row; gap:.25rem; padding:.5rem .5rem calc(.5rem + env(safe-area-inset-bottom)); }
    body:not(.in-shorts) .bottom-nav.experience-nav a { min-inline-size:0; width:auto; flex:1 1 0; padding:.5rem .25rem; gap:.25rem; min-block-size:3.5rem; overflow-wrap:anywhere; }
}
@media(min-width:1001px) {
    body:not(.in-shorts) .player-main { width:calc(100% - 9rem); margin-inline-start:9rem; margin-inline-end:0; }
}
@media(min-width:1400px) {
    body:not(.in-shorts) .player-main { margin-inline-start:calc((100% - var(--rom-content-width) + 9rem) / 2); }
}
@media(max-width:680px) {
    body:not(.in-shorts) .player-main :is(.room-entry-grid,.room-form-row,.two-col,.detail-grid,.experience-editor.editor-layout) { display:grid; grid-template-columns:minmax(0,1fr); }
    body:not(.in-shorts) .player-main .discovery-copy { padding:1.25rem; }
    body:not(.in-shorts) .player-main :is(.free-card,.room-card,.workspace-panel,.task-surface) { border-radius:1.125rem; }
    body:not(.in-shorts) .player-header .header-context { display:none; }
    body:not(.in-shorts) .player-header .task-header-search { width:var(--rom-control-height); padding:0; }
    body:not(.in-shorts) .player-header .task-header-search>span { display:none; }
    body:not(.in-shorts) .player-main .actions>.btn { flex:1 1 8rem; }
    body:not(.in-shorts) .rom-dialog .dialog-actions>.btn { flex:1 1 8rem; }
}
@media(max-width:420px) {
    body:not(.in-shorts) .player-header { gap:.5rem; padding-block:.75rem; }
    body:not(.in-shorts) .player-header .actions { gap:.375rem; }
    body:not(.in-shorts) .player-main .record-filters { grid-template-columns:minmax(0,1fr); }
}
@media(prefers-reduced-motion:reduce) {
    html { scroll-behavior:auto; }
    body:not(.in-shorts) :is(.btn,.icon-btn,.back-button) { transition:none; animation:none; }
}
@media(forced-colors:active) {
    body:not(.in-shorts) :is(.btn,.icon-btn,.back-button) { border:1px solid ButtonText; }
}

/* UX86: dialogs use the same control frame even when opened from video views.
 * Scope includes the dialog itself, never gameplay or embedded video controls.
 * Form labels/radios retain native semantics and whole artwork. */
.rom-dialog :is(.btn,.back-button,.text-button){display:inline-flex;align-items:center;justify-content:center;gap:var(--rom-control-gap);min-inline-size:0;max-inline-size:100%;min-block-size:var(--rom-control-height);height:auto;padding:var(--rom-control-padding);border-radius:var(--rom-control-radius);font-family:var(--rom-font);font-size:var(--rom-label);line-height:1.5;white-space:normal;overflow-wrap:anywhere;box-sizing:border-box}
.rom-dialog .btn>.rom-icon{inline-size:var(--rom-control-icon);block-size:var(--rom-control-icon);flex:0 0 var(--rom-control-icon)}
.rom-dialog .actions{display:flex;flex-wrap:wrap;gap:var(--rom-space-sm);min-inline-size:0}
.rom-dialog :is(.free-result-choices,.free-consent) input:is([type=radio],[type=checkbox]){width:1.375rem;height:1.375rem;min-width:1.375rem;min-height:1.375rem;flex:0 0 1.375rem;padding:0;margin-block-start:.2rem}
.free-publication-choice{margin-block-start:1rem;padding-block-start:1rem;border-top:1px solid var(--line)}
.free-result-card .free-chip{display:inline-flex;align-items:center;gap:var(--rom-control-gap);margin-block-end:1rem}
.free-result-card .free-character-entry{display:flex;align-items:center;gap:1rem;min-inline-size:0}
.free-result-card .free-character-entry>div{min-inline-size:0;overflow-wrap:anywhere}
@media(max-width:680px){.rom-dialog .actions>.btn{flex:1 1 8rem}}
@media(prefers-reduced-motion:reduce){.rom-dialog .btn{transition:none;animation:none}}
@media(forced-colors:active){.rom-dialog .btn{border:1px solid ButtonText}}

/* Whole consent label remains a touch target; the native box keeps its own size. */
.rom-dialog .free-consent{min-block-size:var(--rom-control-height);padding-block:.65rem;box-sizing:border-box;cursor:pointer}

/* Whole supplied portrait, with text and selection outside the image. */
.creator-avatar:has(.profile-picture84){background:transparent;border-radius:0;overflow:visible}
.profile-picture84{display:block;inline-size:100%;block-size:100%;object-fit:contain}
.profile-picture-options84{margin-block:var(--rom-space-lg,1.5rem);border:0;padding:0;min-inline-size:0}
.profile-picture-options84 legend{font-size:var(--rom-label,1rem);font-weight:700;margin-block-end:.75rem}
.profile-picture-grid84{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--rom-space-md,1rem);max-inline-size:26rem}
#creator-settings .profile-picture-option84{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:.75rem;padding:1rem;border:1px solid #dce3ec;border-radius:var(--rom-control-radius,.875rem);min-inline-size:0;cursor:pointer;line-height:1.5}
#creator-settings .profile-picture-option84:has(input:checked){border-color:#2453a4;background:#eef4fd}
#creator-settings .profile-picture-option84:has(input:focus-visible){outline:3px solid #2453a4;outline-offset:3px}
#creator-settings .profile-picture-option84:has(input:disabled){cursor:default;opacity:.65}
#creator-settings .profile-picture-option84 input{grid-column:1;grid-row:1/3;inline-size:1.25rem;block-size:1.25rem;min-inline-size:1.25rem;min-block-size:1.25rem;padding:0;margin:0}
.profile-picture-preview84{display:grid;place-items:center;grid-column:2;inline-size:4rem;block-size:4rem;font-size:1.5rem;color:#2453a4}
#creator-settings .profile-picture-option84>span:last-child{grid-column:2;font-size:var(--rom-label,1rem);overflow-wrap:anywhere}
@media(max-width:360px){.profile-picture-grid84{grid-template-columns:minmax(0,1fr)}}
@media(forced-colors:active){#creator-settings .profile-picture-option84:has(input:checked){border:2px solid Highlight;background:Canvas}}

/* Reuse product button sizes; one column fits portrait mobile and desktop. */
.cloud-account88{max-width:760px;margin-inline:auto}
.cloud-account88 form{display:grid;gap:18px;margin-block:24px}
.cloud-account88 fieldset{border:0;padding:0;margin:0;display:grid;gap:18px;min-width:0}
.cloud-account88 [hidden]{display:none!important}
.cloud-account88 #cloud-ready88{display:flex;flex-wrap:wrap;gap:12px}
.cloud-account88 small{font-size:.9rem;line-height:1.6}
.cloud-account88 details p{line-height:1.7}
.cloud-account88 #google-button89{min-height:48px;max-width:100%;padding-block:4px;overflow-x:auto}
.cloud-account88 label{display:grid;gap:8px;font-size:1rem}
.cloud-account88 input:not([type=checkbox]),.cloud-account88 textarea,.cloud-account88 select{width:100%;min-height:48px;font:inherit;padding:12px;border:1px solid var(--border,#d1d5db);border-radius:12px;box-sizing:border-box}
.cloud-account88 .creator-check{display:flex;align-items:flex-start;gap:12px;line-height:1.7}
.cloud-account88 input[type=checkbox]{width:22px;height:22px;flex-shrink:0}
.cloud-account88 .actions{display:flex;flex-wrap:wrap;gap:12px;margin-block:18px}
.cloud-account88 .btn{min-height:48px;display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:normal}
.cloud-identity88{display:flex;align-items:center;gap:16px}
.cloud-record-list88{display:grid;gap:12px}
.cloud-record-list88 article{padding:16px;border:1px solid var(--border,#d1d5db);border-radius:16px;overflow-wrap:anywhere}
.account-records123{display:grid;gap:24px}
.account-records123 .btn{min-height:48px;min-width:48px;padding:12px 18px;overflow-wrap:anywhere;box-sizing:border-box}
.account-records123 section{display:grid;gap:12px;min-width:0}
.account-records123 h1,.account-records123 h2,.account-records123 h3{margin-block:0 8px;overflow-wrap:anywhere}
.account-records123 p{margin:0;line-height:1.7;overflow-wrap:anywhere}
.record-actions123{display:flex;flex-wrap:wrap;gap:12px;align-items:stretch}
.record-note123,.account-records123 [data-record-uncertain]{padding:16px;border-radius:16px;background:var(--surface-alt,#f3f5fa);border:1px solid var(--border,#d1d5db)}
.account-records123 [data-record-selection]{display:grid;gap:12px;padding:18px;border:1px solid var(--border,#d1d5db);border-radius:16px}
.account-records123 .creator-check{min-height:48px;align-items:center}
.account-records123 [data-record-uncertain] .btn{margin-top:12px}
.account-records123 .record-search-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:16px;border:1px solid var(--border,#d1d5db);border-radius:16px;background:var(--surface-alt,#f3f5fa)}
.account-records123 .record-search-controls legend{padding-inline:4px;font-weight:700;font-size:1rem;overflow-wrap:anywhere}
.account-records123 .record-search-controls label{min-width:0;gap:12px}
.account-records123 .record-search-controls input,.account-records123 .record-search-controls select{min-width:0;min-height:48px;font-size:1rem}
.account-records123 .record-search-query,.account-records123 .record-search-note{grid-column:1/-1}
.account-records123 .record-search-controls .btn{width:100%;min-width:0;min-height:48px}
.account-records123 [data-record-found]:empty{display:none}
.account-records123 .record-search-controls :focus-visible{outline:3px solid var(--focus,#6342ad);outline-offset:3px}
@media(max-width:600px){.account-records123 .record-search-controls{grid-template-columns:minmax(0,1fr)}}
@media(forced-colors:active){.account-records123 .record-search-controls{border-color:CanvasText}.account-records123 .record-search-controls :focus-visible{outline-color:Highlight}}
@media(max-width:600px){.record-actions123{display:grid;grid-template-columns:minmax(0,1fr)}.account-records123 .btn{max-width:100%}.account-records123{gap:20px}}
.cloud-account88 summary{cursor:pointer;padding:16px 0;min-height:44px}
@media(max-width:480px){.cloud-account88 .actions>.btn{flex:1 1 140px}.cloud-account88 h1{font-size:clamp(1.65rem,7vw,2.25rem)}}

/* Current private-account controls stay separate from profile form fields. */
.account-private127 .private-actions127{display:flex;flex-wrap:wrap;align-items:stretch;gap:12px;margin-block:16px}
.account-private127 .private-actions127 p{flex-basis:100%;margin:0;line-height:1.7;overflow-wrap:anywhere}
.account-private127 .btn{min-height:48px;min-width:48px;box-sizing:border-box;white-space:normal;overflow-wrap:anywhere}
.account-private127 .private-note127{padding:16px;margin-top:16px;border:1px solid var(--border,#d1d5db);border-radius:16px;display:grid;gap:12px}
@media(max-width:540px){.account-private127 .private-actions127{display:grid;grid-template-columns:minmax(0,1fr)}.account-private127 .btn{max-width:100%}}


/* The site and service directory remain reachable before account actions. */
.guest-browse133 {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:12px;
    margin-block:0 20px;
}
.guest-browse133 a {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-block-size:48px;
    max-inline-size:100%;
    box-sizing:border-box;
    padding:10px 16px;
    border:1px solid #d5dce8;
    border-radius:14px;
    color:#244e8e;
    background:#fff;
    font-weight:650;
    line-height:1.5;
    overflow-wrap:anywhere;
    text-decoration:none;
}
.guest-browse133 a:focus-visible {
    outline:3px solid #2454a3;
    outline-offset:3px;
}
.guest-account133 {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:12px;
    margin-block:16px;
    padding:16px;
    border:1px solid #d5dce8;
    border-radius:16px;
    background:#f5f8ff;
}
.guest-account133 p { flex:1 1 22rem; margin:0; line-height:1.7; overflow-wrap:anywhere; }
.guest-account133 .btn { min-block-size:48px; white-space:normal; overflow-wrap:anywhere; }
@media (max-width:540px) {
    .guest-account133 .btn { inline-size:100%; }
}
@media (forced-colors:active) {
    .guest-browse133 a,.guest-account133 { border-color:CanvasText; }
}

/* Expansion is intentional: 48px is a minimum, never a text clipping height.
 * 한국어 인계: 기존 경기 조작과 카드 역할은 유지한다. 계정/기록/창작/설정의
 * 도구 모음에만 적용하며 스크롤 숨김으로 배치 문제를 가리지 않는다.
 */
.shelf-cloud89 { padding:1rem; margin-block:1rem; border:1px solid var(--line); border-radius:var(--rom-control-radius); }
.shelf-cloud89 .actions { display:flex; flex-wrap:wrap; gap:var(--rom-space-sm); }
.shelf-cloud89 .shelf-cloud-status89:empty { display:none; }

/* Account-copy choices use the existing shelf palette and touch dimensions.
   Text stays separate from icons; long names cannot widen the modal. */
.shelf-copy-dialog131 .dialog-body { min-width:0; }
/* File intake shares the same target size and reading rhythm as account copy. */
.challenge-import-dialog132 .dialog-body { min-width:0; }
.challenge-import-dialog132 .actions { display:flex; flex-wrap:wrap; gap:12px; }
.challenge-import-dialog132 .btn {
 min-height:48px; min-width:48px; max-width:100%; box-sizing:border-box;
 flex:1 1 12rem; white-space:normal; overflow-wrap:anywhere; line-height:1.5;
}
.challenge-import-dialog132 label[aria-disabled=true] { cursor:wait; opacity:.65; }
.file-challenge-tools132 { display:grid; gap:12px; margin-block:20px 12px; }
.file-challenge-tools132 p { margin:0; line-height:1.6; }
.file-challenge-tools132 [data-file-selection-count132] { font-weight:650; }
.file-challenge-list132 {
 display:grid; gap:12px; list-style:none; padding:4px; margin:0 0 20px;
 max-block-size:32rem; overflow:auto; overscroll-behavior:contain;
}
.file-challenge-list132 li { min-width:0; }
.file-challenge-choice132 {
 display:grid; grid-template-columns:24px minmax(0,1fr); align-items:start; gap:12px;
 min-height:48px; box-sizing:border-box; padding:12px; border:1px solid var(--line);
 border-radius:12px; cursor:pointer; background:var(--rom-shelf-surface-default);
}
.file-challenge-choice132:has(input:checked) { border-color:var(--rom-shelf-action-selected-border); background:var(--rom-shelf-action-selected-surface); }
.file-challenge-choice132 input { inline-size:24px; block-size:24px; margin:0; accent-color:var(--rom-shelf-action-primary); }
.file-challenge-details132 { display:grid; gap:6px; min-width:0; overflow-wrap:anywhere; line-height:1.6; }
.file-challenge-details132 time { font-size:.875rem; color:var(--rom-shelf-text-secondary); }
.challenge-import-dialog132 :is(button,input):focus-visible { outline:3px solid var(--rom-shelf-action-primary); outline-offset:3px; scroll-margin-block:16px; }
@media(max-width:600px) {
 .challenge-import-dialog132 .actions { display:grid; grid-template-columns:minmax(0,1fr); }
 .challenge-import-dialog132 .actions > .btn { width:100%; }
}
@media(forced-colors:active) {
 .file-challenge-choice132:has(input:checked) { border:2px solid Highlight; }
 .challenge-import-dialog132 :is(button,input):focus-visible { outline-color:Highlight; }
}
.shelf-copy-dialog131 .actions { display:flex; flex-wrap:wrap; gap:12px; }
.shelf-copy-dialog131 .actions > .btn {
 min-height:48px; min-width:48px; max-width:100%; box-sizing:border-box;
 flex:1 1 12rem; white-space:normal; overflow-wrap:anywhere; line-height:1.5;
}
.shelf-copy-tools131 { display:grid; gap:12px; margin-block:16px 12px; }
.shelf-copy-tools131 p { margin:0; font-weight:650; }
.shelf-copy-list131 {
 display:grid; gap:12px; list-style:none; padding:4px; margin:0 0 20px;
 max-block-size:32rem; overflow:auto; overscroll-behavior:contain;
}
.shelf-copy-list131 li { min-width:0; }
.shelf-copy-choice131 {
 display:grid; grid-template-columns:24px minmax(0,1fr); align-items:start; gap:12px;
 min-height:48px; box-sizing:border-box; padding:12px; border:1px solid var(--line);
 border-radius:12px; cursor:pointer; background:var(--rom-shelf-surface-default);
}
.shelf-copy-choice131:has(input:checked) { border-color:var(--rom-shelf-action-selected-border); background:var(--rom-shelf-action-selected-surface); }
.shelf-copy-choice131 input { inline-size:24px; block-size:24px; margin:0; accent-color:var(--rom-shelf-action-primary); }
.shelf-copy-details131 { display:grid; gap:6px; min-width:0; overflow-wrap:anywhere; line-height:1.6; }
.shelf-copy-details131 strong { font-size:1rem; }
.shelf-copy-details131 time { font-size:.875rem; color:var(--rom-shelf-text-secondary); }
.shelf-copy-dialog131 :is(button,input):focus-visible { outline:3px solid var(--rom-shelf-action-primary); outline-offset:3px; scroll-margin-block:16px; }
@media(max-width:600px) {
 .shelf-copy-dialog131 .actions { display:grid; grid-template-columns:minmax(0,1fr); }
 .shelf-copy-dialog131 .actions > .btn { width:100%; }
}
@media(forced-colors:active) {
 .shelf-copy-choice131:has(input:checked) { border:2px solid Highlight; }
 .shelf-copy-dialog131 :is(button,input):focus-visible { outline-color:Highlight; }
}
body:not(.in-shorts) .player-main :is(.av-actions,.connection-actions,.shelf-tools,.shelf-actions,.record-actions,.settings-actions,.editor-actions,.account-actions) {
 display:flex; flex-wrap:wrap; align-items:center; gap:var(--rom-space-sm); min-inline-size:0;
}
body:not(.in-shorts) .player-main :is(.av-actions,.connection-actions,.shelf-tools,.shelf-actions,.record-actions,.settings-actions,.editor-actions,.account-actions)>* { min-inline-size:0; max-inline-size:100%; }
body:not(.in-shorts) .player-main :is(.av-actions,.connection-actions,.shelf-tools,.shelf-actions,.record-actions,.settings-actions,.editor-actions,.account-actions)>.btn { width:auto; flex-shrink:1; }
body:not(.in-shorts) .player-main :is(input[type=text],input[type=search],input[type=date],input[type=email],input[type=password],input[type=number],select,textarea) {
 min-inline-size:0; max-inline-size:100%; min-block-size:var(--rom-control-height); box-sizing:border-box; font-family:var(--rom-font); font-size:var(--rom-text); line-height:1.5;
}
.rom-dialog .dialog-body :is(input[type=text],input[type=search],input[type=email],input[type=password],select,textarea) { min-inline-size:0; max-inline-size:100%; min-block-size:var(--rom-control-height); box-sizing:border-box; font:inherit; }
/* Restore top-aligned icons beside a wrapped caption without stretching art. */
body:not(.in-shorts) .player-main .btn>.rom-icon,.rom-dialog .btn>.rom-icon { flex-shrink:0; }
@media(max-width:680px) {
 body:not(.in-shorts) .player-main :is(.av-actions,.connection-actions,.shelf-actions,.record-actions,.settings-actions,.account-actions,.shelf-cloud89 .actions)>.btn { flex:1 1 8rem; }
 body:not(.in-shorts) .player-main .shelf-tools { align-items:stretch; }
 body:not(.in-shorts) .player-main .shelf-tools>label { flex:1 1 100%; }
}

/* A form label owns its control; no fixed heights or hidden horizontal overflow.
 * 한국어 인계: 게임 입력 패드는 따로 두고 메뉴·검색·대기실 규격만 통일한다.
 */
.room-page :is(.room-nav,.actions,.room-form-actions,.room-setup),.running-bank-groups,.running-course-buttons,.running-time-buttons {display:flex;flex-wrap:wrap;gap:var(--rom-space-sm);min-inline-size:0;}
.room-page :is(.btn,input:not([type=checkbox]):not([type=radio]),select),.running-page .btn {min-block-size:48px;box-sizing:border-box;max-inline-size:100%;}
.room-page :is(form,fieldset,label,.room-note,.room-heading>div),.running-page :is(fieldset,.running-options,.running-rule-card>div) {min-inline-size:0;}
.room-page form :is(input:not([type=radio]):not([type=checkbox]),select) {inline-size:100%;font-size:16px;}
.room-page .btn,.running-page .btn {white-space:normal;line-height:1.35;overflow-wrap:anywhere;}
.room-page .btn>.rom-icon,.running-page .btn>.rom-icon {flex:0 0 auto;}
.room-character-picker img {display:block;inline-size:64px;block-size:64px;object-fit:contain;}
.running-bank .running-curation {display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;margin-block:1rem;}
.running-bank .running-curation p {flex:1 1 16rem;margin:0;line-height:1.5;}
.room-page .room-heading>span {flex:0 0 auto;}
.room-page .room-nav>.btn {flex:0 1 auto;}
.room-page .room-nav,.running-bank-groups {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));}
.room-page .room-nav[data-room-nav-count="3"] {grid-template-columns:repeat(3,minmax(0,1fr));}
.running-course-buttons,.running-time-buttons {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));}
@media(max-width:680px){
 .room-page .room-nav>.btn,.room-page .actions>.btn {flex:1 1 8rem;}
 .room-page .room-heading{align-items:flex-start;}
 .room-page .room-form-columns{grid-template-columns:minmax(0,1fr);}
 .room-page .room-nav,.running-bank-groups {grid-template-columns:repeat(2,minmax(0,1fr));}
 .room-page .room-nav[data-room-nav-count="3"] {grid-template-columns:repeat(2,minmax(0,1fr));}
 .room-page .room-nav[data-room-nav-count="3"]>.btn:last-child {grid-column:1/-1;}
 .running-bank-groups>.btn {flex:1 1 6rem;}
 .running-rule-card {grid-template-columns:40px minmax(0,1fr);}
}
@media(prefers-reduced-motion:reduce){.room-page :is(.btn,img),.running-page .btn{transition:none;}}

#profile-picture90{margin-block:24px;padding-block:24px;border-block:1px solid var(--line,#dedbe5);min-width:0}
#profile-picture90 fieldset{border:0;padding:0;margin-block:16px;display:flex;flex-wrap:wrap;gap:12px;min-width:0}
#profile-picture90 legend{font-weight:700;margin-bottom:12px}
#profile-picture90 label{min-width:0;flex:1 1 160px}
#profile-picture90 input[type=file]{width:100%;font-size:16px;min-height:48px;margin-block:12px}
#picture-canvas90{display:block;width:min(100%,256px);height:auto;aspect-ratio:1;margin-block:20px;border-radius:20px;outline-offset:4px}
#picture-canvas90.is-drawing{touch-action:none;cursor:crosshair}
#profile-picture90 input[type=range]{width:100%;min-height:48px}
#profile-picture90 input[type=color]{min-height:48px;width:100%;max-width:160px}
#profile-picture90 button,#profile-picture90 .btn{min-height:48px;white-space:normal;max-width:100%}
#profile-picture90 small{display:block;font-size:14px;line-height:1.6}
#profile-picture90 [aria-pressed=true]{box-shadow:inset 0 0 0 2px currentColor}

/* Free intake shares the same control geometry as accounts and friend rooms.
 * Text stays selectable/translatable; no image contains a label. */
.free-surface { --free-control-height:48px; min-width:0; }
.free-surface :is(.btn,.back-button,.free-tabs a) { min-height:var(--free-control-height); max-width:100%; white-space:normal; overflow-wrap:anywhere; gap:8px; align-items:center; }
.free-surface .btn svg { flex:0 0 auto; width:18px; height:18px; }
.free-surface :is(input:not([type=checkbox]),select,textarea) { box-sizing:border-box; width:100%; max-width:100%; min-width:0; font-size:1rem; line-height:1.5; }
.free-surface :is(input:not([type=checkbox]),select) { min-height:48px; }
.free-surface textarea { min-height:168px; resize:vertical; }
.free-surface :is(.free-card,.free-columns,.free-list,.free-card-top,.free-tabs) { min-width:0; }
.free-surface :is(.free-user-text,.free-reply,.free-card h3) { overflow-wrap:anywhere; }
.free-surface .free-tabs { display:flex; flex-wrap:wrap; gap:8px; }
.free-surface .free-tabs a { flex:1 1 112px; justify-content:center; padding:10px 14px; }
.free-surface .free-card .actions { display:flex; flex-wrap:wrap; gap:8px; }
.free-surface .free-card .actions .btn { flex:1 1 100px; justify-content:center; }
.free-surface :is(.btn,input,select,textarea):focus-visible { outline:3px solid var(--accent,#f5c842); outline-offset:3px; }
.free-surface .free-capacity { font-size:.875rem; line-height:1.6; overflow-wrap:anywhere; }
@media(max-width:600px) { .free-surface .free-columns { grid-template-columns:minmax(0,1fr); } .free-surface .free-heading-icon { display:none; } .free-surface .free-tabs a { flex-basis:calc(50% - 8px); } }
@media(prefers-reduced-motion:reduce) { .free-surface * { transition:none!important; animation:none!important; scroll-behavior:auto!important; } }

/* One geometry for public and restricted surfaces. Whole art and text remain
 * separate; the console inherits the same mobile/keyboard-readable controls. */
.social92 { max-width:920px; margin-inline:auto; min-width:0; }
.social92 :is(.btn,input:not([type=checkbox]),select) { min-height:48px; box-sizing:border-box; }
.social92 .btn { max-width:100%; white-space:normal; overflow-wrap:anywhere; gap:8px; justify-content:center; line-height:1.4; }
.social92 .btn svg { width:20px; height:20px; flex:0 0 20px; }
.social92 :is(input:not([type=checkbox]),select,textarea) { width:100%; max-width:100%; min-width:0; font:inherit; font-size:1rem; line-height:1.6; box-sizing:border-box; }
.social92 textarea { min-height:120px; resize:vertical; }
.social92 label { display:grid; gap:8px; margin-block:16px; }
.social92 .social-consent92 { display:flex; align-items:flex-start; gap:12px; line-height:1.6; }
.social92 .social-consent92 input { width:22px; height:22px; flex:0 0 22px; margin-top:3px; }
.social-tabs92,.social-actions92 { display:flex; flex-wrap:wrap; align-items:stretch; gap:8px; margin-block:12px; }
.social-tabs92>.btn { flex:1 1 112px; }
.social-list92 { display:grid; gap:16px; min-width:0; }
.social-card92 { border:1px solid var(--border,#b8b8bd); border-radius:18px; padding:20px; min-width:0; overflow-wrap:anywhere; }
.social-meta92 { display:flex; align-items:baseline; flex-wrap:wrap; justify-content:space-between; gap:8px; }
.social-meta92 :is(h2,strong) { margin:0; min-width:0; }
.social-meta92 span { font-size:var(--rom-caption,.9375rem); }
.social-body92 { white-space:pre-wrap; line-height:1.7; overflow-wrap:anywhere; }
.social92 video { display:block; width:100%; max-width:540px; max-height:68vh; margin-block:12px; border-radius:12px; background:#13151b; object-fit:contain; }
.social-video124 { display:flex; flex-direction:column; align-items:stretch; gap:12px; min-width:0; margin-block:12px; }
.social-video124 .btn { min-height:48px; align-self:flex-start; max-width:100%; }
.social-video124 p { margin:0; line-height:1.6; overflow-wrap:anywhere; }
.social-video124 video { margin:0; max-width:100%; }
.social92 :is(button,input,select,textarea,a):focus-visible { outline:3px solid var(--accent,#e1b300); outline-offset:3px; }
.social92 [hidden] { display:none!important; }
.social-empty92 { padding-block:24px; }
@media(max-width:600px) { .social-card92 { padding:16px; } .social92 .social-actions92>.btn { flex:1 1 120px; } .social-tabs92>.btn { flex-basis:calc(50% - 8px); } }
@media(prefers-reduced-motion:reduce) { .social92 * { animation:none!important; transition:none!important; scroll-behavior:auto!important; } }
.social92 .relation-actions95 .btn[aria-pressed="true"] {
  background:#ece4fb;
  border-color:#76509d;
  color:#4b286f;
}
.social92 .relation-actions95 {
  border-block-start:1px solid #ddd6e7;
  padding-block-start:1rem;
  margin-block-start:1rem;
}

/* Shared geometry for new entry paths. Text remains live/translatable; no
   fixed card height, clipped labels or motion/continuous paint loop. */
.competition93{max-width:960px;margin-inline:auto;padding-block:16px 40px;min-width:0}
.competition93>header{display:flex;align-items:center;gap:16px;margin-block:20px 24px}
.competition-symbol93{display:grid;place-items:center;background:#d5ed91;color:#173324;border-radius:20px;width:64px;height:64px;flex:none}
.competition93 h1{font-size:clamp(1.75rem,4vw,2.5rem);line-height:1.2;margin:6px 0 12px;letter-spacing:-.03em}
.competition93 h2{font-size:1.3rem;line-height:1.4}.competition93 p{line-height:1.65;overflow-wrap:anywhere}
.competition-tabs93{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:24px}
.competition93 .btn{box-sizing:border-box;min-height:48px;padding:12px 16px;display:inline-flex;align-items:center;justify-content:center;gap:8px;line-height:1.4;text-align:center;white-space:normal;max-width:100%;height:auto;flex-shrink:0;border-radius:14px}
.competition93 .btn svg{width:20px;height:20px;flex:none}.competition93 .btn:focus-visible,.competition93 input:focus-visible,.competition93 select:focus-visible{outline:3px solid #437b2c;outline-offset:3px}
.competition93 .actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:18px}.competition-card93{padding:clamp(18px,3vw,28px);border:1px solid var(--line,#d9dfd8);border-radius:22px;background:var(--surface,#fff);box-shadow:0 4px 16px #142c1809;margin-block:14px;min-width:0;overflow-wrap:anywhere}
.competition-hero93{border-top:5px solid #6a9e38}.competition-chip93{display:inline-block;font-weight:700;color:#315926;background:#eaf3d8;padding:6px 10px;border-radius:10px}
.competition93 form{display:grid;gap:16px;max-width:440px;margin-block:24px}.competition93 label{display:grid;gap:8px;font-weight:600;line-height:1.5}.competition93 input:not([type=checkbox]),.competition93 select{box-sizing:border-box;width:100%;min-width:0;min-height:48px;font:inherit;padding:10px 12px;border:1px solid #96a491;border-radius:12px;background:var(--surface,#fff);color:inherit}
.competition93 .competition-check93{display:flex;align-items:flex-start;gap:10px;font-size:1rem;font-weight:400;margin-block:16px}.competition-check93 input{width:22px;height:22px;flex:none;margin-top:2px;accent-color:#42702f}.competition-meta93{display:flex;justify-content:space-between;gap:12px;font-size:.95rem;flex-wrap:wrap}.competition-rank93{padding-left:30px}.competition-rank93 li{padding:14px 4px;border-bottom:1px solid #d9dfd8}.competition-rank93 li span{float:right;margin-left:16px}.competition93 [hidden]{display:none!important}
@media(max-width:520px){.competition-tabs93{display:grid;grid-template-columns:minmax(0,1fr)}.competition93 .actions>.btn{flex:1 1 100%;width:100%}.competition-card93{border-radius:18px}.competition93>header{align-items:flex-start}.competition-symbol93{width:52px;height:52px;border-radius:16px}}

.rom-kart-choice{display:flex;align-items:center;gap:10px;max-width:310px;margin:12px auto;color:inherit;font:inherit;font-size:14px;text-align:left}
.rom-kart-choice select{min-width:0;flex:1;min-height:48px;border:1px solid currentColor;border-radius:14px;padding:9px 12px;background:#fff9f0;color:#373349;font:inherit}
.rom-kart-choice select:focus-visible{outline:3px solid #7553c6;outline-offset:3px}

/* Shared geometry: content may grow; translated labels are never clipped. */
:root{--control-height:48px;--control-radius:14px;--control-font:15px;--control-icon:20px}
:is(.player-main,.player-header,.modal) :is(.btn,.icon-btn){min-height:var(--control-height);height:auto;font-size:var(--control-font);line-height:1.45;min-width:0;overflow-wrap:anywhere}
:is(.player-main,.player-header,.modal) .btn{padding:12px 16px;gap:8px;border-radius:var(--control-radius)}
:is(.player-main,.player-header,.modal) .btn>.rom-icon{width:var(--control-icon);height:var(--control-icon);flex:0 0 var(--control-icon)}
:is(.player-main,.player-header,.modal) .icon-btn{width:48px;min-width:48px}
:is(.player-main,.player-header,.modal) :is(input,select,textarea){max-width:100%;font-size:16px}
.program94{max-width:1040px;margin:auto;display:grid;gap:24px;min-width:0}
.program94 [hidden]{display:none!important}
.program-heading94{display:flex;gap:18px;align-items:flex-start}
.program-heading94>span{display:grid;place-items:center;width:56px;height:56px;border-radius:18px;background:var(--lilac);color:var(--deep);flex:none}
.program-heading94 h1{font-size:clamp(25px,4vw,36px)}
.program-heading94 p,.program-note94{color:var(--muted)}
.program-tabs94{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.program-tabs94 .btn{width:100%;white-space:normal;text-align:center}
.program-list94{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.program-card94{background:var(--paper);border:1px solid var(--line);border-radius:22px;padding:24px;display:grid;gap:16px;min-width:0;align-content:start;box-shadow:0 4px 18px #29243805}
.program-card94 h2{font-size:23px}.program-card94 h3{font-size:20px}.program-card94 h4{font-size:17px;margin:0}
.program94 :is(h1,h2,h3,h4,p,label){overflow-wrap:anywhere}
.program94 form{display:grid;gap:18px;min-width:0}
.program94 label{display:grid;gap:8px;font-weight:650;font-size:16px}
.program94 :is(input:not([type=checkbox]),select,textarea){min-height:48px;width:100%;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--paper);font:inherit;font-size:16px;min-width:0}
.program94 textarea{min-height:120px;resize:vertical;line-height:1.6}
.program94 small{font-size:14px;font-weight:400;color:var(--muted)}
.program94 .program-check94{display:flex;gap:12px;align-items:flex-start;font-weight:400;min-height:48px;padding-block:8px}
.program-check94 input{width:22px;height:22px;flex:0 0 22px;margin:3px 0 0;accent-color:var(--violet)}
.program-section94{display:grid;gap:16px}.program-meta94{display:flex;gap:12px;justify-content:space-between;flex-wrap:wrap;color:var(--muted);font-size:14px}
.program-prose94{white-space:pre-wrap}.program-form-grid94{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.program-decision94{display:grid;gap:14px;padding:18px;background:var(--bg);border-radius:16px}
.program-art94{display:grid;justify-items:center;gap:14px;padding:16px;background:var(--bg);border-radius:16px}
.program-art94 img{display:block;width:auto;max-width:100%;height:auto;max-height:512px;object-fit:contain}
.program94 summary{min-height:48px;cursor:pointer;padding:12px 0;font-weight:650}
.program94 [data-program-status]:empty{display:none}
.program94 :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid var(--focus);outline-offset:3px}
@media(max-width:680px){.program-list94,.program-form-grid94{grid-template-columns:minmax(0,1fr)}.program-tabs94{grid-template-columns:repeat(2,minmax(0,1fr))}.program-card94{padding:20px}.program94 .actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}.program94 .actions>*{width:100%}}
@media(max-width:380px){.program-card94{padding:16px}.program94 .actions{grid-template-columns:minmax(0,1fr)}.program-heading94>span{display:none}}
@media(prefers-reduced-motion:reduce){:is(.player-main,.player-header,.modal) .btn{transition:none;transform:none}.program94{scroll-behavior:auto}}

/* Whole approved product images; text remains translatable DOM content. */
.rom-product-home .product-portrait97{display:flex;flex-direction:column;align-items:center;justify-content:center;background:#f8f5eb;padding:3.5rem 1rem 1rem;min-height:0;height:auto;overflow:visible}
.rom-product-home .product-character97{display:block;position:static;width:100%;height:auto;aspect-ratio:1000/850;max-height:28rem;object-fit:contain;transform:none;border-radius:0}
.product-portrait97 .product-name97{font-weight:650;font-size:1rem;line-height:1.5;text-align:center;padding:.5rem 1rem;overflow-wrap:anywhere}
.product-kart97{display:flex;align-items:center;flex-wrap:wrap;gap:.75rem;width:100%;margin-block:.25rem 1rem;font-size:1rem}
.product-kart97 select,.rom-kart-choice select{min-block-size:48px;min-inline-size:48px;min-width:0;font:inherit;border:1px solid var(--line,#dfe4e8);border-radius:.875rem;padding:.75rem;flex:1;background:#fff;color:var(--ink,#232c3c)}
.product-kart97 select:focus-visible{outline:3px solid var(--focus,#5841b3);outline-offset:3px}
.rom-product-home :is(.discovery-remix,.discovery-courses button){min-block-size:48px}
.rom-product-home .discovery-featured{align-items:stretch}
@media(max-width:700px){.rom-product-home .discovery-featured{grid-template-columns:minmax(0,1fr)}.rom-product-home .product-portrait97{height:auto;min-height:0;padding-block:3.25rem .5rem}.rom-product-home .product-character97{max-height:20rem}.rom-product-home .discovery-copy{padding:1.25rem}.product-kart97 select{width:100%}}

/* ROMEME paper, ink and lavender on the game entry surface. */
.rom-product-home {
  --entry-paper:#fffcff;
  --entry-ink:#30234c;
  --entry-accent:#6847bc;
  --entry-lavender:#eee7fc;
  --entry-border:#d9cbed;
  --rom80-ink:var(--entry-ink);
  --rom80-blue:var(--entry-accent);
  --rom80-soft:var(--entry-lavender);
}
.rom-product-home :is(.discovery-featured,.discovery-copy,.discovery-customize) {
  background:var(--entry-paper);
  border-color:var(--entry-border);
  color:var(--entry-ink);
}
.rom-product-home .product-portrait97 {
  background:var(--entry-lavender);
  color:var(--entry-ink);
}
.rom-product-home .discovery-kicker,
.rom-product-home .discovery-remix {color:var(--entry-accent)}
body:not(.in-shorts) .rom-product-home .discovery-play.btn.primary {
  background:var(--entry-accent);
  border-color:var(--entry-accent);
  color:#fff;
}
body:not(.in-shorts) .rom-product-home .discovery-play.btn.primary:hover {background:#5634a5}
.rom-product-home :is(.chase-modes141,.spinner-style141) .btn {
  background:var(--entry-paper);
  border-color:var(--entry-border);
  color:var(--entry-ink);
  min-block-size:48px;
  overflow-wrap:anywhere;
}
.rom-product-home :is(.chase-modes141,.spinner-style141) .btn:hover {
  background:var(--entry-lavender);
}

/* ROMEME home: separate destinations clearly while keeping every existing
   availability decision and text in the document that owns it. */
.rom-product-home { --entry-muted:#5c506d; --rom80-muted:var(--entry-muted); --rom80-line:var(--entry-border); }
.rom-product-home .product-purpose { background:#f4eefb; border-color:var(--entry-border); }
.rom-product-home .product-purpose a { color:#51435f; border-radius:.75rem; min-inline-size:0; overflow-wrap:anywhere; }
.rom-product-home .product-purpose a.selected { background:var(--entry-paper); color:var(--entry-ink); box-shadow:inset 0 -3px var(--entry-accent); }
.rom-product-home .rom75-mode-switch button { background:var(--entry-paper); border-color:var(--entry-border); color:var(--entry-ink); }
.rom-product-home .rom75-mode-switch button[aria-pressed=true] { background:var(--entry-lavender); border-color:var(--entry-accent); color:var(--entry-ink); }
.rom-product-home .discovery-featured { box-shadow:0 12px 34px #6b459f12; }
.rom-product-home .discovery-copy>p,.rom-product-home .discovery-copy>small { color:var(--entry-muted); }
.rom-product-home .discovery-customize summary { color:var(--entry-ink); }
.rom-product-home .discovery-customize summary small { color:var(--entry-muted); overflow-wrap:anywhere; }
.rom-product-home .discovery-courses button { border-color:var(--entry-border); color:var(--entry-ink); }
.rom-product-home .discovery-courses button[aria-pressed=true] { background:var(--entry-lavender); border-color:var(--entry-accent); color:var(--entry-ink); }
.rom-product-home :is(.discovery-category,.discovery-journey) { border-color:var(--entry-border); color:var(--entry-ink); }
.rom-product-home .discovery-category { min-inline-size:0; min-block-size:3.5rem; text-align:start; overflow-wrap:anywhere; }
.rom-product-home .discovery-category>.rom-icon { flex-shrink:0; }
.rom-product-home :is(.product-purpose a,.rom75-mode-switch button,.discovery-category,.discovery-customize summary):focus-visible { outline:3px solid #6745b8; outline-offset:3px; }
@media(max-width:360px) {
  .rom-product-home .rom76-purpose { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .rom-product-home .product-purpose a { min-block-size:3rem; }
  .rom-product-home .discovery-category-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.75rem; }
  .rom-product-home .discovery-category { padding:.75rem; }
  .rom-product-home .discovery-journeys { grid-template-columns:minmax(0,1fr); }
}
@media(forced-colors:active) {
  .rom-product-home .product-purpose a.selected,.rom-product-home .rom75-mode-switch button[aria-pressed=true],.rom-product-home .discovery-courses button[aria-pressed=true] { outline:2px solid Highlight; outline-offset:-3px; }
}

/* One control specification for participant selection, forms and receipt recovery. */
.safety98 {max-width:900px;margin-inline:auto;min-width:0;}
.safety98 h1,.safety98 h2,.safety98 p,.safety98 time {overflow-wrap:anywhere;}
.safety98 h1 {font-size:clamp(1.65rem,4vw,2.3rem);line-height:1.25;}
.safety98-actions {display:flex;flex-wrap:wrap;gap:10px;align-items:stretch;}
.safety98 .btn,.safety98 select {min-height:48px;min-width:48px;height:auto;white-space:normal;overflow-wrap:anywhere;line-height:1.4;}
.safety98 .btn {display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 16px;max-width:100%;}
.safety98 .btn .rom-icon {flex:0 0 20px;}
.safety98-list {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-block:18px;}
.safety98-card {min-width:0;padding:20px;border:1px solid var(--border,#ced6e0);border-radius:18px;background:var(--surface,#fff);display:grid;gap:12px;align-content:start;}
.safety98-card header {display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between;align-items:baseline;}
.safety98-card h2,.safety98-card p {margin:0;}
.safety98-card h2 {font-size:1.15rem;line-height:1.4;}
.safety98-card label {display:grid;gap:8px;font-weight:650;min-width:0;}
.safety98-card input,.safety98-card textarea,.safety98-card select {font:inherit;width:100%;max-width:100%;box-sizing:border-box;}
.safety98-card textarea {resize:vertical;min-height:110px;}
.safety98-copy {white-space:pre-wrap;}
.safety98 :is(button,a,input,textarea,select):focus-visible {outline:3px solid var(--accent,#1664da);outline-offset:3px;}
[data-safety-form]:empty {display:none;}
[data-safety-form] {margin-block:16px;}
.safety98 [data-safety-status]:empty {display:none;}
.room-page .room-nav[data-room-nav-count="5"] {grid-template-columns:repeat(3,minmax(0,1fr));}
@media(max-width:700px){.safety98-list{grid-template-columns:minmax(0,1fr);}.safety98-actions>.btn{flex:1 1 140px;}.safety98-card{padding:16px;}.room-page .room-nav[data-room-nav-count="5"]{grid-template-columns:repeat(2,minmax(0,1fr));}.room-page .room-nav[data-room-nav-count="5"]>.btn:last-child{grid-column:1/-1;}}
@media(prefers-reduced-motion:reduce){.safety98 *{animation:none!important;transition:none!important;scroll-behavior:auto!important;}}

/* Deletion is a vertical, explicit flow. Buttons share48px product controls;
   progress remains real text and is never baked into an image. */
.cloud-account88 #cloud-erasure101 summary { min-height:48px; line-height:1.5; }
.erasure101-body { padding:16px 0; min-width:0; }
.erasure101-actions { display:flex; flex-wrap:wrap; gap:12px; align-items:stretch; }
.erasure101-actions > p, .erasure101-actions > form { flex-basis:100%; margin:0; min-width:0; }
.erasure101-actions .btn { min-height:48px; min-width:48px; max-width:100%; white-space:normal; overflow-wrap:anywhere; }
.erasure101-actions form { display:grid; gap:16px; }
.erasure101-actions input { min-width:0; width:100%; box-sizing:border-box; }
.erasure101-note { color:var(--muted,#526176); font-size:.9375rem; line-height:1.65; }
.erasure101-body [role=status] { line-height:1.65; overflow-wrap:anywhere; }
@media (max-width:480px) { .erasure101-actions > .btn { flex:1 1 130px; } }

/* One control scale and one bounded page for public and private poll flows.
   No fixed label widths, cropped artwork, hover-only actions or motion loops. */
.poll102 { max-width: 1040px; margin-inline: auto; padding: clamp(18px, 3vw, 32px); }
.poll102 *, .poll102 *::before, .poll102 *::after { box-sizing: border-box; min-width: 0; }
.poll102 .btn { min-height: 48px; height: auto; padding: 12px 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: normal; text-align: center; line-height: 1.4; overflow-wrap: anywhere; }
.poll102 .btn svg { flex: 0 0 20px; width: 20px; height: 20px; }
.poll102 .btn span { overflow-wrap: anywhere; }
.poll102 button:focus-visible, .poll102 a:focus-visible, .poll102 input:focus-visible, .poll102 select:focus-visible, .poll102 textarea:focus-visible { outline: 3px solid var(--accent, #7d6aff); outline-offset: 3px; }
.poll-heading102 { display: flex; align-items: flex-start; gap: 16px; margin-block: 24px; }
.poll-heading102 > span { flex: 0 0 56px; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 18px; background: var(--surface-2, #25243a); color: var(--accent, #c4b9ff); }
.poll102 h1 { font-size: clamp(26px, 4vw, 36px); line-height: 1.18; letter-spacing: -.03em; margin: 0 0 10px; overflow-wrap: anywhere; }
.poll102 h2 { font-size: 21px; line-height: 1.35; margin: 0 0 10px; overflow-wrap: anywhere; }
.poll102 h3 { font-size: 18px; line-height: 1.4; margin: 0 0 8px; overflow-wrap: anywhere; }
.poll102 p, .poll102 label, .poll102 time { font-size: 16px; line-height: 1.65; overflow-wrap: anywhere; }
.poll-tabs102, .poll-actions102, .poll-toolbar102 { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.poll-tabs102 { padding-block: 6px 18px; border-bottom: 1px solid var(--line, #36354b); }
.poll-tabs102 a[aria-current="page"] { background: var(--accent, #bbaaff); color: var(--ink-on-accent, #191525); }
.poll-toolbar102 { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line, #36354b); }
.poll102 [data-poll-status] { min-height: 1.65em; margin-block: 16px; }
.poll-season102, .poll-choice102 { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.poll-season102 > div, .poll-choice102 > div { flex: 1 1 250px; }
.poll-season102 label { flex: 0 1 260px; }
.poll-grid102 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-block: 20px; }
.poll-card102, .poll-staff102, .poll-choice102, .poll-recovery102, .poll-reports102, .poll102 form { border: 1px solid var(--line, #36354b); border-radius: 20px; padding: 20px; background: var(--surface, #191925); }
.poll-card102 { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.poll-art102 { min-height: 192px; width: 100%; display: grid; place-items: center; background: var(--surface-2, #242432); padding: 16px; }
.poll-art102 img { display: block; object-fit: contain; max-width: 100%; width: 192px; height: 192px; }
.poll-card-copy102 { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.poll-card-copy102 .poll-actions102 { margin-top: auto; padding-top: 16px; }
.poll-author102, .poll-note102 { color: var(--muted, #b9b9cb); }
.poll-prose102 { white-space: pre-wrap; overflow-wrap: anywhere; }
.poll-tally102 { font-weight: 700; font-variant-numeric: tabular-nums; }
.poll-empty102 { grid-column: 1 / -1; text-align: center; padding: 36px 20px; border: 1px dashed var(--line, #36354b); border-radius: 20px; }
.poll-empty102 > span { display: inline-flex; margin-bottom: 16px; }
.poll102 form { display: grid; gap: 18px; margin-block: 20px; }
.poll102 fieldset { border: 0; padding: 0; margin: 0; }
.poll102 legend { margin-bottom: 12px; font-size: 18px; font-weight: 700; }
.poll102 label { display: grid; gap: 8px; }
.poll102 input:not([type="radio"]):not([type="checkbox"]), .poll102 select, .poll102 textarea { width: 100%; max-width: 100%; min-height: 48px; padding: 12px; font: inherit; color: inherit; background: var(--surface-2, #242432); border: 1px solid var(--line, #44435b); border-radius: 12px; }
.poll102 textarea { resize: vertical; }
.poll-check102, .poll-work102 { display: flex !important; align-items: flex-start; gap: 12px !important; cursor: pointer; }
.poll-check102 input, .poll-work102 input { width: 24px; height: 24px; flex: 0 0 24px; margin-top: 2px; }
.poll-work-list102 { display: grid; gap: 12px; }
.poll-work102 { padding: 16px; border: 1px solid var(--line, #44435b); border-radius: 14px; }
.poll-work102:has(input:checked) { outline: 2px solid var(--accent, #bbaaff); }
.poll-work102 small { display: block; margin-top: 4px; font-size: 15px; }
.poll-form-grid102 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.poll-reports102, .poll-staff102 { margin-block: 24px; }
.poll-reports102 article, .poll-staff102 article { padding-block: 20px; border-top: 1px solid var(--line, #36354b); }
.poll-recovery102 { border-color: var(--accent, #bbaaff); margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 12px; }
.poll-recovery102 p { flex-basis: 100%; margin: 0; }
@media (max-width: 600px) {
 .poll102 { padding: 18px 14px; }
 .poll-grid102, .poll-form-grid102 { grid-template-columns: minmax(0, 1fr); }
 .poll-tabs102 > .btn { flex: 1 1 90px; }
 .poll-actions102 > .btn, .poll-toolbar102 > .btn { flex: 1 1 130px; }
 .poll-heading102 { gap: 12px; }
 .poll-heading102 > span { flex-basis: 44px; width: 44px; height: 44px; border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) { .poll102 *, .poll102 *::before, .poll102 *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Shared room/weekly controls. Each label is a full tap target; no atlas or
   cropped character art, fixed-width text button or always-running motion. */
.room-appearance104{min-inline-size:0;border:0;padding:0;margin:18px 0}
.room-appearance104 legend{font-weight:750;margin-block-end:12px}
.room-look-grid104{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(112px,100%),1fr));gap:10px}
.room-look104{display:grid!important;grid-template-columns:24px minmax(0,1fr);align-content:start;align-items:center;gap:8px;min-height:140px;min-width:0;padding:12px;border:1.5px solid var(--line,#d9dfeb);border-radius:16px;cursor:pointer;background:var(--surface,#fff);font-size:1rem;line-height:1.35}
.room-look104 input[type=radio]{width:20px;height:20px;min-height:20px;min-width:20px;margin:0;accent-color:var(--primary,#3d57c8)}
.room-look104:has(input:checked){border-color:var(--primary,#3d57c8);box-shadow:0 0 0 1px var(--primary,#3d57c8)}
.room-look104:has(input:focus-visible){outline:3px solid var(--primary,#3d57c8);outline-offset:3px}
.room-look104:has(input:disabled){cursor:default;opacity:.65}
.room-look-picture104{display:grid;place-items:center;grid-column:1/-1;grid-row:2;min-width:0;min-height:96px}
.room-look-picture104 img{width:96px;max-width:100%;height:96px;object-fit:contain!important;display:block}
.room-look104>span:last-child{grid-column:2;grid-row:1;font-weight:700;overflow-wrap:anywhere}
.room-look-note104{font-size:.95rem;line-height:1.5;color:var(--muted,#535f76);margin-block:12px 0}
.room-classic104{min-width:0;border-inline-start:3px solid var(--line,#d9dfeb);padding-inline-start:14px}
.room-look-edit104{margin-block:16px;padding:16px;border:1px solid var(--line,#d9dfeb);border-radius:16px}
.room-look-edit104 button{min-height:48px;white-space:normal;overflow-wrap:anywhere}
@media(prefers-reduced-motion:reduce){.room-look104{transition:none!important}}

/* Scope all rules to this private view. Native links, progress and buttons keep
   their semantics; no continuous animation, raster text or new font download. */
.account-capacity105{max-width:1060px;margin-inline:auto;min-width:0}
.account-capacity105>header{display:flex;align-items:center;gap:18px;margin-block:24px}
.account-capacity105 h1{font-size:clamp(1.8rem,4vw,2.5rem);line-height:1.2;overflow-wrap:anywhere;margin-block:6px}
.capacity-symbol105{display:grid;place-items:center;flex:0 0 64px;min-height:64px;border-radius:20px;background:var(--accent-soft,#edf1fa);color:var(--primary,#3d57c8)}
.capacity-actions105{display:flex;flex-wrap:wrap;gap:12px;margin-block:16px}
.account-capacity105 .btn{min-height:48px;min-width:0;height:auto;max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.5}
.account-capacity105 .btn span,.account-capacity105>header>div{min-width:0;overflow-wrap:anywhere}
.account-capacity105 [aria-current=page]{border-color:var(--primary,#3d57c8);font-weight:750}
.account-capacity105 [data-cap-status105]{min-height:1.6em;line-height:1.6;margin-block:18px}
.capacity-grid105{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr));gap:16px}
.capacity-card105{display:flex;flex-direction:column;gap:10px;min-width:0;padding:22px;border:1px solid var(--line,#dce2ee);border-radius:20px;background:var(--surface,#fff);box-shadow:0 3px 12px #14234706}
.capacity-card105 h2{font-size:1.15rem;line-height:1.4;margin:0;overflow-wrap:anywhere}
.capacity-card-heading105{display:flex;align-items:center;flex-wrap:wrap;gap:10px;min-width:0}
.capacity-card-heading105 svg{flex-shrink:0}
.capacity-card105 p{margin:0;line-height:1.6}
.capacity-count105{font-size:2.6rem;font-weight:800;letter-spacing:-.035em;font-variant-numeric:tabular-nums}
.capacity-count105 span{font-size:1rem;font-weight:600;letter-spacing:0;color:var(--muted,#59657a)}
.capacity-card105 progress{width:100%;height:9px;accent-color:var(--primary,#3d57c8)}
.capacity-detail105,.capacity-note105{color:var(--muted,#59657a);line-height:1.65}
.capacity-card105>.btn{align-self:flex-start;margin-block-start:auto}
.capacity-card105 time{font-size:1rem;line-height:1.6;font-variant-numeric:tabular-nums}
.capacity-history105{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr));gap:14px}
.capacity-state105{font-size:.9rem;margin-inline-start:auto;font-weight:650}
.capacity-note105{margin-block:22px;padding:20px;border:1px solid var(--line,#dce2ee);border-radius:18px}
.capacity-note105 h2{font-size:1.15rem;color:var(--text,#20283c);margin-block:0 10px}
.capacity-note105 p{margin:0}
.capacity-empty105{padding:28px;border:1px solid var(--line,#dce2ee);border-radius:20px;line-height:1.7}
.history-filter137{display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,1fr);gap:12px;padding:20px;border:1px solid var(--line,#dce2ee);border-radius:18px;background:var(--surface,#fff)}
.history-field137{display:grid;gap:8px;min-width:0}
.history-field137 label{font-weight:650;line-height:1.5;overflow-wrap:anywhere}
.history-filter137 :is(input,select){min-height:48px;min-width:0;width:100%;max-width:100%;box-sizing:border-box;height:auto;padding:12px;font:inherit;line-height:1.5;border:1px solid var(--line,#dce2ee);border-radius:12px;background:var(--surface,#fff);color:var(--text,#20283c)}
.history-filter137>p,.history-filter137>.capacity-actions105{grid-column:1/-1;margin:0;line-height:1.6;overflow-wrap:anywhere}
.history-filter137 input[aria-invalid=true]{border-color:var(--danger,#b42318)}
.account-capacity105 [data-history-count137]{line-height:1.6;margin-block:18px;overflow-wrap:anywhere}
.account-capacity105 :focus-visible{outline:3px solid var(--primary,#3d57c8);outline-offset:3px}
@media(max-width:540px){.history-filter137{grid-template-columns:minmax(0,1fr)}.history-filter137 .btn{flex:1 1 140px}}
@media(max-width:380px){.account-capacity105>header{align-items:flex-start;gap:12px}.capacity-symbol105{flex-basis:48px;min-height:48px;border-radius:14px}.capacity-card105{padding:18px}}
@media(prefers-reduced-motion:reduce){.account-capacity105 *{scroll-behavior:auto!important;transition:none!important}}
@media(forced-colors:active){.capacity-card105,.capacity-note105,.capacity-empty105{border-color:CanvasText}.account-capacity105 .btn{border:1px solid ButtonText}.account-capacity105 .btn:disabled{color:GrayText;border-color:GrayText}.account-capacity105 :focus-visible{outline-color:Highlight}}
@media(forced-colors:active){.history-filter137{border-color:CanvasText}.history-filter137 :is(input,select){background:Canvas;color:CanvasText;border-color:ButtonText}.history-filter137 input[aria-invalid=true]{border-style:dashed;border-color:CanvasText}}

/* One spacing scale, complete images and naturally growing text controls.
 * No image sheet crop, fixed text height, external font or animation loop.
 */
.emoji111 { max-inline-size:64rem; margin-inline:auto; min-inline-size:0; }
.emoji111 [hidden] { display:none!important; }
.emoji111 :is(.emoji-nav111,.emoji-actions111) { display:flex; flex-wrap:wrap; gap:.75rem; min-inline-size:0; margin-block:1rem; }
.emoji111 :is(.btn,input:not([type=checkbox]),select,textarea),.emoji-picker111 .btn {
    min-block-size:3rem; max-inline-size:100%; min-inline-size:0; height:auto;
    padding:.75rem 1rem; border-radius:.875rem; font:inherit; line-height:1.5;
    white-space:normal; overflow-wrap:anywhere; box-sizing:border-box;
}
.emoji111 .btn,.emoji-picker111 .btn { display:inline-flex; align-items:center; justify-content:center; gap:.5rem; }
.emoji111 .btn>.rom-icon,.emoji-picker111 .btn>.rom-icon { inline-size:1.25rem; block-size:1.25rem; flex:0 0 1.25rem; }
.emoji-heading111 { display:flex; align-items:center; gap:1rem; margin-block:2rem 1rem; }
.emoji-heading111>span { display:grid; place-items:center; inline-size:3.5rem; block-size:3.5rem; flex:none; background:#e8eee6; border-radius:1rem; color:#3b5946; }
.emoji111 h1 { font-size:clamp(1.75rem,4vw,2.5rem); line-height:1.25; letter-spacing:-.035em; margin:0; overflow-wrap:anywhere; }
.emoji111 h2 { font-size:1.125rem; line-height:1.5; margin:0 0 .5rem; overflow-wrap:anywhere; }
.emoji111 p { font-size:1rem; line-height:1.7; overflow-wrap:anywhere; }
.emoji-lead111 { color:var(--muted); max-inline-size:42rem; margin-block:0 1.5rem; }
.emoji-grid111 { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.emoji-card111 { display:grid; grid-template-columns:7rem minmax(0,1fr); align-items:start; gap:1rem; padding:1.25rem; border:1px solid var(--line); border-radius:1.25rem; background:var(--surface,#fff); }
.emoji-card111>div { min-inline-size:0; }
.emoji-art111 { display:grid; place-items:center; aspect-ratio:1; border:1px solid #e4e6df; border-radius:1rem; background:#f7f8f4; overflow:hidden; }
.emoji-art111 img { inline-size:100%; block-size:100%; object-fit:contain; padding:.75rem; box-sizing:border-box; }
.emoji-state111 { display:inline-flex; padding:.25rem .625rem; margin-block-end:.75rem; border-radius:.5rem; background:#edf0e8; color:#46553d; font-size:.875rem; line-height:1.5; }
.emoji-empty111 { grid-column:1/-1; padding:2rem; border:1px dashed #ccd4c5; border-radius:1.25rem; background:#f8faf5; }
.emoji-editor111,.emoji-detail111 { display:grid; grid-template-columns:minmax(12rem,20rem) minmax(0,1fr); gap:2rem; padding:1.5rem; border:1px solid var(--line); border-radius:1.25rem; background:white; }
.emoji-preview111,.emoji-fields111 { display:flex; flex-direction:column; gap:1rem; min-inline-size:0; }
.emoji-preview111 canvas,.emoji-detail-art111 { inline-size:100%; aspect-ratio:1; border:1px solid var(--line); border-radius:1rem; background:#f5f7f0; }
.emoji-detail-art111 { display:grid; place-items:center; padding:1rem; box-sizing:border-box; }
.emoji-detail-art111 img { inline-size:100%; block-size:auto; object-fit:contain; }
.emoji111 label { display:flex; flex-direction:column; gap:.5rem; font-size:1rem; line-height:1.5; }
.emoji111 :is(input:not([type=checkbox]),textarea,select) { inline-size:100%; border:1px solid #bbc4b8; background:white; color:var(--ink); }
.emoji111 textarea { resize:vertical; }
.emoji111 small { font-size:.9375rem; line-height:1.6; }
.emoji-image-unavailable111 { display:flex; align-items:center; justify-content:center; flex-direction:column; gap:.5rem; padding:.5rem; min-inline-size:0; max-inline-size:100%; color:var(--muted); text-align:center; font-size:.875rem; line-height:1.5; overflow-wrap:anywhere; }
.emoji111 .emoji-consent111 { display:flex; flex-direction:row; align-items:flex-start; gap:.75rem; margin-block:1rem; min-block-size:3rem; }
.emoji-consent111 input { inline-size:1.375rem; block-size:1.375rem; flex:0 0 1.375rem; margin:.15rem 0 0; }
.emoji111 :focus-visible,.emoji-picker111 :focus-visible { outline:3px solid #365a48; outline-offset:3px; scroll-margin-block:6rem; }
.emoji-picker111 .emoji-picker-grid111 { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.75rem; }
.emoji-picker111 [data-emoji-choice] { display:flex; flex-direction:column; align-items:center; gap:.5rem; min-inline-size:0; padding:.75rem; border:1px solid #cbd4c4; border-radius:1rem; background:#f8faf5; font:inherit; line-height:1.5; overflow-wrap:anywhere; }
.emoji-picker111 [data-emoji-choice] img { inline-size:4rem; block-size:4rem; object-fit:contain; }
.emoji-picker111 [aria-pressed=true] { border:2px solid #365a48; background:#eaf1e6; }
.emoji-post111 { margin-block-start:1rem; padding-block-start:1rem; border-block-start:1px solid var(--line); }
.emoji-post-reactions111 { display:flex; flex-wrap:wrap; gap:.75rem; margin-block-end:.75rem; }
.emoji-post-reactions111>span { display:inline-flex; align-items:center; gap:.5rem; min-block-size:3rem; padding:.5rem .75rem; border:1px solid var(--line); border-radius:.875rem; }
.emoji-post-reactions111 img { inline-size:2rem; block-size:2rem; object-fit:contain; }
@media(max-width:48rem) { .emoji-grid111 { grid-template-columns:minmax(0,1fr); } }
@media(max-width:40rem) { .emoji-editor111,.emoji-detail111 { grid-template-columns:minmax(0,1fr); gap:1.25rem; padding:1rem; } .emoji-preview111,.emoji-detail-art111 { max-inline-size:20rem; margin-inline:auto; } .emoji-card111 { grid-template-columns:5rem minmax(0,1fr); padding:1rem; } .emoji-actions111>.btn { flex:1 1 8rem; } .emoji-picker111 .emoji-picker-grid111 { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(prefers-reduced-motion:reduce) { .emoji111 *,.emoji-picker111 * { animation:none; transition:none; } }
@media(forced-colors:active) { .emoji111 .btn,.emoji-picker111 button { border:1px solid ButtonText; } }

/* The image remains complete; all labels are separate translatable text. */
.comment-emoji112 { display:flex; align-items:center; flex-wrap:wrap; gap:.75rem; margin:1rem 0; min-inline-size:0; }
.comment-emoji112 img,.comment-emoji-missing112 { inline-size:4rem; block-size:4rem; flex:0 0 4rem; object-fit:contain; padding:.375rem; border:1px solid var(--line); border-radius:.875rem; box-sizing:border-box; background:#f5f7f0; }
.comment-emoji-missing112 { display:grid; place-items:center; text-align:center; font-size:.875rem; line-height:1.4; }
.comment-emoji112 figcaption { display:flex; flex-direction:column; gap:.5rem; min-inline-size:0; overflow-wrap:anywhere; }
.comment-emoji112 figcaption a { display:inline-flex; align-items:center; gap:.5rem; min-block-size:3rem; line-height:1.5; }
.comment-emoji-tools112,.comment-emoji-permission112 { margin-block:1rem; min-inline-size:0; }
.comment-emoji-permission112 { padding-block-start:1rem; border-block-start:1px solid var(--line); }
.comment-emoji-tools112 [hidden],.comment-emoji-permission112 [hidden] { display:none!important; }

/* Whole pictures and separate translated names; the shared control contract
   owns 48px targets. A long title never stretches the viewport. */
.room-pictures116,.room-picture-permission116{margin-block:20px;padding:20px;border:1px solid var(--line,#d7dfeb);border-radius:16px;min-width:0}
.room-pictures116 h2,.room-picture-permission116 h2{font-size:1.15rem;margin:0 0 12px}
.room-pictures116 .actions,.room-picture-permission116 form{display:flex;flex-wrap:wrap;gap:12px}
.room-picture-grid116,.room-picture-choices116{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr));gap:12px;margin-block:16px}
.room-picture-grid116 figure{margin:0;display:flex;align-items:center;gap:12px;padding:12px;background:var(--surface,#fff);border-radius:12px;min-width:0}
.room-picture-grid116 img,.room-picture-choices116 img{object-fit:contain;flex:none}
.room-picture-grid116 figcaption,.room-picture-choices116 button{display:flex;flex-direction:column;gap:6px;min-width:0;overflow-wrap:anywhere;white-space:normal}
.room-picture-grid116 figcaption span,.room-picture-choices116 button span{font-size:.875rem;color:var(--muted,#526079)}
.room-picture-choices116 button.btn{height:auto;min-height:128px;padding:16px;align-items:center;text-align:center}
.room-picture-permission116 .emoji-consent111{flex-basis:100%}
@media(max-width:520px){.room-pictures116,.room-picture-permission116{padding:16px}.room-pictures116 .actions>.btn{flex:1 1 100%;width:100%}.room-picture-grid116{grid-template-columns:1fr}}

/* Last consumer stylesheet: one control frame after historical service skins.
 * Colors/meaning stay with each component. Minima grow with translated text;
 * gameplay, native media controls and provider-owned sign-in widgets are scoped
 * out. Never hide page overflow to conceal an oversized child.
 */
body:not(.in-shorts) :is(.player-main,.player-header) :is(.btn,.back-button,.text-button,.crumb a,.arcade-breadcrumb a,.discovery-remix,.arcade-bank-groups button,.discovery-game-tabs button,.discovery-courses button),
.rom-dialog :is(.btn,.back-button,.text-button) {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:.5rem;
    min-height:48px;
    min-block-size:3rem;
    min-inline-size:0;
    min-width:0;
    max-inline-size:100%;
    height:auto;
    block-size:auto;
    padding:.75rem 1rem;
    border-radius:.875rem;
    box-sizing:border-box;
    font-family:var(--rom-font);
    font-size:1rem;
    font-weight:650;
    line-height:1.5;
    white-space:normal;
    overflow-wrap:anywhere;
    text-align:center;
    text-decoration:none;
}
body:not(.in-shorts) :is(.player-main,.player-header) .btn>.rom-icon,
.rom-dialog .btn>.rom-icon {
    inline-size:1.25rem;
    block-size:1.25rem;
    flex:0 0 1.25rem;
    margin:0;
}
body:not(.in-shorts) .player-main :is(.actions,.social-tabs92,.social-actions92,.creation-nav,.room-nav,.free-tabs,.emoji-nav111,.emoji-actions111,.crumb,.arcade-breadcrumb,.arcade-bank-groups,.discovery-game-tabs,.discovery-courses),
.rom-dialog :is(.actions,.emoji-actions111) {
    display:flex;
    flex-wrap:wrap;
    align-items:stretch;
    gap:.75rem;
    min-inline-size:0;
}
body:not(.in-shorts) .player-main :is(.actions,.social-tabs92,.social-actions92,.creation-nav,.room-nav,.free-tabs,.emoji-nav111,.emoji-actions111,.crumb,.arcade-breadcrumb,.arcade-bank-groups,.discovery-game-tabs,.discovery-courses)>*,
.rom-dialog :is(.actions,.emoji-actions111)>* {
    min-inline-size:0;
    max-inline-size:100%;
}
body:not(.in-shorts) .player-main :is(.btn,.back-button,.text-button,.crumb a,.arcade-breadcrumb a,.discovery-remix,.arcade-bank-groups button,.discovery-game-tabs button,.discovery-courses button):focus-visible,
.rom-dialog :is(.btn,.back-button,.text-button):focus-visible {
    outline:3px solid var(--focus,#4f6147);
    outline-offset:3px;
    scroll-margin-block:6rem;
}
body:not(.in-shorts) .player-main [hidden],.rom-dialog [hidden] { display:none!important; }
@media(prefers-reduced-motion:reduce) {
    body:not(.in-shorts) :is(.player-main,.player-header) :is(.btn,.back-button,.text-button,.crumb a,.arcade-breadcrumb a,.discovery-remix,.arcade-bank-groups button,.discovery-game-tabs button,.discovery-courses button),
    .rom-dialog :is(.btn,.back-button,.text-button) { transition:none; animation:none; }
}

/* Dedicated video-viewer actions share the regular control scale. Keep the
 * large play overlay, live game HUD and native media widgets at their own size.
 * The details area already scrolls independently; never clip enlarged labels.
 */
body.in-watch :is(.shorts-tabs a,.shorts-tools .shorts-tool,.watch-action,.watch-recovery .btn,.shorts-navigation .round-action){
    min-block-size:3rem;min-height:48px;block-size:auto;height:auto;
    box-sizing:border-box;font-family:var(--rom-font);font-size:1rem;line-height:1.5;
    white-space:normal;overflow-wrap:anywhere;max-inline-size:100%;
}
body.in-watch .shorts-tools .shorts-tool{inline-size:3rem;min-inline-size:3rem}
body.in-watch :is(.shorts-tools,.watch-transport,.watch-primary,.watch-actions,.watch-retry){gap:.75rem}
body.in-watch .watch-seek input{min-block-size:3rem;min-height:48px;block-size:3rem}
@media(prefers-reduced-motion:reduce){body.in-watch :is(.shorts-tabs a,.shorts-tools .shorts-tool,.watch-action,.watch-recovery .btn,.shorts-navigation .round-action){transition:none;animation:none}}


/* Profile photo tools: bounded native work and readable vertical controls.
 * This changes layout only; native sliders and canvas input retain semantics.
 * General touch targets follow the existing final48px/12px control contract.
 */
#profile-picture90{display:grid;gap:1rem;min-inline-size:0}
#profile-picture90>label[for="picture-file90"][aria-disabled="true"]{opacity:.65;cursor:progress}
#profile-picture90>fieldset{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;min-inline-size:0;padding:1rem;margin:0}
#profile-picture90>fieldset>label{display:grid;gap:.5rem;min-inline-size:0;font:inherit}
#profile-picture90>fieldset>legend{padding-inline:.5rem;font-weight:700}
#profile-picture90>fieldset .btn{inline-size:100%;min-block-size:3rem;min-inline-size:0;white-space:normal}
#profile-picture90 input[type=range]{inline-size:100%;min-inline-size:0;min-block-size:3rem}
#profile-picture90>canvas{inline-size:min(100%,16rem);block-size:auto;aspect-ratio:1;justify-self:center}
#profile-picture90>.actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}
#profile-picture90>.actions>.btn{inline-size:100%;min-inline-size:0;white-space:normal}
@media(max-width:30rem){#profile-picture90>fieldset{grid-template-columns:minmax(0,1fr)}}

/* Installation belongs to the shared shell, not a floating obstruction over
 * race controls. Whole icon and translated label retain the common touch size.
 * A wrapped header remains measurable by the existing layout-clearance owner.
 */
.player-header:has(.header-install115:not([hidden])){flex-wrap:wrap;gap:.75rem}
.player-header:has(.header-install115:not([hidden]))>.actions{flex-wrap:wrap;gap:.75rem;min-inline-size:0;max-inline-size:100%;margin-inline-start:auto}
.player-header .header-install115{min-block-size:3rem;max-inline-size:100%;white-space:normal;overflow-wrap:anywhere}
.player-header .header-install115[hidden]{display:none!important}
.install-panel115{display:grid;gap:.75rem;min-inline-size:0}
.install-panel115 p{margin:0;overflow-wrap:anywhere}
.install-panel115>.btn{inline-size:100%;min-block-size:3rem}
.install-panel115 [hidden]{display:none!important}
.install-panel115 [data-install-ready119]:empty{display:none}
.room-code-card .actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;inline-size:100%;min-inline-size:0}
.room-code-card .actions>.btn{inline-size:100%;min-inline-size:0}
.room-invite115{margin:0;padding:.75rem 1rem;border-radius:.875rem;background:var(--surface-variant,#edf3ee);color:var(--on-surface,#23312b);overflow-wrap:anywhere}


/* Explicit installation or browser entry, outside active gameplay. */
.rom-use-choices46{display:flex;flex-wrap:wrap;gap:12px;margin-block:16px;min-width:0}
.rom-use-choices46>.btn{min-height:48px;min-width:0;max-width:100%;gap:12px;white-space:normal;overflow-wrap:anywhere}
.rom-use-choices46>.btn:focus-visible{outline:3px solid #2453a4;outline-offset:3px}
.rom-install-fallback46{max-width:42rem;margin:24px auto;padding:24px;border:1px solid var(--rom-border,#cbd5e1);border-radius:20px;background:var(--rom-surface,#fff)}
.rom-install-fallback46 p{overflow-wrap:anywhere}
.install-entry141{display:grid;gap:1rem;max-width:44rem;margin:1.5rem auto;padding:clamp(1rem,3vw,2rem);border:1px solid var(--rom-border,#cbd5e1);border-radius:1.25rem;background:var(--rom-surface,#fff)}
.install-entry141 header{display:grid;gap:.5rem}
.install-entry141 h1,.install-entry141 p{margin:0;overflow-wrap:anywhere}
.install-entry-actions141{display:flex;flex-wrap:wrap;gap:12px}
.install-entry-actions141>.btn{min-height:48px;min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.install-entry-actions141>[hidden]{display:none!important}
/* Installation retains native availability and status; this is presentation only. */
.install-entry141{border-color:#ded5eb;background:#fffcff;color:#30234c;box-shadow:0 14px 38px #6b459f12}
.install-entry141 header{gap:.75rem}
.install-entry141 h1{font-size:clamp(1.75rem,4vw,2.5rem);line-height:1.2;letter-spacing:-.035em}
.install-entry141 header p,.install-entry141>.small{color:#5c506d;line-height:1.65}
.install-entry141 [data-install-status141]:not(:empty){padding:1rem;border:1px solid #dfd2ef;border-radius:1rem;background:#eee7fc;color:#30234c;line-height:1.65}
.install-entry141 [data-install-status141]:empty{display:none}
.install-entry-actions141>.btn{justify-content:center}
body:not(.in-shorts) .install-entry141 .install-entry-actions141>.btn.primary{background:#6847bc;border-color:#6847bc;color:#fff}
body:not(.in-shorts) .install-entry141 .install-entry-actions141>.btn.primary:hover{background:#5634a5}
.install-entry-actions141>.btn:focus-visible,.install-panel115>.btn:focus-visible{outline:3px solid #6745b8;outline-offset:3px}
@media(max-width:600px){.install-entry141{margin-block:1rem;padding:1.25rem}.install-entry-actions141{display:grid;grid-template-columns:minmax(0,1fr)}.install-entry-actions141>.btn{width:100%}}
@media(forced-colors:active){.install-entry141,.install-entry141 [data-install-status141]:not(:empty){background:Canvas;color:CanvasText;border:1px solid CanvasText}.install-entry141 .install-entry-actions141>.btn.primary{forced-color-adjust:auto}}

@media(max-width:600px){.rom-use-choices46{display:grid;grid-template-columns:minmax(0,1fr)}.rom-use-choices46>.btn{width:100%}}

.install-steps141{list-style:none;display:flex;flex-wrap:wrap;gap:.5rem;margin:0;padding:0}
.install-steps141 li,.rom-install-opened141{display:inline-flex;align-items:center;gap:.5rem;padding:.5rem .75rem;border:1px solid currentColor;border-radius:.75rem}
.install-steps141 [aria-current=step]{font-weight:750;background:#eee7fc;color:#30234c}

.hall107 {max-inline-size:68rem;margin-inline:auto;display:grid;gap:1.5rem;}
.hall107 h1 {font-size:clamp(1.75rem,4vw,2.5rem);line-height:1.25;}
.hall107 p {line-height:1.65;max-inline-size:44rem;overflow-wrap:anywhere;}
.hall107-nav {display:flex;flex-wrap:wrap;gap:.75rem;}
.hall107-nav a[aria-current=page] {background:var(--lilac);box-shadow:inset 0 -3px 0 var(--deep);}
.hall107-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;}
.hall107-card {min-inline-size:0;padding:1.25rem;background:var(--paper,#fff);border:1px solid var(--line);border-radius:1.25rem;display:grid;gap:1rem;align-content:start;}
.hall107-card h2 {font-size:1.125rem;overflow-wrap:anywhere;}
.hall107-state {font-size:.875rem;font-weight:650;color:var(--deep);}
.hall107-empty {padding:2rem 1.5rem;border:1px dashed var(--line);border-radius:1.25rem;background:var(--paper,#fff);display:grid;gap:1rem;}
.hall107-empty > .rom-icon {inline-size:2rem;block-size:2rem;color:var(--deep);}
.hall107 [role=status],.hall107 [role=alert] {overflow-wrap:anywhere;line-height:1.65;}
.hall107-consent {display:flex;align-items:flex-start;gap:.75rem;padding:.75rem;border:1px solid var(--line);border-radius:.875rem;line-height:1.6;}
.hall107-consent input {margin-block-start:.3rem;inline-size:1.25rem;block-size:1.25rem;flex:none;}
.hall107-player:empty {display:none;}
.hall107-player video {display:block;inline-size:100%;max-block-size:28rem;background:#171c2b;border-radius:.875rem;}
.hall107-recovery {display:grid;gap:1rem;padding:1.25rem;border:1px solid var(--line);border-radius:1.25rem;background:var(--paper,#fff);}
@media(max-width:42rem) {.hall107-grid {grid-template-columns:minmax(0,1fr);}.hall107-nav > .btn {flex:1 1 auto;}}

/* One service-control scale, loaded after legacy screen styles.
 * 한국어 인계: 글 길이가 다른 버튼을 같은 폭으로 강제하지 않는다. 높이·
 * 패딩·아이콘·간격을 통일하고 번역/확대 시 높이가 자연스럽게 늘어나게 한다.
 * 실시간 게임 HUD/조이스틱과 숏폼의 전용 조작 영역은 이 규칙에서 제외한다.
 */
body:not(.in-shorts) :is(.player-main,.rom-dialog) .btn {
    box-sizing:border-box;
    min-block-size:var(--rom-control-height,3rem);
    block-size:auto;
    min-inline-size:0;
    max-inline-size:100%;
    padding:var(--rom-control-padding,.75rem 1rem);
    gap:var(--rom-control-gap,.5rem);
    border-radius:var(--rom-control-radius,.875rem);
    font-size:var(--rom-label,1rem);
    line-height:1.5;
    white-space:normal;
    overflow-wrap:anywhere;
    text-align:center;
    align-items:center;
    justify-content:center;
}
body:not(.in-shorts) :is(.player-main,.rom-dialog) .btn > .rom-icon {
    inline-size:var(--rom-control-icon,1.25rem);
    block-size:var(--rom-control-icon,1.25rem);
    flex:0 0 var(--rom-control-icon,1.25rem);
}
body:not(.in-shorts) :is(.player-main,.rom-dialog) .btn > :is(span,strong) {
    min-inline-size:0;
    overflow-wrap:anywhere;
}
body:not(.in-shorts) :is(.player-main,.rom-dialog) .actions {
    gap:var(--rom-space-sm,.75rem);
    row-gap:var(--rom-space-sm,.75rem);
    flex-wrap:wrap;
    align-items:stretch;
}
body:not(.in-shorts) :is(.player-main,.rom-dialog) .icon-btn {
    min-inline-size:3rem;
    min-block-size:3rem;
    inline-size:3rem;
    block-size:3rem;
    flex:0 0 3rem;
}
body:not(.in-shorts) :is(.player-main,.rom-dialog) .icon-btn > .rom-icon {
    inline-size:var(--rom-control-icon,1.25rem);
    block-size:var(--rom-control-icon,1.25rem);
    flex:none;
}
body :is(.btn,.icon-btn,[data-hall-body],[data-hall-recovery])[hidden] {
    display:none!important;
}
body:not(.in-shorts) :is(.player-main,.rom-dialog) :is(.btn,.icon-btn):focus-visible {
    outline:3px solid var(--rom-focus-color,#247b9e);
    outline-offset:3px;
}
@media (prefers-reduced-motion:reduce) {
    body:not(.in-shorts) :is(.player-main,.rom-dialog) :is(.btn,.icon-btn) {
        animation:none;
        transition:none;
        transform:none;
    }
}

/* A restrained reading surface inside the existing staff shell. The list
 * grows vertically with names/translations; no clipped rows or nested cards. */
.staff-directory139 { --staff-ink:#173e3a; --staff-muted:#49635f; color:var(--staff-ink); min-inline-size:0; }
.staff139-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; padding-block:24px; border-block-end:1px solid #cbd9d5; }
.staff139-heading h2 { margin:8px 0; font-size:clamp(1.5rem,4vw,2rem); line-height:1.3; letter-spacing:-.025em; }
.staff139-heading p,.staff139-row p { margin:4px 0; color:var(--staff-muted); line-height:1.6; }
.staff139-eyebrow { font-size:.875rem; font-weight:650; color:var(--staff-muted); }
.staff139-badge { flex:0 0 auto; padding:6px 10px; border:1px solid #a8c4b9; border-radius:8px; background:#eff7f2; font-size:.875rem; }
.staff139-tools { display:flex; align-items:flex-end; flex-wrap:wrap; gap:12px; padding-block:24px; }
.staff139-tools label { display:grid; flex:1 1 240px; gap:8px; min-inline-size:0; font-weight:600; }
.staff-directory139 input { min-block-size:48px; inline-size:100%; box-sizing:border-box; padding:12px; border:1px solid #819e94; border-radius:10px; font:inherit; background:#fff; color:var(--staff-ink); }
.staff139-actions { display:flex; flex-wrap:wrap; gap:12px; }
.staff-directory139 .btn { min-block-size:48px; max-inline-size:100%; gap:8px; white-space:normal; overflow-wrap:anywhere; }
.staff139-list { margin:0; padding:0; list-style:none; }
.staff139-row { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; gap:12px; padding-block:20px; border-block-end:1px solid #d9e4df; }
.staff139-row strong { font-size:1.125rem; }
.staff139-row time,.staff139-row code { font-size:.875rem; color:var(--staff-muted); }
.staff139-row details { margin-block-start:12px; }
.staff139-row summary { display:list-item; min-block-size:48px; padding-block:12px; box-sizing:border-box; cursor:pointer; }
.staff139-row :is(strong,p,code,time),.staff139-status,.staff139-filter { overflow-wrap:anywhere; }
.staff139-status { min-block-size:1.5em; margin:0; line-height:1.6; }
.staff139-empty { padding-block:32px; color:var(--staff-muted); }
.staff139-count { color:var(--staff-muted); font-size:.875rem; }
.staff-directory139 :is(button,input,summary):focus-visible { outline:3px solid #236a58; outline-offset:4px; }
@media(max-width:640px) {
    .staff139-heading { flex-wrap:wrap; }
    .staff139-tools,.staff139-actions { display:grid; grid-template-columns:minmax(0,1fr); inline-size:100%; }
    .staff139-row { grid-template-columns:minmax(0,1fr); }
    .staff139-row>.btn { justify-self:start; }
}
@media(forced-colors:active) {
    .staff139-badge,.staff-directory139 input { color:CanvasText; background:Canvas; border-color:ButtonText; }
    .staff139-row,.staff139-heading { border-color:CanvasText; }
    .staff-directory139 :is(button,input,summary):focus-visible { outline-color:Highlight; }
}
@media(prefers-reduced-motion:reduce) {
    .staff-directory139 * { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
}

.workspace142{max-width:760px;margin-inline:auto}
.workspace142 nav,.workspace142 .actions{display:flex;flex-wrap:wrap;gap:12px}
.workspace142 [data-workspace-body]{display:grid;gap:12px}
.workspace142 form,.workspace142 label{display:grid;gap:12px;min-width:0}
.workspace142 input{width:100%;min-width:0;min-height:48px;box-sizing:border-box;font:inherit}
.workspace142 button,.workspace142 a.btn{min-height:48px;white-space:normal;overflow-wrap:anywhere}
.workspace142 h1:focus-visible,.workspace142 :is(button,a,input):focus-visible{outline:3px solid currentColor;outline-offset:4px}
@media(max-width:480px){.workspace142 .actions{display:grid;grid-template-columns:minmax(0,1fr)}}

/* Online, practice and recorded ghosts share the same product controls.
   The decorative ghost label never captures game input or masks a control. */
.race-modes140 {margin:0 0 24px;padding:20px;border:1px solid #d7e4eb;border-radius:20px;background:#f4fafc;color:#244052;}
.race-modes140 p {margin:0 0 12px;max-inline-size:64ch;line-height:1.6;overflow-wrap:anywhere;}
.race-modes140 nav {display:flex;flex-wrap:wrap;gap:12px;}
.race-modes140 .btn,.history-detail-actions .race-ghost-action140 {min-block-size:48px;min-inline-size:48px;gap:12px;padding:12px 18px;white-space:normal;overflow-wrap:anywhere;text-align:start;line-height:1.4;}
.race-modes140 .race-online140,.history-detail-actions .race-ghost-action140 {background:#184d66;border:1px solid #184d66;color:#fff;}
.race-modes140 a:focus-visible,.history-detail-actions .race-ghost-action140:focus-visible {outline:3px solid #aa6200;outline-offset:4px;}
.race-ghost-label {position:absolute;inset-inline-start:12px;inset-block-start:104px;max-inline-size:calc(100% - 24px);padding:6px 10px;border:1px dashed #91e8ee;border-radius:10px;background:#143343;color:#cbfcff;font-size:12px;font-weight:700;line-height:1.5;pointer-events:none;overflow-wrap:anywhere;}
@media(max-width:600px) {.race-modes140 {padding:16px;}.race-modes140 nav {display:grid;grid-template-columns:minmax(0,1fr);}.race-modes140 .btn {inline-size:100%;}.race-ghost-label {inset-block-start:96px;}}
@media(forced-colors:active) {.race-modes140,.race-modes140 .btn,.history-detail-actions .race-ghost-action140,.race-ghost-label {background:Canvas;color:CanvasText;border-color:CanvasText;}}

/* Shared controls: four primary actions, two optional skills. No motion loop. */
.race-controls.race-controls141,.room-controls.race-controls141 {
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:12px;
    box-sizing:border-box;
    color:#fff;
    pointer-events:auto;
}
.race-controls.race-controls141 {left:16px;right:16px;bottom:calc(24px + env(safe-area-inset-bottom));}
.race-controls141 .rc141-auto {margin:0;text-align:center;font-size:.875rem;line-height:1.5;color:#fff;text-shadow:0 1px 4px #102b47;}
.race-controls.race-controls141 .rc141-auto {align-self:center;padding:4px 8px;border-radius:8px;background:#17354b;color:#fff;text-shadow:none;}
.race-controls141 .rc141-reversed {display:none;margin:0;align-self:flex-start;align-items:center;gap:8px;padding:8px 12px;border-radius:12px;background:#fff0b7;color:#273b4b;font-size:.875rem;font-weight:750;line-height:1.5;}
.running-inverted .race-controls141 .rc141-reversed {display:flex;}
.running-inverted .race-primary141>.rc141-side:first-child {outline:3px solid #f5ce72;outline-offset:4px;border-radius:16px;}
.race-controls141 .race-primary141 {display:flex;justify-content:space-between;gap:12px;}
.race-controls141 .rc141-side,.race-controls141 .rc141-skills {display:grid;grid-template-columns:repeat(2,minmax(48px,1fr));gap:12px;min-width:0;}
.race-controls141 .rc141-side {width:calc(50% - 6px);max-width:152px;}
.race-controls141 button {
    position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;
    gap:5px;width:100%;min-width:48px;min-height:72px;height:auto;padding:8px 4px;
    border:1px solid #b2d1db;border-radius:16px;background:#193a50;color:#fff;
    box-shadow:0 3px 0 #0c2331;font:inherit;line-height:1.25;cursor:pointer;touch-action:none;
}
.race-controls141 button>span:not(.mobile-control-mark) {font-size:.875rem;font-weight:750;white-space:normal;overflow-wrap:anywhere;}
.race-controls141 button[data-input="4"],.race-controls141 button[data-room-mask="4"] {background:#f6e7b8;border-color:#fff3cc;color:#24364a;}
.race-controls141 button.pressed,.race-controls141 button[aria-pressed="true"] {box-shadow:inset 0 0 0 3px #7de5d2;transform:translateY(2px);}
.race-controls141 .rc141-charge {position:absolute;inset:0;border-radius:inherit;background:#6cabc633;transform-origin:bottom;pointer-events:none;}
.race-controls141 .rc141-charge~* {position:relative;}
.race-auto-intro141 {display:flex;gap:8px;align-items:flex-start;font-size:.9375rem;line-height:1.6;max-width:34ch;color:#fff;margin:0 0 18px;}
.race-auto-intro141 .rom-icon {flex:none;margin-top:4px;}
.race-controls141 :is(button,summary):focus-visible {outline:3px solid #ffdc7a;outline-offset:3px;}
.race-controls141 button:disabled {opacity:.65;cursor:default;}
.race-controls141 .mobile-control-mark {width:28px;height:28px;background:transparent;color:inherit;}
.race-controls141 .game-key-hint,.race-controls141 kbd {position:static;font-size:.75rem;line-height:1.2;max-width:100%;white-space:normal;}
.race-controls141 .rc141-more {align-self:flex-end;max-width:100%;min-width:136px;border:0;}
.race-controls141 .rc141-more summary {display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;box-sizing:border-box;padding:8px 12px;border:1px solid #d4e2e7;border-radius:14px;background:#15374bea;color:#fff;font-size:.875rem;cursor:pointer;list-style:none;}
.race-controls141 .rc141-more summary::-webkit-details-marker {display:none;}
.race-controls141 .rc141-skills {margin-top:12px;}
.room-controls.race-controls141 {margin:20px auto;max-width:560px;color:var(--ink,#20354b);}
.room-controls.race-controls141 .rc141-auto {color:var(--ink,#20354b);text-shadow:none;}

/* A live online match owns the viewport. The old document-height stage placed
 * all four touch controls behind the phone navigation. Keep the real canvas,
 * original six actions and explicit Leave; no server timing/physics changes.
 * At large text sizes the surface can scroll instead of clipping its controls. */
.room-page.is-racing141 .room-race {
    position:fixed;inset:0;z-index:150;max-width:none;margin:0;
    display:flex;flex-direction:column;gap:8px;box-sizing:border-box;
    padding:12px max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));
    overflow:auto;overscroll-behavior:contain;background:#f4f7fc;
}
.room-page.is-racing141 .room-race-hud {flex:none;min-height:48px;box-sizing:border-box;}
.room-page.is-racing141 .room-rule-hint {flex:none;min-height:0;margin:0;}
.room-page.is-racing141 .room-stage {
    flex:1 0 140px;min-height:140px;height:0;width:min(100%,740px);align-self:center;border-radius:20px;
}
.room-page.is-racing141 .room-controls.race-controls141 {
    flex:none;display:grid;grid-template-columns:minmax(0,1fr) auto;
    align-items:center;width:100%;max-width:740px;margin:0 auto;gap:12px;
}
.room-page.is-racing141 .rc141-auto {grid-column:1;grid-row:1;text-align:left;}
.room-page.is-racing141 .rc141-more {grid-column:2;grid-row:1;align-self:center;}
.room-page.is-racing141 .race-primary141 {grid-column:1/-1;grid-row:2;}
.room-page.is-racing141 .rc141-reversed {grid-column:1/-1;}
.room-page.is-racing141 .room-race>.actions {flex:none;margin:0;justify-content:flex-end;}
.room-page.is-racing141 .room-race>.actions .btn {min-height:48px;box-sizing:border-box;}
/* Keep the longer original instruction available for assistive reading.
 * The lobby/result still shows the full participant list and instructions. */
.room-page.is-racing141 .room-race-pack {
    flex:none;max-height:3em;margin:0;font-size:.8rem;line-height:1.5;
    overflow:auto;overflow-wrap:anywhere;
}
.room-page.is-racing141 .room-race-pack:focus-visible {outline:3px solid #315f78;outline-offset:2px;}
.room-page.is-racing141 .room-race>.small {
    position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;
}

/* The navigation tabs overlapped Pause on a 320px viewport. The active race
 * has its own pause/exit flow, so its header uses one compact utility row. */
body.race-running .shorts-header {height:72px;padding:12px 14px;align-items:center;}
body.race-running .shorts-header .shorts-tabs,body.race-running .shorts-header .shorts-section-name {display:none;}
body.race-running .shorts-header .shorts-brand {min-width:48px;min-height:48px;display:flex;align-items:center;}
body.race-running .shorts-header .shorts-tools {gap:12px;}
body.race-running .race-top {top:84px;left:16px;gap:8px;}
body.race-running .race-top .shorts-tool {width:48px;height:48px;min-width:48px;min-height:48px;}
body.race-running .lap-map {top:84px;right:16px;width:64px;height:64px;}
body.race-running .rule-pill {top:150px;max-width:calc(100% - 32px);}
body.race-running .rule-next {top:194px;}
body.race-running .running-rule-guide {top:210px;}
body.race-running .race-ghost-label {top:292px;left:16px;right:auto;max-width:calc(100% - 32px);}
body.race-running .draft-note {bottom:242px;}
@media(max-width:700px) {
    .race-controls.race-controls141 {left:14px;right:14px;}
    .race-controls141 .game-key-hint {display:none;}
    .race-controls141 .rc141-auto {font-size:.8125rem;}
    body.race-running .shorts-header .shorts-tool {min-width:48px;min-height:48px;}
}
@media(max-height:600px) and (orientation:landscape) {
    .race-controls.race-controls141 {left:20px;right:20px;bottom:12px;}
    .race-controls141 .rc141-auto {display:none;}
    .race-controls141 .rc141-side {max-width:132px;}
    .race-controls141 button {min-height:54px;padding:4px;}
    .race-controls141 .rc141-more {position:absolute;right:0;bottom:84px;}
    body.race-running .running-rule-guide {left:25%;right:25%;top:174px;}
}
@media(forced-colors:active) {
    .race-controls141 :is(button,summary),.race-controls141 button[data-input="4"],.race-controls141 button[data-room-mask="4"] {background:ButtonFace;color:ButtonText;border:1px solid ButtonText;box-shadow:none;}
    .race-controls141 :is(button,summary):focus-visible {outline-color:Highlight;}
    .race-controls141 .rc141-auto {color:CanvasText;background:Canvas;text-shadow:none;}
}
@media(prefers-reduced-motion:reduce) {.race-controls141 * {transition:none;animation:none;}}

/* The retained CC0 jump image is white. Keep it readable on the light button. */
.race-controls141 :is([data-input="4"],[data-room-mask="4"]) .mobile-control-mark img {filter:brightness(.22);}

/* Narrow live-game navigation keeps equal touch targets and safe side insets.
 * The keyboard icon retains its accessible name; desktop keeps the word. */
@media(max-width:400px) {
    body.race-running .shorts-header {gap:12px;}
    body.race-running .shorts-header .shorts-tools {flex:0 0 auto;}
    body.race-running .shorts-header .keyboard-trigger {
        flex:none;width:48px;min-width:48px;height:48px;padding:0;
    }
    body.race-running .shorts-header .keyboard-trigger>span {display:none;}
}

/* Shared utility targets also meet the48px contract on desktop. */
body.race-running .shorts-header :is(.shorts-tool,.keyboard-trigger) {
    min-width:48px;min-height:48px;
}

/* Keep the kart in view when the compact race is showing a fall or recovery cue. */
@media(max-width:600px) {
    .shorts-item.active:has([data-hud="cue"].show) .race-controls.race-controls141 .rc141-auto {visibility:hidden;}
}

/* The chase HUD and the controls already describe the run. On a narrow
 * portrait course, keep this repeated hint available to screen readers while
 * leaving the kart visible after the temporary recovery cue disappears. */
@media(max-width:480px) and (orientation:portrait) {
    .shorts-item.active:has(.compact-chase141) .race-controls.race-controls141 .rc141-auto {
        position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;
        overflow:hidden;clip-path:inset(50%);white-space:nowrap;
    }
}

.craft-assets141 {margin:24px 0;border:1px solid #ccdeda;border-radius:20px;background:#fff;overflow:hidden;}
.craft-assets141>summary {display:flex;align-items:center;gap:12px;min-height:64px;padding:12px 20px;box-sizing:border-box;cursor:pointer;list-style:none;color:#204d4b;font-weight:750;}
.craft-assets141>summary::-webkit-details-marker {display:none;}
.craft-assets141>summary>small {margin-left:auto;color:#5a6d72;font-weight:500;}
.craft-assets-body141 {padding:0 20px 20px;}
.craft-assets-body141 p {line-height:1.6;overflow-wrap:anywhere;}
.craft-assets-grid141 {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;}
.craft-assets-grid141>section {min-width:0;padding:20px;border:1px solid #dce6e3;border-radius:16px;background:#f8fbfa;}
.craft-assets-grid141 h2 {font-size:1.125rem;line-height:1.5;margin:0 0 12px;}
.craft-assets-grid141 .craft-assets-next141 {grid-column:1/-1;background:#fffaf0;}
.craft-base-looks141 {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0;}
.craft-base-looks141 figure {margin:0;text-align:center;min-width:0;}
.craft-base-looks141 img {display:block;max-width:100%;height:auto;margin:auto;object-fit:contain;}
.craft-base-looks141 figcaption {font-size:.8125rem;line-height:1.5;overflow-wrap:anywhere;}
.craft-assets141 .btn {min-height:48px;gap:8px;white-space:normal;}
.craft-assets141 summary:focus-visible {outline:3px solid #176f68;outline-offset:-4px;}
@media(max-width:640px) {.craft-assets-grid141{grid-template-columns:1fr;gap:12px}.craft-assets-grid141>section{padding:16px}.craft-assets-body141{padding:0 12px 12px}.craft-base-looks141{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(forced-colors:active) {.craft-assets141,.craft-assets-grid141>section{background:Canvas;color:CanvasText;border-color:CanvasText}.craft-assets141 summary:focus-visible{outline-color:Highlight}}
