/* =========================
   Game Rooms
   ========================= */

.gg-rooms-page {
  background:
    radial-gradient(
      1200px 520px at 18% -10%,
      rgba(255, 122, 24, 0.16),
      transparent 60%
    ),
    radial-gradient(
      900px 480px at 88% 5%,
      rgba(39, 244, 255, 0.12),
      transparent 62%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 30%);
  color: var(--gg-text, rgba(255, 255, 255, 0.92));
}

.gg-rooms-wrap {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

/* =========================
   Hero
   ========================= */

.gg-rooms-hero {
  padding: 66px 0 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gg-rooms-hero h1,
.gg-rooms-hero h2,
.gg-rooms-hero h3 {
  margin-top: 0;
}

.gg-rooms-kicker {
  margin: 0 0 12px;
  text-align: center;

  font-family: var(--gg-font-ui, Orbitron, Inter, system-ui, Arial, sans-serif);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 13px;
  color: rgba(233, 238, 247, 0.72);
}

.gg-rooms-title {
  margin: 0 0 12px;
  text-align: center;

  font-family: var(--gg-font-ui, Orbitron, Inter, system-ui, Arial, sans-serif);
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.08;
}

.gg-rooms-subtitle {
  margin: 0 auto;
  text-align: center;

  max-width: 72ch;
  font-weight: 400;
  font-size: 16px;
  color: rgba(233, 238, 247, 0.78);
  line-height: 1.65;
}

/* Tighten mobile hero padding */
@media (max-width: 768px) {
  .gg-rooms-hero {
    padding: 34px 0 22px;
  }

  .gg-rooms-wrap {
    width: min(1180px, calc(100% - 28px));
  }
}

/* =========================
   Location
   ========================= */

.gg-rooms-section {
  padding: 40px 0 84px;
}

.gg-location {
  margin-top: 40px;
}

.gg-location:first-child {
  margin-top: 0;
}

.gg-location-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;

  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 24px;
}

.gg-header,
#gg-primary-nav {
  overflow-anchor: none;
}

.gg-location-title {
  margin: 0;
  font-family: var(--gg-font-ui, Orbitron, system-ui, Arial, sans-serif);
  font-size: 22px;
  letter-spacing: 0.06em;
}

.gg-location-notes {
  margin: 0;
  color: rgba(233, 238, 247, 0.7);
  line-height: 1.6;
  font-size: 16px;
  font-family: var(--gg-font-ui, Orbitron, system-ui, Arial, sans-serif);
  letter-spacing: 0.06em;
}

/* =========================
   Room Cards
   ========================= */

.gg-rooms-list {
  display: grid;
  gap: 18px;
}

.gg-room-card {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35) inset;
  overflow: hidden;
}

.gg-room-card__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr; /* copy / media */
  align-items: stretch;
  min-height: 480px;
}

.gg-room-card--reverse .gg-room-card__grid {
  grid-template-columns: 0.85fr 1.15fr; /* media / copy (handled by column order below) */
}

.gg-room-card__copy {
  padding: 26px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* On reverse cards, swap visual order without changing markup */
.gg-room-card--reverse .gg-room-card__copy {
  order: 2;
}
.gg-room-card--reverse .gg-room-card__media {
  order: 1;
}

/* =========================
   Room Name with Difficulty Pill
   ========================= */

.gg-room-name-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.gg-room-name {
  margin: 0;
  font-family: var(--gg-font-ui, Orbitron, Inter, system-ui, Arial, sans-serif);
  font-size: 28px;
  line-height: 1.12;
}

.gg-room-difficulty {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-family: var(--gg-font-ui, Orbitron, Inter, system-ui, Arial, sans-serif);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
}

.gg-room-difficulty--entry {
  color: #00ff88;
  background: rgba(0, 255, 136, 0.12);
  border: 1px solid rgba(0, 255, 136, 0.35);
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.15);
}

.gg-room-difficulty--pro {
  color: #ff4444;
  background: rgba(255, 68, 68, 0.12);
  border: 1px solid rgba(255, 68, 68, 0.35);
  box-shadow: 0 0 12px rgba(255, 68, 68, 0.15);
}

/* =========================
   Room Specs
   ========================= */

.gg-room-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* players + duration */
  gap: 10px;
}

