/* ==========================================================================
   Suvyanth's Game Zone - Skyward Dash Styles
   Engineered for Mobile, iPad, and Desktop with Touch Controls
   ========================================================================== */

:root {
  --gz-header-height: 56px;
  --gz-footer-height: 42px;
  --gz-primary-cyan: #00F5D4;
  --gz-primary-pink: #FF4D6D;
  --gz-primary-gold: #FFD166;
  --gz-primary-purple: #9D4EDD;
  --gz-primary-green: #06D6A0;
  --gz-primary-blue: #00A2FF;
  --gz-bg-space: #070a14;
  --gz-card-bg: rgba(15, 22, 41, 0.88);
  --gz-card-border: rgba(0, 162, 255, 0.3);
  --gz-glow-cyan: 0 0 20px rgba(0, 245, 212, 0.4);
  --gz-glow-gold: 0 0 20px rgba(255, 209, 102, 0.4);
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--gz-bg-space);
  color: #FFFFFF;
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

/* Background animated stars & cosmic ambient */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 15%, #172554 0%, #0a1128 50%, #070a14 100%);
  z-index: 0;
  pointer-events: none;
}

/* ==========================================================================
   Thin Profile Header
   ========================================================================== */
.thin-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--gz-header-height);
  background: rgba(11, 17, 34, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gz-card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.thin-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.back-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #CBD5E1;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.back-home-btn:hover, .back-home-btn:active {
  background: rgba(0, 162, 255, 0.2);
  border-color: var(--gz-primary-blue);
  color: #FFFFFF;
  transform: translateX(-2px);
}

.player-profile-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

.player-avatar-wrap {
  position: relative;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.player-avatar-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gz-primary-cyan);
  box-shadow: var(--gz-glow-cyan);
}

.online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 9px;
  height: 9px;
  background: #06D6A0;
  border: 2px solid #0B1122;
  border-radius: 50%;
  box-shadow: 0 0 6px #06D6A0;
}

.player-text-wrap {
  display: flex;
  flex-direction: column;
}

.player-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.player-name {
  font-family: 'Fredoka', cursive, sans-serif;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.5px;
  color: #FFFFFF;
  white-space: nowrap;
}

.player-handle {
  font-size: 0.75rem;
  color: var(--gz-primary-cyan);
  font-weight: 700;
  white-space: nowrap;
}

.player-substatus {
  font-size: 0.7rem;
  color: #8E9DB5;
  font-weight: 600;
  white-space: nowrap;
}

.thin-header-center {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: center;
  overflow: hidden;
}

.zone-title {
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  background: linear-gradient(135deg, #00F5D4, #FFD166, #FF4D6D);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.thin-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.coin-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 209, 102, 0.12);
  border: 1px solid rgba(255, 209, 102, 0.35);
  color: var(--gz-primary-gold);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #CBD5E1;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.icon-btn:hover, .icon-btn:active {
  background: rgba(0, 162, 255, 0.25);
  border-color: var(--gz-primary-blue);
  color: #FFFFFF;
}

/* ==========================================================================
   Thin Profile Footer
   ========================================================================== */
.thin-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--gz-footer-height);
  background: rgba(11, 17, 34, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--gz-card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 100;
  font-size: 0.78rem;
  color: #8E9DB5;
}

.thin-footer-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.thin-footer-center {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #CBD5E1;
}

.thin-footer-center .key-hint {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.72rem;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.thin-footer-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.thin-footer-right a {
  color: var(--gz-primary-cyan);
  text-decoration: none;
  font-weight: 700;
  transition: opacity 0.2s;
}

.thin-footer-right a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* ==========================================================================
   Game Main Canvas Arena Viewport
   ========================================================================== */
.game-viewport {
  position: absolute;
  top: var(--gz-header-height);
  bottom: var(--gz-footer-height);
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
}

.canvas-container {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 540px;
  max-height: 920px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
  background: #0B1122;
}

@media (min-width: 768px) {
  .canvas-container {
    border-left: 1px solid rgba(0, 162, 255, 0.25);
    border-right: 1px solid rgba(0, 162, 255, 0.25);
  }
}

#skyward-canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ==========================================================================
   Setup & Customizer Screen Overlay
   (Matches Gemini Canvas UI 100%)
   ========================================================================== */
.overlay-screen {
  position: absolute;
  inset: 0;
  background: rgba(11, 15, 28, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 20;
  overflow-y: auto;
  opacity: 1;
  transition: opacity 0.25s ease, visibility 0.25s;
}

.overlay-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.customizer-card {
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 245, 212, 0.4) transparent;
  background: rgba(18, 24, 44, 0.95);
  border: 2px solid rgba(0, 162, 255, 0.35);
  border-radius: 24px;
  padding: 22px 20px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 162, 255, 0.15);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.customizer-header {
  text-align: center;
}

.game-logo-title {
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #FFD166 0%, #FF4D6D 40%, #00F5D4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
  margin-bottom: 4px;
  text-shadow: 0 4px 18px rgba(255, 77, 109, 0.3);
}

.game-logo-subtitle {
  font-size: 0.9rem;
  color: #CBD5E1;
  font-weight: 600;
}

.custom-section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #CBD5E1;
  margin-bottom: 8px;
}

