/* PlayDrop. Plum ink instead of black, one yellow for "do this next", and each game's own accent
   colour taking over the hero. Cards carry their release month because the site is a shelf of drops. */

:root {
  --bg: #14101f;
  --surface: #1e1830;
  --raised: #2a2242;
  --line: #3d3459;
  --text: #f6f1ff;
  --muted: #b0a6cc;
  --drop: #ffd23f;
  --drop-ink: #2a1f00;
  --accent: #9b82ff; /* replaced per game */
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 48px);
  --edge: max(var(--gutter), calc((100vw - 1400px) / 2 + var(--gutter)));
  --display: 'Bricolage Grotesque', 'Arial Rounded MT Bold', 'Trebuchet MS', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.55 var(--body);
}
main { flex: 1; outline: none; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--drop); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 50; padding: 8px 14px; border-radius: 8px; background: var(--drop); color: var(--drop-ink); font-weight: 700; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- header ---------- */
.site-top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
}
.bar { display: flex; align-items: center; gap: clamp(14px, 3vw, 32px); padding: 12px var(--edge); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__name { font: 800 1.5rem/1 var(--display); letter-spacing: -0.03em; }
.nav { display: flex; gap: 6px; margin-right: auto; }
.nav a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 500; text-decoration: none; }
.nav a:hover, .nav a[aria-current='page'] { background: var(--surface); color: var(--text); }
.bar__end { display: flex; align-items: center; gap: 10px; }
.badge { padding: 3px 10px; border-radius: 999px; background: var(--drop); color: var(--drop-ink); font-size: 0.8rem; font-weight: 700; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 46px; padding: 0 24px;
  border: 2px solid transparent; border-radius: 999px;
  font: 700 1rem var(--body); text-decoration: none; cursor: pointer;
}
.btn:disabled { opacity: 0.6; cursor: default; }
.btn--drop { background: var(--drop); color: var(--drop-ink); }
.btn--drop:hover:not(:disabled) { background: #ffe07a; }
.btn--ghost { border-color: var(--line); background: transparent; color: var(--text); }
.btn--ghost:hover:not(:disabled) { border-color: var(--text); }
.btn--small { min-height: 38px; padding: 0 16px; font-size: 0.9rem; }
.linkbtn { justify-self: start; padding: 0; border: 0; background: none; color: var(--text); font: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- home: hero ---------- */
.hero { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: clamp(440px, 70vh, 660px); overflow: hidden; }
.hero__art { position: absolute; inset: 0; z-index: -2; background-position: 62% center; background-size: cover; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--bg) 94%, transparent) 0%, color-mix(in srgb, var(--bg) 60%, transparent) 42%, transparent 78%),
    linear-gradient(0deg, var(--bg) 0%, transparent 38%),
    radial-gradient(90% 80% at 85% 20%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%);
}
.hero__inner { width: 100%; padding: 0 var(--edge) clamp(32px, 7vw, 72px); }
.hero__copy { max-width: 36rem; animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero__new {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  padding: 6px 14px 6px 10px; border: 1px solid var(--line); border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 65%, transparent); font-weight: 700;
}
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: ping 2.2s infinite; }
.hero__title { font-size: clamp(2.9rem, 9.5vw, 6.6rem); line-height: 0.9; letter-spacing: -0.035em; }
.hero__tagline { max-width: 30rem; margin: 18px 0 26px; color: #ddd5f2; font-size: clamp(1.05rem, 2vw, 1.25rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__note { margin: 14px 0 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- home: shelf ---------- */
.shelf { padding-top: clamp(28px, 5vw, 56px); }
.shelf__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin: 0 var(--edge) 14px; }
.shelf__head h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.shelf__hint { margin: 0; color: var(--muted); font-size: 0.95rem; }
.row { display: flex; gap: 16px; padding: 6px var(--edge) 22px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.row > * { scroll-snap-align: start; }

.card { flex: 0 0 clamp(230px, 26vw, 320px); display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.card:focus-visible { outline: none; }
.card__art { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--surface); outline: 2px solid transparent; outline-offset: 3px; transition: transform 0.18s, outline-color 0.18s; }
.card:hover .card__art, .card:focus-visible .card__art { transform: translateY(-4px); outline-color: var(--accent); }
.card__art img { width: 100%; height: 100%; object-fit: cover; }
.card__title { font: 800 1.2rem/1.1 var(--display); letter-spacing: -0.01em; }
.card__meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 0.9rem; }
.card--next { cursor: default; }
.card--next .card__art { display: grid; place-items: center; padding: 16px; border: 2px dashed var(--line); background: transparent; color: var(--muted); text-align: center; }
.card--next:hover .card__art { transform: none; outline-color: transparent; }

.band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  margin: 8px var(--edge) 0; padding: clamp(20px, 3vw, 32px);
  border-radius: 22px; background: var(--surface);
}
.band h2 { font-size: 1.5rem; }
.band p { margin: 4px 0 0; color: var(--muted); }

