/* OdinES Web Launcher. Colours, type and metrics: theme.css (generated from the native launcher's theme.json by
   tools/odines_web/make_launcher_theme.py; never edit values here that theme.json owns). Hard edges, slanted plates,
   no rounded corners (the native ui.odin rule). */
@font-face { font-family: "OdinES Noto"; src: url("fonts/NotoSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: block; }
@font-face { font-family: "OdinES Noto"; src: url("fonts/NotoSans-Medium.ttf") format("truetype"); font-weight: 500; font-display: block; }
@font-face { font-family: "OdinES Noto"; src: url("fonts/NotoSans-Bold.ttf") format("truetype"); font-weight: 700; font-display: block; }

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--c-bg); color: var(--c-text); }
body { font-family: "OdinES Noto", sans-serif; font-weight: 400; overflow: hidden; -webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent; text-rendering: optimizeLegibility; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.noscript { padding: 40px; color: var(--c-dim); }
.noscript a { color: var(--c-cyan); }

/* ---- desktop: absolute layout in design units (launcher.js port of draw_library) ------------------------------ */
/* z-index 0 + isolation: #app is its own stacking context, so the per-element z-index launcher.js gives every drawn
   part (1..N each draw, N well above 30 on the library) stays inside it and never rises above body-level layers (the
   friends widget at 30, the account menu, modal, toast). Without it, at scale >= 1 (no transform, so no stacking
   context) the library's later rows drew over the open friends panel (2026-11-13). */
#app { position: absolute; left: 0; top: 0; z-index: 0; isolation: isolate; transform-origin: 0 0; overflow: hidden; background: var(--c-bg); }
#app > * { position: absolute; margin: 0; }
.t { white-space: pre; line-height: normal; pointer-events: none; }
.t.caps { height: 1.362em; }
.t.caps > span { position: absolute; top: 0; }
.fill { pointer-events: none; }
.hit { cursor: pointer; background: transparent; border: 0; padding: 0; }
.hit:focus-visible { outline: 2px solid var(--c-cyan); outline-offset: 2px; }
.img { object-fit: cover; object-position: 50% 50%; pointer-events: none; user-select: none; }
.row-sel { background: var(--c-panel-hi); }
.row-hit:hover { background: var(--c-panel); }
.tab { color: var(--c-faint); }
.tab:hover { color: var(--c-dim); }
.tab.on { color: var(--c-text); }

/* slanted plate: the native slant(x, y, w, h, k): top edge moved right by k */
.slant { clip-path: polygon(var(--k) 0, 100% 0, calc(100% - var(--k)) 100%, 0 100%); }

/* ---- the native button(): Primary / Secondary / Danger / Ghost --------------------------------------------- */
.btn { --h: 64px; --k: calc(var(--h) * var(--m-button-slant)); position: relative; display: block; border: 0; padding: 0;
	background: transparent; cursor: pointer; height: var(--h); text-align: center; touch-action: manipulation; }
.btn > span { position: absolute; display: block; }
.btn .edge { inset: -2px; clip-path: polygon(calc(var(--k) + 0.6px) 0, 100% 0, calc(100% - var(--k) - 0.6px) 100%, 0 100%); }
.btn .plate { inset: 0; clip-path: polygon(var(--k) 0, 100% 0, calc(100% - var(--k)) 100%, 0 100%); }
.btn .lbl { left: 0; right: 0; top: calc((var(--h) - var(--h) * var(--t-button-px-of-h) * 1.36) / 2);
	font-size: calc(var(--h) * var(--t-button-px-of-h)); font-weight: var(--t-button-weight); line-height: normal;
	letter-spacing: calc(var(--t-button-spacing) * 1em); padding-left: calc(var(--t-button-spacing) * 1em);
	text-transform: uppercase; font-kerning: none; white-space: nowrap; }
.btn .bar { left: calc(var(--k) * 0.2); top: calc(var(--h) + 5px); width: calc(100% - var(--k) * 0.4); height: calc(var(--m-focus-bar-h) * 1px);
	clip-path: polygon(1.2px 0, 100% 0, calc(100% - 1.2px) 100%, 0 100%); background: var(--c-coral); }
.btn.primary .plate { background: var(--c-cyan); }
.btn.primary .lbl { color: var(--c-navy); }
.btn.primary:hover .plate { background: #78ffec; }
.btn.primary:disabled .plate { background: #283c46; }
.btn.primary:disabled .lbl { color: var(--c-faint); }
.btn.secondary .edge { background: var(--c-line); }
.btn.secondary .plate { background: var(--c-panel); }
.btn.secondary .lbl { color: var(--c-text); }
.btn.secondary:hover .edge, .btn.secondary:focus-visible .edge { background: var(--c-cyan); }
.btn.secondary:hover .plate { background: var(--c-panel-hi); }
.btn.ghost .plate { background: var(--c-panel); }
.btn.ghost .lbl { color: var(--c-dim); }
.btn.ghost:hover .plate { background: var(--c-panel-hi); }
.btn.ghost:hover .lbl { color: var(--c-text); }
.btn.ghost:hover .edge, .btn.ghost:focus-visible .edge { background: var(--c-cyan); }
.btn.danger .plate { background: var(--c-coral); }
.btn.danger:hover .plate { background: #ff8c78; }
.btn.danger .lbl { color: #28060a; }
.btn:focus-visible { outline: none; }
.btn:disabled { cursor: default; }
.btn.busy .lbl { opacity: 0.55; }

/* ---- modal: the native sign-in card (draw_signin: 560 wide, PANEL, 6 px cyan bar) --------------------------- */
#modal { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: safe center; overflow-y: auto;
	background: rgba(9, 8, 22, 0.78); padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
	max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
#modal .panel { position: relative; width: min(560px, 100%); background: var(--c-panel); padding: 52px 56px 40px;
	border-left: 6px solid var(--c-cyan); transform-origin: 50% 50%; }
#modal .label { color: var(--c-cyan); font-size: 13px; font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase; }
#modal h1 { margin: 6px 0 0 -2px; font-size: 38px; font-weight: 700; line-height: 1.36; }
#modal p { margin: 18px 0 0; color: var(--c-dim); font-size: 17px; line-height: 1.45; }
#modal p.foot { color: var(--c-faint); font-size: 14px; margin-top: 22px; }
#modal p.foot:empty { display: none; }
#modal .field { display: block; margin-top: 22px; }
#modal .field span { display: block; color: var(--c-faint); font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; }
#modal input { display: block; width: 100%; margin-top: 8px; height: 48px; padding: 0 14px; border: 0; border-bottom: 4px solid var(--c-cyan);
	background: var(--c-panel-hi); color: var(--c-text); font-size: 18px; font-weight: 500; border-radius: 0; outline: none; }
#modal input::placeholder { color: var(--c-faint); }
#modal .modal-actions { margin-top: 28px; display: flex; flex-direction: column; gap: 22px; }
#modal .modal-actions .btn.primary { --h: 62px; width: 100%; }
#modal .modal-actions .btn.secondary { --h: 48px; width: 100%; }
#modal .modal-actions .btn.ghost { --h: 44px; width: 100%; }
#modal .modal-actions .btn.secondary .lbl, #modal .modal-actions .btn.ghost .lbl { font-size: 15px; top: calc((var(--h) - 15px * 1.36) / 2); }
#modal .modal-actions .btn:disabled .lbl { opacity: 0.5; }
#modal form .field + .field { margin-top: 16px; }
#modal input.code { font-family: ui-monospace, Menlo, monospace; font-size: 26px; font-weight: 700; letter-spacing: 0.35em; width: 9.5em; max-width: 100%; }
#modal input.code::placeholder { letter-spacing: 0.35em; }
/* Cloudflare Turnstile (sign-up): the widget sits on the panel; interaction-only stays empty unless a check is needed */
#modal .ts { margin-top: 20px; min-height: 0; }
#modal .ts.interaction-only { margin-top: 0; }
/* Turnstile, skinned (2026-11-08): invisible unless Cloudflare asks; then its dark widget sits in a slanted launcher frame */
#modal .ts.asks { margin-top: 16px; padding: 10px 12px 10px 16px; background: var(--c-panel-hi); border-left: 4px solid var(--c-gold); }
#modal .ts-status { margin-top: 14px; font: 700 12px/1.4 "Noto Sans", system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--c-faint); display: flex; align-items: center; gap: 10px; }
#modal .ts-status::before { content: ""; width: 10px; height: 10px; background: currentColor; transform: skewX(-18deg); }
#modal .ts-status.wait::before { animation: tsPulse 1s ease-in-out infinite alternate; }
#modal .ts-status.ok { color: var(--c-cyan); }
#modal .ts-status.ask { color: var(--c-gold); }
#modal .ts-status.bad { color: var(--c-coral); }
@keyframes tsPulse { from { opacity: .35; } to { opacity: 1; } }
#modal .close { position: absolute; right: 10px; top: 8px; width: 40px; height: 40px; border: 0; background: transparent;
	color: var(--c-faint); font-size: 28px; line-height: 1; cursor: pointer; }
#modal .close:hover { color: var(--c-text); }
#modal .err { width: min(560px, 100%); margin-top: 18px; background: #3c101a; border-left: 6px solid var(--c-coral);
	color: #ffc8be; font-size: 15px; padding: 12px 18px; }

/* ---- toast (draw_toast: slanted PANEL_HI plate, coral bar, 52 px above the bottom) --------------------------- */
#toast { position: fixed; left: 50%; bottom: calc(52px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60;
	height: 44px; padding: 0 28px; display: flex; align-items: center; pointer-events: none;
	font-size: calc(var(--t-toast-px) * 1px); font-weight: var(--t-toast-weight); white-space: nowrap; max-width: calc(100vw - 32px); }
#toast::before { content: ""; position: absolute; inset: 0; background: var(--c-panel-hi); clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
#toast::after { content: ""; position: absolute; left: 14px; top: 0; width: 4px; height: 100%; background: var(--c-coral); }
#toast span { position: relative; padding-left: 8px; overflow: hidden; text-overflow: ellipsis; }

/* ---- phone / small tablet: flow layout (#m) ---------------------------------------------------------------- */
body.mobile { overflow: auto; }
#m { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--c-bg); }
.m-right { flex: 1; display: flex; flex-direction: column; }
.m-head { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; background: var(--c-header-bg);
	border-bottom: 1px solid var(--c-line); padding: calc(10px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left)); }
