:root {
  --bg: #050a1b;
  --panel: rgba(10, 20, 45, 0.92);
  --text: #f1f5ff;
  --muted: #8c9cc7;
  --accent: #40f9c4;
  --accent-strong: #2ae0a3;
  --warning: #ff8c8c;
  --outline: rgba(64, 249, 196, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at top, #122044 0%, #070b18 60%, #02030b 100%);
  color: var(--text);
  font-family: "Segoe UI", "Roboto", sans-serif;
  font-size: clamp(0.95rem, 1.8vw, 1rem);
  padding: clamp(0.8rem, 2.4vw, 1.5rem) 0;
}

main {
  width: min(1320px, 100vw);
  background: var(--panel);
  border-radius: 28px;
  padding: clamp(1.8rem, 4vw, 2.6rem) clamp(1.4rem, 3vw, 2.4rem);
  box-shadow: 0 30px 60px rgba(5, 10, 20, 0.65);
  border: 1px solid rgba(137, 181, 255, 0.14);
  position: relative;
  overflow: hidden;
}

main::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 24px;
  pointer-events: none;
  border: 1px dashed rgba(137, 181, 255, 0.08);
}

.screen {
  display: none;
  flex-direction: column;
  gap: 1.2rem;
}

.screen.active {
  display: flex;
}

.store-status {
  margin: 0.2rem 0 0;
  text-align: left;
  color: var(--muted);
  min-height: 1rem;
  font-size: 0.9rem;
}

.store-status:empty {
  display: none;
}

.store-status.success {
  color: var(--accent);
}

.store-status.error {
  color: var(--warning);
}

.screen-store {
  gap: 1.6rem;
}

.store-hero {
  display: grid;
  grid-template-columns: minmax(200px, min(48%, 360px)) 1fr;
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.8rem, 4vw, 2.8rem);
  border-radius: 32px;
  border: 1px solid rgba(137, 181, 255, 0.24);
  background: linear-gradient(145deg, rgba(7, 15, 33, 0.96), rgba(3, 7, 18, 0.94));
  box-shadow: 0 28px 45px rgba(2, 5, 15, 0.65);
  position: relative;
  overflow: hidden;
}

.store-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(64, 249, 196, 0.22), transparent 55%);
  opacity: 0.8;
  pointer-events: none;
  animation: heroGlow 8s ease-in-out infinite alternate;
}

.store-logo-shell {
  width: min(380px, 100%);
  min-height: clamp(220px, 42vw, 280px);
  border-radius: 38px;
  border: 1px solid rgba(64, 249, 196, 0.35);
  background: linear-gradient(160deg, rgba(6, 16, 38, 0.95), rgba(3, 8, 20, 0.92));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  padding: clamp(0.6rem, 2vw, 1.2rem);
  box-shadow: inset 0 0 35px rgba(64, 249, 196, 0.2), 0 20px 35px rgba(2, 5, 15, 0.8);
}

.store-logo-shell::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 8px 30px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  backdrop-filter: blur(6px);
}

.store-logo-shell::after {
  content: "";
  position: absolute;
  width: 160%;
  height: 160%;
  background: conic-gradient(
    from 0deg,
    rgba(64, 249, 196, 0.2),
    transparent 40%,
    rgba(64, 249, 196, 0.15),
    transparent 80%
  );
  animation: sweep 12s linear infinite;
  opacity: 0.35;
}

.store-logo-img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  width: auto;
  object-fit: contain;
  border-radius: 32px;
  padding: 0.4rem;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
  animation: floatLogo 4s ease-in-out infinite;
  position: relative;
  z-index: 1;
  background: rgba(2, 6, 14, 0.7);
}

.store-logo-fallback {
  position: relative;
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
  padding: 1.1rem 0.6rem;
  border-radius: 32px;
  border: 1px dashed rgba(137, 181, 255, 0.3);
  background: rgba(4, 10, 24, 0.9);
}

.store-hero-text {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: relative;
  z-index: 1;
  min-width: 0;
}

.store-heading {
  margin-bottom: 0.4rem;
}

.store-context {
  margin: 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(241, 245, 255, 0.7);
}

