@font-face { font-family: "Space Grotesk"; src: url("/ayza/fonts/space-grotesk.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/ayza/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #080A10;
  --panel: #101725;
  --surface: #182236;
  --text: #F5F7FC;
  --muted: #A9B5C8;
  --faint: #7d8aa1;
  --accent: #388BFF;
  --accent-light: #8AD9FF;
  --border: #2A3850;
  --radius-card: 16px;
  --radius-button: 10px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: ui-monospace, "IBM Plex Mono", SFMono-Regular, Menlo, monospace;
  --ease-ui: cubic-bezier(.2, .8, .2, 1);
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}
body.has-mini { padding-bottom: 92px; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; touch-action: manipulation; }
a { touch-action: manipulation; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); padding: 8px 14px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.no-scrollbar, .slides, .show-tabs, .chips { scrollbar-width: none; }
.slides::-webkit-scrollbar, .show-tabs::-webkit-scrollbar, .chips::-webkit-scrollbar { display: none; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(8, 10, 16, .74);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(42, 56, 80, .5);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; font: 600 .82rem/1 var(--font-display); letter-spacing: .22em; text-transform: uppercase; }
.brand img { width: 28px; height: 28px; object-fit: contain; }
.links { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 28px); }
.links a { font-size: .9rem; color: var(--muted); transition: color .2s var(--ease-ui); padding: 10px 0; }
.links a:hover { color: var(--text); }
.links a.pill { color: var(--text); padding: 8px 14px; border: 1px solid rgba(56, 139, 255, .55); border-radius: 999px; transition: background .2s var(--ease-ui), border-color .2s var(--ease-ui); }
.links a.pill:hover { background: rgba(56, 139, 255, .14); border-color: var(--accent); }
.menu-btn { display: none; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--text); border-radius: 2px; transition: transform .25s var(--ease-ui); }
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 25px; }
.nav.open .menu-btn span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.open .menu-btn span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; text-align: center; overflow: hidden;
  padding: clamp(56px, 11vh, 120px) var(--gutter) clamp(64px, 11vh, 112px);
  display: flex; flex-direction: column; align-items: center;
}
.glow {
  position: absolute; left: 50%; top: 18%; width: min(720px, 120vw); aspect-ratio: 1;
  transform: translate(-50%, -30%);
  background: radial-gradient(closest-side, rgba(56, 139, 255, .16), rgba(56, 139, 255, 0) 70%);
  pointer-events: none;
}
.hero-logo { position: relative; width: clamp(140px, 22vw, 220px); height: auto; margin-bottom: clamp(32px, 6vh, 56px); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; text-wrap: balance; }
h1 { position: relative; font-size: clamp(2.3rem, 6.4vw, 4.75rem); line-height: 1.04; letter-spacing: -.035em; }
h1 span { color: var(--muted); }
.lede { position: relative; max-width: 34rem; margin: 22px auto 0; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.125rem); text-wrap: pretty; }
.cta { position: relative; display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 0 22px;
  border-radius: var(--radius-button); border: 1px solid var(--border); background: transparent; cursor: pointer;
  font-weight: 500; font-size: .95rem; white-space: nowrap;
  transition: background .2s var(--ease-ui), border-color .2s var(--ease-ui), transform .1s;
}
.btn:hover { border-color: #3d5172; background: var(--panel); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: #4f99ff; border-color: #4f99ff; }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: .875rem; }
.btn.disabled { color: var(--faint); border-color: var(--border); background: none; cursor: default; }
@media (pointer: coarse) { .btn.sm { min-height: 44px; } }

/* ---------- Sections ---------- */
.section { padding-top: clamp(64px, 10vh, 112px); padding-bottom: clamp(24px, 4vh, 40px); }
.head { margin-bottom: clamp(24px, 4vw, 40px); }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.label { margin: 0 0 12px; font: 500 .75rem/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-light); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); line-height: 1.12; letter-spacing: -.025em; }
.sub { margin: 12px 0 0; color: var(--muted); max-width: 36rem; }

