:root {
  --pink: #ff2aa8;
  --pink-strong: #e0007a;
  --pink-soft: #e8007a;
  --black: #ffffff;
  --black-2: #f8f4f7;
  --panel: #ffffff;
  --panel-2: #fdf5fb;
  --white: #0a0a0a;
  --muted: #555555;
  --muted-2: #888888;
  --line: #f0d8ec;
  --success: #73e897;
  --warning: #ffd479;
  --danger: #ff768e;
  --radius: 20px;
  --shadow: 0 4px 24px rgba(0, 0, 0, .08);
  --glow: 0 0 8px rgba(255, 42, 168, .35), 0 0 20px rgba(255, 42, 168, .12);
  --content: 1180px;
  --border-w: 3px;
}

/* ── Neon pink page border — fixed frame on every page ─────────────────────── */
html {
  box-shadow: inset 0 0 0 var(--border-w) var(--pink);
}
html::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  border: var(--border-w) solid var(--pink);
  box-shadow:
    0 0 0 1px rgba(255, 42, 168, .15),
    0 0 14px 2px rgba(255, 42, 168, .55),
    0 0 32px 6px rgba(255, 42, 168, .2),
    inset 0 0 18px 2px rgba(255, 42, 168, .04);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: #0a0a0a;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #ffffff;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
[hidden], .hidden { display: none !important; }

