@font-face {
  font-family: Figtree;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./fonts/figtree-medium.woff2") format("woff2");
}
@font-face {
  font-family: Figtree;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./fonts/figtree-bold.woff2") format("woff2");
}

:root {
  --bg: #121016;
  --bg-2: #1b171f;
  --ink: #f4efe8;
  --muted: #c6bfb6;
  --line: #2c2833;
  --accent: #ff4d6d;
  --accent-deep: #ff7a90;
  --card: #1c1822;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  min-height: 100dvh;
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 8% -10%, #3a2436 0%, transparent 60%),
    radial-gradient(800px 500px at 100% 0%, #1c2a3a 0%, transparent 55%),
    radial-gradient(900px 600px at 80% 120%, #2a1e18 0%, transparent 50%),
    var(--bg);
  font: 500 16px/1.5 Figtree, system-ui, -apple-system, "Segoe UI", sans-serif;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}
.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--ink);
  color: var(--bg);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 10;
}
.skip:focus { top: 12px; }

.wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; position: relative; z-index: 2; }

header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 48px 0 36px;
}
@media (min-width: 900px) {
  header { padding: 64px 0 44px; }
  .tagline { max-width: none; }
}
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
}
.logo img, .logo svg.mark {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  flex: none;
}
.wordmark {
  font-family: Figtree, system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(34px, 5.6vw, 52px);
  letter-spacing: -0.045em;
  line-height: 1;
}
.tagline {
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 500;
  max-width: 40rem;
  letter-spacing: -0.01em;
}

h1.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.grid {
  list-style: none;
  margin: 0;
  padding: 0 0 64px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

.card {
  margin: 0;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #ffffff0f;
  box-shadow: 0 18px 40px #00000055;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card-hit {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.card-hit:focus { outline: none; }
.card-hit:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius);
}
@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-5px);
    border-color: #ffffff22;
    box-shadow: 0 24px 50px #00000070;
  }
  .card:hover .cover img { transform: scale(1.04); }
  .card:hover .play { background: var(--accent); color: #1d0a12; }
}
.cover {
  aspect-ratio: 800 / 470;
  background: #2a2430;
  overflow: hidden;
}
.cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.meta {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "genre play"
    "title play"
    "pitch pitch";
  gap: 4px 16px;
  align-items: center;
  padding: 16px 18px 18px;
}
.genre {
  grid-area: genre;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  padding: 0;
  border-radius: 0;
}
.meta h2, .meta h3 {
  grid-area: title;
  margin: 0;
  font-family: Figtree, system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 2.2vw, 26px);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.meta p {
  grid-area: pitch;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}
.play {
  grid-area: play;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  min-height: 40px;
  min-width: 76px;
  padding: 0 16px;
  margin: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  box-shadow: none;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 48px;
  color: var(--muted);
  font-size: 14px;
  position: relative;
  z-index: 2;
}
footer .wrap { display: flex; flex-direction: column; gap: 12px; }
footer p { margin: 0; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer a { color: var(--accent-deep); text-decoration: none; }
footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
footer a:focus { outline: none; }
footer a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.draft-tag { font-size: 12px; opacity: .75; }

@media (prefers-reduced-motion: reduce) {
  .card, .play, .cover img { transition: none; }
}

/* Hub v2 */
header.top { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 28px 0 8px; }
.topnav { display: flex; gap: 6px 20px; flex-wrap: wrap; font-size: 15px; }
.topnav a, .features a, .log a, .card-actions a { color: var(--ink); text-decoration: none; }
.topnav a:hover, .features a:hover, .log a:hover, .card-actions a:hover { color: var(--accent-deep); }
.hero { padding: 54px 0 40px; }
.hero h1 { margin: 0 0 18px; font-size: clamp(40px, 7vw, 82px); line-height: .98; letter-spacing: -0.055em; max-width: 13ch; }
.hero .tagline { max-width: 44rem; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 0; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid #ffffff30; color: var(--ink); text-decoration: none; font-weight: 700; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #1d0a12; }
.btn:hover { transform: translateY(-1px); }
.updates { display: grid; gap: 22px; grid-template-columns: 1fr; padding-bottom: 44px; }
@media (min-width: 860px) { .updates { grid-template-columns: 1.05fr 1fr; } }
.panel { background: #1c18229c; border: 1px solid #ffffff12; border-radius: var(--radius); padding: 22px; }
.panel h2, .section-h, .features h2, .faq h2 { margin: 0 0 14px; font-size: 22px; letter-spacing: -0.03em; }
.newest { display: grid; gap: 14px; color: inherit; text-decoration: none; }
.newest img { width: 100%; height: auto; border-radius: 12px; display: block; }
.newest span { color: var(--muted); }
.newest strong { color: var(--ink); font-size: 19px; }
.log { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.log li { color: var(--muted); font-size: 15px; border-bottom: 1px solid #ffffff10; padding-bottom: 12px; }
.log li:last-child { border: 0; padding: 0; }
.log time { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.log a { font-weight: 700; }
.ver { font-size: 12px; color: #c2adee; }
.card { display: flex; flex-direction: column; }
.card-hit { flex: 1; }
.card-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 18px 16px; font-size: 14px; }
.card-actions a { font-weight: 700; color: var(--accent-deep); min-height: 44px; display: inline-flex; align-items: center; }
.offline-btn { font: inherit; font-weight: 700; font-size: 13px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: #ffffff0d; color: var(--ink); border: 1px solid #ffffff26; cursor: pointer; text-align: right; }
.offline-btn.saved { border-color: #6bd7bd88; color: #a9f0dc; }
.offline-btn:disabled { opacity: .7; cursor: default; }
.features { display: grid; gap: 22px 40px; grid-template-columns: 1fr; padding: 10px 0 40px; }
@media (min-width: 860px) { .features { grid-template-columns: 1fr 1fr; } }
.features p { color: var(--muted); margin: 0 0 10px; max-width: 38rem; }
.faq { padding-bottom: 60px; }
.faq details, .faq h2 { max-width: 860px; }
.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; }
.faq p { color: var(--muted); margin: 10px 0 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Adults 18+ (simulated casino, play chips only) — kept apart from the family list. */
.adults { margin-top: 28px; padding-top: 18px; border-top: 1px dashed rgba(255,255,255,.18); }
.adults .age18 { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid #ff6b81; color: #ff6b81; font-size: 13px; font-weight: 900; vertical-align: middle; margin-right: 6px; }
.cover { position: relative; }
.age18-flag { position: absolute; top: 10px; left: 10px; z-index: 2; display: inline-grid; place-items: center; min-width: 52px; height: 34px; padding: 0 10px; border-radius: 9px; background: #b3262e; color: #fff; font-size: 17px; font-weight: 900; border: 2px solid rgba(255,255,255,.9); box-shadow: 0 2px 10px rgba(0,0,0,.45); pointer-events: none; }
.adults-note, .adults-help { max-width: 70ch; opacity: .85; font-size: 14px; margin: 0 0 14px; }
.adults-help { margin-top: 14px; font-size: 13px; opacity: .7; }
