/* BubbleBlast Arcade shared site styles */

:root {
  color-scheme: dark;
  --site-bg: #101825;
  --site-bg-soft: #172233;
  --surface: #f8fbff;
  --surface-tint: #edf6ff;
  --ink: #102032;
  --ink-soft: #456078;
  --muted: #7d91a7;
  --line: rgba(119, 148, 181, 0.28);
  --line-strong: rgba(119, 148, 181, 0.46);
  --brand: #16b7d6;
  --brand-strong: #047f9f;
  --coral: #ff6b5f;
  --orange: #ffad31;
  --green: #29c78f;
  --violet: #7b6dff;
  --white: #ffffff;
  --radius: 8px;
  --shadow: 0 20px 60px rgba(8, 18, 32, 0.22);
  --shadow-soft: 0 12px 34px rgba(8, 18, 32, 0.16);
  --content: 1180px;
  --bg-primary: var(--site-bg);
  --bg-card: var(--surface);
  --bg-card-hover: var(--surface-tint);
  --accent-blue: var(--brand);
  --accent-orange: var(--orange);
  --accent-orange-hover: #ffc35e;
  --text-primary: var(--ink);
  --text-muted: var(--ink-soft);
  --border: var(--line);
  --radius-lg: var(--radius);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% 6%, rgba(22, 183, 214, 0.12), transparent 30rem),
    radial-gradient(circle at 92% 10%, rgba(255, 173, 49, 0.12), transparent 28rem),
    linear-gradient(180deg, #f4f8fd 0%, #eef5fc 46%, #f9fbff 100%);
  color: var(--ink);
  line-height: 1.6;
}

