/* iCollectHub Arcade — dark navy, warm cream, one accent. */
:root {
  --bg: #0e1220;
  --bg-2: #131a2e;
  --card: #192140;
  --line: #2a3556;
  --cream: #f4ead5;
  --muted: #aab2c8;
  --accent: #ff7a3d;
  --accent-ink: #1a0d05;
  --radius: 14px;
  --font-head: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --font-px: "Press Start 2P", ui-monospace, monospace;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--cream);
  font: 400 17px/1.6 var(--font-body); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(14,18,32,.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.head-in { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cream); }
.brand-name { font: 800 22px/1 var(--font-head); letter-spacing: -.02em; }
.brand-name b { color: var(--accent); font-weight: 800; }
.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; padding: 10px 14px; border-radius: 10px; font-weight: 600; color: var(--muted); }
.nav a:hover { color: var(--cream); background: rgba(255,255,255,.06); }
.nav a[aria-current="page"] { color: var(--cream); box-shadow: inset 0 -3px 0 var(--accent); border-radius: 10px 10px 0 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 16px/1 var(--font-body); padding: 13px 20px; border-radius: 12px; border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: transform .12s, background .12s, border-color .12s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #ff8e58; }
.btn-ghost { background: rgba(255,255,255,.06); color: var(--cream); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--cream); }
.btn-lg { font-size: 18px; padding: 17px 28px; border-radius: 14px; }
.btn-sm { font-size: 14px; padding: 9px 14px; border-radius: 10px; }
.btn-primary.btn-lg { box-shadow: 0 8px 28px -8px var(--accent); }

.kicker { font: 400 11px/1.6 var(--font-px); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; min-height: min(78vh, 720px); display: flex; align-items: flex-end; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; }
.hero-shade { position: absolute; inset: 0; z-index: -2; background:
  linear-gradient(90deg, rgba(14,18,32,.96) 0%, rgba(14,18,32,.78) 38%, rgba(14,18,32,.12) 75%),
  linear-gradient(0deg, var(--bg) 0%, rgba(14,18,32,0) 38%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0,0,0,.10) 0 1px, transparent 1px 3px); mix-blend-mode: multiply; }
.hero-in { padding-top: 90px; padding-bottom: 56px; }
.hero h1 { font-size: clamp(44px, 7.4vw, 96px); font-weight: 800; max-width: 12ch; text-wrap: balance; text-shadow: 0 4px 30px rgba(0,0,0,.45); }
.hero-line { font-size: clamp(18px, 2vw, 23px); max-width: 34ch; margin: 20px 0 12px; color: var(--cream); }
.hero-meta { color: var(--muted); font-size: 15px; margin-bottom: 26px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- intro ---------- */
.intro { padding: 56px 0 8px; }
.intro-in > * { max-width: 860px; }
.intro-title { font-size: clamp(28px, 4vw, 44px); font-weight: 800; margin-bottom: 14px; }
.intro-text { color: var(--muted); font-size: 19px; max-width: 62ch; }
.cat-row { list-style: none; display: flex; gap: 10px; flex-wrap: wrap; padding: 0; margin: 22px 0 0; }
.cat-row a { display: inline-block; text-decoration: none; padding: 10px 18px; border-radius: 999px; border: 2px solid var(--line); font-weight: 700; background: var(--bg-2); }
.cat-row a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.section-tight { padding-top: 28px; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.section h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; }
.lede { color: var(--muted); font-size: 19px; max-width: 60ch; margin: 12px 0 0; }
.more { color: var(--accent); font-weight: 700; text-decoration: none; }
.more:hover { text-decoration: underline; }
.page-hero { padding: 64px 0 24px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.page-hero h1 { font-size: clamp(36px, 6vw, 68px); font-weight: 800; max-width: 18ch; text-wrap: balance; }

/* ---------- filters ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; }
.chip { font: 700 15px/1 var(--font-body); padding: 11px 18px; border-radius: 999px; background: var(--bg-2); color: var(--cream); border: 2px solid var(--line); cursor: pointer; }
.chip:hover { border-color: var(--cream); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip[hidden] { display: none; }
.count { color: var(--muted); font-size: 15px; margin-bottom: 18px; min-height: 1.6em; }

/* ---------- game cards ---------- */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .18s, border-color .18s, box-shadow .18s; display: flex; flex-direction: column; }
.card[hidden] { display: none; }
.card:hover, .card:focus-within { transform: translateY(-4px); border-color: var(--a, var(--accent)); box-shadow: 0 16px 40px -18px var(--a, var(--accent)); }
.card-link { display: flex; flex-direction: column; flex: 1; text-decoration: none; color: inherit; }
.card-art { position: relative; aspect-ratio: 16 / 10; background: #0a0e1a; overflow: hidden; }
.card-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .card-art img { transform: scale(1.05); }
.card-art::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: var(--a, var(--accent)); }
.card-body { padding: 16px 18px 20px; flex: 1; }
.card h3 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 15px; line-height: 1.5; margin: 0 0 12px; }
.card-play { position: absolute; right: 14px; top: 14px; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 13px; padding: 7px 14px; border-radius: 999px; opacity: 0; transform: translateY(-4px); transition: .18s; pointer-events: none; }
.card:hover .card-play, .card:focus-within .card-play { opacity: 1; transform: none; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.tags li { font-size: 12px; font-weight: 700; letter-spacing: .02em; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.07); color: var(--cream); }
.badge { position: absolute; left: 12px; top: 12px; background: var(--cream); color: #1b1b2a; font-weight: 800; font-size: 12px; padding: 5px 11px; border-radius: 999px; }
.fav { position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--line); background: rgba(14,18,32,.85); color: var(--muted); cursor: pointer; transition: .15s; }
.fav svg { fill: none; stroke: currentColor; stroke-width: 2; }
.fav:hover { color: var(--cream); border-color: var(--cream); }
.fav[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }
.fav[aria-pressed="true"] svg { fill: currentColor; }
.empty { color: var(--muted); padding: 32px 0; }