.store-heading {
  margin: 0;
  font-size: clamp(1.6rem, 6vw, 2.3rem);
  color: var(--text);
  letter-spacing: 0.02em;
}

.store-hero-actions {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.store-message-stack {
  flex: 1;
  min-width: 0;
}

.info-pill {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(64, 249, 196, 0.3);
  background: rgba(4, 12, 28, 0.72);
  color: rgba(64, 249, 196, 0.75);
  font-weight: 600;
  font-size: 0.7rem;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  position: absolute;
  top: clamp(0.75rem, 1.6vw, 1.1rem);
  right: clamp(0.75rem, 1.6vw, 1.1rem);
}

.info-pill:hover,
.info-pill:focus-visible {
  transform: translateY(-1px) scale(1.05);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 10px rgba(64, 249, 196, 0.3);
}

.foldout {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  pointer-events: none;
  margin-top: 0;
  overflow: hidden;
  transition: grid-template-rows 0.42s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.32s ease, margin-top 0.26s ease;
  contain: layout paint;
  will-change: transform, opacity;
}

.foldout.is-open,
.foldout.is-visible {
  opacity: 1;
  pointer-events: auto;
  grid-template-rows: 1fr;
  margin-top: var(--foldout-gap, 0.6rem);
}

.foldout-content {
  overflow: hidden;
  transform: translateY(-10px) scale(0.98);
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

.foldout.is-open .foldout-content,
.foldout.is-visible .foldout-content {
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .foldout {
    transition: none;
  }

  .foldout-content {
    transition: none;
  }
}

.concept-panel {
  border-radius: 24px;
  border: 1px solid rgba(137, 181, 255, 0.18);
  background: rgba(6, 14, 30, 0.92);
  --foldout-gap: 0.6rem;
}

.concept-panel .foldout-content {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  padding: 1rem 1.2rem;
}

.concept-visual {
  width: 74px;
  height: 74px;
  position: relative;
  flex-shrink: 0;
}

.concept-orb {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(64, 249, 196, 0.6);
  animation: orbFloat 3s ease-in-out infinite;
}

.concept-orb-one {
  top: 10px;
  left: 10px;
}

.concept-orb-two {
  top: 28px;
  right: 6px;
  animation-delay: 0.4s;
  background: #a864ff;
}

.concept-orb-three {
  bottom: 8px;
  left: 26px;
  animation-delay: 0.8s;
  background: #ffe066;
}

.concept-wave {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  border: 1px dashed rgba(137, 181, 255, 0.35);
  animation: sweep 6s linear infinite;
}

.concept-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.journey-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.9rem;
}

.journey-step {
  background: rgba(6, 16, 38, 0.85);
  border-radius: 20px;
  border: 1px solid rgba(137, 181, 255, 0.18);
  padding: 1rem;
  display: flex;
  gap: 0.9rem;
  align-items: center;
  min-height: 120px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 24px rgba(2, 5, 15, 0.55);
}

.journey-step .step-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.journey-step h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.journey-step p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.step-number {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.journey-step-highlight {
  padding: 0;
}

.instant-win-button {
  border: none;
  background: transparent;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  height: 100%;
  padding: 1rem;
  border-radius: 20px;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s ease;
  text-align: left;
}

.instant-win-button:hover,
.instant-win-button:focus-visible {
  transform: translateY(-3px);
}

.journey-step-highlight::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  border: 1px solid rgba(64, 249, 196, 0.25);
  pointer-events: none;
  box-shadow: 0 0 20px rgba(64, 249, 196, 0.09);
}

.journey-step-highlight h3 {
  color: var(--accent);
  text-shadow: none;
  animation: winTitleGlow 3s ease-in-out infinite;
}

.instant-win-card {
  border-radius: 24px;
  border: 1px solid rgba(255, 224, 102, 0.4);
  background: rgba(9, 17, 34, 0.96);
  box-shadow: 0 22px 30px rgba(0, 0, 0, 0.45);
  --foldout-gap: 0.6rem;
}

.instant-win-card .foldout-content {
  padding: 1.2rem 1.4rem;
}

.instant-win-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.instant-win-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  color: rgba(255, 224, 102, 0.8);
}

