/* Guess The Animal v12 — Full-Screen Safari Game Console + Magazine Guide (GullMe Blueprint) */
:root {
  --sky1: rgb(71, 181, 232);
  --sky2: rgb(201, 239, 255);
  --hill1: #54b85e;
  --hill2: #287a3e;
  --wood: rgb(158, 107, 59);
  --wood-d: rgb(92, 57, 27);
  --cream: #fff8ea;
  --paper: #fffdf6;
  --sand: #efe4cf;
  --ink: #24190e;
  --soft: #5c4b3a;
  --yellow: #ffc93c;
  --yellow-d: #c98600;
  --green: #247b1b;
  --green-d: #185411;
  --red: #c22920;
  --blue: #2563c2;
  --white: #ffffff;

  --title: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --text: "Nunito", system-ui, -apple-system, sans-serif;
  --r: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background-color: var(--cream);
  color: var(--ink);
  font-family: var(--text);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--green-d);
  text-decoration: none;
}

a:hover {
  color: var(--ink);
}

button {
  font: inherit;
  color: inherit;
}

.gta-ic,
.stk-ic {
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

/* ================= SCREEN 1: ALL-GAME SAFARI ARENA ================= */
.arena {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 16px 46px;
  background: radial-gradient(circle at 50% 18%, rgb(46, 114, 72), rgb(18, 48, 32) 72%);
  color: var(--white);
}

.arena::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 116px, rgba(0, 0, 0, 0.24) 116px 120px);
  pointer-events: none;
}

.gw {
  position: relative;
  width: min(1140px, 100%);
  height: min(880px, calc(100vh - 58px));
  min-height: 620px;
  border-radius: 30px;
  overflow: hidden;
  color: var(--ink);
  box-shadow: 0 0 0 6px var(--ink), 0 0 0 10px rgba(255, 255, 255, 0.16), 0 28px 68px rgba(0, 0, 0, 0.55);
  isolation: isolate;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  color: var(--cream);
  font-family: var(--text);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  padding: 4px 14px;
  border-radius: 20px;
  background-color: rgba(0, 0, 0, 0.28);
}

.scroll-cue:hover {
  color: var(--yellow);
}

.scroll-cue span {
  display: inline-block;
  animation: gtaBob 1.6s ease-in-out infinite;
}

/* Live Animated Safari Rainforest Scene */
.scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, var(--sky1) 0%, var(--sky2) 56%);
  overflow: hidden;
}

.sun {
  position: absolute;
  right: 36px;
  top: 72px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--cream), var(--yellow) 60%, rgba(255, 201, 60, 0) 72%);
  animation: gtaPulse 4s ease-in-out infinite;
}

.cloud {
  position: absolute;
  height: 24px;
  border-radius: 30px;
  background-color: var(--white);
  opacity: 0.92;
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  background-color: var(--white);
  border-radius: 50%;
}

.cloud::before {
  width: 44%;
  height: 180%;
  left: 16%;
  bottom: 20%;
}

.cloud::after {
  width: 34%;
  height: 140%;
  right: 14%;
  bottom: 24%;
}

.c1 { width: 120px; top: 96px; left: -140px; animation: gtaDrift 48s linear infinite; }
.c2 { width: 92px; top: 170px; left: -120px; animation: gtaDrift 64s linear infinite -20s; }
.c3 { width: 148px; top: 68px; left: -170px; animation: gtaDrift 82s linear infinite -52s; }

.birds {
  position: absolute;
  top: 230px;
  left: -60px;
  width: 50px;
  opacity: 0.45;
  animation: gtaFly 26s linear infinite -6s;
}

.birds.b2 {
  top: 292px;
  width: 36px;
  opacity: 0.36;
  animation-duration: 34s;
  animation-delay: -18s;
}

.hills {
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: 14%;
  height: 36%;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(180deg, var(--hill1), var(--hill2));
  border-top: 3px solid var(--ink);
}

.hills.h2 {
  left: 22%;
  right: -18%;
  bottom: 12%;
  height: 28%;
  background: linear-gradient(180deg, var(--green), var(--green-d));
}

.deck-floor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 16%;
  background: repeating-linear-gradient(90deg, var(--wood) 0 54px, var(--wood-d) 54px 57px);
  border-top: 3px solid var(--ink);
  box-shadow: inset 0 8px 0 rgba(0, 0, 0, 0.18);
}

@keyframes gtaDrift { to { transform: translateX(1080px); } }
@keyframes gtaFly {
  0% { transform: translate(0, 0); }
  50% { transform: translate(420px, -24px); }
  100% { transform: translate(980px, 12px); }
}
@keyframes gtaPulse { 50% { transform: scale(1.08); } }
@keyframes gtaBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* Confetti Burst */
.gta-confetti-layer {
  position: absolute;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  overflow: hidden;
}

.gta-confetti-layer i {
  position: absolute;
  top: 24%;
  width: 12px;
  height: 16px;
  border-radius: 3px;
  border: 2px solid var(--ink);
  animation: gtaConfetti 1.35s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}