a {
  color: var(--brand-strong);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img,
canvas {
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(16, 24, 37, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.site-nav {
  width: min(var(--content), calc(100% - 32px));
  height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}

.site-logo::before {
  content: "";
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, #fff8c9 0 14%, transparent 15%),
    radial-gradient(circle at 38% 34%, #ffdf6f 0 22%, #ff8c3a 58%, #d84f49 100%);
  box-shadow: 18px 5px 0 -7px #16b7d6, 10px -9px 0 -9px #29c78f;
}

.site-logo span {
  color: var(--orange);
}

.site-logo:hover {
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.nav-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  cursor: pointer;
}

main {
  flex: 1;
}

.page-container {
  width: min(var(--content), calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.page-container.narrow {
  max-width: 920px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  display: grid;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.compact-hero {
  min-height: 520px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 24, 37, 0.98), rgba(16, 24, 37, 0.68) 54%, rgba(16, 24, 37, 0.4)),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 18px);
}

.hero-shell {
  position: relative;
  width: min(var(--content), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(320px, 0.82fr);
  gap: 44px;
  align-items: center;
  padding: 58px 0 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 680px;
  margin: 18px 0 18px;
  color: var(--white);
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p {
  max-width: 630px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 580px;
  margin-top: 34px;
}

.hero-stat,
.info-pill {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  padding: 12px;
}

.hero-stat strong,
.info-pill strong {
  display: block;
  color: var(--white);
  font-size: 18px;
  line-height: 1.2;
}

.hero-stat span,
.info-pill span {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-cabinet {
  position: relative;
  min-height: 470px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255,255,255,0.18), rgba(255,255,255,0.06));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.hero-cabinet::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 24% 24%, rgba(255,255,255,0.18), transparent 22%),
    linear-gradient(180deg, #14304d, #111722 76%, #0a0e15);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.08);
}

.bubble-board-preview {
  position: absolute;
  inset: 38px 34px 124px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 9px;
  align-content: start;
}

.bubble-dot {
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--bubble, #16b7d6);
  box-shadow:
    inset -8px -10px 16px rgba(0, 0, 0, 0.28),
    inset 7px 7px 12px rgba(255, 255, 255, 0.42),
    0 8px 16px rgba(0, 0, 0, 0.22);
}

.bubble-dot:nth-child(3n) { --bubble: #ffad31; }
.bubble-dot:nth-child(4n) { --bubble: #ff6b5f; }
.bubble-dot:nth-child(5n) { --bubble: #29c78f; }
.bubble-dot:nth-child(7n) { --bubble: #7b6dff; }

.bubble-cannon-preview {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 116px;
  height: 116px;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 30%, #ffffff 0 13%, transparent 14%),
    radial-gradient(circle at 50% 50%, #ffad31 0 46%, #d85b45 47% 100%);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.36);
}

.bubble-cannon-preview::before,
.bubble-cannon-preview::after {
  content: "";
  position: absolute;
  top: -112px;
  left: 54px;
  width: 8px;
  height: 122px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  transform-origin: bottom;
}

.bubble-cannon-preview::before {
  transform: rotate(-22deg);
}

.bubble-cannon-preview::after {
  transform: rotate(24deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary {
  background: var(--orange);
  color: #23170a;
  box-shadow: 0 14px 28px rgba(255, 173, 49, 0.28);
}

.btn-primary:hover {
  background: #ffc35e;
}

.btn-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-dark {
  color: var(--white);
  background: var(--ink);
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.08;
}

.section-header p {
  max-width: 560px;
  margin: 8px 0 0;
  color: var(--ink-soft);
}

.layout-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.72fr);
  gap: 28px;
  align-items: start;
}

.feature-panel,
.card,
.game-sidebar-card,
.prose .intro-box,
.faq-item,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.feature-panel {
  overflow: hidden;
}

.feature-visual {
  position: relative;
  min-height: 280px;
  background:
    linear-gradient(145deg, rgba(22, 183, 214, 0.22), rgba(255, 173, 49, 0.16)),
    #142133;
  overflow: hidden;
}

.feature-visual .bubble-board-preview {
  inset: 34px 44px 44px;
}

.game-cover-image {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.feature-content {
  padding: 26px;
}

.feature-content h3,
.card h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.18;
}

.feature-content p,
.card p {
  margin: 0 0 18px;
  color: var(--ink-soft);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--brand-strong);
  background: rgba(22, 183, 214, 0.12);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.badge-hot {
  color: #a84b18;
  background: rgba(255, 173, 49, 0.18);
}

.badge-new {
  color: #0d7d58;
  background: rgba(41, 199, 143, 0.14);
}

.badge-cat {
  color: var(--ink-soft);
  background: var(--surface-tint);
  border: 1px solid var(--line);
}

.meta-grid,
.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.meta-tile,
.quick-facts > div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-tint);
}

.meta-tile strong,
.quick-facts strong {
  display: block;
  color: var(--ink);
  font-size: 17px;
}

.meta-tile span,
.quick-facts span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cat-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.cat-chip:hover,
.cat-chip.active {
  color: var(--brand-strong);
  border-color: rgba(22, 183, 214, 0.48);
  background: rgba(22, 183, 214, 0.1);
  text-decoration: none;
}

.games-grid,
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.card-thumb {
  min-height: 180px;
  background:
    radial-gradient(circle at 28% 24%, rgba(255,255,255,0.22), transparent 24%),
    linear-gradient(145deg, #132741, #0f1723);
}

.card .bubble-board-preview {
  position: relative;
  inset: auto;
  padding: 28px;
  grid-template-columns: repeat(6, 1fr);
}

.card-body {
  padding: 18px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.stars {
  color: #db8700;
  letter-spacing: 1px;
  white-space: nowrap;
}

.story-band {
  margin-top: 44px;
  padding: 30px;
  border-radius: var(--radius);
  color: var(--white);
  background:
    radial-gradient(circle at 16% 28%, rgba(255, 173, 49, 0.18), transparent 25rem),
    linear-gradient(135deg, #12213a, #0e1624);
}

.story-band h2,
.story-band p {
  margin-top: 0;
}

.story-band p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.76);
}

.audit-friendly-section,
.game-library-notes {
  margin-top: 28px;
}

.breadcrumb {
  margin-bottom: 20px;
  color: #60758a;
  font-size: 13px;
  font-weight: 800;
}

.breadcrumb a {
  color: #355875;
}

.breadcrumb span {
  margin: 0 6px;
}

/* Game page */

.game-hero {
  --playfield-width: min(480px, calc(66.666svh - 116px), calc(100vw - 32px));
  min-height: calc(100svh - 70px);
  display: flex;
  align-items: stretch;
  padding: 10px 0 14px;
  color: var(--white);
  background:
    radial-gradient(circle at 16% 14%, rgba(22, 183, 214, 0.16), transparent 30rem),
    radial-gradient(circle at 84% 18%, rgba(255, 173, 49, 0.14), transparent 28rem),
    #101825;
}

.game-hero-inner {
  width: min(var(--content), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
}

.game-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 0;
  min-height: 46px;
}

.game-title-row h1 {
  margin: 4px 0 4px;
  color: var(--white);
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.02;
}

.game-title-row p {
  display: none;
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  line-height: 1.35;
}

.game-frame-shell {
  display: grid;
  grid-template-columns: minmax(280px, var(--playfield-width)) minmax(320px, 1fr);
  gap: 18px;
  align-items: start;
  min-height: 0;
}

.game-frame {
  position: relative;
  width: var(--playfield-width);
  max-width: 100%;
  aspect-ratio: 2 / 3;
  margin: 0 auto;
  border: 0;
  outline: 2px solid rgba(118, 78, 38, 0.82);
  border-radius: 18px;
  background: #251407;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48), inset 0 0 0 1px rgba(255, 207, 116, 0.18);
}

#gameCanvas {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 2 / 3;
  touch-action: none;
}

.game-hud {
  position: absolute;
  inset: 12px 12px auto;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
  opacity: 0;
}

.hud-pill {
  min-width: 82px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(7, 13, 22, 0.72);
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.game-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.game-control-btn {
  min-height: 36px;
  padding: 6px 7px;
  border: 1px solid rgba(11, 25, 42, 0.14);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #dfe7ef);
  color: #102033;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  text-shadow: none;
}

.game-control-btn:disabled {
  color: rgba(16, 32, 51, 0.38);
  cursor: not-allowed;
  background: #d7dee7;
}

.game-control-btn:hover:not(:disabled),
.game-control-btn.active {
  border-color: rgba(255, 173, 49, 0.9);
  background: linear-gradient(180deg, #ffe7a6, #ffad31);
  color: var(--white);
  text-shadow: 0 1px 2px rgba(79, 40, 0, 0.45);
  box-shadow: 0 0 12px rgba(255, 204, 79, 0.38);
}

.game-overlay {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(7, 13, 22, 0.78);
  text-align: center;
  z-index: 1000;
}

.game-overlay.is-visible {
  display: flex;
}

.overlay-card {
  display: flex;
  width: min(330px, 100%);
  min-height: 206px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(18, 33, 52, 0.94);
  color: var(--white);
  text-align: center;
}

.overlay-card h2 {
  width: 100%;
  margin: 0 0 14px;
  font-size: 28px;
  line-height: 1.15;
  text-align: center;
}

.overlay-card p {
  width: 100%;
  max-width: 280px;
  margin: 0 auto 20px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.75;
  text-align: center;
  white-space: pre-line;
}

.overlay-card #overlay-action {
  align-self: center;
  min-width: 96px;
  margin-inline: auto;
  text-align: center;
}

.game-overlay.has-pause-panel {
  background: rgba(18, 7, 4, 0.76);
}

.game-overlay.has-pause-panel .overlay-card {
  position: relative;
  width: min(310px, 92%);
  padding: 16px;
  border: 4px solid #7b5427;
  border-radius: 22px;
  background: linear-gradient(180deg, #a77a3f 0%, #8b5e31 100%);
  color: #fff9df;
  box-shadow:
    inset 0 2px 0 rgba(255, 241, 191, 0.42),
    inset 0 -4px 0 rgba(65, 35, 15, 0.35),
    0 28px 48px rgba(0, 0, 0, 0.38);
}

.game-overlay.has-pause-panel .overlay-card h2 {
  margin: -2px 38px 10px;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0;
  text-shadow:
    0 2px 0 #5a351a,
    0 0 8px rgba(255, 245, 203, 0.62);
}

.pause-panel {
  position: relative;
  display: grid;
  gap: 12px;
  width: 100%;
  padding: 20px 14px 14px;
  border: 3px solid rgba(255, 238, 185, 0.8);
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.34), transparent 9rem),
    linear-gradient(180deg, #f9d89b 0%, #efbc74 100%);
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.48),
    inset 0 -5px 0 rgba(134, 75, 29, 0.18);
}

.pause-close {
  position: absolute;
  top: -56px;
  right: -8px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 2px 0 #5b3517, 0 0 7px rgba(0, 0, 0, 0.35);
}

.pause-settings,
.pause-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pause-toggle {
  display: grid;
  min-height: 92px;
  place-items: center;
  justify-items: center;
  text-align: center;
  border: 0;
  background: transparent;
  color: #633710;
  cursor: pointer;
  font-weight: 900;
}

.pause-toggle strong,
.pause-toggle em {
  line-height: 1.1;
}

.pause-toggle strong {
  color: #fff;
  font-size: 18px;
  text-shadow: 0 2px 0 #754014, 0 0 6px rgba(80, 38, 8, 0.24);
}

.pause-toggle em {
  color: #805122;
  font-size: 11px;
  font-style: normal;
}

.pause-icon {
  position: relative;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 3px solid #925718;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffd51e, #f39b10);
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.52),
    inset 0 -4px 0 rgba(134, 61, 0, 0.28),
    0 5px 0 rgba(102, 53, 15, 0.22);
}

.pause-icon.sound::before {
  content: "";
  width: 22px;
  height: 24px;
  background: #fff8d1;
  clip-path: polygon(0 35%, 32% 35%, 68% 4%, 68% 96%, 32% 65%, 0 65%);
  filter: drop-shadow(0 2px 0 rgba(86, 45, 10, 0.34));
}

.pause-icon.sound::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-right: 5px solid #fff8d1;
  border-radius: 50%;
  transform: translateX(9px);
}

.pause-toggle.is-off .pause-icon.sound::after {
  width: 42px;
  height: 6px;
  inset: auto;
  border: 0;
  border-radius: 999px;
  background: #d62828;
  transform: rotate(-42deg);
}

.pause-icon.bgm {
  background: url("pause-bgm-icon.png") center / 88% auto no-repeat;
}

.pause-icon.bgm::before,
.pause-icon.bgm::after {
  display: none;
}

.pause-toggle.is-off .pause-icon {
  filter: grayscale(0.4) brightness(0.82);
}

.pause-primary,
.pause-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 3px solid rgba(96, 55, 7, 0.45);
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 2px 0 rgba(83, 38, 8, 0.45);
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.52),
    inset 0 -4px 0 rgba(69, 36, 0, 0.22),
    0 5px 0 rgba(95, 50, 12, 0.22);
}

.pause-primary {
  background: linear-gradient(180deg, #9bff24, #41d800);
}

.pause-secondary {
  background: linear-gradient(180deg, #ffd91f, #f2a000);
}

.pause-toggle:hover .pause-icon,
.pause-toggle:focus-visible .pause-icon,
.pause-primary:hover,
.pause-primary:focus-visible,
.pause-secondary:hover,
.pause-secondary:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

html.modal-scroll-locked,
body.modal-scroll-locked {
  overflow: hidden;
}

.game-overlay.has-system-panel {
  position: fixed;
  align-items: center;
  padding: 24px;
  overscroll-behavior: contain;
  background:
    radial-gradient(circle at 26% 18%, rgba(255, 173, 49, 0.18), transparent 28rem),
    rgba(5, 10, 18, 0.78);
  backdrop-filter: blur(6px);
}

.game-overlay.has-system-panel .overlay-card {
  position: relative;
  display: block;
  width: min(1080px, calc(100vw - 56px));
  max-height: min(720px, calc(100svh - 56px));
  overflow: auto;
  overscroll-behavior: contain;
  padding: 24px;
  text-align: left;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 191, 91, 0.22), transparent 17rem),
    linear-gradient(145deg, rgba(23, 36, 55, 0.98), rgba(8, 15, 26, 0.98));
  box-shadow: 0 30px 110px rgba(0, 0, 0, 0.56);
}

.game-overlay.has-tower-panel .overlay-card {
  width: min(960px, calc(100vw - 56px));
  max-height: none;
  overflow: hidden;
}

.game-overlay.has-system-panel .overlay-card h2 {
  margin-bottom: 12px;
}

.overlay-rich[hidden] {
  display: none !important;
}

.overlay-card [hidden] {
  display: none !important;
}

.system-panel {
  display: grid;
  gap: 14px;
}

.system-topbar {
  display: block;
  padding-right: 0;
}

.system-tabs {
  display: flex;
  gap: 10px;
  align-items: center;
}

.system-tab,
.system-close,
.system-buy {
  min-height: 36px;
  border: 1px solid rgba(255, 214, 128, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  cursor: pointer;
  font-weight: 900;
}

.system-tab {
  width: 180px;
}

.system-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 42px;
  height: 42px;
  min-height: 0;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  box-shadow: none;
}

.system-tab.active,
.system-buy {
  background: linear-gradient(180deg, #ffd56a, #ff9d1c);
  color: #211407;
  box-shadow: 0 8px 20px rgba(255, 157, 28, 0.24);
}

.system-close:hover,
.system-close:focus-visible {
  border-color: rgba(255, 214, 128, 0.75);
  background: linear-gradient(180deg, #ffd56a, #ff9d1c);
  color: #211407;
  outline: none;
  box-shadow: 0 10px 24px rgba(255, 157, 28, 0.28);
}

.system-wallet {
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 214, 128, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 213, 106, 0.16), rgba(255, 255, 255, 0.075));
}

.tower-panel .system-wallet {
  min-height: 42px;
  padding: 8px 12px;
}

.system-wallet span,
.system-wallet em {
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.system-wallet strong {
  color: #ffd56a;
  font-size: 22px;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.system-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 92px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.055));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  min-width: 0;
}

.shop-item {
  grid-template-columns: 58px minmax(0, 1fr);
  align-content: start;
  min-height: 210px;
}

.shop-item .system-buy {
  grid-column: 1 / -1;
  width: 100%;
}

.system-card h4 {
  margin: 0 0 4px;
  color: var(--white);
  font-size: 17px;
}

.system-card p,
.system-card span {
  display: block;
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  line-height: 1.4;
  word-break: normal;
  overflow-wrap: break-word;
}

.system-card span {
  margin-top: 8px;
  color: rgba(255, 223, 160, 0.78);
  font-weight: 900;
}

.system-icon,
.pet-token {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 900;
  box-shadow: inset -8px -10px 16px rgba(0, 0, 0, 0.25), inset 5px 5px 8px rgba(255, 255, 255, 0.35);
}

.system-icon.bomb { background: radial-gradient(circle at 35% 30%, #9ca3af, #222631 70%); }
.system-icon.rainbow { background: conic-gradient(#ff3b30, #ffd60a, #34c759, #00c7ff, #8e5cff, #ff3b30); }
.system-icon.laser,
.system-icon.shuffle {
  color: transparent;
  border-radius: 12px;
  box-shadow: none;
}

.system-icon.laser { background: url("powerup-laser.png") center / 70% auto no-repeat; }
.system-icon.shuffle { background: url("powerup-shuffle.png") center / 82% auto no-repeat; }

.pet-token {
  position: relative;
  background: radial-gradient(circle at 42% 28%, var(--pet-accent), var(--pet-body) 68%);
}

.pet-token[style*="--pet-image"] {
  overflow: hidden;
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.16), rgba(255, 213, 106, 0.1) 46%, rgba(9, 20, 35, 0.35));
}

.pet-token[style*="--pet-image"]::before {
  content: "";
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  background-image: var(--pet-image);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 88% auto;
  border-radius: inherit;
  clip-path: none;
  transform: none;
}

.pet-token[style*="--pet-image"]::after {
  display: none;
}

.pet-token::before,
.pet-token::after {
  content: "";
  position: absolute;
  top: -8px;
  width: 16px;
  height: 18px;
  background: var(--pet-body);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.pet-token::before { left: 7px; transform: rotate(-20deg); }
.pet-token::after { right: 7px; transform: rotate(20deg); }

.pet-token.spark_fox::before,
.pet-token.spark_fox::after {
  top: -14px;
  height: 24px;
}

.pet-token.spark_fox {
  box-shadow:
    18px 5px 0 -10px #ff7a24,
    inset -8px -10px 16px rgba(0, 0, 0, 0.25),
    inset 5px 5px 8px rgba(255, 255, 255, 0.35);
}

.pet-token.leaf_sprite {
  border-radius: 46% 46% 52% 52%;
  box-shadow:
    -17px 3px 0 -9px rgba(171, 255, 105, 0.8),
    17px 3px 0 -9px rgba(171, 255, 105, 0.8),
    inset -8px -10px 16px rgba(0, 0, 0, 0.25),
    inset 5px 5px 8px rgba(255, 255, 255, 0.35);
}

.pet-token.leaf_sprite::before,
.pet-token.leaf_sprite::after {
  top: -13px;
  height: 25px;
  border-radius: 100% 0 100% 0;
  clip-path: none;
  background: linear-gradient(135deg, #d8ff80, #35b86e);
}

.pet-token.aqua_penguin {
  border-radius: 48% 48% 44% 44%;
  box-shadow:
    -17px 11px 0 -10px #0b6f99,
    17px 11px 0 -10px #0b6f99,
    inset 0 -19px 0 -7px rgba(238, 255, 255, 0.9),
    inset -8px -10px 16px rgba(0, 0, 0, 0.25),
    inset 5px 5px 8px rgba(255, 255, 255, 0.35);
}

.pet-token.aqua_penguin::before,
.pet-token.aqua_penguin::after {
  top: 11px;
  width: 13px;
  height: 24px;
  border-radius: 50%;
  clip-path: none;
  background: #0b6f99;
}

.pet-token.aqua_penguin::before { left: -4px; transform: rotate(-28deg); }
.pet-token.aqua_penguin::after { right: -4px; transform: rotate(28deg); }

.pet-token.crystal_dragon::before,
.pet-token.crystal_dragon::after {
  top: -12px;
  background: #e7fcff;
}

.pet-token.crystal_dragon {
  border-radius: 42% 42% 50% 50%;
  box-shadow:
    -18px 10px 0 -9px rgba(159, 249, 255, 0.55),
    18px 10px 0 -9px rgba(159, 249, 255, 0.55),
    inset -8px -10px 16px rgba(0, 0, 0, 0.25),
    inset 5px 5px 8px rgba(255, 255, 255, 0.35);
}

.pet-token.thunder_cat {
  box-shadow:
    18px 3px 0 -10px #ffe56b,
    inset -8px -10px 16px rgba(0, 0, 0, 0.25),
    inset 5px 5px 8px rgba(255, 255, 255, 0.35);
}

.pet-token.thunder_cat::before,
.pet-token.thunder_cat::after {
  top: -12px;
  height: 24px;
  background: #46347e;
}

.pet-token.thunder_cat::before { left: 8px; transform: rotate(-16deg); }
.pet-token.thunder_cat::after { right: 8px; transform: rotate(16deg); }

.pet-token[style*="--pet-image"]::before {
  inset: 0;
  width: auto;
  height: auto;
  background-image: var(--pet-image);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 88% auto;
  border-radius: inherit;
  clip-path: none;
  transform: none;
}

.pet-token[style*="--pet-image"]::after {
  display: none;
}

.tower-panel .pet-token[style*="--pet-image"],
.pet-token[style*="--pet-image"] {
  overflow: hidden;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
}

.tower-panel .pet-token[style*="--pet-image"]::before,
.pet-token[style*="--pet-image"]::before {
  top: 0;
  left: 0;
  right: auto;
  bottom: auto;
  width: 100%;
  height: 100%;
  background-color: transparent;
  background-image: var(--pet-image);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  border-radius: inherit;
  clip-path: none;
  transform: none;
}

.tower-panel .pet-token[style*="--pet-image"]::after,
.pet-token[style*="--pet-image"]::after {
  content: none;
  display: none;
}

.pet-item {
  grid-template-columns: 1fr;
  align-items: start;
  min-height: 214px;
}

.pet-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pet-item .pet-token {
  width: 64px;
  height: 64px;
  margin-bottom: 2px;
}

.tower-panel .system-card {
  padding: 12px;
}

.tower-panel .pet-grid {
  gap: 12px;
}

.tower-panel .pet-item {
  min-height: 188px;
}

.tower-panel .system-card h4 {
  font-size: 15px;
}

.tower-panel .system-card p,
.tower-panel .system-card span {
  font-size: 11px;
  line-height: 1.32;
}

.tower-panel .system-actions {
  gap: 6px;
}

.tower-panel .system-buy {
  min-height: 32px;
  font-size: 12px;
}

.pet-item.is-selected {
  border-color: rgba(255, 213, 106, 0.75);
  box-shadow: inset 0 0 0 1px rgba(255, 213, 106, 0.26);
}

.system-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  align-self: end;
}

.system-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  padding: 0 10px;
  text-align: center;
}

.system-buy.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  box-shadow: none;
}

.system-buy.selected,
.system-buy:disabled {
  cursor: not-allowed;
  color: rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.game-side-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
  min-height: 0;
}

.game-side-panel .info-pill {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 66px;
  padding: 10px;
  border-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.055));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.mini-bubble,
.status-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 28%, #fff8c9 0 14%, transparent 15%),
    radial-gradient(circle at 38% 34%, #29c78f 0 24%, #16b7d6 58%, #047f9f 100%);
}

.status-icon {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow:
    inset -7px -9px 15px rgba(0, 0, 0, 0.24),
    inset 5px 5px 8px rgba(255, 255, 255, 0.38),
    0 9px 18px rgba(0, 0, 0, 0.2);
}

.status-icon::before,
.status-icon::after {
  content: "";
  position: absolute;
}

.status-coins {
  background:
    url("status-coins.png") center / 92% auto no-repeat,
    radial-gradient(circle at 45% 42%, #ffe178 0 56%, #b8670c 100%);
}

.status-best {
  border-radius: 8px;
  background: url("status-best.png?v=20260628-trophy-only") center / 88% auto no-repeat;
  box-shadow: none;
  overflow: visible;
}

.status-chain {
  border-radius: 8px;
  background: url("status-chain.png") center / 88% auto no-repeat;
  box-shadow: none;
  overflow: visible;
}

.status-coins::before,
.status-coins::after,
.status-best::before,
.status-best::after,
.status-chain::before,
.status-chain::after {
  display: none;
}

.status-progress {
  background:
    radial-gradient(circle at 34% 26%, #ffe0ff 0 13%, transparent 14%),
    conic-gradient(#ffe56b var(--progress-icon, 0%), #705cff 0 100%);
}

.status-progress::before {
  width: 24px;
  height: 24px;
  inset: auto;
  clip-path: polygon(50% 0, 62% 34%, 98% 35%, 69% 56%, 80% 92%, 50% 70%, 20% 92%, 31% 56%, 2% 35%, 38% 34%);
  background: #fff1a2;
}

.status-progress::after {
  inset: 7px;
  border: 2px solid rgba(255, 255, 255, 0.36);
  border-radius: 50%;
}

.game-side-panel .game-sidebar-card {
  margin-bottom: 0;
  padding: 14px;
  border-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.95), rgba(236, 243, 250, 0.92));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.game-side-panel .pet-card,
.game-side-panel .shop-card,
.game-side-panel .future-card,
.game-side-panel .tip-card {
  display: flex;
  min-height: 134px;
  flex-direction: column;
}

.game-side-panel .action-card {
  position: relative;
  overflow: hidden;
}

.game-side-panel .action-card::after {
  content: "";
  position: absolute;
  inset: auto 14px 12px auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  opacity: 0.18;
  background: radial-gradient(circle at 35% 28%, #fff, var(--brand) 62%, transparent 64%);
}

.game-side-panel .shop-card::after {
  background: radial-gradient(circle at 35% 28%, #fff, var(--orange) 62%, transparent 64%);
}

.game-side-panel .scene-card::after {
  background: radial-gradient(circle at 35% 28%, #fff, #32c9d6 62%, transparent 64%);
}

.game-side-panel .music-card::after {
  background: radial-gradient(circle at 35% 28%, #fff, #9b6dff 62%, transparent 64%);
}

.game-side-panel .future-card .panel-action:disabled {
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, #6f7c91, #4c586b);
  color: rgba(255, 255, 255, 0.74);
  box-shadow: none;
}

.game-side-panel .tip-card {
  grid-column: 1 / -1;
  min-height: 178px;
}

.game-side-panel .game-sidebar-card h3 {
  margin-bottom: 8px;
  color: #102033;
}

.game-side-panel .game-tip-text {
  font-size: 13px;
  line-height: 1.45;
}

.game-side-panel .rule-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.game-side-panel .rule-list li {
  position: relative;
  min-height: 38px;
  padding: 8px 10px 8px 25px;
  border: 1px solid rgba(14, 28, 45, 0.08);
  border-radius: 8px;
  background: rgba(16, 32, 51, 0.045);
  color: #31415a;
  font-size: 12px;
  line-height: 1.35;
}

.game-side-panel .rule-list li::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f4a62a;
  box-shadow: 0 0 0 3px rgba(244, 166, 42, 0.16);
}

.game-side-panel .panel-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 34px;
  margin-top: auto;
  text-align: center;
}

.game-info-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
  align-items: start;
}

.game-description h1 {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1.12;
}

.game-description .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 20px;
}

.game-description .meta span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 900;
}

.game-description p {
  color: var(--ink-soft);
}

.game-description h2 {
  margin: 34px 0 12px;
  color: var(--ink);
  font-size: 24px;
}

.gameplay-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: guide-step;
}

.gameplay-steps li {
  counter-increment: guide-step;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.gameplay-steps li::before {
  content: counter(guide-step);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--brand);
  font-weight: 900;
}

.gameplay-steps strong {
  display: block;
  color: var(--ink);
}

.gameplay-steps span {
  color: var(--ink-soft);
  font-size: 14px;
}

.powerup-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.powerup-table th,
.powerup-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.powerup-table th {
  color: var(--ink);
  background: var(--surface-tint);
  font-size: 12px;
  text-transform: uppercase;
}

.powerup-table td {
  color: var(--ink-soft);
  font-size: 14px;
}

.game-sidebar-card {
  padding: 18px;
  margin-bottom: 16px;
}

.game-sidebar-card h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 14px;
  text-transform: uppercase;
}

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
}

.info-row:last-child {
  border-bottom: 0;
}

.info-row span:last-child {
  color: var(--ink);
  font-weight: 900;
  text-align: right;
}

.tips-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tips-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 14px;
}

