:root {
  --bg-color: #0b021d;
  --neon-pink: #ff007f;
  --neon-cyan: #00f0ff;
  --neon-yellow: #fffb00;
  --neon-purple: #bd00ff;
  --text-color: #ffffff;
  --text-muted: #b0a0cf;
  --glass-bg: rgba(18, 9, 36, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
  --font-family: 'Outfit', 'M PLUS Rounded 1c', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

[data-theme="light"] {
  --bg-color: #f0edf5;
  --neon-pink: #d6006b;
  --neon-cyan: #0087a3;
  --neon-yellow: #997a00;
  --neon-purple: #9000cc;
  --text-color: #1a0b2e;
  --text-muted: #62577a;
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(26, 11, 46, 0.12);
}

/* Base Styles */
html {
  overflow: auto;
  overscroll-behavior: none;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-color);
  min-height: 100vh;
  overflow: auto; /* Temporarily allowed for debugging and ranking */
  overscroll-behavior: none; /* Prevent bounce scrolling on mobile */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Background effects (Orbs) */
body::before, body::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.25;
  pointer-events: none;
}

body::before {
  top: -10%;
  left: -10%;
  background: radial-gradient(circle, var(--neon-pink) 0%, transparent 70%);
  animation: floatOrb1 15s ease-in-out infinite alternate;
}

body::after {
  bottom: -10%;
  right: -10%;
  background: radial-gradient(circle, var(--neon-cyan) 0%, transparent 70%);
  animation: floatOrb2 18s ease-in-out infinite alternate;
}

@keyframes floatOrb1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(100px, 50px) scale(1.2); }
}

@keyframes floatOrb2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-100px, -80px) scale(1.1); }
}

.glass-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 32px;
  padding: 3rem 2rem;
  width: 90%;
  max-width: 540px;
  text-align: center;
  position: relative;
  overflow: visible; /* Changed from hidden to show overflow debug items */
  z-index: 1;
  transition: background 0.3s ease, border-color 0.3s ease;
}

/* Neon Text */
.neon-text-pink {
  color: #fff;
  text-shadow: 
    0 0 4px #fff,
    0 0 8px var(--neon-pink),
    0 0 16px var(--neon-pink);
}

.neon-text-cyan {
  color: #fff;
  text-shadow: 
    0 0 4px #fff,
    0 0 8px var(--neon-cyan),
    0 0 16px var(--neon-cyan);
}

.neon-text-yellow {
  color: #fff;
  text-shadow: 
    0 0 4px #fff,
    0 0 8px var(--neon-yellow),
    0 0 16px var(--neon-yellow);
}

/* App Title Design */
.title-container {
  margin-bottom: 2.5rem;
}

.main-title {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  transform: rotate(-3deg);
  margin-bottom: 0.5rem;
}

.sub-title {
  font-size: 1.1rem;
  color: var(--neon-yellow);
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-top: 0.5rem;
}

/* Form Styles */
.form-group {
  margin-bottom: 2rem;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  padding-left: 0.5rem;
}

.input-glow-wrapper {
  position: relative;
  border-radius: 16px;
  background: linear-gradient(90deg, var(--neon-pink), var(--neon-cyan));
  padding: 2px; /* Border thickness */
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
  transition: box-shadow 0.3s ease;
}

.input-glow-wrapper:focus-within {
  box-shadow: 
    0 0 20px rgba(0, 240, 255, 0.5),
    0 0 10px rgba(255, 0, 127, 0.3);
}

.input-glow {
  width: 100%;
  background: rgba(18, 9, 36, 0.95);
  border: none;
  outline: none;
  border-radius: 14px;
  padding: 1rem 1.2rem;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  transition: background 0.3s ease;
}

.input-glow::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

/* Status Panel */
.status-panel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.2rem;
  margin-bottom: 2.5rem;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.status-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.status-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
}

.status-value {
  font-size: 1.1rem;
  font-weight: 800;
}

.status-green { color: var(--neon-cyan); }
.status-red { color: var(--neon-pink); }

/* Play Button */
.btn-neon-play {
  width: 100%;
  background: linear-gradient(135deg, #d6006b 0%, #8b00bd 100%);
  border: none;
  border-radius: 20px;
  padding: 1.2rem 2rem;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  box-shadow: 
    0 0 10px rgba(255, 0, 127, 0.25),
    0 5px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.btn-neon-play:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 
    0 0 18px rgba(255, 0, 127, 0.5),
    0 0 8px rgba(0, 240, 255, 0.2);
}

.btn-neon-play:active {
  transform: translateY(1px);
}

.btn-neon-play:disabled {
  background: #2a1f3d;
  color: #5d4a77;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Leaderboard Preview */
.leaderboard-preview {
  margin-top: 3rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  padding-top: 2rem;
}

.leaderboard-title {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--neon-cyan);
  margin-bottom: 1.2rem;
}

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

.leaderboard-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.8rem 1.2rem;
  border-radius: 14px;
  font-size: 0.95rem;
  transition: background 0.2s ease;
}

