.game-page {
  --game-bg: #0b0d0c;
  --game-gold: #e8ca81;
  --game-gold-light: #ede9dd;
  --game-gold-dark: #C79A2F;
  --game-green: #45ff8a;
  --game-yellow: #FBD95E;
  --game-red: #ff4d4d;
  --game-text: rgba(255,255,255,.76);
  --game-muted: rgba(255,255,255,.52);
  --game-border: rgba(255,255,255,.13);
  --target-color: #FBD95E;
  --player-color: #FBD95E;
}

.game-page * {
  box-sizing: border-box;
}

.game-page {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  background: #000;
  color: #fff;
  font-family: 'Manrope', sans-serif;
  overflow-x: hidden;
}

.game-page {
  min-height: 100vh;
}

.game-page .wave-game-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: clamp(70px, 7vw, 95px) clamp(12px, 4vw, 60px) clamp(24px, 5vw, 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(251,217,94,.14), transparent 34%),
    radial-gradient(circle at 80% 82%, rgba(251,217,94,.08), transparent 36%),
    linear-gradient(180deg, #050505 0%, #080808 100%);
}

.game-page .wave-game-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(circle at center, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at center, black 0%, transparent 75%);
  opacity: .42;
}

.game-page .wave-game-section::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: rgba(0,0,0,.18);
}

.game-page .game-main-menu-link {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 17px;
  border-radius: 999px;
  color: var(--game-gold);
  background: rgba(0,0,0,.62);
  border: 1px solid rgba(251,217,94,.28);
  box-shadow: 0 10px 28px rgba(0,0,0,.38);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-decoration: none;
  font-family: 'Unbounded', sans-serif;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}

.game-page .game-main-menu-link:hover {
  transform: translateY(-2px);
  background: rgba(0,0,0,.78);
  box-shadow: 0 0 24px rgba(251,217,94,.18);
}

.game-page .wave-game {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1180px;
  min-height: 680px;
  border-radius: clamp(24px, 3vw, 40px);
  padding: clamp(18px, 3vw, 34px);
  background:
    linear-gradient(180deg, rgba(255,255,255,.085), rgba(255,255,255,.035));
  border: 1px solid var(--game-border);
  box-shadow:
    0 34px 100px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
}

.game-page .wave-game::before {
  content: "";
  position: absolute;
  left: -120px;
  top: -120px;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(251,217,94,.22), transparent 68%);
  pointer-events: none;
}

.game-page .wave-game::after {
  content: "";
  position: absolute;
  right: -140px;
  bottom: -140px;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(251,217,94,.12), transparent 68%);
  pointer-events: none;
}

.game-page .game-screen {
  position: relative;
  z-index: 4;
  display: none;
  width: 100%;
  min-height: 620px;
}

.game-page .game-screen.active {
  display: flex;
}

.game-page .game-menu {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.game-page .game-menu-inner {
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
}

.game-page .game-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 15px;
  margin: 0 0 22px;
  border-radius: 999px;
  background: rgba(251,217,94,.08);
  border: 1px solid rgba(251,217,94,.2);
  color: rgba(251,217,94,.94);
  font-family: 'Unbounded', sans-serif;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.game-page .game-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--game-gold);
  box-shadow: 0 0 18px rgba(251,217,94,.9);
}

