/**
 * Glass & Metal — homepage redesign (scoped to body.glass-metal-home)
 * Light source: top-left ~45° for elevated shadows
 */

@import url("morti-article.css");

:root {
  --gm-bg-obsidian: #0a0a0a;
  --gm-bg-charcoal: #121212;
  --gm-surface: rgba(35, 35, 36, 0.45);
  --gm-border: rgba(255, 255, 255, 0.2);
  --gm-border-soft: rgba(255, 255, 255, 0.08);
  --gm-text: #e5e2e1;
  --gm-text-muted: #9a9a9a;
  --gm-accent: #d4a574;
  --gm-metal-1: #e0e0e0;
  --gm-metal-2: #888888;
  --gm-radius: 12px;
  --gm-pad-section: clamp(2.5rem, 5vw, 4.5rem);
  --gm-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  /* Page / card slides — plain ease-out, no overshoot */
  --gm-slide-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --gm-max: 1280px;
  --gm-shadow-tl: -6px -6px 24px rgba(0, 0, 0, 0.45);
  --gm-inner-glow: inset 0.5px 0.5px 0 0 rgba(255, 255, 255, 0.12);
  --gm-motion-smooth: cubic-bezier(0.33, 1, 0.68, 1);
  --gm-motion-snap: cubic-bezier(0.34, 1.56, 0.64, 1);
  /* Hubble / space loop — https://giphy.com/gifs/esahubble-icDJYd8Zrcqa89tqHf */
  --gm-space-gif-url: url("https://media0.giphy.com/media/v1.Y2lkPTc5MGI3NjExODh6MnAwaGN1aXhsMzYyYzN6a2dvM2xvc29mZjZnNXl2MWt5Y2xrMCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/sJvz8Qnfly3BOuotGx/giphy.gif");
  /* Dark wash stacked above the GIF (higher = subtler / lower perceived GIF opacity) */
  --gm-space-gif-dim: 0.58;
}

/* Sideways scroll: glass-metal pages should not extend past the viewport. Index only
   loads this sheet (no style.css), so duplicate the html/body clamp from style.css. */
html:has(body.glass-metal-home),
html:has(body.glass-metal-site) {
  overflow-x: hidden;
  /* Avoid white flash before body::before paints (FOUC on navigation) */
  background-color: #040814;
}

body.glass-metal-home,
body.glass-metal-site {
  overflow-x: hidden;
  max-width: 100%;
}

/* Space + glass: GIF layer + cool tint (direct asset; iframe embed is not used for bg) */
body.glass-metal-home::before,
body.glass-metal-site::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: #040814;
  background-image:
    linear-gradient(
      180deg,
      rgba(4, 10, 28, 0.88) 0%,
      rgba(6, 14, 36, 0.72) 45%,
      rgba(3, 6, 18, 0.92) 100%
    ),
    radial-gradient(ellipse 120% 70% at 50% -15%, rgba(100, 160, 255, 0.12), transparent 52%),
    radial-gradient(ellipse 90% 60% at 80% 95%, rgba(0, 0, 0, 0.35), transparent 50%),
    linear-gradient(
      rgba(2, 5, 14, var(--gm-space-gif-dim)),
      rgba(2, 5, 14, var(--gm-space-gif-dim))
    ),
    var(--gm-space-gif-url);
  background-size: cover, cover, cover, cover, cover;
  background-position: center, center, center, center, center;
  background-repeat: no-repeat;
}

/* Minigames hub (brawldle.html): darker space wash over GIF + stars */
body.glass-metal-site.brawldle-hub::before {
  background-color: #000208;
  background-image:
    linear-gradient(
      180deg,
      rgba(0, 2, 10, 0.97) 0%,
      rgba(2, 5, 18, 0.93) 45%,
      rgba(0, 1, 6, 0.98) 100%
    ),
    radial-gradient(ellipse 120% 70% at 50% -15%, rgba(70, 110, 200, 0.05), transparent 52%),
    radial-gradient(ellipse 90% 60% at 80% 95%, rgba(0, 0, 0, 0.68), transparent 50%),
    linear-gradient(
      rgba(0, 1, 6, 0.72),
      rgba(0, 1, 6, 0.72)
    ),
    var(--gm-space-gif-url);
  background-size: cover, cover, cover, cover, cover;
  background-position: center, center, center, center, center;
  background-repeat: no-repeat;
}

@media (prefers-reduced-motion: reduce) {
  body.glass-metal-home::before,
  body.glass-metal-site::before {
    background-image:
      linear-gradient(
        180deg,
        rgba(4, 10, 28, 0.95) 0%,
        rgba(6, 14, 36, 0.88) 50%,
        rgba(3, 6, 18, 0.96) 100%
      ),
      radial-gradient(ellipse 100% 80% at 40% 20%, rgba(80, 120, 200, 0.15), transparent 55%),
      radial-gradient(ellipse 80% 50% at 60% 100%, rgba(0, 0, 0, 0.4), transparent 50%);
  }

  body.glass-metal-site.brawldle-hub::before {
    background-image:
      linear-gradient(
        180deg,
        rgba(0, 2, 14, 0.98) 0%,
        rgba(2, 6, 22, 0.94) 50%,
        rgba(0, 1, 8, 0.99) 100%
      ),
      radial-gradient(ellipse 100% 80% at 40% 20%, rgba(60, 100, 180, 0.1), transparent 55%),
      radial-gradient(ellipse 80% 50% at 60% 100%, rgba(0, 0, 0, 0.55), transparent 50%);
  }
}

/* Reset scope */
body.glass-metal-home {
  margin: 0;
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  /* Base fill under fixed ::before (avoids white flash while styles load) */
  background-color: #040814;
  color: var(--gm-text);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

body.glass-metal-home * {
  box-sizing: border-box;
}

body.glass-metal-home > *:not(.skip-link):not(.gm-starfield):not(.gm-bottom-nav) {
  position: relative;
  z-index: 1;
}

/* Home: ambient star canvas — sits above space GIF wash, below UI */
body.glass-metal-home > .gm-starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  transition:
    opacity 0.42s var(--gm-ease),
    transform 0.4s var(--gm-ease);
}

/* Soft galaxy wash — bulge + disk + arms (behind planets & canvas stars; no moon disc) */
body.glass-metal-home > .gm-starfield::before,
body.glass-metal-site > .gm-starfield.gm-starfield--home::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle clamp(48px, 7vw, 100px) at 28% 32%,
      rgba(255, 240, 255, 0.22) 0%,
      rgba(200, 160, 230, 0.1) 35%,
      transparent 52%
    ),
    radial-gradient(
      ellipse 95% 42% at 38% 38%,
      rgba(150, 110, 200, 0.14) 0%,
      rgba(90, 60, 140, 0.06) 45%,
      transparent 62%
    ),
    radial-gradient(
      ellipse 140% 55% at 72% 28%,
      rgba(80, 120, 220, 0.1) 0%,
      rgba(40, 50, 100, 0.04) 48%,
      transparent 65%
    ),
    radial-gradient(
      ellipse 85% 38% at 18% 72%,
      rgba(120, 90, 180, 0.09) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse 160% 120% at 50% 50%,
      rgba(60, 45, 110, 0.1) 0%,
      rgba(25, 20, 55, 0.04) 42%,
      transparent 68%
    );
}

/* Decorative planets (parallax in home-stars.js). Override with data-image on .gm-planet or .gm-planet--has-image + background in your CSS. */
body.glass-metal-home .gm-planets,
body.glass-metal-site .gm-starfield--home .gm-planets {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

body.glass-metal-home .gm-planet,
body.glass-metal-site .gm-starfield--home .gm-planet {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}

/* Generated gas-giant blobs (no image) */
body.glass-metal-home .gm-planet--a:not(.gm-planet--has-image),
body.glass-metal-site .gm-starfield--home .gm-planet--a:not(.gm-planet--has-image) {
  width: clamp(72px, 14vw, 160px);
  height: clamp(72px, 14vw, 160px);
  top: 18%;
  right: 6%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 210, 190, 0.45), transparent 42%),
    radial-gradient(circle at 70% 65%, rgba(120, 80, 160, 0.55), rgba(40, 25, 70, 0.35));
  box-shadow:
    inset -4px -6px 20px rgba(0, 0, 0, 0.35),
    0 0 40px rgba(160, 120, 200, 0.12);
  opacity: 0.55;
}

body.glass-metal-home .gm-planet--b:not(.gm-planet--has-image),
body.glass-metal-site .gm-starfield--home .gm-planet--b:not(.gm-planet--has-image) {
  width: clamp(100px, 20vw, 220px);
  height: clamp(100px, 20vw, 220px);
  bottom: 8%;
  left: 4%;
  background:
    radial-gradient(circle at 40% 38%, rgba(255, 245, 220, 0.35), transparent 38%),
    radial-gradient(circle at 55% 55%, rgba(200, 140, 100, 0.4), rgba(60, 35, 28, 0.45));
  box-shadow:
    inset 3px 4px 18px rgba(255, 255, 255, 0.08),
    0 0 50px rgba(210, 160, 120, 0.1);
  opacity: 0.45;
}

body.glass-metal-home .gm-planet--c:not(.gm-planet--has-image),
body.glass-metal-site .gm-starfield--home .gm-planet--c:not(.gm-planet--has-image) {
  width: clamp(48px, 9vw, 100px);
  height: clamp(48px, 9vw, 100px);
  top: 42%;
  right: 22%;
  background:
    radial-gradient(circle at 50% 50%, rgba(180, 210, 255, 0.5), rgba(60, 90, 140, 0.4));
  box-shadow: 0 0 28px rgba(150, 190, 255, 0.15);
  opacity: 0.4;
}

/* Custom planet art: set data-image="images/planet.png" on the div, or use this pattern in your stylesheet */
body.glass-metal-home .gm-planet--has-image,
body.glass-metal-site .gm-starfield--home .gm-planet--has-image {
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  box-shadow: none;
}

body.glass-metal-home .gm-planet--a.gm-planet--has-image,
body.glass-metal-site .gm-starfield--home .gm-planet--a.gm-planet--has-image {
  width: clamp(80px, 16vw, 200px);
  height: clamp(80px, 16vw, 200px);
  top: 16%;
  right: 5%;
  opacity: 0.65;
}

body.glass-metal-home .gm-planet--b.gm-planet--has-image,
body.glass-metal-site .gm-starfield--home .gm-planet--b.gm-planet--has-image {
  width: clamp(110px, 22vw, 260px);
  height: clamp(110px, 22vw, 260px);
  bottom: 6%;
  left: 3%;
  opacity: 0.55;
}

body.glass-metal-home .gm-planet--c.gm-planet--has-image,
body.glass-metal-site .gm-starfield--home .gm-planet--c.gm-planet--has-image {
  width: clamp(56px, 11vw, 120px);
  height: clamp(56px, 11vw, 120px);
  top: 40%;
  right: 20%;
  opacity: 0.5;
}

@media (prefers-reduced-motion: reduce) {
  body.glass-metal-home .gm-planet,
  body.glass-metal-site .gm-starfield--home .gm-planet {
    will-change: auto;
  }
}

body.glass-metal-home .gm-starfield-canvas,
body.glass-metal-site .gm-starfield--home .gm-starfield-canvas {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.72;
  mix-blend-mode: screen;
}

@media (prefers-reduced-motion: reduce) {
  body.glass-metal-home .gm-starfield-canvas,
  body.glass-metal-site .gm-starfield--home .gm-starfield-canvas {
    opacity: 0.42;
    mix-blend-mode: normal;
  }

  body.glass-metal-home > .gm-starfield::before,
  body.glass-metal-site > .gm-starfield.gm-starfield--home::before {
    opacity: 0.78;
  }
}