/* ---------- Game tiles: identical size, structure and motion for every game ---------- */
.grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(14px, 2vw, 22px); }
.grid > .card { grid-column: span 2; }
/* centre an incomplete last row so no tile sits alone or bigger */
.grid > .card:nth-last-child(2):nth-child(3n+1) { grid-column: 2 / span 2; }
.grid > .card:last-child:nth-child(3n+1) { grid-column: 3 / span 2; }

.card {
  --g: var(--accent);
  position: relative; display: flex; flex-direction: column; min-width: 0;
  border-radius: var(--radius-card); overflow: hidden;
  background: linear-gradient(180deg, var(--panel), #0c111c); border: 1px solid var(--border);
  transition: transform .22s var(--ease-ui), border-color .22s var(--ease-ui), box-shadow .22s var(--ease-ui);
}
.card .media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); }
.card .media img, .s-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .24s var(--ease-ui); }
.card .media::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: var(--g); opacity: .0; transition: opacity .22s var(--ease-ui); }
/* designed title card if a game's artwork can't load */
.noimg { display: grid !important; place-items: center; align-content: center; gap: 14px; text-align: center;
  background: radial-gradient(90% 90% at 50% 30%, color-mix(in srgb, var(--g) 28%, transparent), transparent 70%), linear-gradient(160deg, #141d30, #0a0e17) !important; }
.noimg img { display: none; }
.noimg::before { content: ""; width: 40px; height: 40px; background: url("/ayza/img/emblem-256.png") center / contain no-repeat; opacity: .55; }
.noimg::after { content: attr(data-title) !important; position: static !important; height: auto !important; opacity: 1 !important; background: none !important;
  padding: 0 16px; font: 600 clamp(1.6rem, 4vw, 2.6rem)/1.05 var(--font-display); letter-spacing: -.03em; text-transform: uppercase; color: var(--text);
  text-shadow: 0 0 32px color-mix(in srgb, var(--g) 60%, transparent); }
.card .body { flex: 1; padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; }
.card h3 { font-size: 1.375rem; line-height: 1.2; letter-spacing: -.015em; }
.card .meta { margin: 0; font-size: .85rem; color: var(--muted); }
.card .blurb { margin: 4px 0 0; font-size: .95rem; color: #cdd6e4; text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 16px; }
.tag { position: absolute; top: 12px; left: 12px; z-index: 1; font-size: .7rem; letter-spacing: .06em; padding: 5px 9px; border-radius: 999px; background: rgba(8, 10, 16, .74); border: 1px solid var(--border); color: var(--muted); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); pointer-events: none; }

@media (hover: hover) {
  .card:hover { transform: translateY(-6px); }
  .card:hover .media img { transform: scale(1.03); }
}
.card:hover, .card:focus-within {
  border-color: color-mix(in srgb, var(--g) 55%, var(--border));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--g) 22%, transparent), 0 18px 48px -22px color-mix(in srgb, var(--g) 55%, transparent);
}
.card:hover .media::after, .card:focus-within .media::after { opacity: 1; }
.card:focus-within { transform: translateY(-6px); }

.dots { display: none; justify-content: center; gap: 6px; margin-top: 16px; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--border); transition: width .25s var(--ease-ui), background .25s var(--ease-ui); }
.dots i.on { width: 18px; background: var(--accent-light); }

/* ---------- Showcase: one equal slide per game ---------- */
.arrows { display: flex; gap: 8px; flex: none; }
.arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: none; cursor: pointer; display: grid; place-items: center; transition: background .2s, border-color .2s, transform .1s; }
.arrow:hover { background: var(--panel); border-color: #3d5172; }
.arrow:active { transform: scale(.94); }
.arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.show-tabs { display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(var(--gutter) * -1) 18px; padding: 2px var(--gutter); }
.tab { flex: none; position: relative; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border); background: none; color: var(--muted); font-size: .875rem; cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.tab::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--g); margin-right: 8px; vertical-align: 1px; opacity: .55; }
.tab:hover { color: var(--text); }
.tab[aria-current=true] { color: var(--text); border-color: color-mix(in srgb, var(--g) 60%, var(--border)); background: color-mix(in srgb, var(--g) 10%, transparent); }
.tab[aria-current=true]::before { opacity: 1; }
@media (pointer: coarse) { .tab { min-height: 44px; } }