.tips-list li:last-child {
  border-bottom: 0;
}

.content-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.content-list li {
  padding: 12px 16px;
}

.static-faq .faq-question {
  cursor: default;
  pointer-events: none;
}

.static-faq .faq-answer {
  max-height: none;
  padding: 0 18px 16px;
}

.game-tip-text {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.game-tip-text + .game-tip-text {
  margin-top: 8px;
}

.panel-action {
  width: 100%;
  margin-top: 12px;
  min-height: 38px;
}

/* Long-form pages */

.prose {
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid rgba(119, 148, 181, 0.28);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98)),
    var(--surface);
  box-shadow: 0 22px 70px rgba(8, 18, 32, 0.12);
}

.prose h1 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
}

.prose h2 {
  margin: 36px 0 12px;
  padding-top: 22px;
  border-top: 1px solid rgba(119, 148, 181, 0.2);
  color: var(--ink);
  font-size: clamp(21px, 2.3vw, 27px);
}

.prose h2:first-of-type {
  margin-top: 26px;
}

.prose h3 {
  margin: 22px 0 8px;
  color: var(--ink);
  font-size: 18px;
}

.prose p,
.prose li {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.78;
}

.prose p {
  margin: 0 0 14px;
}

.prose ul,
.prose ol {
  margin: 0 0 18px;
  padding-left: 26px;
}