/* Minigame pages: subtle starfield + galaxy (below UI; home-stars.js subtle mode) */
body.glass-metal-site > .gm-starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

body.glass-metal-site > .gm-starfield--subtle::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  background:
    radial-gradient(
      circle clamp(40px, 6vw, 80px) at 30% 34%,
      rgba(255, 235, 255, 0.12) 0%,
      rgba(160, 130, 200, 0.06) 38%,
      transparent 50%
    ),
    radial-gradient(
      ellipse 100% 40% at 40% 40%,
      rgba(130, 100, 180, 0.08) 0%,
      transparent 58%
    ),
    radial-gradient(
      ellipse 120% 50% at 70% 30%,
      rgba(70, 100, 180, 0.06) 0%,
      transparent 62%
    ),
    radial-gradient(
      ellipse 140% 100% at 50% 50%,
      rgba(45, 35, 85, 0.07) 0%,
      transparent 65%
    );
}

body.glass-metal-site .gm-starfield--subtle .gm-planets {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

body.glass-metal-site .gm-starfield--subtle .gm-planet {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}

body.glass-metal-site .gm-starfield--subtle .gm-planet--a:not(.gm-planet--has-image) {
  width: clamp(56px, 11vw, 120px);
  height: clamp(56px, 11vw, 120px);
  top: 16%;
  right: 8%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 200, 190, 0.28), transparent 42%),
    radial-gradient(circle at 70% 65%, rgba(100, 70, 140, 0.35), rgba(30, 20, 55, 0.25));
  box-shadow: inset -3px -4px 14px rgba(0, 0, 0, 0.3);
  opacity: 0.38;
}

body.glass-metal-site .gm-starfield--subtle .gm-planet--c:not(.gm-planet--has-image) {
  width: clamp(36px, 7vw, 72px);
  height: clamp(36px, 7vw, 72px);
  top: 48%;
  right: 18%;
  background: radial-gradient(circle at 50% 50%, rgba(170, 200, 255, 0.35), rgba(50, 70, 120, 0.28));
  box-shadow: 0 0 18px rgba(130, 170, 255, 0.08);
  opacity: 0.32;
}

body.glass-metal-site .gm-starfield--subtle .gm-planet--has-image {
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  box-shadow: none;
}

body.glass-metal-site .gm-starfield--subtle .gm-planet--a.gm-planet--has-image {
  width: clamp(64px, 12vw, 140px);
  height: clamp(64px, 12vw, 140px);
  top: 14%;
  right: 6%;
  opacity: 0.45;
}

body.glass-metal-site .gm-starfield--subtle .gm-planet--c.gm-planet--has-image {
  width: clamp(40px, 8vw, 88px);
  height: clamp(40px, 8vw, 88px);
  top: 46%;
  right: 16%;
  opacity: 0.38;
}

body.glass-metal-site .gm-starfield--subtle .gm-starfield-canvas {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.38;
  mix-blend-mode: screen;
}

@media (prefers-reduced-motion: reduce) {
  body.glass-metal-site .gm-starfield--subtle .gm-planet {
    will-change: auto;
  }

  body.glass-metal-site .gm-starfield--subtle .gm-starfield-canvas {
    opacity: 0.24;
    mix-blend-mode: normal;
  }

  body.glass-metal-site > .gm-starfield--subtle::before {
    opacity: 0.4;
  }
}

/* ——— Typography: 3 weights (300, 500, 700) ——— */
body.glass-metal-home h1,
body.glass-metal-home h2,
body.glass-metal-home h3 {
  font-weight: 300;
  letter-spacing: -0.03em;
}

body.glass-metal-home .gm-strong {
  font-weight: 700;
}

body.glass-metal-home .gm-label {
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.65rem;
  color: var(--gm-text-muted);
}

/* ——— Glass surface ——— */
.gm-glass {
  background: var(--gm-surface);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--gm-border);
  border-radius: var(--gm-radius);
  box-shadow: var(--gm-inner-glow), var(--gm-shadow-tl);
}

/* ——— Brushed metal button ——— */
.gm-metal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--gm-radius);
  border: 0.5px solid rgba(255, 255, 255, 0.35);
  background: linear-gradient(135deg, var(--gm-metal-1) 0%, var(--gm-metal-2) 100%);
  color: #2a1f0f;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.4s var(--gm-motion-smooth),
    box-shadow 0.4s var(--gm-motion-smooth),
    filter 0.35s var(--gm-ease);
  box-shadow: var(--gm-shadow-tl);
}

.gm-metal::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 60%
  );
  transform: translateX(-100%);
  transition: transform 0.65s var(--gm-ease);
  pointer-events: none;
}

.gm-metal:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow:
    -4px -8px 32px rgba(0, 0, 0, 0.45),
    0 0 32px rgba(212, 165, 116, 0.18);
}

.gm-metal:hover::after {
  transform: translateX(100%);
}

.gm-metal:active {
  transform: translateY(0) scale(0.97);
  transition-duration: 0.12s;
}

@media (prefers-reduced-motion: reduce) {
  .gm-metal,
  .gm-metal:hover,
  .gm-metal:active {
    transform: none;
    transition: filter 0.25s var(--gm-ease), box-shadow 0.25s var(--gm-ease);
  }
}

.gm-metal--lg {
  padding: 1.15rem 2.25rem;
  font-size: 0.75rem;
}

/* Ghost / glass button */
.gm-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.75rem;
  border-radius: var(--gm-radius);
  border: 1px solid var(--gm-border-soft);
  background: rgba(255, 255, 255, 0.04);
  color: var(--gm-text);
  font-family: inherit;
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    background 0.35s var(--gm-motion-smooth),
    border-color 0.35s var(--gm-motion-smooth),
    transform 0.35s var(--gm-motion-smooth),
    box-shadow 0.35s var(--gm-motion-smooth);
}

.gm-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--gm-border);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.gm-btn-ghost:active {
  transform: translateY(0) scale(0.98);
}

@media (prefers-reduced-motion: reduce) {
  .gm-btn-ghost:hover,
  .gm-btn-ghost:active {
    transform: none;
  }
}

/* ——— Nav ——— */
.gm-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid var(--gm-border-soft);
  background: rgba(12, 12, 12, 0.55);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.gm-nav-inner {
  max-width: var(--gm-max);
  margin: 0 auto;
  padding: 1.1rem clamp(1.25rem, 4vw, 2.25rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.gm-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.04em;
}

.gm-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.gm-nav-links {
  display: none;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

@media (min-width: 900px) {
  .gm-nav-links {
    display: flex;
  }
}

.gm-nav-links a {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gm-text-muted);
  text-decoration: none;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid transparent;
  transition:
    color 0.35s var(--gm-motion-smooth),
    border-color 0.35s var(--gm-motion-smooth),
    transform 0.25s var(--gm-motion-smooth);
}

.gm-nav-links a:hover {
  transform: translateY(-1px);
}

.gm-nav-links a:hover:not([aria-current="page"]) {
  color: #fff;
}

.gm-nav-links a[aria-current="page"] {
  border-bottom-color: var(--gm-accent);
  color: var(--gm-accent);
}

@media (prefers-reduced-motion: reduce) {
  .gm-nav-links a:hover {
    transform: none;
  }
}

.gm-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Hint beside “your stats” chart icon (desktop / wide header) */
.gm-nav-stats-hint {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gm-accent);
  line-height: 1.25;
  max-width: 7.5rem;
  text-align: right;
  flex-shrink: 1;
}

@media (max-width: 1049px) {
  .gm-nav-stats-hint {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gm-nav-stats-hint {
    transition: none;
  }
}

.gm-nav .gm-metal {
  padding: 0.65rem 1.25rem;
  font-size: 0.6rem;
}

.gm-nav-social {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.gm-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 10px;
  color: var(--gm-text-muted);
  text-decoration: none;
  font-size: 1rem;
  line-height: 1;
  transition:
    color 0.3s var(--gm-motion-smooth),
    background 0.3s var(--gm-motion-smooth),
    transform 0.25s var(--gm-motion-smooth);
}

.gm-nav-icon:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.gm-nav-icon:focus-visible {
  outline: 2px solid var(--gm-accent);
  outline-offset: 2px;
}

.gm-nav-icon--stats:hover {
  color: var(--gm-accent);
  background: rgba(212, 165, 116, 0.12);
}

body.glass-metal-home .gm-nav-icon--stats:hover {
  color: var(--gm-accent);
  background: rgba(212, 165, 116, 0.12);
}

body.glass-metal-site .gm-nav-icon--stats[aria-current="page"] {
  color: var(--gm-accent);
  background: rgba(212, 165, 116, 0.15);
}

body.glass-metal-home .gm-nav-icon--yt:hover {
  color: #ff4e45;
  background: rgba(255, 60, 50, 0.12);
}

body.glass-metal-home .gm-nav-icon--discord:hover {
  color: #99a8ff;
  background: rgba(88, 101, 242, 0.18);
}

@media (prefers-reduced-motion: reduce) {
  .gm-nav-icon:hover {
    transform: none;
  }
}

/* ——— Main grid shell (12 cols) ——— */
.gm-main {
  max-width: var(--gm-max);
  margin: 0 auto;
  padding: calc(5.5rem + var(--gm-pad-section)) clamp(1.25rem, 4vw, 2.25rem) var(--gm-pad-section);
}

/* Home: nav is ~4.25–4.75rem; avoid stacking full section pad again (banner sat too low) */
body.glass-metal-home .gm-main {
  padding-top: calc(4.35rem + 0.65rem);
}

.gm-grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 3vw, 2.4rem);
}

/* ——— Hero: title + video side by side ——— */
.gm-hero {
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.gm-hero-split {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .gm-hero-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, min(46%, 520px));
    gap: clamp(1.5rem, 4vw, 3rem);
  }
}

.gm-hero-copy {
  min-width: 0;
}

.gm-hero h1 {
  font-size: clamp(2.5rem, 7vw, 4.25rem);
  line-height: 1;
  margin: 0 0 1rem;
  color: #fff;
  text-align: left;
}

.gm-hero h1 .gm-accent-text {
  color: var(--gm-accent);
  font-weight: 300;
}

.gm-hero-lead {
  max-width: 28rem;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--gm-text-muted);
  margin: 1.25rem 0 0;
}

.gm-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.35rem;
}

/* Play control: compact metal pill with icon */
.gm-play-btn {
  padding: 0.75rem 1.5rem;
  gap: 0.65rem;
  border-radius: 999px;
  min-width: 8rem;
  justify-content: center;
}

.gm-play-btn .gm-play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.65rem;
  padding-left: 0.15rem;
  transition:
    transform 0.45s var(--gm-motion-snap),
    background 0.35s var(--gm-motion-smooth),
    box-shadow 0.35s var(--gm-motion-smooth);
}