.leaderboard-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.rank-badge {
  font-weight: 900;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.85rem;
}

.rank-1 { background: var(--neon-yellow); color: #000; box-shadow: 0 0 8px var(--neon-yellow); }
.rank-2 { background: #e2e8f0; color: #000; }
.rank-3 { background: #b87333; color: #fff; }
.rank-other { background: rgba(255, 255, 255, 0.1); color: #fff; }

.player-info {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-grow: 1;
  margin-left: 0.8rem;
}

.player-name {
  font-weight: 700;
}

.player-score {
  font-weight: 800;
  color: var(--neon-pink);
}

/* Footer Link */
.footer-links {
  margin-top: 2rem;
  font-size: 0.8rem;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
  border-bottom: 1px dashed var(--text-muted);
}

.footer-link:hover {
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
}

/* Timer Component */
.timer-container {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  position: relative;
}

.timer-bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink));
  transform-origin: left;
  transition: transform 0.1s linear;
}

/* Game Instruction */
.game-instruction {
  font-size: 2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 2rem;
  animation: pulseInstruction 1s infinite alternate;
}

@keyframes pulseInstruction {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); }
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 2rem;
  perspective: 1000px;
}

/* Card Item 3D Effect */
.card-item {
  aspect-ratio: 3 / 4;
  cursor: pointer;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.2);
  transform-style: preserve-3d;
}

.card-item.is-flipped .card-inner {
  transform: rotateY(180deg);
}

.card-item.is-matched {
  cursor: default;
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Card Back (Default State) */
.card-back {
  background: linear-gradient(135deg, #1d0f3a 0%, #0d0221 100%);
  border: 2px solid rgba(0, 240, 255, 0.3);
  box-shadow: inset 0 0 10px rgba(0, 240, 255, 0.1);
  color: var(--neon-cyan);
}

.card-back::after {
  content: "?";
  font-size: 1.8rem;
  font-weight: 900;
  text-shadow: 0 0 5px var(--neon-cyan);
}

/* Card Front (Flipped State) */
.card-front {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 0, 127, 0.3);
  box-shadow: inset 0 0 10px rgba(255, 0, 127, 0.1);
  transform: rotateY(180deg);
  font-size: 2.2rem;
}

/* Result Overlay */
.result-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 2, 29, 0.95);
  backdrop-filter: blur(10px);
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  border-radius: 30px;
}

.result-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.result-title {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.result-score-detail {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-muted);
  text-shadow: none;
  letter-spacing: 1px;
}

.result-title.success {
  color: var(--neon-cyan);
  text-shadow: 0 0 15px var(--neon-cyan);
}

.result-title.failure {
  color: var(--neon-pink);
  text-shadow: 0 0 15px var(--neon-pink);
}

.result-btn-container {
  display: flex;
  gap: 1rem;
  width: 80%;
}

.btn-secondary {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 16px;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

/* HUD (Heads-Up Display) */
.hud-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 1.5rem;
  padding: 0 0.5rem;
}

.stage-counter {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--neon-cyan);
}

.life-container {
  display: flex;
  gap: 6px;
}

.heart {
  font-size: 1.4rem;
  filter: drop-shadow(0 0 4px var(--neon-pink));
  transition: all 0.3s ease;
}

.heart.is-lost {
  opacity: 0.2;
  filter: none;
}

