/* ==========================================================================
   DUNGEON ESCAPE - STYLESHEET (Cross-Platform Desktop & Mobile)
   A Dark Fantasy Roguelike Game by Deepak Devgan
   ========================================================================== */

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

:root {
  --bg-dark: #090a0f;
  --bg-panel: rgba(18, 20, 32, 0.95);
  --bg-card: #151828;
  --gold: #f5c542;
  --gold-glow: rgba(245, 197, 66, 0.4);
  --crimson: #e63946;
  --crimson-glow: rgba(230, 57, 70, 0.5);
  --cyan: #4cc9f0;
  --cyan-glow: rgba(76, 201, 240, 0.4);
  --purple: #9d4edd;
  --purple-glow: rgba(157, 78, 221, 0.4);
  --green: #2ec4b6;
  --green-glow: rgba(46, 196, 182, 0.4);
  --text-main: #f0f3f8;
  --text-muted: #8b95a8;
  --border-gold: #c69214;
  --border-dark: #2a3148;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
}

/* ==========================================================================
   GAME CONTAINER & CANVAS
   ========================================================================== */
#game-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #141724 0%, #08090d 100%);
  cursor: crosshair;
}

#game-canvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* ==========================================================================
   HEADS-UP DISPLAY (HUD)
   ========================================================================== */
#hud {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
  display: none;
}

/* Top Left: Player Status */
.hud-top-left {
  position: absolute;
  top: 15px;
  left: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.player-card {
  background: var(--bg-panel);
  border: 2px solid var(--border-dark);
  border-radius: 10px;
  padding: 8px 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7), inset 0 0 10px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 12px;
}

.player-avatar-hud {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #1d2238;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 0 12px var(--gold-glow);
}

.player-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 170px;
}

.bar-wrapper {
  position: relative;
  height: 16px;
  background: #0f111a;
  border: 1px solid #333a52;
  border-radius: 8px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  width: 100%;
  border-radius: 8px;
  transition: width 0.15s ease-out;
}