.ghost-button-inline {
  align-self: flex-start;
  padding: 0.4rem 1.2rem;
  font-size: 0.85rem;
}

.store-intro {
  margin: 0;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.4;
}

.store-intro-name {
  color: var(--accent);
  font-weight: 600;
}

.store-intro-subline {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.store-intro-placeholder {
  color: var(--muted);
}

@keyframes heroGlow {
  from {
    opacity: 0.6;
  }
  to {
    opacity: 1;
  }
}

@keyframes sweep {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes floatLogo {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes pulseInfo {
  0%,
  100% {
    box-shadow: 0 0 12px rgba(64, 249, 196, 0.35);
  }
  50% {
    box-shadow: 0 0 20px rgba(64, 249, 196, 0.6);
  }
}

@keyframes orbFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes winTitleGlow {
  0%,
  100% {
    opacity: 1;
    transform: translateY(0);
  }
  50% {
    opacity: 0.85;
    transform: translateY(-2px);
  }
}

.status-text {
  margin: 0.3rem 0 0.6rem;
  text-align: center;
  color: var(--muted);
  min-height: 1.2rem;
}

.status-centered {
  margin-top: 1.2rem;
}

.intro-text {
  margin: 0;
  line-height: 1.45;
  color: var(--muted);
}

.emphasis-text {
  color: var(--text);
  font-weight: 600;
}

.cta {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1rem;
  background: rgba(5, 12, 30, 0.8);
  border-radius: 18px;
  border: 1px solid var(--outline);
}

.cta label {
  font-size: 0.92rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

input[type="text"] {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(15, 23, 46, 0.9);
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(64, 249, 196, 0.2);
}

button {
  align-self: flex-start;
  padding: 0.65rem 1.6rem;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #021018;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

button:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 12px 20px rgba(64, 249, 196, 0.35);
}

button:active {
  transform: translateY(0);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
  transform: none;
}

.cta-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.cta-actions button {
  flex: 1 1 160px;
}

.ghost-button {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(137, 181, 255, 0.24);
}

.ghost-button:hover {
  color: var(--text);
  box-shadow: none;
  transform: none;
  background: rgba(20, 34, 64, 0.4);
}

.leaderboard-block {
  margin-top: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.leaderboard-header {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.leaderboard-tabs {
  display: inline-flex;
  gap: 0.4rem;
  background: rgba(8, 16, 34, 0.7);
  padding: 0.3rem;
  border-radius: 999px;
  border: 1px solid rgba(64, 249, 196, 0.25);
  align-self: flex-start;
}

.leaderboard-tab {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.2s ease;
}

.leaderboard-tab:hover {
  color: var(--text);
}

.leaderboard-tab.active {
  background: rgba(64, 249, 196, 0.18);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(64, 249, 196, 0.35);
}

.warning {
  min-height: 1.2rem;
  color: var(--warning);
  margin: 0;
  font-size: 0.85rem;
}

.disclaimer {
  margin-top: -0.4rem;
  color: rgba(197, 208, 239, 0.7);
  text-align: center;
}

.url {
  color: var(--accent);
}

.game-header h2 {
  margin: 0;
  font-size: 1.45rem;
}

.game-area {
  display: grid;
  grid-template-columns: minmax(620px, 1.1fr) minmax(280px, 360px);
  gap: 1.8rem;
  align-items: start;
  position: relative;
}

@media (max-width: 900px) {
  .game-area {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .playfield-shell {
    padding: clamp(1rem, 6vw, 1.8rem);
  }

  .playfield-shell canvas {
    width: clamp(220px, 90vw, 460px);
  }

  .game-header h2 {
    font-size: 1.25rem;
  }

  .game-header p,
  .score-display,
  .joystick-label,
  .arrow-pad-label,
  .control-card {
    font-size: 1rem;
  }

  .game-footer button,
  .sound-toggle,
  .arrow-button {
    font-size: 1rem;
  }
}

.sound-toggle-wrap {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.playfield-shell {
  position: relative;
  padding: clamp(2.4rem, 5vw, 4.4rem);
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  min-height: clamp(480px, 62vw, 940px);
  border-radius: 32px;
  background: radial-gradient(circle at 20% 20%, rgba(64, 249, 196, 0.18), rgba(4, 7, 18, 0.95));
  border: 1px solid rgba(64, 249, 196, 0.18);
  box-shadow: 0 35px 60px rgba(1, 4, 12, 0.7), inset 0 0 50px rgba(12, 28, 46, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.playfield-shell::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 26px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.playfield-shell canvas {
  display: block;
  width: clamp(280px, 60vw, 720px);
  max-width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.12), rgba(2, 6, 14, 0.9));
  border: 1px solid rgba(137, 181, 255, 0.16);
  flex-shrink: 0;
}

.playfield-glow {
  position: absolute;
  inset: 0;
  border-radius: 32px;
  background: radial-gradient(circle at 50% 50%, rgba(64, 249, 196, 0.12), transparent 60%);
  filter: blur(24px);
  pointer-events: none;
  animation: pulseGlow 6s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 0.6;
  }
}

.control-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.control-card {
  width: 100%;
  padding: 1rem;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(7, 12, 24, 0.95), rgba(15, 32, 54, 0.7));
  border: 1px solid rgba(64, 249, 196, 0.12);
  box-shadow: 0 18px 32px rgba(1, 5, 12, 0.65);
}

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

#gameCanvas {
  border-radius: 20px;
  width: min(520px, 100%);
  height: auto;
  aspect-ratio: 1 / 1;
  display: block;
  margin: 0 auto;
}

.joystick-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.arrow-pad {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  border-radius: 20px;
  min-width: 180px;
  padding: 0.5rem;
}

.arrow-pad-label {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.65);
}

.arrow-button-row {
  display: flex;
  gap: 0.85rem;
  width: 100%;
  justify-content: space-between;
}

.arrow-button {
  flex: 1;
  min-width: 78px;
  height: 88px;
  border-radius: 26px;
  border: 1px solid rgba(64, 249, 196, 0.45);
  background: radial-gradient(circle at 30% 20%, rgba(64, 249, 196, 0.55), rgba(7, 14, 30, 0.95));
  color: #fff;
  font-size: 2.4rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease,
    background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 18px rgba(64, 249, 196, 0.25), 0 16px 30px rgba(2, 5, 15, 0.7);
  position: relative;
  overflow: hidden;
}

.arrow-button::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 20px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.25), transparent 70%);
  opacity: 0.6;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.arrow-button::after {
  content: '';
  position: absolute;
  bottom: -18px;
  left: 50%;
  width: 60%;
  height: 40%;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.4), transparent 70%);
  transform: translateX(-50%);
  pointer-events: none;
}

