/* Illustrated lounge menu. All controls use the same silver/ivory/violet art. */
html #menu-screen{--menu-ink:#f4ecdc;--menu-muted:#cbbdd0;padding:25px max(18px,env(safe-area-inset-right)) 30px max(18px,env(safe-area-inset-left))}
html #menu-screen .menu-copy{width:min(100%,510px);max-height:none;text-align:center}
html #menu-screen .eyebrow{display:flex!important;visibility:visible!important;justify-content:center;gap:10px;flex:none;margin:0 0 8px;color:#dfcfb6;font:italic 14px/1.4 'Palatino Linotype','Book Antiqua',Palatino,Georgia,serif;letter-spacing:.06em;text-transform:none;text-shadow:0 2px 6px #08040d}
html #menu-screen .eyebrow::before{width:24px;background:linear-gradient(90deg,transparent,#ddcab0);box-shadow:none}
html #menu-screen .eyebrow::after{content:'';width:24px;height:1px;background:linear-gradient(90deg,#ddcab0,transparent)}
html #menu-screen .menu-copy h1{display:flex;justify-content:center;align-items:baseline;gap:.2em;margin:0 0 20px!important;font:500 58px/1.02 'Palatino Linotype','Book Antiqua',Palatino,Georgia,serif!important;letter-spacing:.055em;color:#f3e4c7;text-shadow:0 2px 0 #6d556b,0 5px 18px #08040d}
html #menu-screen .title-accent{color:inherit;text-shadow:inherit}
html #menu-screen .menu-panel{display:flex;flex-direction:column;align-items:center;gap:15px}
html #menu-screen .player-strip{order:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);align-items:stretch;gap:12px;width:min(100%,410px);height:auto;min-height:68px;margin:0;padding:0;border:0;background:transparent;box-shadow:none;text-align:start}
html #menu-screen .player-level,html #menu-screen .menu-wallet{min-width:0;padding:10px 12px;border:1px solid #c9b7a440;border-radius:13px;background:linear-gradient(145deg,#30233aeb,#1d1825eb);box-shadow:inset 0 1px #fff0ce14,0 5px 14px #08030e3d}
html #menu-screen .player-level{display:grid;grid-template-columns:minmax(0,1fr) auto;align-content:center;gap:6px 6px;flex:none}
html #menu-screen #player-level{color:var(--menu-ink);font:750 14px/1.25 'Segoe UI Variable','Avenir Next','Segoe UI',sans-serif;letter-spacing:.025em;white-space:nowrap;text-shadow:0 1px 3px #08040d}
html #menu-screen #player-xp{grid-column:2;grid-row:1;align-self:center;margin:0;color:#d3c6d9;font:550 10px/1.3 'Segoe UI',sans-serif;font-variant-numeric:tabular-nums;white-space:nowrap}
html #menu-screen .xp-track{grid-column:1/-1;grid-row:2;width:100%;height:8px;padding:1px;border:1px solid #c1a9be44;border-radius:8px;background:#110c1d;overflow:hidden;box-shadow:inset 0 1px 3px #0009}
html #menu-screen .xp-fill{height:100%;border-radius:6px;background:linear-gradient(90deg,#7e678f,#b49cbd 65%,#e2d0aa);box-shadow:0 0 5px #ba9acf40}
html #menu-screen .menu-wallet{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;text-align:center}
.menu-wallet-label{color:#d6c5a7;font:700 10px/1.2 'Segoe UI',sans-serif;letter-spacing:.13em}
html #menu-screen #player-coins{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;max-width:100%;min-width:0;color:#f5e6c8;font:750 21px/1.2 'Segoe UI Variable','Avenir Next','Segoe UI',sans-serif;font-variant-numeric:tabular-nums;letter-spacing:-.03em;white-space:nowrap;overflow:visible;text-overflow:clip}
html #menu-screen #player-coins .currency-coin{width:27px;height:27px}
html #menu-screen #player-coins.is-long-balance{font-size:14px;letter-spacing:-.025em}
html #menu-screen #player-coins.is-long-balance .currency-coin{width:21px;height:21px}
html #menu-screen #play-button{position:relative;order:1;display:grid;place-items:center;flex:none;width:164px;min-width:164px;min-height:152px!important;height:152px!important;margin:0!important;padding:0;gap:0;border:0!important;border-radius:0;background:transparent!important;color:#eadfc8;box-shadow:none!important;filter:none;cursor:pointer;isolation:isolate}
html #menu-screen #play-button .menu-play-art{position:relative;z-index:1;display:block;width:164px;height:164px;max-width:none;object-fit:contain;filter:drop-shadow(0 9px 14px #05020780);pointer-events:none}
.menu-play-fallback{position:absolute;z-index:0;left:50%;top:50%;transform:translate(-50%,-50%);width:76px;height:76px;pointer-events:none}
.menu-play-ready .menu-play-fallback{display:none}
html #menu-screen .resume-game{display:none!important}
html #menu-screen .difficulty-picker{order:2;flex:none;min-height:0;width:min(100%,306px);margin:18px 0 0!important}
.difficulty-slider-wrap{width:100%;padding:0 8px}
html #menu-screen .difficulty-slider{--difficulty-position:0%;display:block;width:100%;height:40px;margin:0;appearance:none;-webkit-appearance:none;background:transparent;cursor:pointer;touch-action:pan-y}
.difficulty-slider::-webkit-slider-runnable-track{height:10px;border:1px solid #d1bec363;border-radius:9px;background:linear-gradient(to right,#a594b3 0 var(--difficulty-position),#2b2036 var(--difficulty-position) 100%);box-shadow:inset 0 2px 4px #08020f99,0 1px 0 #e3d4bb19}
.difficulty-slider::-moz-range-track{height:8px;border:1px solid #d1bec363;border-radius:9px;background:#2b2036;box-shadow:inset 0 2px 4px #08020f99}
.difficulty-slider::-moz-range-progress{height:8px;border-radius:9px;background:#a594b3}
.difficulty-slider::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:30px;height:30px;margin-top:-11px;border:1px solid #f8edda;border-radius:50%;background:radial-gradient(circle,#725280 0 4px,transparent 4.7px),radial-gradient(circle at 33% 22%,#fff5da,#d4c6b5 48%,#8c7e83);box-shadow:inset 0 0 0 3px #5c455f,0 3px 7px #08030ca6}
.difficulty-slider::-moz-range-thumb{width:28px;height:28px;border:1px solid #f8edda;border-radius:50%;background:radial-gradient(circle,#725280 0 4px,transparent 4.7px),radial-gradient(circle at 33% 22%,#fff5da,#d4c6b5 48%,#8c7e83);box-shadow:inset 0 0 0 3px #5c455f,0 3px 7px #08030ca6}
.difficulty-slider:focus-visible{outline:2px solid #eee0bd;outline-offset:4px;border-radius:12px}
.difficulty-slider-labels{display:flex;justify-content:space-between;gap:8px;margin:0 14px;color:#c9bacd;text-shadow:0 2px 4px #08040f;font:650 12px/1.4 'Segoe UI Variable','Avenir Next','Segoe UI',sans-serif;letter-spacing:.04em}
.difficulty-slider-labels label{position:relative;cursor:pointer}.difficulty-slider-labels .is-selected{color:#fff0d5;font-weight:800}
html #menu-screen .menu-shortcuts{order:3;display:grid;width:100%;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px 10px!important;margin:0!important;padding-top:6px}
html #menu-screen .menu-panel button.menu-art-action{order:initial;display:grid!important;grid-template-rows:76px auto;place-items:center;align-content:start;width:100%;min-width:0;min-height:104px!important;height:auto!important;margin:0!important;padding:3px 2px!important;gap:5px!important;border:0!important;border-radius:12px;background:transparent!important;box-shadow:none!important;color:var(--menu-ink);text-align:center;text-shadow:0 2px 5px #08030d}
html #menu-screen .menu-art-action .menu-action-art{display:block;width:76px;height:76px;max-width:100%;object-fit:contain;filter:drop-shadow(0 5px 8px #06030c88);pointer-events:none}
html #menu-screen .menu-art-action .menu-action-label{display:block!important;width:100%;min-width:0;white-space:normal!important;overflow:visible!important;text-overflow:clip;overflow-wrap:normal;font:700 12px/1.3 'Segoe UI Variable','Avenir Next','Segoe UI',sans-serif!important;letter-spacing:.035em;hyphens:none}
html #menu-screen .menu-art-action .menu-action-legacy{display:none!important}
html #menu-screen .menu-panel button{transition:transform .18s,filter .18s;touch-action:manipulation}
@media(hover:hover){html #menu-screen .menu-panel button:not(:disabled):hover{filter:brightness(1.13);transform:translateY(-3px)}}
html #menu-screen .menu-panel button:not(:disabled):active{filter:brightness(.97);transform:translateY(1px) scale(.97)}
html #menu-screen .menu-panel button:focus-visible{outline:2px solid #f3e1bd;outline-offset:4px;border-radius:12px}
@media(max-width:760px){html #menu-screen{padding-top:max(19px,env(safe-area-inset-top));padding-bottom:max(22px,env(safe-area-inset-bottom))}html #menu-screen .menu-shell{width:min(100%,440px)}html #menu-screen .menu-copy{width:100%;max-height:none}html #menu-screen .menu-copy h1{font-size:45px!important;margin-bottom:16px!important}html #menu-screen .menu-panel{gap:12px}html #menu-screen #play-button{width:138px;min-width:138px;min-height:130px!important;height:130px!important}html #menu-screen #play-button .menu-play-art{width:140px;height:140px}html #menu-screen .menu-panel button.menu-art-action{grid-template-rows:60px auto;min-height:88px!important;gap:5px!important}html #menu-screen .menu-art-action .menu-action-art{width:60px;height:60px}html #menu-screen .menu-art-action .menu-action-label{font-size:11px!important;letter-spacing:.015em}html #menu-screen .menu-shortcuts{gap:10px 5px!important}}
@media(max-width:360px){html #menu-screen{padding-inline:12px}html #menu-screen .menu-copy h1{font-size:39px!important}html #menu-screen .player-strip{gap:8px}html #menu-screen .player-level,html #menu-screen .menu-wallet{padding:9px}html #menu-screen #player-level{font-size:12px}html #menu-screen #player-xp{font-size:9px}html #menu-screen #player-coins{font-size:17px}html #menu-screen #player-coins.is-long-balance{font-size:12px}html #menu-screen #player-coins .currency-coin{width:22px;height:22px}html #menu-screen .menu-art-action .menu-action-label{font-size:10px!important}}
@media(max-height:680px) and (orientation:portrait){html #menu-screen{padding-block:13px}html #menu-screen .eyebrow{font-size:12px;margin-bottom:5px}html #menu-screen .menu-copy h1{font-size:38px!important;margin-bottom:12px!important}html #menu-screen .menu-panel{gap:9px}html #menu-screen #play-button{width:116px;min-width:116px;min-height:108px!important;height:108px!important}html #menu-screen #play-button .menu-play-art{width:120px;height:120px}html #menu-screen .menu-panel button.menu-art-action{grid-template-rows:53px auto;min-height:80px!important}html #menu-screen .menu-art-action .menu-action-art{width:53px;height:53px}html #menu-screen .menu-shortcuts{gap:6px 5px!important}}
@media(max-height:500px) and (orientation:landscape){html #menu-screen .menu-shell{width:min(100%,840px)}html #menu-screen .menu-copy{width:100%;display:flex;flex-direction:column}html #menu-screen .menu-shortcuts{grid-template-columns:repeat(8,minmax(0,1fr))!important}html #menu-screen .menu-copy h1{font-size:38px!important}html #menu-screen #play-button{width:110px;min-width:110px;min-height:100px!important;height:100px!important}html #menu-screen #play-button .menu-play-art{width:112px;height:112px}}
@media(prefers-reduced-motion:reduce){html #menu-screen .menu-panel button{transition:none;transform:none!important}}

/* Illustrated exit action, matching the main-menu metal and amethyst art. */
html .exit-shortcut{width:52px;height:52px;min-width:48px;min-height:48px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;touch-action:manipulation;transition:transform .15s,filter .15s}
html .exit-shortcut .menu-exit-art{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;-webkit-user-drag:none;filter:drop-shadow(0 3px 5px #08020e99)}
html .exit-shortcut:focus-visible{outline:none;filter:drop-shadow(0 0 4px #f5e2ac)}
@media(hover:hover){html .exit-shortcut:hover{transform:translateY(-1px);filter:brightness(1.12)}}
html .exit-shortcut:active{transform:scale(.94)}
@media(prefers-reduced-motion:reduce){html .exit-shortcut{transition:none;transform:none!important}}