.prose li + li {
  margin-top: 8px;
}

.prose strong {
  color: var(--ink);
}

.prose .last-updated {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.prose .intro-box {
  margin: 26px 0 28px;
  padding: 20px 22px;
  border: 1px solid rgba(22, 183, 214, 0.24);
  border-left: 5px solid var(--brand);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(22, 183, 214, 0.09), rgba(255, 173, 49, 0.08));
}

.prose .intro-box p:last-child {
  margin-bottom: 0;
}

.faq-item {
  margin-bottom: 12px;
  border: 1px solid rgba(119, 148, 181, 0.24);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 32px rgba(8, 18, 32, 0.06);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  text-align: left;
}

.faq-question .arrow {
  flex: 0 0 auto;
  color: var(--brand-strong);
  transition: transform 0.2s ease;
}

.faq-question[aria-expanded="true"] .arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 18px;
  transition: max-height 0.25s ease, padding 0.25s ease;
}

.faq-answer.open {
  max-height: 520px;
  padding: 0 18px 16px;
}

.faq-answer p {
  margin: 0;
  color: var(--ink-soft);
}

.faq-hero,
.contact-intro,
.error-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid rgba(119, 148, 181, 0.26);
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 10%, rgba(255, 173, 49, 0.14), transparent 15rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(241, 248, 255, 0.96));
  box-shadow: 0 20px 60px rgba(8, 18, 32, 0.1);
}

