/* NFL Player Guessing Game — premium daily challenge layout */

.pfn-tool-panel:has(.gg-studio),
.pfn-main:has(.gg-studio),
.hq-content--tool:has(.gg-studio),
.hq-layout.pp-tool-page:has(.gg-studio) .hq-content,
.hq-layout:has(.gg-studio) .hq-content,
.hq-layout:has(.gg-studio) .hq-main {
  max-width: none;
  width: 100%;
}

.pfn-main:has(.gg-studio) {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.gg-studio {
  --gg-bg: #e8edf4;
  --gg-card: var(--ff-surface-raised, #ffffff);
  --gg-navy: #0b1f3a;
  --gg-navy-2: #102c52;
  --gg-blue: #198cff;
  --gg-blue-2: #3fb4ff;
  --gg-blue-soft: #edf6ff;
  --gg-gold: #fbbf24;
  --gg-muted: #6c7d92;
  --gg-line: rgba(11, 31, 58, 0.1);
  --gg-line-strong: rgba(25, 140, 255, 0.25);
  --gg-ok: #12a15a;
  --gg-bad: #d64545;
  --gg-display: "Barlow Condensed", "SF Compact Display", "Arial Narrow", sans-serif;
  margin: 0.5rem 0 1.75rem;
  color: var(--gg-navy);
  font-family: Poppins, system-ui, sans-serif;
}

/* ESPN-style broadcast chrome — compact header */
.gg-broadcast {
  max-width: 1280px;
  margin: 0 auto 0.85rem;
}

.gg-broadcast__bar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 64px;
  padding: 0.55rem 0.95rem;
  border-radius: 10px;
  background: linear-gradient(90deg, #0b1628 0%, #132238 100%);
  border-bottom: 3px solid var(--gg-gold);
  color: #fff;
}

.gg-broadcast__live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  font-family: var(--gg-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gg-gold);
}

.gg-broadcast__live::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25);
}

.gg-broadcast__identity {
  flex: 1;
  min-width: 0;
}

.gg-broadcast__title {
  margin: 0;
  font-family: var(--gg-display);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.05;
  color: #fff;
}

.gg-broadcast__tagline {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.35;
  color: rgba(248, 250, 252, 0.72);
  text-transform: none;
  letter-spacing: 0;
}

.gg-broadcast__week {
  flex-shrink: 0;
  font-family: var(--gg-display);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  padding: 0.35rem 0.6rem;
}

.gg-broadcast__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  flex-shrink: 0;
}

.gg-broadcast__actions .gg-dash__ghost-btn {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-radius: 6px;
  padding: 0.45rem 0.75rem;
  font-size: 0.72rem;
}

.gg-broadcast__actions .gg-dash__ghost-btn:hover {
  border-color: var(--gg-gold);
  color: var(--gg-gold);
}

.gg-broadcast__meta {
  margin: 0.4rem 0 0;
  padding: 0 0.15rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gg-muted);
  text-transform: none;
  letter-spacing: 0;
}

.gg-page-head {
  max-width: 1280px;
  margin: 0 auto;
}

.gg-page-head__eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gg-muted);
}

.gg-page-head__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.gg-page-head__title {
  margin: 0;
  font-family: var(--gg-display);
  font-size: 1.6rem;
  font-weight: 800;
}

.gg-page-head__sub {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gg-muted);
}

.gg-page-head__actions {
  display: flex;
  gap: 0.5rem;
}

.gg-dash__pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.gg-dash__pill--ppr {
  background: var(--gg-blue);
  color: #fff;
  box-shadow: none;
}

.gg-dash__ghost-btn,
.gg-side-card__cta,
.gg-clue__btn,
.gg-guess__primary,
.gg-guess__hint,
.gg-modal__close {
  appearance: none;
  font: inherit;
  cursor: pointer;
}

.gg-dash__ghost-btn {
  border: 1px solid var(--gg-line);
  background: var(--ff-surface-raised, rgba(255, 255, 255, 0.85));
  color: var(--gg-navy);
  border-radius: 999px;
  padding: 0.68rem 1rem;
  font-size: 0.78rem;
  font-weight: 800;
}

.gg-dash__ghost-btn:hover {
  border-color: var(--gg-line-strong);
  color: var(--gg-blue);
}

.gg-intro-banner {
  margin-top: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.72rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(25, 140, 255, 0.12);
}