.slides { position: relative; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; border-radius: 20px; }
.slide {
  --g: var(--accent);
  position: relative; flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; min-width: 0;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(20px, 3vw, 44px); align-items: center;
  padding: clamp(16px, 2.4vw, 28px); border: 1px solid var(--border); border-radius: 20px;
  background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--g) 9%, transparent), transparent 60%), linear-gradient(180deg, var(--panel), #0b0f19);
}
.s-art { position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: 0 24px 60px -30px color-mix(in srgb, var(--g) 60%, transparent); }
.s-body { min-width: 0; padding: 4px 4px 4px 0; }
.s-genre { margin: 0 0 10px; font: 500 .75rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--g); }
.s-body h3 { font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1.1; letter-spacing: -.025em; }
.s-about { margin: 14px 0 0; color: var(--muted); text-wrap: pretty; }
.hl { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.hl li { position: relative; padding-left: 20px; font-size: .95rem; color: #d6deea; }
.hl li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg); background: var(--g); }
.s-plat { margin: 18px 0 0; font-size: .875rem; color: var(--muted); }
.s-plat span { display: inline-block; margin-right: 10px; font: 500 .7rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.slide .actions { padding-top: 22px; }

/* ---------- Player ---------- */
.player { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: clamp(16px, 2vw, 22px); align-items: start; }
.now, .list { border: 1px solid var(--border); border-radius: var(--radius-card); background: linear-gradient(180deg, var(--panel), #0c111c); }
.now { padding: 22px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: calc(var(--nav-h) + 20px); }
.art { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: radial-gradient(circle at 50% 40%, #16243d, var(--bg)); display: grid; place-items: center; }
.art img { width: 100%; height: 100%; object-fit: cover; }
.art img.logo, .mini img.logo { width: 46%; height: auto; object-fit: contain; }
.np-text { min-width: 0; }
.np-text p { margin: 0; }
.np-title { font: 600 1.25rem/1.25 var(--font-display); letter-spacing: -.01em; overflow-wrap: anywhere; }
.np-game { color: var(--muted); font-size: .875rem; margin-top: 4px !important; }
.seek { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; font: 500 .75rem/1 var(--font-mono); color: var(--muted); }
.transport { display: flex; align-items: center; gap: 6px; }
.ic { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 0; background: none; border-radius: 50%; cursor: pointer; color: var(--text); transition: background .15s, transform .1s; }
.ic:hover { background: var(--surface); }
.ic:active { transform: scale(.94); }
.ic svg { width: 22px; height: 22px; fill: currentColor; }
.ic.play { width: 52px; height: 52px; background: var(--accent); color: #fff; }
.ic.play:hover { background: #4f99ff; }
.ic .i-pause, .playing .ic .i-play { display: none; }
.playing .ic .i-pause { display: block; }
.vol { margin-left: auto; width: 96px; display: flex; }

input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 24px; background: transparent; cursor: pointer; --p: 0%; touch-action: none; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--accent) var(--p), var(--border) var(--p)); }
input[type=range]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--border); }
input[type=range]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--accent); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%; background: var(--text); border: 0; }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--text); border: 0; }