/* Home hero: main Play — warm gold, high contrast, outer glow (clear primary CTA) */
body.glass-metal-home .gm-play-btn--hero {
  background: linear-gradient(145deg, #fff6dc 0%, #f0c96a 36%, #c9782a 100%);
  border-color: rgba(255, 230, 180, 0.9);
  color: #1a0f06;
  font-weight: 800;
  letter-spacing: 0.2em;
  box-shadow:
    -3px -6px 22px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(255, 200, 100, 0.55),
    0 0 40px rgba(255, 170, 60, 0.45),
    0 10px 32px rgba(0, 0, 0, 0.38);
}

body.glass-metal-home .gm-play-btn--hero:hover {
  filter: brightness(1.07) saturate(1.1);
  transform: translateY(-3px);
  box-shadow:
    -4px -10px 36px rgba(0, 0, 0, 0.48),
    0 0 0 2px rgba(255, 215, 140, 0.75),
    0 0 56px rgba(255, 185, 70, 0.55),
    0 14px 40px rgba(0, 0, 0, 0.42);
}

body.glass-metal-home .gm-play-btn--hero .gm-play-icon {
  background: rgba(0, 0, 0, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

body.glass-metal-home .gm-play-btn--hero:focus-visible {
  outline: 2px solid rgba(255, 220, 160, 0.95);
  outline-offset: 3px;
}

/* Homepage — extra hover motion on primary actions */
body.glass-metal-home .gm-play-btn:hover .gm-play-icon {
  transform: scale(1.12);
  background: rgba(0, 0, 0, 0.38);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

body.glass-metal-home .gm-play-btn--hero:hover .gm-play-icon {
  background: rgba(0, 0, 0, 0.32);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.45),
    0 0 16px rgba(255, 200, 100, 0.35);
}

body.glass-metal-home .gm-video-cap a {
  transition:
    color 0.3s var(--gm-motion-smooth),
    transform 0.35s var(--gm-motion-smooth),
    letter-spacing 0.35s var(--gm-motion-smooth);
}

body.glass-metal-home .gm-video-cap a:hover {
  transform: translateX(4px);
  letter-spacing: 0.14em;
}

body.glass-metal-home .gm-community-inner .gm-btn-ghost:hover {
  border-color: rgba(212, 165, 116, 0.45);
  box-shadow: 0 0 24px rgba(212, 165, 116, 0.12);
}

body.glass-metal-home .gm-btn-discord {
  gap: 0.55rem;
}

body.glass-metal-home .gm-community-inner .gm-btn-discord:hover {
  border-color: rgba(88, 101, 242, 0.55);
  background: rgba(88, 101, 242, 0.12);
  box-shadow: 0 0 24px rgba(88, 101, 242, 0.18);
}

body.glass-metal-home .gm-submit-row .gm-metal:hover {
  box-shadow:
    -4px -8px 32px rgba(0, 0, 0, 0.45),
    0 0 32px rgba(212, 165, 116, 0.2);
}

body.glass-metal-home .gm-panel-link {
  display: inline-block;
  transition:
    transform 0.4s var(--gm-motion-smooth),
    letter-spacing 0.45s var(--gm-motion-smooth),
    border-color 0.3s ease,
    color 0.3s ease;
}

body.glass-metal-home .gm-panel:hover .gm-panel-link {
  transform: translateX(6px);
  letter-spacing: 0.34em;
}

@media (prefers-reduced-motion: reduce) {
  body.glass-metal-home .gm-play-btn:hover .gm-play-icon,
  body.glass-metal-home .gm-video-cap a:hover,
  body.glass-metal-home .gm-panel:hover .gm-panel-link {
    transform: none;
  }

  body.glass-metal-home .gm-play-btn--hero:hover {
    transform: none;
  }
}

.gm-hero-media {
  position: relative;
  min-width: 0;
}

.gm-video-frame {
  border-radius: var(--gm-radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  position: relative;
  transform-style: preserve-3d;
}

.gm-video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  opacity: 0.92;
}

.gm-video-cap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0.85rem;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gm-text-muted);
  border-top: 1px solid var(--gm-border-soft);
}

.gm-video-cap a {
  color: var(--gm-accent);
  text-decoration: none;
}

.gm-video-cap a:hover {
  text-decoration: underline;
}

/* ——— Bento ——— */
.gm-bento {
  margin-top: 0;
  padding-top: 0;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

@media (min-width: 768px) {
  .gm-bento {
    margin-top: -0.75rem;
  }
}

.gm-card-tilt {
  transform-style: preserve-3d;
  transition: transform 0.15s linear;
  will-change: transform;
}

.gm-bento-large {
  grid-column: 1 / -1;
  min-height: 320px;
}

@media (min-width: 768px) {
  .gm-bento-large {
    grid-column: 1 / span 8;
    min-height: 380px;
  }
  /* Stats — top row right */
  .gm-bento-sm-a {
    grid-column: 9 / span 4;
  }
  /* Blog — row 2 left */
  .gm-bento-sm-b {
    grid-column: 1 / span 4;
  }
  /* Submit — row 2 right (8 cols) */
  .gm-bento-wide {
    grid-column: 5 / span 8;
  }
}

@media (max-width: 767px) {
  .gm-bento-sm-a,
  .gm-bento-sm-b,
  .gm-bento-wide {
    grid-column: 1 / -1;
  }
}

.gm-panel {
  padding: clamp(1.75rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  min-height: 240px;
}

.gm-panel h3 {
  font-size: clamp(1.35rem, 3vw, 2rem);
  margin: 0 0 0.75rem;
  color: #fff;
  font-weight: 300;
}

.gm-panel p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--gm-text-muted);
  max-width: 22rem;
}

.gm-panel-link {
  margin-top: 1.25rem;
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gm-accent);
  border-bottom: 1px solid var(--gm-accent);
  align-self: flex-start;
  padding-bottom: 0.25rem;
}

.gm-panel:hover .gm-panel-link {
  letter-spacing: 0.32em;
}

/* Home bento: featured Play Brawldle card — warmer glass + visible glow ring */
body.glass-metal-home .gm-glass.gm-panel--spotlight {
  background: linear-gradient(
    165deg,
    rgba(255, 195, 110, 0.24) 0%,
    rgba(90, 70, 40, 0.34) 48%,
    rgba(16, 16, 20, 0.78) 100%
  );
  border-color: rgba(255, 200, 120, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 0 1px rgba(255, 190, 90, 0.25),
    0 16px 48px rgba(0, 0, 0, 0.52),
    0 0 72px rgba(255, 160, 60, 0.16);
  transition:
    border-color 0.35s var(--gm-motion-smooth),
    box-shadow 0.35s var(--gm-motion-smooth);
}

body.glass-metal-home .gm-glass.gm-panel--spotlight:hover {
  border-color: rgba(255, 215, 150, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(255, 200, 120, 0.38),
    0 22px 58px rgba(0, 0, 0, 0.58),
    0 0 88px rgba(255, 170, 70, 0.22);
}

body.glass-metal-home .gm-panel--spotlight h3 {
  text-shadow: 0 0 28px rgba(255, 200, 120, 0.38);
}

body.glass-metal-home .gm-panel--spotlight .gm-panel-link {
  color: #ffe8c8;
  border-bottom-color: rgba(255, 220, 160, 0.92);
  letter-spacing: 0.32em;
}

/* Neon Mortis art — right side of Play Brawldle card (decorative; faded + cool tint) */
body.glass-metal-home .gm-glass.gm-panel--spotlight .gm-bento-mortis-art {
  position: absolute;
  right: clamp(0.25rem, 2vw, 1.35rem);
  bottom: 8%;
  width: clamp(104px, 30%, 220px);
  max-height: 78%;
  height: auto;
  object-fit: contain;
  object-position: right bottom;
  opacity: 0.32;
  transform: rotate(-9deg);
  z-index: 2;
  pointer-events: none;
  filter:
    saturate(0.88)
    brightness(1.04)
    drop-shadow(0 0 32px rgba(80, 170, 255, 0.22));
}

@media (min-width: 768px) {
  body.glass-metal-home .gm-glass.gm-panel--spotlight {
    padding-right: clamp(8rem, 23%, 13.5rem);
  }
}

@media (max-width: 767px) {
  body.glass-metal-home .gm-glass.gm-panel--spotlight {
    padding-bottom: clamp(5.5rem, 36vw, 7rem);
  }

  body.glass-metal-home .gm-glass.gm-panel--spotlight .gm-bento-mortis-art {
    right: 0.5rem;
    bottom: 0.65rem;
    width: min(130px, 46vw);
    max-height: 52%;
    opacity: 0.26;
    transform: rotate(-6deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.glass-metal-home .gm-glass.gm-panel--spotlight .gm-bento-mortis-art {
    transform: none;
  }
}

.gm-panel-tall {
  justify-content: space-between;
}

.gm-submit-row {
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 1.5rem;
  min-height: auto;
}

@media (min-width: 768px) {
  .gm-submit-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.gm-submit-row .gm-metal {
  flex-shrink: 0;
}

/* ——— Community strip ——— */
.gm-community {
  margin-bottom: clamp(3rem, 8vw, 5rem);
}

.gm-community-inner {
  padding: clamp(2.5rem, 6vw, 4rem);
  text-align: left;
}

@media (min-width: 700px) {
  .gm-community-inner {
    text-align: center;
  }
}

.gm-community h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.1;
  margin: 0 0 2rem;
  color: #fff;
  max-width: 18ch;
}

@media (min-width: 700px) {
  .gm-community h2 {
    margin-left: auto;
    margin-right: auto;
    max-width: 22ch;
  }
}

.gm-community-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-start;
}

@media (min-width: 700px) {
  .gm-community-actions {
    justify-content: center;
  }
}

/* ——— Footer ——— */
.gm-footer {
  border-top: 1px solid var(--gm-border-soft);
  background: rgba(5, 5, 5, 0.85);
  padding: 2.5rem clamp(1.25rem, 4vw, 2.25rem);
}

.gm-footer-inner {
  max-width: var(--gm-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .gm-footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.gm-footer-brand {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
}

.gm-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  justify-content: center;
}

.gm-footer-links a {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gm-text-muted);
  text-decoration: none;
  transition: color 0.35s var(--gm-motion-smooth), transform 0.25s var(--gm-motion-smooth);
}

.gm-footer-links a:hover {
  color: #fff;
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .gm-footer-links a:hover {
    transform: none;
  }
}

.gm-footer-meta {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: #555;
  text-transform: uppercase;
}

/* ——— Mobile bottom nav ——— */
.gm-bottom-nav {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  padding: 0.65rem 0.5rem calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-top: 1px solid var(--gm-border-soft);
  justify-content: space-around;
  align-items: center;
}

@media (min-width: 900px) {
  .gm-bottom-nav {
    display: none;
  }
}

.gm-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gm-text-muted);
  text-decoration: none;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  transition:
    color 0.3s var(--gm-motion-smooth),
    transform 0.25s var(--gm-motion-snap),
    background 0.3s var(--gm-motion-smooth);
}

.gm-bottom-nav a[aria-current="page"],
.gm-bottom-nav a:hover {
  color: var(--gm-accent);
}

.gm-bottom-nav a:hover {
  transform: translateY(-2px);
}

.gm-bottom-nav a:active {
  transform: scale(0.96);
}

.gm-bottom-nav .gm-bn-icon {
  font-size: 1.1rem;
  opacity: 0.9;
  transition: transform 0.3s var(--gm-motion-snap), opacity 0.25s ease;
}

.gm-bottom-nav a:hover .gm-bn-icon {
  transform: translateY(-1px);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .gm-bottom-nav a:hover,
  .gm-bottom-nav a:active,
  .gm-bottom-nav a:hover .gm-bn-icon {
    transform: none;
  }
}

@media (max-width: 899px) {
  body.glass-metal-home .gm-main {
    padding-bottom: calc(var(--gm-pad-section) + 4rem);
  }
}

/* ——— Home: orbital rings (Brawldle card), tiny ship ——— */
body.glass-metal-home .gm-orbit-wrap {
  position: relative;
  grid-column: 1 / -1;
  display: block;
}

@media (min-width: 768px) {
  body.glass-metal-home .gm-orbit-wrap {
    grid-column: 1 / span 8;
  }
}

body.glass-metal-home .gm-orbit-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 104%;
  height: 108%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(168, 210, 255, 0.32);
  box-shadow:
    0 0 48px rgba(100, 160, 255, 0.07),
    inset 0 0 32px rgba(100, 160, 255, 0.04);
  pointer-events: none;
  z-index: 0;
  animation: gm-orbit-spin 96s linear infinite;
}

