/* ============================================================
   VIP TAP ROOM — Core Stylesheet
   Gold-on-black luxury portal aesthetic
   ============================================================ */

/* ---- Design Tokens ---- */
:root {
  /* Color */
  --black:        #070708;
  --black-2:      #0c0d12;
  --navy:         #0d1b3a;
  --navy-2:       #12244a;
  --gold:         #d4af37;
  --gold-bright:  #f4d876;
  --gold-deep:    #a17c1f;
  --sapphire:     #2f5bd0;
  --sapphire-2:   #1a3a8f;
  --ivory:        #f3ede0;
  --muted:        #8a8778;
  --line:         rgba(212, 175, 55, 0.22);
  --danger:       #d9534f;
  --success:      #57b894;

  /* Type */
  --display: "Cinzel", "Times New Roman", serif;
  --serif:   "Cormorant Garamond", Georgia, serif;
  --sans:    "Inter", system-ui, -apple-system, sans-serif;

  /* Scale */
  --step--1: clamp(0.78rem, 0.75rem + 0.15vw, 0.86rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1:  clamp(1.3rem, 1.2rem + 0.5vw, 1.6rem);
  --step-2:  clamp(1.9rem, 1.6rem + 1.4vw, 2.8rem);
  --step-3:  clamp(2.6rem, 2rem + 3vw, 4.4rem);

  /* Space */
  --gutter: clamp(1.2rem, 4vw, 3.2rem);
  --radius: 4px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--serif);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ivory);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---- Ambient background ---- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1100px 600px at 50% -10%, rgba(47, 91, 208, 0.10), transparent 60%),
    radial-gradient(800px 500px at 50% 110%, rgba(212, 175, 55, 0.06), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ---- Signature: gold ornamental divider ---- */
.crest-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  color: var(--gold);
  margin: 2rem auto;
  max-width: 520px;
}
.crest-rule::before,
.crest-rule::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--gold-deep), transparent);
}
.crest-rule .diamond {
  width: 9px; height: 9px;
  background: var(--sapphire);
  transform: rotate(45deg);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.25), 0 0 14px rgba(47,91,208,0.6);
}

/* ---- Layout helpers ---- */
.wrap { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; position: relative; z-index: 1; }
.eyebrow {
  font-family: var(--sans);
  font-size: var(--step--1);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.text-center { text-align: center; }

/* ---- Typography ---- */
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.1; color: var(--ivory); }
.display-xl { font-size: var(--step-3); letter-spacing: 0.02em; }
.display-lg { font-size: var(--step-2); letter-spacing: 0.03em; }
.display-md { font-size: var(--step-1); letter-spacing: 0.04em; }
.gold-text {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lead { font-size: var(--step-1); color: var(--muted); font-style: italic; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem var(--gutter);
  background: rgba(7, 7, 8, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__brand { display: flex; align-items: center; gap: 0.7rem; }
.nav__brand img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.nav__brand-text { font-family: var(--display); font-size: 1rem; letter-spacing: 0.14em; color: var(--gold); }
.nav__links { display: flex; align-items: center; gap: 1.6rem; }
.nav__links a {
  font-family: var(--sans); font-size: var(--step--1);
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--gold); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--sans); font-size: var(--step--1); font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.9rem 1.9rem; border-radius: var(--radius);
  border: 1px solid transparent; transition: all 0.25s ease;
}
.btn--gold {
  color: var(--black);
  background: linear-gradient(180deg, var(--gold-bright), var(--gold) 60%, var(--gold-deep));
  box-shadow: 0 6px 20px rgba(212,175,55,0.25);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(212,175,55,0.4); }
.btn--ghost {
  color: var(--gold); background: transparent; border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--gold); background: rgba(212,175,55,0.06); }
.btn--block { width: 100%; }
.btn--lg { padding: 1.1rem 2.4rem; font-size: var(--step-0); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; text-align: center;
  padding: clamp(3rem, 8vw, 6rem) var(--gutter) clamp(2rem, 5vw, 4rem);
  overflow: hidden;
}
.hero__logo {
  width: clamp(180px, 34vw, 320px); margin: 0 auto 1.5rem;
  filter: drop-shadow(0 12px 40px rgba(47,91,208,0.35));
  animation: rise 1s ease both;
}
.hero h1 { margin-bottom: 1rem; animation: rise 1s ease 0.15s both; }
.hero .lead { max-width: 620px; margin: 0 auto 2rem; animation: rise 1s ease 0.3s both; }
.hero__cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; animation: rise 1s ease 0.45s both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   SECTIONS / FEATURE GRID
   ============================================================ */