.game-page .game-title {
  margin: 0 0 20px;
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(30px, 5.1vw, 64px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -.05em;
  background: linear-gradient(180deg, var(--game-gold-light) 0%, var(--game-gold) 55%, var(--game-gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.game-page .game-title span {
  display: block;
  margin-top: 12px;
  font-size: .45em;
  line-height: 1.18;
  letter-spacing: -.03em;
  color: rgba(255,255,255,.86);
  background: none;
  -webkit-text-fill-color: rgba(255,255,255,.86);
  text-shadow: 0 0 24px rgba(251,217,94,.22);
}

.game-page .game-description {
  max-width: 740px;
  margin: 0 auto 34px;
  color: var(--game-text);
  font-family: 'Manrope', sans-serif;
  font-size: clamp(15px, 1.5vw, 20px);
  line-height: 1.7;
  font-weight: 600;
}

.game-page .game-rules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0 0 34px;
}

.game-page .game-rule {
  min-height: 110px;
  padding: 18px 14px;
  border-radius: 22px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.game-page .game-rule-number {
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: rgba(251,217,94,.12);
  border: 1px solid rgba(251,217,94,.25);
  color: var(--game-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Unbounded', sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.game-page .game-rule-text {
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 700;
}

.game-page .game-start-btn,
.game-page .game-check-btn,
.game-page .game-restart-btn {
  appearance: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: 'Unbounded', sans-serif;
  font-weight: 800;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease, opacity .25s ease;
}

.game-page .game-start-btn {
  width: min(100%, 440px);
  min-height: 72px;
  padding: 20px 28px;
  border-radius: 22px;
  color: #000;
  font-size: clamp(14px, 2vw, 18px);
  background: linear-gradient(180deg, #FFF0A8 0%, #FBD95E 100%);
  border: 1px solid rgba(255,232,143,.58);
  box-shadow:
    0 0 34px rgba(251,217,94,.34),
    0 20px 40px rgba(0,0,0,.25);
}

.game-page .game-start-btn:hover,
.game-page .game-check-btn:hover,
.game-page .game-restart-btn:hover,
.game-page .coupon-call-btn:hover {
  transform: translateY(-3px);
}

.game-page .game-play {
  flex-direction: column;
}

.game-page .game-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.game-page .game-level-info {
  min-width: 0;
}

.game-page .game-level {
  margin: 0 0 6px;
  color: var(--game-gold);
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(18px, 2.4vw, 30px);
  line-height: 1.15;
  font-weight: 800;
}

.game-page .game-subtitle {
  margin: 0;
  color: var(--game-muted);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
}

.game-page .game-score-box {
  flex: 0 0 auto;
  min-width: 152px;
  padding: 13px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.12);
  text-align: center;
}

.game-page .game-score-label {
  margin: 0 0 4px;
  color: var(--game-muted);
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.game-page .game-score {
  margin: 0;
  color: #fff;
  font-family: 'Unbounded', sans-serif;
  font-size: 26px;
  line-height: 1;
  font-weight: 800;
}

.game-page .game-score.score-red {
  color: #ff7a7a;
  text-shadow: 0 0 16px rgba(255,77,77,.35);
}

.game-page .game-score.score-yellow {
  color: var(--game-yellow);
  text-shadow: 0 0 18px rgba(251,217,94,.45);
}

.game-page .game-score.score-green {
  color: var(--game-green);
  text-shadow: 0 0 18px rgba(69,255,138,.45);
}

.game-page .game-interface {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 370px;
  gap: 20px;
  flex: 1;
}

.game-page .game-canvas-wrap {
  position: relative;
  min-height: 430px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 50%, rgba(251,217,94,.07), transparent 56%),
    linear-gradient(180deg, rgba(0,0,0,.28), rgba(0,0,0,.14));
  border: 1px solid rgba(255,255,255,.11);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.game-page .game-canvas-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: .42;
}

.game-page #waveCanvas {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
}

.game-page .game-legend {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 4;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.game-page .legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.72);
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
}

.game-page .legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.game-page .legend-dot.target {
  background: var(--target-color);
  box-shadow: 0 0 12px var(--target-color);
}

.game-page .legend-dot.player {
  background: var(--player-color);
  box-shadow: 0 0 12px var(--player-color);
}

.game-page .ready-lights {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.game-page .ready-light {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255,77,77,.35);
  border: 1px solid rgba(255,77,77,.28);
  box-shadow: 0 0 10px rgba(255,77,77,.15);
  animation: wave-redBlink 1.05s infinite alternate;
}

.game-page .ready-light.left-1 { left: 14px; top: 22%; }

.game-page .ready-light.left-2 { left: 14px; top: 39%; }

.game-page .ready-light.left-3 { left: 14px; top: 56%; }

.game-page .ready-light.left-4 { left: 14px; top: 73%; }

.game-page .ready-light.right-1 { right: 14px; top: 22%; }

.game-page .ready-light.right-2 { right: 14px; top: 39%; }

.game-page .ready-light.right-3 { right: 14px; top: 56%; }

.game-page .ready-light.right-4 { right: 14px; top: 73%; }

.game-page .ready-light:nth-child(2),
.game-page .ready-light:nth-child(6) {
  animation-delay: .12s;
}

.game-page .ready-light:nth-child(3),
.game-page .ready-light:nth-child(7) {
  animation-delay: .24s;
}

.game-page .ready-light:nth-child(4),
.game-page .ready-light:nth-child(8) {
  animation-delay: .36s;
}

.game-page .wave-game.lamps-red .ready-light {
  background: rgba(255,77,77,.38);
  border-color: rgba(255,77,77,.35);
  animation-name: wave-redBlink;
}

.game-page .wave-game.lamps-yellow .ready-light {
  background: rgba(251,217,94,.72);
  border-color: rgba(251,217,94,.6);
  animation-name: wave-yellowBlink;
}

.game-page .wave-game.lamps-green .ready-light {
  background: rgba(69,255,138,.9);
  border-color: rgba(69,255,138,.75);
  animation-name: wave-greenBlink;
}

@keyframes wave-redBlink {
  0% {
    opacity: .28;
    box-shadow: 0 0 6px rgba(255,77,77,.12);
    transform: scale(.92);
  }

  100% {
    opacity: .58;
    box-shadow:
      0 0 13px rgba(255,77,77,.32),
      0 0 22px rgba(255,77,77,.14);
    transform: scale(1.04);
  }
}

@keyframes wave-yellowBlink {
  0% {
    opacity: .42;
    box-shadow: 0 0 8px rgba(251,217,94,.22);
    transform: scale(.96);
  }

  100% {
    opacity: .95;
    box-shadow:
      0 0 18px rgba(251,217,94,.75),
      0 0 34px rgba(251,217,94,.28);
    transform: scale(1.12);
  }
}

@keyframes wave-greenBlink {
  0% {
    opacity: .46;
    box-shadow: 0 0 8px rgba(69,255,138,.25);
    transform: scale(.96);
  }

  100% {
    opacity: 1;
    box-shadow:
      0 0 18px rgba(69,255,138,.95),
      0 0 34px rgba(69,255,138,.45);
    transform: scale(1.18);
  }
}

.game-page .game-controls {
  border-radius: 28px;
  padding: 20px;
  background: rgba(255,255,255,.052);
  border: 1px solid rgba(255,255,255,.11);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.game-page .mobile-controls-head {
  display: block;
}

.game-page .controls-title {
  margin: 0 0 16px;
  color: #fff;
  font-family: 'Unbounded', sans-serif;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 800;
}

.game-page .color-match-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 18px;
}

.game-page .color-card {
  min-height: 88px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.1);
}

.game-page .color-card-label {
  margin: 0 0 9px;
  color: rgba(255,255,255,.62);
  font-size: 10px;
  line-height: 1.2;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.game-page .color-card-swatch {
  width: 100%;
  height: 42px;
  border-radius: 13px;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    0 0 16px rgba(255,255,255,.08);
}

.game-page .color-card-target .color-card-swatch {
  background: var(--target-color);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    0 0 20px var(--target-color);
}

.game-page .color-card-player .color-card-swatch {
  background: var(--player-color);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    0 0 20px var(--player-color);
}

.game-page .color-help-text {
  grid-column: 1 / -1;
  margin: -2px 0 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(251,217,94,.065);
  border: 1px solid rgba(251,217,94,.14);
  color: rgba(255,255,255,.72);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 700;
}

.game-page .color-help-text strong {
  color: var(--game-gold);
}

.game-page .control-group {
  margin-bottom: 18px;
}

.game-page .control-group:last-of-type {
  margin-bottom: 22px;
}

.game-page .control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.game-page .control-label {
  color: rgba(255,255,255,.78);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
}

.game-page .control-value {
  color: var(--game-gold);
  font-family: 'Unbounded', sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.game-page .game-range {
  width: 100%;
  height: 8px;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 999px;
  outline: none;
  background: linear-gradient(90deg, rgba(251,217,94,.85), rgba(255,255,255,.12));
  cursor: pointer;
}

.game-page .game-range::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, #FFF0A8, #FBD95E);
  border: 2px solid rgba(0,0,0,.25);
  box-shadow:
    0 0 18px rgba(251,217,94,.55),
    0 8px 14px rgba(0,0,0,.35);
}

.game-page .game-range::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, #FFF0A8, #FBD95E);
  border: 2px solid rgba(0,0,0,.25);
  box-shadow:
    0 0 18px rgba(251,217,94,.55),
    0 8px 14px rgba(0,0,0,.35);
}

.game-page .color-preview {
  width: 100%;
  height: 38px;
  margin-top: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}

.game-page .game-message {
  min-height: 44px;
  margin: 0 0 16px;
  padding: 12px 13px;
  border-radius: 16px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.09);
  color: rgba(255,255,255,.72);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
}

.game-page .game-message.good {
  color: var(--game-green);
  border-color: rgba(69,255,138,.35);
  background: rgba(69,255,138,.07);
}

.game-page .game-message.medium {
  color: var(--game-yellow);
  border-color: rgba(251,217,94,.35);
  background: rgba(251,217,94,.07);
}

.game-page .game-message.bad {
  color: #ffd0d0;
  border-color: rgba(255,77,77,.32);
  background: rgba(255,77,77,.06);
}

.game-page .game-check-btn {
  width: 100%;
  min-height: 58px;
  padding: 15px 18px;
  border-radius: 18px;
  color: #000;
  font-size: 13px;
  background: linear-gradient(180deg, #FFF0A8 0%, #FBD95E 100%);
  border: 1px solid rgba(255,232,143,.58);
  box-shadow: 0 0 24px rgba(251,217,94,.28);
}

.game-page .game-mini-hint {
  margin: 14px 0 0;
  color: rgba(255,255,255,.45);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 600;
}

.game-page .game-finish {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.game-page .coupon-card {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 44px);
  border-radius: clamp(26px, 3vw, 40px);
  background:
    radial-gradient(circle at 50% 0%, rgba(251,217,94,.16), transparent 45%),
    linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.032));
  border: 1px solid rgba(251,217,94,.22);
  box-shadow:
    0 0 60px rgba(251,217,94,.13),
    inset 0 1px 0 rgba(255,255,255,.12);
}