.list { padding: 14px; min-width: 0; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 4px 12px; }
.chip { flex: none; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); background: none; color: var(--muted); font-size: .85rem; cursor: pointer; transition: all .18s var(--ease-ui); }
.chip:hover { color: var(--text); }
.chip[aria-pressed=true] { background: var(--text); border-color: var(--text); color: var(--bg); }
@media (pointer: coarse) { .chip { min-height: 44px; } }
.tracks { list-style: none; margin: 0; padding: 0; }
.tracks button { width: 100%; min-height: 56px; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 12px; padding: 10px; border: 0; background: none; border-radius: 10px; text-align: left; cursor: pointer; transition: background .15s; }
.tracks button:hover { background: rgba(24, 34, 54, .7); }
.tracks .n { font: 500 .75rem/1 var(--font-mono); color: #6c7a92; text-align: right; }
.tracks .t { min-width: 0; }
.tracks .t b { display: block; font-weight: 500; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tracks .t small { color: var(--muted); font-size: .8rem; }
.tracks .eq { width: 14px; height: 12px; display: none; gap: 2px; align-items: flex-end; }
.tracks .eq i { width: 3px; background: var(--accent-light); border-radius: 1px; height: 40%; }
.tracks .on button { background: rgba(56, 139, 255, .1); }
.tracks .on b { color: var(--accent-light); }
.tracks .on .eq { display: flex; }
.playing .tracks .on .eq i { animation: eq .9s ease-in-out infinite alternate; }
.tracks .on .eq i:nth-child(2) { animation-delay: -.3s; height: 80%; }
.tracks .on .eq i:nth-child(3) { animation-delay: -.6s; height: 60%; }
@keyframes eq { from { height: 25%; } to { height: 100%; } }
.more { display: block; width: 100%; min-height: 44px; margin-top: 6px; border: 1px dashed var(--border); border-radius: 10px; background: none; color: var(--muted); font-size: .875rem; cursor: pointer; }
.more:hover { color: var(--text); border-color: #3d5172; }

/* Mini player */
.mini {
  position: fixed; z-index: 9; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(520px, calc(100% - 24px)); display: flex; align-items: center; gap: 4px; padding: 8px 8px 8px 8px;
  border-radius: 16px; border: 1px solid var(--border);
  background: rgba(16, 23, 37, .86); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 18px 50px -18px rgba(0, 0, 0, .8);
  animation: mini-in .28s var(--ease-ui);
}
@keyframes mini-in { from { opacity: 0; transform: translate(-50%, 12px); } }
.mini-info { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; border: 0; background: none; padding: 0; text-align: left; cursor: pointer; min-height: 44px; }
.mini img { width: 44px; height: 44px; flex: none; border-radius: 9px; object-fit: cover; background: var(--surface); }
.mini img.logo { padding: 8px; width: 44px; height: 44px; }
.mini-info span { min-width: 0; display: grid; }
.mini-info b { font-weight: 500; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-info small { font-size: .75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- About ---------- */
.about { max-width: 760px; text-align: center; padding-bottom: clamp(64px, 11vh, 112px); }
.about p:not(.label) { color: var(--muted); font-size: 1.0625rem; margin: 16px auto 0; max-width: 36rem; text-wrap: pretty; }
.about h2 { margin-bottom: 8px; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid rgba(42, 56, 80, .6); padding: 0 0 36px; font-size: .875rem; color: var(--muted); }
.feedback {
  display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap;
  margin: clamp(36px, 6vh, 56px) 0 clamp(28px, 5vh, 44px); padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--border); border-radius: 20px;
  background: radial-gradient(100% 140% at 100% 0%, rgba(56, 139, 255, .14), transparent 60%), var(--panel);
}
.feedback h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); color: var(--text); }
.feedback p { margin: 6px 0 0; max-width: 34rem; }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-brand img { width: 24px; height: 24px; object-fit: contain; }
.foot-links { display: flex; gap: 4px 20px; flex-wrap: wrap; }
.foot-links a { padding: 10px 0; }
.foot-links a:hover { color: var(--text); }
.notice { margin-top: 14px; }
.notice summary { cursor: pointer; width: fit-content; min-height: 44px; display: flex; align-items: center; color: var(--faint); font-size: .8rem; list-style: none; }
.notice summary::-webkit-details-marker { display: none; }
.notice summary::after { content: "+"; margin-left: 6px; }
.notice[open] summary::after { content: "–"; }
.notice p { margin: 0; max-width: 62rem; font-size: .8rem; line-height: 1.6; color: var(--faint); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease-ui), transform .6s var(--ease-ui); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
  .grid > .card, .grid > .card:nth-last-child(2):nth-child(3n+1), .grid > .card:last-child:nth-child(3n+1) { grid-column: span 2; }
  .grid > .card:last-child:nth-child(odd) { grid-column: 2 / span 2; }
  .player { grid-template-columns: 1fr; }
  .now { position: static; display: grid; grid-template-columns: 120px 1fr; align-items: center; }
  .now .seek, .now .transport { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .slide { grid-template-columns: 1fr; align-items: start; }
  .s-body { padding: 0 4px 6px; }
}

@media (max-width: 820px) {
  .menu-btn { display: block; }
  .links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 18px;
    background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: 0 24px 40px -12px rgba(0, 0, 0, .7);
    opacity: 0; transform: translateY(-8px); visibility: hidden; pointer-events: none;
    transition: opacity .2s var(--ease-ui), transform .2s var(--ease-ui), visibility 0s .2s;
  }
  .nav.open .links { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition-delay: 0s; }
  .links a { font-size: 1.05rem; color: var(--text); padding: 14px 2px; border-bottom: 1px solid rgba(42, 56, 80, .55); }
  .links a.pill { margin-top: 14px; padding: 13px; text-align: center; border-bottom: 1px solid rgba(56, 139, 255, .55); background: rgba(56, 139, 255, .12); border-radius: 12px; }
}

/* Phones: tiles become a swipe row with peeking neighbours */
@media (max-width: 720px) {
  .grid {
    display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin: 0 calc(var(--gutter) * -1); padding: 6px var(--gutter) 10px; scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
  }
  .grid::-webkit-scrollbar { display: none; }
  .grid > .card, .grid > .card:nth-last-child(2):nth-child(3n+1), .grid > .card:last-child:nth-child(3n+1), .grid > .card:last-child:nth-child(odd) { grid-column: auto; }
  .grid > .card { scroll-snap-align: start; }
  .card:focus-within { transform: none; }
  .dots { display: flex; }
  .head-row .arrows { display: none; }
  .slide { padding: 12px; border-radius: 18px; }
  .s-art { border-radius: 12px; }
  .slide .actions .btn { flex: 1; }
}

@media (max-width: 620px) {
  .now { grid-template-columns: 88px 1fr; gap: 14px 16px; padding: 16px; }
  .vol { display: none; }
  .transport { justify-content: center; gap: 18px; }
  .list { padding: 10px; }
  .feedback .btn { width: 100%; }
  .foot-in { flex-direction: column; align-items: flex-start; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  .card:hover, .card:focus-within { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav, .mini { background: var(--panel); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* Direct browser play QR, accessible on desktop and mobile */
.scan-play { display:flex;align-items:center;gap:14px;margin-top:18px;padding:14px;border:1px solid var(--border);border-radius:14px;background:rgba(255,255,255,.035);max-width:420px; }
.qr-link { flex:0 0 108px;display:block;border-radius:9px;overflow:hidden;background:#fff; }
.qr-link img {display:block;width:108px;height:108px;}
.scan-copy {display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0;}
.scan-copy strong {font:600 .95rem var(--font-display);}
.scan-copy span {font-size:.78rem;line-height:1.5;color:var(--muted);}
.scan-copy a {font-size:.82rem;font-weight:600;text-decoration:underline;text-underline-offset:3px;color:var(--text);}
@media(max-width:480px){.scan-play{gap:10px;padding:10px}.qr-link{flex-basis:88px}.qr-link img{width:88px;height:88px}.scan-copy span{font-size:.72rem}}