.section { padding: clamp(3rem, 8vw, 6rem) 0; }
.section__head { text-align: center; margin-bottom: 3rem; }
.section__head h2 { margin: 0.8rem 0; }

.grid-3 { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: linear-gradient(160deg, var(--black-2), rgba(13,27,58,0.5));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  position: relative;
  transition: transform 0.3s, border-color 0.3s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(212,175,55,0.5); }
.card__icon {
  width: 46px; height: 46px; margin-bottom: 1.2rem;
  display: grid; place-items: center;
  color: var(--gold); font-size: 1.4rem;
  border: 1px solid var(--line); border-radius: 50%;
}
.card h3 { font-size: var(--step-1); margin-bottom: 0.6rem; }
.card p { color: var(--muted); }

/* ============================================================
   AUTH (register / login)
   ============================================================ */
.auth {
  min-height: calc(100vh - 70px);
  display: grid; place-items: center;
  padding: 3rem var(--gutter);
}
.auth__panel {
  width: min(520px, 100%);
  background: linear-gradient(165deg, var(--black-2), rgba(13,27,58,0.4));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(2rem, 5vw, 3rem);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.auth__panel img.crest { width: clamp(130px, 38vw, 168px); margin: 0 auto 1.2rem; }
.auth__panel h1 { text-align: center; font-size: var(--step-2); margin-bottom: 0.3rem; }
.auth__sub { text-align: center; color: var(--muted); margin-bottom: 2rem; }

.field { margin-bottom: 1.3rem; }
.field label {
  display: block; font-family: var(--sans); font-size: var(--step--1);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 0.5rem;
}
.field input, .field select {
  width: 100%; padding: 0.85rem 1rem;
  font-family: var(--serif); font-size: var(--step-0); color: var(--ivory);
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.12);
}
.field__row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.field__hint { font-family: var(--sans); font-size: 0.74rem; color: var(--muted); margin-top: 0.4rem; line-height: 1.5; }

/* Legal-name notice */
.notice {
  display: flex; gap: 0.8rem;
  background: rgba(47,91,208,0.08);
  border: 1px solid rgba(47,91,208,0.35);
  border-radius: var(--radius);
  padding: 1rem 1.1rem; margin-bottom: 1.6rem;
}
.notice__mark { color: var(--sapphire); font-size: 1.2rem; flex-shrink: 0; }
.notice p { font-family: var(--sans); font-size: 0.82rem; color: var(--ivory); line-height: 1.55; }
.notice strong { color: var(--gold-bright); }

.auth__foot { text-align: center; margin-top: 1.6rem; font-family: var(--sans); font-size: var(--step--1); color: var(--muted); }
.auth__foot a { color: var(--gold); }

/* Back button for auth pages */
.back-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--sans); font-size: var(--step--1);
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 1.4rem; transition: color 0.2s;
}
.back-link:hover { color: var(--gold); }
.back-link .arrow { font-size: 1.1rem; line-height: 1; }

/* Demo access box */
.demo-box {
  margin-top: 1.8rem; padding-top: 1.4rem;
  border-top: 1px dashed var(--line);
  text-align: center;
}
.demo-box__label {
  display: block; font-family: var(--sans); font-size: 0.68rem;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 0.9rem;
}
.demo-box__actions { display: grid; gap: 0.6rem; }
.demo-box__actions .btn { font-size: 0.72rem; padding: 0.7rem 1rem; }

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin { padding: 2.5rem var(--gutter) 4rem; }
.admin__head { margin-bottom: 2rem; }
.admin__head h1 { font-size: var(--step-2); }
.admin__head p { color: var(--muted); font-family: var(--sans); font-size: var(--step--1); letter-spacing: 0.06em; }
.admin__role-badge {
  display: inline-block; font-family: var(--sans); font-size: 0.66rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--black);
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
  padding: 0.25rem 0.7rem; border-radius: 100px; margin-left: 0.6rem; vertical-align: middle;
}