/* Heroes grid */
.heroes-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.hero-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 10px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.hero-btn.selected {
  border-color: var(--gz-primary-gold);
  background: rgba(255, 209, 102, 0.16);
  box-shadow: 0 0 16px rgba(255, 209, 102, 0.4);
  transform: scale(1.05);
}

.hero-icon-svg {
  font-size: 1.8rem;
  line-height: 1;
}

.hero-name-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-align: center;
  color: #FFFFFF;
  line-height: 1.1;
}

/* Color Circles */
.colors-row {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-start;
}

.color-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.color-dot:hover {
  transform: scale(1.12);
}

.color-dot.selected {
  border-color: #FFFFFF;
  transform: scale(1.18);
  box-shadow: 0 0 14px currentColor;
}

/* World Realms */
.realms-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.realm-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 10px 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #CBD5E1;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.realm-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.realm-btn.selected {
  border-color: var(--gz-primary-cyan);
  background: rgba(0, 245, 212, 0.15);
  color: #FFFFFF;
  box-shadow: 0 0 14px rgba(0, 245, 212, 0.35);
}

/* Skills list */
.skills-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skill-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.skill-btn:hover {
  background: rgba(255, 255, 255, 0.09);
}

.skill-btn.selected {
  border-color: var(--gz-primary-green);
  background: rgba(6, 214, 160, 0.15);
  box-shadow: 0 0 16px rgba(6, 214, 160, 0.3);
}

.skill-btn-icon {
  font-size: 1.5rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

.skill-btn-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.skill-btn-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #FFFFFF;
}

.skill-btn-desc {
  font-size: 0.72rem;
  color: #8E9DB5;
}

/* Launch Adventure Button */
.launch-adventure-btn {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #00F5D4, #00A2FF);
  border: none;
  border-radius: 16px;
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #070A14;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
  box-shadow: 0 6px 0 #006eb3, 0 10px 24px rgba(0, 162, 255, 0.45);
  transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.launch-adventure-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 #006eb3, 0 14px 28px rgba(0, 245, 212, 0.5);
}

.launch-adventure-btn:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #006eb3, 0 4px 12px rgba(0, 162, 255, 0.3);
}

/* ==========================================================================
   In-Game Floating HUD Elements
   ========================================================================== */
.game-top-hud {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 10;
}

.hud-stat-box {
  background: rgba(11, 17, 34, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.height-stat {
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gz-primary-gold);
}

.gems-stat {
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gz-primary-cyan);
}

