/* PACPlay Lab · Ice chrome */
@font-face { font-family: 'Geist'; src: url('/fonts/Geist-Variable.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --base: #06080b;
  --surface: #0f1319;
  --surface-2: #141a22;
  --raise: #19212b;
  --line: rgba(196, 226, 255, 0.07);
  --line-2: rgba(196, 226, 255, 0.13);
  --line-3: rgba(196, 226, 255, 0.24);
  --text: #f0f6fc;
  --text-2: #9aa7b6;
  --text-3: #627080;
  --accent: #2f8cff;
  --accent-2: #9cebff;
  --accent-deep: #1a5fd6;
  --chrome: linear-gradient(180deg, #9cebff 0%, #58aeff 52%, #2f8cff 100%);
  --tile: linear-gradient(135deg, #7cd6ff 0%, #2f8cff 45%, #1a5fd6 100%);
  --glow: rgba(47, 140, 255, 0.38);
  --glow-2: rgba(156, 235, 255, 0.28);
  --sans: 'Geist', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Consolas, 'Liberation Mono', monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --gutter: clamp(16px, 3vw, 32px);
  --r: 16px;
  --tap: 44px;
  --bar: 60px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.locked { overflow: hidden; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--base); color: var(--text);
  font: 400 15px/1.5 var(--sans); font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; overflow-x: clip;
}
main { flex: 1; width: 100%; padding: 0 var(--gutter); }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 8px; }
::selection { background: rgba(47, 140, 255, 0.45); color: #fff; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 16px; background: var(--accent-deep); color: #fff; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- living background: three slow chrome-blue light orbs, transform-only ---------- */
.field { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: radial-gradient(120% 80% at 50% -10%, #0b1119 0%, var(--base) 60%); }
.field::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; opacity: 0.5;
  mask-image: radial-gradient(80% 60% at 50% 0%, #000, transparent 75%); -webkit-mask-image: radial-gradient(80% 60% at 50% 0%, #000, transparent 75%);
}

/* ---------- top bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: var(--bar); padding: 0 var(--gutter);
  background: rgba(6, 8, 11, 0.7); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: var(--tap); }
.brand-logo { height: 28px; width: auto; }
.brand-lab { padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line-2); font: 500 10.5px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-2); }
.bar-links { display: flex; gap: 2px; font-size: 13.5px; color: var(--text-2); }
.bar-links a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 12px; border-radius: 999px; white-space: nowrap; transition: color 0.2s, background-color 0.2s; }
.bar-links a:hover { color: var(--text); background: rgba(196, 226, 255, 0.06); }

/* ---------- filters: a full-width bar, the content kept to the page width ---------- */
.filters-bar {
  position: sticky; top: var(--bar); z-index: 20;
  margin: 0 calc(var(--gutter) * -1); padding: 12px var(--gutter);
  background: rgba(7, 9, 13, 0.94);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.5), 0 18px 30px -24px rgba(0, 0, 0, 0.9);
}
.filters {
  max-width: 1376px; margin: 0 auto;
  display: grid; grid-template-columns: auto minmax(160px, 1fr) auto auto; align-items: center; gap: 10px;
}
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 6px 4px; margin: -6px -4px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; flex: none; height: var(--tap); padding: 0 15px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(196, 226, 255, 0.025); color: var(--text-2); font-size: 14px; font-weight: 500;
  transition: color 0.2s, border-color 0.25s, background-color 0.25s, box-shadow 0.3s;
}
.chip:hover { color: var(--text); border-color: var(--line-3); }
.chip[aria-pressed='true'] { color: var(--text); background: rgba(47, 140, 255, 0.14); border-color: rgba(88, 174, 255, 0.6); box-shadow: 0 0 14px -6px var(--glow), inset 0 1px 0 rgba(156, 235, 255, 0.15); }
.chip-n { font: 500 11.5px/1 var(--mono); color: var(--text-3); font-variant-numeric: tabular-nums; }
.chip[aria-pressed='true'] .chip-n { color: var(--accent-2); }
.search { position: relative; display: block; min-width: 0; }
.search svg { position: absolute; left: 14px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); fill: none; stroke: var(--text-3); stroke-width: 1.8; stroke-linecap: round; pointer-events: none; }
.search input {
  width: 100%; height: var(--tap); padding: 0 14px 0 40px; border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(196, 226, 255, 0.03); outline: none; font-size: 14px; transition: border-color 0.2s, background-color 0.2s, box-shadow 0.3s;
}
.search input::placeholder { color: var(--text-3); }
.search input:focus { border-color: rgba(88, 174, 255, 0.7); background: rgba(196, 226, 255, 0.05); box-shadow: 0 0 0 4px rgba(47, 140, 255, 0.12); }
.select { position: relative; display: block; }
.select-k { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); font: 500 10.5px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); pointer-events: none; }
.select select {
  appearance: none; -webkit-appearance: none; height: var(--tap); width: 100%; min-width: 112px; padding: 0 32px 0 50px; border-radius: 999px;
  border: 1px solid var(--line-2); outline: none; font: 500 13px/1 var(--mono); cursor: pointer;
  background: rgba(196, 226, 255, 0.03) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa7b6' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center / 14px;
}
.select select:focus { border-color: rgba(88, 174, 255, 0.7); }
.select option { background: var(--raise); color: var(--text); }