.bar-fill.health {
  background: linear-gradient(90deg, #b7094c, #e63946, #ff758f);
  box-shadow: 0 0 10px var(--crimson-glow);
}

.bar-fill.xp {
  background: linear-gradient(90deg, #7209b7, #b5179e, #4cc9f0);
  box-shadow: 0 0 10px var(--cyan-glow);
}

.bar-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 10px;
  font-weight: 700;
  text-shadow: 1px 1px 2px #000;
  letter-spacing: 0.5px;
}

.stat-counters {
  display: flex;
  gap: 10px;
  font-size: 14px;
}

.hud-pill {
  background: rgba(21, 24, 40, 0.85);
  border: 1px solid #30374e;
  border-radius: 20px;
  padding: 3px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.gold-icon {
  color: var(--gold);
  filter: drop-shadow(0 0 4px var(--gold));
}

.key-icon {
  color: #ffb703;
  filter: drop-shadow(0 0 4px #ffb703);
}

.key-icon.inactive {
  opacity: 0.3;
  filter: grayscale(1);
}

/* Top Center: Objective & Boss Bar */
.hud-top-center {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 90vw;
}

.objective-badge {
  background: rgba(15, 17, 26, 0.9);
  border: 1px solid var(--border-gold);
  border-radius: 6px;
  padding: 5px 16px;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  letter-spacing: 1px;
  color: #f7dfa5;
  box-shadow: 0 4px 14px rgba(0,0,0,0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#boss-health-bar-container {
  display: none;
  flex-direction: column;
  align-items: center;
  width: 90vw;
  max-width: 500px;
  background: rgba(18, 12, 22, 0.95);
  border: 2px solid #8b0000;
  border-radius: 8px;
  padding: 8px 14px;
  box-shadow: 0 0 25px rgba(230, 57, 70, 0.6);
  animation: bossBarPulse 3s infinite ease-in-out;
}

@keyframes bossBarPulse {
  0%, 100% { border-color: #8b0000; box-shadow: 0 0 20px rgba(230, 57, 70, 0.5); }
  50% { border-color: #e63946; box-shadow: 0 0 35px rgba(230, 57, 70, 0.8); }
}

.boss-title-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-family: 'Cinzel', serif;
  font-size: 14px;
  color: #ff99a8;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}

.boss-bar-wrapper {
  position: relative;
  width: 100%;
  height: 18px;
  background: #25090f;
  border: 1px solid #751421;
  border-radius: 6px;
  overflow: hidden;
}

.boss-bar-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #780000, #c1121f, #ff4d6d);
  transition: width 0.1s ease-out;
}

/* Top Right: Minimap */
.hud-top-right {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.minimap-wrapper {
  background: var(--bg-panel);
  border: 2px solid var(--border-dark);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
}

#minimap-canvas {
  width: 110px;
  height: 110px;
  border-radius: 6px;
  background: #080a10;
  display: block;
}

/* Bottom Center: Weapon & Dash Slots (Desktop view) */
.hud-bottom-center {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
}

.ability-slot {
  width: 60px;
  height: 60px;
  background: var(--bg-panel);
  border: 2px solid var(--border-dark);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.ability-slot.active {
  border-color: var(--gold);
  box-shadow: 0 0 16px var(--gold-glow);
}

.ability-icon {
  font-size: 24px;
}

.ability-key {
  position: absolute;
  bottom: 2px;
  right: 5px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
}

.cooldown-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  transform-origin: bottom;
  transform: scaleY(0);
  transition: transform 0.05s linear;
}

/* Creator Watermark Badge */
.creator-badge {
  position: absolute;
  bottom: 12px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(10, 12, 20, 0.88);
  border: 1px solid rgba(245, 197, 66, 0.35);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 13px;
  color: #d1d5db;
  pointer-events: auto;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  transition: all 0.2s ease;
  z-index: 25;
}

.creator-badge:hover {
  border-color: var(--gold);
  box-shadow: 0 0 15px var(--gold-glow);
  transform: translateY(-2px);
}

.creator-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--gold);
}

/* ==========================================================================
   MOBILE TOUCH CONTROLS (Virtual Joystick & Action Buttons)
   ========================================================================== */
#mobile-controls {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 50;
  display: none;
}

/* Left Touch Area: Dynamic Virtual Movement Joystick */
#mobile-joystick-zone {
  position: absolute;
  bottom: 25px;
  left: 25px;
  width: 140px;
  height: 140px;
  pointer-events: auto;
  touch-action: none;
}

.joystick-base {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 35, 55, 0.75) 0%, rgba(12, 15, 25, 0.85) 100%);
  border: 2px solid rgba(245, 197, 66, 0.4);
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
}

.joystick-stick {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle, #f5c542 0%, #c69214 100%);
  border: 2px solid #ffffff;
  position: absolute;
  transform: translate(0, 0);
  box-shadow: 0 0 15px var(--gold-glow);
}

/* Right Touch Area: Action Buttons */
#mobile-actions-zone {
  position: absolute;
  bottom: 25px;
  right: 25px;
  display: flex;
  align-items: flex-end;
  gap: 16px;
  pointer-events: auto;
}

.touch-btn {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.7);
  pointer-events: auto;
  touch-action: none;
  transition: transform 0.1s ease;
  user-select: none;
}

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

.touch-btn-attack {
  width: 80px;
  height: 80px;
  background: linear-gradient(180deg, #d49e1e 0%, #855b06 100%);
  border: 2.5px solid #ffe6a7;
  font-size: 34px;
  box-shadow: 0 0 25px var(--gold-glow);
}

.touch-btn-dash {
  width: 58px;
  height: 58px;
  background: linear-gradient(180deg, #1d4e89 0%, #0d2c54 100%);
  border: 2px solid #70d6ff;
  font-size: 24px;
  box-shadow: 0 0 15px var(--cyan-glow);
}

.touch-btn-interact {
  width: 54px;
  height: 54px;
  background: linear-gradient(180deg, #6a040f 0%, #370617 100%);
  border: 2px solid #ff758f;
  font-size: 22px;
}

.touch-btn-pause {
  position: absolute;
  top: 15px;
  right: 135px;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(20, 24, 40, 0.85);
  border: 1px solid var(--border-gold);
  font-size: 16px;
  pointer-events: auto;
}

/* Auto Display Touch Controls on Touch/Mobile Screens */
@media (hover: none) and (pointer: coarse), (max-width: 900px) {
  #mobile-controls {
    display: block !important;
  }
  .hud-bottom-center {
    display: none !important;
  }
  .creator-badge {
    bottom: 90px;
    right: 15px;
    padding: 4px 10px;
    font-size: 11px;
  }
  #minimap-canvas {
    width: 85px;
    height: 85px;
  }
}

/* ==========================================================================
   MODAL DIALOGS & OVERLAYS
   ========================================================================== */
.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 7, 12, 0.88);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  overflow-y: auto;
  padding: 20px;
}

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