.game-pause-btn {
  background: rgba(11, 17, 34, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: all 0.2s;
}

.game-pause-btn:hover {
  background: rgba(0, 162, 255, 0.25);
  border-color: var(--gz-primary-blue);
}

/* ==========================================================================
   Mobile & iPad Touch Controls
   ========================================================================== */
.touch-controls-layer {
  position: absolute;
  bottom: 14px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: none;
  z-index: 15;
}

.touch-left-right-group {
  display: flex;
  gap: 12px;
  pointer-events: auto;
}

.touch-btn {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: rgba(15, 22, 41, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(0, 162, 255, 0.4);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.15);
  transition: transform 0.1s ease, background 0.1s ease;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.touch-btn:active, .touch-btn.active {
  transform: scale(0.92);
  background: rgba(0, 245, 212, 0.35);
  border-color: var(--gz-primary-cyan);
  box-shadow: 0 2px 10px rgba(0, 245, 212, 0.4);
}

/* Touch Skill Activator Button */
.touch-skill-btn {
  position: relative;
  width: 74px;
  height: 74px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(6, 214, 160, 0.8), rgba(0, 162, 255, 0.8));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid #FFFFFF;
  color: #070A14;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 8px 25px rgba(6, 214, 160, 0.5), 0 0 15px rgba(0, 245, 212, 0.4);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.touch-skill-btn:active {
  transform: scale(0.9);
}

.touch-skill-btn.ready {
  animation: pulse-skill 1.5s infinite;
}

.touch-skill-btn.charging {
  filter: grayscale(0.6) opacity(0.85);
  border-color: rgba(255, 255, 255, 0.3);
}

@keyframes pulse-skill {
  0%, 100% { box-shadow: 0 8px 25px rgba(6, 214, 160, 0.5), 0 0 15px rgba(0, 245, 212, 0.5); }
  50% { box-shadow: 0 8px 35px rgba(0, 245, 212, 0.8), 0 0 25px rgba(6, 214, 160, 0.8); }
}

.touch-skill-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.touch-skill-label {
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #070A14;
}

.skill-cooldown-arc {
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  pointer-events: none;
}

/* ==========================================================================
   Awesome Run! Game Over Overlay
   ========================================================================== */
.gameover-card {
  width: 100%;
  max-width: 420px;
  background: rgba(18, 24, 44, 0.96);
  border: 2px solid rgba(255, 209, 102, 0.4);
  border-radius: 24px;
  padding: 28px 24px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.85), 0 0 40px rgba(255, 209, 102, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.trophy-badge {
  font-size: 3.5rem;
  line-height: 1;
  filter: drop-shadow(0 4px 15px rgba(255, 209, 102, 0.6));
  animation: floatTrophy 2s ease-in-out infinite;
}

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

.gameover-title {
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #FFFFFF;
}

.gameover-subtitle {
  font-size: 0.95rem;
  color: #CBD5E1;
  margin-top: -6px;
}

.gameover-stats-grid {
  background: rgba(11, 15, 28, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gameover-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  font-weight: 700;
  color: #CBD5E1;
}

.gameover-stat-value {
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gz-primary-gold);
}

.gameover-stat-value.gems {
  color: var(--gz-primary-cyan);
}

.gameover-stat-value.coins {
  color: #FFD166;
}

.gameover-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}

.btn-secondary {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
}

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

.btn-primary-replay {
  padding: 14px 16px;
  background: linear-gradient(135deg, #FFD166, #f5a623);
  border: none;
  border-radius: 16px;
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: #070A14;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 5px 0 #b38600, 0 10px 20px rgba(255, 209, 102, 0.4);
  transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-primary-replay:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 #b38600, 0 12px 25px rgba(255, 209, 102, 0.5);
}

.btn-primary-replay:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #b38600;
}

/* ==========================================================================
   Pause Modal Overlay
   ========================================================================== */
.pause-card {
  width: 100%;
  max-width: 380px;
  background: rgba(18, 24, 44, 0.96);
  border: 2px solid var(--gz-card-border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.85);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pause-title {
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: #FFFFFF;
}

.pause-btn-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pause-btn {
  width: 100%;
  padding: 12px;
  border-radius: 14px;
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
}

/* ==========================================================================
   Responsive Adaptations for iPad & Mobile Viewports
   ========================================================================== */
@media (max-width: 768px) {
  :root {
    --gz-header-height: 50px;
    --gz-footer-height: 38px;
  }

  .thin-header {
    padding: 0 10px;
    gap: 8px;
  }

  .thin-header-center {
    display: none !important;
  }

  .player-substatus, .player-handle {
    display: none !important;
  }

  .player-name {
    font-size: 0.88rem;
  }

  .back-home-btn {
    padding: 5px 9px;
    font-size: 0.78rem;
  }

  .coin-pill {
    padding: 4px 8px;
    font-size: 0.78rem;
  }

  .icon-btn {
    width: 32px;
    height: 32px;
  }

  .thin-footer {
    padding: 0 10px;
    font-size: 0.72rem;
  }

  .thin-footer-center {
    display: none; /* Hide key shortcuts on mobile */
  }

  .touch-btn {
    width: 60px;
    height: 60px;
    font-size: 1.6rem;
  }

  .touch-skill-btn {
    width: 68px;
    height: 68px;
  }

  .customizer-card {
    padding: 18px 14px;
    gap: 12px;
  }

  .game-logo-title {
    font-size: 1.75rem;
  }

  .heroes-grid {
    gap: 6px;
  }

  .hero-btn {
    padding: 8px 2px;
  }

  .hero-icon-svg {
    font-size: 1.5rem;
  }

  .color-dot {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 520px) {
  .thin-header-center {
    display: none;
  }
  .coin-pill {
    padding: 4px 8px;
    font-size: 0.78rem;
  }
}

/* iPad in Portrait and Landscape */
@media (min-width: 769px) and (max-width: 1024px) {
  .canvas-container {
    max-width: 600px;
  }
  .touch-btn {
    width: 72px;
    height: 72px;
    font-size: 2rem;
  }
  .touch-skill-btn {
    width: 82px;
    height: 82px;
  }
}
