/* ===================================================
   MYSTIC MOO - DIGITAL TCG GAME CLIENT UI/UX
   Authentic Mobile Card Game Engine & Game Interface
   No Web Scrolling • Fullscreen 100dvh • Tactical Game HUD
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,600;0,700;1,600&family=Pridi:wght@400;500;600;700&family=Sarabun:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root,
[data-theme="midnight"] {
  --theme-name: 'midnight';
  --bg-page: #030408;
  --bg-frame: radial-gradient(circle at 50% 15%, #141a36 0%, #080a14 55%, #020306 100%);
  --hud-bg: rgba(10, 14, 28, 0.88);
  --hud-border: rgba(56, 189, 248, 0.35);
  --dock-bg: rgba(8, 11, 22, 0.92);
  --dock-border: rgba(56, 189, 248, 0.4);
  --playmat-bg: radial-gradient(circle at 50% 50%, rgba(26, 36, 70, 0.45) 0%, rgba(6, 8, 16, 0.92) 100%);
  --playmat-border: rgba(56, 189, 248, 0.3);
  --slot-bg: rgba(10, 15, 30, 0.75);
  --slot-border: rgba(56, 189, 248, 0.45);
  --accent-neon: #38bdf8;
  --accent-gold: #f59e0b;
  --text-main: #f8fafc;
  --text-sub: #cbd5e1;
}

[data-theme="parchment"] {
  --theme-name: 'parchment';
  --bg-page: #cbd5e1;
  --bg-frame: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
  --hud-bg: rgba(255, 255, 255, 0.92);
  --hud-border: rgba(2, 132, 199, 0.35);
  --dock-bg: rgba(255, 255, 255, 0.94);
  --dock-border: rgba(2, 132, 199, 0.4);
  --playmat-bg: radial-gradient(circle at 50% 50%, rgba(224, 242, 254, 0.5) 0%, rgba(241, 245, 249, 0.95) 100%);
  --playmat-border: rgba(2, 132, 199, 0.35);
  --slot-bg: rgba(255, 255, 255, 0.85);
  --slot-border: rgba(2, 132, 199, 0.5);
  --accent-neon: #0284c7;
  --accent-gold: #d97706;
  --text-main: #0f172a;
  --text-sub: #334155;
}

[data-theme="emerald"] {
  --theme-name: 'emerald';
  --bg-page: #020608;
  --bg-frame: radial-gradient(circle at 50% 15%, #092e24 0%, #05151c 55%, #020708 100%);
  --hud-bg: rgba(4, 20, 22, 0.88);
  --hud-border: rgba(16, 185, 129, 0.4);
  --dock-bg: rgba(3, 16, 18, 0.92);
  --dock-border: rgba(16, 185, 129, 0.45);
  --playmat-bg: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.25) 0%, rgba(2, 10, 12, 0.95) 100%);
  --playmat-border: rgba(16, 185, 129, 0.35);
  --slot-bg: rgba(4, 18, 20, 0.8);
  --slot-border: rgba(16, 185, 129, 0.5);
  --accent-neon: #10b981;
  --accent-gold: #fbbf24;
  --text-main: #f0fdf4;
  --text-sub: #a7f3d0;
}

/* ================= ZERO SCROLL & GAME CLIENT ROOT ================= */
html, body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden !important;
  background-color: var(--bg-page);
  font-family: 'Sarabun', -apple-system, sans-serif;
  color: var(--text-main);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.game-root {
  height: 100dvh;
  max-height: 100dvh;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  background: var(--bg-frame);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Three.js Background Stage */
#three-global-bg-container {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: auto;
}

/* ================= 1. TOP GAME HUD ================= */
.game-top-bar {
  position: relative;
  z-index: 30;
  height: 62px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(16, 20, 42, 0.96) 0%, rgba(6, 8, 18, 0.98) 100%);
  backdrop-filter: blur(25px);
  border-bottom: 2px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.player-avatar-frame {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 2px solid #ffd700;
  background: #020617;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.5), inset 0 0 8px rgba(245, 158, 11, 0.3);
}