.arrow-button,
.arrow-button span {
  user-select: none;
}

.arrow-button span {
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  line-height: 1;
}

.arrow-icon {
  width: 44px;
  height: 44px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.arrow-icon::before,
.arrow-icon::after {
  content: '';
  position: absolute;
  background: #ffffff;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.arrow-icon::before {
  width: 24px;
  height: 6px;
}

.arrow-icon::after {
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  border-radius: 2px;
}

.arrow-icon-left::before {
  transform: translateX(-4px);
}

.arrow-icon-left::after {
  transform: translate(-8px, 0) rotate(45deg);
}

.arrow-icon-right::before {
  transform: translateX(4px);
}

.arrow-icon-right::after {
  transform: translate(8px, 0) rotate(45deg);
}

.arrow-button:hover .arrow-icon::before,
.arrow-button:hover .arrow-icon::after,
.arrow-button:focus-visible .arrow-icon::before,
.arrow-button:focus-visible .arrow-icon::after {
  background: #40f9c4;
}

.arrow-button:focus-visible,
.arrow-button:hover {
  border-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-4px) scale(1.02);
  box-shadow: inset 0 0 28px rgba(64, 249, 196, 0.4), 0 18px 34px rgba(2, 5, 15, 0.75);
}

.arrow-button:hover::before,
.arrow-button:focus-visible::before {
  opacity: 0.85;
}