/* Loop Screen States */
.loop-screen {
  display: none;
  width: 100%;
  height: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.loop-screen.is-active {
  display: flex;
}

/* Viewport for active mini-game */
.game-viewport {
  width: 100%;
  touch-action: none;
}

.game-viewport canvas {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

/* Intro Screen Title Animation */
.intro-title {
  font-size: 4rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 4px;
  text-align: center;
  animation: zoomOutTitle 1.8s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes zoomOutTitle {
  0% {
    transform: scale(2);
    opacity: 0;
  }
  15% {
    transform: scale(1);
    opacity: 1;
  }
  85% {
    transform: scale(0.95);
    opacity: 1;
  }
  100% {
    transform: scale(0.7);
    opacity: 0;
  }
}

/* Summary Screen */
.summary-screen h2 {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  color: var(--neon-yellow);
  text-shadow: 0 0 10px rgba(255, 251, 0, 0.3);
}

.score-display {
  font-size: 4rem;
  font-weight: 900;
  color: var(--neon-pink);
  text-shadow: 0 0 15px var(--neon-pink);
  margin: 1.5rem 0;
  font-family: 'Outfit', sans-serif;
}

.summary-stats {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.05rem;
}

.stat-label {
  color: var(--text-muted);
  font-weight: 700;
}

.stat-value {
  font-weight: 800;
}

/* Kizuke (Find the difference) Grid */
.kizuke-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  gap: 5px;
  margin-bottom: 2rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  touch-action: none;
}

.kizuke-cell {
  aspect-ratio: 1 / 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  user-select: none;
  -webkit-user-select: none;
}

@media (max-width: 480px) {
  .kizuke-grid {
    gap: 3px;
    max-width: 320px;
  }
  .kizuke-cell {
    font-size: 0.85rem;
    border-radius: 4px;
  }
}

.kizuke-cell:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
  transform: scale(1.05);
}

.kizuke-cell:active {
  transform: scale(0.95);
}

/* Developer Debug Menu Styles */
.debug-panel {
  margin-top: 2rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
}

.debug-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--neon-yellow);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.debug-btn-group {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn-debug {
  background: rgba(255, 251, 0, 0.04);
  border: 1px solid rgba(255, 251, 0, 0.15);
  color: var(--neon-yellow);
  padding: 0.6rem 1.2rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 0 5px rgba(255, 251, 0, 0.05);
}

.btn-debug:hover {
  background: rgba(255, 251, 0, 0.12);
  border-color: var(--neon-yellow);
  box-shadow: 0 0 10px rgba(255, 251, 0, 0.15);
  transform: translateY(-2px);
}

.btn-debug:active {
  transform: translateY(0);
}

/* Debug Exit Button inside HUD */
.btn-debug-exit {
  background: rgba(255, 0, 127, 0.08);
  border: 1px solid rgba(255, 0, 127, 0.3);
  color: var(--neon-pink);
  padding: 0.3rem 0.8rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 0 5px rgba(255, 0, 127, 0.1);
  display: inline-block;
  margin-left: 1rem;
}

.btn-debug-exit:hover {
  background: rgba(255, 0, 127, 0.18);
  border-color: var(--neon-pink);
  box-shadow: 0 0 10px rgba(255, 0, 127, 0.25);
  transform: translateY(-1px);
}

/* Floating Local Debug Bar */
#local-debug-floating-bar {
  position: fixed;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(11, 2, 29, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 251, 0, 0.25);
  border-radius: 16px;
  padding: 1rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  z-index: 9999;
  box-shadow: 
    0 10px 25px rgba(0, 0, 0, 0.4),
    0 0 10px rgba(255, 251, 0, 0.1);
  width: 120px;
}

.floating-debug-title {
  font-size: 0.65rem;
  font-weight: 900;
  color: var(--neon-yellow);
  text-align: center;
  letter-spacing: 1px;
  margin-bottom: 0.3rem;
  border-bottom: 1px solid rgba(255, 251, 0, 0.15);
  padding-bottom: 0.3rem;
}

.floating-debug-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  text-align: center;
  border: 1px solid transparent;
}

.floating-debug-link:hover {
  color: var(--neon-yellow);
  background: rgba(255, 251, 0, 0.08);
  border-color: rgba(255, 251, 0, 0.2);
}

.floating-debug-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0.2rem 0;
}

/* Responsive adjustment for floating debug bar on mobile */
@media (max-width: 768px) {
  #local-debug-floating-bar {
    top: auto;
    bottom: 15px;
    right: 50%;
    transform: translateX(50%);
    flex-direction: row;
    width: auto;
    max-width: 95vw;
    overflow-x: auto;
    padding: 0.6rem;
    gap: 0.4rem;
    align-items: center;
  }
  
  .floating-debug-title {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
    border-right: 1px solid rgba(255, 251, 0, 0.15);
    padding-right: 0.4rem;
    white-space: nowrap;
  }
  
  .floating-debug-divider {
    width: 1px;
    height: 20px;
    margin: 0 0.2rem;
  }
}

/* Nerae (Aim) UI Styles */
.nerae-viewport {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 270px;
  margin: 0 auto;
  background: #0d0221;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

/* Tobase (Launch) UI Styles */
.tobase-viewport {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 270px;
  margin: 0 auto;
  background: #0d0221;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

/* Theme Toggle Button */
.btn-theme-toggle {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-theme-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.08);
  box-shadow: 0 0 12px var(--neon-cyan);
}

.btn-theme-toggle:active {
  transform: scale(0.95);
}

/* Icons toggle based on active theme */
.theme-icon-sun {
  display: none;
  font-size: 1.3rem;
}
.theme-icon-moon {
  display: block;
  font-size: 1.3rem;
}

[data-theme="light"] .theme-icon-sun {
  display: block;
}
[data-theme="light"] .theme-icon-moon {
  display: none;
}

[data-theme="light"] .btn-theme-toggle {
  background: rgba(28, 13, 58, 0.06);
  border: 1px solid rgba(28, 13, 58, 0.12);
}
[data-theme="light"] .btn-theme-toggle:hover {
  background: rgba(28, 13, 58, 0.12);
  box-shadow: 0 0 12px var(--neon-pink);
}

/* SNS Share Button */
.btn-share {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #1da1f2;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 12px;
  font-family: var(--font-family);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(29, 161, 242, 0.4);
  transition: all 0.3s ease;
}

.btn-share:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(29, 161, 242, 0.7);
}

.btn-share:active {
  transform: translateY(1px);
}

/* Prevent user scroll/bounce on mobile in active play mode */
body.in-game {
  overflow: hidden !important;
  height: 100vh !important;
  position: fixed !important;
  width: 100% !important;
  touch-action: none !important;
}

.game-viewport, #game-viewport canvas, #screen-play {
  touch-action: none !important;
}