/* ---------- grid ---------- */
.grid { width: 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 248px), 1fr)); gap: clamp(12px, 1.6vw, 20px); padding: 20px 0 28px; transition: opacity 0.16s ease; }
.grid.leaving { opacity: 0; }
.card {
  --mx: 50%; --my: 0%; --px: 0; --py: 0;
  position: relative; display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line);
  transition: transform 0.45s var(--ease), border-color 0.3s, box-shadow 0.45s var(--ease);
  animation: rise 0.6s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms);
}
.card::after {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity 0.35s;
  background: radial-gradient(380px circle at var(--mx) var(--my), rgba(88, 174, 255, 0.16), transparent 45%);
}
.card::before {
  content: ''; position: absolute; inset: -1px; z-index: 4; pointer-events: none; border-radius: inherit; padding: 1px; opacity: 0; transition: opacity 0.35s;
  background: radial-gradient(240px circle at var(--mx) var(--my), rgba(156, 235, 255, 0.95), rgba(47, 140, 255, 0.4) 40%, transparent 65%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 28px 56px -30px #000, 0 0 46px -20px var(--glow); }
.card:hover::after, .card:hover::before, .card:focus-within::before { opacity: 1; }
.card-play { all: unset; position: absolute; inset: 0; z-index: 2; cursor: pointer; border-radius: inherit; }
.card-play:focus-visible { outline: 2px solid var(--accent-2); outline-offset: -2px; }
.card-play:disabled { cursor: not-allowed; }
.card-art { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.card:hover .card-art .poster-bg { transform: translate3d(calc(var(--px) * -8px), calc(var(--py) * -6px), 0) scale(1.1); filter: brightness(0.72) saturate(1.1); }
.card:hover .card-art .poster-hero { transform: translate3d(calc(-50% + var(--px) * 14px), calc(-54% + var(--py) * 10px), 0) scale(1.05); }
.card:hover .card-art .poster-logo { transform: translateX(-50%) translateY(4px); opacity: 0.92; }
.card-cta {
  position: absolute; inset: 0; margin: auto; z-index: 2; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--tile); color: #fff; box-shadow: 0 0 0 6px rgba(47, 140, 255, 0.16), 0 14px 34px -8px rgba(47, 140, 255, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transform: scale(0.6); opacity: 0; transition: opacity 0.3s, transform 0.45s var(--ease); pointer-events: none;
}
.card-cta svg { width: 26px; height: 26px; transform: translateX(2px); }
.card:hover .card-cta, .card-play:focus-visible ~ .card-art .card-cta { opacity: 1; transform: scale(1); }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px 14px; }
.card-text { min-width: 0; }
.card-name { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-nums { margin: 3px 0 0; font: 400 11.5px/1.3 var(--mono); color: var(--text-3); letter-spacing: 0.02em; white-space: nowrap; }
.card-nums b { font-weight: 500; color: var(--text-2); }
.badges { position: absolute; top: 10px; left: 10px; z-index: 2; display: flex; gap: 6px; pointer-events: none; }
.badge {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px;
  background: rgba(6, 8, 11, 0.66); border: 1px solid rgba(196, 226, 255, 0.16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font: 500 10.5px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text);
}
.badge-new { border-color: transparent; background: var(--tile); color: #fff; font-weight: 600; }
.info-btn {
  position: relative; z-index: 5; flex: none; display: inline-grid; place-items: center; width: var(--tap); height: var(--tap); margin: -6px -8px -6px 0;
  border-radius: 999px; border: 1px solid transparent; background: transparent; color: var(--text-3); transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.info-btn:hover { color: var(--accent-2); background: rgba(196, 226, 255, 0.06); border-color: var(--line-2); }
.info-btn svg, .icon-btn svg, .device svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.note { margin: 24px 0; padding: 18px; border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--text-2); text-align: center; font-size: 14px; }

/* empty search */
.empty { display: grid; justify-items: center; gap: 6px; margin: 12px 0 40px; padding: clamp(32px, 6vw, 64px) 20px; text-align: center; border-radius: 20px; border: 1px solid var(--line); background: radial-gradient(60% 80% at 50% 0%, rgba(47, 140, 255, 0.1), transparent 70%), rgba(15, 19, 25, 0.6); animation: rise 0.5s var(--ease) both; }
.empty-icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 10px; border-radius: 20px; border: 1px solid var(--line-2); background: rgba(196, 226, 255, 0.04); box-shadow: 0 0 40px -12px var(--glow); }
.empty-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--accent-2); stroke-width: 1.6; stroke-linecap: round; }
.empty-title { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.empty-sub { margin: 0 0 14px; max-width: 40ch; color: var(--text-2); font-size: 14px; }

/* ---------- poster ---------- */
.poster { position: relative; width: 100%; height: 100%; overflow: hidden; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--accent-c, #2f8cff) 22%, #0f1319), #07090c); }
.poster-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); transition: transform 1s var(--ease), filter 0.6s; }
.poster-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 8, 11, 0) 40%, rgba(6, 8, 11, 0.5) 76%, rgba(6, 8, 11, 0.86)); }
.poster-hero { position: absolute; left: 50%; top: 44%; width: var(--size, 55%); max-height: 76%; object-fit: contain; transform: translate(-50%, -50%); filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.55)); transition: transform 0.8s var(--ease); }
.poster-logo { position: absolute; left: 50%; bottom: 7%; width: 74%; max-height: 26%; object-fit: contain; transform: translateX(-50%); filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.7)); transition: transform 0.6s var(--ease), opacity 0.4s; }
.poster-name { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center; font-size: 22px; font-weight: 600; }