.game-page .coupon-title {
  margin: 0 0 14px;
  color: var(--game-gold);
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -.04em;
}

.game-page .coupon-text {
  max-width: 620px;
  margin: 0 auto 24px;
  color: var(--game-text);
  font-size: clamp(15px, 1.6vw, 20px);
  line-height: 1.65;
  font-weight: 600;
}

.game-page .coupon-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 540px);
  min-height: 86px;
  padding: 18px 20px;
  margin: 0 auto 22px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(251,217,94,.16), rgba(251,217,94,.06));
  border: 1px dashed rgba(251,217,94,.58);
  color: #fff;
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(24px, 5vw, 42px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: .03em;
  text-shadow: 0 0 22px rgba(251,217,94,.2);
}

.game-page .coupon-note {
  max-width: 640px;
  margin: 0 auto 28px;
  color: rgba(255,255,255,.82);
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.6;
  font-weight: 800;
}

.game-page .coupon-note strong {
  color: var(--game-gold);
}

.game-page .coupon-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.game-page .game-restart-btn,
.game-page .coupon-call-btn,
.game-page .coupon-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  min-height: 58px;
  padding: 15px 20px;
  border-radius: 18px;
  text-decoration: none;
  font-family: 'Unbounded', sans-serif;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  border: 1px solid rgba(251,217,94,.25);
  transition: transform .25s ease, box-shadow .25s ease, opacity .25s ease;
}