.faq-hero h1,
.contact-intro h1 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: clamp(31px, 4.2vw, 48px);
  line-height: 1.05;
}

.faq-hero p,
.contact-intro p {
  max-width: 720px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.7;
}

.faq-section-title {
  margin: 30px 0 14px;
  color: #60758a;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.faq-cta {
  margin-top: 34px;
  padding: 24px;
  border: 1px solid rgba(119, 148, 181, 0.24);
  border-radius: 16px;
  background: #fff;
  text-align: center;
  box-shadow: 0 16px 42px rgba(8, 18, 32, 0.08);
}

.faq-cta p {
  margin: 0 0 14px;
  color: var(--ink-soft);
}

.contact-page {
  max-width: 1080px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 24px;
  align-items: start;
}

.contact-panel,
.contact-card {
  border: 1px solid rgba(119, 148, 181, 0.26);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 54px rgba(8, 18, 32, 0.1);
}

.contact-panel {
  padding: clamp(22px, 3vw, 32px);
}

.contact-sidebar {
  display: grid;
  gap: 16px;
}

.contact-card {
  padding: 22px;
}

.contact-card h3 {
  margin: 0 0 14px;
  color: #60758a;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-card p {
  margin: 0 0 10px;
  color: var(--ink-soft);
}

.contact-card strong {
  color: var(--ink);
}