body.glass-metal-home .gm-orbit-ring--outer {
  width: 118%;
  height: 124%;
  border-color: rgba(212, 165, 116, 0.16);
  animation: gm-orbit-spin 132s linear infinite reverse;
  opacity: 0.6;
}

/* Brighter orbital halo behind the featured Play card */
body.glass-metal-home .gm-orbit-wrap .gm-orbit-ring {
  border-color: rgba(150, 210, 255, 0.45);
  box-shadow:
    0 0 64px rgba(100, 175, 255, 0.16),
    inset 0 0 44px rgba(100, 165, 255, 0.08);
}

body.glass-metal-home .gm-orbit-wrap .gm-orbit-ring--outer {
  border-color: rgba(255, 200, 130, 0.32);
  opacity: 0.82;
}

@keyframes gm-orbit-spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

body.glass-metal-home .gm-orbit-wrap .gm-panel {
  position: relative;
  z-index: 1;
}

body.glass-metal-home .gm-ship-pass,
body.glass-metal-site .gm-starfield--home .gm-ship-pass {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

body.glass-metal-home .gm-ship,
body.glass-metal-site .gm-starfield--home .gm-ship {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  filter: drop-shadow(0 0 10px rgba(200, 230, 255, 0.55));
  will-change: transform, opacity;
  animation: gm-ship-flight 52s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

@keyframes gm-ship-flight {
  0%,
  93% {
    opacity: 0;
    transform: translate3d(-18vw, 8vh, 0) rotate(32deg) scale(0.92);
  }
  94% {
    opacity: 0.95;
  }
  100% {
    opacity: 0.9;
    transform: translate3d(118vw, 72vh, 0) rotate(32deg) scale(1);
  }
}

@media (max-width: 767px) {
  body.glass-metal-home .gm-ship,
  body.glass-metal-site .gm-starfield--home .gm-ship {
    width: 30px;
    height: auto;
    animation-duration: 44s;
  }
}

/* Home → next page: slide out (glass-metal.js) */
body.glass-metal-home > header.gm-nav,
body.glass-metal-home > main.gm-main,
body.glass-metal-home > nav.gm-bottom-nav {
  transition:
    transform 0.4s var(--gm-slide-ease),
    opacity 0.4s var(--gm-slide-ease);
}

body.glass-metal-home.gm-slide-exit > header.gm-nav,
body.glass-metal-home.gm-slide-exit > main.gm-main,
body.glass-metal-home.gm-slide-exit > nav.gm-bottom-nav {
  transform: translateX(-28px);
  opacity: 0;
  pointer-events: none;
}

body.glass-metal-home.gm-slide-exit > .gm-starfield {
  transform: translateX(-16px);
  opacity: 0.12;
}

/* Interior → next page: slide out (same easing as enter; no bounce) */
body.glass-metal-site > header.gm-nav,
body.glass-metal-site > main#main,
body.glass-metal-site > nav.gm-bottom-nav {
  transition:
    transform 0.36s var(--gm-slide-ease),
    opacity 0.36s var(--gm-slide-ease);
}

body.glass-metal-site.gm-slide-exit-site > header.gm-nav,
body.glass-metal-site.gm-slide-exit-site > main#main,
body.glass-metal-site.gm-slide-exit-site > nav.gm-bottom-nav {
  transform: translateX(-16px);
  opacity: 0;
  pointer-events: none;
}

body.glass-metal-site.gm-slide-exit-site > .gm-starfield {
  opacity: 0.15;
  transition: opacity 0.36s var(--gm-slide-ease);
}

@media (prefers-reduced-motion: reduce) {
  body.glass-metal-site.gm-slide-exit-site > header.gm-nav,
  body.glass-metal-site.gm-slide-exit-site > main#main,
  body.glass-metal-site.gm-slide-exit-site > nav.gm-bottom-nav,
  body.glass-metal-site.gm-slide-exit-site > .gm-starfield {
    transform: none;
    opacity: 1;
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.glass-metal-home .gm-orbit-ring,
  body.glass-metal-home .gm-orbit-ring--outer {
    animation: none;
    opacity: 0.45;
  }

  body.glass-metal-home .gm-ship,
  body.glass-metal-site .gm-starfield--home .gm-ship {
    animation: none;
    opacity: 0;
  }

  body.glass-metal-home.gm-slide-exit > header.gm-nav,
  body.glass-metal-home.gm-slide-exit > main.gm-main,
  body.glass-metal-home.gm-slide-exit > nav.gm-bottom-nav,
  body.glass-metal-home.gm-slide-exit > .gm-starfield {
    transform: none;
    opacity: 1;
    transition: none;
  }
}

/* ——— Stagger reveal ——— */
.gm-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.85s var(--gm-slide-ease),
    transform 0.85s var(--gm-slide-ease);
}

.gm-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.gm-reveal-delay-1 {
  transition-delay: 0.08s;
}
.gm-reveal-delay-2 {
  transition-delay: 0.16s;
}
.gm-reveal-delay-3 {
  transition-delay: 0.24s;
}
.gm-reveal-delay-4 {
  transition-delay: 0.32s;
}
.gm-reveal-delay-5 {
  transition-delay: 0.4s;
}
.gm-reveal-delay-6 {
  transition-delay: 0.48s;
}

/* Interior (glass-metal-site): slide + fade; use transition-* only so .gm-reveal-delay-* still applies */
body.glass-metal-site .gm-reveal {
  opacity: 0;
  transform: translateX(28px);
  transition-property: opacity, transform;
  transition-duration: 0.75s;
  transition-timing-function: var(--gm-slide-ease);
}

body.glass-metal-site .gm-reveal.is-visible {
  opacity: 1;
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .gm-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .gm-metal::after {
    display: none;
  }
  .gm-card-tilt {
    transform: none !important;
  }
}

/* Skip link reuse */
body.glass-metal-home .skip-link {
  position: absolute;
  left: -9999px;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: #1a1a1a;
  color: #fff;
  border-radius: var(--gm-radius);
}
body.glass-metal-home .skip-link:focus {
  left: 1rem;
  top: 1rem;
}

body.glass-metal-home a:focus-visible,
body.glass-metal-home .gm-metal:focus-visible,
body.glass-metal-site a:focus-visible,
body.glass-metal-site .gm-metal:focus-visible {
  outline: 2px solid var(--gm-accent);
  outline-offset: 3px;
}

/* =============================================================================
   Site-wide interior pages (class="glass-metal-site" on <body>)
   Load after style.css. Keeps wording/layout; reskins to Glass & Metal.
   ============================================================================= */

/* style.css uses `body { display: grid; grid-template-rows: nav 1fr }` so <main> fills
   exactly one viewport row. With flex column children, a tall .brawldle-section
   (min-height ~100vh) forces .hero to flex-shrink to 0 — invisible on desktop.
   Mobile sets main height:auto in a media query; interior pages need the same. */
html:has(body.glass-metal-site) {
  height: auto !important;
}

body.glass-metal-site {
  margin: 0;
  min-height: 100vh;
  display: block !important;
  position: relative;
  isolation: isolate;
  background-color: #040814;
  color: var(--gm-text);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

body.glass-metal-site > *:not(.skip-link):not(.gm-starfield):not(.gm-bottom-nav) {
  position: relative;
  z-index: 1;
}

body.glass-metal-site main {
  max-width: var(--gm-max);
  margin: 0 auto;
  padding: calc(5.25rem + 1rem) clamp(1rem, 3vw, 1.75rem) 3rem;
  box-sizing: border-box;
  height: auto !important;
  position: relative;
  z-index: 1;
}

/* Account pages: center card without transform (avoids conflict with .gm-reveal) */
body.glass-metal-site main#main:has(.login-container) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 5.25rem - 6rem);
}

body.glass-metal-site main#main:has(.login-container) .login-container {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  margin-left: auto;
  margin-right: auto;
}

/* Interior: slide in after any in-site navigation (js/gm-slide-enter.js + glass-metal.js) */
html.gm-slide-enter body.glass-metal-site > header.gm-nav,
html.gm-slide-enter body.glass-metal-site > main#main,
html.gm-slide-enter body.glass-metal-site > nav.gm-bottom-nav {
  transform: translateX(36px);
  opacity: 0;
  transition:
    transform 0.45s var(--gm-slide-ease),
    opacity 0.45s var(--gm-slide-ease);
}

html.gm-slide-enter body.glass-metal-site.gm-slide-enter-done > header.gm-nav,
html.gm-slide-enter body.glass-metal-site.gm-slide-enter-done > main#main,
html.gm-slide-enter body.glass-metal-site.gm-slide-enter-done > nav.gm-bottom-nav {
  transform: translateX(0);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  html.gm-slide-enter body.glass-metal-site > header.gm-nav,
  html.gm-slide-enter body.glass-metal-site > main#main,
  html.gm-slide-enter body.glass-metal-site > nav.gm-bottom-nav {
    transform: none;
    opacity: 1;
    transition: none;
  }
}

/* Brawldle / TrophyGuess play pages: tighter top spacing so the game sits higher */
body.brawldle-game main {
  padding-top: 4.35rem;
}

body.brawldle-game .brawldle-text {
  margin-top: 0.35rem !important;
}

body.brawldle-game .brawldle-video iframe {
  margin-top: 0.45rem !important;
}

@media (min-width: 769px) {
  body.brawldle-game .brawldle-video iframe {
    margin-top: 0.35rem !important;
  }
}

/* Brawldle guess feedback — aurora (correct) vs nebula alert (wrong), space palette */
body.glass-metal-site.brawldle-game.flash.flash--brawldle {
  animation: none !important;
  background-color: transparent !important;
}

body.glass-metal-site.brawldle-game.flash.flash--brawldle-correct::after,
body.glass-metal-site.brawldle-game.flash.flash--brawldle-wrong::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  mix-blend-mode: screen;
}

body.glass-metal-site.brawldle-game.flash.flash--brawldle-correct::after {
  background:
    radial-gradient(ellipse 130% 95% at 50% 108%, rgba(0, 255, 210, 0.5) 0%, transparent 58%),
    radial-gradient(ellipse 70% 55% at 18% 22%, rgba(120, 210, 255, 0.35) 0%, transparent 52%),
    radial-gradient(ellipse 85% 60% at 88% 18%, rgba(0, 255, 255, 0.22) 0%, transparent 48%),
    radial-gradient(circle 2px at 22% 35%, rgba(255, 255, 255, 0.9) 0%, transparent 45%),
    radial-gradient(circle 1.5px at 78% 42%, rgba(255, 255, 255, 0.75) 0%, transparent 40%),
    radial-gradient(circle 1px at 55% 28%, rgba(200, 240, 255, 0.85) 0%, transparent 35%);
  animation: gm-brawldle-flash-correct 0.72s ease-out forwards;
}

body.glass-metal-site.brawldle-game.flash.flash--brawldle-wrong::after {
  background:
    radial-gradient(ellipse 110% 75% at 50% 45%, rgba(255, 55, 90, 0.42) 0%, transparent 58%),
    radial-gradient(ellipse 90% 55% at 28% 72%, rgba(255, 140, 40, 0.28) 0%, transparent 52%),
    radial-gradient(ellipse 70% 50% at 75% 30%, rgba(160, 0, 120, 0.32) 0%, transparent 50%),
    radial-gradient(circle 1.5px at 40% 38%, rgba(255, 200, 200, 0.9) 0%, transparent 40%),
    radial-gradient(circle 1px at 68% 55%, rgba(255, 120, 100, 0.75) 0%, transparent 35%);
  animation: gm-brawldle-flash-wrong 0.72s ease-out forwards;
  mix-blend-mode: normal;
  opacity: 0.95;
}