.player-level-badge {
  position: absolute;
  bottom: -6px;
  right: -6px;
  background: linear-gradient(135deg, #fef08a 0%, #f59e0b 50%, #b45309 100%);
  color: #1a0f02;
  font-size: 10px;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 9999px;
  border: 1.5px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.game-currency-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 9999px;
  background: linear-gradient(180deg, rgba(20, 24, 48, 0.85) 0%, rgba(6, 8, 18, 0.95) 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.game-currency-add {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  font-size: 11px;
  font-weight: 900;
  width: 18px;
  height: 18px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.1s ease;
}

.game-currency-add:active {
  transform: scale(0.9);
}

/* ================= 2. ACTIVE GAME STAGE & SCENES ================= */
.game-stage-viewport {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 10;
}

.game-scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 12px 14px 12px;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.97);
  transition: opacity 0.25s cubic-bezier(0.2, 0.8, 0.3, 1), transform 0.25s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.game-scene.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

/* ================= 3. ARENA PLAYMAT & CARD SLOTS ================= */
.arena-playmat {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.playmat-table {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  border: 1.5px solid var(--playmat-border);
  background: var(--playmat-bg);
  box-shadow: inset 0 0 35px rgba(0, 0, 0, 0.8), 0 10px 30px rgba(0, 0, 0, 0.5);
  margin-bottom: 8px;
  overflow: hidden;
}

/* 3 Runic Summoning Slots */
.arena-slots-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  padding: 0 8px;
  z-index: 10;
}

.runic-slot {
  width: 88px;
  height: 136px;
  border-radius: 14px;
  border: 2px dashed var(--slot-border);
  background: var(--slot-bg);
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.25s ease;
  cursor: pointer;
}

.runic-slot.has-card {
  border-style: solid;
  border-color: var(--accent-neon);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.4), inset 0 0 15px rgba(56, 189, 248, 0.2);
}

.runic-slot-tag {
  position: absolute;
  top: -10px;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 9999px;
  background: #020617;
  border: 1px solid var(--slot-border);
  color: var(--accent-neon);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* Player Hand Deck (Fan of Cards at Bottom) */
.player-hand-dock {
  position: relative;
  height: 120px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 4px;
}

.hand-card-item {
  width: 72px;
  height: 110px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #ffd700;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.8);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
  margin-left: -24px;
  transform-origin: bottom center;
}

.hand-card-item:first-child {
  margin-left: 0;
}

.hand-card-item:hover,
.hand-card-item:active {
  transform: translateY(-24px) scale(1.15) !important;
  z-index: 50 !important;
  box-shadow: 0 15px 30px rgba(56, 189, 248, 0.6), 0 0 25px #ffd700;
}

/* ================= 4. TACTILE 3D GAME BUTTONS ================= */
.btn-game-3d {
  position: relative;
  font-family: 'Pridi', serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: none;
  border-radius: 16px;
  padding: 12px 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  user-select: none;
  transition: transform 0.08s ease, filter 0.15s ease;
}

.btn-game-primary {
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
  color: #030816;
  font-weight: 900;
  box-shadow: 0 6px 0 #0369a1, 0 10px 25px rgba(2, 132, 199, 0.5);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn-game-primary:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #0369a1, 0 4px 10px rgba(2, 132, 199, 0.5);
}

.btn-game-gold {
  background: linear-gradient(180deg, #fef08a 0%, #f59e0b 50%, #d97706 100%);
  color: #261502;
  font-weight: 900;
  box-shadow: 0 6px 0 #b45309, 0 10px 25px rgba(245, 158, 11, 0.5);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.btn-game-gold:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #b45309, 0 4px 10px rgba(245, 158, 11, 0.5);
}

/* ================= 5. GACHA & SUMMONING PORTAL ================= */
.summon-portal-circle {
  width: 200px;
  height: 200px;
  border-radius: 9999px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px auto;
  box-shadow: 0 0 50px rgba(56, 189, 248, 0.4), inset 0 0 40px rgba(168, 85, 247, 0.4);
}

.summon-rune-ring {
  position: absolute;
  inset: 0;
  border: 2px dashed var(--accent-neon);
  border-radius: 9999px;
  animation: portalSpin 25s linear infinite;
}

@keyframes portalSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ================= 6. BOTTOM GAME ACTION BAR ================= */
.game-bottom-dock {
  position: relative;
  z-index: 30;
  height: 66px;
  background: var(--dock-bg);
  backdrop-filter: blur(25px);
  border-top: 1.5px solid var(--dock-border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 4px 8px;
  box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.6);
}

.game-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px 10px;
  border-radius: 12px;
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
}

.game-tab-btn.active {
  color: #ffffff;
  transform: translateY(-4px);
}

.game-tab-btn.active .tab-icon-wrap {
  background: linear-gradient(135deg, var(--accent-neon), #818cf8);
  color: #000;
  box-shadow: 0 0 15px var(--accent-neon);
}

.tab-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.game-tab-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ================= 7. GAME READING & GUIDING LIGHT ================= */
.game-dialog-overlay {
  position: absolute;
  bottom: 74px;
  left: 12px;
  right: 12px;
  z-index: 45;
  pointer-events: auto;
  animation: slideUpDialogue 0.3s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}

@keyframes slideUpDialogue {
  0% { transform: translateY(30px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.game-dialog-box {
  background: rgba(8, 12, 28, 0.95);
  backdrop-filter: blur(25px);
  border: 2px solid var(--accent-neon);
  border-radius: 20px;
  padding: 12px 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(56, 189, 248, 0.3);
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.dialog-guide-symbol {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  flex-shrink: 0;
  background: radial-gradient(circle at center, rgba(216, 196, 157, .12), transparent 75%);
}

.dialog-guide-symbol img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dialog-name-tag {
  font-family: 'Pridi', serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.dialog-text-body {
  font-size: 13px;
  color: #f8fafc;
  line-height: 1.5;
  font-weight: 500;
}

.dialog-continue-cursor {
  position: absolute;
  bottom: 8px;
  right: 14px;
  font-size: 10px;
  color: var(--accent-neon);
  font-weight: 800;
  animation: blinkCursor 0.9s infinite alternate;
}

@keyframes blinkCursor {
  0% { opacity: 0.2; transform: translateX(0); }
  100% { opacity: 1; transform: translateX(3px); }
}

/* ================= 8. GAME CLEAR / VICTORY BANNER ================= */
.game-victory-banner {
  position: absolute;
  top: 70px;
  left: 0;
  right: 0;
  z-index: 40;
  text-align: center;
  pointer-events: none;
  animation: dropVictory 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes dropVictory {
  0% { transform: translateY(-60px) scale(0.8); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* Screen Shake Effect */
@keyframes screenShake {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-4px, 3px); }
  40% { transform: translate(4px, -3px); }
  60% { transform: translate(-3px, 2px); }
  80% { transform: translate(3px, -1px); }
}

.screen-shake {
  animation: screenShake 0.35s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* Floating Combat Numbers */
@keyframes floatNumber {
  0% { transform: translateY(0) scale(0.7); opacity: 0; }
  25% { transform: translateY(-15px) scale(1.25); opacity: 1; }
  100% { transform: translateY(-50px) scale(1); opacity: 0; }
}

.combat-number-float {
  position: absolute;
  color: #fef08a;
  font-family: 'Cinzel', 'Pridi', serif;
  font-weight: 900;
  font-size: 20px;
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.9), 0 2px 4px #000;
  pointer-events: none;
  z-index: 50;
  animation: floatNumber 1.1s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}

/* TCG Holographic Shaders & Modals */
.tcg-holo-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.12s ease-out;
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.8), 0 0 0 1.5px rgba(255, 255, 255, 0.25);
  background: #080a14;
}

.tcg-holo-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.85) 0%,
    rgba(244, 114, 182, 0.35) 20%,
    rgba(56, 189, 248, 0.3) 40%,
    rgba(250, 204, 21, 0.25) 60%,
    transparent 80%
  );
  mix-blend-mode: color-dodge;
  opacity: 0.8;
  z-index: 10;
}

.tcg-holo-rainbow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 0, 128, 0.2) 25%,
    rgba(0, 255, 255, 0.25) 45%,
    rgba(255, 230, 0, 0.2) 65%,
    transparent 85%
  );
  background-size: 250% 250%;
  background-position: var(--foil-pos-x, 50%) var(--foil-pos-y, 50%);
  mix-blend-mode: screen;
  z-index: 8;
}

.tcg-badge-ur {
  background: linear-gradient(135deg, #ec4899, #8b5cf6, #3b82f6, #10b981, #f59e0b);
  background-size: 300% 300%;
  animation: urRainbowShift 4s ease infinite;
  color: #ffffff;
  font-weight: 900;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.6);
}

@keyframes urRainbowShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.tcg-badge-ssr {
  background: linear-gradient(135deg, #d4af37 0%, #fff2a8 50%, #aa7c11 100%);
  color: #0f172a;
  font-weight: 900;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.7);
}

/* Card Collection Binder Internal Scroll */
.binder-scroll-container {
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 100%;
  padding-right: 4px;
}

/* ================= 9. AAA LUXURY GRIMOIRE BINDER & CARD SLEEVES ================= */
.binder-mastery-panel {
  background: linear-gradient(180deg, rgba(20, 24, 48, 0.92) 0%, rgba(8, 10, 22, 0.96) 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  border-radius: 18px;
  padding: 8px 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  margin-bottom: 8px;
}

.binder-slot-recess {
  position: relative;
  border-radius: 18px;
  background: radial-gradient(circle at 50% 30%, #101428 0%, #05060d 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 4px 14px rgba(0, 0, 0, 0.9), 0 2px 8px rgba(0, 0, 0, 0.5);
  padding: 4px;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.binder-slot-recess:not(:disabled):hover,
.binder-slot-recess:not(:disabled):active {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.8), 0 0 20px rgba(245, 158, 11, 0.35);
}

/* UR Rainbow Prismatic Hologram */
.card-foil-ur-anim {
  position: relative;
  border: 2px solid transparent !important;
  background: linear-gradient(#080c1d, #080c1d) padding-box,
              linear-gradient(135deg, #ec4899, #8b5cf6, #38bdf8, #10b981, #f59e0b, #ec4899) border-box !important;
  background-size: 300% 300% !important;
  animation: urRainbowBorder 4s linear infinite;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.4), inset 0 0 15px rgba(56, 189, 248, 0.2);
}

@keyframes urRainbowBorder {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* SSR Molten Gold Metallic Relief */
.card-foil-ssr-gold {
  position: relative;
  border: 2px solid transparent !important;
  background: linear-gradient(#0c0f24, #080b18) padding-box,
              linear-gradient(135deg, #fffbeb 0%, #f59e0b 50%, #78350f 100%) border-box !important;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.45), inset 0 0 12px rgba(245, 158, 11, 0.15);
}

/* SR Amethyst Crystal */
.card-foil-sr-crystal {
  position: relative;
  border: 1.5px solid rgba(168, 85, 247, 0.5) !important;
  background: #090c1e;
  box-shadow: 0 0 12px rgba(147, 51, 234, 0.25);
}

/* Locked Card Sleeve */
.card-locked-sleeve {
  position: relative;
  background: radial-gradient(circle at 50% 40%, #0c0e1a 0%, #030408 100%);
  border: 1.5px dashed rgba(255, 255, 255, 0.18);
  opacity: 0.7;
}

.locked-padlock-gem {
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #1e2440, #080a14);
  border: 1.5px solid #f59e0b;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
  animation: pulseLock 2.5s infinite alternate;
}

@keyframes pulseLock {
  0% { transform: scale(0.95); box-shadow: 0 0 10px rgba(245, 158, 11, 0.3); }
  100% { transform: scale(1.05); box-shadow: 0 0 20px rgba(245, 158, 11, 0.6); }
}

/* ================= 10. AAA RUNIC ALTAR SOCKETS (ARENA PLAYMAT) ================= */
.runic-slot {
  width: 96px;
  height: 148px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(14, 18, 38, 0.85) 0%, rgba(5, 7, 16, 0.95) 100%);
  border: 2px solid rgba(245, 158, 11, 0.35);
  box-shadow: inset 0 4px 18px rgba(0, 0, 0, 0.9), 0 4px 15px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

.runic-slot::after {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 12px;
  border: 1px dashed rgba(56, 189, 248, 0.3);
  pointer-events: none;
}

.runic-slot.has-card {
  border-color: #f59e0b;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.4), inset 0 0 20px rgba(56, 189, 248, 0.25);
  transform: translateY(-2px);
}

.runic-slot.has-card::after {
  display: none;
}

/* ================= 11. AAA MOLTEN GOLD & PRISMATIC 3D BUTTONS ================= */
.btn-game-gold-aaa {
  background: linear-gradient(180deg, #fff7ed 0%, #fef08a 15%, #f59e0b 50%, #d97706 85%, #b45309 100%);
  color: #1a0f02;
  font-family: 'Pridi', serif;
  font-weight: 800;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid #fef08a;
  border-radius: 18px;
  box-shadow: 0 6px 0 #78350f, 0 10px 25px rgba(245, 158, 11, 0.5), inset 0 2px 2px rgba(255, 255, 255, 0.6);
  transition: all 0.08s ease;
}

.btn-game-gold-aaa:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #78350f, 0 4px 12px rgba(245, 158, 11, 0.4), inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hidden {
  display: none !important;
}