/* Stat row */
.stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 2.5rem; }
.stat {
  background: linear-gradient(160deg, var(--black-2), rgba(13,27,58,0.5));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}
.stat__num { font-family: var(--display); font-size: 2.2rem; line-height: 1; }
.stat__label { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 0.5rem; }
.stat--alert .stat__num { color: var(--danger); }

/* Admin panels / tables */
.panel {
  background: linear-gradient(165deg, var(--black-2), rgba(13,27,58,0.35));
  border: 1px solid var(--line); border-radius: 8px;
  margin-bottom: 2rem; overflow: hidden;
}
.panel__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--line);
}
.panel__head h2 { font-family: var(--display); font-size: var(--step-1); }
.panel__count { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }

.tbl { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 0.84rem; }
.tbl th {
  text-align: left; padding: 0.8rem 1.5rem;
  font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--line);
}
.tbl td { padding: 0.95rem 1.5rem; border-bottom: 1px solid rgba(212,175,55,0.08); color: var(--ivory); }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: rgba(212,175,55,0.03); }
.tbl__name { font-family: var(--serif); font-size: 1rem; color: var(--gold-bright); }
.tbl__sub { font-size: 0.72rem; color: var(--muted); }

/* status pills */
.pill { display: inline-block; font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.25rem 0.65rem; border-radius: 100px; border: 1px solid; }
.pill--baseline { color: var(--muted); border-color: var(--line); }
.pill--verified { color: var(--success); border-color: rgba(87,184,148,0.4); background: rgba(87,184,148,0.08); }
.pill--restricted { color: var(--danger); border-color: rgba(217,83,79,0.4); background: rgba(217,83,79,0.08); }
.pill--pending { color: var(--gold-bright); border-color: rgba(212,175,55,0.4); background: rgba(212,175,55,0.08); }

/* row actions */
.row-actions { display: flex; gap: 0.5rem; }
.btn--sm { padding: 0.45rem 0.9rem; font-size: 0.66rem; letter-spacing: 0.1em; }
.btn--approve { color: var(--success); background: transparent; border: 1px solid rgba(87,184,148,0.4); }
.btn--approve:hover { background: rgba(87,184,148,0.12); }
.btn--reject { color: var(--danger); background: transparent; border: 1px solid rgba(217,83,79,0.4); }
.btn--reject:hover { background: rgba(217,83,79,0.12); }

.empty-row td { text-align: center; color: var(--muted); font-style: italic; padding: 2rem; }

/* responsive tables: horizontal scroll on small screens */
.table-scroll { overflow-x: auto; }
.table-scroll .tbl { min-width: 560px; }

/* ============================================================
   DASHBOARD
   ============================================================ */
.dash { padding: 2.5rem var(--gutter) 4rem; }
.dash__welcome { margin-bottom: 0.4rem; }
.dash__welcome h1 { font-size: var(--step-2); }
.dash__welcome p { color: var(--muted); font-family: var(--sans); font-size: var(--step--1); letter-spacing: 0.06em; }

/* verification banner */
.verify-banner {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  background: linear-gradient(120deg, rgba(217,83,79,0.12), rgba(217,83,79,0.04));
  border: 1px solid rgba(217,83,79,0.4);
  border-radius: var(--radius);
  padding: 1rem 1.3rem; margin: 1.5rem 0 2.5rem;
}
.verify-banner.ok { background: linear-gradient(120deg, rgba(87,184,148,0.12), rgba(87,184,148,0.04)); border-color: rgba(87,184,148,0.4); }
.verify-banner__text { flex: 1; min-width: 220px; }
.verify-banner__text strong { display: block; font-family: var(--display); color: var(--ivory); font-size: var(--step-1); }
.verify-banner__text span { font-family: var(--sans); font-size: var(--step--1); color: var(--muted); }