@keyframes gm-brawldle-flash-correct {
  0% {
    opacity: 0;
    filter: brightness(1) saturate(1);
  }
  22% {
    opacity: 1;
    filter: brightness(1.12) saturate(1.25);
  }
  100% {
    opacity: 0;
    filter: brightness(1) saturate(1);
  }
}

@keyframes gm-brawldle-flash-wrong {
  0% {
    opacity: 0;
    filter: brightness(1) contrast(1);
  }
  18% {
    opacity: 1;
    filter: brightness(1.08) contrast(1.08);
  }
  45% {
    opacity: 0.92;
    filter: brightness(1.05) contrast(1.05);
  }
  100% {
    opacity: 0;
    filter: brightness(1) contrast(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.glass-metal-site.brawldle-game.flash.flash--brawldle-correct::after,
  body.glass-metal-site.brawldle-game.flash.flash--brawldle-wrong::after {
    animation-duration: 0.22s !important;
  }
}

@media (max-width: 899px) {
  body.glass-metal-site main {
    padding-bottom: calc(3rem + 4.5rem);
  }
}

body.glass-metal-site .skip-link {
  position: absolute;
  left: -9999px;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: #1a1a1a;
  color: #fff;
  border-radius: var(--gm-radius);
}

body.glass-metal-site .skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Legacy footer → glass strip */
body.glass-metal-site .footer {
  background: rgba(5, 5, 5, 0.92);
  border-top: 1px solid var(--gm-border-soft);
  margin-top: 3rem;
  padding: 2.25rem 1rem;
  text-align: center;
}

body.glass-metal-site .footer-content {
  max-width: var(--gm-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
}

@media (min-width: 768px) {
  body.glass-metal-site .footer-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

body.glass-metal-site .footer-link {
  font-family: "Inter", sans-serif !important;
  font-size: 0.65rem !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gm-text-muted) !important;
}

body.glass-metal-site .footer-link:hover {
  color: #fff !important;
}

body.glass-metal-site .footer-meta p {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: #555;
}

/* Sections & containers */
body.glass-metal-site .stats-container,
body.glass-metal-site .leaderboard-container,
body.glass-metal-site .blog {
  margin-top: 0;
}

/* Leaderboard: stacked glass sections for staggered .gm-reveal (same pattern as stats) */
body.glass-metal-site .leaderboard-container > .leaderboard-section {
  margin-left: auto;
  margin-right: auto;
  max-width: min(960px, 100%);
  margin-bottom: clamp(1rem, 3vw, 1.35rem);
}

body.glass-metal-site .leaderboard-container > .leaderboard-section:last-child {
  margin-bottom: 0;
}

body.glass-metal-site .leaderboard-section--intro {
  padding: clamp(1.5rem, 4vw, 2.25rem) clamp(1rem, 3vw, 1.75rem) !important;
}

body.glass-metal-site .leaderboard-section--controls {
  padding: clamp(1.15rem, 3vw, 1.65rem) clamp(1rem, 3vw, 1.75rem) !important;
}

body.glass-metal-site .leaderboard-section--boards {
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1rem, 3vw, 1.75rem) !important;
}

/* Submit clip — Google Form embed */
body.glass-metal-site .submit-clip-page {
  padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1rem, 3vw, 1.75rem) !important;
}

body.glass-metal-site .submit-clip-header {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto 1.75rem;
}

body.glass-metal-site .submit-clip-header .gm-label {
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.65rem;
  color: var(--gm-text-muted);
}

body.glass-metal-site .submit-clip-header h1 {
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0.5rem 0 1rem;
}

body.glass-metal-site .submit-clip-lead {
  color: var(--gm-text-muted) !important;
  line-height: 1.65;
  font-size: 0.95rem;
  margin: 0 0 1.35rem;
  text-align: left;
}

body.glass-metal-site .submit-clip-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

body.glass-metal-site .submit-iframe-shell {
  border-radius: var(--gm-radius);
  overflow: hidden;
  border: 1px solid var(--gm-border-soft);
  background: rgba(0, 0, 0, 0.28);
  min-height: min(72vh, 820px);
}

body.glass-metal-site .submit-iframe {
  display: block;
  width: 100%;
  min-height: min(72vh, 820px);
  border: 0;
  background: #fafafa;
}

@media (max-width: 767px) {
  body.glass-metal-site .submit-iframe-shell,
  body.glass-metal-site .submit-iframe {
    min-height: 560px;
  }
}

body.glass-metal-site .stats-section,
body.glass-metal-site .leaderboard-section,
body.glass-metal-site .brawldle-section,
body.glass-metal-site .blog-post {
  background: var(--gm-surface) !important;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--gm-border) !important;
  border-radius: var(--gm-radius) !important;
  box-shadow: var(--gm-inner-glow), var(--gm-shadow-tl);
  color: var(--gm-text) !important;
}

/* Blog index hero — flat glass strip, no lifted corner shadow / title glow */
body.glass-metal-site .blog .blog-hero {
  background: rgba(14, 16, 22, 0.55) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--gm-border-soft) !important;
  border-radius: var(--gm-radius) !important;
  box-shadow: none !important;
  color: var(--gm-text) !important;
}

body.glass-metal-site .blog .hero-title {
  text-shadow: none !important;
  font-weight: 400 !important;
  letter-spacing: -0.03em !important;
}

body.glass-metal-site .stats-section h2,
body.glass-metal-site .brawldle-section h2,
body.glass-metal-site .leaderboard-section h2,
body.glass-metal-site .section-header h2 {
  font-family: "Inter", sans-serif !important;
  font-weight: 300 !important;
  letter-spacing: 0.06em;
  color: #fff !important;
}

body.glass-metal-site .section-header {
  border-bottom: 1px solid var(--gm-border-soft) !important;
}

/* Stats page: same glass panel + slide-in as minigames hub cards (see .gm-reveal override below) */
body.glass-metal-site .stats-container {
  margin-top: 0 !important;
  margin-bottom: 2rem;
}

body.glass-metal-site .stats-section {
  background: var(--gm-surface) !important;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--gm-border) !important;
  border-radius: var(--gm-radius) !important;
  box-shadow: var(--gm-inner-glow), 0 6px 20px rgba(0, 0, 0, 0.22) !important;
}

body.glass-metal-site .stats-section:hover {
  box-shadow: var(--gm-inner-glow), 0 10px 28px rgba(0, 0, 0, 0.3) !important;
}

body.glass-metal-site .stats-section.gm-reveal.is-visible:hover {
  transform: translate(0, -2px);
  transition:
    transform 0.35s var(--gm-motion-smooth),
    box-shadow 0.35s var(--gm-motion-smooth);
}

@media (prefers-reduced-motion: reduce) {
  body.glass-metal-site .stats-section:hover,
  body.glass-metal-site .stats-section.gm-reveal.is-visible:hover {
    transform: none;
  }
}

/* Intro cards (Brawldle hub) — soft inset + even lift shadow (no -6px/-6px “corner” box) */
body.glass-metal-site .brawldle-intro,
body.glass-metal-site .trophyguess-intro {
  background: var(--gm-surface) !important;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--gm-border) !important;
  border-radius: var(--gm-radius) !important;
  box-shadow: var(--gm-inner-glow), 0 6px 20px rgba(0, 0, 0, 0.22) !important;
}

body.glass-metal-site .brawldle-intro.gm-reveal.is-visible:hover,
body.glass-metal-site .trophyguess-intro.gm-reveal.is-visible:hover {
  box-shadow: var(--gm-inner-glow), 0 10px 28px rgba(0, 0, 0, 0.3) !important;
  transform: translate(0, -2px);
  transition:
    transform 0.35s var(--gm-motion-smooth),
    box-shadow 0.35s var(--gm-motion-smooth);
}

@media (prefers-reduced-motion: reduce) {
  body.glass-metal-site .brawldle-intro.gm-reveal.is-visible:hover,
  body.glass-metal-site .trophyguess-intro.gm-reveal.is-visible:hover {
    transform: none;
  }
}

body.glass-metal-site .brawldle-intro h1,
body.glass-metal-site .trophyguess-intro h1 {
  font-family: "Inter", sans-serif !important;
  font-weight: 300 !important;
  color: #fff !important;
}

/* ── Minigames hub cards — redesigned layout & typography ── */

/* Card: no padding so image bleeds to edges, overflow clips to border-radius */
body.glass-metal-site.brawldle-hub .brawldle-intro,
body.glass-metal-site.brawldle-hub .trophyguess-intro {
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 18px !important;
  flex-direction: column !important;
  align-items: stretch !important;
  text-align: left !important;
  position: relative;
}

/* Colored top accent bar */
body.glass-metal-site.brawldle-hub .brawldle-intro::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #8b78ff, #5f4bcd);
  z-index: 1;
}
body.glass-metal-site.brawldle-hub .trophyguess-intro::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ffd700, #ffa500);
  z-index: 1;
}

/* Card hover — colored glow per card */
body.glass-metal-site.brawldle-hub .brawldle-intro:hover {
  box-shadow: var(--gm-inner-glow), 0 12px 36px rgba(100,80,200,0.22) !important;
  transform: translateY(-3px);
  transition: transform 0.3s var(--gm-motion-smooth), box-shadow 0.3s var(--gm-motion-smooth);
}
body.glass-metal-site.brawldle-hub .trophyguess-intro:hover {
  box-shadow: var(--gm-inner-glow), 0 12px 36px rgba(255,180,0,0.18) !important;
  transform: translateY(-3px);
  transition: transform 0.3s var(--gm-motion-smooth), box-shadow 0.3s var(--gm-motion-smooth);
}

/* Image area: styled header with gradient wash, icon centered & contained */
/* aspect-ratio reserves exact space before paint — prevents CLS */
body.glass-metal-site.brawldle-hub .brawldle-intro   .minigame-intro-img { aspect-ratio: 383 / 348; }
body.glass-metal-site.brawldle-hub .trophyguess-intro .minigame-intro-img { aspect-ratio: 232 / 300; }

body.glass-metal-site.brawldle-hub .minigame-intro-img {
  order: -1;
  width: 100% !important;
  max-width: 100% !important;
  height: clamp(170px, 22vw, 220px) !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center center;
  padding: clamp(1.2rem, 3vw, 1.8rem) clamp(1.5rem, 4vw, 2.5rem) !important;
  box-sizing: border-box !important;
  border-radius: 0 !important;
  margin: 0 !important;
  display: block !important;
}

/* Brawldle card — purple gradient wash behind icon */
body.glass-metal-site.brawldle-hub .brawldle-intro .minigame-intro-img {
  background: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(100,80,220,0.22) 0%, transparent 75%),
              linear-gradient(160deg, rgba(60,40,120,0.35) 0%, rgba(20,15,50,0.6) 100%) !important;
}

/* TrophyGuess card — amber gradient wash behind icon */
body.glass-metal-site.brawldle-hub .trophyguess-intro .minigame-intro-img {
  background: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(220,160,0,0.2) 0%, transparent 75%),
              linear-gradient(160deg, rgba(100,65,0,0.35) 0%, rgba(30,20,5,0.6) 100%) !important;
}