@keyframes gtaConfetti {
  0% { transform: translate(0, 0) rotate(0deg) scale(0.8); opacity: 1; }
  100% { transform: translate(var(--dx), 360px) rotate(var(--rot)) scale(1); opacity: 0; }
}

/* ================= TOP GAME HUD ================= */
.gw-root {
  position: absolute;
  inset: 0;
  bottom: 68px;
  z-index: 3;
  display: flex;
  flex-direction: column;
}

.logo-ssr {
  padding: 24px;
  text-align: center;
}

.hud {
  height: 60px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  z-index: 5;
}

.avatar {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.av-pic {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--white);
  border: 3px solid var(--ink);
  display: grid;
  place-items: center;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.av-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.av-lv {
  font-family: var(--title);
  font-size: 14px;
  line-height: 1;
  color: var(--white);
  -webkit-text-stroke: 1.4px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 2px 0 var(--ink);
}

.xpbar {
  width: 84px;
  height: 10px;
  border-radius: 6px;
  background-color: rgba(0, 0, 0, 0.35);
  border: 2px solid var(--ink);
  overflow: hidden;
}

.xpbar i {
  display: block;
  height: 100%;
  background: linear-gradient(180deg, rgb(166, 240, 126), var(--green));
  transition: width 0.5s ease;
}

.res {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.rpill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding: 0 12px 0 8px;
  border-radius: 20px;
  background-color: rgba(24, 48, 34, 0.72);
  border: 2.5px solid var(--ink);
  color: var(--white);
  font-family: var(--title);
  font-size: 15px;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25);
}

.gta-life-dot {
  display: inline-flex;
}

.gta-life-dot.is-spent {
  filter: grayscale(1);
  opacity: 0.4;
}

.ibtn {
  appearance: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 2.5px solid var(--ink);
  background: linear-gradient(180deg, var(--white), var(--sand));
  box-shadow: 0 4px 0 var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  flex-shrink: 0;
  transition: transform 0.08s ease;
}

.ibtn:hover {
  filter: brightness(1.05);
}

.ibtn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--ink);
}

/* ================= SCROLLABLE GAME STAGE + LOGO + MASCOT BUBBLE ================= */
.screen {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2px 16px 24px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.screen::-webkit-scrollbar {
  display: none;
}

.logo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.logo h1 {
  margin: 0;
  font-family: var(--title);
  font-size: 34px;
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: 0.4px;
  color: var(--cream);
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 4px 0 var(--ink);
}

.ranger-row {
  flex: 1;
  min-width: 240px;
  display: flex;
  justify-content: flex-end;
}

.bubble {
  background-color: var(--white);
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 8px 14px;
  font-size: 13px;
  line-height: 1.35;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2);
  max-width: 440px;
}

.bubble b {
  font-family: var(--title);
  font-size: 13px;
  font-weight: 400;
  display: block;
  color: var(--green-d);
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}

/* ================= BOTTOM GAME MODE TABS ================= */
.tabs {
  position: absolute;
  z-index: 6;
  left: 0;
  right: 0;
  bottom: 0;
  height: 68px;
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  background: linear-gradient(180deg, rgb(32, 68, 46), rgb(18, 42, 28));
  border-top: 3px solid var(--ink);
}

.tabs .tab-link {
  flex: 1;
  border-radius: 14px;
  color: rgb(186, 218, 198);
  font-family: var(--title);
  font-size: 13px;
  letter-spacing: 0.3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-decoration: none;
}

.tabs .tab-link .ti {
  opacity: 0.65;
  line-height: 0;
}

.tabs .tab-link .stk-ic {
  width: 26px;
  height: 26px;
}

.tabs .tab-link:hover {
  color: var(--white);
}

.tabs .tab-link.on {
  background: linear-gradient(180deg, var(--green), var(--green-d));
  color: var(--white);
  border: 2px solid var(--ink);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25);
}

.tabs .tab-link.on .ti {
  opacity: 1;
}

/* ================= 3D STICKER PANELS & GLOSSY GAME BUTTONS ================= */
.gta-shell {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gta-duel-banner,
.gta-toast {
  background-color: var(--yellow);
  border: 3px solid var(--ink);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.22);
}

.gta-cat-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.gta-filter-pill {
  min-height: 40px;
  padding: 6px 14px;
  border-radius: 14px;
  border: 2.5px solid var(--ink);
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--title);
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--ink);
}

.gta-filter-pill:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--ink);
}

.gta-filter-pill.is-active {
  background: linear-gradient(180deg, rgb(255, 226, 122), var(--yellow));
  color: var(--ink);
}

.gta-desk-grid {
  display: grid;
  grid-template-columns: 314px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.gta-scope-card,
.gta-deduce-card {
  background-color: var(--paper);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: var(--r);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.24);
  padding: 14px;
  min-width: 0;
  width: 100%;
}

.gta-scope-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: -14px -14px 12px;
  padding: 9px 14px;
  background: linear-gradient(180deg, rgb(255, 232, 166), var(--yellow));
  border-bottom: 3px solid var(--ink);
  border-radius: 15px 15px 0 0;
}

