﻿:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f3f1ec;
  --border: #e6e2da;
  --text: #1b1a17;
  --muted: #6d6a63;
  --accent: #ff5a36;
  --accent-ink: #ffffff;
  --accent-soft: #ffe7e0;
  --good: #1f9d55;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 8px 24px rgb(0 0 0 / 0.06);
  --radius: 16px;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --scroll-thumb: #cfcac0;
  --scroll-thumb-hover: #aaa498;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111110;
    --surface: #1a1918;
    --surface-2: #232220;
    --border: #2e2c29;
    --text: #f4f2ee;
    --muted: #a19d95;
    --accent: #ff6f4f;
    --accent-ink: #1b0d08;
    --accent-soft: #3a1d15;
    --good: #4ade80;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.35);
    --scroll-thumb: #3a3835;
    --scroll-thumb-hover: #55524d;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

/* Slim scrollbars that match the theme. Firefox and current Chrome/Edge use
   the standard properties; Safari only understands the ::-webkit ones. */
html { scrollbar-width: thin; scrollbar-color: var(--scroll-thumb) transparent; }
* { scrollbar-width: thin; scrollbar-color: var(--scroll-thumb) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-radius: 999px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--scroll-thumb-hover); }
::-webkit-scrollbar-corner { background: transparent; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; letter-spacing: -0.02em; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 18px var(--font-display); min-width: 0; }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.brand img { width: 32px; height: 32px; border-radius: 8px; background: #1b1a17; flex: none; }
.nav-links { display: flex; align-items: center; gap: 22px; font-weight: 500; font-size: 15px; flex: none; }
.nav-links a:not(.btn) { text-decoration: none; color: var(--muted); }
.nav-links a:not(.btn):hover, .nav-links a[aria-current] { color: var(--text); }
/* Phones: About/Contact stay reachable; the join button lives on the pages. */
@media (max-width: 600px) {
  .nav-links { gap: 16px; font-size: 14px; }
  .nav-links a[href="/#games"], .nav-links .btn { display: none; }
}
/* Very narrow: the logo alone stands in for the name (only when there is one). */
@media (max-width: 480px) { .brand img:not([hidden]) + span { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--accent-ink);
  border: 0; border-radius: 999px; padding: 12px 22px;
  font: 600 15px var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-small { padding: 8px 16px; font-size: 14px; white-space: nowrap; flex: none; }
.btn-ghost { background: var(--surface-2); color: var(--text); }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 48px; }
.hero-inner { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; }
.hero-icon {
  width: 148px; height: 148px; border-radius: 32px;
  /* Dark in both themes: the logo is white-on-transparent. */
  background: #1b1a17; box-shadow: var(--shadow);
}
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }
.hero h1 { font-size: clamp(40px, 7vw, 72px); font-weight: 800; }
.hero p { font-size: 18px; color: var(--muted); max-width: 56ch; margin: 14px 0 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 680px) {
  .hero { padding-top: 40px; }
  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-icon { width: 104px; height: 104px; border-radius: 24px; }
}

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 72px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; }
.stat b { display: block; font: 800 30px var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 14px; color: var(--muted); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- sections ---------- */
.section { margin-bottom: 80px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2 { font-size: 34px; font-weight: 800; }
.filters { display: flex; gap: 6px; background: var(--surface-2); padding: 4px; border-radius: 999px; }
.filters button { border: 0; background: transparent; color: var(--muted); font: 500 14px var(--font-body); padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

/* ---------- game cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
@media (max-width: 360px) { .grid { grid-template-columns: 1fr; } }
.card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 16 / 9; background: var(--surface-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .placeholder { position: absolute; inset: 0; display: grid; place-items: center; font-size: 40px; }
.badge {
  position: absolute; top: 12px; left: 12px;
  font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: rgb(0 0 0 / 0.6); color: #fff; backdrop-filter: blur(6px);
  display: inline-flex; align-items: center; gap: 6px;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; }
.badge.dev .dot { background: #fbbf24; }
.card-body { display: flex; gap: 14px; padding: 14px 18px 18px; align-items: flex-start; }
/* The game icon rides up over the bottom edge of the thumbnail. It has to be
   positioned with a z-index: .card-media is positioned, so it would otherwise
   paint on top of the icon and hide its upper half. */
.card-icon {
  position: relative; z-index: 1;
  width: 60px; height: 60px; border-radius: 14px; flex: none;
  margin-top: -40px;
  background: var(--surface-2);
  border: 3px solid var(--surface);
  box-shadow: 0 6px 16px rgb(0 0 0 / 0.35);
  transition: transform .2s ease;
}
.card:hover .card-icon { transform: translateY(-3px) rotate(-3deg); }
.card-text { min-width: 0; }
.by { font-size: 13px; color: var(--muted); margin: -2px 0 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.cat-label { font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 1px 8px; border-radius: 999px; }
.card-body h3 { font-size: 19px; font-weight: 600; line-height: 1.2; margin-bottom: 6px; overflow-wrap: anywhere; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.meta .live { color: var(--good); font-weight: 600; }

/* ---------- communities ---------- */
.communities { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
@media (max-width: 380px) { .communities { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.panel h3 { font-size: 22px; margin-bottom: 4px; overflow-wrap: anywhere; }
.panel p { margin: 0; color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; }
.community { display: flex; flex-direction: column; gap: 16px; }
.community-head { display: flex; align-items: center; gap: 14px; }
.community-icon { width: 64px; height: 64px; border-radius: 14px; flex: none; background: var(--surface-2); }
.community-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; flex-wrap: wrap; }
.person { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.person img { width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); flex: none; }
.person b { display: block; }
.person span { font-size: 13px; color: var(--muted); }

/* ---------- games toolbar ---------- */
.game-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button {
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font: 600 14px var(--font-body); padding: 7px 14px; border-radius: 999px; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.chips button span { color: var(--muted); font-weight: 500; margin-left: 4px; font-variant-numeric: tabular-nums; }
.chips button:hover { border-color: var(--muted); }
.chips button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chips button[aria-pressed="true"] span { color: inherit; opacity: .75; }
.toolbar-selects { display: flex; gap: 8px; }
.toolbar-selects .input { width: auto; padding: 8px 12px; font-size: 14px; background: var(--surface); }
@media (max-width: 560px) {
  .toolbar-selects { width: 100%; }
  .toolbar-selects .input { flex: 1; }
}

.new-tag {
  position: absolute; top: 12px; right: 12px; padding: 3px 10px; border-radius: 999px;
  font: 800 12px var(--font-display); letter-spacing: .04em; text-transform: uppercase;
  background: var(--accent); color: var(--accent-ink); box-shadow: 0 4px 12px rgb(0 0 0 / .3);
}

/* ---------- new releases ---------- */
/* auto-fill, so a month with one game keeps a normal-size card. */
.release-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.release-month .section-head { align-items: baseline; justify-content: flex-start; gap: 12px; }
.release-month { margin-bottom: 48px; }
.release {
  display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease;
}
.release:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.release-media { position: relative; aspect-ratio: 16 / 9; background: var(--surface-2); }
.release-media img { width: 100%; height: 100%; object-fit: cover; }
.release-body { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.release-icon { width: 40px; height: 40px; border-radius: 10px; flex: none; background: var(--surface-2); }
.release-body b { display: block; line-height: 1.25; overflow-wrap: anywhere; }
.release-body span { display: block; font-size: 13px; color: var(--muted); }
.release-body .live { color: var(--good); font-weight: 600; }

/* ---------- suggestions ---------- */
.type-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (max-width: 480px) { .type-pick { grid-template-columns: 1fr; } }
.type-option { position: relative; cursor: pointer; }
.type-option input { position: absolute; opacity: 0; }
.type-option span {
  display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--bg); transition: border-color .15s, background .15s;
}
.type-option small { color: var(--muted); font-size: 13px; }
.type-option:hover span { border-color: var(--muted); }
.type-option input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.type-option input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.field[hidden] { display: none; }
.optional { font-weight: 500; color: var(--muted); font-size: 12px; margin-left: 4px; }
.suggest-link { width: 100%; justify-content: center; margin-top: 14px; }

/* ---------- top games ---------- */
.top-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 20px; }
@media (max-width: 860px) { .top-grid { grid-template-columns: 1fr; } }
.top-feature, .top-small {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease;
}
.top-feature:hover, .top-small:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
/* Tablet widths: the #1 card goes side by side instead of a huge image. */
@media (min-width: 561px) and (max-width: 860px) {
  .top-feature { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; }
  .top-media { aspect-ratio: auto; height: 100%; min-height: 220px; }
}
.top-media { position: relative; aspect-ratio: 16 / 9; background: var(--surface-2); }
.top-media img { width: 100%; height: 100%; object-fit: cover; }
.top-info { padding: 18px 22px 22px; }
.top-info h3 { font-size: 22px; margin-bottom: 10px; overflow-wrap: anywhere; }
.peak-number {
  font: 800 clamp(44px, 7vw, 64px)/1 var(--font-display); letter-spacing: -0.03em;
  color: var(--accent); font-variant-numeric: tabular-nums;
}
.peak-label { font-size: 14px; font-weight: 600; color: var(--muted); margin: 6px 0 14px; }
.top-rest { display: grid; gap: 20px; align-content: start; }
.top-small { display: flex; gap: 14px; padding: 12px; align-items: center; }
.top-small b { display: block; font-size: 17px; line-height: 1.25; margin-bottom: 4px; overflow-wrap: anywhere; }
.top-thumb { position: relative; width: 132px; flex: none; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.top-thumb img { width: 100%; height: 100%; object-fit: cover; }
/* The logo stand-in: contained on the dark tile rather than cropped. */
div.top-small .top-thumb, div.top-feature .top-media { background: #1b1a17; }
div.top-small .top-thumb img, div.top-feature .top-media img { object-fit: contain; padding: 8%; }
.top-thumb .rank { top: 6px; left: 6px; padding: 2px 8px; font-size: 13px; }
.peak-inline { font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.peak-inline strong { color: var(--accent); font: 800 20px var(--font-display); font-variant-numeric: tabular-nums; margin-right: 2px; }
.rank {
  position: absolute; top: 12px; left: 12px; padding: 4px 12px; border-radius: 999px;
  font: 800 16px var(--font-display); color: #1b1a17; box-shadow: 0 4px 12px rgb(0 0 0 / .35);
}
.rank-1 { background: linear-gradient(135deg, #ffe08a, #f5b400); }
.rank-2 { background: linear-gradient(135deg, #f1f3f5, #b8bec5); }
.rank-3 { background: linear-gradient(135deg, #f3c7a0, #c7773c); }
@media (max-width: 420px) { .top-thumb { width: 104px; } }

/* ---------- youtubers ---------- */
.yt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.yt-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.yt-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.yt-media { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--surface-2); }
.yt-media img { width: 100%; height: 100%; object-fit: cover; }
.yt-media .placeholder { position: absolute; inset: 0; display: grid; place-items: center; font-size: 32px; color: var(--muted); }
.yt-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 58px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: #ff0033; color: #fff; box-shadow: 0 6px 18px rgb(0 0 0 / .4); transition: transform .2s ease;
}
.yt-play svg { width: 22px; height: 22px; }
.yt-card:hover .yt-play { transform: translate(-50%, -50%) scale(1.1); }
.yt-body { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.yt-body .card-text { flex: 1; }
.yt-body b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yt-body span { font-size: 13px; color: var(--muted); }
.yt-avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; background: var(--surface-2); object-fit: cover; }
.yt-initial { display: grid; place-items: center; font-weight: 700; color: var(--muted); text-transform: uppercase; }

/* ---------- work with us ---------- */
.work { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: start; padding: 32px; }
@media (max-width: 820px) { .work { grid-template-columns: 1fr; padding: 24px; } }
.work-intro h2 { font-size: 34px; font-weight: 800; margin-bottom: 10px; }
.work-intro p { margin: 0 0 20px; }
.work-intro .eyebrow { margin-bottom: 12px; }
.roles { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.roles li { padding: 14px 16px; border-radius: 12px; background: var(--surface-2); border-left: 3px solid var(--accent); }
.roles b { display: block; margin-bottom: 2px; }
.roles span { font-size: 14px; color: var(--muted); }

/* ---------- about / contact pages ---------- */
.page { padding: 56px 0 40px; }
.page-head { max-width: 720px; margin-bottom: 36px; }
.page-head h1 { font-size: clamp(36px, 6vw, 60px); font-weight: 800; }
.lede { font-size: 18px; color: var(--muted); margin: 14px 0 0; }
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: start; margin-bottom: 48px; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }
.prose p { font-size: 17px; line-height: 1.75; margin: 0 0 18px; overflow-wrap: anywhere; }
.prose p:first-child { font-size: 20px; line-height: 1.6; }

.about-text { max-width: 760px; margin-bottom: 56px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
@media (max-width: 380px) { .team-grid { grid-template-columns: 1fr; } }
.team-dm { display: grid; gap: 4px; }
.team-dm > span { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.founder { display: grid; gap: 18px; text-align: center; justify-items: center; align-content: start; }
.founder-photo { position: relative; width: 132px; height: 132px; }
.founder-photo > img:first-child, .founder-photo > div:first-child {
  width: 132px; height: 132px; border-radius: 50%; background: var(--surface-2); object-fit: cover;
  border: 4px solid var(--accent);
}
.founder-discord-avatar {
  position: absolute; right: -6px; bottom: -6px; width: 48px; height: 48px; border-radius: 50%;
  border: 4px solid var(--surface); background: var(--surface-2);
}
.status { position: absolute; left: 8px; bottom: 8px; width: 20px; height: 20px; border-radius: 50%; border: 4px solid var(--surface); background: #80848e; }
.status-online { background: #23a55a; }
.status-idle { background: #f0b232; }
.status-dnd { background: #f23f43; }
.founder-text .eyebrow { margin-bottom: 8px; }
.founder-text h3 { font-size: 28px; margin-bottom: 4px; }
.founder-text p { margin: 0 0 16px; font-size: 14px; }
.founder-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

.discord-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #5865f2; color: #fff; border: 0; border-radius: 999px; padding: 8px 16px;
  font: 600 14px var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: filter .15s ease, transform .15s ease;
}
.discord-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.discord-btn.wide { width: 100%; padding: 12px 16px; font-size: 15px; }

/* Brand-colored social buttons. .btn.social-discord is the hero's Discord button. */
.social-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 999px; padding: 10px 18px; font: 600 15px var(--font-body);
  text-decoration: none; white-space: nowrap; transition: filter .15s ease, transform .15s ease;
}
.social-btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.social-discord, .btn.social-discord { background: #5865f2; color: #fff; }
.social-youtube { background: #ff0033; color: #fff; }
.social-twitter { background: #000; color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .18); }
.social-btn.wide { width: 100%; padding: 12px 16px; }
.social-btn.big { padding: 16px 26px; font-size: 16px; }
.social-stack { display: grid; gap: 8px; }
.socials-row { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 520px) { .socials-row .social-btn { flex: 1 1 100%; } }

.cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 40px; }
.cta h2 { font-size: 26px; margin-bottom: 6px; }
.cta p { margin: 0; }

.contact-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; margin-bottom: 40px; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-side { display: grid; gap: 16px; }
.contact-side h3 { font-size: 20px; }
.contact-side p { margin: 0 0 14px; font-size: 14px; }
.contact-form .btn { width: 100%; justify-content: center; }
.form-error { color: #e5484d; font-size: 14px; min-height: 1.2em; margin: 10px 0 0; text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sent { text-align: center; padding: 48px 24px; }
.sent h2 { font-size: 30px; margin: 14px 0 8px; }
.sent p { margin: 0 0 24px; }
.sent-check {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center;
  background: var(--good); color: #fff; font-size: 30px; font-weight: 700;
}

/* ---------- forms (site + admin) ---------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: 14px; }
.field .hint, .hint { color: var(--muted); font-size: 13px; }
.input {
  width: 100%; font: 400 15px var(--font-body); color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px;
}
textarea.input { resize: vertical; min-height: 80px; line-height: 1.5; }
select.input { cursor: pointer; }
.input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .two { grid-template-columns: 1fr; } }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 30;
  background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-weight: 500; font-size: 14px;
  box-shadow: var(--shadow); max-width: calc(100% - 32px); text-align: center;
}
.toast[hidden] { display: none; }

/* ---------- game detail ---------- */
.back { display: inline-flex; gap: 6px; margin: 28px 0 20px; color: var(--muted); text-decoration: none; font-weight: 500; }
.back:hover { color: var(--text); }
.detail { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; margin-bottom: 80px; align-items: start; }
@media (max-width: 860px) { .detail { grid-template-columns: 1fr; } }
.gallery-main { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); position: relative; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.thumbs button { flex: none; width: 112px; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--surface-2); opacity: .7; }
.thumbs button[aria-current="true"] { border-color: var(--accent); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
/* Only pin the sidebar where it sits beside the gallery and fits on screen. */
@media (min-width: 861px) and (min-height: 760px) { .detail-side { position: sticky; top: 88px; } }
.detail-title { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.detail-title img { width: 72px; height: 72px; border-radius: 16px; background: var(--surface-2); }
.detail-title h1 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; overflow-wrap: anywhere; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0; }
.kv div { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; }
.kv b { display: block; font: 800 20px var(--font-display); font-variant-numeric: tabular-nums; }
.kv span { font-size: 13px; color: var(--muted); }
.rating-bar { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-top: 8px; }
.rating-bar i { display: block; height: 100%; background: var(--good); }
.description { margin-top: 28px; }
.description h2 { font-size: 22px; margin-bottom: 10px; }
.description p { color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; margin: 0; }

/* ---------- states ---------- */
.loading { display: grid; place-items: center; min-height: 50vh; }
.spinner { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); border: 1px dashed var(--border); border-radius: var(--radius); }
.error { text-align: center; padding: 100px 20px; }
.error h2 { font-size: 28px; margin-bottom: 10px; }

.footer { border-top: 1px solid var(--border); padding: 24px 0; font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer-right { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.footer-socials { display: flex; gap: 6px; }
.icon-link {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  color: var(--muted); background: var(--surface-2); transition: color .15s, background .15s;
}
.icon-link:hover { color: var(--text); background: var(--border); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

.fade-in { animation: fade .35s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