/* Text region */
body.glass-metal-site.brawldle-hub .brawldle-intro .intro-text,
body.glass-metal-site.brawldle-hub .trophyguess-intro .intro-text {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  padding: 1.2rem 1.5rem 1.6rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
  gap: 0 !important;
}

/* Eyebrow label */
body.glass-metal-site.brawldle-hub .intro-label {
  font-family: 'Open Sans', sans-serif !important;
  font-size: 0.65rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  margin: 0 0 0.4rem !important;
  line-height: 1 !important;
}
body.glass-metal-site.brawldle-hub .brawldle-intro .intro-label   { color: #a89bff !important; }
body.glass-metal-site.brawldle-hub .trophyguess-intro .intro-label { color: #ffc840 !important; }

/* Card H1 */
body.glass-metal-site.brawldle-hub .brawldle-intro h1,
body.glass-metal-site.brawldle-hub .trophyguess-intro h1 {
  font-family: 'Lilita One', sans-serif !important;
  font-weight: 400 !important;
  font-size: clamp(1.7rem, 3.2vw, 2.2rem) !important;
  color: #fff !important;
  line-height: 1.05 !important;
  margin: 0 0 0.6rem !important;
}

/* Description */
body.glass-metal-site.brawldle-hub .brawldle-intro .intro-text p:not(.intro-label),
body.glass-metal-site.brawldle-hub .trophyguess-intro .intro-text p:not(.intro-label) {
  font-family: 'Open Sans', sans-serif !important;
  font-size: 0.875rem !important;
  line-height: 1.6 !important;
  color: var(--gm-text-muted) !important;
  margin: 0 0 1rem !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden !important;
}

/* Button row */
body.glass-metal-site.brawldle-hub .intro-btns {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.55rem !important;
  margin-bottom: 1rem !important;
  width: 100% !important;
}

body.glass-metal-site.brawldle-hub .intro-btns .brawldle-button2 {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  padding: 0.72rem 1.25rem !important;
  font-size: 0.85rem !important;
  font-family: 'Open Sans', sans-serif !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
  margin: 0 !important;
  letter-spacing: 0.04em !important;
  text-transform: none !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  background: rgba(255,255,255,0.05) !important;
  color: var(--gm-text) !important;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s var(--gm-motion-snap) !important;
}

body.glass-metal-site.brawldle-hub .intro-btns .brawldle-button2:hover {
  background: rgba(255,255,255,0.1) !important;
  border-color: rgba(255,255,255,0.22) !important;
  transform: translateY(-2px) !important;
}

/* Primary button — filled accent, stands out as the main CTA */
body.glass-metal-site.brawldle-hub .brawldle-intro .intro-btns .brawldle-button2:first-child {
  background: rgba(139,120,255,0.2) !important;
  border-color: rgba(139,120,255,0.5) !important;
  color: #d0c8ff !important;
  font-size: 0.9rem !important;
  padding: 0.82rem 1.25rem !important;
}
body.glass-metal-site.brawldle-hub .brawldle-intro .intro-btns .brawldle-button2:first-child:hover {
  background: rgba(139,120,255,0.32) !important;
  border-color: rgba(139,120,255,0.7) !important;
}
body.glass-metal-site.brawldle-hub .trophyguess-intro .intro-btns .brawldle-button2:first-child {
  background: rgba(255,195,50,0.15) !important;
  border-color: rgba(255,195,50,0.45) !important;
  color: #ffd878 !important;
  font-size: 0.9rem !important;
  padding: 0.82rem 1.25rem !important;
}
body.glass-metal-site.brawldle-hub .trophyguess-intro .intro-btns .brawldle-button2:first-child:hover {
  background: rgba(255,195,50,0.25) !important;
  border-color: rgba(255,195,50,0.65) !important;
}

/* Submit / gold button — full width, at the bottom */
body.glass-metal-site.brawldle-hub .brawldle-intro .brawldle-button,
body.glass-metal-site.brawldle-hub .trophyguess-intro .brawldle-button {
  /* Demoted: small inline ghost link, not a dominant gold block */
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35em !important;
  width: auto !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  color: var(--gm-text-muted) !important;
  font-family: 'Open Sans', sans-serif !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  text-transform: none !important;
  padding: 0.15rem 0 !important;
  margin: 0.25rem 0 0 !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

body.glass-metal-site.brawldle-hub .brawldle-intro .brawldle-button::after,
body.glass-metal-site.brawldle-hub .trophyguess-intro .brawldle-button::after {
  content: "↗";
  font-size: 0.7em;
  opacity: 0.6;
}

body.glass-metal-site.brawldle-hub .brawldle-intro .brawldle-button:hover,
body.glass-metal-site.brawldle-hub .trophyguess-intro .brawldle-button:hover {
  color: var(--gm-text) !important;
  transform: none !important;
  box-shadow: none !important;
}

@media (prefers-reduced-motion: reduce) {
  body.glass-metal-site.brawldle-hub .brawldle-intro:hover,
  body.glass-metal-site.brawldle-hub .trophyguess-intro:hover {
    transform: none;
  }
}

body.glass-metal-site .intro-text p,
body.glass-metal-site .brawldle-section p,
body.glass-metal-site .brawldle-section li {
  color: var(--gm-text-muted) !important;
  font-family: "Inter", sans-serif !important;
}

/* Minigames hub — How to Play (two cards, no triangle bullets) */
body.glass-metal-site.brawldle-hub .gm-howto-play {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  margin-top: clamp(1.5rem, 4vw, 2.75rem);
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1rem, 3vw, 1.5rem) 1.5rem;
  clear: both;
}

body.glass-metal-site.brawldle-hub .gm-howto-play > h2 {
  text-align: center;
  margin: 0 0 0.35rem;
  font-weight: 500 !important;
  letter-spacing: 0.04em !important;
}

body.glass-metal-site.brawldle-hub .gm-howto-intro {
  text-align: center;
  max-width: 34rem;
  margin: 0 auto 1.35rem;
  font-size: 0.92rem !important;
  line-height: 1.55 !important;
  color: var(--gm-text-muted) !important;
}

body.glass-metal-site.brawldle-hub .gm-howto-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 820px) {
  body.glass-metal-site.brawldle-hub .gm-howto-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.15rem;
    align-items: stretch;
  }
}

body.glass-metal-site.brawldle-hub .gm-howto-card {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--gm-border-soft);
  border-radius: var(--gm-radius);
  padding: 1.1rem 1.2rem 1.2rem;
  text-align: left;
}

body.glass-metal-site.brawldle-hub .gm-howto-card h3 {
  font-family: "Inter", sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: var(--gm-accent) !important;
  margin: 0 0 0.25rem !important;
}

body.glass-metal-site.brawldle-hub .gm-howto-card-sub {
  margin: 0 0 0.85rem !important;
  font-size: 0.78rem !important;
  line-height: 1.4 !important;
  color: var(--gm-text-muted) !important;
}

body.glass-metal-site.brawldle-hub .gm-howto-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.glass-metal-site.brawldle-hub .gm-howto-play .gm-howto-list > li {
  position: relative;
  padding-left: 1rem !important;
  margin-bottom: 0.62rem !important;
  font-size: 0.88rem !important;
  line-height: 1.48 !important;
  color: var(--gm-text) !important;
}

body.glass-metal-site.brawldle-hub .gm-howto-play .gm-howto-list > li:last-child {
  margin-bottom: 0 !important;
}

body.glass-metal-site.brawldle-hub .gm-howto-play .gm-howto-list > li::before {
  content: "" !important;
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gm-accent);
  opacity: 0.85;
}

body.glass-metal-site.brawldle-hub .gm-howto-play .gm-howto-list > li strong {
  color: #f0ebe8 !important;
  font-weight: 600 !important;
}

body.glass-metal-site.brawldle-hub .gm-howto-cta {
  margin: 1.35rem 0 0 !important;
  padding-top: 1.1rem !important;
  border-top: 1px solid var(--gm-border-soft) !important;
  text-align: center !important;
  font-size: 0.9rem !important;
  line-height: 1.5 !important;
  color: var(--gm-text-muted) !important;
}

body.glass-metal-site.brawldle-hub .gm-howto-cta strong {
  color: #fff !important;
  font-weight: 600 !important;
}

/* Primary actions → metal */
body.glass-metal-site .brawldle-button,
body.glass-metal-site .submit-clip-button,
body.glass-metal-site .submit-button,
body.glass-metal-site .trophyGuess-button {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gm-metal-1) 0%, var(--gm-metal-2) 100%) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.35) !important;
  color: #2a1f0f !important;
  font-family: "Inter", sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  font-size: 0.7rem !important;
  border-radius: var(--gm-radius) !important;
  box-shadow: var(--gm-shadow-tl);
  transition:
    filter 0.35s var(--gm-motion-smooth),
    transform 0.35s var(--gm-motion-smooth),
    box-shadow 0.35s var(--gm-motion-smooth);
}

body.glass-metal-site .brawldle-button::after,
body.glass-metal-site .submit-clip-button::after,
body.glass-metal-site .submit-button::after,
body.glass-metal-site .trophyGuess-button::after {
  content: "";
  position: absolute;
  inset: -20%;
  left: -40%;
  width: 45%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 100%
  );
  transform: translateX(-120%) skewX(-12deg);
  transition: transform 0.65s var(--gm-ease);
  pointer-events: none;
}

body.glass-metal-site .brawldle-button:hover,
body.glass-metal-site .submit-clip-button:hover,
body.glass-metal-site .submit-button:hover,
body.glass-metal-site .trophyGuess-button:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: var(--gm-shadow-tl), 0 12px 28px rgba(0, 0, 0, 0.35);
}

body.glass-metal-site .brawldle-button:hover::after,
body.glass-metal-site .submit-clip-button:hover::after,
body.glass-metal-site .submit-button:hover::after,
body.glass-metal-site .trophyGuess-button:hover::after {
  transform: translateX(380%) skewX(-12deg);
}

body.glass-metal-site .brawldle-button:active,
body.glass-metal-site .submit-button:active,
body.glass-metal-site .trophyGuess-button:active {
  transform: translateY(0) scale(0.98);
}

body.glass-metal-site .brawldle-button2 {
  position: relative;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid var(--gm-border-soft) !important;
  color: var(--gm-text) !important;
  font-family: "Inter", sans-serif !important;
  font-weight: 500 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  font-size: 0.68rem !important;
  border-radius: var(--gm-radius) !important;
  transition:
    background 0.35s var(--gm-motion-smooth),
    border-color 0.35s var(--gm-motion-smooth),
    transform 0.3s var(--gm-motion-smooth),
    box-shadow 0.35s var(--gm-motion-smooth);
}

body.glass-metal-site .brawldle-button2:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: var(--gm-border) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
}

body.glass-metal-site .brawldle-button2:active {
  transform: translateY(0) scale(0.98);
}

@media (prefers-reduced-motion: reduce) {
  body.glass-metal-site .brawldle-button::after,
  body.glass-metal-site .submit-clip-button::after,
  body.glass-metal-site .submit-button::after,
  body.glass-metal-site .trophyGuess-button::after {
    display: none;
  }

  body.glass-metal-site .brawldle-button:hover,
  body.glass-metal-site .submit-clip-button:hover,
  body.glass-metal-site .submit-button:hover,
  body.glass-metal-site .trophyGuess-button:hover,
  body.glass-metal-site .brawldle-button2:hover {
    transform: none;
  }
}

/* Hero / grid */
body.glass-metal-site .hero {
  margin: 0 auto 2rem;
  padding: 0 !important;
  min-height: 0 !important;
  background: transparent !important;
  flex-shrink: 0;
  overflow: visible !important;
}

body.glass-metal-site .hero::before {
  display: none;
}