/* ---------- workshop ---------- */
.card-ws .card-play { background: var(--cream); }
.vote { display: flex; align-items: center; gap: 12px; padding: 0 18px 18px; }
.btn-vote { background: transparent; border-color: var(--cream); color: var(--cream); padding: 11px 16px; font-size: 15px; }
.btn-vote:hover { background: var(--cream); color: #1b1b2a; }
.btn-vote[disabled] { border-color: var(--line); color: var(--muted); background: transparent; cursor: default; }
.vote-n { color: var(--muted); font-size: 15px; font-weight: 600; }
.note { color: var(--muted); font-size: 14px; margin-top: 18px; }
.ask { margin-top: 56px; padding: 32px; border: 2px dashed var(--line); border-radius: var(--radius); text-align: center; }
.ask h2 { font-size: 28px; margin-bottom: 8px; }
.ask p { color: var(--muted); }

/* ---------- player ---------- */
.page-play .site-head { position: static; }
.player-bar { display: flex; align-items: center; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.back { text-decoration: none; color: var(--muted); font-weight: 700; white-space: nowrap; }
.back:hover { color: var(--cream); }
.player-title { flex: 1; min-width: 160px; }
.player-title h1 { font-size: clamp(20px, 2.6vw, 28px); font-weight: 800; }
.player-actions { display: flex; gap: 8px; }
.player-wrap { max-width: 1400px; }
.player-stage { position: relative; background: #000; border: 1px solid var(--line); border-top: 4px solid var(--a, var(--accent)); border-radius: 12px; overflow: hidden; height: min(82vh, calc(100vh - 150px)); min-height: 440px; }
.player-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.player-stage:fullscreen { border: 0; border-radius: 0; height: 100vh; }
.player-info { padding-top: 22px; padding-bottom: 56px; max-width: 900px; }
.player-line { font-size: 20px; margin-bottom: 14px; }
.player-help { color: var(--muted); font-size: 14px; margin-top: 18px; }
.stage-note { background: var(--card); border-left: 4px solid var(--accent); padding: 12px 16px; border-radius: 8px; font-size: 15px; }
.stage-note a { color: var(--accent); font-weight: 700; }

/* ---------- prose / footer ---------- */
.prose { max-width: 700px; font-size: 19px; }
.prose a:not(.btn) { color: var(--accent); }
.site-foot { border-top: 1px solid var(--line); background: var(--bg-2); margin-top: 40px; padding: 44px 0 28px; }
.foot-in { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.foot-brand { font: 800 24px/1 var(--font-head); margin-bottom: 8px; }
.foot-brand b { color: var(--accent); }
.foot-tag { color: var(--muted); margin: 0; }
.foot-nav { display: flex; gap: 8px 22px; flex-wrap: wrap; align-items: flex-start; }
.foot-nav a { color: var(--cream); text-decoration: none; font-weight: 600; }
.foot-nav a:hover { color: var(--accent); }
.foot-small { color: var(--muted); font-size: 14px; margin-top: 30px; }

/* ---------- small screens ---------- */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .head-in { min-height: 58px; }
  .brand-name { font-size: 19px; }
  .nav a { padding: 9px 10px; font-size: 15px; }
  .hero { min-height: 0; flex-direction: column; justify-content: flex-start; align-items: stretch; }
  .hero-art { position: static; height: auto; aspect-ratio: 16 / 10; z-index: 0; }
  .hero-shade { display: none; }
  .hero::after { display: none; }
  .hero-in { padding-top: 22px; padding-bottom: 40px; }
  .hero h1 { font-size: clamp(38px, 12vw, 56px); }
  .hero-cta .btn { flex: 1 1 auto; }
  .section { padding: 44px 0; }
  .card-play { display: none; }
  .player-bar { gap: 10px; }
  .player-actions { width: 100%; }
  .player-actions .btn { flex: 1; }
  .player-stage { height: calc(100dvh - 190px); min-height: 380px; }
}
@media (hover: none) { .card:hover { transform: none; box-shadow: none; border-color: var(--line); } .card:hover .card-art img { transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .head-in { gap: 8px; }
  .brand { gap: 7px; }
  .brand-mark { width: 24px; height: 24px; }
  .brand-name { font-size: 17px; }
  .nav { gap: 0; }
  .nav a { padding: 8px 8px; font-size: 14px; }
}