.gta-kicker {
  font-family: var(--title);
  font-size: 16px;
  color: var(--ink);
}

.gta-tries-pill {
  font-family: var(--title);
  font-size: 13px;
  padding: 3px 10px;
  border-radius: 10px;
  background-color: var(--red);
  color: var(--white);
  border: 2px solid var(--ink);
}

.gta-aperture-frame {
  position: relative;
  margin-bottom: 10px;
}

.gta-photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 14px;
  border: 3px solid var(--ink);
  background-color: var(--sand);
}

.gta-specimen-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.gta-photo-frame.is-stage-0 .gta-specimen-photo {
  filter: blur(8.5px) saturate(0.88) contrast(1.02);
}

.gta-photo-frame.is-stage-1 .gta-specimen-photo {
  filter: blur(4.2px) saturate(0.96);
}

.gta-photo-frame.is-stage-2 .gta-specimen-photo {
  filter: blur(1.6px);
}

.gta-photo-frame.is-stage-3 .gta-specimen-photo,
.gta-photo-frame.is-stage-zoom .gta-specimen-photo {
  filter: none;
}

.gta-ret {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--yellow);
  border-style: solid;
  pointer-events: none;
}

.r-tl { top: 8px; left: 8px; border-width: 3px 0 0 3px; border-top-left-radius: 4px; display: none; }
.r-tr { top: 8px; right: 8px; border-width: 3px 3px 0 0; border-top-right-radius: 4px; }
.r-bl { bottom: 8px; left: 8px; border-width: 0 0 3px 3px; border-bottom-left-radius: 4px; }
.r-br { bottom: 8px; right: 8px; border-width: 0 3px 3px 0; border-bottom-right-radius: 4px; }

.gta-photo-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 10px;
  border-radius: 10px;
  background-color: var(--ink);
  color: var(--white);
  font-family: var(--title);
  font-size: 12px;
  letter-spacing: 0.3px;
}

/* Sound Quiz Vinyl / Tape Studio Card */
.gta-sound-disc-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  background-color: var(--cream);
  border: 3px dashed var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.gta-sound-disc {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.gta-disc-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--yellow);
  border: 2.5px solid var(--ink);
  display: grid;
  place-items: center;
  box-shadow: 0 3px 0 var(--ink);
}

.gta-disc-copy strong {
  display: block;
  font-family: var(--title);
  font-size: 16px;
}

.gta-disc-copy span {
  font-size: 12px;
  color: var(--soft);
}

/* Glossy 3D Game Buttons (.gbtn + Game Controls) */
.gbtn,
.gta-audio-btn,
.gta-primary-btn,
.gta-zoom-overlay-btn {
  appearance: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 18px;
  border-radius: 14px;
  border: 3px solid var(--ink);
  font-family: var(--title);
  font-size: 17px;
  letter-spacing: 0.4px;
  color: var(--white);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
  cursor: pointer;
  text-decoration: none;
  background: linear-gradient(180deg, rgb(68, 178, 52) 0%, var(--green) 42%, var(--green-d) 100%);
  box-shadow: 0 5px 0 var(--ink), inset 0 3px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.06s ease, filter 0.12s ease;
}

.gbtn::after,
.gta-audio-btn::after,
.gta-primary-btn::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 4px;
  height: 28%;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.24);
  pointer-events: none;
}

.gbtn:hover,
.gta-audio-btn:hover,
.gta-primary-btn:hover,
.gta-zoom-overlay-btn:hover {
  filter: brightness(1.06);
  color: var(--white);
}

.gbtn:active,
.gta-audio-btn:active,
.gta-primary-btn:active,
.gta-zoom-overlay-btn:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--ink), inset 0 3px 0 rgba(255, 255, 255, 0.35);
}

.gbtn.yellow,
.gta-audio-btn {
  background: linear-gradient(180deg, rgb(255, 228, 128), var(--yellow) 55%, var(--yellow-d));
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.gbtn.yellow:hover,
.gta-audio-btn:hover {
  color: var(--ink);
}

.gbtn.sm {
  min-height: 40px;
  font-size: 16px;
  padding: 6px 16px;
  border-radius: 12px;
  box-shadow: 0 4px 0 var(--ink);
}

.gta-audio-btn {
  width: 100%;
  font-size: 16px;
}

.gta-zoom-overlay-btn {
  position: static;
  width: 100%;
  margin-top: 8px;
  min-height: 44px;
  font-size: 15px;
}

.gta-secondary-btn,
.gta-mini-btn,
.chipbtn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 14px;
  border-radius: 12px;
  border: 2.5px solid var(--ink);
  background-color: var(--white);
  color: var(--ink);
  font-family: var(--title);
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--ink);
}

.gta-secondary-btn:hover,
.gta-mini-btn:hover,
.chipbtn:hover {
  background-color: var(--cream);
}

.gta-secondary-btn:active,
.gta-mini-btn:active,
.chipbtn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--ink);
}