body.glass-metal-site .intro-container {
  gap: clamp(1.25rem, 3vw, 2rem) !important;
}

/* Update banner (minigames hub + homepage) */
body.glass-metal-site .update-banner,
body.glass-metal-home .update-banner {
  background: var(--gm-surface) !important;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--gm-border-soft) !important;
  border-radius: var(--gm-radius) !important;
  padding: 0.75rem 1.25rem !important;
  margin: 0 auto 1.25rem !important;
  max-width: min(1100px, calc(100% - 2rem)) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.22) !important;
  position: relative;
  z-index: 1;
}

body.glass-metal-site .update-content,
body.glass-metal-home .update-content {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  color: var(--gm-text-muted) !important;
  font-family: "Inter", sans-serif !important;
  font-size: 0.85rem !important;
  line-height: 1.55;
}

body.glass-metal-site .update-content > i:first-child,
body.glass-metal-home .update-content > i:first-child {
  color: var(--gm-accent) !important;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

body.glass-metal-site .update-content a,
body.glass-metal-home .update-content a {
  color: var(--gm-accent) !important;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.glass-metal-site .update-content a:hover,
body.glass-metal-home .update-content a:hover {
  color: #e8c49a !important;
}

body.glass-metal-home .update-banner {
  margin-top: 0.35rem !important;
}

/* Modals — above nav (z~100), bottom bar, space video; .show content must stay visible */
body.glass-metal-site #rankModal.modal,
body.glass-metal-site .modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 100000 !important;
  background: rgba(0, 0, 0, 0.75) !important;
  backdrop-filter: blur(6px);
}

body.glass-metal-site .modal.show {
  background-color: rgba(0, 0, 0, 0.88) !important;
}

body.glass-metal-site .modal-content {
  background: rgba(22, 22, 24, 0.95) !important;
  border: 1px solid var(--gm-border) !important;
  border-radius: var(--gm-radius) !important;
  box-shadow: var(--gm-shadow-tl);
  color: var(--gm-text) !important;
  font-family: "Inter", sans-serif !important;
}

body.glass-metal-site .modal.show .modal-content {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

body.glass-metal-site .modal-content h1 {
  font-weight: 300 !important;
  color: #fff !important;
}

body.glass-metal-site .close {
  color: var(--gm-text-muted) !important;
}

/* Tables / leaderboard */
body.glass-metal-site .leaderboard-table,
body.glass-metal-site table {
  font-family: "Inter", sans-serif !important;
  border-radius: var(--gm-radius);
  overflow: hidden;
}

body.glass-metal-site .leaderboard-table th {
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--gm-accent) !important;
  font-weight: 500 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.7rem !important;
}

body.glass-metal-site .leaderboard-table td {
  border-color: var(--gm-border-soft) !important;
  color: var(--gm-text) !important;
}

/* Inputs */
body.glass-metal-site input[type="text"],
body.glass-metal-site input[type="password"],
body.glass-metal-site input[type="email"],
body.glass-metal-site input[type="search"],
body.glass-metal-site textarea,
body.glass-metal-site .player-tag-input {
  background: rgba(0, 0, 0, 0.35) !important;
  border: 1px solid var(--gm-border-soft) !important;
  border-radius: var(--gm-radius) !important;
  color: var(--gm-text) !important;
  font-family: "Inter", sans-serif !important;
}

body.glass-metal-site input:focus,
body.glass-metal-site textarea:focus {
  outline: none !important;
  border-color: var(--gm-accent) !important;
}

/* Blog */
body.glass-metal-site .blog-card,
body.glass-metal-site .blog-search {
  font-family: "Inter", sans-serif !important;
}

body.glass-metal-site .hero-title,
body.glass-metal-site .hero-sub {
  font-family: "Inter", sans-serif !important;
  font-weight: 300 !important;
}

/* Tab buttons leaderboard */
body.glass-metal-site .tab-button {
  font-family: "Inter", sans-serif !important;
  border-radius: var(--gm-radius) !important;
}

/* Brawler cards etc */
body.glass-metal-site .brawler-card,
body.glass-metal-site .event-card,
body.glass-metal-site .player-card {
  border-radius: var(--gm-radius) !important;
  border: 1px solid var(--gm-border-soft) !important;
  background: rgba(0, 0, 0, 0.25) !important;
}

/* Blog listing — align post cards with glass panels (blog.css loads before overrides) */
body.glass-metal-site .post-card {
  background: var(--gm-surface) !important;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--gm-border) !important;
  border-radius: var(--gm-radius) !important;
  box-shadow: var(--gm-inner-glow), 0 6px 18px rgba(0, 0, 0, 0.2) !important;
  transition:
    transform 0.45s var(--gm-motion-smooth),
    box-shadow 0.45s var(--gm-motion-smooth);
}

body.glass-metal-site .post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--gm-inner-glow), 0 10px 26px rgba(0, 0, 0, 0.28) !important;
}

@media (prefers-reduced-motion: reduce) {
  body.glass-metal-site .post-card:hover {
    transform: none;
  }
}

body.glass-metal-site .post-title {
  color: #fff !important;
  font-family: "Inter", sans-serif !important;
  font-weight: 500 !important;
}

body.glass-metal-site .post-excerpt {
  color: var(--gm-text-muted) !important;
  font-family: "Inter", sans-serif !important;
}

body.glass-metal-site .post-body {
  color: var(--gm-text) !important;
}

body.glass-metal-site .post-cta {
  color: var(--gm-accent) !important;
  font-family: "Inter", sans-serif !important;
  text-decoration: none;
}

body.glass-metal-site .post-cta:hover {
  color: #fff !important;
}

/* Account / form CTAs */
body.glass-metal-site .account-buttons {
  position: relative;
  overflow: hidden;
  transition:
    filter 0.3s var(--gm-motion-smooth),
    transform 0.3s var(--gm-motion-smooth),
    box-shadow 0.35s var(--gm-motion-smooth);
}

body.glass-metal-site .account-buttons:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

body.glass-metal-site .account-buttons:active {
  transform: translateY(0) scale(0.98);
}

@media (prefers-reduced-motion: reduce) {
  body.glass-metal-site .account-buttons:hover,
  body.glass-metal-site .account-buttons:active {
    transform: none;
  }
}

/* —— Brawldle Daily: timer + report on one row (no overlap with countdown) —— */
body#brawldle-daily .brawldle-daily-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto 0.65rem;
  padding: 0 1rem;
  box-sizing: border-box;
}

body#brawldle-daily .brawldle-daily-timer {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
}

/* ── View Community Chart button (shown after daily guess is used) ── */
.gm-view-chart-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 0.75rem;
  padding: 0.65rem 1.4rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--gm-radius);
  color: var(--gm-text);
  font-family: 'Open Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s var(--gm-motion-snap);
}

.gm-view-chart-btn i {
  color: #a89bff;
  font-size: 0.95em;
}

.gm-view-chart-btn:hover {
  background: rgba(139,120,255,0.14);
  border-color: rgba(139,120,255,0.4);
  color: #d0c8ff;
  transform: translateY(-2px);
}

.gm-view-chart-btn:active {
  transform: translateY(0) scale(0.98);
}

@media (min-width: 640px) {
  body#brawldle-daily .brawldle-daily-topbar {
    justify-content: space-between;
    align-items: center;
  }

  body#brawldle-daily .brawldle-daily-timer {
    flex: 1 1 auto;
    margin-bottom: 0 !important;
  }

  body#brawldle-daily .brawldle-daily-topbar .gm-report-video-btn {
    flex-shrink: 0;
  }
}

@media (max-width: 639px) {
  body#brawldle-daily .brawldle-daily-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  body#brawldle-daily .brawldle-daily-topbar .gm-report-video-btn {
    align-self: center;
  }
}

/* Daily: video block only inside featured-clip-wrap (report moved to topbar) */
body#brawldle-daily .featured-clip-wrap--daily-video-only {
  gap: 0;
}

/* —— Report video (above video, centered) —— */
body.glass-metal-site .featured-clip-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 100%;
}

body.glass-metal-site .featured-clip-wrap .brawldle-video {
  width: 100%;
  align-self: stretch;
}

/* Tighter gap below the button; iframe no longer needs top margin for “below” layout */
body.glass-metal-site .featured-clip-wrap .brawldle-video iframe {
  margin-top: 0.35rem;
}

@media (min-width: 769px) {
  body.glass-metal-site .featured-clip-wrap .brawldle-video iframe {
    margin-top: 0.25rem;
  }
}

body.glass-metal-site .gm-report-video-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.45rem 1rem;
  font-family: "Inter", sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(0, 0, 0, 0.35) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 4px 16px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition:
    color 0.2s var(--gm-motion-smooth),
    border-color 0.2s var(--gm-motion-smooth),
    box-shadow 0.2s var(--gm-motion-smooth),
    transform 0.2s var(--gm-motion-smooth);
}

body.glass-metal-site .gm-report-video-btn:hover {
  color: #fff;
  border-color: rgba(212, 165, 116, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 6px 20px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(212, 165, 116, 0.15);
  transform: translateY(-1px);
}

body.glass-metal-site .gm-report-video-btn:active {
  transform: translateY(0);
}

body.glass-metal-site .gm-report-video-btn:focus-visible {
  outline: 2px solid var(--gm-accent);
  outline-offset: 3px;
}

html.gm-report-modal-open,
html.gm-report-modal-open body {
  overflow: hidden;
}

body.glass-metal-site .gm-report-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

body.glass-metal-site .gm-report-modal[hidden] {
  display: none;
}

body.glass-metal-site .gm-report-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 12, 0.78);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
}

body.glass-metal-site .gm-report-modal__panel {
  position: relative;
  z-index: 1;
  width: min(400px, 100%);
  max-height: min(92vh, 520px);
  overflow: auto;
  padding: 0;
  font-family: "Inter", sans-serif;
  color: var(--gm-text);
  background: linear-gradient(
    165deg,
    rgba(28, 30, 36, 0.92) 0%,
    rgba(12, 14, 20, 0.96) 100%
  );
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.45) inset,
    0 24px 48px rgba(0, 0, 0, 0.55),
    0 0 80px rgba(0, 0, 0, 0.45);
}

body.glass-metal-site .gm-report-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.25rem 1.25rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.glass-metal-site .gm-report-modal__title {
  margin: 0;
  padding-right: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #fff;
}

body.glass-metal-site .gm-report-modal__close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: -0.25rem -0.25rem 0 0;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transition:
    background 0.2s var(--gm-motion-smooth),
    color 0.2s var(--gm-motion-smooth);
}

body.glass-metal-site .gm-report-modal__close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

body.glass-metal-site .gm-report-modal__close:focus-visible {
  outline: 2px solid var(--gm-accent);
  outline-offset: 2px;
}

body.glass-metal-site .gm-report-modal__close-icon {
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 300;
}

body.glass-metal-site .gm-report-modal__hint {
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.75rem 1.25rem 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--gm-text-muted);
}

