/* Plexora Nova — dark navy, electric blue, restrained glow and glass. System fonts only; no external resource; no inline style anywhere. */
:root {
  color-scheme: dark;
  --bg: #070a14; --bg-2: #0b1122; --surface: rgba(17, 25, 48, 0.72); --surface-solid: #0e1630; --surface-hi: rgba(26, 38, 72, 0.78);
  --line: rgba(120, 150, 255, 0.16); --line-hi: rgba(130, 165, 255, 0.34);
  --text: #eaf0ff; --muted: #9aa7c9; --faint: #6b7aa3;
  --accent: #3d7bff; --accent-hi: #6aa2ff; --glow: rgba(61, 123, 255, 0.38);
  --ok: #3ddcaa; --warn: #ffbe55; --bad: #ff7088;
  --radius: 18px; --radius-sm: 12px; --gutter: 16px; --nav-h: 68px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-width: 320px; min-height: 100vh; font-family: var(--font); font-size: 16px; line-height: 1.5; color: var(--text); background: var(--bg);
  background-image: radial-gradient(900px 480px at 12% -8%, rgba(61, 123, 255, 0.2), transparent 62%), radial-gradient(700px 420px at 100% 0, rgba(106, 162, 255, 0.1), transparent 60%), linear-gradient(180deg, var(--bg), var(--bg-2));
  background-attachment: fixed; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; border-radius: 10px; }
.main:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 30; padding: 10px 14px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 600; }
.skip-link:focus { top: 10px; }

