/* =====================================================================
   RAM SENA (राम सेना) - GBA Pokemon RPG Stylesheet
   - 100% Clean Game Viewport (Nothing showing on-screen during play)
   - Bottom GBA Emulator Controls Bar (Matching Reference Image 1)
   - Authentic GBA Pokemon Start Menu (Matching Reference Image 2)
   - Fullscreen Title Screen (Matching Contract Demon Reference Image)
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700;900&family=Press+Start+2P&family=Outfit:wght@400;500;600;700&family=VT323&display=swap');

:root {
  --bg-deep: #080a12;
  --saffron: #f59e0b;
  --saffron-bright: #fbbf24;
  --saffron-glow: rgba(245, 158, 11, 0.4);
  --gold: #fde047;

  /* GBA Pokemon Emerald Colors */
  --poke-teal: #02bba4;
  --poke-teal-dark: #018675;
  --poke-teal-light: #44eccb;
  --poke-bg: #ffffff;
  --poke-text: #2c3338;
  --poke-border-inner: #f1f5f9;

  /* GBA Menu Window Colors (Reference Image 2) */
  --gba-menu-bg: #ffffff;
  --gba-menu-border-outer: #576574;
  --gba-menu-border-inner: #ced6e0;
  --gba-menu-text: #2c3338;

  --font-title: 'Cinzel', serif;
  --font-pokemon: 'VT323', monospace;
  --font-retro: 'Press Start 2P', monospace;
  --font-body: 'Outfit', -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #0b0c16;
  color: #ffffff;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

#game-app {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: #060810;
}

/* =====================================================================
   1. PURE CLEAN GAME WORLD VIEWPORT (NOTHING SHOWING DURING EXPLORATION)
   ===================================================================== */

#canvas-container {
  flex: 1;
  width: 100%;
  height: calc(100vh - 42px);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #05070f;
  overflow: hidden;
}

canvas#gameCanvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background-color: #060911;
}

/* =====================================================================
   BOTTOM GBA EMULATOR CONTROLS BAR (Image 1 Reference)
   ===================================================================== */

#emulator-bar {
  height: 42px;
  min-height: 42px;
  background: #0d0f1c;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  z-index: 20;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.6);
}

.emu-btn {
  background: #2a2240;
  border: 1px solid #5b4a85;
  color: #e9d5ff;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.emu-btn:hover {
  background: #3f3161;
  color: #ffffff;
  border-color: #a855f7;
}

.emu-controls-hint {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: #94a3b8;
  letter-spacing: 0.02em;
}

.emu-controls-hint strong {
  color: #f1f5f9;
}

/* =====================================================================
   2. AUTHENTIC GBA POKEMON START MENU (Image 2 Reference)
   ===================================================================== */

#pokemon-start-menu {
  position: absolute;
  top: 20px;
  right: 28px;
  z-index: 70;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

#pokemon-start-menu.hidden {
  opacity: 0;
  transform: translateX(12px);
  pointer-events: none;
}

.gba-menu-box {
  background: var(--gba-menu-bg);
  border: 4px solid var(--gba-menu-border-outer);
  outline: 2px solid #1e293b;
  border-radius: 6px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.9);
  padding: 0.85rem 1.4rem;
  min-width: 175px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.gba-menu-row {
  display: flex;
  align-items: center;
  font-family: var(--font-pokemon);
  font-size: 1.85rem;
  line-height: 1.25;
  color: var(--gba-menu-text);
  letter-spacing: 0.06em;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 0;
  transition: color 0.1s ease;
}

.gba-menu-row:hover,
.gba-menu-row.selected {
  color: #0f172a;
}

.gba-cursor {
  display: inline-block;
  width: 20px;
  color: #1e293b;
  font-size: 1.2rem;
  font-weight: 700;
  visibility: hidden;
}

.gba-menu-row.selected .gba-cursor {
  visibility: visible;
}

.gba-label {
  text-transform: uppercase;
}

/* =====================================================================
   3. AUTHENTIC POKEMON EMERALD DIALOGUE BOX
   ===================================================================== */