.m-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.m-brand img { height: 26px; width: auto; display: block; }
.m-brand b { display: block; font-size: 22px; font-weight: 700; line-height: 1.05; }
.m-brand i { display: block; font-style: normal; font-size: 9px; font-weight: 700; letter-spacing: 0.3em; color: var(--c-magenta); text-transform: uppercase; }
.m-head .sp { flex: 1; }
.m-chip { position: relative; display: flex; align-items: center; gap: 9px; height: 34px; padding: 0 18px 0 20px; font-size: 15px; font-weight: 700;
	max-width: 46vw; }
.m-chip::before { content: ""; position: absolute; inset: 0; background: var(--c-panel-hi); clip-path: polygon(11px 0, 100% 0, calc(100% - 11px) 100%, 0 100%); }
.m-chip > * { position: relative; }
.m-chip .dot { width: 8px; height: 8px; background: var(--c-cyan); flex: none; }
.m-chip .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-head .btn { --h: 36px; width: 104px; flex: none; }
.m-strip { display: flex; gap: 10px; overflow-x: auto; padding: 12px 16px; background: var(--c-sidebar-bg); border-bottom: 1px solid var(--c-line);
	scrollbar-width: none; }
.m-strip button { flex: none; display: flex; align-items: center; gap: 10px; border: 0; padding: 8px 14px 8px 8px; background: var(--c-panel);
	border-left: 4px solid transparent; cursor: pointer; text-align: left; }
.m-strip button.on { background: var(--c-panel-hi); border-left-color: var(--c-cyan); }
.m-strip img { width: 54px; height: 30px; object-fit: cover; display: block; }
.m-strip b { display: block; font-size: 14px; font-weight: 500; }
.m-strip i { display: block; font-style: normal; font-size: 9px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; }
.m-hero { position: relative; aspect-ratio: 16 / 10; max-height: 52vh; width: 100%; overflow: hidden; background: linear-gradient(var(--c-navy), var(--c-bg)); }
.m-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.m-hero::after { content: ""; position: absolute; inset: 0;
	background: linear-gradient(to bottom, rgba(9, 8, 22, 0) 35%, var(--c-bg) 100%), linear-gradient(to right, rgba(9, 8, 22, 0.6), rgba(9, 8, 22, 0) 70%); }