.game-page .game-restart-btn,
.game-page .coupon-menu-btn {
  color: var(--game-gold);
  background:
    linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
}

.game-page .coupon-call-btn {
  color: #000;
  background: linear-gradient(180deg, #FFF0A8 0%, #FBD95E 100%);
  box-shadow: 0 0 24px rgba(251,217,94,.28);
}

.game-page .coupon-menu-btn:hover {
  transform: translateY(-3px);
}

@media (max-width: 980px) {
.game-page .wave-game {
    min-height: auto;
  }

.game-page .game-screen {
    min-height: auto;
  }

.game-page .game-rules {
    grid-template-columns: 1fr;
  }

.game-page .game-interface {
    grid-template-columns: 1fr;
  }

.game-page .game-canvas-wrap {
    min-height: 360px;
  }

.game-page .game-controls {
    padding: 18px;
  }
}

@media (max-width: 640px) {
.game-page .game-main-menu-link {
    top: calc(12px + env(safe-area-inset-top));
    left: 50%;
    transform: translateX(-50%);
    min-height: 38px;
    padding: 9px 14px;
    font-size: 10px;
    background: rgba(0,0,0,.72);
  }

.game-page .game-main-menu-link:hover {
    transform: translateX(-50%);
  }

.game-page .wave-game-section {
    min-height: 100svh;
    padding:
      calc(64px + env(safe-area-inset-top))
      10px
      10px;
    align-items: flex-start;
  }

.game-page .wave-game {
    width: min(100%, 420px);
    min-height: calc(100svh - 84px - env(safe-area-inset-top));
    margin: 0 auto;
    border-radius: 20px;
    padding: 10px;
  }

.game-page .wave-game::before,
.game-page .wave-game::after {
    opacity: .45;
  }

.game-page .game-screen {
    min-height: auto;
  }

.game-page .game-menu,
.game-page .game-finish {
    min-height: calc(100svh - 104px);
  }

.game-page .game-badge {
    font-size: 9px;
    margin-bottom: 12px;
    padding: 8px 12px;
  }

.game-page .game-title {
    margin-bottom: 14px;
    font-size: clamp(27px, 8.4vw, 39px);
    line-height: 1.08;
  }

.game-page .game-title span {
    margin-top: 9px;
    font-size: .46em;
  }

.game-page .game-description {
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.55;
  }

.game-page .game-rules {
    gap: 8px;
    margin-bottom: 20px;
  }

.game-page .game-rule {
    min-height: 64px;
    padding: 10px 12px;
    border-radius: 16px;
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    gap: 10px;
  }

.game-page .game-rule-number {
    width: 28px;
    height: 28px;
    margin-bottom: 0;
    font-size: 11px;
    flex: 0 0 auto;
  }

.game-page .game-rule-text {
    font-size: 12px;
  }

.game-page .game-start-btn {
    min-height: 56px;
    border-radius: 16px;
    font-size: 13px;
  }

.game-page .game-play {
    display: none;
  }

.game-page .game-play.active {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

.game-page .game-top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
  }

.game-page .game-level {
    margin-bottom: 0;
    font-size: 15px;
    line-height: 1.15;
  }

.game-page .game-subtitle {
    display: none;
  }

.game-page .game-score-box {
    width: auto;
    min-width: 0;
    padding: 0;
    border: none;
    background: transparent;
    text-align: right;
  }

.game-page .game-score-label {
    display: none;
  }

.game-page .game-score {
    font-size: 16px;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(0,0,0,.3);
    border: 1px solid rgba(255,255,255,.12);
  }

.game-page .game-interface {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 0 0 auto;
  }

.game-page .game-canvas-wrap {
    min-height: 190px;
    height: 190px;
    border-radius: 18px;
  }

.game-page .game-canvas-wrap::before {
    background-size: 26px 26px;
  }

.game-page .ready-light {
    width: 10px;
    height: 10px;
  }

.game-page .ready-light.left-1,
.game-page .ready-light.left-2,
.game-page .ready-light.left-3,
.game-page .ready-light.left-4 {
    left: 6px;
  }

.game-page .ready-light.right-1,
.game-page .ready-light.right-2,
.game-page .ready-light.right-3,
.game-page .ready-light.right-4 {
    right: 6px;
  }

.game-page .game-legend {
    left: 8px;
    right: 8px;
    bottom: 8px;
    gap: 6px;
  }

.game-page .legend-item {
    padding: 5px 7px;
    font-size: 9px;
  }

.game-page .legend-dot {
    width: 7px;
    height: 7px;
  }

.game-page .game-controls {
    padding: 10px;
    border-radius: 18px;
  }

.game-page .mobile-controls-head {
    display: grid;
    grid-template-columns: .85fr 1fr;
    gap: 8px;
    align-items: stretch;
    margin-bottom: 8px;
  }

.game-page .controls-title {
    margin: 0;
    min-height: 54px;
    padding: 10px 10px;
    border-radius: 14px;
    background: rgba(0,0,0,.2);
    border: 1px solid rgba(255,255,255,.08);
    font-size: 11px;
    line-height: 1.25;
    display: flex;
    align-items: center;
  }

.game-page .color-match-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin: 0;
  }

.game-page .color-card {
    min-height: 54px;
    padding: 7px;
    border-radius: 14px;
  }

.game-page .color-card-label {
    margin-bottom: 5px;
    font-size: 8px;
    letter-spacing: .05em;
  }

.game-page .color-card-swatch {
    height: 24px;
    border-radius: 9px;
  }

.game-page .color-help-text {
    display: none;
  }

.game-page .control-group {
    margin-bottom: 9px;
  }

.game-page .control-group:last-of-type {
    margin-bottom: 10px;
  }

.game-page .control-row {
    margin-bottom: 5px;
  }

.game-page .control-label {
    font-size: 11px;
  }

.game-page .control-value {
    font-size: 10px;
  }

.game-page .game-range {
    height: 6px;
  }

.game-page .game-range::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
  }