#pokemon-textbox-wrapper {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 880px;
  z-index: 120;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#pokemon-textbox-wrapper.hidden {
  opacity: 0;
  transform: translate(-50%, 20px);
  pointer-events: none;
}

.poke-speaker-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--poke-teal-dark);
  color: #ffffff;
  font-family: var(--font-retro);
  font-size: 0.7rem;
  padding: 0.35rem 0.85rem;
  border-radius: 6px 6px 0 0;
  border: 2px solid var(--poke-teal);
  border-bottom: none;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.4);
  text-shadow: 1px 1px 0 #000;
}

.poke-speaker-tag:empty {
  display: none;
}

.poke-box {
  background: var(--poke-bg);
  border: 4px solid var(--poke-teal);
  outline: 3px solid #042f2c;
  border-radius: 8px;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.85),
    inset 0 0 0 3px var(--poke-border-inner);
  padding: 1.1rem 1.4rem;
  min-height: 110px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.poke-text-content {
  font-family: var(--font-pokemon);
  font-size: 1.85rem;
  line-height: 1.35;
  color: var(--poke-text);
  letter-spacing: 0.03em;
  font-weight: 500;
  white-space: pre-line;
  overflow-y: auto;
  max-height: 115px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.poke-cursor-indicator {
  position: absolute;
  right: 18px;
  bottom: 12px;
  color: #e11d48;
  font-size: 1.25rem;
  line-height: 1;
  display: none;
  animation: poke-cursor-blink 0.8s infinite steps(2, start);
}

.poke-cursor-indicator.active {
  display: block;
}

.poke-choices-container {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.poke-choice-btn {
  background: #f1f5f9;
  border: 2px solid var(--poke-teal-dark);
  color: #0f172a;
  font-family: var(--font-retro);
  font-size: 0.62rem;
  padding: 0.45rem 0.85rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.poke-choice-btn:hover {
  background: var(--poke-teal);
  color: #ffffff;
  border-color: #042f2c;
  transform: translateY(-1px);
}

/* =====================================================================
   4. POKEMON BAG (INVENTORY MODAL)
   ===================================================================== */

#pokemon-bag-modal {
  position: absolute;
  inset: 0;
  z-index: 80;
  background: rgba(4, 7, 15, 0.94);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  transition: opacity 0.2s ease;
}

#pokemon-bag-modal.hidden {
  opacity: 0;
  pointer-events: none;
}

.poke-bag-frame {
  width: 90%;
  max-width: 680px;
  background: #0f172a;
  border: 4px solid var(--poke-teal);
  outline: 3px solid #042f2c;
  border-radius: 10px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.poke-bag-header {
  background: var(--poke-teal-dark);
  color: #ffffff;
  padding: 0.75rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--poke-teal);
}

.poke-bag-title {
  font-family: var(--font-retro);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.poke-bag-body {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  height: 320px;
}

.poke-bag-list {
  background: #1e293b;
  border-right: 2px solid #334155;
  overflow-y: auto;
  padding: 0.5rem 0;
}

.poke-bag-item-row {
  padding: 0.65rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: var(--font-retro);
  font-size: 0.65rem;
  color: #cbd5e1;
  transition: background 0.15s ease;
}

.poke-bag-item-row:hover,
.poke-bag-item-row.active {
  background: rgba(2, 187, 164, 0.25);
  color: #ffffff;
}

.poke-bag-item-row.active::before {
  content: "▶";
  margin-right: 6px;
  color: var(--poke-teal);
}

.item-qty {
  font-family: var(--font-pokemon);
  font-size: 1.4rem;
  color: var(--gold);
}

.poke-bag-detail {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #0f172a;
}

.item-detail-icon {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.item-detail-name {
  font-family: var(--font-retro);
  font-size: 0.75rem;
  color: var(--poke-teal-light);
  margin-bottom: 0.6rem;
  text-align: center;
}

.item-detail-desc {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.45;
}

.poke-bag-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.btn-poke-action {
  background: var(--poke-teal-dark);
  border: 2px solid var(--poke-teal);
  color: #ffffff;
  font-family: var(--font-retro);
  font-size: 0.65rem;
  padding: 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.btn-poke-action:hover {
  background: var(--poke-teal);
  transform: translateY(-1px);
}

.poke-bag-footer {
  background: #090d16;
  border-top: 2px solid #334155;
  padding: 0.65rem 1.2rem;
  display: flex;
  justify-content: flex-end;
}

/* =====================================================================
   5. SEVAKA STATS CARD
   ===================================================================== */

#sevaka-card-modal {
  position: absolute;
  inset: 0;
  z-index: 80;
  background: rgba(4, 7, 15, 0.94);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  transition: opacity 0.2s ease;
}

#sevaka-card-modal.hidden {
  opacity: 0;
  pointer-events: none;
}

.sevaka-card-frame {
  width: 90%;
  max-width: 520px;
  background: #0f172a;
  border: 4px solid var(--saffron);
  outline: 3px solid #000;
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.card-header {
  border-bottom: 2px solid rgba(245, 158, 11, 0.3);
  padding-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-family: var(--font-retro);
  font-size: 0.85rem;
  color: var(--gold);
}

.card-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  font-family: var(--font-retro);
  font-size: 0.68rem;
}

.stat-box {
  background: rgba(255, 255, 255, 0.04);
  padding: 0.65rem 0.85rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-box strong {
  color: var(--saffron-bright);
}

/* =====================================================================
   6. FULLSCREEN TITLE SCREEN (Contract Demon Reference)
   ===================================================================== */

#title-screen {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100;
  background: radial-gradient(circle at 50% 38%, #31111d 0%, #17080e 55%, #080205 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 2.5rem 1.5rem;
  overflow: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

.title-bg-scenery {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: 
    radial-gradient(circle at 18% 75%, rgba(244, 63, 94, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 82% 75%, rgba(244, 63, 94, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 50% 25%, rgba(245, 158, 11, 0.12) 0%, transparent 50%);
}

.title-candles-silhouette {
  position: absolute;
  bottom: 90px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 4rem;
  font-size: 2.2rem;
  opacity: 0.4;
  filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.8));
}

.title-main-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: auto;
  margin-bottom: auto;
  position: relative;
  z-index: 2;
}

.title-om {
  font-size: 3.5rem;
  color: #ff3366;
  text-shadow: 0 0 25px rgba(255, 51, 102, 0.7), 0 0 50px rgba(245, 158, 11, 0.4);
  margin-bottom: -15px;
  animation: pulse-soft 3s infinite ease-in-out;
}

.title-logo-text {
  font-family: var(--font-title);
  font-size: clamp(3.2rem, 8vw, 6.2rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #ff2d55;
  text-shadow: 
    -3px -3px 0 #000,
    3px -3px 0 #000,
    -3px 3px 0 #000,
    3px 3px 0 #000,
    0 0 35px rgba(255, 45, 85, 0.8),
    0 0 60px rgba(255, 45, 85, 0.4);
  line-height: 1;
  text-align: center;
}

.title-hindi {
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 3.8vw, 2.8rem);
  color: #f59e0b;
  text-shadow: 
    -2px -2px 0 #000,
    2px -2px 0 #000,
    -2px 2px 0 #000,
    2px 2px 0 #000,
    0 0 20px rgba(245, 158, 11, 0.7);
  letter-spacing: 0.08em;
  margin-top: 0.2rem;
}

.title-author {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  color: #fda4af;
  text-transform: uppercase;
  margin-top: 1rem;
  opacity: 0.85;
}

.title-nav-ribbon {
  width: 100%;
  max-width: 820px;
  border-top: 2px solid #ff2d55;
  border-bottom: 2px solid #ff2d55;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: rgba(15, 3, 7, 0.75);
  box-shadow: 0 0 25px rgba(255, 45, 85, 0.3);
  position: relative;
  z-index: 2;
  border-radius: 4px;
}

.title-nav-btn {
  background: transparent;
  border: none;
  font-family: var(--font-title);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #ff758f;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0.3rem 1.2rem;
  text-transform: uppercase;
}

.title-nav-btn:hover {
  color: #ffffff;
  text-shadow: 0 0 15px #ff2d55, 0 0 25px #ff2d55;
  transform: scale(1.08);
}

/* =====================================================================
   7. MODERN RPG TOP HUD & ACTION BAR
   ===================================================================== */

#rpg-top-hud {
  position: absolute;
  top: 14px;
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
  z-index: 40;
}

.hud-profile-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(10, 16, 30, 0.88);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(245, 158, 11, 0.5);
  border-radius: 12px;
  padding: 8px 16px 8px 10px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.7);
  pointer-events: auto;
}