.gbtn:focus-visible,
.ibtn:focus-visible,
.gta-audio-btn:focus-visible,
.gta-primary-btn:focus-visible,
.gta-secondary-btn:focus-visible,
.gta-search-input:focus-visible,
.tabs .tab-link:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

/* Audio Box & Clues Drawer */
.gta-audio-box {
  background-color: var(--cream);
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  padding: 10px;
  margin-bottom: 10px;
}

.gta-audio-row {
  margin-bottom: 8px;
}

.gta-audio-meta {
  display: none;
}

.gta-wave-canvas {
  width: 100%;
  height: 36px;
  display: block;
  border-radius: 8px;
  border: 2px solid var(--ink);
}

.gta-silent-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gta-silent-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--title);
  font-size: 14px;
}

.gta-silent-box span {
  font-size: 12px;
  color: var(--soft);
}

.gta-clues-box {
  background-color: var(--cream);
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  padding: 10px;
}

.gta-clues-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--title);
  font-size: 14px;
  cursor: pointer;
  list-style: none;
}

.gta-clues-head::-webkit-details-marker {
  display: none;
}

.gta-hint-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 4px 10px;
  border-radius: 10px;
  border: 2px solid var(--ink);
  background-color: var(--yellow);
  color: var(--ink);
  font-family: var(--title);
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 2px 0 var(--ink);
}

.gta-clue-list {
  list-style: none;
  margin: 10px 0 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gta-clue-list li {
  display: flex;
  gap: 8px;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 10px;
  background-color: var(--white);
  border: 2px solid var(--sand);
}

.gta-clue-list li.is-locked {
  color: var(--soft);
}

.gta-clue-num {
  font-family: var(--title);
  color: var(--green-d);
}

/* ================= DEDUCTION DECK: VERTICAL PHOTO SUSPECT CARDS + SEARCH ================= */
.gta-input-zone {
  margin-bottom: 14px;
}

.gta-deck-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.gta-deck-title {
  font-family: var(--title);
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
}

.gta-search-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 4px 12px;
  border-radius: 18px;
  border: 2.5px solid var(--ink);
  background-color: var(--cream);
  color: var(--ink);
  font-family: var(--title);
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 2px 0 var(--ink);
}

.gta-search-toggle:hover,
.gta-search-toggle.is-open {
  background-color: var(--yellow);
}

.gta-combo-wrap {
  position: relative;
  margin-bottom: 10px;
}

.gta-input-row {
  display: flex;
  gap: 8px;
}

.gta-search-input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 3px solid var(--ink);
  background-color: var(--white);
  color: var(--ink);
  font-family: var(--text);
  font-size: 16px;
  font-weight: 800;
  box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.06);
}

.gta-submit-btn {
  min-height: 48px;
  padding: 0 22px;
  font-size: 18px;
}

.gta-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 45;
  margin: 0;
  padding: 6px;
  list-style: none;
  background-color: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.25);
  max-height: 260px;
  overflow-y: auto;
}

.gta-empty-drop {
  padding: 14px;
  font-size: 14px;
  color: var(--soft);
}

.gta-dropdown li {
  display: flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 10px;
  cursor: pointer;
}

.gta-dropdown li:hover,
.gta-dropdown li.is-hi {
  background-color: var(--yellow);
}

.gta-opt-left {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.gta-opt-left img {
  width: 42px;
  height: 32px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--ink);
  flex-shrink: 0;
}

.gta-opt-text {
  display: flex;
  flex-direction: column;
}

.gta-opt-text strong {
  font-size: 14px;
  line-height: 1.2;
}

.gta-opt-meta {
  font-size: 12px;
  color: var(--soft);
}

/* Starter Chips */
.gta-starters,
.gta-surviving-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.gta-starter-lbl,
.gta-more-lbl {
  font-family: var(--title);
  font-size: 12px;
  color: var(--soft);
}

.gta-starter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 4px 10px 4px 6px;
  border-radius: 20px;
  border: 2px solid var(--ink);
  background-color: var(--cream);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 0 var(--ink);
}

.gta-starter-chip:hover {
  background-color: var(--yellow);
}

.gta-starter-chip:active {
  transform: translateY(2px);
  box-shadow: none;
}

.gta-starter-chip img {
  width: 26px;
  height: 20px;
  object-fit: cover;
  border-radius: 6px;
  border: 1.5px solid var(--ink);
}

/* Vertical Collectible Wildlife Suspect Cards (12-Card & 6-Card Decks) */
.gta-choice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.gta-choice-grid.is-six {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.gta-choice-card {
  appearance: none;
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: 14px;
  border: 2.5px solid var(--ink);
  background-color: var(--cream);
  color: var(--ink);
  text-align: left;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--ink);
  transition: transform 0.08s ease, background-color 0.12s ease;
}

.gta-choice-card:hover:not(:disabled) {
  background-color: var(--yellow);
  transform: translateY(-2px);
}

.gta-choice-card:hover:not(:disabled) .gta-choice-thumb img {
  transform: scale(1.05);
}

.gta-choice-card:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--ink);
}