.gg-intro-banner__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gg-gold), #ffd76b);
  box-shadow: 0 0 0 6px rgba(245, 185, 50, 0.14);
}

.gg-intro-banner p {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--gg-muted);
}

/* Football field campaign map */
.gg-field {
  max-width: 1280px;
  margin: 0 auto 1rem;
  padding: 0.85rem 1rem 1rem;
  background: var(--ff-surface-raised, #fff);
  border: 1px solid rgba(25, 140, 255, 0.1);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(14, 31, 60, 0.05);
}

.gg-field__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.gg-field.is-collapsed .gg-field__head {
  margin-bottom: 0;
}

.gg-field__head h3 {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gg-field__head p {
  margin: 0.2rem 0 0;
  font-size: 0.72rem;
  color: var(--gg-muted);
}

.gg-field__head-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.gg-field__head-actions > span {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gg-muted);
  white-space: nowrap;
}

.gg-field__toggle {
  border: 1px solid var(--gg-line);
  background: var(--ff-surface-raised, #fff);
  color: var(--gg-navy);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.68rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.gg-field__toggle:hover {
  border-color: var(--gg-blue);
  background: var(--gg-blue-soft);
  color: var(--gg-blue);
}

.gg-field__body {
  overflow: hidden;
  max-height: 640px;
  opacity: 1;
  transition: max-height 0.32s ease, opacity 0.22s ease, margin 0.22s ease;
}

.gg-field.is-collapsed .gg-field__body {
  max-height: 0;
  opacity: 0;
  margin: 0;
  pointer-events: none;
}

/* Match mock-draft sideline field proportions (120 × 53.3 yds) */
.gg-field__stage-wrap {
  position: relative;
  overflow: visible;
  padding-bottom: 0.35rem;
}

.gg-field__stage-wrap::after {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: -10px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(15, 23, 42, 0.28) 0%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.gg-field__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 120 / 58;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.08),
    0 22px 48px rgba(15, 23, 42, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, #0f3d22 0%, #0a2818 100%);
  z-index: 1;
}

.gg-field__turf {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.gg-field__turf svg,
.gg-field-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.gg-turf-line {
  stroke: rgba(255, 255, 255, 0.42);
  stroke-width: 1.5;
  fill: none;
}

.gg-turf-line--ten {
  stroke: rgba(255, 255, 255, 0.78);
  stroke-width: 2.5;
}

.gg-turf-sideline,
.gg-turf-goal {
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 4;
  fill: none;
}

.gg-turf-hash {
  stroke: rgba(255, 255, 255, 0.38);
  stroke-width: 1.2;
  fill: none;
}

.gg-turf-los {
  stroke: #fbbf24;
  stroke-width: 3;
  stroke-dasharray: 14 10;
  opacity: 0.9;
  fill: none;
}

.gg-turf-num {
  fill: rgba(255, 255, 255, 0.82);
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 28px;
  font-weight: 700;
  text-anchor: middle;
}

.gg-turf-ez-label {
  fill: rgba(255, 255, 255, 0.32);
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.gg-turf-mid {
  fill: none;
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 2;
}

.gg-turf-mid-label {
  fill: rgba(255, 255, 255, 0.55);
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 22px;
  font-weight: 800;
}

.gg-field__markers {
  position: absolute;
  inset: 8% 9%;
  z-index: 2;
}

.gg-field__trail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 1;
}

.gg-field__trail-line {
  stroke: #111827;
  stroke-width: 0.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.gg-field__trail-arrow {
  fill: #111827;
  stroke: none;
  transition: opacity 0.2s ease;
}

.gg-field__ball {
  position: absolute;
  left: 0%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.35rem;
  line-height: 1;
  z-index: 4;
  transition:
    left 0.9s cubic-bezier(0.4, 0, 0.2, 1),
    top 0.9s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
  pointer-events: none;
}

.gg-field__marker {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 2;
  min-width: 2.6rem;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  padding: 0.38rem 0.48rem;
  background: rgba(14, 31, 60, 0.9);
  color: #fff;
  text-align: center;
  cursor: pointer;
  font: inherit;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28);
  pointer-events: auto;
}

.gg-field__marker strong {
  display: block;
  font-family: var(--gg-display);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.gg-field__marker span {
  display: block;
  margin-top: 0.08rem;
  font-size: 0.58rem;
  font-weight: 600;
  opacity: 0.85;
  text-transform: none;
  letter-spacing: 0;
}

.gg-field__marker.is-minor {
  min-width: 0;
  width: 0.72rem;
  height: 0.72rem;
  padding: 0;
  border-width: 1.5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.75);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
}

.gg-field__marker.is-minor strong,
.gg-field__marker.is-minor span {
  display: none;
}

.gg-field__marker.is-minor.is-complete {
  background: #6ee7a8;
  border-color: #bbf7d0;
}

.gg-field__marker.is-minor.is-active {
  width: 0.95rem;
  height: 0.95rem;
  background: var(--gg-gold);
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.45);
}

.gg-field__marker.is-active {
  border-color: #fbbf24;
  background: #0f2747;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.4), 0 6px 14px rgba(0, 0, 0, 0.3);
  z-index: 3;
}

.gg-field__marker.is-complete {
  border-color: #6ee7a8;
  background: #14532d;
}

.gg-field__marker.is-locked {
  opacity: 0.38;
  cursor: not-allowed;
}

.gg-field__marker.is-playoffs {
  min-width: 3.1rem;
  background: rgba(76, 29, 149, 0.88);
  border-color: rgba(251, 191, 36, 0.7);
}

.gg-field__marker.is-landmark {
  min-width: 2.9rem;
}

.gg-field__tier {
  margin: 0.65rem 0 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gg-navy);
}

@media (max-width: 720px) {
  .gg-field__stage {
    aspect-ratio: 120 / 70;
    min-height: 200px;
  }

  .gg-field__marker {
    min-width: 2.1rem;
    padding: 0.22rem 0.3rem;
  }

  .gg-field__marker strong {
    font-size: 0.56rem;
  }
}

/* Legacy campaign aliases (unused) */
.gg-campaign {
  display: none;
}

.gg-result__cta {
  appearance: none;
  border: 0;
  border-radius: 6px;
  padding: 0.85rem 1.1rem;
  font-family: var(--gg-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  background: var(--gg-gold);
  color: #0b1628;
}

.gg-result__cta:hover {
  filter: brightness(1.05);
}

.gg-level-complete {
  margin-top: 1rem;
  padding: 1.15rem 1.2rem;
  border-radius: 6px;
  background: linear-gradient(180deg, #123526 0%, #0f2a1c 100%);
  border: 1px solid rgba(110, 231, 168, 0.35);
  border-left: 4px solid #6ee7a8;
  text-align: left;
}

.gg-level-complete h4 {
  margin: 0;
  font-family: var(--gg-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6ee7a8;
}

.gg-level-complete p {
  margin: 0.35rem 0 0.95rem;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(248, 250, 252, 0.78);
  text-transform: none;
  letter-spacing: 0;
}

.gg-level-complete .gg-result__cta {
  margin-right: 0.55rem;
  margin-bottom: 0.45rem;
}

.gg-level-complete__replay {
  margin-bottom: 0.45rem;
  border-color: rgba(255, 255, 255, 0.22) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: #fff !important;
  border-radius: 6px !important;
}

.gg-shell {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
  justify-content: center;
  gap: 1.1rem;
  align-items: start;
}

.gg-game {
  min-width: 0;
}

/* Scorebug strip */
.gg-status {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 0.85rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(11, 22, 40, 0.25);
  background: #0b1628;
  box-shadow: 0 12px 32px rgba(11, 22, 40, 0.16);
}

.gg-status__item {
  display: grid;
  gap: 0.12rem;
  padding: 0.8rem 0.9rem;
  background: transparent;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  box-shadow: none;
  color: #fff;
}

.gg-status__item:last-child {
  border-right: 0;
}

.gg-status__label {
  font-family: var(--gg-display);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gg-gold);
}

.gg-status__value {
  font-family: var(--gg-display);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  color: #fff;
}

.gg-status__meta {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(248, 250, 252, 0.55);
}

.gg-status__bar {
  margin-top: 0.35rem;
  height: 4px;
  border-radius: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.gg-status__bar > span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0;
  transform-origin: left center;
  transition: transform 0.35s linear;
  background: var(--gg-gold);
}

.gg-status__item--timer.is-urgent .gg-status__value {
  color: #f87171;
}

.gg-status__item--timer.is-urgent .gg-status__bar > span {
  background: #f87171;
}

.gg-game__card {
  position: relative;
  overflow: visible;
  background:
    linear-gradient(180deg, rgba(11, 22, 40, 0.92) 0%, rgba(15, 36, 66, 0.94) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid var(--gg-gold);
  border-radius: 10px;
  box-shadow: 0 18px 48px rgba(11, 22, 40, 0.22);
  padding: 1.15rem 1.2rem 1.25rem;
  color: #fff;
}

.gg-game__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0.14;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 48px,
      rgba(255, 255, 255, 0.04) 48px,
      rgba(255, 255, 255, 0.04) 49px
    ),
    repeating-linear-gradient(
      0deg,
      #1a5c32 0,
      #1a5c32 3px,
      #1d6838 3px,
      #1d6838 6px
    );
}

.gg-game__card > * {
  position: relative;
  z-index: 1;
}

.gg-game__card > .gg-guess.is-suggesting {
  z-index: 40;
}


.gg-game__card .gg-dash__ghost-btn,
.gg-game__card .gg-guess__hint {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.gg-game__card .gg-guess__primary {
  border-radius: 6px;
  background: var(--gg-gold);
  color: #0b1628;
  font-family: var(--gg-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gg-game__card .gg-feedback {
  color: rgba(248, 250, 252, 0.85);
}

.gg-game__card .gg-history__head h3,
.gg-game__card .gg-clue__label,
.gg-game__card .gg-guess__assist {
  color: rgba(248, 250, 252, 0.55);
}

.gg-game__card .gg-history__head span {
  color: rgba(248, 250, 252, 0.45);
}

.gg-game__card .gg-clue {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
  color: #fff;
}

.gg-game__card .gg-clue.is-revealed {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(110, 231, 168, 0.45);
}

.gg-game__card .gg-clue.is-next {
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.65);
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.2);
}

.gg-game__card .gg-clue.is-locked {
  background: rgba(0, 0, 0, 0.22);
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.18);
  opacity: 0.72;
}

.gg-game__card .gg-clue.is-premium {
  border-color: rgba(167, 139, 250, 0.55);
  box-shadow: inset 3px 0 0 rgba(167, 139, 250, 0.7);
}

.gg-game__card .gg-clue__icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(251, 191, 36, 0.16);
  border: 1px solid rgba(251, 191, 36, 0.28);
  color: var(--gg-gold);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.gg-game__card .gg-clue.is-revealed .gg-clue__icon {
  background: rgba(110, 231, 168, 0.18);
  border-color: rgba(110, 231, 168, 0.35);
  color: #6ee7a8;
}

.gg-game__card .gg-clue.is-next .gg-clue__icon {
  background: rgba(251, 191, 36, 0.22);
  border-color: rgba(251, 191, 36, 0.5);
  color: #fcd34d;
}

.gg-game__card .gg-clue.is-locked .gg-clue__icon {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(248, 250, 252, 0.45);
}

.gg-game__card .gg-clue__lock {
  color: rgba(248, 250, 252, 0.35);
}

.gg-game__card .gg-clue__label,
.gg-game__card .gg-clue__detail {
  color: rgba(248, 250, 252, 0.58);
  text-transform: none;
  letter-spacing: 0;
  font-family: inherit;
  font-weight: 600;
}

.gg-game__card .gg-clue__value {
  font-family: var(--gg-display);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
}

.gg-game__card .gg-clue.is-locked .gg-clue__value {
  color: rgba(248, 250, 252, 0.28);
  filter: none;
}

.gg-game__card .gg-clue__state {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(248, 250, 252, 0.7);
}

.gg-game__card .gg-clue.is-revealed .gg-clue__state {
  background: rgba(110, 231, 168, 0.2);
  color: #6ee7a8;
}

.gg-game__card .gg-clue.is-next .gg-clue__state {
  background: rgba(251, 191, 36, 0.18);
  color: var(--gg-gold);
}

.gg-game__card .gg-clue.is-locked .gg-clue__state {
  background: transparent;
  color: rgba(248, 250, 252, 0.45);
}

.gg-game__card .gg-guess__input,
.gg-game__card .gg-guess__primary,
.gg-game__card .gg-guess__hint,
.gg-game__card .gg-dash__ghost-btn {
  border-radius: 6px;
}

.gg-game__card .gg-guess__input {
  background: var(--ff-surface-raised, rgba(255, 255, 255, 0.96));
  border-color: transparent;
  color: #0b1628;
}

.gg-game__card .gg-history__table {
  color: #fff;
}

.gg-game__card .gg-history__table th {
  color: rgba(248, 250, 252, 0.5);
  border-color: rgba(255, 255, 255, 0.1);
}

.gg-game__card .gg-history__table td {
  border-color: rgba(255, 255, 255, 0.08);
}

.gg-game__card .gg-history__empty {
  color: rgba(248, 250, 252, 0.5);
}

.gg-game__card .gg-result__share {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  border-radius: 6px;
}


.gg-mystery {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  padding: 1.25rem 1rem 1rem;
  margin-bottom: 1rem;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.gg-mystery__stage {
  position: relative;
  min-height: 170px;
  display: grid;
  place-items: center;
}

.gg-mystery__glow {
  display: none;
}

.gg-mystery__badge {
  position: relative;
  width: 148px;
  height: 148px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  background: #132f55;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 3.6rem;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(3, 17, 36, 0.28);
}

.gg-mystery__badge::before {
  display: none;
}

.gg-mystery__badge.is-solved {
  background: linear-gradient(145deg, var(--ff-surface-raised, #ffffff) 0%, var(--ff-surface-sunken, #edf6ff) 100%);
  color: var(--gg-navy);
  font-size: 2rem;
  box-shadow:
    0 0 0 1px rgba(25, 140, 255, 0.1),
    0 24px 38px rgba(3, 17, 36, 0.2);
}

.gg-mystery.is-solved .gg-mystery__stage {
  display: none;
}

.gg-mystery__badge[hidden] {
  display: none !important;
}

.gg-mystery.is-solved .gg-mystery__reveal {
  display: grid;
}

.gg-mystery.is-solved .gg-mystery__progress {
  display: none;
}

.gg-mystery.is-solved .gg-mystery__result {
  display: block;
}

.gg-mystery.is-solved.is-won {
  background: #0f2442;
}

.gg-mystery.is-solved.is-lost {
  background: #2a2030;
}

.gg-mystery__reveal {
  display: none;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  text-align: left;
  width: min(100%, 520px);
  margin: 0 auto;
  animation: ggRevealIn 0.45s ease;
}

.gg-mystery__reveal-photo {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
}

.gg-mystery__reveal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gg-mystery__reveal-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--gg-display);
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  pointer-events: none;
}

.gg-mystery__reveal-fallback[hidden],
.gg-mystery__reveal-photo.has-photo .gg-mystery__reveal-fallback {
  display: none !important;
}

.gg-mystery__reveal-photo img[hidden] {
  display: none !important;
}

.gg-mystery__reveal-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.gg-mystery__reveal-name {
  margin: 0.2rem 0 0;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.gg-mystery__reveal-meta {
  margin: 0.35rem 0 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
}

.gg-mystery__result {
  display: none;
  margin-top: 1rem;
  width: min(100%, 520px);
}

.gg-mystery__result-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.gg-mystery__result-stats div {
  border-radius: 14px;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.gg-mystery__result-stats span {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.gg-mystery__result-stats strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.15rem;
  color: #fff;
}

.gg-mystery__result-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 0.8rem;
}

.gg-result__share,
.gg-result__next {
  appearance: none;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.gg-result__share {
  border: 0;
  background: var(--gg-gold);
  color: #1f2937;
}

.gg-result__next {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.gg-autocomplete {
  position: fixed;
  left: 0;
  top: 0;
  width: 280px;
  z-index: 10050;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0;
  padding: 0.4rem;
  border-radius: 8px;
  background: #0b1628;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-top: 3px solid var(--gg-gold);
  box-shadow: 0 22px 48px rgba(8, 16, 32, 0.55);
  max-height: min(280px, 42vh);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  pointer-events: auto;
}

.gg-autocomplete[hidden] {
  display: none !important;
}

.gg-autocomplete__item {
  flex: 0 0 auto;
  width: 100%;
  min-height: 56px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.45rem 0.7rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: #fff;
  transition: background 0.12s ease;
  pointer-events: auto;
  touch-action: manipulation;
}

.gg-autocomplete__item:hover,
.gg-autocomplete__item.is-active {
  background: rgba(251, 191, 36, 0.14);
}

.gg-autocomplete__item:focus-visible {
  outline: 2px solid var(--gg-gold);
  outline-offset: 1px;
}

.gg-autocomplete__photo,
.gg-autocomplete__fallback {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--gg-gold);
  font-family: var(--gg-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.gg-autocomplete__copy {
  min-width: 0;
  display: grid;
  gap: 0.1rem;
}

.gg-autocomplete__name {
  display: block;
  font-family: var(--gg-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gg-autocomplete__meta {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.55);
}

.gg-autocomplete__pick {
  font-family: var(--gg-display);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gg-gold);
  opacity: 0;
}

.gg-autocomplete__item:hover .gg-autocomplete__pick,
.gg-autocomplete__item.is-active .gg-autocomplete__pick {
  opacity: 1;
}

.gg-history__table-wrap {
  overflow-x: auto;
  margin-bottom: 0.75rem;
}

.gg-history__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.76rem;
}

.gg-history__table th,
.gg-history__table td {
  padding: 0.55rem 0.45rem;
  border-bottom: 1px solid rgba(11, 31, 58, 0.08);
  text-align: left;
}

.gg-history__table th {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gg-muted);
}

.gg-history__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
  border-radius: 999px;
  padding: 0.15rem 0.35rem;
  font-size: 0.68rem;
  font-weight: 800;
}

.gg-history__mark.is-ok {
  background: rgba(18, 161, 90, 0.12);
  color: var(--gg-ok);
}

.gg-history__mark.is-bad {
  background: rgba(214, 69, 69, 0.12);
  color: var(--gg-bad);
}

.gg-history__mark.is-muted {
  background: rgba(11, 31, 58, 0.06);
  color: var(--gg-muted);
}

.gg-history__verdict {
  font-weight: 800;
  color: var(--gg-navy);
}

@keyframes ggRevealIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.gg-mystery__badge.is-solved::before {
  background: linear-gradient(180deg, rgba(25, 140, 255, 0.18), rgba(25, 140, 255, 0.06));
  inset: 14px;
  border-radius: 24px;
}

.gg-mystery__badge > *,.gg-mystery__badge {
  z-index: 1;
}

.gg-mystery__caption,
.gg-mystery__progress {
  position: relative;
  z-index: 1;
}

.gg-mystery__caption {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
}

.gg-mystery__progress {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
}

.gg-clues {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.gg-clue {
  min-height: 170px;
  border-radius: 18px;
  border: 1px solid rgba(25, 140, 255, 0.12);
  background: var(--ff-surface-raised, #fff);
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  box-shadow: 0 10px 24px rgba(14, 31, 60, 0.05);
}

.gg-clue.is-next {
  border-color: rgba(25, 140, 255, 0.45);
  box-shadow: 0 14px 30px rgba(25, 140, 255, 0.14);
}

.gg-clue.is-revealed {
  background: #f5faff;
  border-color: rgba(25, 140, 255, 0.22);
}

.gg-clue.is-locked {
  background: var(--ff-surface-sunken, #f8fafc);
  opacity: 0.96;
}

.gg-clue__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.gg-clue__icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--gg-blue-soft);
  color: var(--gg-blue);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.gg-clue__icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.gg-clue__lock {
  width: 18px;
  height: 18px;
  color: rgba(11, 31, 58, 0.35);
}

.gg-clue__lock svg {
  width: 18px;
  height: 18px;
  display: block;
}

.gg-clue__label {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--gg-muted);
}

.gg-clue__value {
  margin-top: 0.08rem;
  font-family: var(--gg-display);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.05;
  color: var(--gg-navy);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  word-break: break-word;
}

.gg-clue.is-locked .gg-clue__value {
  color: rgba(11, 31, 58, 0.33);
  filter: blur(1.6px);
  letter-spacing: 0.04em;
}

.gg-clue__detail {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--gg-muted);
}

.gg-clue__bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.gg-clue__state {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.32rem 0.55rem;
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gg-clue.is-revealed .gg-clue__state {
  background: rgba(25, 140, 255, 0.12);
  color: var(--gg-blue);
}

.gg-clue.is-locked .gg-clue__state {
  background: rgba(11, 31, 58, 0.06);
  color: var(--gg-muted);
}

.gg-clue__btn {
  border: 1px solid rgba(25, 140, 255, 0.2);
  background: var(--ff-surface-raised, #fff);
  color: var(--gg-blue);
  border-radius: 10px;
  padding: 0.45rem 0.65rem;
  font-size: 0.68rem;
  font-weight: 800;
}

.gg-clue__btn:hover:not(:disabled) {
  background: var(--gg-blue-soft);
}

.gg-clue.is-trivia .gg-clue__value {
  font-size: 0.92rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.gg-clue__choices {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.15rem;
}

.gg-clue__choice {
  border: 1px solid rgba(25, 140, 255, 0.18);
  background: var(--ff-surface-raised, #fff);
  color: var(--gg-navy);
  border-radius: 10px;
  padding: 0.42rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.gg-clue__choice:hover:not(:disabled) {
  background: var(--gg-blue-soft);
}

.gg-clue__choice.is-correct {
  border-color: rgba(18, 161, 90, 0.45);
  background: #ecfdf5;
  color: #166534;
}

.gg-clue__choice.is-wrong {
  border-color: rgba(214, 69, 69, 0.35);
  background: #fef2f2;
  color: #991b1b;
  opacity: 0.85;
}

.gg-clue__choice:disabled {
  cursor: default;
}

.gg-guess {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.7rem 0.7rem;
  align-items: start;
}

.gg-guess__field-wrap {
  position: relative;
  min-width: 0;
  z-index: 30;
}

.gg-guess__assist {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(248, 250, 252, 0.55);
  text-transform: none;
  letter-spacing: 0;
}

.gg-guess.is-suggesting .gg-guess__assist {
  visibility: hidden;
}

.gg-guess__input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 3rem;
  border-radius: 6px;
  border: 1px solid rgba(25, 140, 255, 0.16);
  padding: 0 1rem;
  background: var(--ff-surface-raised, #fff);
  font: inherit;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1;
  color: var(--gg-navy);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.gg-guess__input:focus {
  outline: none;
  border-color: rgba(25, 140, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(25, 140, 255, 0.12);
}

.gg-guess__primary,
.gg-guess__hint {
  box-sizing: border-box;
  height: 3rem;
  border-radius: 6px;
  padding: 0 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.gg-guess__primary {
  border: 1px solid transparent;
  background: var(--gg-blue);
  color: #fff;
  box-shadow: none;
}

.gg-guess__hint {
  border: 1px solid rgba(11, 31, 58, 0.08);
  background: var(--ff-surface-raised, #fff);
  color: var(--gg-navy);
}

.gg-guess__primary:disabled,
.gg-guess__hint:disabled,
.gg-clue__btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.gg-feedback {
  min-height: 1.5rem;
  margin: 0.8rem 0 0;
  font-size: 0.92rem;
  font-weight: 700;
}

.gg-feedback.is-ok {
  color: var(--gg-ok);
}

.gg-feedback.is-bad {
  color: var(--gg-bad);
}

.gg-feedback.is-info {
  color: var(--gg-muted);
}

.gg-history {
  margin-top: 1rem;
  border-top: 1px solid rgba(11, 31, 58, 0.08);
  padding-top: 1rem;
}

.gg-history__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.gg-history__head h3 {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gg-history__head span,
.gg-history__empty {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--gg-muted);
}

.gg-history__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.65rem;
}

.gg-history__item {
  border: 1px solid rgba(11, 31, 58, 0.08);
  border-radius: 14px;
  padding: 0.8rem 0.85rem;
  background: #fbfdff;
}

.gg-history__guess {
  display: block;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--gg-navy);
}

.gg-history__note {
  display: block;
  margin-top: 0.28rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gg-muted);
}


.gg-side {
  display: grid;
  gap: 0.85rem;
}

.gg-side-card {
  border-radius: 8px;
  background: #0b1628;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid var(--gg-gold);
  box-shadow: 0 14px 36px rgba(11, 22, 40, 0.18);
  padding: 0.95rem 1rem;
  color: #fff;
}

.gg-side-card h4 {
  margin: 0 0 0.45rem;
  font-family: var(--gg-display);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gg-gold);
}

.gg-side-note {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(248, 250, 252, 0.6);
  line-height: 1.45;
}

.gg-profile,
.gg-howto {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gg-profile li {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.58rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gg-profile li:last-child {
  border-bottom: 0;
}

.gg-profile span {
  font-size: 0.74rem;
  font-weight: 700;
  color: rgba(248, 250, 252, 0.55);
}

.gg-profile strong {
  text-align: right;
  font-size: 0.74rem;
  font-weight: 800;
  color: #fff;
}

.gg-profile li.is-hidden strong {
  color: rgba(248, 250, 252, 0.28);
  letter-spacing: 0.08em;
}

.gg-howto {
  counter-reset: gg-rule;
}

.gg-howto li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.76rem;
  font-weight: 600;
  color: rgba(248, 250, 252, 0.78);
  line-height: 1.4;
}

.gg-howto li:last-child {
  border-bottom: 0;
}

.gg-howto li::before {
  counter-increment: gg-rule;
  content: counter(gg-rule);
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 3px;
  display: grid;
  place-items: center;
  background: rgba(251, 191, 36, 0.18);
  color: var(--gg-gold);
  font-family: var(--gg-display);
  font-size: 0.68rem;
  font-weight: 800;
}

.gg-side-card--pro {
  background: #102038;
}

.gg-side-card--rules {
  background: #f4f7fb;
  border: 1px solid rgba(11, 31, 58, 0.1);
  border-top: 3px solid rgba(11, 31, 58, 0.2);
  color: var(--gg-navy);
  box-shadow: none;
}

.gg-side-card--rules summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--gg-display);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gg-navy);
}

.gg-side-card--rules summary::-webkit-details-marker {
  display: none;
}

.gg-side-card--rules summary::after {
  content: "▾";
  float: right;
  color: var(--gg-muted);
  font-size: 0.75rem;
}

.gg-side-card--rules[open] summary::after {
  content: "▴";
}

.gg-side-card--rules .gg-howto {
  margin-top: 0.65rem;
}

.gg-side-card--rules .gg-howto li {
  color: var(--gg-muted);
  border-bottom-color: rgba(11, 31, 58, 0.08);
}

.gg-side-card--rules .gg-howto li::before {
  background: rgba(25, 140, 255, 0.12);
  color: var(--gg-blue);
}

.gg-side-card__cta {
  width: 100%;
  border: 0;
  border-radius: 6px;
  padding: 0.85rem 1rem;
  font-family: var(--gg-display);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0b1628;
  background: var(--gg-gold);
}

.gg-footer-links {
  max-width: 1280px;
  margin: 1rem auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.gg-footer-links a {
  text-decoration: none;
  color: #fff;
  font-family: var(--gg-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  background: #0b1628;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.gg-footer-links a:hover {
  border-color: var(--gg-gold);
  color: var(--gg-gold);
}


.gg-modal {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(440px, calc(100vw - 2rem));
  max-height: min(90vh, 560px);
  border: 0;
  padding: 0;
  background: transparent;
}

.gg-modal[open] {
  display: block;
}

.gg-modal::backdrop {
  background: rgba(8, 18, 33, 0.55);
}

.gg-modal__card {
  border-radius: 12px;
  background: var(--ff-surface-raised, #fff);
  padding: 1.15rem 1.2rem;
  box-shadow: 0 24px 60px rgba(14, 31, 60, 0.28);
  border-top: 3px solid var(--gg-gold);
}

.gg-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.gg-modal__head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.gg-modal__close {
  border: 0;
  background: var(--ff-surface-sunken, #f1f5f9);
  color: var(--gg-navy);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  font-size: 1.2rem;
  line-height: 1;
}

.gg-modal .gg-howto {
  counter-reset: gg-how;
  list-style: none;
  margin: 0;
  padding: 0;
}

.gg-modal .gg-howto li {
  counter-increment: gg-how;
  position: relative;
  padding: 0.35rem 0 0.35rem 1.5rem;
  border-bottom: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gg-muted);
  line-height: 1.5;
}

.gg-modal .gg-howto li::before {
  content: counter(gg-how);
  position: absolute;
  left: 0;
  top: 0.36rem;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(25, 140, 255, 0.12);
  color: var(--gg-blue);
  font-size: 0.66rem;
  font-weight: 800;
}

.gg-studio .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1180px) {
  .gg-shell {
    grid-template-columns: 1fr;
  }

  .gg-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .gg-status {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .gg-clues,
  .gg-side {
    grid-template-columns: 1fr 1fr;
  }

  .gg-guess {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .gg-page-head__title-row,
  .gg-history__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .gg-status {
    grid-template-columns: 1fr 1fr;
  }

  .gg-status__item:nth-child(2) {
    border-right: 0;
  }

  .gg-status__item:nth-child(1),
  .gg-status__item:nth-child(2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .gg-clues,
  .gg-side,
  .gg-history__list {
    grid-template-columns: 1fr;
  }

  .gg-page-head__actions,
  .gg-footer-links {
    justify-content: flex-start;
  }

  .gg-game__card,
  .gg-side-card {
    padding: 1rem;
  }

  .gg-status__value {
    font-size: 1.3rem;
  }

  .gg-mystery__stage {
    min-height: 156px;
  }

  .gg-mystery__badge {
    width: 128px;
    height: 128px;
    font-size: 3rem;
  }

  .gg-mystery__reveal {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
}