/* shell */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(7, 10, 20, 0.72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1080px; margin: 0 auto; padding: 10px var(--gutter); }
.brand { display: inline-flex; flex: none; align-items: center; gap: 10px; min-height: 44px; }
.logo { width: 34px; height: 34px; filter: drop-shadow(0 0 10px var(--glow)); }
.brand-name { font-size: 20px; font-weight: 700; letter-spacing: 0.02em; }
.main { max-width: 1080px; margin: 0 auto; padding: 22px var(--gutter) calc(var(--nav-h) + 40px + env(safe-area-inset-bottom)); }
.bottom-nav {
  position: fixed; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 20; transform: translateX(-50%); display: flex; gap: 4px; width: min(calc(100% - 24px), 460px); padding: 6px;
  border: 1px solid var(--line-hi); border-radius: 22px; background: rgba(12, 18, 38, 0.82); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(61, 123, 255, 0.06);
}
.nav-link { flex: 1 1 0; min-width: 0; min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 16px; color: var(--muted); font-size: 12px; font-weight: 600; transition: color 0.2s, background 0.2s; }
.nav-link .icon { width: 22px; height: 22px; }
.nav-link:hover { color: var(--text); }
.nav-link.is-active { color: #fff; background: linear-gradient(180deg, rgba(61, 123, 255, 0.34), rgba(61, 123, 255, 0.14)); box-shadow: inset 0 0 0 1px rgba(106, 162, 255, 0.4), 0 0 18px rgba(61, 123, 255, 0.25); }

/* who is looking: a small badge, only what the server confirmed */
#who { flex: 0 1 auto; min-width: 0; }
.who { display: flex; align-items: center; gap: 7px; max-width: 100%; min-height: 30px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who .dot { width: 6px; height: 6px; box-shadow: none; flex: none; }
.who-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 360px) { .brand-name { font-size: 18px; } .logo { width: 30px; height: 30px; } .who { padding: 0 10px; gap: 6px; font-size: 12px; } .topbar-inner { gap: 8px; } }
.who-ok { color: var(--text); border-color: rgba(61, 220, 170, 0.35); } .who-ok .dot { color: var(--ok); }
.who-warn { color: var(--warn); border-color: rgba(255, 190, 85, 0.35); }
.note { max-width: 52ch; color: var(--muted); font-size: 14px; }

/* type & layout helpers */
.eyebrow { color: var(--accent-hi); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.hero { padding: 28px 0 18px; display: grid; gap: 14px; }
.hero-title { font-size: clamp(30px, 8vw, 52px); line-height: 1.08; font-weight: 750; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.accent { background: linear-gradient(90deg, #8fb8ff, #3d7bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-text { max-width: 52ch; color: var(--muted); font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 6px; }
.section { margin-top: 30px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-title, .page-title { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.page-title { font-size: clamp(26px, 6vw, 34px); }
.page-head { margin-bottom: 18px; }
.page-sub { color: var(--muted); font-size: 14px; min-height: 21px; }
.link { color: var(--accent-hi); font-weight: 600; font-size: 14px; padding: 8px 2px; }
.link:hover { color: #fff; }
.glass { border: 1px solid var(--line); background: var(--surface); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-radius: var(--radius); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: 14px; font: inherit; font-weight: 650; cursor: pointer; transition: transform 0.15s, box-shadow 0.2s, background 0.2s; }
.btn-primary { color: #fff; background: linear-gradient(180deg, #4d88ff, #2f66f0); box-shadow: 0 8px 28px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 34px rgba(61, 123, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn-secondary { color: var(--text); background: var(--surface-hi); border-color: var(--line-hi); }
.btn-secondary:hover { border-color: var(--accent-hi); }
.btn-block { width: 100%; }
.btn[disabled] { cursor: not-allowed; transform: none; color: #b9c4e4; background: rgba(61, 123, 255, 0.16); border-color: var(--line-hi); box-shadow: none; }

/* status */
.status-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-hi); border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 600; }
.dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.status-ok { color: var(--ok); } .status-warn { color: var(--warn); } .status-bad { color: var(--bad); } .status-unknown { color: var(--muted); }
.status-pill { color: var(--text); } .status-pill .dot { color: var(--muted); }
.status-pill.status-ok .dot { color: var(--ok); } .status-pill.status-warn .dot { color: var(--warn); } .status-pill.status-bad .dot { color: var(--bad); }
.status-card { display: grid; justify-items: start; gap: 10px; padding: 26px 22px; }
.status-orb { width: 54px; height: 54px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0, currentColor 40%, transparent 72%); box-shadow: 0 0 36px currentColor; opacity: 0.9; }
.status-card .state-title, .status-card .state-text { color: var(--text); }
.status-count { margin-top: 6px; color: var(--muted); }
.status-count strong { color: var(--text); }

/* grid & cards */
.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 540px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 880px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } .main { padding-top: 34px; } }
.grid-cell { min-width: 0; display: flex; }
.card { position: relative; display: flex; flex-direction: column; gap: 10px; width: 100%; min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--surface-hi), var(--surface)); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: transform 0.18s, border-color 0.2s, box-shadow 0.2s; }
a.card:hover { transform: translateY(-2px); border-color: var(--line-hi); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4), 0 0 28px rgba(61, 123, 255, 0.16); }
.card-game { color: var(--accent-hi); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; overflow-wrap: anywhere; }
.card-name { font-size: 17px; font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; }
.card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-top: auto; padding-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(61, 123, 255, 0.08); color: var(--muted); font-size: 12.5px; font-weight: 600; overflow-wrap: anywhere; }
.chip-region { color: var(--accent-hi); border-color: rgba(106, 162, 255, 0.35); background: rgba(61, 123, 255, 0.14); }
.price { font-size: 20px; font-weight: 750; letter-spacing: -0.01em; white-space: nowrap; }
.price-big { font-size: 32px; }
.price-none { color: var(--muted); font-size: 15px; font-weight: 600; white-space: normal; }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 650; white-space: nowrap; }
.pill-ok { color: var(--ok); background: rgba(61, 220, 170, 0.1); border: 1px solid rgba(61, 220, 170, 0.3); }
.pill-off { color: var(--faint); background: rgba(107, 122, 163, 0.1); border: 1px solid rgba(107, 122, 163, 0.28); }
.pill .dot { width: 6px; height: 6px; box-shadow: none; }
.card.is-unavailable { border-style: dashed; background: rgba(14, 20, 40, 0.55); }
.card.is-unavailable .card-name, .card.is-unavailable .price, .card.is-unavailable .card-game { opacity: 0.55; }
.card.is-unavailable .chip { opacity: 0.7; }