/* game splash grid — fixed 2x2 */
.games {
  display: grid; gap: 1.6rem;
  grid-template-columns: repeat(2, 1fr);
  max-width: 780px; margin: 0 auto;
}
.game-card {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: 8px;
  background: linear-gradient(165deg, var(--black-2), rgba(13,27,58,0.55));
  transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.game-card:hover {
  transform: translateY(-6px); border-color: rgba(212,175,55,0.55);
  box-shadow: 0 22px 50px rgba(0,0,0,0.55), 0 0 40px rgba(47,91,208,0.15);
}
.game-card__banner {
  height: 150px; display: grid; place-items: center;
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.game-card__banner::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(47,91,208,0.28), transparent 70%);
}
.game-card__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; z-index: 1;
}
.game-card__img--contain { object-fit: contain; padding: 0.5rem; }
.game-card__banner::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, transparent 72%, rgba(7,7,8,0.32));
  pointer-events: none;
}
.game-card__glyph { font-family: var(--display); font-size: 2.4rem; letter-spacing: 0.08em; position: relative; }
.game-card__body { padding: 1.5rem 1.5rem 1.8rem; }
.game-card__body h3 { font-size: var(--step-1); margin-bottom: 0.3rem; }
.game-card__body .tag { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.game-card__actions { margin-top: 1.4rem; }

/* Player game credentials (shown under Play once access is granted) */
.cred-box {
  margin-top: 0.9rem; padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  display: grid; gap: 0.5rem;
}
.cred-row { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.cred-label {
  font-family: var(--sans); font-size: 0.58rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); width: 40px; flex-shrink: 0;
}
.cred-value {
  font-family: monospace; font-size: 0.82rem; color: var(--gold-bright);
  flex: 1 1 70px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cred-actions { display: flex; gap: 0.4rem; margin-left: auto; flex-shrink: 0; }
.cred-btn {
  font-family: var(--sans); font-size: 0.58rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); background: transparent; border: 1px solid var(--line);
  border-radius: 4px; padding: 0.28rem 0.5rem; flex-shrink: 0; transition: color 0.2s, border-color 0.2s;
}
.cred-btn:hover { color: var(--gold); border-color: var(--gold); }

/* credential block (shown after access — placeholder state) */
.cred {
  background: rgba(0,0,0,0.4); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 0.9rem 1rem; margin-bottom: 1rem;
  font-family: var(--sans); font-size: 0.8rem;
}
.cred div { display: flex; justify-content: space-between; padding: 0.25rem 0; }
.cred span:first-child { color: var(--muted); letter-spacing: 0.08em; }
.cred span:last-child { color: var(--gold-bright); font-family: monospace; }
.wallet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; margin-top: 0.8rem; }

/* ============================================================
   MODAL
   ============================================================ */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(3,3,5,0.82); backdrop-filter: blur(6px);
  display: none; place-items: center; padding: var(--gutter);
}
.modal-backdrop.open { display: grid; }
.modal {
  width: min(460px, 100%);
  background: linear-gradient(165deg, var(--black-2), var(--navy));
  border: 1px solid rgba(212,175,55,0.4);
  border-radius: 8px; padding: 2.4rem 2rem;
  text-align: center;
  box-shadow: 0 40px 90px rgba(0,0,0,0.7);
  animation: rise 0.4s ease both;
}
.modal h3 { font-size: var(--step-1); margin-bottom: 0.6rem; }
.modal p { color: var(--muted); font-size: var(--step-0); margin-bottom: 1.6rem; }

/* spinner for the "creating access" moment */
.spinner {
  width: 60px; height: 60px; margin: 0 auto 1.5rem; position: relative;
}
.spinner::before, .spinner::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 3px solid transparent;
}
.spinner::before { border-top-color: var(--gold); animation: spin 1s linear infinite; }
.spinner::after { border-bottom-color: var(--sapphire); animation: spin 1.4s linear infinite reverse; inset: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }

.steps { text-align: left; font-family: var(--sans); font-size: var(--step--1); margin-top: 1rem; }
.steps li { color: var(--muted); padding: 0.4rem 0; padding-left: 1.6rem; position: relative; transition: color 0.3s; }
.steps li::before { content: "○"; position: absolute; left: 0; color: var(--muted); }
.steps li.done { color: var(--ivory); }
.steps li.done::before { content: "◆"; color: var(--gold); }
.steps li.active { color: var(--gold-bright); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding: 3rem var(--gutter) 2rem; text-align: center;
  position: relative; z-index: 1;
}
.footer__logo { width: 60px; margin: 0 auto 1rem; opacity: 0.85; }
.footer p { font-family: var(--sans); font-size: 0.76rem; color: var(--muted); letter-spacing: 0.06em; line-height: 1.8; max-width: 640px; margin: 0.4rem auto; }
.footer__links { display: flex; gap: 1.4rem; justify-content: center; margin: 1.2rem 0; flex-wrap: wrap; }
.footer__links a { font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .nav__links a:not(.btn) { display: none; }
  .field__row { grid-template-columns: 1fr; }
  .wallet-actions { grid-template-columns: 1fr; }
  .games { gap: 0.8rem; }
  .game-card__banner { height: 110px; }
  .game-card__glyph { font-size: 1.9rem; }
  .game-card__body { padding: 1.1rem 0.9rem 1.3rem; }
  .game-card__body h3 { font-size: 1.15rem; }
  .game-card__actions .btn { padding: 0.75rem 0.6rem; font-size: 0.64rem; letter-spacing: 0.1em; }
  /* keep back-office nav usable on phones */
  .nav.nav--staff .nav__links { gap: 0.9rem; }
  .nav.nav--staff .nav__links a { display: inline-flex; font-size: 0.6rem; letter-spacing: 0.08em; }
}

/* ---- Manage Games page ---- */
.game-admin-row {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: 1rem 1.5rem; border-bottom: 1px solid rgba(212,175,55,0.08);
}
.game-admin-row:last-child { border-bottom: none; }
.game-admin-row__glyph {
  width: 46px; height: 46px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 1.5rem;
  border: 1px solid var(--line); border-radius: 8px; color: var(--gold);
  background: rgba(47,91,208,0.08); overflow: hidden;
}
.game-admin-row__glyph img { width: 100%; height: 100%; object-fit: cover; }

/* Crop / Center toggle */
.fit-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; flex-shrink: 0; }
.fit-btn {
  font-family: var(--sans); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.45rem 0.8rem; background: transparent; color: var(--muted); border: none;
  transition: background 0.2s, color 0.2s;
}
.fit-btn + .fit-btn { border-left: 1px solid var(--line); }
.fit-btn:hover { color: var(--gold); }
.fit-btn.active { background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep)); color: var(--black); }

/* Edit game modal */
.modal--edit { width: min(780px, 100%); text-align: left; max-height: 90vh; overflow-y: auto; }
.modal--edit h3 { text-align: center; margin-bottom: 1.6rem; }
.edit-grid { display: grid; grid-template-columns: 280px 1fr; gap: 1.8rem; }
.edit-label { font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.7rem; }
.edit-preview .game-card { max-width: 280px; margin: 0; }
.edit-preview { position: sticky; top: 0; }
.edit-controls .field { margin-bottom: 1.1rem; }
.edit-controls .field:last-child { margin-bottom: 0; }
.edit-actions { display: flex; justify-content: flex-end; gap: 0.8rem; margin-top: 1.8rem; }

.pos-row { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.6rem; }
.pos-label { font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); width: 74px; flex-shrink: 0; }
.pos-row input[type="range"] {
  flex: 1; -webkit-appearance: none; appearance: none; height: 4px; border-radius: 4px;
  background: rgba(212,175,55,0.25); outline: none;
}
.pos-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 16px; height: 16px; border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep)); cursor: pointer;
  border: 2px solid var(--black-2);
}
.pos-row input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--black-2);
  background: var(--gold); cursor: pointer;
}
.pos-reset {
  font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); background: none; border: none; padding: 0.3rem 0; margin-top: 0.2rem;
}
.pos-reset:hover { color: var(--gold); }

@media (max-width: 640px) {
  .edit-grid { grid-template-columns: 1fr; }
  .edit-preview { position: static; }
  .edit-preview .game-card { max-width: 260px; margin: 0 auto; }
}
.game-admin-row__info { flex: 1; min-width: 140px; }
.game-admin-row__info strong { font-family: var(--serif); font-size: 1.15rem; color: var(--gold-bright); display: block; }
.game-admin-row__info span { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.add-game-form { padding: 1.5rem; }
.add-game-form .field__row { grid-template-columns: 1fr 1fr 90px; align-items: end; }
.add-game-form .field { margin-bottom: 0; }

/* ---- Accessibility: reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* visible keyboard focus */
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