.quick-links {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.quick-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(119, 148, 181, 0.2);
  border-radius: 10px;
  background: rgba(244, 248, 253, 0.86);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.quick-links a:hover {
  border-color: rgba(22, 183, 214, 0.38);
  background: rgba(22, 183, 214, 0.08);
}

.contact-form {
  display: grid;
  gap: 14px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}

.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: 3px solid rgba(22, 183, 214, 0.2);
  border-color: var(--brand);
}

.form-success {
  display: none;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(41, 199, 143, 0.42);
  border-radius: var(--radius);
  color: #0d7d58;
  background: rgba(41, 199, 143, 0.12);
  font-weight: 800;
}

.error-page {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 16px;
}

.error-card {
  width: min(680px, 100%);
  margin: 0;
}

.error-page .error-code {
  color: var(--brand-strong);
  font-size: clamp(82px, 16vw, 156px);
  font-weight: 900;
  line-height: 0.9;
}

.error-page h1 {
  margin: 12px 0 10px;
  font-size: 32px;
}

.error-page p {
  max-width: 520px;
  margin: 0 auto 24px;
  color: var(--ink-soft);
}

.error-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.site-footer {
  padding: 44px 0 24px;
  color: rgba(255, 255, 255, 0.74);
  background: #0d1421;
}