.arrow-button.is-active {
  border-color: rgba(64, 249, 196, 0.95);
  background: linear-gradient(145deg, rgba(64, 249, 196, 0.25), rgba(5, 10, 20, 0.95));
  box-shadow: inset 0 0 30px rgba(64, 249, 196, 0.35), 0 14px 28px rgba(3, 9, 20, 0.65);
}

.arrow-button.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.swipe-surface {
  width: 150px;
  height: 150px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(64, 249, 196, 0.15), rgba(23, 37, 61, 0.92));
  border: 2px dashed rgba(64, 249, 196, 0.5);
  position: relative;
  overflow: hidden;
  touch-action: none;
  box-shadow: 0 16px 32px rgba(2, 5, 15, 0.45);
  position: relative;
}

.swipe-instruction {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.joystick-knob {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: radial-gradient(circle at 30% 30%, rgba(64, 249, 196, 0.8), rgba(10, 24, 38, 0.95));
  border: 1px solid rgba(64, 249, 196, 0.6);
  box-shadow: 0 10px 18px rgba(2, 6, 12, 0.6), inset 0 0 18px rgba(255, 255, 255, 0.15);
  pointer-events: none;
}

.swipe-surface.is-active .swipe-instruction {
  opacity: 0;
}

.joystick-label {
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.sound-toggle {
  margin-top: 0;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(10, 16, 32, 0.85);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s ease, border-color 0.2s ease, background 0.2s ease;
}

.sound-toggle[aria-pressed='true'] {
  border-color: rgba(255, 85, 110, 0.95);
  background: rgba(45, 12, 28, 0.9);
}

.sound-toggle:hover,
.sound-toggle:focus-visible {
  transform: translateY(-2px);
}

.game-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.score-display {
  font-size: 1.2rem;
  font-weight: 600;
}

.tip {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
}

.player-summary {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 0.4rem 1.2rem;
  background: rgba(8, 16, 32, 0.8);
  border-radius: 18px;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(137, 181, 255, 0.16);
  align-items: center;
}

.summary-label {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.leaderboard {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1.6fr) minmax(90px, 0.7fr) minmax(110px, 0.8fr);
  align-items: center;
  padding: 0.55rem 0.9rem;
  border-radius: 12px;
}

.leaderboard-head {
  background: rgba(11, 24, 50, 0.85);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.leaderboard-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 0.3rem;
}

.leaderboard-item {
  background: rgba(7, 18, 40, 0.78);
  border: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.leaderboard-item.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(64, 249, 196, 0.2);
}

.leaderboard-player {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.leaderboard-player .player-name {
  font-weight: 600;
}

.leaderboard-player .player-store {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.leaderboard-score,
.leaderboard-time {
  justify-self: end;
}

.leaderboard-time {
  font-size: 0.82rem;
  color: var(--muted);
}

.rank-note {
  margin: 0.2rem 0 0;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 520px) {
  .store-hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 2.4rem;
    justify-items: center;
  }

  .store-hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .store-status {
    text-align: center;
  }

  .store-hero .info-pill {
    top: 12px;
    right: 12px;
  }

  .journey-steps {
    grid-template-columns: 1fr;
  }

  .instant-win-card {
    text-align: center;
  }

  .ghost-button-inline {
    align-self: center;
  }

  .game-area {
    flex-direction: column;
    align-items: center;
  }

  .sound-toggle-wrap {
    justify-content: center;
    margin-bottom: 0.4rem;
  }

  .swipe-surface {
    width: 130px;
    height: 130px;
  }

}

.missing-screen {
  text-align: center;
  justify-content: center;
}

.missing-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  background: rgba(9, 17, 36, 0.85);
  border-radius: 24px;
  padding: 2rem;
  border: 1px solid rgba(64, 249, 196, 0.25);
  box-shadow: 0 25px 40px rgba(3, 5, 14, 0.55);
}

.missing-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(64, 249, 196, 0.18);
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.missing-note {
  color: var(--muted);
  margin: 0;
}

#missingReloadButton {
  padding-inline: 2.4rem;
}

.email-screen {
  justify-content: center;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