.game-page .game-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
  }

.game-page .color-preview {
    height: 18px;
    margin-top: 6px;
    border-radius: 9px;
  }

.game-page .game-message {
    min-height: auto;
    margin-bottom: 8px;
    padding: 8px 10px;
    border-radius: 12px;
    font-size: 10.5px;
    line-height: 1.3;
  }

.game-page .game-check-btn {
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 15px;
    font-size: 11px;
  }

.game-page .game-mini-hint {
    display: none;
  }

.game-page .coupon-card {
    padding: 20px 14px;
    border-radius: 22px;
  }

.game-page .coupon-title {
    font-size: 28px;
  }

.game-page .coupon-text {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 18px;
  }

.game-page .coupon-code {
    min-height: 70px;
    border-radius: 18px;
    font-size: 24px;
    margin-bottom: 18px;
  }

.game-page .coupon-note {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
  }

.game-page .coupon-actions {
    flex-direction: column;
    gap: 10px;
  }

.game-page .game-restart-btn,
.game-page .coupon-call-btn,
.game-page .coupon-menu-btn {
    width: 100%;
    min-width: 100%;
    min-height: 52px;
  }
}

@media (max-width: 380px) {
.game-page .wave-game-section {
    padding:
      calc(58px + env(safe-area-inset-top))
      8px
      8px;
  }

.game-page .wave-game {
    width: min(100%, 360px);
    min-height: calc(100svh - 74px - env(safe-area-inset-top));
    padding: 8px;
    border-radius: 18px;
  }

.game-page .game-title {
    font-size: 26px;
  }

.game-page .game-canvas-wrap {
    min-height: 170px;
    height: 170px;
  }

.game-page .mobile-controls-head {
    grid-template-columns: .8fr 1fr;
    gap: 6px;
  }

.game-page .controls-title {
    min-height: 50px;
    padding: 8px;
    font-size: 10px;
  }

.game-page .color-card {
    min-height: 50px;
    padding: 6px;
  }

.game-page .color-card-swatch {
    height: 22px;
  }

.game-page .control-group {
    margin-bottom: 8px;
  }

.game-page .game-message {
    font-size: 10px;
  }

.game-page .game-check-btn {
    min-height: 46px;
  }
}