.gta-choice-card.is-wrong {
  opacity: 0.48;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.gta-choice-card.is-ruled-out {
  opacity: 0.56;
  border-style: dashed;
}

.gta-choice-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--sand);
  border-bottom: 2.5px solid var(--ink);
}

.gta-choice-grid.is-six .gta-choice-thumb {
  aspect-ratio: 4 / 3;
}

.gta-choice-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  display: block;
  transition: transform 0.2s ease;
}

.gta-choice-mass {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 2px 7px;
  border-radius: 8px;
  background-color: rgba(36, 25, 14, 0.84);
  color: var(--white);
  font-family: var(--title);
  font-size: 12px;
  line-height: 1.2;
}

.gta-choice-stamp {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background-color: rgba(36, 25, 14, 0.46);
  color: var(--white);
  font-family: var(--title);
  font-size: 32px;
  text-shadow: 0 2px 0 var(--ink);
}

.gta-choice-stamp.is-out {
  font-size: 18px;
  letter-spacing: 1px;
}

.gta-choice-body {
  display: flex;
  flex-direction: column;
  padding: 6px 9px 7px;
  min-width: 0;
  width: 100%;
}

.gta-choice-body strong {
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gta-choice-body span {
  font-size: 12px;
  color: var(--soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 20 Questions Binary Panel */
.gta-twenty-panel {
  margin-bottom: 14px;
}

.gta-twenty-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  font-size: 14px;
}

.gta-cand-pill {
  padding: 3px 10px;
  border-radius: 12px;
  background-color: var(--yellow);
  border: 2px solid var(--ink);
  font-family: var(--title);
  font-size: 13px;
}

.gta-q-chips {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  max-height: 210px;
  overflow-y: auto;
}

.gta-q-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 42px;
  padding: 6px 10px;
  border-radius: 12px;
  border: 2px solid var(--ink);
  background-color: var(--cream);
  font-size: 12px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.gta-q-btn.is-yes {
  background-color: var(--green-d);
  color: var(--white);
}

.gta-q-btn.is-no {
  background-color: var(--sand);
  color: var(--soft);
}

.gta-q-cat {
  font-family: var(--title);
  color: var(--green-d);
}

.gta-q-btn.is-yes .gta-q-cat {
  color: var(--yellow);
}

/* Evolutionary Tree of Life & 7-Trait Clues */
.gta-cladogram-box {
  padding-top: 12px;
  border-top: 2px dashed var(--sand);
  margin-bottom: 14px;
}

.gta-matrix-box {
  padding-top: 12px;
  border-top: 2px dashed var(--sand);
}

.gta-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.gta-subhead-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--title);
  font-size: 17px;
  font-weight: 400;
}

.gta-subhead > span {
  font-size: 12px;
  color: var(--soft);
}

.gta-branch-tree {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.gta-branch-step {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.gta-branch-step:last-child {
  grid-column: span 2;
}

.gta-taxon-node {
  display: flex;
  flex-direction: column;
  padding: 7px 10px;
  border-radius: 12px;
  border: 2.5px solid var(--ink);
  background: repeating-linear-gradient(135deg, var(--sand) 0 8px, var(--cream) 8px 16px);
}

.gta-taxon-node.is-unlocked {
  background: linear-gradient(180deg, var(--green), var(--green-d));
  color: var(--white);
  box-shadow: 0 3px 0 var(--ink);
}

.gta-cb-mode .gta-taxon-node.is-unlocked {
  background: var(--blue);
}

.gta-taxon-rank {
  font-size: 12px;
  opacity: 0.85;
}

.gta-taxon-val {
  font-family: var(--title);
  font-size: 15px;
  font-weight: 400;
  word-break: break-word;
}

.gta-taxon-plain {
  font-size: 12px;
}

.gta-side-branches {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.gta-split-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 800;
  background-color: var(--yellow);
  border: 2px solid var(--ink);
  padding: 2px 8px 2px 4px;
  border-radius: 12px;
}

.gta-split-pill img {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 4px;
}

.gta-legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.gta-legend i {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  border: 2px solid var(--ink);
  margin-right: 3px;
  vertical-align: middle;
}

.lg-exact { background-color: var(--green); }
.lg-part { background-color: var(--yellow); }
.lg-none { background-color: var(--sand); }

.gta-empty-matrix {
  padding: 12px;
  border-radius: 12px;
  background-color: var(--cream);
  border: 2px dashed var(--sand);
  color: var(--soft);
  font-size: 13px;
}

.gta-matrix-scroll {
  width: 100%;
  overflow-x: auto;
}

.gta-matrix-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 4px;
  min-width: 0;
}

.gta-matrix-table th {
  font-family: var(--title);
  font-size: 12px;
  font-weight: 400;
  color: var(--soft);
  text-align: left;
  padding: 2px 4px;
}

.gta-td-name {
  background-color: var(--cream);
  border: 2px solid var(--ink);
  padding: 5px 7px;
  border-radius: 10px;
  font-size: 13px;
}

.gta-td-animal {
  display: flex;
  align-items: center;
  gap: 6px;
}

.gta-td-animal img {
  width: 34px;
  height: 26px;
  object-fit: cover;
  border-radius: 6px;
  border: 1.5px solid var(--ink);
  flex-shrink: 0;
}

.gta-td-name small {
  display: block;
  font-size: 12px;
  color: var(--soft);
}

.gta-cell {
  padding: 5px 4px;
  border-radius: 10px;
  border: 2px solid var(--ink);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  word-break: break-word;
}

.gta-cell small {
  display: block;
  font-size: 12px;
  font-weight: 600;
}

.gta-cell.is-exact {
  background-color: var(--green-d);
  color: var(--white);
}

.gta-cell.is-partial {
  background-color: var(--yellow);
  color: var(--ink);
}

.gta-cell.is-none {
  background-color: var(--sand);
  color: var(--ink);
}

.gta-cb-mode .gta-cell.is-exact,
.gta-cb-mode .lg-exact {
  background-color: var(--blue);
  color: var(--white);
}

/* Victory Banner */
.gta-result-banner {
  background-color: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 14px;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.18);
}