.m-hero-text { position: absolute; z-index: 1; left: max(20px, env(safe-area-inset-left)); right: 20px; bottom: 10px; }
.m-hero-text .eng { color: var(--c-cyan); font-size: 14px; font-weight: 700; }
.m-hero-text h1 { margin: 2px 0 0 -1px; font-size: 36px; font-weight: 700; line-height: 1.15; }
.m-hero-text .sub { color: var(--c-dim); font-size: 17px; font-weight: 500; margin-top: 2px; }
.m-body { flex: 1; padding: 6px max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left)); }
.m-actions { position: sticky; bottom: 0; z-index: 4; display: flex; gap: 14px; align-items: flex-start;
	padding: 14px max(20px, env(safe-area-inset-right)) calc(18px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
	background: linear-gradient(to bottom, rgba(9, 8, 22, 0.0), var(--c-bg) 22%); }
.m-actions .btn.primary { --h: 64px; flex: 1; min-width: 0; }
.m-actions .btn.secondary { --h: 48px; flex: 1; min-width: 0; margin-top: 8px; }
.m-actions .btn.secondary .lbl { font-size: 14px; top: calc((48px - 14px * 1.36) / 2); }
.m-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; padding: 16px 0 18px; border-bottom: 1px solid var(--c-line); }
.m-stats .k, .m-rows .k { color: var(--c-faint); font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; }
.m-stats .v { font-size: 19px; font-weight: 500; margin-top: 4px; }
.m-rows { padding: 14px 0 6px; }
.m-rows > div { padding: 8px 0; }
.m-rows .v { color: var(--c-dim); font-size: 15px; line-height: 1.4; margin-top: 4px; overflow-wrap: anywhere; }
.m-account { padding: 8px 0 18px; }
.m-account .btn { --h: 40px; width: 160px; }
.m-panel { margin: 28px 0; background: var(--c-panel); border-left: 6px solid var(--c-cyan); padding: 28px 24px; }
.m-panel .label { color: var(--c-cyan); font-size: 12px; font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase; }
.m-panel h2 { margin: 6px 0 0; font-size: 28px; }
.m-panel p { color: var(--c-dim); font-size: 16px; line-height: 1.45; }
.m-status { display: flex; align-items: center; gap: 10px; background: var(--c-header-bg); border-top: 1px solid var(--c-line); color: var(--c-dim);
	font-size: 12px; padding: 8px max(16px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
.m-status .dot { width: 8px; height: 8px; flex: none; }
.m-status .s { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-status .b { color: var(--c-faint); font-size: 11px; white-space: nowrap; }

/* landscape phone: hero on the left, details + PLAY on the right */
@media (orientation: landscape) {
	body.mobile #m { display: grid; grid-template-columns: 46% 54%; grid-template-rows: auto auto 1fr auto; align-items: start; }
	body.mobile .m-head { grid-column: 1 / 3; grid-row: 1; }
	body.mobile .m-strip { grid-column: 1 / 3; grid-row: 2; }
	/* the hero stays in view (sticky under the header) while the right column scrolls */
	body.mobile .m-hero { grid-column: 1; grid-row: 3; aspect-ratio: auto; max-height: none; position: sticky; top: var(--m-head-h, 57px);
		height: calc(100dvh - var(--m-head-h, 57px)); min-height: 200px; }
	body.mobile .m-right { grid-column: 2; grid-row: 3; }
	body.mobile .m-actions { order: -1; position: static; padding-top: 16px; padding-bottom: 6px; background: none; }
	body.mobile .m-status { grid-column: 1 / 3; grid-row: 4; }
	body.mobile .m-hero-text h1 { font-size: 30px; }
}

/* phones: the sign-in card keeps room for the 300 px Turnstile widget (390 px wide iPhone: 300 + 2 x 22 + 6 px edge) */
@media (max-width: 520px) {
	#modal .panel { padding: 40px 22px 28px; }
	#modal h1 { font-size: 30px; }
	#modal p { font-size: 16px; }
}

/* ---- account_menu (theme layout_version 2): under the account chip, slanted plates ------------------------------ */
#acct-menu { position: fixed; z-index: 40; display: flex; flex-direction: column; gap: var(--gap, 4px); isolation: isolate; }
/* the dark backing the native draws under the plates (keeps them readable over the hero art) */
#acct-menu:not(.sheet)::before { content: ""; position: absolute; inset: -4px 0 -6px -12px; background: rgba(9, 8, 22, 0.82); z-index: -1; }
#acct-menu .menu-item { position: relative; display: block; width: 100%; height: var(--ih, 40px); border: 0; padding: 0 18px 0 calc(var(--k) + 14px); text-align: left;
	background: var(--c-line); cursor: pointer; touch-action: manipulation; clip-path: polygon(var(--k) 0, 100% 0, calc(100% - var(--k)) 100%, 0 100%); }
/* the plate inside the line-coloured edge (the native secondary button look) */
#acct-menu .menu-item::after { content: ""; position: absolute; inset: 2px 2px; background: var(--c-panel); clip-path: polygon(calc(var(--k) - 0.6px) 0, 100% 0, calc(100% - var(--k) + 0.6px) 100%, 0 100%); }
#acct-menu .menu-item .lbl { position: relative; z-index: 1; }
#acct-menu .menu-item::before { z-index: 2; }
#acct-menu .menu-item::before { content: ""; position: absolute; inset: 0; background: var(--c-cyan); opacity: 0;
	clip-path: polygon(var(--k) 0, calc(var(--k) + 4px) 0, 4px 100%, 0 100%); }
#acct-menu .menu-item .lbl { font-size: calc(var(--t-menu-item-px, 13) * 1px); font-weight: var(--t-menu-item-weight, 700); letter-spacing: calc(var(--t-menu-item-spacing, 0.16) * 1em + 0.6px); /* + the native caps() whole-pixel glyph advances */
	text-transform: uppercase; color: var(--c-text); white-space: nowrap; }
#acct-menu .menu-item.coral .lbl { color: var(--c-coral); }
#acct-menu .menu-item.admin .lbl { color: var(--c-gold); } /* staff only (GET /api/admin/me) */
#acct-menu .menu-item.armed::after { background: var(--c-coral); }
#acct-menu .menu-item.armed .lbl { color: #28060a; }
#acct-menu .menu-item:focus-visible { outline: none; }
#acct-menu .menu-item:hover::after, #acct-menu .menu-item:focus-visible::after { background: var(--c-panel-hi); }
#acct-menu .menu-item.armed:hover::after, #acct-menu .menu-item.armed:focus-visible::after { background: #ff8c78; }
#acct-menu .menu-item:hover::before, #acct-menu .menu-item:focus-visible::before { opacity: 1; }
/* phones: a full-width sheet under the header */
#acct-menu.sheet { left: 0; right: 0; padding: 10px max(16px, env(safe-area-inset-right)) 16px max(16px, env(safe-area-inset-left));
	background: var(--c-header-bg); border-bottom: 1px solid var(--c-line); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55); }
.m-chip { border: 0; background: transparent; color: var(--c-text); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; touch-action: manipulation; min-height: 44px; }
.m-chip[aria-expanded="true"]::before { background: var(--c-line); }

/* ---- settings (theme layout_version 2, native draw_settings): content area, one column <= settings_max_w ---------
   each section = its caps label, then a PANEL card with the section_accent_w edge (cyan; beta magenta; danger coral) */