.hud-avatar-box {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle, #f59e0b 0%, #78350f 100%);
  border: 2px solid #fef08a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.6);
}

.hud-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hud-profile-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hud-hero-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hud-hero-name {
  font-family: var(--font-retro);
  font-size: 0.72rem;
  font-weight: 700;
  color: #fef08a;
  letter-spacing: 0.05em;
}

.hud-role-tag {
  font-family: var(--font-body);
  font-size: 0.62rem;
  padding: 1px 6px;
  background: rgba(239, 68, 68, 0.25);
  border: 1px solid rgba(239, 68, 68, 0.5);
  border-radius: 4px;
  color: #fca5a5;
  font-weight: 600;
}

.hud-map-line {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: #94a3b8;
}

.hud-hp-wrap {
  width: 145px;
  height: 8px;
  background: #1e293b;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #475569;
  margin-top: 3px;
  position: relative;
}

.hud-hp-bar {
  height: 100%;
  background: linear-gradient(90deg, #ef4444, #22c55e);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.hud-actions-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.hud-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(245, 158, 11, 0.45);
  border-radius: 8px;
  color: #ffffff;
  font-family: var(--font-retro);
  font-size: 0.68rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.hud-action-btn:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: #f59e0b;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}

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

.hud-btn-icon {
  font-size: 1rem;
}

.hud-btn-kbd {
  background: #334155;
  border: 1px solid #64748b;
  border-radius: 3px;
  padding: 1px 4px;
  font-size: 0.55rem;
  color: #fef08a;
}

/* =====================================================================
   8. MODERN RPG CHARACTER SELECTION
   ===================================================================== */

#character-select-screen {
  position: absolute;
  inset: 0;
  z-index: 105;
  background: radial-gradient(circle at 50% 30%, #151e33 0%, #060912 85%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  transition: opacity 0.3s ease;
}

#character-select-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.char-select-modern-frame {
  width: 95%;
  max-width: 980px;
  max-height: 92vh;
  overflow-y: auto;
  background: rgba(11, 17, 33, 0.95);
  backdrop-filter: blur(16px);
  border: 2px solid rgba(245, 158, 11, 0.65);
  border-radius: 16px;
  padding: 1.8rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 40px rgba(245, 158, 11, 0.2);
  text-align: center;
}

.char-sacred-subtitle {
  font-family: var(--font-retro);
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  color: var(--saffron);
  margin-bottom: 0.2rem;
}

.char-select-modern-title {
  font-family: var(--font-title);
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  color: #ffffff;
  letter-spacing: 0.08em;
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
  margin: 0;
}

.char-select-modern-desc {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: #94a3b8;
  max-width: 620px;
  margin: 0.2rem auto 0;
}

.char-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  margin-top: 0.4rem;
}