/* ---------- pages ---------- */
.page { padding: clamp(20px, 3vw, 36px) var(--edge) 56px; }
.page__title { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.03em; }
.page__lede { max-width: 36rem; margin: 12px 0 28px; color: #ddd5f2; font-size: 1.1rem; }

/* ---------- play ---------- */
.back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; color: var(--muted); font-weight: 500; text-decoration: none; }
.back:hover { color: var(--text); }
.playhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.playhead h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); letter-spacing: -0.03em; }
.playhead__tools { display: flex; align-items: center; gap: 10px; }

.stage {
  --stage-h: max(240px, calc(100vh - 210px));
  position: relative; overflow: hidden;
  width: min(100%, calc(var(--stage-h) * 16 / 9)); aspect-ratio: 16 / 9; margin-inline: auto;
  border-radius: var(--radius); background: #05030a;
}
.stage:fullscreen { width: 100vw; height: 100vh; aspect-ratio: auto; border-radius: 0; }
.stage__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #05030a; }
.stage__msg { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 20px; text-align: center; }

.ad {
  position: absolute; inset: 0; display: grid; grid-template-rows: auto 1fr auto; gap: 12px; padding: clamp(12px, 2.5vw, 24px);
  background: radial-gradient(120% 90% at 85% 0%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 60%), var(--surface);
}
.ad__tag { justify-self: start; margin: 0; padding: 2px 10px; border: 1px solid var(--muted); border-radius: 6px; color: var(--muted); font-size: 0.85rem; font-weight: 700; }
.ad__slot { display: grid; place-content: center; padding: 16px; border: 2px dashed var(--line); border-radius: 12px; text-align: center; }
.ad__slot-title { margin: 0 0 6px; font: 800 clamp(1.2rem, 3vw, 2rem) / 1.1 var(--display); }
.ad__slot p:last-child { margin: 0; color: var(--muted); }
.ad__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.ad__foot p { margin: 0; }
.ad__bar { flex: 1 1 140px; height: 6px; overflow: hidden; border-radius: 99px; background: var(--raised); }
.ad__fill { display: block; height: 100%; background: var(--drop); transform: scaleX(0); transform-origin: left; }

.about { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px 48px; max-width: 60rem; margin: 28px auto 0; }
.about h2 { margin-bottom: 8px; font-size: 1.25rem; }
.about p { margin: 0; color: #ddd5f2; }
.about .controls p + p { margin-top: 8px; }
.more { margin: 36px calc(var(--edge) * -1) 0; }
.more__note { margin: 0 var(--edge) 12px; color: var(--muted); font-size: 0.95rem; }

/* ---------- pricing, forms, account ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; max-width: 46rem; }
.plan { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 28px; border-radius: 24px; background: var(--surface); }
.plan--yearly { background: var(--raised); outline: 2px solid var(--drop); }
.plan h2 { font-size: 1.4rem; }
.plan__price { margin: 0; color: var(--muted); }
.plan__amount { color: var(--text); font: 800 3.4rem/1 var(--display); letter-spacing: -0.04em; }
.plan__note { margin: 0; }
.chip { padding: 3px 10px; border-radius: 999px; background: var(--drop); color: var(--drop-ink); font-size: 0.85rem; font-weight: 700; }
.perks { margin: 32px 0 0; padding-left: 1.2em; color: #ddd5f2; }
.perks li { margin-bottom: 6px; }
.notice { max-width: 46rem; margin: 0 0 24px; padding: 16px 20px; border-radius: 16px; background: var(--raised); }
.notice p { margin: 0; }

.form { display: grid; gap: 16px; max-width: 26rem; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; }
.field input { min-height: 48px; padding: 0 14px; border: 2px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; }
.field input:focus-visible { outline: 3px solid var(--drop); outline-offset: 0; border-color: transparent; }
.field small { color: var(--muted); }
.error { min-height: 1.5em; margin: 0; color: #ff9aa8; }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0 0 24px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.dlg { max-width: min(92vw, 28rem); padding: 28px; border: 0; border-radius: 22px; background: var(--raised); color: var(--text); }
.dlg::backdrop { background: rgba(5, 3, 10, 0.72); }
.dlg h2 { margin-bottom: 12px; font-size: 1.6rem; }
.dlg__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.table th { color: var(--muted); font-weight: 500; }

.foot { margin-top: 40px; padding: 26px var(--edge); border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.foot p { margin: 0; }
.foot a { color: var(--text); }
.about a { color: var(--text); }

/* ---------- motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent); }
  70%, 100% { box-shadow: 0 0 0 10px transparent; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 560px) {
  .nav a:first-child { display: none; }
  /* The disabled "Sign in: coming soon" pill does nothing and made the top bar wider than a phone. */
  .bar__end .btn--soon { display: none; }
  .hero__art { background-position: 70% center; }
  /* On a phone the text sits at the bottom, so fade the art from below instead of from the left. */
  .hero::before {
    background:
      linear-gradient(0deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 88%, transparent) 42%, transparent 78%),
      radial-gradient(90% 80% at 85% 20%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%);
  }
  /* The stage is small here, so the ad keeps only what fits: tag, title, countdown, bar, link. */
  .ad { gap: 8px; padding: 12px; }
  .ad__tag { font-size: 0.75rem; }
  .ad__slot { padding: 8px; }
  .ad__slot-title { margin: 0; font-size: 1.1rem; }
  .ad__slot p:last-child { display: none; }
  .ad__foot { gap: 6px 14px; font-size: 0.9rem; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 10px; }
}

