:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ink: #1b221e;
  --white: #f4f1e7;
  --muted: #c1c6ba;
  --accent: #ffd0a8;
  --sand: #dcc4a3;
  --line: #d8e3d434;
  --panel: #231e2df2;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: var(--ink); color: var(--white); }
body { overscroll-behavior: none; }
button { font: inherit; }
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.symbol-sheet { position: absolute; width: 0; height: 0; pointer-events: none; }
.game { position: relative; width: 100%; height: 100%; isolation: isolate; overflow: hidden; touch-action: none; }
#world, .vignette { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
@media (pointer: fine) {
  #world { cursor: grab; }
  .game.looking #world { cursor: grabbing; }
}
.vignette { pointer-events: none; background: linear-gradient(180deg, #171e1b8f 0, transparent 17%, transparent 79%, #171d1bd1 100%); }
.hud-top, .hud-bottom { position: absolute; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding-inline: clamp(18px, 2.3vw, 36px); pointer-events: none; }
.hud-top { top: 0; padding-block: max(20px, env(safe-area-inset-top)) 15px; }
.hud-bottom { bottom: 0; padding-block: 15px max(21px, env(safe-area-inset-bottom)); }
.brand { display: flex; gap: 12px; align-items: center; white-space: nowrap; }
.brand-menu { pointer-events: auto; padding: 0; border: 0; color: inherit; text-align: left; background: transparent; cursor: pointer; }
.brand-menu .brand-title, .brand-menu .brand-sub { display: block; }
.brand-menu .brand-sub { color: var(--accent); }
.brand-menu:hover .brand-mark { border-color: var(--accent); }
.brand-mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 11px; border: 1px solid var(--line); color: var(--white); background: linear-gradient(145deg, #a94648, #462637); box-shadow: 0 3px 20px #ff68534a; }
.brand-mark svg, .loading-mark svg { width: 25px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round; }
.brand-title { font-size: 16px; font-weight: 760; line-height: 1.1; letter-spacing: .09em; }
.brand-sub { margin-top: 5px; font: 650 9px/1 var(--mono); letter-spacing: .23em; color: var(--muted); }
.open-pill { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 100px; padding: 9px 13px; background: #292338e8; color: var(--white); font: 650 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; white-space: nowrap; }
.open-pill > span, .led { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.toolbar { display: flex; gap: 7px; pointer-events: auto; }
.icon-button { display: grid; place-items: center; width: 39px; height: 39px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: #2c2638e8; color: var(--white); cursor: pointer; transition: color .16s, background .16s, border-color .16s; }
.icon-button:hover, .icon-button[aria-pressed=true] { color: #e0eedf; border-color: #b8d1bf8c; background: #45564b; }
.icon-button svg, .zone svg, .collection-button svg, .objective svg, .primary-button svg, .touch-controls svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.objective { position: absolute; top: clamp(93px, 14vh, 124px); left: clamp(18px, 2.3vw, 36px); width: clamp(155px, 16vw, 229px); pointer-events: none; padding: 14px 14px 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); box-shadow: 0 8px 22px #19201b47; }
.objective-top { display: flex; align-items: center; gap: 6px; font: 700 9px/1 var(--mono); color: var(--accent); letter-spacing: .14em; }
.objective-top svg { width: 13px; height: 13px; stroke-width: 2; }
.objective-count { margin-left: auto; color: var(--muted); font-weight: 500; letter-spacing: .04em; white-space: nowrap; }
.objective h1 { font-size: clamp(16px, 1.62vw, 23px); line-height: 1.1; margin: 10px 0 5px; letter-spacing: -.037em; }
.objective p { color: #d5d8cd; font-size: 12px; line-height: 1.45; margin: 0; }
.objective-bars { margin-top: 13px; display: flex; gap: 5px; }
.objective-bars i { width: 16px; height: 2px; border-radius: 2px; background: #606a62; }
.objective-bars i.active { background: var(--accent); }
.objective-bars i.done { background: var(--sand); }
.zone { display: flex; align-items: center; gap: 9px; min-width: 120px; }
.zone svg { color: var(--accent); }
.zone strong { display: block; color: var(--white); font-size: 13px; font-weight: 650; line-height: 1; margin-top: 6px; white-space: nowrap; }
.storefront-time { display: block; margin-top: 5px; color: var(--sand); font: 650 9px/1.1 var(--mono); white-space: nowrap; }
.collection-button { pointer-events: auto; display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); color: var(--white); text-align: left; cursor: pointer; }
.collection-button:hover { border-color: #b8d1bf8c; background: #394a40; }
.collection-button svg { color: var(--sand); flex: none; }
.collection-button strong { display: block; font: 700 12px/1.15 var(--mono); white-space: nowrap; }
.collection-button span span { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.1; white-space: nowrap; }
.micro { display: block; color: var(--muted); font: 650 9px/1 var(--mono); letter-spacing: .15em; white-space: nowrap; }
.controls { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); background: var(--panel); padding: 8px 12px; border-radius: 11px; box-shadow: 0 5px 20px #151d186f; }
.control-item { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 600; color: #d5d8cd; white-space: nowrap; }
.keys { display: inline-flex; gap: 3px; }
kbd { display: inline-grid; place-items: center; min-width: 22px; min-height: 23px; padding: 2px 4px; border: 1px solid #adb5a759; border-bottom: 2px solid #adb5a770; border-radius: 5px; background: #38453d; color: var(--white); font: 700 10px/1 var(--mono); }
.control-divider { height: 19px; width: 1px; background: var(--line); }
.waypoint { position: absolute; display: grid; place-items: center; gap: 7px; transform: translate(-50%, -65%); z-index: 1; color: var(--accent); padding: 3px 7px; border: 0; background: transparent; cursor: pointer; }
.waypoint-gem { display: block; width: 9px; height: 9px; transform: rotate(45deg); border: 1px solid #e9eee0; background: var(--accent); border-radius: 2px; box-shadow: 0 2px 7px #16221c92; }
.waypoint-label { display: flex; align-items: center; gap: 7px; padding: 4px 9px 4px 4px; border: 1px solid #bed1c287; border-radius: 7px; background: #2c2538f4; color: var(--white); font-size: 11px; font-weight: 700; white-space: nowrap; box-shadow: 0 3px 10px #151e19a0; }
.waypoint kbd { min-height: 18px; min-width: 18px; background: var(--accent); border-color: #e9eee0; color: #25352d; }
.waypoint.hint { cursor: default; pointer-events: none; }
.waypoint.hint .waypoint-label { padding: 5px 8px; border-color: var(--line); font: 700 9px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.waypoint.hint kbd { display: none; }
.toast { position: absolute; left: 50%; bottom: 83px; transform: translateX(-50%); background: var(--panel); color: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 11px 15px; font-size: 13px; white-space: nowrap; z-index: 2; }
.load { z-index: 4; position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; background: radial-gradient(ellipse at 50% 45%, #3c4940, var(--ink) 72%); color: var(--muted); padding: 24px; text-align: center; }
.load p { margin-top: 15px; font: 650 12px/1.5 var(--mono); }
.loading-mark { display: grid; place-items: center; color: var(--accent); width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 14px; background: #35463c; }
.touch-controls { display: none; }
.dialog { width: min(460px, calc(100vw - 26px)); max-height: calc(100dvh - 24px); margin: auto; overflow: auto; color: var(--white); background: linear-gradient(145deg, #3b3046, #241f30 72%); border: 1px solid #a5b9aa63; border-radius: 16px; padding: 20px 23px 23px; box-shadow: 0 24px 86px #111915ca; }
.online-button.connected { color: #ffd0a8; border-color: #ffac7b; box-shadow: 0 0 12px #ff88644d; }
.online-dialog input { display: block; width: 100%; margin: 8px 0 12px; border: 1px solid var(--line); border-radius: 8px; padding: 10px; color: var(--white); background: #191722; font: 14px var(--mono); }
.online-dialog .primary-button { width: auto; }
.room-form { margin-top: 20px; }
.room-actions { display: flex; gap: 8px; flex-wrap: wrap; }
#room-status:empty { display: none; }
.room-tag { position: absolute; pointer-events: none; z-index: 1; transform: translate(-50%, -100%); white-space: nowrap; padding: 4px 7px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--accent); font: 700 10px var(--mono); }
.dialog::backdrop { background: #151e19a1; backdrop-filter: blur(5px); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; }
.dialog-head .micro { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); }
.dialog-head .icon-button { width: 32px; height: 32px; }
.dialog h2 { margin: 4px 0 8px; font-size: clamp(25px, 6vw, 34px); line-height: 1.06; letter-spacing: -.05em; }
.dialog p { margin: 0 0 15px; color: #d6dacd; font-size: 13px; line-height: 1.5; }
.help-controls { margin: 8px 0 18px; }
.help-controls > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding: 10px 0; font-size: 13px; }
.help-controls dd { margin: 0; display: flex; align-items: center; gap: 4px; }
.help-controls dd span { color: var(--muted); font-size: 11px; margin-left: 3px; }
.help-controls dd > span:only-child { text-align: right; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 11px; min-height: 36px; border: 1px solid #e3eadd; border-radius: 7px; color: #27362e; background: #ccddce; font-size: 12px; font-weight: 760; cursor: pointer; white-space: nowrap; }
.primary-button:hover { background: #e2ecde; }
.primary-button:disabled { background: #46594c; border-color: #6f8777; color: #e1e8de; cursor: default; }
.primary-button svg { width: 16px; height: 16px; }
.case-dialog { width: min(596px, calc(100vw - 26px)); overscroll-behavior: contain; touch-action: pan-y; }
.case-detail { display: grid; grid-template-columns: clamp(104px, min(34vw, 47dvh), 216px) minmax(0, 1fr); align-items: start; gap: clamp(14px, 4vw, 24px); margin-top: 12px; }
.case-art { position: relative; aspect-ratio: 216 / 340; border-radius: 5px; background-repeat: no-repeat; box-shadow: 0 0 0 1px var(--line), 0 6px 22px #14201a75; }
.case-art::after { content: attr(data-rarity-mark); position: absolute; top: 6px; right: 6px; min-width: 31px; padding: 3px 5px; border: 1px solid #26322b; border-radius: 3px; background: var(--case-rarity, var(--accent)); color: #202c24; font: 800 10px/1 var(--mono); text-align: center; }
.case-copy { padding-top: 8px; }
.case-copy .micro { color: var(--accent); white-space: normal; line-height: 1.3; text-transform: uppercase; }
.case-copy h2 { margin: 8px 0 10px; font-size: clamp(20px, 5vw, 36px); overflow-wrap: break-word; }
.case-rarity-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 9px; margin: 0 0 11px; }
.case-rarity { padding: 5px 7px; border-radius: 4px; background: var(--case-rarity, var(--accent)); color: #202c24; font: 800 10px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.case-stock { color: var(--muted); font-size: 11px; line-height: 1.3; }
.case-faces { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: #1d2721; }
.case-faces button { min-height: 32px; padding: 5px 11px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 700; cursor: pointer; }
.case-faces button[aria-pressed=true] { color: #27362e; background: #ccddce; }
.case-buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px 10px; margin-top: 13px; padding-top: 11px; border-top: 1px solid var(--line); }
.case-buy strong { display: block; margin-top: 5px; color: var(--sand); font: 700 16px/1 var(--mono); white-space: nowrap; }
.case-copy .case-basket-note { min-height: 14px; margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.checkout-dialog, .collection-dialog { touch-action: pan-y; overscroll-behavior: contain; }
.checkout-dialog { width: min(510px, calc(100vw - 26px)); }
.basket-items { margin: 0 0 12px; padding: 0; list-style: none; }
.basket-items li { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.basket-items strong { display: block; font-size: 13px; }
.basket-items span { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.basket-items b { color: var(--sand); font: 700 11px/1 var(--mono); white-space: nowrap; }
.basket-remove { padding: 6px 7px; border: 1px solid var(--line); border-radius: 6px; background: #243028; color: var(--muted); font-size: 10px; cursor: pointer; }
.basket-remove:hover { color: var(--white); border-color: #b8d1bf8c; }
.checkout-totals { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin: 0 0 12px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #1e2922; }
.checkout-totals strong { display: block; margin-top: 6px; color: var(--sand); font: 700 18px/1 var(--mono); }
.checkout-totals > span + span strong { color: var(--accent); }
.checkout-dialog .checkout-status { color: var(--sand); font-size: 11px; }
.checkout-status:empty { display: none; }
.collection-dialog { width: min(728px, calc(100vw - 26px)); }
.collection-progress { height: 5px; overflow: hidden; border-radius: 5px; background: #526259; }
#collection-fill { height: 100%; width: 0; background: var(--accent); }
.collection-rarities { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 16px; padding: 0; list-style: none; }
.collection-tier { padding: 5px 6px; border: 1px solid var(--line); border-left: 3px solid var(--tier-color); border-radius: 4px; color: var(--white); background: #26342b; font: 650 10px/1.2 var(--mono); }
.collection-empty { padding: 14px; border: 1px dashed #839d8a; border-radius: 8px; background: #26342b; }
.collection-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(109px,1fr)); gap: 10px; padding: 0; margin: 0; list-style: none; }
.collection-grid li { min-width: 0; padding: 7px; border: 1px solid var(--line); border-radius: 7px; background: #222e27; }
.collection-art { display: block; aspect-ratio: 216/340; border-radius: 3px; background-repeat: no-repeat; }
.collection-grid strong, .collection-rank { display: block; margin-top: 6px; font-size: 11px; line-height: 1.2; }
.collection-rank { font-size: 10px; }
.arcade-dialog { width: min(470px, calc(100vw - 26px)); }
.arcade-dialog h2 { color: var(--white); font: 820 clamp(30px, 8vw, 46px)/1.04 system-ui, sans-serif; letter-spacing: -.056em; }
.arcade-dialog h2 em { color: var(--accent); font-style: normal; }
.arcade-stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; padding: 11px 5px; border: 1px solid var(--line); border-radius: 9px; background: #1d2721; }
.arcade-stats div + div { border-left: 1px solid var(--line); }
.arcade-stats strong { display: block; color: var(--accent); margin-top: 4px; font: 700 22px/1 var(--mono); }
.arcade-stats div:nth-child(2) strong { color: var(--white); }
.arcade-stats div:nth-child(3) strong { color: var(--sand); }
.time-track { height: 3px; margin: 10px 0 12px; border-radius: 3px; background: #546258; overflow: hidden; }
#time-fill { width: 100%; height: 100%; background: var(--accent); transform-origin: left center; }
.arcade-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.tile { display: grid; place-items: center; height: clamp(48px, 9vh, 71px); border: 1px solid #5b6c60; border-radius: 8px; background: #27342b; color: #bec9bd; font: 650 12px/1 var(--mono); cursor: pointer; touch-action: manipulation; }
.tile:disabled { cursor: default; opacity: .75; }
.tile.target { border-color: #edf4e9; background: #cfe3d1; color: #23392b; box-shadow: inset 0 0 0 3px #e5efe3; font-size: 17px; }
.tile.miss { border-color: #dcaa90; }
.arcade-foot { margin-top: 13px; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 36px; }
#arcade-tip { font-size: 11px; color: var(--muted); }
.signal-dialog h2 em { color: var(--sand); }
.signal-stats { grid-template-columns: repeat(2,1fr); }
.signal-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; margin-top: 11px; }
.signal-pad { --signal: #b8cc9f; display: grid; grid-template-columns: 1fr auto; align-items: center; justify-items: center; gap: 8px; height: clamp(48px, 12dvh, 82px); padding: 8px 12px; border: 1px solid #64756a; border-radius: 8px; background: #28342c; color: var(--signal); font-size: 27px; cursor: pointer; touch-action: manipulation; }
.signal-pad:nth-child(2) { --signal: #dec28c; }
.signal-pad:nth-child(3) { --signal: #a4c5d3; }
.signal-pad:nth-child(4) { --signal: #d9a9ac; }
.signal-pad:disabled { cursor: default; }
.signal-pad.lit { background: var(--signal); border-color: #f2efe4; color: #202a24; }
.signal-pad.lit kbd { background: #323d35; }
#signal-status { color: var(--muted); font-size: 11px; }
@media (max-width: 720px) {
  .hud-top, .hud-bottom { padding-inline: 14px; }
  .hud-top { padding-top: max(12px, env(safe-area-inset-top)); }
  .hud-bottom { padding-bottom: max(13px, env(safe-area-inset-bottom)); }
  .brand { gap: 8px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 10px; }
  .brand-mark svg { width: 21px; height: 20px; }
  .brand-title { font-size: 12px; }
  .brand-sub { font-size: 8px; letter-spacing: .17em; margin-top: 3px; }
  .open-pill { display: none; }
  .icon-button { width: 34px; height: 34px; }
  .objective { top: 64px; left: 14px; padding: 10px 11px; width: 173px; }
  .objective h1 { margin: 6px 0 3px; }
  .objective p { font-size: 11px; }
  .objective-bars { margin-top: 8px; }
  .zone { min-width: 0; gap: 5px; }
  .zone strong { font-size: 11px; }
  .zone svg, .collection-button svg { width: 15px; height: 15px; }
  .collection-button { padding: 6px 8px; }
  .micro { font-size: 8px; }
}
@media (max-width: 550px), (any-pointer: coarse) {
  .controls { display: none; }
  .touch-controls { display: block; position: absolute; inset: 0; pointer-events: none; }
  .move-stick { position: absolute; left: max(64px, calc(env(safe-area-inset-left) + 51px)); bottom: max(64px, calc(env(safe-area-inset-bottom) + 54px)); width: 88px; height: 88px; transform: translateX(-50%); border-radius: 50%; border: 1px solid #c1d0bf86; background: #2b372fce; box-shadow: 0 4px 17px #151f19a3; }
  .move-stick::before { content: ''; position: absolute; inset: 11px; border: 1px dashed #bbceba56; border-radius: 50%; }
  .move-stick.engaged { left: var(--stick-left); top: var(--stick-top); bottom: auto; transform: translate(-50%, -50%); border-color: #d0e2d1b7; }
  .stick-thumb { position: absolute; left: calc(50% - 19px); top: calc(50% - 19px); width: 38px; height: 38px; border: 1px solid #dce7d9; border-radius: 50%; transform: translate(var(--stick-x, 0px), var(--stick-y, 0px)); background: linear-gradient(145deg, #b5cbb8, #819c8a); box-shadow: 0 2px 8px #1c2b227f; }
  .stick-thumb::after { content: ''; position: absolute; inset: 11px; border: 1px solid #ecf2e6a6; border-radius: 50%; }
  .stick-label, .look-hint { font: 700 9px/1 var(--mono); letter-spacing: .10em; color: var(--white); text-transform: uppercase; text-shadow: 0 2px 8px #161f19; white-space: nowrap; }
  .stick-label { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); }
  .move-stick.engaged .stick-label { visibility: hidden; }
  .look-hint { position: absolute; display: flex; align-items: center; gap: 5px; right: max(16px, env(safe-area-inset-right)); bottom: max(125px, calc(env(safe-area-inset-bottom) + 112px)); }
  .look-hint svg { width: 15px; height: 15px; color: var(--accent); }
  .game.looking .look-hint { color: var(--accent); }
  .touch-action { position: absolute; right: max(15px, env(safe-area-inset-right)); bottom: max(62px, calc(env(safe-area-inset-bottom) + 51px)); pointer-events: auto; touch-action: none; user-select: none; display: grid; place-items: center; gap: 3px; padding: 8px; min-width: 65px; min-height: 53px; border: 1px solid #c8dbcc8c; border-radius: 11px; color: var(--white); background: #2a3830ed; box-shadow: 0 3px 12px #1620199e; font-size: 10px; cursor: pointer; }
  .touch-action:active { background: var(--accent); color: #26382c; }
  .touch-action:disabled { opacity: .48; cursor: default; }
  .toast { bottom: 150px; }
}
@media (max-width: 380px) {
  .case-dialog { padding-inline: 13px; }
}
@media (max-height: 500px) {
  .objective { top: 62px; }
  .objective p { display: none; }
  .hud-top { padding-top: 9px; }
  .hud-bottom { padding-bottom: 10px; }
  .dialog { padding-top: 12px; padding-bottom: 13px; }
  .tile { height: 42px; }
  .signal-pad { height: 44px; }
}
.start-menu { position: fixed; inset: 0; width: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; overflow: auto; padding: 0; border: 0; color: #fff3e6; background: transparent; }
.start-menu::backdrop { background: linear-gradient(90deg,#0b0813 0%,#100b19f7 24%,#160d1d92 52%,#19112116 80%), linear-gradient(0deg,#0a0713eb,transparent 44%,transparent 74%,#100a1b82); }
.game:has(+ .start-menu[open]) :is(.hud-top,.hud-bottom,.objective,.touch-controls,.waypoint) { visibility: hidden; }
.menu-window { display: grid; grid-template-rows: auto 1fr auto; min-height: 100%; padding: clamp(20px,4.5vh,56px) clamp(23px,6vw,110px); }
.menu-header, .menu-hints { display: flex; align-items: center; justify-content: space-between; gap: 14px; color: #e6d2e0; font: 750 10px var(--mono); letter-spacing: .16em; }
.menu-header i { display: inline-block; width: 7px; height: 7px; margin-right: 7px; background: #ff846c; border-radius: 50%; box-shadow: 0 0 15px #ff6552; }
.menu-header > span:last-child { text-align: right; }
.menu-window > section { align-self: center; width: min(510px,46vw); margin: 24px 0; }
.menu-kicker { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; color: #ffa98b; font: 750 10px var(--mono); letter-spacing: .25em; }
.menu-kicker::before { width: 24px; height: 2px; background: #ff896c; box-shadow: 0 0 9px #ff6552; content: ''; }
.start-menu h1, .start-menu h2 { margin: 0; line-height: .86; letter-spacing: -.065em; }
.start-menu h1 { font-size: clamp(39px,7.1vw,108px); font-weight: 950; white-space: nowrap; text-shadow: 0 2px 30px #ff7f5342; }
.start-menu h1 span { display: block; margin-top: 10px; color: #ffad88; font-size: .47em; font-style: italic; letter-spacing: .11em; text-shadow: 0 0 21px #ff72594d; }
.start-menu h2 { font-size: clamp(32px,5vw,64px); line-height: .95; }
.start-menu p { margin: 14px 0 18px; color: #e4cbd5; font-size: 13px; line-height: 1.45; }
.menu-list { display: grid; gap: 4px; margin-top: clamp(17px,4vh,40px); }
.menu-choice { display: flex; align-items: center; gap: 13px; width: 100%; min-height: clamp(39px,6.3vh,60px); padding: 7px 13px; border: 0; border-left: 3px solid #dab0c046; border-radius: 0; color: #fff2e9; background: linear-gradient(90deg,#2b1d32c7,#25192c16); text-align: left; font-size: clamp(15px,1.8vw,23px); font-weight: 780; cursor: pointer; }
.menu-choice small, .menu-choice strong { color: #ffc09f; font: 750 11px var(--mono); }
.menu-choice strong, .menu-choice svg { margin-left: auto; }
.menu-choice svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; }
.menu-choice.menu-play { border-color: #ff9f84; color: #fff4e5; background: linear-gradient(90deg,#702f43d4,#3c223868); }
.menu-choice:hover, .menu-choice:focus-visible { border-color: #ffd5b8; color: #24111a; background: linear-gradient(95deg,#ff8f74,#ffd0ac); outline: none; box-shadow: 0 0 22px #ff775136; }
.menu-choice:hover :is(small,strong), .menu-choice:focus-visible :is(small,strong) { color: #5d2a32; }
.menu-choice:disabled { opacity: .55; cursor: default; }
.menu-hints { justify-content: flex-start; gap: 18px; letter-spacing: .08em; }
.menu-hints kbd { min-height: 20px; background: #332339; border-color: #b995a96b; }
.menu-small, .look-swatch { border: 1px solid #e5b5af46; border-radius: 6px; color: #fff1e1; background: #312339; cursor: pointer; }
.menu-small:hover, .look-swatch:hover { background: #51344e; border-color: #ffc39d; }
.menu-small.menu-play { color: #23121a; background: #ffb291; border-color: #ffd3b2; }
.look-swatches { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; margin-top: 10px; }
.look-swatch { min-height: 37px; padding: 5px 2px; font-size: 11px; }
.look-swatch::before { display: inline-block; vertical-align: middle; width: 9px; height: 9px; margin-right: 4px; border-radius: 50%; background: var(--swatch); border: 1px solid #fff5; content: ''; }
.look-swatch[aria-pressed=true] { border-color: #ffc39d; box-shadow: inset 0 0 0 1px #ffc39d; }
.menu-footer { display: flex; justify-content: space-between; gap: 8px; margin-top: 16px; }
.menu-small { min-height: 40px; padding: 7px 13px; font-size: 13px; font-weight: 750; }
@media (max-width: 650px), (orientation: portrait) {
  .start-menu::backdrop { background: linear-gradient(0deg,#0c0815 0%,#110b1aee 31%,#130e1e38 69%,#100a1b66); }
  .menu-window { padding: max(20px, env(safe-area-inset-top)) 23px max(20px, env(safe-area-inset-bottom)); }
  .menu-window > section { align-self: end; width: min(100%,450px); }
  .start-menu h1 { font-size: clamp(35px,11vw,70px); }
  .menu-choice { min-height: 46px; }
  .menu-hints { display: none; }
}

.wardrobe-open::backdrop { background: linear-gradient(90deg,#0d0917 0%,#130c1af7 32%,#2d15382b 69%,#130d2438), linear-gradient(0deg,#130920e8,transparent 55%); }
.menu-window > .wardrobe-panel { width: min(490px,47vw); }
.wardrobe-group { min-width: 0; border: 0; border-top: 1px solid #e5b5af46; padding: 8px 0 11px; margin: 0; }
.wardrobe-group legend, .item-wallet span, .wardrobe-stage-label, .wardrobe-rotate span { color: #ffb398; font: 750 10px var(--mono); letter-spacing: .13em; }
.wardrobe-group .look-swatches { margin: 0; }
.wardrobe-group .look-swatch { min-height: 33px; }
.look-swatch { overflow-wrap: anywhere; }
.wardrobe-stage { display: none; }
.wardrobe-open .wardrobe-stage { display: flex; position: absolute; align-items: center; justify-content: space-between; flex-direction: column; inset: 11% 7% 7% 56%; pointer-events: none; }
.wardrobe-stage-label { align-self: flex-start; padding: 6px 10px; border: 1px solid #edb3a360; border-radius: 3px; background: #21132edc; }
.wardrobe-rotate { display: flex; align-items: center; gap: 12px; padding: 5px; background: #21132edc; border-radius: 7px; pointer-events: auto; }
.wardrobe-rotate button { font-size: 18px; min-width: 40px; }
.item-wallet, .item-detail { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid #e5b5af46; background: #24172be8; }
.item-wallet strong, .item-detail > strong { color: #ffd29b; font: 800 13px var(--mono); white-space: nowrap; }
.item-swatches { grid-template-columns: repeat(3,minmax(0,1fr)); margin: 10px 0; }
.item-swatches button { min-height: 46px; }
.item-detail h3 { margin: 2px 0 0; font-size: clamp(18px,2.5vw,28px); }
.item-detail .menu-kicker { margin: 0; letter-spacing: .08em; }
.item-detail .menu-kicker::before { display: none; }
#item-status:empty { display: none; }
#item-action:disabled { opacity: .55; cursor: default; }
@media (max-width: 650px), (orientation: portrait) {
  .wardrobe-open::backdrop { background: linear-gradient(0deg,#100919 2%,#150d21f5 43%,#32194545 75%,#21123677); }
  .wardrobe-open .menu-window { grid-template-rows: auto minmax(210px,39dvh) 1fr; }
  .menu-window > .wardrobe-panel { grid-row: 3; width: min(100%,490px); margin: 10px 0 0; }
  .wardrobe-open .wardrobe-stage { position: relative; grid-row: 2; inset: auto; padding: 9px 0; }
  .wardrobe-group { padding: 5px 0 8px; }
  .wardrobe-group .look-swatch { min-height: 31px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