/* filters */
.filters { display: grid; gap: 12px; margin-bottom: 18px; }
.search { position: relative; }
.search .icon { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: var(--faint); pointer-events: none; }
.search-input { width: 100%; min-height: 50px; padding: 0 16px 0 44px; border: 1px solid var(--line-hi); border-radius: 14px; background: rgba(10, 15, 32, 0.8); color: var(--text); font: inherit; }
.search-input::placeholder { color: var(--faint); }
.search-input:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; border-color: var(--accent-hi); box-shadow: 0 0 0 4px rgba(61, 123, 255, 0.18); }
.toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; color: var(--muted); font-weight: 600; width: fit-content; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle-box { position: relative; width: 44px; height: 26px; flex: none; border: 1px solid var(--line-hi); border-radius: 999px; background: rgba(10, 15, 32, 0.8); transition: background 0.2s, border-color 0.2s; }
.toggle-box::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: transform 0.2s, background 0.2s; }
.toggle input:checked + .toggle-box { background: rgba(61, 123, 255, 0.4); border-color: var(--accent-hi); }
.toggle input:checked + .toggle-box::after { transform: translateX(18px); background: #fff; }
.toggle input:focus-visible + .toggle-box { outline: 2px solid var(--accent-hi); outline-offset: 3px; }

/* product */
.back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin: -6px 0 6px -6px; padding: 0 10px 0 4px; color: var(--muted); font-weight: 600; }
.back:hover { color: var(--text); }
.back .icon { width: 22px; height: 22px; }
.product { display: grid; gap: 18px; }
.product-head { display: grid; gap: 8px; }
.product-title { font-size: clamp(26px, 6.5vw, 38px); line-height: 1.12; font-weight: 750; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.product-buy { display: grid; gap: 14px; padding: 20px; box-shadow: 0 0 40px rgba(61, 123, 255, 0.1); }
.product-price-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; }
.buy-note { text-align: center; color: var(--muted); font-size: 14px; font-weight: 600; }
.block { display: grid; gap: 8px; }
.block-title { font-size: 15px; font-weight: 700; color: var(--accent-hi); letter-spacing: 0.02em; }
.block-text { color: var(--text); overflow-wrap: anywhere; }
.block-note { padding: 14px 16px; border: 1px solid rgba(255, 190, 85, 0.28); border-radius: var(--radius-sm); background: rgba(255, 190, 85, 0.06); }
.block-note .block-title { color: var(--warn); }
.facts { display: grid; gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--line); }
.fact { display: flex; justify-content: space-between; gap: 16px; padding: 12px 14px; background: var(--surface-solid); }
.fact dt { color: var(--muted); flex: none; }
.fact dd { text-align: right; font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.product.is-unavailable .price-big { opacity: 0.55; }

/* states */
.state { display: grid; justify-items: start; gap: 10px; padding: 24px 20px; border: 1px dashed var(--line-hi); border-radius: var(--radius); background: rgba(12, 18, 38, 0.5); }
.state-title { font-size: 19px; font-weight: 700; }
.state-text { color: var(--muted); max-width: 52ch; }
.state-error { border-color: rgba(255, 112, 136, 0.4); background: rgba(255, 112, 136, 0.05); }
.state .btn { margin-top: 6px; }

/* skeletons (no spinner) */
.busy { display: grid; gap: 14px; }
.skeleton-card { gap: 12px; }
.sk { display: block; border-radius: 10px; background: linear-gradient(100deg, rgba(120, 150, 255, 0.08) 20%, rgba(150, 180, 255, 0.2) 40%, rgba(120, 150, 255, 0.08) 60%); background-size: 220% 100%; animation: sk-shimmer 1.4s ease-in-out infinite; }
.sk-line { height: 16px; } .sk-short { width: 40%; } .sk-price { width: 55%; height: 22px; } .sk-chip { width: 34%; height: 26px; border-radius: 999px; }
.sk-title { height: 40px; width: 85%; } .sk-btn { height: 48px; width: 180px; border-radius: 14px; } .sk-box { height: 150px; } .sk-orb { width: 54px; height: 54px; border-radius: 50%; }
@keyframes sk-shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  a.card:hover, .btn-primary:hover { transform: none; }
}
@media (forced-colors: active) { .card, .chip, .pill, .btn { border: 1px solid CanvasText; } .btn[disabled] { color: GrayText; } }