.container {
  width: min(var(--content), calc(100% - 30px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  transform: translateY(-160%);
  background: var(--pink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 900;
}
.skip-link:focus { transform: translateY(0); }

.topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  /* Right padding reserves space for the absolute-positioned admin link
     so the centred announcement text can never slide underneath it. */
  padding: 9px 110px 9px 14px;
  color: #cc0080;
  background: #fff0f8;
  border-bottom: 1px solid #ffd6ee;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .09em;
  min-height: 36px;
}
.topbar [data-announcement] {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topbar-admin {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--pink);
  text-decoration: none;
  opacity: .85;
  white-space: nowrap;
}
.topbar-admin:hover { opacity: 1; text-decoration: underline; }
/* On small screens the admin link is already in the hamburger menu —
   hide it from the topbar and restore symmetric padding. */
@media (max-width: 640px) {
  .topbar { padding-right: 14px; }
  .topbar-admin { display: none; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid #f0d8ec;
}
.header-row {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 13px;
  text-decoration: none;
}
.brand-logo {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 17px;
  object-fit: cover;
  border: 2px solid var(--pink);
  box-shadow: var(--glow);
}
.brand-copy { min-width: 0; }
.brand-copy strong {
  display: block;
  font-size: 1.2rem;
  line-height: 1.05;
  letter-spacing: .045em;
  color: #0a0a0a;
}
.brand-copy span {
  display: block;
  margin-top: 5px;
  color: var(--pink);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .16em;
  white-space: nowrap;
}
.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}
.desktop-nav > a:not(.button) {
  position: relative;
  color: #0a0a0a;
  font-size: .9rem;
  font-weight: 800;
  text-decoration: none;
}
.desktop-nav > a:not(.button)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 2px;
  background: var(--pink);
  transition: right .2s ease;
}
.desktop-nav > a:not(.button):hover::after,
.desktop-nav > a[aria-current="page"]::after { right: 0; }
.auth-links { display: inline-flex; gap: 8px; align-items: center; }

.mobile-menu { display: none; position: relative; }
.mobile-menu summary {
  list-style: none;
  width: 46px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #f0d8ec;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-size: 1.35rem;
}
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-panel {
  position: absolute;
  right: 0;
  top: 54px;
  width: min(310px, calc(100vw - 30px));
  padding: 15px;
  border-radius: 16px;
  border: 1px solid #f0d8ec;
  background: #fff;
  box-shadow: var(--shadow), var(--glow);
  max-height: min(80vh, calc(100svh - 80px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-panel a,
.mobile-panel button {
  width: 100%;
  margin: 4px 0;
  justify-content: flex-start;
}
/* Bare <a> links inside the mobile panel (missing .button class) get
   button-muted treatment so every nav item looks consistent. */
.mobile-panel a:not(.button) {
  border-radius: 12px;
  min-height: 44px;
  padding: 11px 16px;
  display: inline-flex;
  align-items: center;
  font-weight: 900;
  font-size: .9rem;
  text-decoration: none;
  color: var(--ink);
  background: rgba(0, 0, 0, .06);
}
.mobile-panel a:not(.button):hover { background: rgba(0, 0, 0, .11); }

.button {
  appearance: none;
  border: 0;
  border-radius: 12px;
  min-height: 44px;
  padding: 11px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--pink-strong));
  box-shadow: var(--glow);
}
.button-dark { color: #fff; background: #0a0a0a; border: 1px solid #222; }
.button-outline { background: transparent; color: var(--pink); border: 1.5px solid var(--pink); }
.button-muted { color: #333; background: #f5f0f5; border: 1px solid #e8d8e8; }
.button-danger { background: #ffeef2; color: #cc2244; border: 1px solid #f0a0b8; }
.button-small { min-height: 36px; padding: 8px 11px; font-size: .78rem; border-radius: 9px; }
.button-wide { width: 100%; }
.button[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

.page-hero { padding: 56px 0 32px; }
.page-hero.compact { padding-bottom: 10px; }
.eyebrow {
  color: var(--pink);
  font-size: .77rem;
  font-weight: 950;
  letter-spacing: .13em;
  text-transform: uppercase;
}
h1, h2, h3, h4 { text-wrap: balance; }
h1 {
  margin: 13px 0 18px;
  font-size: clamp(2.7rem, 7vw, 6.4rem);
  line-height: .9;
  letter-spacing: -.065em;
}
.page-title {
  margin: 12px 0 16px;
  font-size: clamp(2.5rem, 6vw, 5.2rem);
  line-height: .94;
  letter-spacing: -.055em;
}
.pink { color: var(--pink); }
.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.72;
}
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }

.home-hero { padding: 30px 0 18px; }
.hero-shell {
  overflow: hidden;
  border: 2px solid var(--pink);
  border-radius: 28px;
  box-shadow: var(--glow), var(--shadow);
  background: linear-gradient(140deg, #fff8fc, #fdf0f8 70%);
}
.hero-grid { min-height: 535px; display: grid; grid-template-columns: 1.05fr .95fr; }
.hero-media { min-height: 420px; background: #fff; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-copy {
  padding: clamp(32px, 6vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 42, 168, .1), transparent 24%),
    linear-gradient(145deg, #fff5fb, #fffafd);
}
.hero-copy p { color: var(--muted); line-height: 1.72; font-size: 1.04rem; }

.feature-strip {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid #f0d8ec;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}
.feature-item {
  min-height: 110px;
  padding: 19px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-right: 1px solid #f0d8ec;
}
.feature-item:last-child { border-right: 0; }
.feature-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border: 2px solid var(--pink);
  border-radius: 50%;
  color: var(--pink);
  font-size: 1.25rem;
  background: #fff5fb;
}
.feature-item strong { display: block; color: #0a0a0a; }
.feature-item small { display: block; margin-top: 4px; color: var(--muted); line-height: 1.45; }

.section { padding: 58px 0; }
.section-sm { padding: 34px 0; }
.section-dark {
  border-block: 1px solid #f0d8ec;
  background: linear-gradient(135deg, rgba(255, 42, 168, .04), rgba(255,255,255,.8));
}
.section-head {
  margin-bottom: 24px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.8rem);
  letter-spacing: -.05em;
}
.section-head p { max-width: 620px; margin: 0; color: var(--muted); line-height: 1.65; }

.panel {
  padding: 22px;
  border: 1px solid #f0d8ec;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}
.panel-glow { border-color: var(--pink); box-shadow: var(--glow), var(--shadow); }
.panel h2:first-child,
.panel h3:first-child { margin-top: 0; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

.stat-card { min-height: 135px; }
.stat-card span { color: var(--muted); font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.stat-card strong { display: block; margin-top: 8px; color: var(--pink); font-size: 2rem; }

.toolbar {
  margin-bottom: 22px;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(220px, 2fr) minmax(150px, .8fr) minmax(150px, .8fr);
  gap: 10px;
  border: 1px solid #f0d8ec;
  border-radius: 16px;
  background: #fff;
}
.search-field { position: relative; }
.search-field input { padding-left: 42px; }
.search-field::before {
  content: "⌕";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--pink);
  font-size: 1.2rem;
  z-index: 2;
}

label { color: #333; font-size: .86rem; font-weight: 850; }
input, select, textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  color: #0a0a0a;
  border: 1px solid #e8d0e8;
  border-radius: 12px;
  outline: none;
  background: #ffffff;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(255, 42, 168, .08); }
input[type="checkbox"], input[type="radio"] { width: auto; min-height: auto; accent-color: var(--pink); }
.field { display: grid; gap: 7px; }
.field-inline { display: flex; align-items: center; gap: 9px; }
.field-inline input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--accent, #ff2fa6); flex-shrink: 0; cursor: pointer; }
.field-help { color: var(--muted-2); font-size: .78rem; line-height: 1.45; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.form-card { max-width: 680px; margin-inline: auto; }
.check-row { display:flex; align-items:center; gap:9px; margin:2px 0 16px; color:var(--muted); font-weight:800; font-size:.9rem; }
.check-row input { width:auto; accent-color:var(--pink); }
.form-message { margin-top: 14px; padding: 12px 14px; border-radius: 11px; line-height: 1.5; }
.form-message.error { color: #8a1530; background: #feece8; border: 1px solid #f0a0b8; }
.form-message.success { color: #1a5030; background: #eafef2; border: 1px solid #a0d8b8; }
.form-message.info { color: #7a1060; background: #fff0f8; border: 1px solid #f0b0d8; }

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 20px;
  align-items: stretch;
}
.game-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 2px solid var(--pink);
  border-radius: 19px;
  background: #ffffff;
  box-shadow: var(--glow);
}
.game-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #ffd6f0 0%, #ff90d8 100%);
}
.game-cover img { width: 100%; height: 100%; object-fit: cover; }
.game-cover .fallback { font-size: 4.5rem; }
.game-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 6px 9px;
  color: #fff;
  border-radius: 999px;
  background: var(--pink);
  font-size: .65rem;
  font-weight: 950;
  letter-spacing: .04em;
}
.game-body { padding: 16px; display: flex; flex: 1; flex-direction: column; min-width: 0; }
.game-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.game-heading h3 { margin: 0; min-width: 0; font-size: 1.06rem; line-height: 1.25; overflow-wrap: anywhere; color: #0a0a0a; }
.game-price { flex: 0 0 auto; color: var(--pink); font-weight: 950; white-space: nowrap; }
.game-description {
  display: -webkit-box;
  min-height: 67px;
  margin: 11px 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.tag-row { min-height: 27px; display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 14px; }
.tag {
  max-width: 100%;
  overflow: hidden;
  padding: 5px 8px;
  color: #cc0080;
  border-radius: 999px;
  background: #ffe8f5;
  font-size: .64rem;
  font-weight: 850;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.game-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.empty-state {
  grid-column: 1 / -1;
  padding: 42px 22px;
  text-align: center;
  border: 1px dashed #ffb3df;
  border-radius: 18px;
  background: rgba(255, 255, 255, .9);
}
.empty-state h3 { margin-top: 0; }

.pagination { margin-top: 26px; display: flex; justify-content: center; gap: 7px; flex-wrap: wrap; }
.page-button {
  min-width: 40px;
  min-height: 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #f0d8ec;
  border-radius: 10px;
  color: #0a0a0a;
  background: #fff;
  font-weight: 850;
  cursor: pointer;
}
.page-button.active { border-color: var(--pink); background: var(--pink); color: #fff; }
.page-button:disabled { opacity: .4; cursor: not-allowed; }
.results-meta { color: var(--muted); font-size: .86rem; }

.game-detail { display: grid; grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr); gap: 28px; align-items: start; }
.detail-cover { overflow: hidden; border: 2px solid var(--pink); border-radius: 22px; box-shadow: var(--glow); background: #fff5fb; }
.detail-cover img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.detail-cover .fallback { min-height: 340px; display: grid; place-items: center; font-size: 8rem; }
.detail-copy h1 { font-size: clamp(2.4rem, 5vw, 4.7rem); }
.detail-price { color: var(--pink); font-size: 1.55rem; font-weight: 950; }
.detail-description { color: var(--muted); line-height: 1.75; }

.membership-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 20px; }
.membership-card { position: relative; min-height: 360px; display: flex; flex-direction: column; }
.membership-card.featured { border-color: var(--pink); box-shadow: var(--glow), var(--shadow); }
.tier-price { margin: 14px 0; color: var(--pink); font-size: 2.1rem; font-weight: 950; }
.tier-price small { color: var(--muted); font-size: .84rem; }
.tier-features { padding-left: 20px; color: var(--muted); line-height: 1.75; }
.membership-card .button { margin-top: auto; }

.account-layout { display: grid; grid-template-columns: 280px 1fr; gap: 22px; align-items: start; }
.account-nav { position: sticky; top: 110px; }
.account-nav a { display: block; padding: 11px 12px; border-radius: 10px; color: #333; text-decoration: none; font-weight: 800; }
.account-nav a:hover, .account-nav a[aria-current="page"] { color: var(--pink); background: #fff0f8; }
.avatar {
  width: 76px; height: 76px; margin-bottom: 14px; display: grid; place-items: center; border: 2px solid var(--pink); border-radius: 50%; background: #fff0f8; font-size: 2rem; box-shadow: var(--glow);
}

.order-list { display: grid; gap: 12px; }
.orders-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.orders-page-btn {
  min-width: 90px;
  min-height: 44px;
}
.orders-page-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
  pointer-events: none;
}
.orders-page-indicator {
  font-size: .9rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}
.order-card { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: start; }
.order-card-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.order-title { font-size: 1rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-card-aside { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; white-space: nowrap; }
.order-amount { font-size: 1.05rem; font-weight: 900; color: var(--ink); }
.order-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.order-receipt-btn { font-size: .75rem !important; padding: 5px 10px !important; min-height: 28px !important; }
.status-pill { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 999px; font-size: .7rem; font-weight: 900; text-transform: uppercase; }
.status-pill.paid, .status-pill.active, .status-pill.published { color: #1a6035; background: #eafef2; }
.status-pill.pending, .status-pill.draft { color: #7a5a00; background: #fef8e8; }
.status-pill.failed, .status-pill.cancelled, .status-pill.inactive { color: #8a1530; background: #feece8; }
.status-pill.expired { color: #5a5a6a; background: #f0f0f5; }

.policy-content { max-width: 850px; }
.policy-content h2 { margin-top: 36px; }
.policy-content p, .policy-content li { color: var(--muted); line-height: 1.75; }

.site-footer { margin-top: 70px; padding: 54px 0 25px; border-top: 1px solid #f0d8ec; background: #fff8fc; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; }
.footer-brand p { max-width: 370px; color: var(--muted); line-height: 1.65; }
.footer-column h3 { margin: 0 0 13px; font-size: .9rem; letter-spacing: .08em; color: #0a0a0a; }
.footer-column a { display: block; margin: 8px 0; color: var(--muted); text-decoration: none; font-size: .9rem; }
.footer-column a:hover { color: var(--pink); }
.footer-bottom { margin-top: 28px; padding-top: 20px; display: flex; justify-content: space-between; gap: 15px; flex-wrap: wrap; border-top: 1px solid #f0d8ec; color: var(--muted-2); font-size: .84rem; }

/* ── Admin (kept dark) ──────────────────────────────────────────────────────── */
.admin-body { background: #08080b; color: #fff; }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 255px 1fr; }
.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 20px 14px;
  border-right: 1px solid #2c1b29;
  background: #060608;
}
.admin-sidebar .brand { margin: 2px 4px 22px; }
.admin-nav { display: grid; gap: 4px; }
.admin-nav a, .admin-nav button {
  width: 100%;
  padding: 11px 12px;
  text-align: left;
  color: #f4edf2;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}
.admin-nav a:hover, .admin-nav a[aria-current="page"], .admin-nav button:hover { color: #ff8fd5; background: #281020; }
.admin-content { min-width: 0; padding: 28px; }
.admin-topline { margin-bottom: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.admin-topline h1 { margin: 0; font-size: clamp(2.2rem, 5vw, 4.2rem); }
.admin-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.admin-card { min-height: 126px; }
.admin-card span { color: #cbbfca; font-size: .77rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.admin-card strong { display: block; margin-top: 7px; color: var(--pink); font-size: 2rem; }
.table-shell { overflow-x: auto; border: 1px solid #302633; border-radius: 17px; background: #101116; }
table { width: 100%; min-width: 760px; border-collapse: collapse; }
th, td { padding: 12px 13px; text-align: left; vertical-align: top; border-bottom: 1px solid #29232c; }
th { color: #ff8fd5; font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; }
td { color: #eee7ed; font-size: .88rem; }
tr:last-child td { border-bottom: 0; }
.table-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-toolbar { margin-bottom: 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.admin-toolbar .search-field { min-width: min(360px, 100%); }
.capacity-bar { height: 10px; overflow: hidden; border-radius: 999px; background: #27242a; }
.capacity-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--pink), #ff8fd5); }
.guide-step { margin: 24px 0; padding: 3px 0 3px 17px; border-left: 4px solid var(--pink); }
.guide-step h2, .guide-step h3 { margin-top: 0; }
.guide-step p, .guide-step li { color: #cbbfca; line-height: 1.7; }
code { padding: 2px 6px; color: #ff8fd5; border-radius: 6px; background: #25101f; }
pre { overflow-x: auto; padding: 14px; color: #fff; border: 1px solid #5d2a49; border-radius: 13px; background: #08080b; white-space: pre-wrap; }

.player-shell { height: calc(100vh - 82px); display: flex; flex-direction: column; overflow: hidden; }
.player-toolbar { padding: 12px 15px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 2px solid var(--pink); background: #09090d; flex-shrink: 0; }
.player-frame { width: 100%; flex: 1; min-height: 0; border: 0; background: #fff; display: block; }

.loading { padding: 30px; color: var(--muted); text-align: center; }
.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 200;
  max-width: min(410px, calc(100% - 36px));
  padding: 13px 16px;
  color: #0a0a0a;
  border: 1px solid var(--pink);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--glow), var(--shadow);
}

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { min-height: 460px; }
  .feature-strip { grid-template-columns: repeat(2, 1fr); }
  .feature-item:nth-child(2) { border-right: 0; }
  .feature-item:nth-child(-n+2) { border-bottom: 1px solid #f0d8ec; }
  .grid-4, .admin-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-detail, .account-layout { grid-template-columns: 1fr; }
  .account-nav { position: static; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid #2c1b29; }
  .admin-nav { grid-template-columns: repeat(4, minmax(130px, 1fr)); overflow-x: auto; }
  .admin-sidebar .brand { margin-bottom: 14px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .brand-copy strong { font-size: 1rem; }
  .brand-copy span { font-size: .58rem; letter-spacing: .12em; }
  .brand-logo { width: 50px; height: 50px; flex-basis: 50px; }
  .header-row { min-height: 72px; }
  .home-hero { padding-top: 18px; }
  .hero-media { min-height: 330px; }
  .hero-copy { padding: 30px 22px; }
  .feature-strip, .grid-2, .grid-3, .grid-4, .admin-cards, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .feature-item { border-right: 0; border-bottom: 1px solid #f0d8ec; }
  .feature-item:last-child { border-bottom: 0; }
  .toolbar { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .section-head p { margin-top: 10px; }
  .game-grid { grid-template-columns: 1fr; }
  .game-actions { grid-template-columns: 1fr 1fr; }
  .detail-cover .fallback { min-height: 260px; }
  .admin-content { padding: 18px 14px; }
  .admin-nav { grid-template-columns: repeat(2, minmax(135px, 1fr)); }
  .order-card { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .container { width: min(var(--content), calc(100% - 22px)); }
  .brand-copy span { display: none; }
  .game-actions { grid-template-columns: 1fr; }
  .actions .button { width: 100%; }
  .admin-nav { grid-template-columns: 1fr 1fr; }
}

/* Membership tier editor controls */
.tier-form-actions { display: grid; gap: 9px; margin-top: 8px; }
.tier-delete-note { margin: 12px 0 0; }
.compact-panel { margin-bottom: 12px; padding: 14px 16px; }
.compact-panel p { margin: 4px 0 0; }
.button[disabled] { opacity: .62; cursor: wait; transform: none; }

/* Administrator security gate */
.admin-body .admin-shell { visibility: hidden; }
.admin-body.admin-authorized .admin-shell { visibility: visible; }

/* GitHub + AI Studio owner guides */
.guide-index { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 14px; margin: 18px 0 24px; }
.guide-index a { display: block; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-decoration: none; }
.guide-index a:hover { border-color: var(--pink); transform: translateY(-2px); }
.prompt-card { border: 1px solid #f0d0e8; border-radius: 16px; padding: 16px; margin: 16px 0; background: #fff; }
.prompt-card h3 { margin-top: 0; }
.prompt-card pre { max-height: 360px; overflow: auto; }
.copy-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.security-list li::marker { color: var(--pink); }
.owner-only-note { border-left: 4px solid var(--pink); }

/* ── Product delivery option cards ─────────────────────────────────────────── */
.delivery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.delivery-card {
  padding: 18px;
  border: 2px solid #f0d8ec;
  border-radius: 16px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
.delivery-card:hover { border-color: #e8b0d8; }
.delivery-card-active {
  border-color: var(--pink) !important;
  box-shadow: var(--glow);
  background: linear-gradient(135deg, #fff5fb, #fff);
}
.delivery-card-head {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}
.delivery-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border: 2px solid var(--pink);
  border-radius: 12px;
  font-size: 1.3rem;
  box-shadow: var(--glow);
  background: #fff5fb;
}
.delivery-label { font-size: 1rem; font-weight: 900; display: block; }
@media (max-width: 820px) { .delivery-grid { grid-template-columns: 1fr; } }

/* ── Admin Orientation Guide ────────────────────────────────────────────────── */
.orientation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.orientation-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.orientation-card h3 { margin: 0; font-size: 1.1rem; }
.orientation-card p  { margin: 0; font-size: .88rem; line-height: 1.6; }
.orientation-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 2px solid var(--pink);
  border-radius: 14px;
  font-size: 1.4rem;
  flex: 0 0 46px;
  box-shadow: var(--glow);
  background: #fff5fb;
}
.orientation-tips {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.65;
}
.orientation-tips li { margin: 5px 0; }
.orientation-steps {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.8;
}
.orientation-steps li { margin: 6px 0; }
.orientation-steps strong { color: #0a0a0a; }
.orientation-tips-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 28px;
}
.pink-link { color: var(--pink); font-weight: 800; text-decoration: none; }
.pink-link:hover { color: var(--pink-strong); text-decoration: underline; }

@media (max-width: 1020px) {
  .orientation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .orientation-grid { grid-template-columns: 1fr; }
  .orientation-tips-grid { grid-template-columns: 1fr; }
}

/* ── Global layout health ───────────────────────────────────────────────────── */
td { overflow-wrap: anywhere; }
.admin-content { overflow-x: hidden; }
.table-actions { flex-wrap: wrap; }
body { overflow-x: hidden; }

/* ── Mid-size screen nav (1021 – 1200 px) ───────────────────────────────────── */
@media (max-width: 1200px) and (min-width: 1021px) {
  .desktop-nav { gap: 13px; }
  .desktop-nav > a:not(.button) { font-size: .84rem; }
  .auth-links { gap: 6px; }
  .button { padding: 10px 13px; font-size: .88rem; }
}

/* ── Tablet nav (769 – 1020 px) — desktop nav still visible, compressed ─────── */
@media (max-width: 1020px) and (min-width: 769px) {
  .desktop-nav { gap: 8px; flex-wrap: nowrap; }
  .desktop-nav > a:not(.button) { font-size: .78rem; }
  .auth-links { gap: 5px; }
  .auth-links .button { padding: 8px 10px; font-size: .76rem; min-height: 38px; }
}

/* ── Mobile nav (≤ 768 px) — hamburger only in header ───────────────────────── */
@media (max-width: 768px) {
  .desktop-nav { display: none; }
  /* position: static so the panel is contained by .site-header (sticky),
     which spans 100% viewport width — makes the panel full-width safely */
  .mobile-menu { display: block; position: static; }
  .mobile-panel {
    position: absolute;
    top: 100%;      /* immediately below the sticky header */
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 0 0 16px 16px;
    max-height: calc(100svh - 80px);
    box-sizing: border-box;
  }
}

/* ── Tablet (721 – 1020 px) ────────────────────────────────────────────────── */
@media (max-width: 1020px) {
  .admin-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: 1fr; }
}

/* ── Small mobile (≤ 600 px) ────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .admin-content { padding: 14px 12px; }
  .admin-topline { flex-direction: column; align-items: flex-start; gap: 10px; }
  .admin-topline h1, .admin-topline h2 { font-size: clamp(1.8rem, 7vw, 2.8rem); }
  .table-actions { width: 100%; }
  .table-actions .button { flex: 1 1 calc(50% - 3px); justify-content: center; }
  table { min-width: 540px; }
  .membership-grid { grid-template-columns: 1fr; }
  .auth-links { flex-wrap: wrap; justify-content: center; }
  .hero-copy { padding: 22px 18px; }
  .feature-strip { grid-template-columns: 1fr; }
  .feature-item { border-right: 0; border-bottom: 1px solid #f0d8ec; }
  .feature-item:last-child { border-bottom: 0; }
  .game-actions { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── Extra-small (≤ 400 px) ─────────────────────────────────────────────────── */
@media (max-width: 400px) {
  .container { width: min(var(--content), calc(100% - 16px)); }
  .admin-nav { grid-template-columns: 1fr 1fr; }
  h1 { font-size: clamp(2.2rem, 10vw, 3.5rem); }
  .page-title { font-size: clamp(2rem, 9vw, 3rem); }
  .table-actions .button { flex: 1 1 100%; }
}

/* ── Account page: hero clears the sticky header at every breakpoint ────────── */
/* Desktop > 1020 px: header ~82 px tall                                         */
[data-page="account"] .page-hero { padding-top: 72px; }
/* Tablet 769–1020 px: desktop nav still visible but compressed; more nav items  */
/* can push header to ~100 px, so give extra clearance.                          */
@media (max-width: 1020px) and (min-width: 769px) {
  [data-page="account"] .page-hero { padding-top: 88px; }
}
/* Mobile ≤ 768 px: hamburger-only header is ~72 px; moderate padding is enough. */
@media (max-width: 768px) {
  [data-page="account"] .page-hero { padding-top: 56px; }
}
/* Small mobile ≤ 430 px: keep consistent clearance, avoid excessive blank space. */
@media (max-width: 430px) {
  [data-page="account"] .page-hero { padding-top: 48px; }
}

/* ── G&P Bucks ──────────────────────────────────────────────────────────────── */
.bucks-balance {
  display:inline-flex;align-items:center;gap:8px;
  padding:10px 18px;border:2px solid var(--pink);border-radius:999px;
  background:rgba(255,42,168,.06);color:var(--pink);font-weight:900;font-size:1.15rem;
  box-shadow:var(--glow);
}
.bucks-balance-sm {
  display:inline-flex;align-items:center;gap:5px;padding:5px 11px;
  border:1px solid var(--pink);border-radius:999px;background:rgba(255,42,168,.06);
  color:var(--pink);font-weight:900;font-size:.82rem;
}
.bucks-badge {
  display:inline-flex;align-items:center;gap:3px;padding:3px 8px;
  border-radius:999px;background:rgba(255,42,168,.1);color:var(--pink);
  font-weight:900;font-size:.78rem;white-space:nowrap;
}
.bucks-packages {
  display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:14px;
}
.bucks-pkg {
  padding:18px 14px;border:2px solid #f0d8ec;border-radius:16px;
  background:#fff;text-align:center;cursor:pointer;transition:border-color .2s,box-shadow .2s;
}
.bucks-pkg:hover,.bucks-pkg.featured { border-color:var(--pink);box-shadow:var(--glow); }
.bucks-pkg .pkg-amount { font-size:1.7rem;font-weight:950;color:var(--pink);display:block; }
.bucks-pkg .pkg-name { font-size:.82rem;color:var(--muted);margin:4px 0 8px; }
.bucks-pkg .pkg-price { font-weight:900;font-size:.9rem;color:#0a0a0a; }
.ledger-list { display:grid;gap:8px; }
.ledger-row {
  display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center;
  padding:10px 14px;border:1px solid #f0d8ec;border-radius:11px;background:#fff;
}
.ledger-row.positive .ledger-amt { color:#1a6035; }
.ledger-row.negative .ledger-amt { color:#cc2244; }
.ledger-amt { font-weight:900;font-size:1rem; }

/* ── NFT Cards ───────────────────────────────────────────────────────────────── */
.nft-grid {
  display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:20px;
}
.nft-card {
  display:flex;flex-direction:column;overflow:hidden;
  border:2px solid #f0d8ec;border-radius:19px;
  background:#fff;
  transition:border-color .2s,box-shadow .2s;
}
.nft-card:hover { border-color:var(--pink);box-shadow:var(--glow); }
.nft-card.rarity-uncommon { border-color:#a8e8c0; }
.nft-card.rarity-uncommon:hover { border-color:#4ade80;box-shadow:0 0 16px rgba(74,222,128,.35); }
.nft-card.rarity-rare { border-color:#a8c8f0; }
.nft-card.rarity-rare:hover { border-color:#60a5fa;box-shadow:0 0 16px rgba(96,165,250,.35); }
.nft-card.rarity-epic { border-color:#d0a8f8; }
.nft-card.rarity-epic:hover { border-color:#c084fc;box-shadow:0 0 16px rgba(192,132,252,.4); }
.nft-card.rarity-legendary { border-color:#fcd88a;box-shadow:0 0 12px rgba(251,191,36,.2); }
.nft-card.rarity-legendary:hover { border-color:#fbbf24;box-shadow:0 0 20px rgba(251,191,36,.5); }
.nft-image {
  position:relative;aspect-ratio:1;overflow:hidden;
  display:grid;place-items:center;background:linear-gradient(135deg,#fff0f8,#ffdaea);
}
.nft-image img { width:100%;height:100%;object-fit:cover; }
.nft-image .nft-fallback { font-size:5rem;opacity:.6; }
.rarity-badge {
  position:absolute;top:10px;left:10px;padding:5px 10px;
  border-radius:999px;font-size:.65rem;font-weight:950;letter-spacing:.06em;text-transform:uppercase;
}
.rarity-badge.common { background:#f0f0f8;color:#6060a0; }
.rarity-badge.uncommon { background:#eafef2;color:#1a6035; }
.rarity-badge.rare { background:#e8f0ff;color:#1a3d8a; }
.rarity-badge.epic { background:#f0e8ff;color:#5a1a9a; }
.rarity-badge.legendary { background:#fff8e8;color:#8a5a00; }
.supply-badge {
  position:absolute;top:10px;right:10px;padding:4px 8px;
  border-radius:999px;background:rgba(0,0,0,.5);color:#fff;font-size:.62rem;font-weight:900;
}
.nft-body { padding:15px;display:flex;flex-direction:column;gap:8px;flex:1; }
.nft-title { margin:0;font-size:1rem;font-weight:900;line-height:1.25;color:#0a0a0a; }
.nft-desc { margin:0;color:var(--muted);font-size:.82rem;line-height:1.5;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden; }
.nft-price-row { display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;padding-top:8px; }
.nft-current-price { color:var(--pink);font-weight:950;font-size:1.1rem; }
.nft-actions { display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px; }
.nft-sold-out { opacity:.45;pointer-events:none; }

/* Trade Listings */
.listing-grid { display:grid;gap:12px; }
.listing-card {
  display:grid;grid-template-columns:64px 1fr auto;gap:14px;align-items:center;
  padding:14px;border:1px solid #f0d8ec;border-radius:14px;background:#fff;
}
.listing-thumb { width:64px;height:64px;border-radius:10px;overflow:hidden;display:grid;place-items:center;background:#fff0f8;font-size:2rem; }
.listing-thumb img { width:100%;height:100%;object-fit:cover; }

/* Borrow cards */
.borrow-card {
  padding:15px;border:2px dashed #f0d8ec;border-radius:14px;background:#fff;
  display:grid;grid-template-columns:60px 1fr;gap:14px;align-items:start;
}
.borrow-thumb { width:60px;height:60px;border-radius:10px;overflow:hidden;display:grid;place-items:center;background:#fff0f8;font-size:1.8rem; }
.borrow-due { font-size:.78rem;color:#cc8800;font-weight:900; }

/* NFT filter chips */
.nft-filters { display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px; }
.nft-chip {
  padding:7px 14px;border:1px solid #f0d8ec;border-radius:999px;
  background:#fff;color:var(--muted);font-size:.8rem;font-weight:850;cursor:pointer;
  transition:all .18s;
}
.nft-chip:hover,.nft-chip.active { border-color:var(--pink);color:var(--pink);background:#fff0f8; }
.nft-chip.rarity-uncommon.active { border-color:#4ade80;color:#1a6035;background:#eafef2; }
.nft-chip.rarity-rare.active { border-color:#60a5fa;color:#1a3d8a;background:#e8f0ff; }
.nft-chip.rarity-epic.active { border-color:#c084fc;color:#5a1a9a;background:#f0e8ff; }
.nft-chip.rarity-legendary.active { border-color:#fbbf24;color:#8a5a00;background:#fff8e8; }

/* Trailer admin */
.trailer-list { display:grid;gap:12px; }
.trailer-row {
  display:grid;grid-template-columns:1fr auto;gap:14px;align-items:center;
  padding:14px 16px;border:1px solid #f0d8ec;border-radius:13px;background:#fff;
}
.trailer-row h3 { margin:0;font-size:.95rem;color:#0a0a0a; }
.trailer-row .muted { font-size:.8rem; }

/* Trailer public page */
.trailers-grid { display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:24px; }
.trailer-card { border:1px solid #f0d8ec;border-radius:18px;overflow:hidden;background:#fff; }
.trailer-embed { position:relative;aspect-ratio:16/9;background:#000; }
.trailer-video { position:absolute;inset:0;width:100%;height:100%;border:0; }
.trailer-info { padding:14px 16px; }
.trailer-title { margin:6px 0 0;font-size:1rem;color:#0a0a0a; }
.trailer-desc { margin:6px 0 0;font-size:.84rem;color:var(--muted); }
.trailer-game-badge {
  display:inline-block;padding:3px 9px;border-radius:999px;
  background:#ffe8f5;color:var(--pink);font-size:.68rem;font-weight:900;
}
.trailer-filters { display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px; }
.trailer-chip {
  padding:7px 14px;border:1px solid #f0d8ec;border-radius:999px;
  background:#fff;color:var(--muted);font-size:.8rem;font-weight:850;cursor:pointer;
}
.trailer-chip.trailer-chip-active { border-color:var(--pink);color:var(--pink);background:#fff0f8; }
.trailers-empty { text-align:center;padding:60px 20px; }
.trailers-empty .empty-icon { font-size:4rem;margin-bottom:14px; }
.trailers-loading { padding:40px;text-align:center;color:var(--muted); }

/* ── Playbook ─────────────────────────────────────────────────────────────────── */
.playbook-section {
  margin-bottom:40px;padding:24px;border:1px solid #f0d8ec;border-radius:18px;background:#fff;
}
.playbook-section h2 { margin-top:0;font-size:clamp(1.5rem,4vw,2.4rem); }
.playbook-step {
  display:grid;grid-template-columns:36px 1fr;gap:14px;align-items:start;
  margin:14px 0;padding:14px;border:1px solid #f0d8ec;border-radius:12px;background:#fdf5fb;
}
.step-num {
  width:36px;height:36px;display:grid;place-items:center;flex-shrink:0;
  border:2px solid var(--pink);border-radius:50%;color:var(--pink);font-weight:950;font-size:.9rem;
}
.playbook-step h4 { margin:0 0 5px;font-size:.95rem;color:#0a0a0a; }
.playbook-step p { margin:0;color:var(--muted);font-size:.86rem;line-height:1.6; }
.info-grid { display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px;margin:16px 0; }
.info-card {
  padding:16px;border:1px solid #f0d8ec;border-radius:14px;background:#fff;
}
.info-card strong { display:block;margin-bottom:5px;color:#0a0a0a; }
.info-card p { margin:0;color:var(--muted);font-size:.84rem; }

/* ── Marketing Center ────────────────────────────────────────────────────────── */
.mkt-template-picker { display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px;margin:16px 0; }
.mkt-tpl-btn {
  padding:16px 12px;border:2px solid #f0d8ec;border-radius:14px;background:#fff;
  text-align:center;cursor:pointer;transition:all .2s;
}
.mkt-tpl-btn:hover,.mkt-tpl-btn.active { border-color:var(--pink);background:rgba(255,42,168,.04); }
.mkt-tpl-btn .tpl-icon { font-size:2rem;display:block;margin-bottom:8px; }
.mkt-tpl-btn strong { display:block;font-size:.88rem;color:#0a0a0a; }
.mkt-tpl-btn small { display:block;color:var(--muted);font-size:.72rem;margin-top:3px; }
.mkt-editor { display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start; }
.mkt-preview-shell {
  position:sticky;top:110px;border:2px solid var(--pink);border-radius:16px;overflow:hidden;
  box-shadow:var(--glow);background:#fff;
}
.mkt-preview-frame { width:100%;aspect-ratio:8.5/11;overflow:hidden;position:relative; }
.mkt-preview-frame.square { aspect-ratio:1; }
.mkt-preview-frame.banner { aspect-ratio:3/1; }
.mkt-preview-frame.card { aspect-ratio:1.75; }

/* Print / PDF */
@media print {
  body > *:not(#printTarget) { display:none !important; }
  #printTarget { display:block !important;position:fixed;inset:0;z-index:99999;background:#fff; }
  #printTarget * { -webkit-print-color-adjust:exact;print-color-adjust:exact; }
}

/* Brand swatch strip */
.brand-swatches { display:flex;gap:10px;flex-wrap:wrap;margin:12px 0; }
.swatch {
  width:56px;height:56px;border-radius:12px;display:flex;align-items:flex-end;
  padding:4px;font-size:.55rem;font-weight:900;color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.8);
}

@media(max-width:720px) {
  .nft-grid,.trailers-grid { grid-template-columns:1fr; }
  .mkt-editor { grid-template-columns:1fr; }
  .mkt-preview-shell { position:static; }
  .listing-card { grid-template-columns:48px 1fr; }
}

/* ── Neon border offset ─────────────────────────────────────────────────────── */
.site-header { top: var(--border-w); }
.skip-link  { top: calc(8px + var(--border-w)); left: calc(8px + var(--border-w)); }

/* ── [hidden] attribute ──────────────────────────────────────────────────────── */
[hidden] { display: none !important; }

/* ── Modal overlay and dialog ────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.68);
  overflow-y: auto;
}

.modal {
  width: min(440px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #ffffff;
  border: 2px solid #ff2aa8;
  border-radius: 20px;
  box-shadow: 0 0 35px rgba(255, 42, 168, 0.45);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid #f0d8ec;
}

.modal-header h2 { margin: 0; }

.modal-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #f7edf4;
  color: #111;
  cursor: pointer;
  font-size: 1.1rem;
}