.footer-inner {
  width: min(var(--content), calc(100% - 32px));
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 2fr) repeat(3, minmax(120px, 1fr));
  gap: 28px;
  margin-bottom: 28px;
}

.footer-brand p {
  max-width: 360px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.footer-col h4 {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  text-transform: uppercase;
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.footer-col a:hover {
  color: var(--white);
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
}

@media (max-width: 940px) {
  .hero-shell,
  .layout-split,
  .game-frame-shell,
  .game-info-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-cabinet {
    min-height: 390px;
  }

  .game-title-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .game-title-row .btn {
    justify-self: start;
  }

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

  .games-grid,
  .review-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .game-hero {
    --playfield-width: min(480px, calc(66.666svh - 76px), calc(100vw - 24px));
    min-height: auto;
    padding: 8px 0 16px;
  }

  .site-nav {
    width: calc(100% - 24px);
    height: 64px;
  }

  .site-logo {
    font-size: 17px;
  }

  .nav-menu-btn {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    display: none;
  }

  .nav-links.open {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    display: grid;
    gap: 6px;
    padding: 12px;
    background: rgba(16, 24, 37, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .page-container {
    width: calc(100% - 24px);
    padding: 34px 0;
  }

  .hero-shell,
  .game-hero-inner {
    width: calc(100% - 24px);
  }

  .hero-shell {
    padding: 42px 0 50px;
  }

  .game-title-row {
    min-height: 0;
  }

  .game-title-row h1 {
    font-size: 24px;
  }

  .game-title-row p {
    display: none;
  }

  .hero-stats,
  .meta-grid,
  .quick-facts {
    grid-template-columns: 1fr;
  }

  .section-header {
    display: block;
  }

  .prose,
  .faq-hero,
  .contact-intro,
  .contact-panel,
  .contact-card,
  .error-card {
    border-radius: 14px;
  }

  .contact-layout {
    gap: 16px;
  }

  .game-frame {
    width: var(--playfield-width);
    border-radius: 12px;
  }

  .game-side-panel {
    grid-template-columns: 1fr;
  }

  .game-side-panel .pet-card,
  .game-side-panel .shop-card,
  .game-side-panel .future-card,
  .game-side-panel .tip-card {
    grid-column: auto;
  }

  .game-controls {
    grid-template-columns: repeat(2, 1fr);
    bottom: 6px;
  }

  .system-tabs,
  .system-grid,
  .system-card,
  .pet-item {
    grid-template-columns: 1fr;
  }

  .system-card {
    justify-items: start;
  }

  .system-actions {
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }

  .game-overlay.has-system-panel {
    padding: 12px;
  }

  .game-overlay.has-system-panel .overlay-card {
    padding: 14px;
  }

  .game-overlay.has-tower-panel .overlay-card {
    max-height: calc(100svh - 24px);
    overflow: auto;
  }

  .game-overlay.has-system-panel .overlay-card h2 {
    font-size: 26px;
  }

  .system-card {
    min-height: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