/* Integration with the shared header and footer. */
.game-page { min-height: 0; color: #ede9dd; background: #0b0d0c; }
.game-page .wave-game-section { min-height: 0; padding: clamp(24px, 5vw, 60px) clamp(12px, 4vw, 60px); }
.game-page .wave-game { min-height: 560px; border-radius: 20px; background: #111613; box-shadow: none; }
.game-page .game-main-menu-link { position: static; margin: 24px 0 0; background: transparent; border-radius: 6px; box-shadow: none; }
.game-page .game-back { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.game-page .game-title { max-width: 800px; }
.game-page .game-description { max-width: 680px; }
.game-page .coupon-actions { flex-wrap: wrap; }
.game-page .coupon-estimate-btn { background: #e8ca81; border: 1px solid #e8ca81; color: #0b0d0c; border-radius: 7px; min-height: 48px; padding: 14px 22px; font-family: inherit; font-weight: 800; cursor: pointer; }
.game-page .game-message { min-height: 2.8em; }
.game-page :focus-visible { outline: 2px solid #e8ca81; outline-offset: 4px; }
@media (max-width: 640px) {
  .game-page .wave-game { min-height: 0; padding: 18px 12px; }
  .game-page .game-title { font-size: clamp(30px, 9vw, 48px); }
  .game-page .coupon-actions > * { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .game-page *, .game-page *::before, .game-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.game-page{padding-top:var(--header)}
