/* woofing.cc — shared styles */
:root {
  color-scheme: dark;
  --bg: #09070a;
  --bg-2: #0f0c10;
  --panel: #141016;
  --panel-2: #1a141c;
  --line: #2a2026;
  --line-soft: #ffffff10;
  --red: #ff1f3c;
  --red-hot: #ff4d60;
  --red-soft: #ff8791;
  --red-glow: #ff1f3c55;
  --red-neon: #ff2e49;
  --text: #f6f1f3;
  --muted: #a69ca2;
  --dim: #7d7379;
  --radius: 14px;
  --radius-sm: 9px;
  --wrap: 1180px;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'DM Sans', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
body::before { /* subtle grain + top glow */
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 85% -10%, #9e122838, transparent 60%),
    radial-gradient(700px 500px at -10% 110%, #7a0e2222, transparent 60%);
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red-soft); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; }
.accent { color: var(--red); }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--red); color: #fff; padding: 10px 14px; border-radius: 8px; font-weight: 700;
}
.skip:focus { top: 12px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #09070acc;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
}
.nav { height: 72px; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; font: 800 20px/1 var(--display); letter-spacing: .06em; margin-right: auto; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 11px; overflow: hidden; flex: none;
  background: var(--panel); box-shadow: 0 0 0 1px #ffffff14, 0 6px 24px var(--red-glow);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand span b { color: var(--red); font-weight: 800; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a:not(.btn) {
  position: relative; padding: 9px 13px; border-radius: 8px;
  color: #c9bfc5; font-size: 14px; font-weight: 600; transition: color .2s, background .2s;
}
.nav-links a:not(.btn):hover { color: #fff; background: #ffffff0d; }
.nav-links a[aria-current='page'] { color: #fff; }
.nav-links a[aria-current='page']::after {
  content: ''; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 2px;
  border-radius: 2px; background: var(--red);
}
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: 10px; }
.menu-toggle {
  display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid #ffffff20;
  background: transparent; color: #fff; cursor: pointer; align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: .25s var(--ease);
}
.menu-toggle span::before, .menu-toggle span::after { content: ''; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.nav-open .menu-toggle span { background: transparent; }
.nav-open .menu-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .menu-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 20px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font: 700 14px/1 var(--body); cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 28px -8px var(--red-glow); }
.btn-primary:hover { background: var(--red-hot); box-shadow: 0 12px 34px -8px #f12d3c80; }
.btn-ghost { background: #ffffff08; color: #fff; border-color: #ffffff22; }
.btn-ghost:hover { background: #ffffff12; border-color: #ffffff38; }
.btn-sm { padding: 9px 14px; font-size: 13px; }
.btn-lg { padding: 15px 24px; font-size: 15px; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--red-soft); font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--red); border-radius: 2px; }
.display { font: 900 clamp(64px, 11vw, 148px)/.84 var(--display); letter-spacing: -.01em; text-transform: uppercase; }
.h2 { font: 800 clamp(38px, 5.5vw, 64px)/.95 var(--display); text-transform: uppercase; letter-spacing: .005em; }
.lead { color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); max-width: 540px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px;
  min-height: min(720px, calc(100vh - 72px)); padding: 60px 0;
}
.hero-copy { display: grid; gap: 26px; justify-items: start; position: relative; z-index: 1; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-art { position: relative; align-self: stretch; display: grid; place-items: center; }
.hero-art::before {
  content: ''; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #f12d3c55, #f12d3c10 55%, transparent 70%);
  filter: blur(10px); animation: pulse 6s ease-in-out infinite;
}
.hero-art img {
  position: relative; width: min(100%, 470px); height: auto;
  filter: drop-shadow(0 30px 60px #000c); animation: float 7s ease-in-out infinite;
}
.hero-stats { display: flex; gap: 34px; margin-top: 14px; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.hero-stats div { display: grid; gap: 2px; }
.hero-stats strong { font: 800 30px/1 var(--display); letter-spacing: .02em; }
.hero-stats span { font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes pulse { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.05); } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.marquee-track {
  display: flex; gap: 48px; width: max-content; padding: 16px 0;
  animation: marquee 32s linear infinite;
  font: 800 22px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: #ffffff30;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 48px; }
.marquee-track span::after { content: '✦'; color: var(--red); font-size: 14px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section + .section { padding-top: 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.section-head > div { display: grid; gap: 14px; }
.section-head p { color: var(--muted); max-width: 380px; }

/* ---------- Game cards ---------- */
.games { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.game-card {
  --tint: var(--red);
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  min-height: 300px; padding: 24px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
  isolation: isolate;
}
.game-card::before {
  content: ''; position: absolute; inset: auto -30% -40% -30%; height: 75%; z-index: -1;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--tint) 45%, transparent), transparent 65%);
  opacity: .45; transition: opacity .35s, transform .35s var(--ease);
}
.game-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--tint) 60%, var(--line)); box-shadow: 0 24px 60px -24px color-mix(in srgb, var(--tint) 60%, transparent); }
.game-card:hover::before { opacity: .9; transform: translateY(-8%); }
.game-card .num { font: 700 13px/1 var(--display); letter-spacing: .2em; color: var(--dim); }
.game-card .icon {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  background: #ffffff0a; border: 1px solid #ffffff14; color: var(--tint);
}
.game-card .icon svg { width: 26px; height: 26px; }
.game-card h3 { font: 800 38px/.95 var(--display); text-transform: uppercase; margin-top: 18px; }
.game-card p { color: var(--muted); font-size: 14px; margin-top: 8px; }
.game-card .go {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  font-size: 13px; font-weight: 700; color: #fff;
}
.game-card .go svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.game-card:hover .go svg { transform: translateX(4px); }
.game-top { display: flex; justify-content: space-between; align-items: start; }
[data-tint='fortnite'] { --tint: #7c5cff; }
[data-tint='minecraft'] { --tint: #4cc26a; }
[data-tint='xbox'] { --tint: #23c35b; }
[data-tint='vrchat'] { --tint: #2fa8ff; }

/* ---------- Feature / info cards ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  padding: 28px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  display: grid; gap: 10px; align-content: start;
  transition: border-color .3s, transform .3s var(--ease);
}
.card:hover { border-color: #3a2c34; transform: translateY(-3px); }
.card .icon {
  width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
  background: #f12d3c18; color: var(--red-soft); margin-bottom: 6px;
}
.card .icon svg { width: 22px; height: 22px; }
.card h3 { font: 800 26px/1 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.card p { color: var(--muted); font-size: 15px; }
.tag {
  justify-self: start; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red-soft); background: #f12d3c14; border: 1px solid #f12d3c33; padding: 5px 9px; border-radius: 999px;
}

/* ---------- Shop teaser ---------- */
.shop {
  position: relative; overflow: hidden; border-radius: 20px; border: 1px solid var(--line);
  background:
    radial-gradient(600px 300px at 90% 120%, #f12d3c30, transparent 60%),
    linear-gradient(145deg, #1a1319, #0f0b0f);
  padding: clamp(32px, 5vw, 64px);
  display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center;
}
.shop-copy { display: grid; gap: 16px; }
.shop-copy p { color: var(--muted); max-width: 460px; }
.shop-items { display: flex; gap: 12px; }
.shop-item {
  width: 120px; aspect-ratio: 3/4; border-radius: 12px; border: 1px dashed #ffffff22;
  background: repeating-linear-gradient(135deg, #ffffff05 0 10px, transparent 10px 20px);
  display: grid; place-items: center; color: var(--dim); font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; text-align: center; padding: 10px;
}
.shop-item:nth-child(2) { transform: translateY(-14px); }

/* ---------- Discord CTA ---------- */
.cta {
  text-align: center; display: grid; justify-items: center; gap: 20px;
  padding: clamp(48px, 7vw, 90px) 24px; border-radius: 20px;
  background: linear-gradient(135deg, #c41a2a, #f12d3c 45%, #ff5866);
  position: relative; overflow: hidden;
}
.cta::after {
  content: ''; position: absolute; right: -60px; bottom: -80px; width: 340px; aspect-ratio: 1;
  background: url('/logo-hero.webp') center/contain no-repeat; opacity: .16; transform: rotate(-8deg);
}
.cta > * { position: relative; z-index: 1; }
.cta .h2 { max-width: 700px; }
.cta p { color: #ffe3e6; max-width: 460px; }
.cta .btn { background: #0b080b; color: #fff; }
.cta .btn:hover { background: #000; box-shadow: 0 14px 40px -10px #0009; }

/* ---------- Page hero (game pages) ---------- */
.page-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero::before {
  content: ''; position: absolute; inset: -40% -10% auto auto; width: 70%; aspect-ratio: 1; z-index: -1;
  background: radial-gradient(circle, color-mix(in srgb, var(--tint, var(--red)) 30%, transparent), transparent 60%);
}
.page-hero-inner { padding: clamp(70px, 10vw, 130px) 0 clamp(50px, 7vw, 90px); display: grid; gap: 22px; justify-items: start; }
.page-hero .display { font-size: clamp(60px, 10vw, 128px); }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--dim); }
.crumbs a:hover { color: #fff; }
.page-hero .eyebrow { color: color-mix(in srgb, var(--tint, var(--red)) 70%, #fff); }
.page-hero .eyebrow::before { background: var(--tint, var(--red)); }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pager a {
  padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel);
  display: grid; gap: 4px; transition: border-color .25s, background .25s;
}
.pager a:hover { border-color: #3d2d36; background: var(--panel-2); }
.pager a:last-child { text-align: right; }
.pager small { color: var(--dim); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.pager strong { font: 800 28px/1 var(--display); text-transform: uppercase; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 56px 0 40px; }
.footer-grid p { color: var(--dim); font-size: 14px; margin-top: 14px; max-width: 300px; }
.footer-grid h4 { margin: 0 0 14px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #fff; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-grid li a { color: var(--muted); font-size: 14px; transition: color .2s; }
.footer-grid li a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 20px 0 28px; border-top: 1px solid var(--line-soft); color: var(--dim); font-size: 13px;
}

/* ---------- Auth page ---------- */
.auth-body { background: var(--bg); }
.auth { flex: 1; display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-art {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  padding: 40px clamp(32px, 4vw, 56px);
  background:
    radial-gradient(700px 500px at 30% 70%, #f12d3c40, transparent 60%),
    linear-gradient(160deg, #1a1018, #0b080b);
  border-right: 1px solid var(--line);
}
.auth-art img.art {
  position: absolute; right: -6%; bottom: -4%; width: min(88%, 560px); height: auto;
  filter: drop-shadow(0 30px 60px #000a); animation: float 8s ease-in-out infinite;
}
.auth-art-copy { position: relative; z-index: 1; display: grid; gap: 14px; max-width: 380px; }
.auth-art-copy .h2 { font-size: clamp(44px, 5vw, 72px); }
.auth-art-copy p { color: var(--muted); }
.auth-main { display: grid; place-items: center; padding: 40px 24px; }
.auth-panel { width: min(420px, 100%); display: grid; gap: 6px; }
.auth-panel .title { font: 800 46px/.95 var(--display); text-transform: uppercase; margin-top: 10px; }
.auth-panel .sub { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.seg {
  display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 11px;
  background: var(--panel); border: 1px solid var(--line); margin-bottom: 10px; position: relative;
}
.seg button {
  position: relative; z-index: 1; border: 0; background: none; color: var(--muted); cursor: pointer;
  padding: 10px; border-radius: 8px; font: 600 14px var(--body); transition: color .2s;
}
.seg button.active { color: #fff; }
.seg::before {
  content: ''; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  border-radius: 8px; background: #ffffff12; border: 1px solid #ffffff14;
  transition: transform .3s var(--ease);
}
.seg[data-active='register']::before { transform: translateX(100%); }
.field { display: grid; gap: 7px; margin-top: 12px; }
.field label { font-size: 13px; font-weight: 600; color: #ddd3d8; }
.input-wrap { position: relative; }
.field input {
  width: 100%; border: 1px solid #3a2d35; border-radius: 10px; background: #0d0a0e; color: #fff;
  padding: 13px 14px; font: 15px var(--body); outline: none; transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: #5f555b; }
.field input:hover { border-color: #4a3a44; }
.field input:focus { border-color: var(--red); box-shadow: 0 0 0 4px #f12d3c22; }
.input-wrap input { padding-right: 64px; }
.reveal {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  border: 0; background: #ffffff0d; color: var(--muted); border-radius: 7px; padding: 6px 9px;
  font: 600 12px var(--body); cursor: pointer;
}
.reveal:hover { color: #fff; background: #ffffff18; }
.hint { font-size: 12px; color: var(--dim); }
.meter { height: 4px; border-radius: 4px; background: #ffffff10; overflow: hidden; margin-top: 2px; }
.meter i { display: block; height: 100%; width: 0; background: var(--red); border-radius: 4px; transition: width .3s var(--ease), background .3s; }
.auth-panel .btn-primary { width: 100%; margin-top: 22px; padding: 14px; font-size: 15px; }
.auth-panel .btn-primary[disabled] { opacity: .65; cursor: progress; transform: none; }
.message { min-height: 22px; font-size: 13px; margin-top: 12px; color: var(--muted); }
.message.error { color: #ff8c94; }
.message.success { color: #86d7a5; }
.auth-foot { margin-top: 26px; font-size: 13px; color: var(--dim); }
.auth-foot a { color: var(--red-soft); font-weight: 600; }
.welcome { text-align: center; display: grid; justify-items: center; gap: 8px; }
.welcome .brand-mark { width: 72px; height: 72px; border-radius: 18px; margin-bottom: 12px; }
.hidden { display: none !important; }

/* ---------- Reveal on scroll ---------- */
.js .rise { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .rise.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .games { grid-template-columns: repeat(2, 1fr); }
  .shop { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px 24px 22px; background: #0b080bf5; border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: .25s var(--ease);
  }
  .nav-open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a:not(.btn) { padding: 13px 12px; font-size: 16px; }
  .nav-links a[aria-current='page']::after { left: 0; right: auto; top: 12px; bottom: 12px; width: 3px; height: auto; }
  .nav-actions { margin: 10px 0 0; }
  .nav-actions .btn { flex: 1; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; padding: 50px 0 40px; }
  .hero-art { order: -1; max-height: 340px; }
  .hero-art img { width: min(70%, 320px); }
  .cards-3 { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .section-head { flex-direction: column; align-items: start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 36px); }
  .games { grid-template-columns: 1fr; }
  .game-card { min-height: 230px; }
  .shop-items { display: none; }
  .hero-stats { gap: 22px; }
  .pager { grid-template-columns: 1fr; }
  .pager a:last-child { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rise { opacity: 1; transform: none; }
}

/* ---------- Fixes ---------- */
.hero-grid > * { min-width: 0; }
.hero-art picture { position: relative; display: block; width: min(100%, 470px); }
.hero-art picture img { width: 100%; }
.auth-art img.art { opacity: .6; right: -14%; }
@media (max-width: 860px) { .hero-art picture { width: min(70%, 320px); } }
@media (max-width: 560px) {
  .display { font-size: 14vw; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- Mascot fade ---------- */
.hero-art picture img,
.auth-art img.art {
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 96%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent 96%);
}
.hero .display { font-size: clamp(60px, 9vw, 132px); }
.hero-grid { grid-template-columns: 1.25fr .75fr; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- Announcement ---------- */
.announcement {
  background: linear-gradient(90deg, #b8172a, var(--red));
  color: #fff; font-size: 14px; font-weight: 600; text-align: center; padding: 10px 0;
}

/* ---------- Admin ---------- */
.admin .section-head { align-items: center; }
.admin-save { display: flex; align-items: center; gap: 14px; }
.admin-save .message { margin: 0; min-height: 0; }
.admin-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; align-items: start; }
.admin-card { gap: 6px; }
.admin-card:hover { transform: none; }
.admin-card h2 { font: 800 30px/1 var(--display); text-transform: uppercase; }
.admin-card > p { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.admin-group { border: 1px solid var(--line); border-radius: 11px; background: #0e0b0f; padding: 4px 16px 16px; margin-top: 10px; }
.admin-group summary { cursor: pointer; padding: 12px 0 4px; font-weight: 700; font-size: 15px; list-style-position: inside; }
.admin-group summary::marker { color: var(--red); }
.table-wrap { overflow-x: auto; }
.users { width: 100%; border-collapse: collapse; font-size: 14px; }
.users th { text-align: left; color: var(--dim); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.users td { padding: 12px 6px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.users td:nth-child(2) { color: var(--muted); white-space: nowrap; }
.users .tag { margin-left: 4px; font-size: 10px; padding: 3px 7px; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.btn.danger { color: #ff8c94; border-color: #ff8c9433; }
.btn.danger:hover { background: #f12d3c1a; border-color: #ff8c9466; }
@media (max-width: 960px) { .admin-grid { grid-template-columns: 1fr; } .admin .section-head { align-items: start; } }

/* ---------- Login layout v2 (wide screens) ---------- */
.auth { grid-template-columns: minmax(0, 1.05fr) minmax(460px, .95fr); }
.auth-art { justify-content: flex-start; gap: clamp(48px, 12vh, 140px); }
.auth-art::after { /* soft floor glow under the mascot */
  content: ''; position: absolute; left: 50%; bottom: -12%; width: 90%; height: 45%;
  transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(ellipse, #f12d3c40, transparent 65%); pointer-events: none;
}
.auth-art img.art {
  right: auto; left: 50%; bottom: 0; transform: translateX(-50%);
  width: auto; height: min(68vh, 760px); max-width: 92%; object-fit: contain; opacity: 1;
  animation: float-centered 8s ease-in-out infinite; z-index: 0;
}
@keyframes float-centered { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-12px); } }
.auth-art-copy { max-width: 460px; }
.auth-main { border-left: 1px solid transparent; }
@media (min-width: 1700px) {
  .auth-panel { width: 480px; }
  .auth-panel .title { font-size: 58px; }
  .auth-art-copy .h2 { font-size: 88px; }
  .field input { padding: 15px 16px; font-size: 16px; }
}
@media (max-height: 760px) { .auth-art img.art { height: 56vh; } }
.auth-art img.art { height: min(80vh, 1040px); max-width: 100%; }
@media (max-height: 760px) { .auth-art img.art { height: 66vh; } }

/* ---------- Mobile polish ---------- */
@media (max-width: 860px) {
  /* Login: stacked, with a mascot banner on top */
  .auth { grid-template-columns: 1fr; grid-template-rows: auto 1fr; min-height: 100vh; }
  .auth-art {
    display: flex; min-height: 250px; padding: 20px; gap: 0;
    border-right: 0; border-bottom: 1px solid var(--line);
  }
  .auth-art-copy { display: none; }
  .auth-art img.art { height: 230px; max-width: 80%; }
  .auth-main { place-items: start center; padding: 28px 20px 40px; }
  .auth-panel { width: 100%; max-width: 440px; }
  .auth-panel .title { font-size: 40px; }

  /* Full-screen menu */
  .nav-links { bottom: auto; height: calc(100dvh - 72px); overflow-y: auto; background: #09070afa; padding-top: 16px; }
  .nav-links a:not(.btn) { border-bottom: 1px solid var(--line-soft); border-radius: 0; font-size: 18px; padding: 16px 12px; }
  .nav-actions { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 18px; }
  .nav-actions .btn { padding: 14px; font-size: 15px; }
  .nav-open { background: #09070a; }
  body:has(.nav-open) { overflow: hidden; }

  /* Hero */
  .hero-copy { width: 100%; }
  .hero-copy > * { max-width: 100%; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .display, .hero .display { font-size: 12.5vw; }
  .page-hero .display { font-size: 15vw; }
  .hero-grid { padding: 28px 0 44px; gap: 22px; }
  .hero-art { max-height: 260px; }
  .hero-art picture { width: min(62%, 240px); }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-actions .btn { padding: 14px 12px; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 24px; }
  .h2 { font-size: 40px; }

  /* Compact game cards: icon + name in a row */
  .games { gap: 10px; }
  .game-card { min-height: 0; flex-direction: row; align-items: center; justify-content: flex-start; gap: 16px; padding: 16px 18px; }
  .game-card .game-top { order: 0; }
  .game-card .num { display: none; }
  .game-card h3 { font-size: 30px; margin: 0; }
  .game-card .go { margin-top: 2px; font-size: 12px; color: var(--muted); }
  .game-card .icon { width: 46px; height: 46px; }

  .cards-3 { gap: 10px; }
  .card { padding: 20px; }
  .shop { padding: 26px 22px; }
  .cta { padding: 40px 20px; }
  .cta::after { width: 220px; right: -50px; bottom: -50px; }
  .footer-grid { padding: 40px 0 28px; gap: 28px; }
  .admin-save { width: 100%; justify-content: space-between; }
  .users td:nth-child(2) { display: none; }
  .users th:nth-child(2) { display: none; }
}

/* ---------- Mobile login v3 ---------- */
.auth-mobile-head { display: none; }
@media (max-width: 860px) {
  .auth { grid-template-rows: 1fr; min-height: 100dvh; }
  .auth-art { display: none; }
  .auth-body::before {
    background:
      radial-gradient(420px 320px at 50% 8%, #f12d3c38, transparent 70%),
      radial-gradient(500px 400px at 50% 110%, #7a0e2230, transparent 70%);
  }
  .auth-main { place-items: center; padding: max(28px, env(safe-area-inset-top)) 22px max(28px, env(safe-area-inset-bottom)); }
  .auth-panel { max-width: 420px; text-align: center; }
  .auth-mobile-head { display: flex; justify-content: center; margin-bottom: 18px; }
  .auth-mobile-head .brand-mark {
    width: 84px; height: 84px; border-radius: 24px;
    box-shadow: 0 0 0 1px #ffffff1a, 0 14px 50px -6px #f12d3c88;
  }
  .auth-panel .eyebrow { justify-content: center; }
  .auth-panel .eyebrow::before { display: none; }
  .auth-panel .title { font-size: 38px; white-space: nowrap; margin-top: 6px; }
  .auth-panel .sub { margin-bottom: 20px; }
  .auth-panel form, .auth-panel .message { text-align: left; }
  .field input { font-size: 16px; padding: 14px; } /* 16px stops iPhone zoom-on-tap */
  .seg button { padding: 11px 6px; }
  .auth-panel .btn-primary { padding: 15px; font-size: 16px; }
  .auth-foot { text-align: center; margin-top: 20px; }
}
@media (max-width: 380px) {
  .auth-panel .title { font-size: 34px; }
  .auth-mobile-head .brand-mark { width: 72px; height: 72px; }
}
@media (min-width: 861px) { .auth-art img.art { height: min(80vh, calc(100vh - 370px), 1040px); } }

/* ---------- Socials button ---------- */
.socials-btn { width: 100%; margin-top: 12px; padding: 14px; }
.socials-btn svg { width: 16px; height: 16px; }

/* ---------- Subtle animated background ---------- */
body::before {
  inset: -20%;
  background:
    radial-gradient(38% 32% at 20% 25%, #b3122540, transparent 70%),
    radial-gradient(34% 30% at 80% 70%, #f12d3c26, transparent 70%),
    radial-gradient(30% 28% at 60% 15%, #6e0b1a33, transparent 70%);
  animation: bg-drift 28s ease-in-out infinite alternate;
  will-change: transform;
}
body::after { /* fine grain so the gradients don't band */
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes bg-drift {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); }
  50%  { transform: translate3d(4%, -3%, 0) rotate(4deg); }
  100% { transform: translate3d(-3%, 4%, 0) rotate(-3deg); }
}
.auth-body::before { animation: bg-drift 28s ease-in-out infinite alternate; }
@media (prefers-reduced-motion: reduce) { body::before { animation: none; } }

/* ---------- Fortnite stats & skin picker ---------- */
.fn-toggle { display: flex; gap: 8px; }
.fn-toggle .is-active { border-color: var(--tint, #fff); color: #fff; }
.fn-stats-card:hover, .fn-skin-card:hover { transform: none; }
.fn-headline { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.fn-headline strong { font: 800 30px/1 var(--display); text-transform: uppercase; }
.fn-headline span { color: var(--muted); font-size: 14px; }
.fn-overall { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-bottom: 22px; }
.fn-stat { padding: 16px; border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; gap: 4px; }
.fn-stat-value { font: 800 28px/1 var(--display); }
.fn-stat-label { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.fn-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 14px; }
.fn-mode { padding: 16px; border: 1px solid var(--line-soft); border-radius: 12px; }
.fn-mode h3 { font: 800 20px/1 var(--display); text-transform: uppercase; margin-bottom: 10px; }
.fn-mode dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 14px; }
.fn-mode dt { color: var(--muted); }
.fn-mode dd { margin: 0; font-weight: 600; text-align: right; }
.fn-empty { color: var(--muted); font-size: 14px; }
.fn-current { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.fn-current img { width: 96px; height: 96px; border-radius: 12px; background: var(--line-soft); object-fit: cover; }
.fn-current div { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.fn-current strong { font: 800 24px/1 var(--display); text-transform: uppercase; }
.fn-rarity { color: var(--muted); font-size: 13px; }
.fn-search-label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.fn-search { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: inherit; font: inherit; }
.fn-search:focus { outline: 2px solid var(--tint, #fff); outline-offset: 1px; }
.fn-skin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; margin: 12px 0 16px; }
.fn-skin { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: inherit; cursor: pointer; font: inherit; transition: border-color .2s, transform .2s; }
.fn-skin:hover, .fn-skin:focus-visible { border-color: var(--tint, #fff); transform: translateY(-2px); }
.fn-skin img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 8px; background: var(--line-soft); }
.fn-skin span { font-size: 12px; text-align: center; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }

/* ---------- dog companion mute pill ---------- */
#woofmute { position: fixed; left: 14px; bottom: 14px; z-index: 60; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: inherit; font-size: 13px; line-height: 1; cursor: pointer; opacity: .55; transition: opacity .2s, transform .2s, border-color .2s; }
#woofmute:hover { opacity: 1; transform: translateY(-2px); border-color: var(--red-neon); }
#woofmute.off { opacity: .4; }
#woofdog { transition: transform .1s linear; }
@media (prefers-reduced-motion: reduce) { #woofdog { transition: none; } }

/* ---------- v8 vibrancy + smoother motion ---------- */
.js .rise { transform: translateY(24px) scale(.985); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); will-change: opacity, transform; }
.js .rise.in { transform: none; }

.btn { transition: transform .25s cubic-bezier(.2,.9,.25,1.2), background .25s, border-color .25s, box-shadow .25s; }
.btn:hover { transform: translateY(-3px); }
.btn-primary { position: relative; overflow: hidden; box-shadow: 0 8px 28px -8px var(--red-glow); }
.btn-primary::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 25%, #ffffff5c 50%, transparent 75%); transform: translateX(-130%); transition: transform .6s var(--ease); pointer-events: none; }
.btn-primary:hover::after { transform: translateX(130%); }
.btn-primary:hover { box-shadow: 0 14px 40px -8px var(--red-neon); }
.btn-lg.btn-primary { animation: woofbreathe 3.2s ease-in-out infinite; }
@keyframes woofbreathe { 0%,100% { box-shadow: 0 8px 28px -10px var(--red-glow); } 50% { box-shadow: 0 12px 42px -6px var(--red-neon); } }

.game-card { transition: transform .4s cubic-bezier(.16,1,.3,1), border-color .4s, box-shadow .4s; }
.game-card:hover { transform: translateY(-8px); box-shadow: 0 34px 74px -28px color-mix(in srgb, var(--tint) 80%, transparent), 0 0 0 1px color-mix(in srgb, var(--tint) 45%, transparent); }
.card { transition: transform .35s cubic-bezier(.16,1,.3,1), border-color .35s, box-shadow .35s; }
.card:hover { box-shadow: 0 24px 54px -30px var(--red-glow); }

.brand-mark { transition: box-shadow .35s var(--ease), transform .35s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.05); box-shadow: 0 0 0 1px #ffffff22, 0 8px 32px var(--red-glow); }
.hero .display, .page-hero .display { text-shadow: 0 0 46px var(--red-glow); }
.eyebrow::before, .nav-links a:not(.btn)::after { background: linear-gradient(90deg, var(--red-neon), var(--red-soft)); }
::selection { background: var(--red-neon); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .btn-lg.btn-primary { animation: none; }
  .btn-primary::after { display: none; }
}