/* Leaderboards and the score bar under a game */
.scorebar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; max-width: 60rem; margin: 14px auto 0; padding: 12px 16px; border: 1px solid var(--drop); border-radius: var(--radius); background: var(--surface); }
.scorebar[hidden] { display: none; }
.stage .scorebar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; max-width: none; margin: 0; border-width: 1px 0 0; border-radius: 0; justify-content: center; background: rgba(18, 16, 28, 0.95); }
.scorebar strong { font-family: var(--display); font-size: 1.2rem; color: var(--drop); }
.scorebar__name { width: 8.5ch; min-height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); font: 700 1rem/1 var(--body); letter-spacing: 0.06em; }
.scorebar__msg { color: #ffb4a8; font-size: 0.9rem; }
.lb { --accent: #9b82ff; max-width: 40rem; }
.lb--inline { margin: 28px auto 0; max-width: 60rem; }
.lb h2 { margin-bottom: 12px; font-size: 1.25rem; }
.lb__list { margin: 0 0 16px; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lb__list li { display: grid; grid-template-columns: 3rem 1fr auto; gap: 8px; padding: 9px 16px; background: var(--surface); }
.lb__list li:nth-child(even) { background: #231c38; }
.lb__list li:first-child .lb__rank { color: var(--drop); }
.lb__list li.is-me { box-shadow: inset 4px 0 0 var(--accent); }
.lb__rank { color: var(--muted); font-variant-numeric: tabular-nums; }
.lb__name { font-weight: 700; letter-spacing: 0.04em; }
.lb__tag { margin-left: 8px; padding: 1px 7px; border-radius: 99px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.02em; background: rgba(255,255,255,.14); color: var(--muted); vertical-align: middle; }
.lb__score { font-variant-numeric: tabular-nums; font-weight: 700; }
.lb__empty { color: var(--muted); }
.lb__all { color: var(--muted); font-size: 0.95rem; }
.lb__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.lb__tab { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 700; }
.lb__tab[aria-selected='true'] { background: var(--drop); border-color: var(--drop); color: var(--drop-ink); }

/* Home slider: newest game first, then this week's most played */
.slider { position: relative; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slides > .slide { flex: 0 0 100%; scroll-snap-align: start; }
.slider__nav { position: absolute; top: 50%; z-index: 3; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; border: 1px solid var(--line); background: rgba(0,0,0,.5); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.slider__nav--prev { left: 12px; }
.slider__nav--next { right: 12px; }
.slider__nav:hover, .slider__nav:focus-visible { background: rgba(0,0,0,.75); }
.slider__dots { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 3; display: flex; justify-content: center; gap: 4px; }
.slider__dot { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.slider__dot::after { content: ''; position: absolute; left: 6px; right: 6px; top: 11px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.4); }
.slider__dot[aria-current='true']::after { background: #fff; }
@media (max-width: 600px) { .slider__nav { display: none; } }

/* ---------- footer links and cookie choice ---------- */
.foot__links { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 8px !important; }
.foot__links a { color: var(--muted); }
.foot__links a:hover { color: var(--text); }
.linkbtn { padding: 0; border: 0; background: none; color: var(--muted); font: inherit; text-decoration: underline; cursor: pointer; }
.linkbtn:hover { color: var(--text); }
.consent { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; max-width: 640px; margin: 0 auto; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--raised); box-shadow: 0 12px 40px rgba(0,0,0,.45); font-size: 0.92rem; }
.consent p { flex: 1 1 280px; margin: 0; }
.consent a { color: var(--drop); }
.consent { box-sizing: border-box; }
.consent__btns { display: flex; gap: 8px; margin-left: auto; align-items: center; flex-wrap: wrap; max-width: 100%; }
@media (max-width: 520px) { .consent__btns { width: 100%; } .consent__btns > * { flex: 1 1 auto; } }
.consent__year { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; min-height: 36px; min-width: 0; max-width: 100%; }
.consent__year:focus-visible { outline: 2px solid var(--drop); outline-offset: 2px; }
.btn--soon { opacity: 0.6; cursor: default; pointer-events: none; }