body.glass-metal-site .gm-report-modal__fields {
  padding: 0.25rem 1.25rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

body.glass-metal-site .gm-report-modal__label {
  display: block;
  margin: 0.75rem 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

body.glass-metal-site .gm-report-modal__label:first-child {
  margin-top: 0.35rem;
}

body.glass-metal-site .gm-report-modal__optional {
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(255, 255, 255, 0.35);
}

body.glass-metal-site .gm-report-modal__select,
body.glass-metal-site .gm-report-modal__textarea {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
}

body.glass-metal-site .gm-report-modal__panel .gm-report-modal__select,
body.glass-metal-site .gm-report-modal__panel .gm-report-modal__textarea {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 10px !important;
  color: var(--gm-text) !important;
}

body.glass-metal-site .gm-report-modal__select {
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
}

body.glass-metal-site .gm-report-modal__textarea {
  resize: vertical;
  min-height: 4.5rem;
  padding: 0.65rem 0.75rem;
  font-size: 0.9rem;
  line-height: 1.45;
}

body.glass-metal-site .gm-report-modal__panel .gm-report-modal__select:focus,
body.glass-metal-site .gm-report-modal__panel .gm-report-modal__textarea:focus {
  border-color: rgba(212, 165, 116, 0.45) !important;
  outline: none !important;
  box-shadow: 0 0 0 1px rgba(212, 165, 116, 0.2);
}

body.glass-metal-site .gm-report-modal__status {
  margin: 0;
  padding: 0 1.25rem;
  min-height: 1.25rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--gm-text-muted);
}

body.glass-metal-site .gm-report-modal__status--ok {
  color: #8fd9a8;
}

body.glass-metal-site .gm-report-modal__status--error {
  color: #f0a8a8;
}

body.glass-metal-site .gm-report-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  padding: 1rem 1.25rem 1.25rem;
  margin-top: 0.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

body.glass-metal-site .gm-report-modal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 1.15rem;
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background 0.2s var(--gm-motion-smooth),
    border-color 0.2s var(--gm-motion-smooth),
    color 0.2s var(--gm-motion-smooth),
    box-shadow 0.2s var(--gm-motion-smooth);
}

body.glass-metal-site .gm-report-modal__btn--secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
}

body.glass-metal-site .gm-report-modal__btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

body.glass-metal-site .gm-report-modal__btn--primary {
  background: linear-gradient(180deg, #c99a6a 0%, #9a6b3d 100%);
  border-color: rgba(255, 255, 255, 0.12);
  color: #1a1208;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

body.glass-metal-site .gm-report-modal__btn--primary:hover {
  filter: brightness(1.06);
}

body.glass-metal-site .gm-report-modal__btn:focus-visible {
  outline: 2px solid var(--gm-accent);
  outline-offset: 2px;
}

body.glass-metal-site .gm-report-modal__btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
  body.glass-metal-site .gm-report-video-btn {
    transition: none;
  }

  body.glass-metal-site .gm-report-video-btn:hover {
    transform: none;
  }
}

/* ── Chart skeleton loader ────────────────────────────────────────────────── */
.chart-skeleton {
  width: 100%;
  padding: 8px 0 4px;
}

.chart-skeleton__bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 140px;
  padding: 0 4px;
}

.chart-skeleton__bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.06) 25%,
    rgba(255,255,255,0.14) 50%,
    rgba(255,255,255,0.06) 75%
  );
  background-size: 200% 100%;
  animation: chart-shimmer 1.4s ease-in-out infinite;
}

/* Stagger bar heights so it looks like a real distribution */
.chart-skeleton__bar:nth-child(1) { height: 30%; animation-delay: 0.0s; }
.chart-skeleton__bar:nth-child(2) { height: 45%; animation-delay: 0.1s; }
.chart-skeleton__bar:nth-child(3) { height: 60%; animation-delay: 0.2s; }
.chart-skeleton__bar:nth-child(4) { height: 85%; animation-delay: 0.3s; }
.chart-skeleton__bar:nth-child(5) { height: 100%; animation-delay: 0.4s; }
.chart-skeleton__bar:nth-child(6) { height: 70%; animation-delay: 0.5s; }
.chart-skeleton__bar:nth-child(7) { height: 40%; animation-delay: 0.6s; }

.chart-skeleton__label {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  margin-top: 6px;
  letter-spacing: 0.04em;
}

@keyframes chart-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ═══════════════════════════════════════════════════════════
   Brawldle Hub Quick-Play CTA row  (brawldle.html)
   ═══════════════════════════════════════════════════════════ */
.bd-hub-cta {
  display: flex;
  justify-content: center;
  gap: clamp(0.75rem, 2.5vw, 1.25rem);
  padding: 0 1.5rem clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.bd-hub-cta__btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: clamp(0.9rem, 2vw, 1.15rem) clamp(1.5rem, 3.5vw, 2.2rem);
  border-radius: 14px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.13);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.18s var(--gm-motion-snap), box-shadow 0.18s ease, border-color 0.18s ease;
  min-width: clamp(220px, 35vw, 310px);
  opacity: 0;
  animation: bd-hero-up 0.4s ease-out forwards;
}

.bd-hub-cta__btn--daily {
  background: linear-gradient(135deg, rgba(35,35,60,0.85) 0%, rgba(50,40,80,0.85) 100%);
  box-shadow: 0 4px 28px rgba(100,80,200,0.18), inset 0.5px 0.5px 0 rgba(255,255,255,0.08);
  animation-delay: 0.72s;
}

.bd-hub-cta__btn--unlimited {
  background: linear-gradient(135deg, rgba(35,50,35,0.85) 0%, rgba(30,60,45,0.85) 100%);
  box-shadow: 0 4px 28px rgba(80,200,120,0.14), inset 0.5px 0.5px 0 rgba(255,255,255,0.08);
  animation-delay: 0.82s;
}

.bd-hub-cta__btn:hover {
  transform: translateY(-3px) scale(1.02);
}

.bd-hub-cta__btn--daily:hover {
  border-color: rgba(140,120,255,0.45);
  box-shadow: 0 8px 36px rgba(100,80,200,0.32), inset 0.5px 0.5px 0 rgba(255,255,255,0.12);
}

.bd-hub-cta__btn--unlimited:hover {
  border-color: rgba(80,220,140,0.45);
  box-shadow: 0 8px 36px rgba(80,200,120,0.28), inset 0.5px 0.5px 0 rgba(255,255,255,0.12);
}

.bd-hub-cta__btn:active {
  transform: translateY(0) scale(0.98);
}

.bd-hub-cta__icon {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  flex-shrink: 0;
}

.bd-hub-cta__btn--daily   .bd-hub-cta__icon { color: #a89bff; }
.bd-hub-cta__btn--unlimited .bd-hub-cta__icon { color: #6de8a0; }

.bd-hub-cta__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.bd-hub-cta__text strong {
  font-family: 'Lilita One', sans-serif;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: #fff;
  line-height: 1.1;
}

.bd-hub-cta__text em {
  font-style: normal;
  font-family: 'Open Sans', sans-serif;
  font-size: clamp(0.72rem, 1.5vw, 0.82rem);
  color: var(--gm-text-muted);
  line-height: 1.2;
}

@media (max-width: 540px) {
  .bd-hub-cta {
    flex-direction: column;
    align-items: center;
  }
  .bd-hub-cta__btn {
    width: 100%;
    max-width: 360px;
    min-width: unset;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bd-hub-cta__btn { animation: none; opacity: 1; }
  .bd-hub-cta__btn:hover { transform: none; }
}

/* ═══════════════════════════════════════════════════════════
   Brawldle Hub Hero Strip  (brawldle.html)
   ═══════════════════════════════════════════════════════════ */
.bd-hub-hero {
  position: relative;
  z-index: 1;
  padding: clamp(2.2rem, 5vw, 3.8rem) 1.5rem clamp(1.8rem, 4vw, 3rem);
  text-align: center;
  overflow: hidden;
}

/* subtle glow behind the text */
.bd-hub-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(212,165,116,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.bd-hub-hero__eyebrow {
  display: inline-block;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gm-accent);
  margin-bottom: 0.8rem;
  opacity: 0;
  animation: bd-hero-up 0.45s ease-out 0.05s forwards;
}

.bd-hub-hero__headline {
  font-family: 'Lilita One', sans-serif;
  font-size: clamp(2.4rem, 6.5vw, 5rem);
  line-height: 1.05;
  color: #fff;
  margin: 0 0 0.55rem;
  opacity: 0;
  animation: bd-hero-up 0.45s ease-out 0.18s forwards;
}

.bd-hub-hero__headline em {
  font-style: normal;
  color: var(--gm-accent);
}

.bd-hub-hero__sub {
  font-family: 'Open Sans', sans-serif;
  font-size: clamp(0.88rem, 2vw, 1.08rem);
  color: var(--gm-text-muted);
  margin: 0 0 1.6rem;
  opacity: 0;
  animation: bd-hero-up 0.45s ease-out 0.3s forwards;
}

.bd-hub-hero__ranks {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(0.45rem, 1.8vw, 1.1rem);
  padding: 0;
  margin: 0;
}

.bd-hub-hero__ranks img {
  width: clamp(34px, 5.5vw, 56px);
  height: auto;
  aspect-ratio: attr(width) / attr(height);
  opacity: 0;
  transform: translateY(12px) scale(0.8);
  animation: bd-rank-pop 0.38s var(--gm-motion-snap) forwards;
  /* middle icon (Masters) grows slightly larger */
}

.bd-hub-hero__ranks img:nth-child(1) { animation-delay: 0.42s; }
.bd-hub-hero__ranks img:nth-child(2) { animation-delay: 0.50s; }
.bd-hub-hero__ranks img:nth-child(3) { animation-delay: 0.58s; }
.bd-hub-hero__ranks img:nth-child(4) { animation-delay: 0.66s; width: clamp(38px, 6vw, 64px); }
.bd-hub-hero__ranks img:nth-child(5) { animation-delay: 0.58s; }
.bd-hub-hero__ranks img:nth-child(6) { animation-delay: 0.50s; }
.bd-hub-hero__ranks img:nth-child(7) { animation-delay: 0.42s; }

@keyframes bd-hero-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bd-rank-pop {
  from { opacity: 0; transform: translateY(12px) scale(0.8); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .bd-hub-hero__eyebrow,
  .bd-hub-hero__headline,
  .bd-hub-hero__sub,
  .bd-hub-hero__ranks img {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ═══════════════════════════════════════════════════════════
   Brawldle Splash Screen  (first-visit only, daily + unlimited)
   ═══════════════════════════════════════════════════════════ */
.bd-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #040814;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  animation: bd-splash-in 0.2s ease-out forwards;
  /* prevent layout shift underneath */
  pointer-events: all;
}

.bd-splash--out {
  animation: bd-splash-out 0.38s ease-in forwards !important;
  pointer-events: none;
}

.bd-splash__inner {
  text-align: center;
  pointer-events: none;
  padding: 0 1.5rem;
}

.bd-splash__line {
  margin: 0 0 0.15em;
  font-family: 'Lilita One', sans-serif;
  color: #e5e2e1;
  opacity: 0;
  transform: translateY(14px);
  animation: bd-splash-line 0.32s ease-out forwards;
}

.bd-splash__line--1 {
  font-size: clamp(2.2rem, 8vw, 5.5rem);
  animation-delay: 0.08s;
}

.bd-splash__line--2 {
  font-size: clamp(2.2rem, 8vw, 5.5rem);
  color: var(--gm-accent);
  animation-delay: 0.28s;
}

.bd-splash__line--3 {
  font-size: clamp(0.95rem, 2.5vw, 1.5rem);
  color: var(--gm-text-muted);
  margin-top: 0.6em;
  animation-delay: 0.48s;
}

.bd-splash__skip {
  display: block;
  margin-top: 2rem;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  animation: bd-splash-line 0.32s ease-out 0.7s forwards;
  opacity: 0;
}

@keyframes bd-splash-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes bd-splash-out {
  from { opacity: 1; }
  to   { opacity: 0; }
}

@keyframes bd-splash-line {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .bd-splash,
  .bd-splash__line,
  .bd-splash__skip { animation: none; opacity: 1; transform: none; }
  .bd-splash--out  { display: none; }
}