.gta-result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.gta-result-hero {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gta-result-thumb {
  width: 88px;
  height: 66px;
  object-fit: cover;
  border-radius: 12px;
  border: 3px solid var(--ink);
  flex-shrink: 0;
}

.gta-result-kicker {
  display: inline-block;
  font-family: var(--title);
  font-size: 13px;
  color: var(--green-d);
}

.gta-result-species {
  font-family: var(--title);
  font-size: 24px;
  line-height: 1.1;
}

.gta-sci-name {
  font-family: var(--text);
  font-size: 14px;
  color: var(--soft);
}

.gta-score-medal {
  background-color: var(--yellow);
  color: var(--ink);
  border: 3px solid var(--ink);
  padding: 6px 14px;
  border-radius: 14px;
  font-family: var(--title);
  font-size: 24px;
  text-align: center;
  box-shadow: 0 3px 0 var(--ink);
}

.gta-score-medal span {
  display: block;
  font-size: 12px;
}

.gta-result-fact {
  margin: 0 0 10px 0;
  font-size: 14px;
}

.gta-result-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  background-color: var(--white);
  border: 2px solid var(--sand);
  margin-bottom: 12px;
}

.gta-result-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.gta-duel-url-box {
  margin-top: 10px;
}

.gta-duel-url-box input {
  width: 100%;
  padding: 8px 12px;
  border-radius: 10px;
  border: 2.5px solid var(--ink);
  font-size: 13px;
}

/* Quests Strip */
.gta-quests-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-radius: 16px;
  background-color: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2);
  font-size: 13px;
}

.gta-quest-lead {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--title);
  font-weight: 400;
}

.gta-quest-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 12px;
  background-color: var(--sand);
}

.gta-quest-item.is-done {
  background-color: var(--yellow);
}

/* Modals */
.gta-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 25, 18, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 200;
}

.gta-modal {
  background-color: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 22px;
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.32);
  max-width: 720px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 20px;
}

.gta-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.gta-dex-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.gta-dex-card {
  padding: 8px 10px;
  border-radius: 12px;
  border: 2px solid var(--ink);
  background-color: var(--cream);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.gta-dex-card img {
  width: 48px;
  height: 36px;
  object-fit: cover;
  border-radius: 6px;
  border: 1.5px solid var(--ink);
  flex-shrink: 0;
}

.gta-dex-mystery {
  width: 48px;
  height: 36px;
  border-radius: 6px;
  background-color: var(--sand);
  border: 1.5px solid var(--ink);
  display: grid;
  place-items: center;
  font-family: var(--title);
  flex-shrink: 0;
}

.gta-dex-card.is-unlocked {
  background-color: var(--white);
}

.gta-dex-card span {
  display: block;
  font-size: 12px;
  color: var(--soft);
}

.gta-board-list {
  margin: 0;
  padding-left: 20px;
}

.gta-board-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 2px dashed var(--sand);
}

/* ================= SCREEN 2+ & SUBPAGES: MAGAZINE GUIDE (.reading) ================= */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px max(16px, calc(50% - 38ch));
  background: linear-gradient(180deg, var(--hill2), rgb(18, 48, 32));
  border-bottom: 4px solid var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  font-family: var(--title);
  font-size: 26px;
  -webkit-text-stroke: 1.5px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 3px 0 var(--ink);
}

.brand:hover {
  color: var(--yellow);
}

.reading {
  background-color: var(--cream);
  border-top: 6px solid var(--ink);
}

.topbar + .reading {
  border-top: 0;
}

.reading-in {
  max-width: 76ch;
  margin: 0 auto;
  padding: 48px 20px 64px;
}

.reading-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 3px solid var(--ink);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.kicker {
  font-family: var(--title);
  font-size: 16px;
  color: var(--green-d);
  letter-spacing: 0.5px;
}

.lead {
  font-family: var(--title);
  font-size: 40px;
  font-weight: 400;
  line-height: 1.08;
  margin: 8px 0 12px;
}

.deck {
  font-size: 18px;
  color: var(--soft);
  margin: 0 0 16px;
}

