@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
  /* Warm Indonesian Food Cart Palette */
  --bg-primary: #3d2518; /* Cokelat kayu gelap */
  --bg-secondary: #ebd3bc; /* Warna krem meja warung */
  --text-main: #2b1810;
  --text-muted: #73574c;
  
  --accent-cyan: #00796b; /* Hijau daun pisang / toska lapak */
  --accent-purple: #c04cfd;
  --accent-gold: #e65100;  /* Jingga bara bakar */
  --accent-green: #2e7d32;
  --accent-red: #d01716;   /* Merah ulekan sambal */
  --accent-orange: #ff6a00;
  
  /* Gradients */
  --grad-primary: linear-gradient(135deg, #00796b, #e65100);
  --grad-gold: linear-gradient(135deg, #ffd13b, #e65100);
  --grad-danger: linear-gradient(135deg, #d01716, #7a0000);
  --grad-green: linear-gradient(135deg, #2e7d32, #004d40);
  
  --shadow-glow: 0 4px 0px #1c0e08;
  --shadow-cyan-glow: 0 4px 0px #004d40;
  --border-glow: 3px solid #2b1810;
  --border-radius-sm: 12px;
  --border-radius-md: 18px;
  --border-radius-lg: 24px;
  
  --kb-bg: #2b1810;
  --kb-key-bg: #ffe0b2;
  --kb-key-text: #2b1810;
  --kb-key-border: #8d5b4c;
}

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

body {
  font-family: 'Outfit', sans-serif;
  background: linear-gradient(135deg, #120805, #24130d, #140514, #041411);
  background-size: 400% 400%;
  animation: gradient-bg 15s ease infinite;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}

body::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(circle at 20% 35%, rgba(0, 121, 107, 0.2) 0%, transparent 45%),
                    radial-gradient(circle at 80% 65%, rgba(230, 81, 0, 0.2) 0%, transparent 45%);
  pointer-events: none;
  z-index: 0;
}

@keyframes gradient-bg {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Portrait Mobile Container */
.app-container {
  width: 100%;
  max-width: 440px;
  height: 95vh;
  max-height: 860px;
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  border: 6px solid #2b1810;
  box-shadow: 0 20px 0px #000, 0 0 40px rgba(230, 81, 0, 0.35);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  z-index: 1;
}

@media (max-width: 480px) {
  body {
    background: var(--bg-primary);
  }
  .app-container {
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    border: none;
  }
}

/* Lobby Steam Particles Emitter */
.lobby-steam-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1; /* Di bawah konten tetapi di atas latar belakang dasar */
  overflow: hidden;
}
.steam-particle {
  position: absolute;
  bottom: -20px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  filter: blur(6px);
  animation: float-steam 7s infinite ease-out;
}
@keyframes float-steam {
  0% {
    transform: translateY(0) scale(0.5) translateX(0);
    opacity: 0;
  }
  15% {
    opacity: 0.5;
  }
  85% {
    opacity: 0.2;
  }
  100% {
    transform: translateY(-95vh) scale(3) translateX(60px);
    opacity: 0;
  }
}

/* Splash Screen */
.splash-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #8d5b4c, #3d2518);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.4s ease;
}
.splash-logo {
  font-size: 2.1rem;
  font-weight: 950;
  color: #fff8e1;
  text-shadow: 3px 3px 0px #2b1810;
  white-space: nowrap;
  letter-spacing: 0.5px;
}
.splash-tagline {
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--accent-gold);
  font-weight: 800;
  text-transform: uppercase;
  margin-top: 6px;
  text-shadow: 1px 1px 0px #000;
}
.splash-loader {
  width: 130px;
  height: 10px;
  background: #2b1810;
  border-radius: 5px;
  margin-top: 32px;
  overflow: hidden;
  border: 2px solid #fff8e1;
}
.splash-progress {
  width: 0%;
  height: 100%;
  background: var(--grad-gold);
  animation: load 1.2s forwards cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes load {
  100% { width: 100%; }
}

/* Header Area */
.app-header {
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffd54f; /* Warna atap tenda warung bakso */
  border-bottom: 4px solid #2b1810;
  z-index: 100;
}
.profile-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.avatar-container {
  position: relative;
  width: 44px;
  height: 44px;
}
.badge-mini {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: var(--accent-red);
  color: white;
  font-size: 7px;
  font-weight: 900;
  padding: 2px 4px;
  border-radius: 4px;
  border: 1.5px solid #2b1810;
}
.user-info {
  display: flex;
  flex-direction: column;
}
.username-text {
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 3px;
  color: #2b1810;
}
.level-text {
  font-size: 10px;
  font-weight: 900;
  color: #e65100;
}
.level-bar-container {
  width: 76px;
  height: 8px;
  background: #fff8e1;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 3px;
  border: 2px solid #2b1810;
}
.level-bar-fill {
  height: 100%;
  background: var(--accent-red);
}

.economy-header {
  display: flex;
  align-items: center;
  gap: 6px;
}
.currency-box {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #fff8e1;
  border: 2px solid #2b1810;
  padding: 4px 8px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 2px 2px 0px #2b1810;
}
.sound-btn {
  background: #fff8e1;
  border: 2px solid #2b1810;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  box-shadow: 2px 2px 0px #2b1810;
}

/* Bottom Navigation */
.bottom-nav {
  height: 68px;
  background: #ffd54f;
  border-top: 4px solid #2b1810;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #73574c;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  flex: 1;
}
.nav-item svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
}
.nav-item.active {
  color: #d01716;
}
.nav-item.active svg {
  transform: scale(1.15);
}

/* Content & Pages */
.app-content {
  flex: 1;
  overflow-y: auto;
  position: relative;
  background: #8b5a2b; /* Latar papan gerobak cokelat */
  background-image: radial-gradient(circle, #a06b3e 10%, transparent 11%);
  background-size: 20px 20px;
  padding-bottom: 20px;
}
.page {
  display: none;
  padding: 14px;
  animation: slide-up 0.2s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
}
.page.active {
  display: block;
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* RPG Wood Cards */
.glass-card {
  background: var(--bg-secondary);
  border: var(--border-glow);
  border-radius: var(--border-radius-md);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-glow);
}
.glass-card-header {
  font-weight: 900;
  font-size: 15px;
  color: #3e2723;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px dashed #8d5b4c;
  padding-bottom: 4px;
}

/* World Lore Banner */
.lore-bar {
  background: #fff8e1;
  border: var(--border-glow);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 10px;
  font-weight: 800;
  color: #e65100;
  text-align: center;
  margin-bottom: 12px;
  box-shadow: 2px 2px 0px #2b1810;
}

/* SPOTLIGHT BATTLE PORTAL */
.battle-portal-card {
  border: 3px solid #2b1810;
  box-shadow: 0 6px 0px #1c0e08;
  background: #fdf5e6;
  position: relative;
}
.wood-border-top {
  height: 6px;
  background: #8d5b4c;
  border-bottom: 2px solid #2b1810;
  margin: -14px -14px 10px -14px;
}
.portal-header {
  text-align: center;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 1px;
  color: #e65100;
  margin-bottom: 12px;
}
.portal-matchup {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding: 0 10px;
}
.portal-hero, .portal-boss {
  text-align: center;
  width: 90px;
}
.portal-avatar-box {
  display: flex;
  justify-content: center;
}
.portal-name {
  font-weight: 900;
  font-size: 13px;
  margin-top: 6px;
  color: #2b1810;
}
.portal-sub {
  font-size: 9px;
  color: var(--text-muted);
}
.portal-vs {
  font-size: 18px;
  font-weight: 950;
  color: var(--accent-gold);
}
.portal-button {
  font-size: 13px !important;
  font-weight: 900 !important;
  padding: 12px !important;
  box-shadow: 4px 4px 0px #000 !important;
  letter-spacing: 1px !important;
}

/* CARTOON SVG AVATARS & INGAME ANIMATIONS */
.svg-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #2b1810;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 2px 2px 0px #2b1810;
  transition: transform 0.1s ease-out;
}
.svg-avatar.urat { background: #efebe9; }
.svg-avatar.bakar { background: #ffe0b2; }
.svg-avatar.goreng { background: #fff9c4; }
.svg-avatar.satpol { background: #c8e6c9; }
.svg-avatar.emak { background: #f8bbd0; }
.svg-avatar.inspektur { background: #d1c4e9; }

.svg-avatar.large {
  width: 58px;
  height: 58px;
  border: 3px solid #2b1810;
  box-shadow: 3px 3px 0px #2b1810;
}
.svg-avatar svg {
  width: 85%;
  height: 85%;
}

/* active chef cutting/stirring animation */
.active-cook-jump {
  animation: cook-jump 0.12s alternate 2 ease-out;
}
@keyframes cook-jump {
  0% { transform: translateY(0) rotate(0deg) scale(1); }
  50% { transform: translateY(-8px) rotate(-3deg) scale(1.05); }
  100% { transform: translateY(0) rotate(3deg) scale(1); }
}

/* enemy get hit rotation & flash */
.enemy-hurt-flash {
  animation: enemy-hurt 0.15s ease-out;
}
@keyframes enemy-hurt {
  0% { transform: scale(1) rotate(0deg); filter: brightness(1.5) sepia(1) hue-rotate(-50deg); }
  50% { transform: scale(0.9) rotate(-8deg); filter: brightness(1.8) sepia(1) hue-rotate(-50deg); }
  100% { transform: scale(1) rotate(0deg); filter: none; }
}

/* ultimate skill grow animation */
.ultimate-grow {
  animation: ult-grow 0.6s infinite alternate ease-in-out;
  border-color: var(--accent-gold) !important;
  box-shadow: 0 0 15px var(--accent-gold) !important;
}
@keyframes ult-grow {
  0% { transform: scale(1); }
  100% { transform: scale(1.15); }
}

/* HERO CLASS PICKER */
.hero-class-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.hero-class-card {
  background: #fff8e1;
  border: 2px solid #2b1810;
  border-radius: 10px;
  padding: 10px 4px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s;
}
.hero-class-card:hover {
  transform: translateY(-2px);
}
.hero-class-card.active {
  background: #ffe0b2;
  border-color: #e65100;
  box-shadow: 3px 3px 0px #2b1810;
  animation: heartbeat 1.5s infinite ease-in-out;
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}
.class-title {
  font-size: 11px;
  font-weight: 900;
  margin-top: 4px;
  color: #2b1810;
}

/* BOSS PICKER */
.boss-picker-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.boss-picker-item {
  background: #fff8e1;
  border: 2px solid #2b1810;
  border-radius: 8px;
  padding: 8px 4px;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.boss-picker-item.active {
  border-color: #d01716;
  background: #ffcdd2;
  box-shadow: 2px 2px 0px #2b1810;
  color: #2b1810;
}

/* Buttons */
.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  border: 3px solid #2b1810;
  padding: 12px 20px;
  border-radius: var(--border-radius-sm);
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  box-shadow: 3px 3px 0px #000;
  text-transform: uppercase;
}
.btn-primary:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px #000;
}
.btn-secondary {
  background: #fff8e1;
  border: 2px solid #2b1810;
  color: var(--text-main);
  padding: 10px 18px;
  border-radius: var(--border-radius-sm);
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 2px 2px 0px #000;
}

/* Daily Chest */
.daily-chest-container {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff8e1;
  padding: 10px;
  border-radius: var(--border-radius-sm);
  border: 2px solid #2b1810;
}
.chest-box {
  font-size: 32px;
  cursor: pointer;
  animation: float 2s infinite ease-in-out;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.chest-info {
  display: flex;
  flex-direction: column;
}
.chest-title {
  font-weight: 800;
  font-size: 13px;
  color: #e65100;
}
.chest-desc {
  font-size: 10px;
  color: var(--text-muted);
}

/* Upgrade stats nodes */
.skill-tree-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.skill-node {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border: 2px solid #2b1810;
  background: #fff8e1;
  border-radius: var(--border-radius-sm);
  box-shadow: 2px 2px 0px #2b1810;
}
.skill-level-bars {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}
.skill-level-dot {
  width: 14px;
  height: 6px;
  background: #d7ccc8;
  border-radius: 2px;
  border: 1px solid #2b1810;
}
.skill-level-dot.active {
  background: #ffb703;
}

/* Leaderboards */
.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.leaderboard-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff8e1;
  border: 2px solid #2b1810;
}
.leaderboard-item.me {
  background: #ffe0b2;
  border-color: #e65100;
}

/* Gameplay Arena Overlay */
.gameplay-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #8b5a2b;
  background-image: radial-gradient(circle, #a06b3e 10%, transparent 11%);
  background-size: 20px 20px;
  z-index: 500;
  display: none;
  flex-direction: column;
}
.gameplay-header {
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffd54f;
  border-bottom: 4px solid #2b1810;
}
.gameplay-opponents {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 12px;
  gap: 10px;
  overflow-y: auto;
}
.character-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  background: #ebd3bc;
  border: 3px solid #2b1810;
  border-radius: var(--border-radius-sm);
  box-shadow: 4px 4px 0px #000;
  position: relative;
}
.char-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 900;
  font-size: 12px;
}
.char-hp-outer {
  height: 12px;
  background: #fff8e1;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  border: 2px solid #2b1810;
}
.char-hp-inner {
  height: 100%;
  transition: width 0.1s ease;
}
.player-hp {
  background: var(--accent-green);
}
.enemy-hp {
  background: var(--accent-red);
}
.boss-phase-markers {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  background: #2b1810;
  z-index: 5;
}

/* Combat rows */
.enemy-avatar-row, .player-hud-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}
.enemy-reaction {
  font-size: 10px;
  color: #fff8e1;
  background: #d01716;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: bold;
  border: 1.5px solid #2b1810;
}
.active-element-badge {
  font-size: 9px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  background: #fff8e1;
  border: 2px solid #2b1810;
}

.active-element-badge.fire {
  background: #ffcdd2;
  color: #d01716;
}
.active-element-badge.ice {
  background: #e0f2f1;
  color: #00796b;
}
.active-element-badge.lightning {
  background: #fff9c4;
  color: #e65100;
}

.element-picker-preview {
  font-size: 11px;
  font-weight: 900;
  color: #2b1810;
}
.ultimate-gauge-container {
  width: 145px;
  height: 20px;
  background: #ebd3bc;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  border: 2px solid #2b1810;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}
.ultimate-gauge-container.charged {
  animation: bar-glow-pulse 0.6s infinite alternate ease-in-out;
  border-color: #ff3d00;
  box-shadow: 0 0 10px #ff3d00, inset 0 1px 3px rgba(0,0,0,0.2);
}
@keyframes bar-glow-pulse {
  0% { box-shadow: 0 0 4px #e65100, inset 0 1px 3px rgba(0,0,0,0.2); border-color: #2b1810; }
  100% { box-shadow: 0 0 14px #ff6d00, inset 0 1px 3px rgba(0,0,0,0.2); border-color: #e65100; }
}
.ultimate-gauge-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffb703, #e65100, #ff3d00);
  transition: width 0.2s ease;
}
.ultimate-gauge-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 8.5px;
  font-weight: 950;
  letter-spacing: 1px;
  color: #fff;
  text-shadow: 1px 1px 0 #2b1810, -1px -1px 0 #2b1810, 1px -1px 0 #2b1810, -1px 1px 0 #2b1810;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 2px;
}
.ultimate-gauge-container.charged .ultimate-gauge-text {
  animation: text-pulse-glow 0.6s infinite alternate;
}
@keyframes text-pulse-glow {
  0% { transform: translate(-50%, -50%) scale(1); text-shadow: 0 0 4px #ff3d00, 1px 1px 0 #2b1810; }
  100% { transform: translate(-50%, -50%) scale(1.08); text-shadow: 0 0 12px #ffeb3b, 1px 1px 0 #2b1810; }
}
.ult-icon {
  display: inline-block;
  animation: flame-flicker 0.4s infinite alternate;
}
@keyframes flame-flicker {
  0% { transform: scale(0.9) rotate(-5deg); }
  100% { transform: scale(1.1) rotate(5deg); }
}

/* Typing Interface Area */
.typing-box {
  padding: 16px;
  background: #ffd54f;
  border-top: 4px solid #2b1810;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
.sentence-display {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: 0.6px;
  background: #fff8e1;
  padding: 14px;
  border-radius: var(--border-radius-sm);
  border: 3px solid #2b1810;
  text-align: center;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
  color: #2b1810;
}
.char-correct {
  color: #00796b;
  font-weight: 900;
}
.char-incorrect {
  color: var(--accent-red);
  background: #ffcdd2;
  border-radius: 3px;
}
.char-current {
  border-bottom: 3px solid #e65100;
  animation: pulse-cursor 0.7s infinite;
}

.sentence-display .crit-word {
  color: #e65100;
  font-weight: 900;
  border-bottom: 2px dashed #e65100;
}

.real-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.input-prompt {
  font-size: 10px;
  color: #73574c;
  text-align: center;
  font-weight: 800;
}
.live-stats {
  display: flex;
  justify-content: space-around;
  font-weight: 900;
  font-size: 11px;
  color: #2b1810;
}

.ultimate-active-btn {
  background: #ffb703 !important;
  color: #2b1810 !important;
  font-weight: 900 !important;
  border: 3px solid #2b1810 !important;
  box-shadow: 3px 3px 0px #000 !important;
  animation: pulse-ultimate 0.8s infinite alternate;
}
@keyframes pulse-ultimate {
  from { transform: scale(1); }
  to { transform: scale(1.02); }
}

/* Keyboard space styling */
.v-keyboard {
  padding: 8px;
  background: var(--kb-bg);
  border-radius: var(--border-radius-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 2px solid #2b1810;
}
.vk-row {
  display: flex;
  justify-content: center;
  gap: 3px;
}
.vk-key {
  height: 36px;
  flex: 1;
  background: var(--kb-key-bg);
  border: 2px solid var(--kb-key-border);
  color: var(--kb-key-text);
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 2px 0px #2b1810;
  cursor: pointer;
}
.vk-key.active {
  transform: translateY(2px);
  background: #ffb703;
  box-shadow: 0 0px 0px #2b1810;
}
.vk-key-space {
  flex: 4;
  background: #e65100;
  color: white;
  border-color: #b71c1c;
  box-shadow: 0 2px 0px #5f0909;
}
.vk-key-space.active {
  background: #b71c1c;
  box-shadow: 0 0px 0px #5f0909;
}

/* Interactive Story dialogue */
.story-chat-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #8b5a2b;
  z-index: 600;
  display: none;
  flex-direction: column;
}
.story-chat-content {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.story-choices-input-container {
  padding: 16px;
  border-top: 4px solid #2b1810;
  background: #ffd54f;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.story-choices-display {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.story-choice-btn {
  background: #fff8e1;
  border: 2px dashed #2b1810;
  color: #2b1810;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  text-align: left;
  font-weight: 900;
}
.story-keyboard-prompt {
  font-size: 10px;
  color: #73574c;
  text-align: center;
  font-weight: 800;
}
#storyChoiceInput {
  background: #fff8e1;
  border: 3px solid #2b1810;
  border-radius: 8px;
  color: #2b1810;
  padding: 10px;
  font-size: 13px;
  outline: none;
  text-align: center;
  box-shadow: 3px 3px 0px #000;
  font-weight: 800;
}

/* Queue Screen */
.queue-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(43, 24, 16, 0.96);
  z-index: 1000;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Floating damage labels */
.damage-floater {
  position: absolute;
  font-size: 20px;
  font-weight: 900;
  color: #00796b;
  pointer-events: none;
  animation: fly-up-fade 0.6s forwards ease-out;
  text-shadow: 2px 2px 0px #fff;
  z-index: 100;
}
.damage-floater.crit {
  font-size: 26px;
  color: #e65100;
  text-shadow: 2px 2px 0px #fff;
}
.damage-floater.fire {
  color: #d01716;
}
.damage-floater.ice {
  color: #0288d1;
}

@keyframes fly-up-fade {
  0% { transform: translateY(0) scale(0.8); opacity: 1; }
  100% { transform: translateY(-45px) scale(1.1); opacity: 0; }
}

/* Hurt shaking */
.hurt-shake {
  animation: shake-element 0.2s infinite;
}
@keyframes shake-element {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-4px, 2px); }
  50% { transform: translate(4px, -2px); }
  75% { transform: translate(-2px, -2px); }
}

/* Screen shakes */
.shake-animation {
  animation: screenshake 0.25s ease-in-out;
}
@keyframes screenshake {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-5px, 4px); }
  40% { transform: translate(5px, -4px); }
  60% { transform: translate(-3px, -2px); }
  80% { transform: translate(3px, 2px); }
}

/* Red flashing */
.flash-red-animation {
  animation: flash-red 0.3s ease-out;
}
@keyframes flash-red {
  0% { box-shadow: inset 0 0 40px rgba(208, 23, 22, 0.6); }
  100% { box-shadow: none; }
}

/* Overclock mode pulse */
.overclock-active {
  border-color: #d01716 !important;
}

/* Victory/Defeat End Game Screens */
.endgame-modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(43, 24, 16, 0.95);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
}
.modal-content {
  text-align: center;
  z-index: 10;
  width: 100%;
}
.modal-title {
  font-size: 36px;
  font-weight: 950;
  letter-spacing: 2px;
  margin-bottom: 6px;
}
.modal-title.green-glow {
  color: #fff8e1;
  text-shadow: 4px 4px 0px #00796b;
}
.modal-title.red-glow {
  color: #fff8e1;
  text-shadow: 4px 4px 0px #d01716;
}
.modal-subtitle {
  font-size: 11px;
  color: #ffd54f;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 30px;
  font-weight: 900;
}
.reward-loot-box {
  background: #ebd3bc;
  border: 3px solid #2b1810;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 35px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 4px 4px 0px #000;
}
.reward-item {
  font-size: 18px;
  font-weight: 900;
  color: #2b1810;
}
.defeat-icon {
  font-size: 72px;
  margin-bottom: 40px;
  animation: pulse-skull 1.5s infinite alternate;
}
@keyframes pulse-skull {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

@keyframes pulse-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.stat-bubble {
  background: #fff8e1;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  border: 2px solid #2b1810;
  box-shadow: 2px 2px 0px #2b1810;
  color: #2b1810;
  font-weight: 800;
}

/* Welcome Lobby Banner Refinements */
.welcome-lobby-banner {
  text-align: center;
  padding: 12px 14px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fffde7, #fff9c4);
  border: 3px solid #2b1810;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-glow);
  position: relative;
  overflow: hidden;
}
.welcome-lobby-banner::before {
  content: '🍜';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
}
.welcome-lobby-banner::after {
  content: '🌶️';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
}
.welcome-lobby-banner .subtitle {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.welcome-lobby-banner .name {
  font-size: 19px;
  font-weight: 950;
  color: #b71c1c;
  margin: 2px 0;
  text-shadow: 1px 1px 0px rgba(0,0,0,0.05);
}
.welcome-lobby-banner .rank {
  font-size: 11px;
  font-weight: 900;
  color: var(--accent-cyan);
  background: #e0f2f1;
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  border: 1.5px solid #2b1810;
  margin-top: 2px;
}

/* Quest List & Item Cards */
.quest-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.quest-item-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: #fff8e1;
  border: 2px solid #2b1810;
  border-radius: var(--border-radius-sm);
  box-shadow: 2px 2px 0px #2b1810;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.quest-item-card:hover {
  transform: translateY(-1px);
  box-shadow: 3px 3px 0px #2b1810;
}
.quest-item-card.completed {
  background: #e8f5e9;
  border-color: #2e7d32;
}
.quest-item-card.claimed {
  background: #efebe9;
  border-color: #73574c;
  opacity: 0.75;
}
.quest-info-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-right: 12px;
}
.quest-description {
  font-size: 12px;
  font-weight: 800;
  color: #2b1810;
  line-height: 1.3;
}
.quest-progress-bar-outer {
  height: 8px;
  background: #ebd3bc;
  border: 1.5px solid #2b1810;
  border-radius: 4px;
  overflow: hidden;
}
.quest-progress-bar-inner {
  height: 100%;
  background: var(--grad-gold);
  transition: width 0.3s ease;
}
.quest-item-card.completed .quest-progress-bar-inner {
  background: var(--grad-green);
}
.quest-action-col {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.quest-progress-txt {
  font-size: 11px;
  font-weight: 900;
  color: #e65100;
  background: #fff8e1;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1.5px solid #2b1810;
}
.quest-claimed-badge {
  font-size: 10px;
  font-weight: 900;
  color: #73574c;
  background: #d7ccc8;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1.5px solid #73574c;
}
.claim-quest-btn {
  font-size: 10px !important;
  padding: 6px 10px !important;
  box-shadow: 2px 2px 0px #000 !important;
  background: var(--grad-green) !important;
  border-color: #2b1810 !important;
  animation: pulse-ultimate 0.8s infinite alternate;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #2b1810;
  border-radius: 2px;
}

/* Story Career Mode Highlight */
.story-career-card {
  background: linear-gradient(135deg, #4a148c, #311b92);
  color: #fff8e1;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 3px solid #2b1810;
  box-shadow: 0 6px 0px #1c0e08;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: pulse-purple-glow 2s infinite alternate ease-in-out;
}
.story-career-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0px #1c0e08;
}
.story-career-card .story-badge {
  background: var(--accent-gold);
  color: white;
  font-size: 9px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1.5px solid #2b1810;
  display: inline-block;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}
.story-career-card .story-title {
  font-size: 15px;
  font-weight: 950;
  color: #ffd54f;
  text-shadow: 2px 2px 0px #2b1810;
  margin-bottom: 4px;
}
.story-career-card .story-desc {
  font-size: 11px;
  color: #e0eee0;
  line-height: 1.3;
}

@keyframes pulse-purple-glow {
  0% {
    border-color: #2b1810;
    box-shadow: 0 6px 0px #1c0e08, 0 0 10px rgba(192, 76, 253, 0.4);
  }
  100% {
    border-color: var(--accent-purple);
    box-shadow: 0 6px 0px #1c0e08, 0 0 20px rgba(192, 76, 253, 0.8);
  }
}

/* Smoke rising animation for upgraded stove */
.smoke-anim {
  animation: rise-smoke 1.5s infinite linear;
  stroke-dasharray: 4;
}
@keyframes rise-smoke {
  0% { stroke-dashoffset: 8; opacity: 0; }
  50% { opacity: 0.6; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

/* Pre-match Customer Dialogs */
.prematch-dialog-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(43, 24, 16, 0.9);
  z-index: 550;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.dialog-box {
  background: var(--bg-secondary);
  border: 3px solid #2b1810;
  border-radius: var(--border-radius-md);
  padding: 16px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 10px 0px #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: bounce-in 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
}
@keyframes bounce-in {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.dialog-content-box {
  background: #fff8e1;
  border: 2px solid #2b1810;
  border-radius: var(--border-radius-sm);
  padding: 12px;
  width: 100%;
  text-align: left;
}
.dialog-speaker {
  font-weight: 900;
  font-size: 13px;
  color: #b71c1c;
  margin-bottom: 4px;
}
.dialog-text {
  font-size: 12px;
  font-weight: 700;
  color: #2b1810;
  line-height: 1.4;
  font-style: italic;
}

/* Story Chapters in Lobby List */
.lobby-story-chapters {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.story-chapter-lobby-node {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #fff8e1;
  border: 2px solid #2b1810;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.story-chapter-lobby-node:hover {
  background: #ffe0b2;
}
.story-chapter-lobby-node.completed {
  background: #e8f5e9;
  border-color: #2e7d32;
}
.story-chapter-lobby-node.locked {
  background: #efebe9;
  opacity: 0.6;
  cursor: not-allowed;
}
.chapter-lobby-title {
  font-size: 12px;
  font-weight: 900;
  color: #2b1810;
}
.chapter-lobby-badge {
  font-size: 9px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #2b1810;
}
.chapter-lobby-badge.done {
  background: #a5d6a7;
  color: #1b5e20;
}
.chapter-lobby-badge.active {
  background: #fff59d;
  color: #f57f17;
  animation: pulse-ultimate 0.8s infinite alternate;
}
.chapter-lobby-badge.lock {
  background: #cfd8dc;
  color: #37474f;
}

/* Level Roadmap Styles */
.level-roadmap-container {
  position: relative;
  width: 100%;
  margin-top: 10px;
  margin-bottom: 6px;
}
.level-roadmap-line-bg {
  position: absolute;
  top: 15px;
  left: 6%;
  width: 88%;
  height: 5px;
  background: #d7ccc8;
  border: 1.5px solid #2b1810;
  border-radius: 3px;
  z-index: 1;
}
.level-roadmap-line-fill {
  height: 100%;
  background: var(--accent-orange);
  width: 0%;
  transition: width 0.5s ease;
}
.level-roadmap-nodes {
  position: relative;
  display: flex;
  justify-content: space-between;
  z-index: 2;
}
.roadmap-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 54px;
}
.node-bullet {
  width: 28px;
  height: 28px;
  background: #fff8e1;
  border: 2px solid #2b1810;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 1.5px 1.5px 0px #2b1810;
  transition: background 0.3s, transform 0.3s;
}
.roadmap-node.active .node-bullet {
  background: #ffd54f;
  border-color: #e65100;
  transform: scale(1.15);
  box-shadow: 0 0 8px rgba(255, 183, 3, 0.8);
}
.roadmap-node.completed .node-bullet {
  background: #81c784;
  border-color: #2e7d32;
  color: white;
}
.node-label {
  font-size: 8px;
  font-weight: 800;
  color: var(--text-muted);
  margin-top: 4px;
  text-align: center;
  white-space: nowrap;
}
.roadmap-node.active .node-label {
  color: #e65100;
  font-weight: 900;
}

/* Golden Glowing Card for Sembako & Gerobak Visual in Upgrade page */
.glowing-gold-card {
  border-color: #ffd54f !important;
  box-shadow: 0 6px 0px #1c0e08, 0 0 15px rgba(255, 213, 79, 0.6) !important;
  animation: pulse-gold-glow 2s infinite alternate ease-in-out;
}
@keyframes pulse-gold-glow {
  0% { box-shadow: 0 6px 0px #1c0e08, 0 0 5px rgba(255, 213, 79, 0.4); }
  100% { box-shadow: 0 6px 0px #1c0e08, 0 0 20px rgba(255, 213, 79, 0.9); }
}

/* Story Chapters Main Game card border pulse */
.story-career-main-card {
  border: 3px solid #ab47bc !important;
  box-shadow: 0 6px 0px #1c0e08, 0 0 12px rgba(171, 71, 188, 0.6) !important;
  animation: pulse-main-game-glow 2.5s infinite alternate ease-in-out;
}
@keyframes pulse-main-game-glow {
  0% { box-shadow: 0 6px 0px #1c0e08, 0 0 6px rgba(171, 71, 188, 0.4); border-color: #ab47bc; }
  100% { box-shadow: 0 6px 0px #1c0e08, 0 0 22px rgba(171, 71, 188, 0.9); border-color: #ba68c8; }
}

/* Profile Level Badge */
.profile-level-badge {
  background: #e65100;
  color: white;
  font-size: 9px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1.5px solid #2b1810;
  display: inline-block;
  align-self: flex-start;
  box-shadow: 1px 1px 0px #2b1810;
}

/* Highlighted self ranking on Leaderboard */
.leaderboard-item.me {
  background: linear-gradient(135deg, #fff9c4, #ffd54f) !important;
  border-color: #e65100 !important;
  box-shadow: 2px 2px 0px #2b1810, 0 0 10px rgba(230, 81, 0, 0.3) !important;
  animation: pulse-me-glow 1.5s infinite alternate ease-in-out;
}
@keyframes pulse-me-glow {
  0% { box-shadow: 2px 2px 0px #2b1810, 0 0 4px rgba(230, 81, 0, 0.2); }
  100% { box-shadow: 2px 2px 0px #2b1810, 0 0 12px rgba(230, 81, 0, 0.5); }
}

/* Mini Gerobak Leaderboard Badge container */
.leaderboard-gerobak-mini-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
  vertical-align: middle;
}

/* Upgrade Success Celebration Styles */
#upgradeSuccessOverlay .modal-glowing-glow.gold {
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255, 215, 0, 0.15) 0deg 15deg,
    transparent 15deg 30deg
  );
  position: absolute;
  width: 250%;
  height: 250%;
  top: -75%;
  left: -75%;
  animation: rotate-rays 25s linear infinite;
  z-index: 1;
  pointer-events: none;
}

@keyframes rotate-rays {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#upgradeSuccessVisualContainer {
  position: relative;
  z-index: 5;
}

#upgradeSuccessVisualContainer svg {
  animation: upgrade-cart-bounce 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.3));
}

@keyframes upgrade-cart-bounce {
  0% { transform: scale(0.3) rotate(-15deg); opacity: 0; }
  75% { transform: scale(1.15) rotate(5deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* Dynamic Gameplay Particles */
.gameplay-spark {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  opacity: 0.8;
  animation: rise-spark linear forwards;
}

.gameplay-spark.fire {
  background: radial-gradient(circle, #ff7043 20%, #d01716 70%, transparent 100%);
  box-shadow: 0 0 12px #ff7043, 0 0 4px #d01716;
}

.gameplay-spark.ice {
  background: radial-gradient(circle, #4dd0e1 20%, #00796b 70%, transparent 100%);
  box-shadow: 0 0 12px #4dd0e1, 0 0 4px #00796b;
}

.gameplay-spark.lightning {
  background: radial-gradient(circle, #ffd54f 20%, #e65100 70%, transparent 100%);
  box-shadow: 0 0 12px #ffd54f, 0 0 4px #e65100;
}

@keyframes rise-spark {
  0% {
    transform: translateY(0) scale(0.4) translateX(0);
    opacity: 0.9;
  }
  50% {
    opacity: 0.7;
    transform: translateY(-40vh) scale(1.1) translateX(-15px);
  }
  100% {
    transform: translateY(-90vh) scale(1.6) translateX(25px);
    opacity: 0;
  }
}

/* Mode Badges for Match History Notes */
.mode-badge {
  font-size: 8.5px;
  font-weight: 900;
  padding: 2.5px 6px;
  border-radius: 4px;
  border: 1.5px solid #2b1810;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  box-shadow: 1px 1px 0px #000;
}
.mode-badge.ranked {
  background: var(--grad-gold);
}
.mode-badge.story {
  background: linear-gradient(135deg, #ab47bc, #4a148c);
}
.mode-badge.practice {
  background: linear-gradient(135deg, #90a4ae, #546e7a);
}
.mode-badge.promotion {
  background: linear-gradient(135deg, #00b0ff, #00796b);
}

/* Category badge inside upgrade skill nodes */
.skill-node-category-badge {
  font-size: 8px;
  font-weight: 900;
  background: var(--bg-primary);
  color: #ebd3bc;
  padding: 1.5px 5px;
  border-radius: 4px;
  border: 1px solid #2b1810;
  letter-spacing: 0.5px;
  display: inline-block;
}

/* Rankings Page - My Rank Highlight Card styling */
.my-rank-highlight-card {
  background: linear-gradient(135deg, #fff9c4, #ffe082) !important;
  border: 3px solid var(--accent-gold) !important;
  box-shadow: 0 4px 12px rgba(230, 81, 0, 0.2), var(--shadow-glow) !important;
  padding: 16px !important;
  margin-bottom: 15px;
}
.my-rank-card-header {
  font-weight: 900;
  font-size: 13px;
  color: #b71c1c;
  border-bottom: 2px dashed #b71c1c;
  padding-bottom: 6px;
  margin-bottom: 12px;
  text-align: center;
  letter-spacing: 0.5px;
}
.my-rank-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.my-rank-icon-wrapper {
  font-size: 32px;
  background: rgba(255,255,255,0.7);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2.5px solid #2b1810;
  box-shadow: 3px 3px 0px #2b1810;
  animation: heartbeat 2s infinite ease-in-out;
}
.my-rank-info-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.my-rank-title-text {
  font-size: 16px;
  font-weight: 950;
  color: #2b1810;
  text-shadow: 1px 1px 0px rgba(255,255,255,0.5);
}
.my-rank-points-text {
  font-size: 11.5px;
  font-weight: 800;
  color: #e65100;
}
.my-rank-progress-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.my-rank-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  font-weight: 800;
  color: #73574c;
}
.my-rank-progress-bg {
  width: 100%;
  height: 10px;
  margin-top: 0;
  background: rgba(255,255,255,0.5);
}

/* Match History Card UI styling */
.match-history-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: #fff8e1;
  border: 2px solid #2b1810;
  border-radius: var(--border-radius-sm);
  box-shadow: 2px 2px 0px #2b1810;
  margin-bottom: 8px;
  transition: transform 0.15s ease;
}
.match-history-card:hover {
  transform: translateY(-1px);
}
.match-info-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.match-opponent-text {
  font-size: 12px;
  font-weight: 850;
  color: var(--text-main);
  margin-bottom: 2px;
}
.match-meta-text {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 800;
}
.match-rematch-btn {
  width: auto !important;
  padding: 6px 14px !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  box-shadow: 2px 2px 0px #000 !important;
  letter-spacing: 0.5px !important;
}

/* Upgrade Page - Specs Dashboard grid styling */
.upgrade-specs-dashboard {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 2px dashed rgba(43, 24, 16, 0.15);
}

.skill-boost-badge {
  font-size: 9px;
  font-weight: 900;
  background: var(--accent-cyan);
  color: #2b1810;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1.5px solid #2b1810;
  box-shadow: 1px 1px 0px #2b1810;
  text-transform: uppercase;
}

/* Credits Page Styling */
.credits-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 10px;
  gap: 16px;
}

.credits-logo {
  font-size: 44px;
  animation: float 2.5s infinite ease-in-out;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.15));
}

.credits-title-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.credits-game-title {
  font-size: 19px;
  font-weight: 950;
  color: #b71c1c;
  text-shadow: 1px 1px 0px rgba(255,255,255,0.6);
  letter-spacing: 0.5px;
}

.credits-game-version {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 800;
  letter-spacing: 1px;
}

.credits-divider {
  width: 100%;
  border: none;
  border-top: 1.5px dashed rgba(43, 24, 16, 0.15);
}

.credits-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  width: 100%;
}

.credits-label {
  font-size: 9px;
  font-weight: 900;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(43, 24, 16, 0.05);
  padding: 2px 10px;
  border-radius: 10px;
  border: 1px solid rgba(43, 24, 16, 0.1);
}

.credits-value-primary {
  font-size: 15px;
  font-weight: 900;
  color: #2b1810;
}

.credits-link {
  font-size: 12px;
  font-weight: 900;
  color: var(--accent-cyan);
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  transition: all 0.2s ease;
}

.credits-link:hover {
  color: #004d40;
  border-bottom-color: #004d40;
}

.credits-value-secondary {
  font-size: 12.5px;
  font-weight: 800;
  color: #2b1810;
  line-height: 1.4;
}

.credits-highlight {
  color: #e65100;
  font-weight: 900;
}