.char-card {
  position: relative;
  background: linear-gradient(180deg, rgba(26, 36, 62, 0.85) 0%, rgba(13, 20, 38, 0.95) 100%);
  border: 2px solid rgba(71, 85, 105, 0.6);
  border-radius: 14px;
  padding: 1.25rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.char-card:hover {
  border-color: rgba(245, 158, 11, 0.7);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.char-card.selected {
  border-color: #f59e0b;
  background: linear-gradient(180deg, rgba(55, 35, 15, 0.88) 0%, rgba(24, 16, 10, 0.96) 100%);
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.4), 0 10px 40px rgba(0, 0, 0, 0.85);
  transform: translateY(-4px) scale(1.02);
}

.char-badge {
  font-family: var(--font-retro);
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  padding: 3px 10px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 20px;
  color: #fde047;
}

.char-portrait-wrap {
  width: 105px;
  height: 105px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.35) 0%, rgba(0, 0, 0, 0.7) 80%);
  border: 3px solid rgba(245, 158, 11, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.45);
  margin: 0.2rem 0;
}

.char-portrait-img {
  width: 95%;
  height: 95%;
  object-fit: cover;
}

.char-name-title {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.06em;
}

.char-hindi-name {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: #f59e0b;
  margin-top: -0.4rem;
}