.article-byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--soft);
  margin: 0 0 24px;
  padding: 8px 12px;
  border-radius: 12px;
  background-color: var(--paper);
  border: 2px solid var(--sand);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--soft);
  flex-wrap: wrap;
}

.share-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.like-btn[data-gf-liked],
.like-btn[aria-pressed="true"] {
  background-color: var(--yellow);
}

.guide-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.guide-pills a {
  padding: 6px 14px;
  border-radius: 20px;
  background-color: var(--paper);
  border: 2.5px solid var(--ink);
  color: var(--ink);
  font-family: var(--title);
  font-size: 14px;
  box-shadow: 0 3px 0 var(--ink);
}

.guide-pills a:hover {
  background-color: var(--yellow);
}

/* Mode Showcase Cards inside Reading Section */
.modes-showcase {
  margin: 32px 0;
}

.section-head {
  margin-bottom: 18px;
}

.section-head h2,
.faq-section h2,
.related-guides-section h2,
.editorial-prose h2 {
  font-family: var(--title);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.15;
  margin: 36px 0 10px;
}

.section-head h2 {
  margin-top: 0;
}

.editorial-prose h3 {
  font-family: var(--title);
  font-size: 22px;
  font-weight: 400;
  margin: 24px 0 8px;
}

.editorial-prose p,
.editorial-prose li {
  max-width: 70ch;
}

.modes-grid,
.related-guides-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.mode-card,
.related-guide-card {
  display: flex;
  flex-direction: column;
  background-color: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.2);
  color: var(--ink);
  transition: transform 0.15s ease;
}

.related-guide-card {
  padding: 18px;
  gap: 6px;
}

.mode-card:hover,
.related-guide-card:hover {
  transform: translateY(-3px);
}

.mode-card-media {
  aspect-ratio: 16 / 9;
  border-bottom: 3px solid var(--ink);
  overflow: hidden;
}

.mode-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mode-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.mode-tag {
  align-self: flex-start;
  font-family: var(--title);
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 10px;
  background-color: var(--yellow);
  border: 2px solid var(--ink);
  margin-bottom: 8px;
}

.mode-card-body h3 {
  font-family: var(--title);
  font-size: 22px;
  font-weight: 400;
  margin: 0 0 6px;
}

.mode-card-body p {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--soft);
  flex: 1;
}

.mode-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--title);
  font-size: 15px;
  color: var(--green-d);
}

.editorial-prose img {
  border-radius: var(--r);
  border: 3px solid var(--ink);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.18);
  margin: 16px 0;
}

.editorial-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 15px;
  background-color: var(--paper);
  border: 3px solid var(--ink);
}

.editorial-prose th,
.editorial-prose td {
  border: 2px solid var(--sand);
  padding: 10px 12px;
  text-align: left;
}

.editorial-prose th {
  background-color: var(--yellow);
  font-family: var(--title);
  font-weight: 400;
}

/* FAQ & Letters */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background-color: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.15);
}

.faq-item summary {
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
}

.faq-item p {
  margin: 10px 0 0;
  color: var(--soft);
}

.engage-section {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 3px solid var(--ink);
}

.comment-inputs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.comment-inputs input,
.comment-inputs textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 3px solid var(--ink);
  background-color: var(--white);
  font-family: var(--text);
  font-size: 16px;
  font-weight: 700;
}

.comment-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.comments-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comments-empty-hint {
  display: none;
  color: var(--soft);
}

.comments-list[data-gf-empty] .comments-empty-hint {
  display: block;
}

.comment-item {
  padding: 14px;
  border-radius: 14px;
  background-color: var(--paper);
  border: 2.5px solid var(--ink);
}

.owner-badge {
  background-color: var(--red);
  color: var(--white);
  font-family: var(--title);
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 8px;
}

.comment-reply-btn {
  min-height: 38px;
  padding: 4px 12px;
  border-radius: 10px;
  border: 2px solid var(--ink);
  background-color: var(--cream);
  font-family: var(--title);
  font-size: 12px;
  cursor: pointer;
}

/* Site Footer */
.site-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  background-color: var(--ink);
  color: var(--sand);
  padding: 20px max(20px, calc(50% - 38ch));
}

.foot-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.foot-brand strong {
  font-family: var(--title);
  font-size: 18px;
  color: var(--cream);
}

.site-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.site-foot a {
  color: var(--cream);
}