:is(#settings, #friends, #shop) { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; background: linear-gradient(var(--c-backdrop-top), var(--c-bg)); }
:is(#settings, #friends, #shop) .set-wrap { max-width: calc(var(--m-settings-max-w) * 1px); margin: 0 auto; padding: calc(var(--m-settings-top) * 1px) 0 48px; }
:is(#settings, #friends, #shop) #set-back { --h: 36px; width: 150px; }
:is(#settings, #friends, #shop) #set-back .lbl { font-size: 13px; top: calc((36px - 13px * 1.36) / 2); color: var(--c-dim); }
:is(#settings, #friends, #shop) #set-back .edge { display: none; }
:is(#settings, #friends, #shop) .set-title { margin: 22px 0 0 -2px; font-size: calc(var(--t-settings-title-px) * 1px); font-weight: var(--t-settings-title-weight); line-height: 1.2; }
:is(#settings, #friends, #shop) .set-msg { margin-top: 6px; padding: 9px 20px 10px; background: #0f2c34; border-left: 6px solid var(--c-cyan); color: var(--c-text); font-size: 15px; }
:is(#settings, #friends, #shop) .set-msg.err { background: #3c101a; border-left-color: var(--c-coral); color: #ffc8be; }
:is(#settings, #friends, #shop) .set-msg:empty { display: none; }
:is(#settings, #friends, #shop) .set-sec { margin-top: 12px; }
:is(#settings, #friends, #shop) .set-sec + .set-sec { margin-top: calc(var(--m-section-gap) * 1px); }
:is(#settings, #friends, #shop) .set-label { color: var(--c-faint); font-size: calc(var(--t-section-label-px) * 1px); font-weight: 700; letter-spacing: calc(var(--t-section-label-spacing) * 1em); text-transform: uppercase; margin-bottom: 8px; }
:is(#settings, #friends, #shop) .set-card { position: relative; background: var(--c-panel); padding: 21px 28px 21px calc(var(--m-section-pad) * 1px - var(--m-section-accent-w) * 1px);
	border-left: calc(var(--m-section-accent-w) * 1px) solid var(--c-cyan); }
:is(#settings, #friends, #shop) .set-sec.beta .set-card { border-left-color: var(--c-magenta); }
:is(#settings, #friends, #shop) .set-sec.danger .set-card { border-left-color: var(--c-coral); }
:is(#settings, #friends, #shop) .set-row { display: flex; align-items: center; min-height: calc(var(--m-settings-row-h) * 1px); }
:is(#settings, #friends, #shop) .set-row .k { flex: none; width: calc(var(--m-row-label-w) * 1px); color: var(--c-faint); font-size: calc(var(--t-row-label-px) * 1px); font-weight: 700;
	letter-spacing: calc(var(--t-row-label-spacing) * 1em); text-transform: uppercase; align-self: flex-start; padding-top: 13px; }
:is(#settings, #friends, #shop) .set-row .v { flex: 1; min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; font-size: 17px; overflow-wrap: anywhere; }
:is(#settings, #friends, #shop) .set-row .val.dim { color: var(--c-dim); }
:is(#settings, #friends, #shop) .set-row .v .right { margin-left: auto; min-width: 160px; }
:is(#settings, #friends, #shop) .set-row .sub { flex-basis: 100%; color: var(--c-dim); font-size: 15px; }
:is(#settings, #friends, #shop) .set-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
:is(#settings, #friends, #shop) .set-item { display: flex; align-items: center; gap: 12px; min-height: 32px; font-size: 17px; }
:is(#settings, #friends, #shop) .set-item .sq { width: 10px; height: 10px; background: var(--c-cyan); flex: none; }
:is(#settings, #friends, #shop) .set-item .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:is(#settings, #friends, #shop) .set-item .meta { color: var(--c-dim); font-size: 16px; margin-left: 88px; }
:is(#settings, #friends, #shop) .set-item .meta.right { margin-left: auto; font-size: 15px; }
:is(#settings, #friends, #shop) .set-dev + .set-dev { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--c-line); }
:is(#settings, #friends, #shop) .set-acts { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
:is(#settings, #friends, #shop) .set-acts:first-child { margin-top: 0; }
/* buttons sized by their label (action_button_h), the native button() look */
:is(#settings, #friends, #shop) .set-card .btn { --h: calc(var(--m-action-button-h) * 1px); flex: none; padding: 0 30px; isolation: isolate; }
:is(#settings, #friends, #shop) .set-card .btn .lbl { position: static; display: block; font-size: 14px; line-height: var(--h); top: auto; letter-spacing: 0.12em; }
:is(#settings, #friends, #shop) .set-card .btn .plate, :is(#settings, #friends, #shop) .set-card .btn .edge { z-index: -1; }
:is(#settings, #friends, #shop) .set-card .btn.ghost .edge, :is(#settings, #friends, #shop) .set-card .btn.ghost .plate { background: transparent; }
:is(#settings, #friends, #shop) .set-card .btn.ghost:hover .lbl { color: var(--c-text); }
:is(#settings, #friends, #shop) .set-card .btn.toggle { min-width: 122px; }
:is(#settings, #friends, #shop) .set-card .btn.danger { min-width: 240px; }
:is(#settings, #friends, #shop) .set-card .btn.primary:disabled .lbl { color: var(--c-faint); }
:is(#settings, #friends, #shop) .set-note { margin: 10px 0 0; color: var(--c-dim); font-size: calc(var(--t-note-px) * 1px); line-height: 1.45; }
:is(#settings, #friends, #shop) .set-note.inline { margin: 0; }
:is(#settings, #friends, #shop) .set-row .v > .set-note.inline { flex: 1; min-width: 200px; }
:is(#settings, #friends, #shop) .vchip { display: inline-block; height: calc(var(--m-chip-h) * 1px); line-height: calc(var(--m-chip-h) * 1px); padding: 0 8px; font-size: calc(var(--t-chip-px) * 1px);
	font-weight: var(--t-chip-weight); letter-spacing: calc(var(--t-chip-spacing) * 1em); text-transform: uppercase; }
:is(#settings, #friends, #shop) .vchip.ok { background: var(--c-cyan); color: var(--c-navy); }
:is(#settings, #friends, #shop) .vchip.warn { background: var(--c-gold); color: #2a1c00; }
:is(#settings, #friends, #shop) .set-input { width: calc(var(--m-field-w) * 1px); max-width: 100%; height: calc(var(--m-field-h) * 1px); padding: 0 12px; border: 2px solid var(--c-cyan); border-radius: 0;
	background: var(--c-bg); color: var(--c-text); font-size: calc(var(--t-field-px) * 1px); font-weight: var(--t-field-weight); outline: none; }
:is(#settings, #friends, #shop) .code-boxes { display: flex; gap: calc(var(--m-code-box-gap, 8) * 1px); }
:is(#settings, #friends, #shop) .code-box { width: calc(var(--m-code-box-w) * 1px); height: calc(var(--m-code-box-h, 56) * 1px); padding: 0; border: 0; border-bottom: 4px solid var(--c-cyan); border-radius: 0; background: var(--c-panel-hi);
	color: var(--c-text); text-align: center; font: 700 24px ui-monospace, Menlo, monospace; outline: none; caret-color: transparent; }
:is(#settings, #friends, #shop) .code-box:nth-child(4) { margin-left: calc(var(--m-code-mid-gap, 14) * 1px); }
:is(#settings, #friends, #shop) .code-box.cur { border-bottom-color: var(--c-coral); }
/* phones: the page in the flow layout */
body.mobile :is(#settings, #friends, #shop) { flex: 1; overflow: visible; }
body.mobile :is(#settings, #friends, #shop) .set-wrap { padding: 18px max(16px, env(safe-area-inset-right)) 32px max(16px, env(safe-area-inset-left)); }
body.mobile :is(#settings, #friends, #shop) .set-title { font-size: 28px; margin-top: 14px; }
body.mobile :is(#settings, #friends, #shop) .set-card { padding: calc(var(--m-card-pad-phone, 16) * 1px) calc(var(--m-card-pad-phone, 16) * 1px) calc(var(--m-card-pad-phone, 16) * 1px) 14px; }
body.mobile :is(#settings, #friends, #shop) .set-row { flex-wrap: wrap; }
body.mobile :is(#settings, #friends, #shop) .set-row .k { width: 100%; padding: 4px 0 6px; }
body.mobile :is(#settings, #friends, #shop) .set-row .v { flex: 1 1 100%; }
body.mobile :is(#settings, #friends, #shop) .set-row .v .right { margin-left: 0; }
body.mobile :is(#settings, #friends, #shop) .set-cols { grid-template-columns: 1fr; gap: 12px; }
body.mobile :is(#settings, #friends, #shop) .set-item { flex-wrap: wrap; }
body.mobile :is(#settings, #friends, #shop) .set-item .meta, body.mobile :is(#settings, #friends, #shop) .set-item .meta.right { margin-left: 0; flex-basis: 100%; font-size: 14px; }
body.mobile :is(#settings, #friends, #shop) .set-card .btn { --h: 44px; }
body.mobile :is(#settings, #friends, #shop) .set-input { width: 100%; font-size: 17px; }
body.mobile :is(#settings, #friends, #shop) .code-box { width: calc((100vw - 32px - 30px - 14px - 40px) / 6); max-width: calc(var(--m-code-box-w) * 1px); }

/* ---- friends + accepted-friend chat (2026-11-09): the same hard-edged launcher panels -------------------------- */
:is(#settings, #friends, #shop) :is(#friend-back, #shop-back) { --h: 36px; width: 150px; }
:is(#settings, #friends, #shop) :is(#friend-back, #shop-back) .lbl { font-size: 13px; top: calc((36px - 13px * 1.36) / 2); color: var(--c-dim); }
:is(#settings, #friends, #shop) :is(#friend-back, #shop-back) .edge { display: none; }
#friends .friend-search-row .v { flex-wrap: nowrap; }
#friends .friend-search-row .set-input { flex: 1; min-width: 0; }
#friends .friend-row { display: flex; align-items: center; gap: 14px; min-height: 66px; padding: 10px 0; }
#friends .friend-row + .friend-row, #friends .friend-search-row ~ .friend-row:first-of-type { border-top: 1px solid var(--c-line); }
#friends .friend-avatar { display: grid; place-items: center; flex: none; width: 38px; height: 38px; background: var(--c-panel-hi);
	border-left: 4px solid var(--c-cyan); color: var(--c-cyan); font-size: 19px; font-weight: 700; }
#friends .friend-who { flex: 1; min-width: 0; }
#friends .friend-name { font-size: 18px; font-weight: 500; overflow-wrap: anywhere; }
#friends .friend-meta { margin-top: 3px; color: var(--c-dim); font-size: 14px; line-height: 1.35; }
#friends .friend-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-left: auto; }
#friends .friend-actions .btn { min-width: 104px; }
#friends .friend-actions .btn.ghost { min-width: 90px; }
#friends .friend-empty { margin-top: 18px; }
#friends .chat-title { overflow-wrap: anywhere; }
#friends .friend-log { height: min(440px, 48vh); min-height: 220px; overflow-y: auto; overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch; padding: 18px; background: var(--c-bg); border-left: 2px solid var(--c-line); }
#friends .chat-empty { margin: 12px 0; color: var(--c-dim); font-size: 16px; }
#friends .chat-msg { width: fit-content; max-width: 82%; margin: 0 0 14px; padding: 10px 14px 11px; background: var(--c-panel-hi); border-left: 4px solid var(--c-magenta); }
#friends .chat-msg.mine { margin-left: auto; border-left: 0; border-right: 4px solid var(--c-cyan); }
#friends .chat-meta { margin-bottom: 4px; color: var(--c-faint); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
#friends .chat-text { color: var(--c-text); font-size: 16px; line-height: 1.42; white-space: pre-wrap; overflow-wrap: anywhere; }
#friends .chat-compose { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; margin-top: 16px; }
#friends .chat-compose .set-input { width: 100%; }
#friends .chat-compose .btn { min-width: 118px; }
body.mobile #friends .friend-log { height: min(420px, 45vh); min-height: 240px; padding: 14px 12px; }
body.mobile #friends .friend-row { flex-wrap: wrap; gap: 10px 12px; }
body.mobile #friends .friend-who { min-width: calc(100% - 52px); }
body.mobile #friends .friend-actions { flex: 1 0 calc(100% - 50px); justify-content: flex-start; margin-left: 50px; width: calc(100% - 50px); max-width: 100%; }
body.mobile #friends .friend-actions .btn { min-width: 0; padding: 0 16px; }
body.mobile #friends .friend-search-row .v { flex-wrap: wrap; }
body.mobile #friends .friend-search-row .set-input { flex: 1 0 100%; }
body.mobile #friends .chat-msg { max-width: 92%; }
body.mobile #friends .chat-compose { grid-template-columns: 1fr; gap: 10px; }
body.mobile #friends .chat-compose .btn { width: 100%; }
@media (max-width: 520px) {
	#friends .friend-actions { margin-left: 0; flex-basis: 100%; }
	#friends .friend-actions .btn { flex: 1; }
}
/* OESies beta navigation is also available in the phone layout. */
.oesies-mobile-nav{display:flex;gap:8px;padding:10px 14px;overflow:auto;border-bottom:1px solid #302b47;background:#100e20}
.oesies-mobile-nav button{background:transparent;color:#bcb3ce;border:0;padding:9px 6px;font:inherit;font-size:12px;white-space:nowrap;min-height:42px}

/* ---- store-front + downloads (#shop, 2026-11-13 redesign) ------------------------------------------------------
   Store v2 (2026-11-14): ONE grid of store items (the OdinES Launcher first, then the games) as cover-art cards that
   use the width (1 column on phones, 2 at 1280, 3 from ~1600), one state chip per card; a card opens the item's detail
   view (#store/<id>). Downloads lists what this account downloaded. Hard edges + slants like the rest of
   the launcher: no rounded corners anywhere. */
.oesies-mobile-nav button[aria-current="page"] { color: #69e6e5; box-shadow: inset 0 -3px 0 var(--c-cyan); }
#shop .shop-wrap { max-width: 1840px; margin: 0 auto; padding: 28px clamp(24px, 4vw, 72px) 72px; }
#shop .shop-head { display: grid; grid-template-columns: auto 1fr; align-items: end; column-gap: 28px; margin-bottom: 22px; }
#shop .shop-head #shop-back { grid-column: 1 / -1; margin-bottom: 14px; }
#shop .shop-h1 { margin: 0; font-size: clamp(34px, 3vw, 52px); font-weight: 700; line-height: 1.05; letter-spacing: -0.01em; }
#shop .shop-sub { margin: 0 0 6px; color: var(--c-dim); font-size: 17px; line-height: 1.4; }
#shop .shop-h2 { margin: 48px 0 18px; color: var(--c-faint); font-size: 13px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; }
#shop .shop-note, #shop .hero-note { color: var(--c-dim); font-size: 15px; line-height: 1.5; }
#shop .shop-note { margin: 28px 0 0; }
#shop .set-msg { margin: 0 0 18px; }

/* buttons: the native button() sized by label, outside the settings cards */
#shop .shop-acts { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
#shop .shop-acts .btn { --h: 48px; flex: none; padding: 0 30px; isolation: isolate; min-width: 150px; }
#shop .shop-acts .btn .lbl { position: static; display: block; font-size: 14px; line-height: var(--h); top: auto; letter-spacing: .12em; padding-left: .12em; }
#shop .shop-acts .btn .plate, #shop .shop-acts .btn .edge { z-index: -1; }
#shop .shop-acts .btn.primary:disabled .lbl { color: var(--c-faint); }
#shop a.btn { text-decoration: none; display: inline-block; }

/* chips: hard-edged slanted plates (never rounded pills) */
#shop .shop-chip { display: inline-block; padding: 5px 14px 5px 12px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
	clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); white-space: nowrap; }
#shop .shop-chip.ok { background: var(--c-cyan); color: var(--c-navy); }
#shop .shop-chip.warn { background: var(--c-gold); color: #2a1c00; }
#shop .shop-chip.free { background: var(--c-magenta); color: #fff; }
#shop .shop-chip.soon { background: var(--c-panel-hi); color: var(--c-dim); box-shadow: inset 0 0 0 1px var(--c-line); }
/* members only (A5.3): a lock mark before the label; the card's art is dimmed, never a button */
#shop .shop-chip.lock { background: var(--c-navy); color: var(--c-gold); box-shadow: inset 0 0 0 1px var(--c-gold); }
#shop .shop-chip.lock { position: relative; padding-left: 28px; }
#shop .shop-chip.lock::before { content: ""; position: absolute; left: 11px; top: 50%; width: 10px; height: 7px; margin-top: -1px; background: currentColor; }
#shop .shop-chip.lock::after { content: ""; position: absolute; left: 13px; top: 50%; width: 6px; height: 6px; margin-top: -7px;
	border: 2px solid currentColor; border-bottom: 0; border-radius: 4px 4px 0 0; box-sizing: border-box; }
#shop .store-item.locked .card-art img { filter: grayscale(.6) brightness(.7); }
/* one Store, members first (2026-11-16) */
#shop .store-section + .store-section { margin-top: 36px; }
#shop .st-section { margin: 0 0 6px; }
#shop .st-section-note { margin: 0 0 16px; }
#shop .st-detail.locked .st-art img { filter: grayscale(.6) brightness(.7); }
#shop .shop-plats { display: flex; flex-wrap: wrap; gap: 6px; }
#shop .shop-plat { padding: 4px 10px; background: var(--c-panel-hi); color: var(--c-text); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
#shop .shop-plat.off { color: var(--c-faint); background: transparent; box-shadow: inset 0 0 0 1px var(--c-line); }

#shop .hero-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; }
#shop .hero-meta { margin: 18px 0 0; color: var(--c-dim); font-size: 15px; }
#shop .hero-note { margin: 14px 0 0; max-width: 64ch; }
#shop .dl-empty-title { margin: 22px 0 0; font-size: 24px; font-weight: 700; }

/* what's new / you have */
#shop .dl-notes { padding: 18px 22px; background: rgba(9, 8, 22, .55); border-left: 4px solid var(--c-magenta); }
#shop .dl-notes .k { display: block; color: var(--c-magenta); font-size: 11px; font-weight: 700; letter-spacing: .2em; }
#shop .dl-notes .v { margin: 6px 0 0; color: var(--c-text); font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
#shop .dl-have { margin: 10px 0 0; color: var(--c-dim); font-size: 15px; }
#shop .dl-have.new { color: var(--c-gold); }

/* per-OS detail blocks (Downloads) */
#shop .dl-file { padding: 22px 0 6px; border-top: 1px solid var(--c-line); margin-top: 22px; }
#shop .dl-file.has-new { box-shadow: inset 4px 0 0 var(--c-gold); padding-left: 18px; }
#shop .dl-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
#shop .dl-os { font-size: 22px; font-weight: 700; }
#shop .dl-file.mine .dl-os { color: var(--c-cyan); }
#shop .dl-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 24px; margin-top: 12px; }
#shop .dl-kv { display: flex; gap: 12px; align-items: baseline; min-width: 0; }
#shop .dl-kv .k { flex: none; width: 82px; color: var(--c-faint); font-size: 11px; font-weight: 700; letter-spacing: .16em; }
#shop .dl-kv .v { min-width: 0; overflow-wrap: anywhere; font-size: 15px; }
#shop .dl-sha { grid-column: 1 / -1; }
#shop .dl-sha code { font: 13px/1.4 ui-monospace, "DejaVu Sans Mono", monospace; color: var(--c-dim); user-select: all; }
#shop .dl-how { margin: 12px 0 0; color: var(--c-dim); font-size: 14px; line-height: 1.5; }

/* game cards */
#shop .shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 32px; }
#shop .shop-card { display: flex; flex-direction: column; background: var(--c-panel); border-bottom: 4px solid var(--c-line); min-width: 0; }
#shop .shop-card:hover { border-bottom-color: var(--c-cyan); }
#shop .card-art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, var(--c-navy), var(--c-panel-hi)); }
#shop .card-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
#shop .card-art::after { content: ""; position: absolute; inset: auto 0 0 0; height: 42%; background: linear-gradient(rgba(18, 15, 42, 0), var(--c-panel)); }
#shop .card-art .shop-chip { position: absolute; z-index: 1; top: 16px; left: 16px; }
#shop .card-art-name { display: none; }
#shop .card-art.noart img { display: none; }
#shop .card-art.noart .card-art-name { display: grid; place-items: center; position: absolute; inset: 0; padding: 0 24px; color: rgba(236, 234, 248, .22);
	font-size: clamp(28px, 3vw, 46px); font-weight: 700; letter-spacing: .04em; text-align: center; text-transform: uppercase; }
#shop .card-body { display: flex; flex-direction: column; flex: 1; padding: 6px 30px 30px; }
#shop .card-kicker { color: var(--c-cyan); font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
#shop .card-title { margin: 6px 0 0; font-size: clamp(26px, 2vw, 34px); font-weight: 700; line-height: 1.1; }
#shop .card-tag { margin: 10px 0 16px; color: var(--c-dim); font-size: 16px; line-height: 1.45; }
#shop .card-desk { margin-top: auto; padding-top: 22px; }
#shop .card-desk .dl-notes { margin: 10px 0 0; padding: 12px 16px; }
#shop .card-ver { margin: 6px 0 0; color: var(--c-dim); font-size: 14px; }
#shop .card-soon { margin: 0; padding-top: 14px; border-top: 1px solid var(--c-line); color: var(--c-faint); font-size: 14px; }
#shop .card-desk.store-latest { border-top: 1px solid var(--c-line); margin-top: 22px; padding-top: 14px; }
#shop .store-dl .btn { --h: 42px; min-width: 0; }


/* phones (the flow layout) */
body.mobile #shop .shop-wrap { padding: 16px max(16px, env(safe-area-inset-right)) 40px max(16px, env(safe-area-inset-left)); }
body.mobile #shop .shop-head { grid-template-columns: 1fr; }
body.mobile #shop .shop-h1 { font-size: 32px; }
body.mobile #shop .shop-sub { margin-top: 6px; font-size: 15px; }
body.mobile #shop .dl-meta { grid-template-columns: 1fr; }
body.mobile #shop .shop-grid { grid-template-columns: 1fr; gap: 22px; }
body.mobile #shop .card-body { padding: 4px 18px 22px; }
body.mobile #shop .card-title { font-size: 26px; }
body.mobile #shop .shop-acts .btn { flex: 1 1 100%; min-width: 0; padding: 0 14px; }
body.mobile #shop .shop-acts .btn .lbl { font-size: 12px; letter-spacing: .08em; padding-left: .08em; }
body.mobile #shop .shop-grid { grid-template-columns: minmax(0, 1fr); }
/* installers (2026-11-13): the installer is the main button; the portable archive a smaller link under it */
#shop .shop-portables { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 12px; }
#shop a.shop-portable { color: var(--c-dim); font-size: 14px; text-decoration: underline; text-decoration-color: var(--c-line); text-underline-offset: 4px; }
#shop a.shop-portable:hover, #shop a.shop-portable:focus-visible { color: var(--c-cyan); text-decoration-color: var(--c-cyan); }
#shop .dl-how-installer { color: var(--c-text); }
#shop .dl-how-installer::before { content: "How to install · "; color: var(--c-faint); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
#shop .dl-portable { margin-top: 18px; padding: 12px 0 0 16px; border-left: 2px solid var(--c-line); }
#shop .dl-meta-small { margin-top: 8px; }
#shop .dl-meta-small .v { font-size: 13px; color: var(--c-dim); }
/* long file names and build ids may break anywhere (a .run name in the how-to line must never widen a column) */
#shop .hero-note, #shop .hero-meta, #shop .dl-have, #shop .card-ver, #shop .dl-how, #shop .hero-line, #shop a.shop-portable { overflow-wrap: anywhere; }

/* ---- Store v2 (2026-11-14): cards are links to the detail view; the detail view; Downloads = what you downloaded */
#shop a.shop-card { color: inherit; text-decoration: none; cursor: pointer; }
#shop a.shop-card:focus-visible { outline: 3px solid var(--c-cyan); outline-offset: 3px; }
#shop .shop-card[data-kind="app"] { border-bottom-color: var(--c-magenta); }
#shop .shop-card[data-kind="app"]:hover { border-bottom-color: var(--c-cyan); }
#shop .card-art.mark { display: grid; place-items: center; background: linear-gradient(115deg, var(--c-panel-hi) 0%, var(--c-panel) 58%, #0d0b22 100%); }
#shop .card-art.mark img { width: 42%; height: auto; max-height: 72%; object-fit: contain; filter: drop-shadow(0 18px 40px rgba(40, 249, 221, .18)); }
#shop .card-art.mark::after { display: none; }
#shop .card-art.mark::before { content: ""; position: absolute; top: 0; bottom: 0; right: 14%; width: 22%; transform: skewX(-18deg); background: linear-gradient(rgba(40, 249, 221, .13), rgba(40, 249, 221, 0)); }
#shop .shop-card[data-kind="app"] .card-kicker { color: var(--c-magenta); }
#shop .card-more { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--c-line); }
#shop .card-body .shop-plats { margin-bottom: 18px; }
#shop .card-more .card-ver { margin: 0; min-width: 0; }
#shop .card-go { flex: none; color: var(--c-cyan); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
#shop .shop-card:hover .card-go, #shop .shop-card:focus-visible .card-go { color: var(--c-text); }

#shop #store-back { --h: 36px; width: 170px; margin-bottom: 18px; }
#shop #store-back .lbl { position: static; display: block; font-size: 13px; line-height: 36px; color: var(--c-dim); letter-spacing: .12em; }
#shop #store-back .edge, #shop #store-back .plate { background: transparent; }
#shop #store-back:hover .lbl { color: var(--c-text); }
#shop .st-detail { background: var(--c-panel); border-left: 6px solid var(--c-cyan); }
#shop .st-detail[data-item="launcher"] { border-left-color: var(--c-magenta); }
#shop .st-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0 44px; align-items: start; }
#shop .st-art { aspect-ratio: 16 / 9; }
#shop .st-art .card-art-name { font-size: clamp(30px, 3vw, 52px); }
#shop .st-main { padding: 34px 44px 30px 0; min-width: 0; }
#shop .st-title { margin: 6px 0 0; font-size: clamp(34px, 3vw, 52px); font-weight: 700; line-height: 1.05; }
#shop .st-tag { margin: 14px 0 0; color: var(--c-text); font-size: clamp(16px, 1.15vw, 19px); line-height: 1.45; max-width: 60ch; }
#shop .st-main .dl-notes { margin-top: 18px; }
#shop .st-dl { padding: 4px 44px 34px; border-top: 1px solid var(--c-line); }
#shop .st-h { margin-top: 28px; margin-bottom: 0; }
#shop .st-files { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 0 40px; }
#shop .st-os-meta { margin: 8px 0 0; color: var(--c-dim); font-size: 15px; overflow-wrap: anywhere; }
#shop .st-os .dl-acts { margin-top: 14px; }
#shop .st-none { grid-column: 1 / -1; margin: 22px 0 0; padding: 14px 18px; background: var(--c-panel-hi); border-left: 4px solid var(--c-line); color: var(--c-text); font-size: 17px; font-weight: 700; }
#shop .st-none.mine { border-left-color: var(--c-gold); }
#shop .st-none-sub { color: var(--c-dim); font-size: 15px; font-weight: 400; }
#shop .st-sha { margin-top: 14px; }
#shop .st-sha summary { cursor: pointer; color: var(--c-faint); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
#shop .st-sha summary:hover, #shop .st-sha[open] summary { color: var(--c-dim); }
#shop .st-sha .dl-meta { grid-template-columns: minmax(0, 1fr); }
#shop .st-get-first { margin-top: 20px; color: var(--c-text); }
#shop .shop-signin { margin-top: 18px; }
#shop .st-missing { margin: 0 0 18px; }

#shop .dl-rows { display: grid; gap: 22px; }
#shop .dl-row { display: grid; grid-template-columns: minmax(160px, 260px) minmax(0, 1fr); background: var(--c-panel); border-left: 6px solid var(--c-cyan); min-width: 0; }
#shop .dl-row.has-new { border-left-color: var(--c-gold); }
#shop .dl-thumb { aspect-ratio: 16 / 9; align-self: start; }
#shop .dl-thumb .card-art-name { font-size: 20px; }
#shop .dl-row-body { padding: 18px 28px 22px; min-width: 0; }
#shop .dl-row-name { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.15; }
#shop .dl-os-chip { padding: 4px 10px; background: var(--c-panel-hi); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
#shop .dl-row .shop-acts { margin-top: 14px; }
#shop .dl-row .shop-acts .btn { --h: 42px; }
#shop .dl-started { display: grid; gap: 10px; }
#shop .dl-start { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding: 14px 20px; background: var(--c-panel); border-left: 4px solid var(--c-magenta); }
#shop .dl-start-name { font-size: 18px; font-weight: 700; }
#shop .dl-start-meta { color: var(--c-dim); font-size: 15px; }
#shop .dl-start-note { flex-basis: 100%; color: var(--c-text); font-size: 14px; }
#shop .dl-empty { padding: 34px 44px 38px; background: var(--c-panel); border-left: 6px solid var(--c-line); }
#shop .dl-empty .dl-empty-title { margin: 0; }
#shop .st-os-meta, #shop .dl-start-meta, #shop .dl-row-name, #shop .st-title, #shop .st-tag { overflow-wrap: anywhere; }

body.mobile #shop .st-top { grid-template-columns: minmax(0, 1fr); }
body.mobile #shop .st-main { padding: 18px 18px 22px; }
body.mobile #shop .st-title { font-size: 30px; }
body.mobile #shop .st-dl { padding: 0 18px 24px; }
body.mobile #shop .st-files { grid-template-columns: minmax(0, 1fr); }
body.mobile #shop .dl-row { grid-template-columns: minmax(0, 1fr); }
body.mobile #shop .dl-row-body { padding: 14px 18px 18px; }
body.mobile #shop .dl-empty { padding: 24px 18px; }
body.mobile #shop .dl-meta .dl-kv { flex-wrap: wrap; }
body.mobile #shop .shop-acts { padding: 0 2px; } /* a full-width secondary button's 2 px edge stays inside the column */

/* Store v3 (2026-11-14): coming soon, install requests, the launcher banner, Update all, the Downloads badge */
#shop .shop-chip.bad { background: var(--c-coral); color: #fff; }
#shop .store-item.soon .card-art img { filter: saturate(.55) brightness(.8); }
#shop .st-soon { margin-top: 18px; color: var(--c-text); }
#shop .st-sent { margin-top: 12px; }
#shop .st-by-launcher { margin: 24px 0 0; max-width: 72ch; }
#shop .st-other { margin-top: 24px; }
#shop .st-other > summary { cursor: pointer; color: var(--c-faint); font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; padding: 6px 0; }
#shop .st-other > summary:hover, #shop .st-other[open] > summary { color: var(--c-dim); }
#shop .st-sha-rows { margin-top: 14px; grid-template-columns: minmax(0, 1fr); }
/* a long main-button label ("Update your OdinES Launcher on <device> to install from here") wraps inside the column */
#shop .shop-acts .btn.st-main-btn { flex: 0 1 auto; max-width: 100%; min-width: 0; height: auto; min-height: var(--h); }
#shop .shop-acts .btn.st-main-btn .lbl { white-space: normal; line-height: 1.35; padding-top: calc((var(--h) - 1.35em) / 2); padding-bottom: calc((var(--h) - 1.35em) / 2); }
#shop .dl-banner { margin: 0 0 26px; padding: 22px 30px 24px; background: var(--c-panel); border-left: 6px solid var(--c-magenta); }
#shop .dl-banner-title { margin: 0 0 6px; font-size: 20px; font-weight: 700; line-height: 1.3; }
#shop .dl-banner .hero-note { margin: 0; }
#shop .dl-allbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; margin: 0 0 22px; padding: 12px 24px 16px; background: var(--c-panel); border-left: 6px solid var(--c-gold); }
#shop .dl-allbar .hero-note { margin: 0; color: var(--c-text); }
#shop .dl-allbar .shop-acts { margin-top: 4px; }
#shop .ir-row { align-items: center; border-left-color: var(--c-cyan); }
#shop .ir-row.ir-open { border-left-color: var(--c-line); }
#shop .ir-row.ir-failed { border-left-color: var(--c-coral); }
#shop .ir-row.ir-expired, #shop .ir-row.ir-cancelled { opacity: .7; }
#shop .ir-row .shop-acts { margin: 0 0 0 auto; padding: 0 2px; } /* the ghost button's 2 px edge stays inside */
#shop .ir-row .shop-acts .btn { --h: 38px; min-width: 110px; padding: 0 20px; }
#shop .dl-need-launcher { margin-top: 10px; }
.tab-badge { position: absolute; min-width: 20px; padding: 0 6px; background: var(--c-gold); color: #2a1c00; font: 700 12px/20px "OdinES Noto", system-ui, sans-serif; text-align: center;
	clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%); pointer-events: none; }
.tab-badge.m-badge { position: static; display: inline-block; margin-left: 6px; vertical-align: 1px; }
body.mobile #shop .dl-banner { padding: 18px; }
body.mobile #shop .dl-allbar { padding: 12px 18px 14px; }
body.mobile #shop .ir-row .shop-acts { margin: 6px 0 0; }

#shop .st-art.banner img { object-fit: cover; object-position: 0% 50%; }

/* an incoming OESies call (launcher.js callRingShow): hard-edged slanted plate, top centre, above everything */
.call-ring { position: fixed; z-index: 9000; top: 14px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; max-width: min(94vw, 640px); padding: 12px 18px; background: #1c1638; color: #fff; border-left: 5px solid var(--c-gold); box-shadow: 0 8px 30px rgba(0,0,0,.6); font: 600 15px/1.2 system-ui, sans-serif; }
.call-ring span { font-weight: 400; opacity: .75; }
.call-ring button { padding: 8px 16px; border: 0; background: #2c2552; color: #fff; font: inherit; cursor: pointer; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.call-ring button.call-ring-yes { background: var(--c-gold); color: #14102a; }

/* ---- home screen (PWA, 2026-11-15; oes-home.js): the add-to-home-screen icon buttons ------------------------ */
/* a slanted plate like .btn.secondary with the house-plus glyph; desktop: absolute (launcher.js homeBtn), phone: in flow */
.home-btn { position: relative; display: block; border: 0; padding: 0; cursor: pointer; background: var(--c-line); color: var(--c-cyan);
	clip-path: polygon(22% 0, 100% 0, 78% 100%, 0 100%); touch-action: manipulation; }
.home-btn::before { content: ""; position: absolute; inset: 2px; background: var(--c-panel); clip-path: polygon(22% 0, 100% 0, 78% 100%, 0 100%); }
.home-btn svg { position: relative; display: block; width: 46%; height: 46%; margin: 27%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; }
.home-btn:hover, .home-btn:focus-visible { background: var(--c-cyan); outline: none; }
.home-btn:hover::before, .home-btn:focus-visible::before { background: var(--c-panel-hi); }
#app > .home-btn { position: absolute; }
.m-head .m-home { flex: none; width: 48px; height: 40px; }
.m-actions .m-home-add { flex: none; width: 72px; height: 64px; }