.char-card-summary {
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.45;
  color: #cbd5e1;
}

.char-stat-meter-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: rgba(15, 23, 42, 0.65);
  border-radius: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.64rem;
  font-family: var(--font-retro);
}

.stat-lbl {
  width: 80px;
  text-align: left;
  color: #94a3b8;
}

.stat-track {
  flex: 1;
  height: 7px;
  background: #334155;
  border-radius: 4px;
  overflow: hidden;
}

.stat-prog {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  border-radius: 4px;
}

.stat-num {
  width: 25px;
  text-align: right;
  color: #fde047;
}

.char-blessing-pill {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: #fde047;
  background: rgba(245, 158, 11, 0.12);
  border: 1px dashed rgba(245, 158, 11, 0.4);
  border-radius: 6px;
  padding: 6px 12px;
  width: 100%;
}

.char-select-footer {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 0.4rem;
}

.btn-confirm-hero {
  padding: 0.85rem 2.2rem;
  font-size: 0.78rem;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  border-color: #34d399;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.4);
}

.btn-confirm-hero:hover {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.7);
  transform: scale(1.04);
}

.btn-back-hero {
  padding: 0.85rem 1.6rem;
  font-size: 0.78rem;
  background: #334155;
  border-color: #64748b;
}

.permanent-notice {
  font-family: var(--font-retro);
  font-size: 0.58rem;
  color: #fca5a5;
  letter-spacing: 0.05em;
}

/* =====================================================================
   DIALOGUE BOX WITH SPEAKER PORTRAIT
   ===================================================================== */

.poke-speaker-header {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #042f2e;
  border: 2px solid #14b8a6;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  padding: 4px 14px 4px 6px;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.5);
}

.poke-speaker-portrait {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #5eead4;
  background: #0f172a;
}

/* =====================================================================
   BAG DEVOTIONAL CRAFTING CARD
   ===================================================================== */

.bag-craft-card {
  margin-top: 1rem;
  background: rgba(15, 23, 42, 0.8);
  border: 2px dashed rgba(245, 158, 11, 0.5);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}

.craft-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.craft-card-title {
  font-family: var(--font-retro);
  font-size: 0.68rem;
  color: #fef08a;
  letter-spacing: 0.05em;
}

.craft-card-count {
  font-family: var(--font-retro);
  font-size: 0.62rem;
  color: #f472b6;
}

.craft-card-hint {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.35;
  margin: 0;
}

.btn-craft-hero {
  align-self: flex-start;
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  border: 2px solid #fef08a;
  padding: 0.5rem 1.2rem;
  font-size: 0.72rem;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

.btn-craft-hero:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  transform: scale(1.03);
}

.opt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

/* Modals */
.retro-modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 110;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.retro-modal-backdrop.hidden { display: none; }

.retro-modal-frame {
  width: 90%;
  max-width: 580px;
  background: #0d121f;
  border: 3px solid #ff2d55;
  border-radius: 8px;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
}

.retro-modal-title {
  font-family: var(--font-title);
  font-size: 1.3rem;
  color: #ff758f;
  text-align: center;
  border-bottom: 1px solid rgba(255, 45, 85, 0.3);
  padding-bottom: 0.6rem;
}

.retro-modal-body {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #cbd5e1;
  max-height: 280px;
  overflow-y: auto;
}

.retro-btn {
  background: #ff2d55;
  color: #000;
  border: none;
  font-family: var(--font-retro);
  font-size: 0.7rem;
  padding: 0.75rem 1.4rem;
  border-radius: 4px;
  cursor: pointer;
  align-self: center;
  font-weight: 700;
}

.retro-btn:hover { background: #ff758f; }

@keyframes poke-cursor-blink {
  from, to { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes pulse-soft {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}