.modal-panel {
  background: var(--bg-panel);
  border: 2px solid var(--border-gold);
  border-radius: 16px;
  padding: 30px 36px;
  max-width: 650px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 30px var(--gold-glow);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  animation: modalPop 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  max-height: 92vh;
  overflow-y: auto;
}

@keyframes modalPop {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-title {
  font-family: 'Cinzel', serif;
  font-size: 32px;
  font-weight: 900;
  color: var(--gold);
  text-shadow: 0 0 15px var(--gold-glow);
  margin-bottom: 6px;
  letter-spacing: 2px;
}

.modal-subtitle {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 20px;
}

/* Main Menu Specifics */
#main-menu-panel {
  max-width: 560px;
}

.game-logo {
  font-family: 'Cinzel', serif;
  font-size: 46px;
  font-weight: 900;
  background: linear-gradient(180deg, #fff7d6 0%, #f5c542 50%, #c69214 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.8)) drop-shadow(0 0 25px var(--gold-glow));
  letter-spacing: 3px;
  margin-bottom: 4px;
}

.author-tag {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 18px;
  border-radius: 30px;
  border: 1px solid rgba(245, 197, 66, 0.4);
  cursor: pointer;
  transition: all 0.2s ease;
}

.author-tag:hover {
  background: rgba(245, 197, 66, 0.12);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.author-tag img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  object-fit: cover;
}

.author-tag span {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  color: #ffebb3;
  letter-spacing: 1px;
}

.menu-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 320px;
}