.gg-room-spec {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.gg-room-spec span {
  display: block;
  font-size: 12px;
  color: rgba(233, 238, 247, 0.68);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.gg-room-spec span,
.gg-room-spec strong {
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gg-room-spec strong {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.06em;
  font-size: 14px;
}

.gg-room-modes {
  display: block;
  gap: 0px;
}

.gg-room-label {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(233, 238, 247, 0.7);
}

.gg-room-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gg-room-chip {
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-family: var(--gg-font-ui, Orbitron, Inter, system-ui, Arial, sans-serif);
  letter-spacing: 0.1em;
  text-transform: uppercase;

  color: rgba(233, 238, 247, 0.88);
  border: 1px solid rgba(39, 244, 255, 0.25);
  background: rgba(39, 244, 255, 0.08);
}

.gg-room-list {
  margin: 0;
  padding-left: 18px;
  color: rgba(233, 238, 247, 0.78);
  line-height: 1.6;
}

.gg-room-actions {
  margin-top: auto;
  padding-top: 18px;
}

.gg-room-label {
  margin-bottom: 10px;
}

.gg-room-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 14px 22px;
  border-radius: 14px;
  text-decoration: none;

  font-family: var(--gg-font-ui, Orbitron, Inter, system-ui, Arial, sans-serif);
  letter-spacing: 0.08em;
  text-transform: uppercase;

  background: #000; /* solid black */
  color: #fff; /* white text */
  border: 1px solid rgba(255, 122, 24, 0.85);

  box-shadow:
    0 0 0 1px rgba(255, 122, 24, 0.35) inset,
    0 0 18px rgba(255, 122, 24, 0.22);

  transition:
    color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.gg-room-btn:hover,
.gg-room-btn:focus-visible {
  color: #ff7a18; /* fiery orange text */
  transform: translateY(-1px);

  box-shadow:
    0 0 0 1px rgba(255, 122, 24, 0.45) inset,
    0 0 28px rgba(255, 122, 24, 0.38);
}

/* =========================
   Media / Flip
   ========================= */

.gg-room-card__media {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.gg-room-card--reverse .gg-room-card__media {
  border-left: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

/* Flip container */
.gg-room-flip {
  width: 100%;
  height: 100%;
  min-height: 480px;

  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;

  position: relative;
  perspective: 1200px;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

.gg-room-flip:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 123, 0, 0.18);
}

.gg-room-flip__front,
.gg-room-flip__back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none; /* key fix */
}

.gg-room-flip__front {
  transform: rotateY(0deg);
}

.gg-room-flip__back {
  transform: rotateY(180deg);
  background: #111114 !important; /* charcoal */

  /* Improve text rendering on transformed surface */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Flipped state */
.gg-room-flip.is-flipped .gg-room-flip__front {
  transform: rotateY(-180deg);
}
.gg-room-flip.is-flipped .gg-room-flip__back {
  transform: rotateY(0deg);
}

/* Photo */
.gg-room-photo {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.gg-room-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

/* Hint badge */
.gg-room-flip__hint {
  position: absolute;
  left: 14px;
  bottom: 14px;
  font-family: var(--gg-font-ui, Orbitron, Inter, system-ui, Arial, sans-serif);

  padding: 10px 12px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;

  color: #ff7a18; /* orange text */
  background: #000000; /* solid black */
  border: 1px solid rgba(255, 122, 24, 0.85);
  box-shadow:
    0 0 0 1px rgba(255, 122, 24, 0.35) inset,
    0 0 14px rgba(255, 122, 24, 0.35),
    0 0 26px rgba(255, 122, 24, 0.18);
  backdrop-filter: none;
  pointer-events: none;
}

.gg-room-flip__hint--back {
  position: relative;
  color: #ff7a18;
  left: auto;
  bottom: auto;
  margin-top: 10px;
  align-self: center;
}

/* Back content */
.gg-room-flip__back-inner {
  position: relative;
  inset: auto;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: rgba(255, 255, 255, 0.92);

  /* Fix font rendering on flipped surface */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.gg-room-flip__back-inner * {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.gg-room-flip__title {
  text-align: center;
  font-family: var(--gg-font-ui, Orbitron, Inter, system-ui, Arial, sans-serif);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 20px;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.92);
}

/* Add session context under title */
.gg-room-flip__title::after {
  content: "Per 30-minute session";
  display: block;
  margin-top: 6px;

  font-family: Inter, system-ui, Arial, sans-serif;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: none;

  color: rgba(255, 255, 255, 0.65);
}

.gg-room-flip__pricing {
  overflow: visible;
  display: grid;
  max-height: none; /* title + spacing + reserved bottom */
  padding-right: 6px; /* avoids scrollbar overlaying text */
  gap: 14px;
  margin-top: 12px;
}

.gg-room-flip__row {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 16px 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.gg-room-flip__label {
  font-family: var(--gg-font-ui, Orbitron, Inter, system-ui, Arial, sans-serif);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
}

.gg-room-flip__price {
  font-size: 13px;
  font-weight: 800;
  color: rgba(233, 238, 247, 0.92);
  white-space: nowrap;
}

.gg-room-flip__muted {
  color: rgba(233, 238, 247, 0.66);
}

.gg-flip__slogan {
  font-family: var(--gg-font-ui, Orbitron, Inter, system-ui, Arial, sans-serif);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 15px;
  align-items: center;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
}

/* =========================
   More locations (full-bleed hero)
   ========================= */

.gg-coming-soon-hero {
  width: 100%;
  padding: 96px 0 110px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);

  /* edge-bleed background (match site vibe) */
  background: rgba(0, 0, 0, 0.55);
}

.gg-coming-soon-hero__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.gg-coming-soon-hero__title {
  margin: 0;
  font-family: var(--gg-font-ui, Orbitron, Inter, system-ui, Arial, sans-serif);
  font-size: clamp(27px, 5vw, 54px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.96);

  /* subtle glow like voucher heading */
  text-shadow:
    0 0 22px rgba(255, 255, 255, 0.08),
    0 0 36px rgba(0, 170, 255, 0.1),
    0 0 30px rgba(255, 122, 24, 0.08);
}

.gg-coming-soon-hero__subtitle {
  margin: 14px auto 0;
  max-width: 72ch;

  font-family: Inter, system-ui, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(233, 238, 247, 0.78);
}

/* =========================
   Mode Tooltip (Wikipedia-ish)
   ========================= */

.gg-mode-tooltip {
  position: fixed;
  z-index: 9999;
  width: min(340px, calc(100vw - 28px));
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition:
    opacity 140ms ease,
    transform 140ms ease;
}

.gg-mode-tooltip.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.gg-mode-tooltip__inner {
  background: #0b0b0c; /* solid black/charcoal */
  border: 1px solid rgba(255, 122, 24, 0.75);
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(255, 122, 24, 0.25) inset,
    0 0 22px rgba(255, 122, 24, 0.18);
  padding: 14px 14px;
}

.gg-mode-tooltip__title {
  font-family: var(--gg-font-ui, Orbitron, Inter, system-ui, Arial, sans-serif);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(255, 200, 170, 0.95);
  margin-bottom: 8px;
}

.gg-mode-tooltip__desc {
  font-family: Inter, system-ui, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(233, 238, 247, 0.86);
}

/* Make chips look clickable (they are buttons now) */
.gg-room-chip.gg-mode-pop {
  cursor: pointer;
}

.gg-room-chip.gg-mode-pop:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 122, 24, 0.2);
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 980px) {
  .gg-room-card__grid {
    grid-template-columns: 1fr;
    min-height: 0;
    display: flex !important;
    flex-direction: column !important;
  }

  .gg-room-card__copy {
    order: 1 !important;
  }
  .gg-room-card__media {
    order: 2 !important;
  }

  .gg-room-card__media {
    width: 100% !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  }

  .gg-room-flip,
  .gg-room-flip__front,
  .gg-room-flip__back {
    min-height: 420px;
  }

  .gg-coming-soon-hero {
    padding: 72px 0 84px;
  }

  .gg-coming-soon-hero__subtitle {
    font-size: 14px;
  }
  /* =========================
    Surface/Windows font crispness
    ========================= */

  /* Ensure text blocks are not inside GPU-composited blur layers */
  .gg-room-card__copy,
  .gg-room-card__copy * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: geometricPrecision;
  }

  /* Prevent 3D flip/perspective from affecting text rendering */
  .gg-room-card__copy {
    transform: none !important;
    filter: none !important;
  }

  /* Keep 3D only on the flip media, not the whole card */
  .gg-room-card__media,
  .gg-room-flip {
    transform: translateZ(0);
  }

  /* If you have backdrop blur on cards, disable it for Windows-style crispness */
  .gg-room-card,
  .gg-room-card__copy,
  .gg-room-spec {
    backdrop-filter: none;
  }
}

/* Accessibility: Disable flip animation for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .gg-room-flip__front,
  .gg-room-flip__back {
    transition: none; /* Remove animation */
  }

  /* Make it a simple show/hide instead of flip */
  .gg-room-flip__front {
    transform: none;
  }

  .gg-room-flip.is-flipped .gg-room-flip__front {
    opacity: 0;
    transform: none; /* No rotation */
  }

  .gg-room-flip__back {
    transform: none;
    opacity: 0;
  }

  .gg-room-flip.is-flipped .gg-room-flip__back {
    opacity: 1;
    transform: none; /* No rotation */
  }
}