.site-foot a:hover {
  color: var(--yellow);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ================= RESPONSIVE: EDGE-TO-EDGE FULLSCREEN MOBILE GAME ================= */
@media (max-width: 980px) {
  .gta-choice-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .gta-desk-grid {
    grid-template-columns: 1fr;
  }

  .gta-aperture-frame {
    max-width: 520px;
    margin-inline: auto;
  }

  .gta-branch-tree {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .gta-matrix-scroll {
    overflow-x: visible;
  }

  .gta-matrix-table,
  .gta-matrix-table tbody {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .gta-matrix-table thead {
    display: none;
  }

  .gta-matrix-table tr {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding: 10px;
    margin-bottom: 10px;
    background-color: var(--cream);
    border: 2.5px solid var(--ink);
    border-radius: 14px;
  }

  .gta-td-name {
    grid-column: 1 / -1;
    border: 0;
    border-bottom: 2px dashed var(--sand);
    border-radius: 0;
    padding: 0 0 8px 0;
    background-color: transparent;
  }

  .gta-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 8px 10px;
  }

  .gta-cell::before {
    content: attr(data-label);
    font-family: var(--title);
    font-size: 12px;
    font-weight: 400;
    opacity: 0.82;
  }

  .gta-matrix-table tr td:last-child {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .editorial-prose table {
    display: table;
    width: 100%;
    table-layout: fixed;
    font-size: 12px;
  }

  .editorial-prose th,
  .editorial-prose td {
    padding: 8px;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

@media (max-width: 640px) {
  .arena {
    padding: 0;
    display: block;
  }

  .arena::before {
    display: none;
  }

  .gw {
    width: 100%;
    height: 100vh;
    height: 100svh;
    min-height: 580px;
    border-radius: 0;
    box-shadow: none;
  }

  .scroll-cue {
    display: none;
  }

  .hud {
    height: 52px;
    padding: 6px 8px;
    gap: 4px;
  }

  .avatar {
    gap: 5px;
  }

  .av-pic {
    width: 36px;
    height: 36px;
  }

  .av-rank-title {
    display: none;
  }

  .xpbar {
    width: 38px;
  }

  .res {
    gap: 4px;
  }

  .rpill {
    height: 30px;
    padding: 0 6px 0 5px;
    font-size: 12px;
  }

  .ibtn {
    width: 32px;
    height: 32px;
  }

  .screen {
    padding: 2px 8px 22px;
  }

  .logo-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    margin-bottom: 6px;
  }

  .logo h1 {
    font-size: 24px;
    text-align: center;
  }

  .bubble {
    max-width: none;
    font-size: 12px;
    line-height: 1.3;
    padding: 4px 10px;
  }

  .gta-shell {
    gap: 8px;
  }

  .gta-scope-card,
  .gta-deduce-card {
    padding: 8px;
  }

  .gta-scope-header {
    margin: -8px -8px 8px;
    padding: 6px 10px;
  }

  .gta-kicker {
    font-size: 14px;
  }

  .gta-tries-pill {
    font-size: 12px;
    padding: 2px 8px;
  }

  .gta-aperture-frame {
    max-width: none;
    margin-bottom: 6px;
  }

  .gta-photo-frame {
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: none;
  }

  .gta-aperture-frame:has(.gta-zoom-overlay-btn) .r-br {
    display: none;
  }

  .gta-zoom-overlay-btn {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: auto;
    margin-top: 0;
    min-height: 32px;
    padding: 4px 10px;
    font-size: 12px;
    border-width: 2px;
    border-radius: 10px;
    box-shadow: 0 2px 0 var(--ink);
  }

  .gta-audio-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    margin-bottom: 6px;
  }

  .gta-audio-row {
    margin-bottom: 0;
    flex: 0 0 auto;
  }

  .gta-audio-btn {
    width: auto;
    min-height: 36px;
    padding: 4px 10px;
    font-size: 13px;
    border-radius: 10px;
    box-shadow: 0 3px 0 var(--ink);
  }

  .gta-wave-canvas {
    flex: 1;
    min-width: 72px;
    height: 32px;
  }

  .gta-clues-box {
    padding: 6px 10px;
  }

  .gta-clues-head {
    font-size: 13px;
  }

  .gta-hint-btn {
    min-height: 28px;
    padding: 2px 8px;
    font-size: 12px;
  }

  .gta-deck-head {
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
  }

  .gta-deck-title {
    font-size: 13px;
    line-height: 1.2;
    flex: 1;
    min-width: 0;
  }

  .gta-search-toggle {
    flex-shrink: 0;
    min-height: 30px;
    padding: 2px 9px;
    font-size: 12px;
  }

  .gta-sound-disc-wrap {
    aspect-ratio: auto;
    padding: 10px;
  }

  .gta-sound-disc {
    flex-direction: row;
    text-align: left;
  }

  .gta-branch-tree {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .gta-branch-step {
    flex: 0 0 auto;
    width: 100%;
  }

  .gta-taxon-node {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
  }

  .gta-choice-grid,
  .gta-choice-grid.is-six {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .modes-grid,
  .related-guides-grid,
  .gta-q-chips,
  .gta-dex-grid {
    grid-template-columns: 1fr;
  }

  .reading-in {
    padding: 36px 14px 48px;
  }

  .lead {
    font-size: 30px;
  }

  .gta-result-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .gta-result-actions .gta-primary-btn,
  .gta-result-actions .gta-secondary-btn {
    width: 100%;
  }

  .tabs {
    gap: 3px;
    padding: 6px 6px;
  }

  .tabs .tab-link {
    font-size: 12px;
    border-radius: 10px;
  }

  .tabs .tab-link .stk-ic {
    width: 22px;
    height: 22px;
  }
}