/* Buttons */
.btn {
  background: linear-gradient(180deg, #242b45 0%, #151a2d 100%);
  border: 1px solid #414d75;
  border-radius: 8px;
  color: var(--text-main);
  font-family: 'Cinzel', serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 12px 24px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn:hover {
  background: linear-gradient(180deg, #323d63 0%, #1d243e 100%);
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 20px var(--gold-glow);
  transform: translateY(-2px);
}

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

.btn-primary {
  background: linear-gradient(180deg, #d49e1e 0%, #9e6d0a 100%);
  border-color: #ffd166;
  color: #121520;
  font-weight: 900;
  font-size: 18px;
  box-shadow: 0 6px 20px var(--gold-glow);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #f7c948 0%, #b88313 100%);
  border-color: #ffffff;
  color: #0d1017;
  box-shadow: 0 0 30px var(--gold-glow);
}

.btn-danger {
  background: linear-gradient(180deg, #9b1d20 0%, #5f0f11 100%);
  border-color: #e63946;
}

/* ==========================================================================
   CREATOR MODAL SHOWCASE (BIG IMAGE & BIOGRAPHY)
   ========================================================================== */
.creator-modal-body {
  display: flex;
  gap: 24px;
  align-items: center;
  text-align: left;
  margin-bottom: 20px;
}

.creator-modal-img {
  width: 180px;
  height: 230px;
  object-fit: cover;
  border-radius: 14px;
  border: 3px solid var(--gold);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.8), 0 0 20px var(--gold-glow);
  flex-shrink: 0;
}

.creator-modal-text {
  font-size: 15px;
  color: #c0cadc;
  line-height: 1.6;
}

/* ==========================================================================
   LOADOUT & WEAPON SELECTION SCREEN
   ========================================================================== */
.loadout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  width: 100%;
  margin-bottom: 20px;
}

.weapon-card {
  background: #16192a;
  border: 2px solid var(--border-dark);
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.2s ease;
}

.weapon-card:hover {
  border-color: #55628a;
  transform: translateY(-3px);
  background: #1e223a;
}

.weapon-card.selected {
  border-color: var(--gold);
  background: linear-gradient(180deg, #242944 0%, #171b2d 100%);
  box-shadow: 0 0 20px var(--gold-glow);
}

.weapon-icon-box {
  font-size: 32px;
  margin-bottom: 6px;
}

.weapon-name {
  font-family: 'Cinzel', serif;
  font-size: 16px;
  color: #ffd166;
  font-weight: 700;
  margin-bottom: 4px;
}

.weapon-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.35;
}

/* ==========================================================================
   ROGUE LEVEL UP PERK CARD DRAFTING
   ========================================================================== */
#upgrade-cards-container {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.perk-card {
  width: 200px;
  background: linear-gradient(180deg, #1b2035 0%, #101322 100%);
  border: 2px solid var(--border-dark);
  border-radius: 14px;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,0.7);
  transition: all 0.25s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  position: relative;
  overflow: hidden;
}

.perk-card:hover {
  transform: translateY(-6px) scale(1.03);
}

.perk-card.common { border-color: #5d6785; }
.perk-card.common:hover { border-color: #929dbd; box-shadow: 0 0 20px rgba(146, 157, 189, 0.4); }

.perk-card.rare { border-color: #1d70b8; }
.perk-card.rare:hover { border-color: var(--cyan); box-shadow: 0 0 25px var(--cyan-glow); }

.perk-card.epic { border-color: #7b2cbf; }
.perk-card.epic:hover { border-color: var(--purple); box-shadow: 0 0 30px var(--purple-glow); }

.perk-card.legendary { border-color: #e5a912; }
.perk-card.legendary:hover { border-color: #ffd166; box-shadow: 0 0 35px var(--gold-glow); }

.perk-rarity-badge {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 2px 8px;
  border-radius: 10px;
  margin-bottom: 8px;
}

.perk-card.common .perk-rarity-badge { background: #353b4f; color: #a4afcf; }
.perk-card.rare .perk-rarity-badge { background: #0c3866; color: #70d6ff; }
.perk-card.epic .perk-rarity-badge { background: #44126d; color: #e0aaff; }
.perk-card.legendary .perk-rarity-badge { background: #684a08; color: #ffe6a7; }

.perk-icon {
  font-size: 36px;
  margin-bottom: 8px;
}

.perk-title {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.perk-description {
  font-size: 12px;
  color: #9aa5be;
  line-height: 1.35;
}

/* ==========================================================================
   CONTROLS & SETTINGS MODALS
   ========================================================================== */
.controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  width: 100%;
  margin-bottom: 18px;
  text-align: left;
}

.control-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #141728;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid #2a3148;
  font-size: 14px;
}

.key-tag {
  background: #242c47;
  border: 1px solid #4a5682;
  border-radius: 6px;
  padding: 3px 8px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  color: var(--gold);
  font-size: 13px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.settings-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  margin-bottom: 20px;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #141728;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 15px;
}

.volume-slider {
  width: 140px;
  accent-color: var(--gold);
  cursor: pointer;
}

/* ==========================================================================
   VICTORY & GAME OVER STATS TABLE
   ========================================================================== */
.stats-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 20px 0;
  background: #121524;
  border-radius: 8px;
  overflow: hidden;
}

.stats-table tr {
  border-bottom: 1px solid #23283c;
}

.stats-table tr:last-child {
  border-bottom: none;
}

.stats-table td {
  padding: 8px 14px;
  font-size: 14px;
}

.stats-table td:first-child {
  text-align: left;
  color: var(--text-muted);
}

.stats-table td:last-child {
  text-align: right;
  font-weight: 700;
  color: var(--gold);
}

/* Toast Notifications */
#toast-container {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  z-index: 80;
}

.toast {
  background: rgba(18, 22, 36, 0.95);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  padding: 6px 18px;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  color: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.8), 0 0 15px var(--gold-glow);
  animation: toastFade 3s forwards ease-in-out;
  text-align: center;
}

@keyframes toastFade {
  0% { opacity: 0; transform: translateY(15px); }
  15% { opacity: 1; transform: translateY(0); }
  85% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-15px); }
}

@media (max-width: 600px) {
  .creator-modal-body {
    flex-direction: column;
    text-align: center;
  }
  .creator-modal-img {
    width: 140px;
    height: 180px;
  }
  .modal-title {
    font-size: 26px;
  }
  .game-logo {
    font-size: 34px;
  }
}