/* ---------- footer ---------- */
.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; width: 100%; max-width: 1440px; margin: 0 auto;
  padding: 14px var(--gutter) calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line);
  font: 400 11.5px/1.6 var(--mono); color: var(--text-3); letter-spacing: 0.02em;
}
.foot a { display: inline-flex; align-items: center; min-height: 24px; }
.foot a:hover { color: var(--accent-2); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 0 20px; border-radius: 999px;
  font-size: 14px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background-color 0.25s, border-color 0.25s, filter 0.25s;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { color: #fff; background: var(--tile); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -1px 0 rgba(0, 0, 0, 0.2), 0 10px 30px -10px rgba(47, 140, 255, 0.75); }
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 16px 38px -10px rgba(47, 140, 255, 0.95); }
.btn-primary:disabled { filter: grayscale(1) brightness(0.6); cursor: not-allowed; transform: none; }
.btn-glass { color: var(--text); background: rgba(196, 226, 255, 0.05); border-color: var(--line-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(196, 226, 255, 0.09); border-color: var(--line-3); }
.btn-lg { min-height: 48px; padding: 0 24px; font-size: 15px; }
.icon-btn {
  display: inline-grid; place-items: center; width: var(--tap); height: var(--tap); flex: none; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(196, 226, 255, 0.03); color: var(--text-2); transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-3); background: rgba(196, 226, 255, 0.07); }

/* ---------- dialogs ---------- */
dialog { padding: 0; border: 0; color: var(--text); background: transparent; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(2, 4, 6, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

.spec { width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); margin: auto; border-radius: 20px; }
.spec[open] { animation: pop 0.35s var(--ease); }
.spec-body { max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; border-radius: 20px; border: 1px solid var(--line-2); background: linear-gradient(180deg, var(--raise), var(--surface)); box-shadow: 0 40px 90px -30px #000, 0 0 60px -30px var(--glow); }
.spec-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 16px; background: rgba(25, 33, 43, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.spec-thumb { width: 64px; height: 48px; flex: none; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-2); }
.spec-thumb .poster-hero { width: calc(var(--size, 55%) * 0.9); top: 50%; }
.spec-thumb .poster-logo, .spec-thumb .poster-veil { display: none; }
.spec-title { flex: 1; min-width: 0; }
.spec-title h2 { margin: 0; font-size: 18px; font-weight: 620; letter-spacing: -0.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spec-title p { margin: 2px 0 0; font: 400 11.5px/1.3 var(--mono); color: var(--text-3); letter-spacing: 0.04em; text-transform: uppercase; }
.spec-main { padding: 6px 16px 18px; }
.spec-sec { padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec-k { margin: 0 0 8px; font: 500 10.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-2); opacity: 0.8; }
.rows { display: grid; grid-template-columns: 1fr auto; gap: 7px 16px; margin: 0; font-size: 13.5px; }
.rows dt { color: var(--text-2); }
.rows dd { margin: 0; font-family: var(--mono); font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }
.feat { margin: 0; padding: 0; list-style: none; display: grid; gap: 5px; font-size: 13.5px; color: var(--text-2); }
.feat li { position: relative; padding-left: 16px; }
.feat li::before { content: ''; position: absolute; left: 2px; top: 0.6em; width: 5px; height: 5px; border-radius: 1.5px; background: var(--chrome); }
.hash { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.hash-k { width: 52px; flex: none; font: 500 10.5px/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.hash code { flex: 1; min-width: 0; overflow-wrap: anywhere; font: 400 11.5px/1.45 var(--mono); color: var(--accent-2); padding: 7px 10px; border-radius: 8px; background: rgba(47, 140, 255, 0.07); border: 1px solid rgba(88, 174, 255, 0.2); }
.copy { flex: none; min-width: 58px; height: var(--tap); padding: 0 10px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); font: 500 11.5px/1 var(--mono); }
.copy:hover { color: var(--text); border-color: var(--line-3); }
.spec-fine { margin: 8px 0 0; font-size: 12px; color: var(--text-3); }
.spec-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 16px; }
.spec-actions .btn-primary { flex: 1 1 160px; }

/* ---------- player ---------- */
.player { width: 100vw; height: 100dvh; margin: 0; inset: 0; display: none; }
.player[open] { display: flex; flex-direction: column; animation: fade 0.35s ease; }
.player::backdrop { background: rgba(2, 4, 6, 0.95); }
.player-bar {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 60px; padding: env(safe-area-inset-top) max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
  border-bottom: 1px solid var(--line); background: rgba(10, 13, 18, 0.88);
}
.player[open] .player-bar { animation: bar-in 0.5s var(--ease) both; }
.player-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.player-title strong { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill { flex: none; display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--tile); color: #fff; font: 600 10.5px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.player-tools { display: flex; align-items: center; gap: 6px; flex: none; }
.device { display: flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; margin-right: 4px; }
.device button { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--text-3); font-size: 13px; font-weight: 500; transition: color 0.2s, background-color 0.2s; }
.device button:hover { color: var(--text); }
.device button[aria-pressed='true'] { background: rgba(47, 140, 255, 0.18); color: var(--text); }
.player-stage { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; padding: clamp(12px, 2.2vw, 28px); overflow: hidden; }
.player-stage::before { content: ''; position: absolute; left: 50%; top: 50%; width: 76%; height: 64%; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(47, 140, 255, 0.16), transparent); pointer-events: none; }
.frame {
  position: relative; background: #000; overflow: hidden; border-radius: 14px; border: 1px solid var(--line-2);
  box-shadow: 0 40px 100px -40px #000, 0 0 0 6px rgba(196, 226, 255, 0.02);
  transition: width 0.5s var(--ease), height 0.5s var(--ease), border-radius 0.5s var(--ease);
}
.frame[data-device='desktop'] { width: min(100%, calc((100dvh - 60px - 56px) * 16 / 9)); aspect-ratio: 16 / 9; }
.frame[data-device='mobile'] { width: 390px; height: 844px; border-radius: 40px; border: 9px solid #161c24; box-shadow: 0 0 0 1px var(--line-2), 0 40px 100px -40px #000; transform: scale(var(--scale, 1)); }
.frame:fullscreen { width: 100vw; height: 100vh; border-radius: 0; border: 0; transform: none; aspect-ratio: auto; }
.frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; opacity: 0; transition: opacity 0.5s ease; }
.frame iframe.is-ready { opacity: 1; }

/* the opening screen: the game's own art, blurred, with its logo and a chrome progress line */
.frame-loading { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; overflow: hidden; background: #05070a; transition: opacity 0.55s ease, visibility 0s linear 0.55s; }
.frame-loading.is-done { opacity: 0; visibility: hidden; }
.loading-art { position: absolute; inset: -8%; }
.loading-art .poster { background: #05070a; }
.loading-art .poster-bg { filter: blur(18px) brightness(0.5) saturate(1.2); transform: scale(1.1); }
.loading-art .poster-hero { width: calc(var(--size, 55%) * 0.55); top: 42%; opacity: 0.9; animation: breathe 2.4s ease-in-out infinite; }
.loading-art .poster-logo, .loading-art .poster-veil { display: none; }
.loading-info { position: relative; z-index: 1; display: grid; justify-items: center; gap: 14px; margin-top: 34%; width: min(70%, 320px); }
.loading-logo { width: 100%; max-height: 80px; object-fit: contain; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.8)); }
.loading-logo:not([src]) { display: none; }
.loading-bar { position: relative; width: 140px; height: 2px; border-radius: 2px; overflow: hidden; background: rgba(240, 246, 252, 0.14); }
.loading-bar i { position: absolute; inset: 0; width: 40%; border-radius: inherit; background: var(--chrome); box-shadow: 0 0 12px var(--glow-2); animation: sweep 1.2s var(--ease-io) infinite; }
.loading-text { font: 500 11px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2); }
.flyer { position: fixed; z-index: 5; overflow: hidden; border-radius: var(--r); pointer-events: none; box-shadow: 0 40px 80px -30px #000, 0 0 60px -20px var(--glow); will-change: transform, opacity; }

.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 1000; transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 12px; background: var(--raise); border: 1px solid var(--line-2); box-shadow: 0 20px 50px -20px #000; font-size: 14px; }

@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
@keyframes fade { from { opacity: 0; } }
@keyframes bar-in { from { opacity: 0; transform: translateY(-10px); } }
@keyframes sweep { from { transform: translateX(-110%); } to { transform: translateX(260%); } }
@keyframes breathe { 0%, 100% { scale: 1; } 50% { scale: 1.04; } }
@keyframes sheet { from { transform: translateY(40px); opacity: 0; } }

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
  .filters { grid-template-columns: minmax(0, 1fr) auto auto; }
  .chips { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  :root { --bar: 56px; }
  .brand-logo { height: 26px; }
  .filters-bar { position: static; }
  .filters { grid-template-columns: 1fr 1fr; gap: 8px; }
  /* chips scroll to the screen edge instead of stopping short inside the gutter */
  .chips { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .chip { padding: 0 12px; gap: 6px; }
  .search { grid-column: 1 / -1; }
  .select select { min-width: 0; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 14px; }
  .card-meta { padding: 10px 10px 12px 12px; }
  .card-name { font-size: 14px; }
  .card-nums { font-size: 10.5px; }
  .card-cta { width: 52px; height: 52px; }

  .player-bar { min-height: calc(52px + env(safe-area-inset-top)); }
  .device, #player-full { display: none; }
  .player-stage { padding: 0; }
  .player-stage::before { display: none; }
  .frame, .frame[data-device='mobile'], .frame[data-device='desktop'] { width: 100%; height: 100%; aspect-ratio: auto; border: 0; border-radius: 0; box-shadow: none; transform: none; }
  .spec { width: 100vw; max-height: 92dvh; margin: auto 0 0; border-radius: 20px 20px 0 0; }
  .spec-body { max-height: 92dvh; border-radius: 20px 20px 0 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom); }
  .spec[open] { animation: sheet 0.4s var(--ease); }
}
@media (max-width: 400px) {
  .bar-links a { padding: 0 8px; font-size: 13px; }
  .card-nums .sep { display: none; }
  .card-nums .mx { display: block; }
}
@media (max-width: 1024px) and (max-height: 520px) and (orientation: landscape) {
  .bar, .filters-bar { position: static; }
  .player-bar { min-height: 44px; }
  .player-bar .icon-btn { width: 40px; height: 40px; }
  .device, #player-full { display: none; }
  .player-stage { padding: 0; }
  .player-stage::before { display: none; }
  .frame, .frame[data-device='mobile'], .frame[data-device='desktop'] { width: 100%; height: 100%; aspect-ratio: auto; border: 0; border-radius: 0; box-shadow: none; transform: none; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (hover: none) {
  .card:hover { transform: none; box-shadow: none; }
  .card:hover::after, .card:hover::before { opacity: 0; }
  .card:hover .card-cta { opacity: 0; }
  .card:hover .card-art .poster-bg { transform: scale(1.03); filter: none; }
  .card:hover .card-art .poster-hero { transform: translate(-50%, -50%); }
  .card:hover .card-art .poster-logo { transform: translateX(-50%); opacity: 1; }
  .card:active { transform: scale(0.98); transition-duration: 0.12s; }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
html.calm *, html.calm *::before, html.calm *::after { animation: none !important; transition: none !important; }

/* =====================================================================
   Premium pass: glass only when needed, chrome details, skeletons
   ===================================================================== */
.mark { height: 1px; margin-bottom: -1px; pointer-events: none; }

/* header: part of the page at the top, full-width glass once scrolled, with one light streak along its edge */
.bar {
  background: transparent; border-bottom-color: transparent;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.bar::after {
  content: ''; position: absolute; left: 0; bottom: -1px; width: 38%; height: 1px; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(156, 235, 255, 0.95) 45%, rgba(47, 140, 255, 0.8) 60%, transparent);
  transform: translateX(-100%);
}
.bar.is-scrolled {
  background: rgba(8, 11, 15, 0.62);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 40px -18px rgba(0, 0, 0, 0.7);
}
.bar.is-scrolled::after { animation: streak 1.15s var(--ease-io) 0.05s both; }
html.filters-stuck .bar.is-scrolled { border-bottom-color: transparent; box-shadow: none; }
@keyframes streak { 0% { opacity: 0; transform: translateX(-100%); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateX(270%); } }

/* filter bar: no slab; the page and its light show through, a whisper of glass only while it sticks */
.filters-bar {
  background: transparent; border-bottom: 1px solid transparent; box-shadow: none;
  transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.filters-bar.is-stuck {
  background: rgba(8, 11, 15, 0.62);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--line);
  box-shadow: 0 16px 34px -22px rgba(0, 0, 0, 0.85);
}
.chip, .search input, .select select { background-color: rgba(15, 19, 25, 0.55); }
.chip[aria-pressed='true'] { background-color: rgba(47, 140, 255, 0.16); }

/* typography rhythm */
.card-name { font-size: 15.5px; letter-spacing: -0.025em; }
.card-nums { margin-top: 4px; letter-spacing: 0.03em; }
.grid { gap: clamp(14px, 1.7vw, 22px); padding: 22px 0 36px; }

/* cards: fine chrome border and a soft inner light */
.card {
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, var(--surface-2), var(--surface)) padding-box,
    linear-gradient(160deg, rgba(156, 235, 255, 0.26), rgba(88, 174, 255, 0.08) 32%, rgba(196, 226, 255, 0.04) 60%, rgba(156, 235, 255, 0.12)) border-box;
  box-shadow: inset 0 1px 0 rgba(240, 246, 252, 0.06), 0 18px 40px -32px #000;
}
.card-meta { position: relative; }
.card-meta::before { content: ''; position: absolute; left: 12%; right: 12%; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(156, 235, 255, 0.22), transparent); }
.card:hover { border-color: transparent; box-shadow: inset 0 1px 0 rgba(240, 246, 252, 0.08), 0 28px 56px -30px #000, 0 0 46px -20px var(--glow); }

/* skeleton until the art is decoded, then a soft fade in */
.fade { opacity: 0; transition: opacity 0.5s ease, transform 1s var(--ease), filter 0.6s; }
.fade.is-in { opacity: 1; }
.poster::after { content: ''; position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity 0.4s ease; background: linear-gradient(100deg, transparent 30%, rgba(196, 226, 255, 0.07) 50%, transparent 70%); transform: translateX(-100%); }
.poster.is-loading::after { opacity: 1; animation: skeleton 1.3s ease-in-out infinite; }
.poster.is-loading { background: linear-gradient(180deg, #121821, #0c1016); }
@keyframes skeleton { to { transform: translateX(100%); } }

/* spec sheet */
.spec-body { background: linear-gradient(180deg, #171e27, var(--surface) 40%); border-color: rgba(156, 235, 255, 0.16); }
.spec-head { padding: 16px 16px 16px 18px; background: rgba(23, 30, 39, 0.88); }
.spec-thumb { width: 76px; height: 57px; border-radius: 12px; border-color: rgba(156, 235, 255, 0.22); box-shadow: 0 8px 20px -10px #000; }
.spec-title h2 { font-size: 19px; }
.spec-main { padding: 4px 18px 20px; }
.spec-sec { padding: 16px 0; }
.rows { gap: 0; }
.rows dd { padding-left: 16px; }
.rows dt, .rows dd { padding: 7px 0; border-bottom: 1px dashed rgba(196, 226, 255, 0.07); }
.rows dt:last-of-type, .rows dd:last-of-type { border-bottom: 0; }

/* player chrome */
.player-bar { position: relative; background: rgba(8, 11, 15, 0.72); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); }
.player-bar::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 38%; height: 1px; pointer-events: none; opacity: 0; background: linear-gradient(90deg, transparent, rgba(156, 235, 255, 0.95) 45%, rgba(47, 140, 255, 0.8) 60%, transparent); transform: translateX(-100%); }
.player[open] .player-bar::after { animation: streak 1.2s var(--ease-io) 0.25s both; }
.frame { border-color: transparent; background: linear-gradient(#000, #000) padding-box, linear-gradient(160deg, rgba(156, 235, 255, 0.4), rgba(47, 140, 255, 0.12) 35%, rgba(196, 226, 255, 0.06) 65%, rgba(156, 235, 255, 0.24)) border-box; }
.frame[data-device='mobile'] { background: #000; }
.device { position: relative; isolation: isolate; }
.device::before { content: ''; position: absolute; z-index: -1; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px; background: rgba(47, 140, 255, 0.2); box-shadow: inset 0 1px 0 rgba(156, 235, 255, 0.18); transition: transform 0.4s var(--ease); }
.device[data-device='mobile']::before { transform: translateX(100%); }
.device button { flex: 1; justify-content: center; }
.device button[aria-pressed='true'] { background: transparent; }

@media (max-width: 767px), (max-width: 1024px) and (max-height: 520px) and (orientation: landscape) {
  .frame, .frame[data-device='mobile'], .frame[data-device='desktop'] { background: #000; }
}
@media (hover: none) {
  .card:hover { box-shadow: inset 0 1px 0 rgba(240, 246, 252, 0.06), 0 18px 40px -32px #000; }
}
@media (prefers-reduced-motion: reduce) {
  .fade { opacity: 1; }
}
html.calm .fade { opacity: 1; }
@media (max-width: 1024px) and (max-height: 520px) and (orientation: landscape) { .bar { position: relative; } }

/* nothing that animates carries a filter: the loading art breathes without its drop shadow */
.loading-art .poster-hero { filter: none; }

/* particle field (replaces the light shapes): fixed behind everything, quiet, fades in once it draws */
.particles { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 2.4s ease; }
.particles.is-on { opacity: 0.85; }
html.calm .particles { display: none; }
@media (max-width: 767px) { .particles.is-on { opacity: 0.7; } }

/* =====================================================================
   Coverflow: every game on a curved arc. Only transform and opacity move.
   ===================================================================== */
main > .flow { max-width: 1376px; margin-inline: auto; }
.flow {
  --card-w: clamp(260px, 29vw, 420px);
  position: relative; margin-top: 10px; margin-bottom: 8px; padding: 18px 0 6px;
  outline: none;
}
.flow-stage {
  position: relative; height: calc(var(--card-w) * 0.75 + 36px);
  perspective: 1500px; perspective-origin: 50% 45%;
  touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none;
  overflow: hidden; overflow: clip;
  /* fade the outermost cards into the page instead of cutting them */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}
.flow-stage.dragging { cursor: grabbing; }
.flow-track { position: absolute; left: 0; right: 0; top: 12px; height: calc(var(--card-w) * 0.75); perspective: 1500px; perspective-origin: 50% 45%; }
.fc {
  all: unset; box-sizing: border-box;
  position: absolute; left: 50%; top: 0; width: var(--card-w); aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; cursor: pointer;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(160deg, rgba(156, 235, 255, 0.4), rgba(47, 140, 255, 0.12) 35%, rgba(196, 226, 255, 0.05) 65%, rgba(156, 235, 255, 0.22)) border-box;
  box-shadow: 0 30px 60px -34px #000;
  transform-origin: 50% 50%; backface-visibility: hidden; will-change: transform, opacity;
  transition: transform 0.75s var(--ease), opacity 0.5s ease;
}
.fc.no-motion, .flow-stage.dragging .fc, .flow-stage.dragging .fc-dim { transition: none !important; }
.fc:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.fc-art { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; }
.fc-art .poster { border-radius: inherit; }
.fc-dim { position: absolute; inset: 0; background: #05070a; opacity: 0; pointer-events: none; transition: opacity 0.6s ease; }
.fc-sheen { position: absolute; inset: 0; overflow: hidden; pointer-events: none; border-radius: inherit; }
.fc-sheen::before {
  content: ''; position: absolute; top: -10%; bottom: -10%; left: 0; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(220, 245, 255, 0.16) 50%, transparent);
  transform: translateX(-130%) skewX(-14deg);
}
.fc.is-centre .fc-sheen::before { animation: fc-sheen 1.5s var(--ease-io) 0.55s both; }
.fc.is-centre { box-shadow: 0 40px 70px -34px #000, 0 0 70px -26px var(--glow); }
@keyframes fc-sheen { to { transform: translateX(360%) skewX(-14deg); } }

/* a soft chrome floor under the centre card */
.flow-floor {
  position: absolute; left: 50%; bottom: 0; width: calc(var(--card-w) * 1.5); height: 56px; transform: translateX(-50%); pointer-events: none;
  background:
    radial-gradient(50% 60% at 50% 30%, rgba(47, 140, 255, 0.3), transparent 70%),
    radial-gradient(38% 30% at 50% 22%, rgba(156, 235, 255, 0.28), transparent 70%);
}
.flow-floor::after { content: ''; position: absolute; left: 14%; right: 14%; top: 10px; height: 1px; background: linear-gradient(90deg, transparent, rgba(156, 235, 255, 0.7), transparent); }

.flow-arrow { position: absolute; top: calc(18px + 12px + var(--card-w) * 0.375); z-index: 120; transform: translateY(-50%); background: rgba(10, 13, 18, 0.6); backdrop-filter: none; }
.flow-prev { left: 4px; }
.flow-next { right: 4px; }
.flow-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.flow-info { display: grid; justify-items: center; gap: 8px; margin-top: 4px; text-align: center; }
.flow-name { margin: 0; font-size: clamp(20px, 2vw, 24px); font-weight: 640; letter-spacing: -0.035em; }
.flow-meta { margin: 0; font: 500 11.5px/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.flow-meta b { color: var(--text-2); font-weight: 500; }
.flow-info[data-swap='a'] .flow-name, .flow-info[data-swap='a'] .flow-meta { animation: info-a 0.5s var(--ease) both; }
.flow-info[data-swap='b'] .flow-name, .flow-info[data-swap='b'] .flow-meta { animation: info-b 0.5s var(--ease) both; }
@keyframes info-a { from { opacity: 0; transform: translateY(6px); } }
@keyframes info-b { from { opacity: 0; transform: translateY(6px); } }
.flow-play { margin-top: 6px; }
.flow-play svg { fill: currentColor; stroke: none; }
.flow-progress { position: relative; width: 120px; height: 2px; margin-top: 6px; border-radius: 2px; overflow: hidden; background: rgba(240, 246, 252, 0.14); }
.flow-progress i { position: absolute; inset: 0; border-radius: inherit; background: var(--chrome); transform: scaleX(0); transform-origin: left center; will-change: transform; }
.flow .flow-progress i { animation: flow-fill-a var(--flow-ms, 6500ms) linear both; }
.flow[data-run='b'] .flow-progress i { animation-name: flow-fill-b; }
.flow.paused .flow-progress i { animation-play-state: paused; }
@keyframes flow-fill-a { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes flow-fill-b { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* reduced motion: a flat row with arrows, nothing moves on its own */
.flow.is-flat .flow-stage { perspective: none; }
.flow.is-flat .flow-progress { display: none; }
html.calm .flow-progress { display: none; }

@media (max-width: 767px) {
  .flow { --card-w: min(68vw, 340px); padding-top: 12px; }
  .flow-stage { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%); }
  .flow-arrow { display: none; }
  .flow-name { font-size: 20px; }
}
@media (max-width: 1024px) and (max-height: 520px) and (orientation: landscape) {
  .flow { --card-w: min(34vw, 300px); }
  .flow-arrow { display: inline-grid; }
}
@media (hover: hover) {
  .fc.is-centre:hover .fc-sheen::before { animation: fc-sheen 1.2s var(--ease-io) both; }
}

/* card hover play: a crisp dark-glass circle with a chrome ring, an optically centred triangle and a small mono label */
.card-cta {
  inset: 0; margin: 0; width: auto; height: auto; border-radius: 0; background: none; box-shadow: none;
  display: block; opacity: 0; transform: none; pointer-events: none; transition: opacity 0.35s ease;
}
.cta-ring {
  position: absolute; inset: 0; margin: auto; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  border: 1.5px solid transparent;
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(40, 56, 76, 0.92), rgba(8, 11, 16, 0.9)) padding-box,
    linear-gradient(150deg, #e6f7ff 0%, #9cebff 22%, #2f8cff 55%, #1a5fd6 80%, #9cebff 100%) border-box;
  box-shadow: 0 0 0 6px rgba(47, 140, 255, 0.1), 0 12px 32px -8px rgba(47, 140, 255, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transform: scale(0.82); transition: transform 0.5s var(--ease), box-shadow 0.4s ease;
}
.cta-ring svg { width: 24px; height: 24px; margin: 0; transform: translateX(6%); filter: none; }
.cta-label {
  position: absolute; left: 50%; top: calc(50% + 40px); padding: 4px 9px; border-radius: 999px;
  background: rgba(6, 8, 11, 0.62); border: 1px solid rgba(156, 235, 255, 0.18);
  font: 500 10.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); white-space: nowrap;
  opacity: 0; transform: translate(-50%, 6px); transition: opacity 0.35s ease 0.05s, transform 0.5s var(--ease) 0.05s;
}
.card:hover .card-cta, .card-play:focus-visible ~ .card-art .card-cta { opacity: 1; transform: none; }
.card:hover .cta-ring, .card-play:focus-visible ~ .card-art .cta-ring { transform: scale(1); box-shadow: 0 0 0 7px rgba(47, 140, 255, 0.14), 0 14px 38px -8px rgba(47, 140, 255, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.card:hover .cta-label, .card-play:focus-visible ~ .card-art .cta-label { opacity: 1; transform: translate(-50%, 0); }
.card-play:focus-visible ~ .card-art .cta-ring { outline: 2px solid var(--accent-2); outline-offset: 4px; }
@media (max-width: 767px) { .card-cta { width: auto; height: auto; } .cta-ring { width: 52px; height: 52px; } .cta-label { top: calc(50% + 36px); } }
@media (hover: none) { .card:hover .card-cta { opacity: 0; } }

/* =====================================================================
   Game language and currency: the PACPlay picker (picker.css) over the native selects, which stay the source of truth
   ===================================================================== */
.select { position: relative; display: block; min-width: 0; }
.select-k { position: absolute; left: 15px; top: 50%; z-index: 1; translate: 0 -50%; font: 500 10.5px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); pointer-events: none; }
.select .pick-trigger {
  width: 100%; min-width: 118px; height: var(--tap); padding: 0 34px 0 56px; border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(15, 19, 25, 0.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa7b6' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 13px center / 14px;
  box-shadow: inset 0 1px 0 rgba(240, 246, 252, 0.05); font: 500 13px/1 var(--mono); letter-spacing: 0.02em;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.3s;
}
.select .pick-trigger:hover { border-color: var(--line-3); background-color: rgba(25, 33, 43, 0.6); }
.select .pick-trigger.is-open, .select .pick-trigger:focus-visible { outline: 0; border-color: rgba(88, 174, 255, 0.7); box-shadow: 0 0 0 4px rgba(47, 140, 255, 0.12), inset 0 1px 0 rgba(156, 235, 255, 0.12); }
@media (max-width: 767px) { .select .pick-trigger { min-width: 0; } }

/* the light streaks travel past the right edge; keep them inside their bars so they never widen the page */
.bar, .player-bar { overflow: clip; }
.bar::after, .player-bar::after { bottom: 0; }

/* Scrollbars: one look on every PACPlay page. Thin, rounded, no track, in the brand blue; brighter on hover. */
* { scrollbar-width: thin; scrollbar-color: rgba(120, 190, 255, 0.32) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb { border: 3px solid transparent; border-radius: 999px; background: linear-gradient(180deg, rgba(156, 235, 255, 0.42), rgba(47, 140, 255, 0.42)) padding-box; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, rgba(156, 235, 255, 0.75), rgba(47, 140, 255, 0.75)) padding-box; }

/* Dialogs: a soft fade in when one opens, a fade out when it closes (see dialogs.ts) */
dialog[open] { animation: dlg-in 0.22s cubic-bezier(0.2, 0.7, 0.1, 1) both; }
dialog[open]::backdrop { animation: dlg-fade-in 0.22s ease both; }
dialog.is-closing[open] { animation: dlg-out 0.18s ease both; pointer-events: none; }
dialog.is-closing[open]::backdrop { animation: dlg-fade-out 0.18s ease both; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(8px) scale(0.985); } }
@keyframes dlg-out { to { opacity: 0; transform: translateY(6px) scale(0.985); } }
@keyframes dlg-fade-in { from { opacity: 0; } }
@keyframes dlg-fade-out { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { dialog[open], dialog[open]::backdrop, dialog.is-closing[open], dialog.is-closing[open]::backdrop { animation: none; } }
