* {
  box-sizing: border-box;
}

:root {
  --bg: #070106;
  --bg-2: #11020a;
  --panel: rgba(8, 1, 5, 0.94);
  --panel-2: rgba(14, 3, 8, 0.97);
  --panel-3: rgba(19, 4, 10, 0.98);
  --line: rgba(255, 90, 30, 0.18);
  --line-strong: rgba(255, 102, 48, 0.32);
  --line-2: rgba(130, 64, 255, 0.22);
  --text: #f8ede2;
  --muted: #b89483;
  --muted-2: #d4beb1;
  --orange: #ff8b19;
  --orange-2: #a65f0b;
  --red: #d4432f;
  --red-2: #9f2317;
  --purple: #7126d8;
  --purple-2: #4a1795;
  --green: #00f2a5;
  --cyan: #4de2ff;
  --shadow: 0 28px 72px rgba(0, 0, 0, 0.48);
  --shadow-soft: 0 16px 38px rgba(0, 0, 0, 0.3);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background:
    radial-gradient(circle at top center, rgba(166, 24, 24, 0.2), transparent 28%),
    radial-gradient(circle at 18% 12%, rgba(113, 38, 216, 0.1), transparent 18%),
    radial-gradient(circle at 82% 18%, rgba(255, 139, 25, 0.12), transparent 18%),
    linear-gradient(180deg, #030103 0%, #080106 52%, #030103 100%);
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background:
    linear-gradient(rgba(255, 92, 46, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 92, 46, 0.12) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.28));
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.04), transparent 40%),
    radial-gradient(circle at bottom center, rgba(255, 87, 34, 0.05), transparent 35%);
  mix-blend-mode: screen;
  opacity: 0.35;
}

button {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  padding: 13px 18px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition:
    transform 0.18s ease,
    opacity 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

button:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

button:active:not(:disabled) {
  transform: translateY(0);
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

button::after {
  content: "";
  position: absolute;
  top: -120%;
  left: -35%;
  width: 34%;
  height: 280%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.18),
    rgba(255, 255, 255, 0)
  );
  transform: rotate(22deg);
  transition: left 0.45s ease;
  pointer-events: none;
}

button:hover:not(:disabled)::after {
  left: 120%;
}

#connectWalletBtn,
#startGameBtn,
#claimRewardBtn,
#spinOracleBtn,
#dailyRewardBtn {
  color: #fff8f1;
  background: linear-gradient(180deg, #ea5a3d 0%, #b2291b 100%);
  box-shadow:
    0 14px 28px rgba(159, 35, 23, 0.3),
    0 0 0 1px rgba(255, 122, 90, 0.18) inset;
}

#openStoreBtn,
#openOracleBtn,
#buyDamageBtn,
#buySpeedBtn,
#buySkinVoidBtn,
#buySkinSolarBtn,
#buySkinBloodBtn,
#buySkinAshBtn,
#buySkinNunBtn,
#buySkinFallenKingBtn,
#buySkinBrokenAngelBtn,
#buySplitShotBtn,
#buyFocusLensBtn,
#buyBloodCoreBtn,
#buyNightVeilBtn,
#buyArmorBoostBtn,
#buyCritBoostBtn,
#buyChainBurstBtn,
#buyEmberHeartBtn,
#buySoulMagnetBtn,
#buyGlassCannonBtn,
.hud-btn,
.shop-btn {
  color: #fff7ea;
  background: linear-gradient(180deg, #c97b16 0%, #8a4f07 100%);
  box-shadow:
    0 12px 22px rgba(176, 105, 14, 0.22),
    0 0 0 1px rgba(255, 188, 98, 0.12) inset;
}

.btn-secondary,
#disconnectWalletBtn,
#menuDisconnectBtn,
#closeStoreModalBtn,
#closeOracleModalBtn,
#backToMenuFromGameBtn {
  color: #f7d8c9;
  background: rgba(17, 5, 10, 0.95);
  border: 1px solid rgba(255, 110, 61, 0.18);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
}

.btn-ghost {
  color: #c78af5;
  background: rgba(18, 5, 26, 0.94);
  border: 1px solid rgba(113, 38, 216, 0.3);
}

.btn-block {
  width: 100%;
}

.app-shell {
  width: 100%;
  height: 100%;
  position: relative;
}

.screen {
  display: none;
  width: 100%;
  height: 100%;
}

.screen.active {
  display: block;
  animation: screenFade 0.34s ease;
}

.screen--center {
  height: 100%;
  padding: 14px;
  overflow: hidden;
}

.screen--center.active {
  display: flex;
  align-items: stretch;
}

.panel {
  width: 100%;
  height: 100%;
  min-height: 0;
  flex: 1 1 auto;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(10, 2, 7, 0.98), rgba(18, 4, 10, 0.98));
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top center, rgba(255, 109, 63, 0.08), transparent 28%),
    linear-gradient(
      120deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.03) 50%,
      rgba(255, 255, 255, 0) 100%
    );
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.hero-panel,
.menu-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(390px, 430px);
  gap: 16px;
  padding: 16px;
  align-items: stretch;
  height: 100%;
  min-height: 0;
}

.hero-copy,
.menu-main,
.menu-side,
.hero-status-grid {
  min-width: 0;
  min-height: 0;
}

.hero-copy,
.menu-main {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px;
  border-radius: 24px;
  background:
    radial-gradient(circle at center, rgba(113, 38, 216, 0.1), transparent 24%),
    radial-gradient(circle at top center, rgba(212, 67, 47, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(8, 1, 5, 0.98), rgba(17, 3, 8, 0.98));
  border: 1px solid rgba(255, 106, 55, 0.16);
  overflow: hidden;
  position: relative;
}

.hero-copy::before,
.menu-main::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background:
    linear-gradient(rgba(255, 92, 46, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 92, 46, 0.16) 1px, transparent 1px);
  background-size: 40px 40px;
}

.hero-copy::after,
.menu-main::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 77, 53, 0.14), rgba(225, 77, 53, 0));
  filter: blur(24px);
  pointer-events: none;
}

.hero-copy {
  justify-content: flex-start;
  padding-top: 72px;
}

.hero-copy .hero-text {
  max-width: 560px;
}

.hero-copy .hero-actions {
  margin-top: 30px;
}

.menu-main {
  justify-content: flex-start;
  padding-top: 24px;
}

.hero-status-grid,
.menu-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
  padding-bottom: 28px;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 110, 61, 0.75) rgba(255, 255, 255, 0.04);
}

.hero-status-grid > *,
.menu-side > * {
  flex: 0 0 auto;
}

.hero-status-grid::-webkit-scrollbar,
.menu-side::-webkit-scrollbar,
.modal-panel--store::-webkit-scrollbar {
  width: 12px;
}

.hero-status-grid::-webkit-scrollbar-track,
.menu-side::-webkit-scrollbar-track,
.modal-panel--store::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.hero-status-grid::-webkit-scrollbar-thumb,
.menu-side::-webkit-scrollbar-thumb,
.modal-panel--store::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255, 123, 89, 0.9), rgba(185, 45, 34, 0.9));
  border-radius: 999px;
  border: 2px solid rgba(12, 2, 6, 0.95);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  letter-spacing: 0.34em;
  font-size: 11px;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.brand-title,
.menu-title {
  margin: 0 0 12px;
  line-height: 0.9;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, #ff7b59 0%, #e14d35 52%, #b92d22 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 0 12px rgba(225, 77, 53, 0.08),
    0 0 26px rgba(225, 77, 53, 0.04);
}

.brand-title {
  font-size: 72px;
}

.menu-title {
  font-size: clamp(56px, 5vw, 74px);
}

.hero-text,
.menu-subtitle,
.card-copy {
  margin: 0;
  color: #d3bfb2;
  line-height: 1.65;
  font-size: 16px;
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-actions,
.menu-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  position: relative;
  z-index: 1;
}

.info-card {
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(12, 2, 6, 0.98), rgba(8, 1, 4, 0.96));
  border: 1px solid rgba(255, 110, 61, 0.12);
  min-height: 0;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.015),
    var(--shadow-soft);
  animation: cardFloat 0.5s ease;
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0) 36%);
}

.info-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
  color: var(--text);
  position: relative;
  z-index: 1;
}

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(18, 5, 10, 0.9);
  border: 1px solid rgba(255, 110, 61, 0.08);
  font-size: 14px;
  margin-bottom: 10px;
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    transform 0.16s ease;
  position: relative;
  z-index: 1;
  min-width: 0;
}

.info-row:hover {
  border-color: rgba(255, 118, 78, 0.18);
  background: rgba(24, 6, 12, 0.95);
  transform: translateY(-1px);
}

.info-row:last-child {
  margin-bottom: 0;
}

.info-row--stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.info-row span {
  color: var(--muted);
  flex-shrink: 0;
}

.info-row strong {
  color: var(--text);
  text-align: right;
  min-width: 0;
  max-width: 100%;
  word-break: normal;
  overflow-wrap: normal;
}

.info-row--stack strong {
  display: block;
  width: 100%;
  text-align: left;
  line-height: 1.35;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#walletAddress,
#menuWalletAddress {
  display: block;
  width: 100%;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.menu-main-copy {
  width: 100%;
  max-width: 760px;
  flex: 0 0 auto;
}

.menu-main-visual {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0 0;
  position: relative;
  margin-top: 10px;
}

.menu-main-visual::before {
  content: "";
  position: absolute;
  width: 500px;
  max-width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 77, 53, 0.14), rgba(225, 77, 53, 0));
  filter: blur(30px);
  animation: pulseGlow 3.6s ease-in-out infinite;
}

.menu-main-visual::after {
  content: "";
  position: absolute;
  width: 360px;
  max-width: 56%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 112, 84, 0.1);
  opacity: 0.4;
}

.menu-logo-hero {
  display: block;
  width: min(100%, 400px);
  max-height: 220px;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
  position: relative;
  z-index: 1;
  filter:
    drop-shadow(0 18px 40px rgba(0, 0, 0, 0.42))
    drop-shadow(0 0 18px rgba(225, 77, 53, 0.14));
  animation: floatLogo 4.6s ease-in-out infinite;
}

.menu-actions {
  align-items: center;
}

.menu-actions #menuDisconnectBtn {
  margin-left: auto;
}

/* GAME */

.screen--game {
  position: relative;
  overflow: hidden;
}

.game-shell {
  width: 100%;
  height: 100%;
  position: relative;
  background:
    linear-gradient(180deg, #14030a 0%, #12020a 10%, #0a0105 100%);
}

.game-hud {
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  min-height: 50px;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 62, 0, 0.18);
  background: rgba(0, 0, 0, 0.92);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 12px 26px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
}

.hud-left,
.hud-right {
  display: flex;
  align-items: stretch;
  gap: 10px;
  min-width: 0;
}

.hud-box,
.hud-mini {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding: 0 12px;
  border-right: 1px solid rgba(255, 62, 0, 0.18);
}

.hud-box:last-child {
  border-right: 0;
}

.hud-label,
.hud-mini-label {
  color: #a78b7f;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hud-box strong,
.hud-mini strong {
  color: #f7e8da;
  font-size: 14px;
}

.hud-box--hearts,
.hud-box--dash,
.hud-box--kills {
  padding-left: 10px;
  padding-right: 10px;
}

.hearts-meter,
.dash-meter {
  display: flex;
  align-items: center;
  gap: 6px;
}

.heart {
  width: 16px;
  height: 14px;
  position: relative;
  transform: rotate(-45deg);
  background: #3b1410;
  border-radius: 2px;
}

.heart::before,
.heart::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 14px;
  border-radius: 50%;
  background: inherit;
}

.heart::before {
  top: -8px;
  left: 0;
}

.heart::after {
  top: 0;
  left: 8px;
}

.heart.filled {
  background: #ffd4af;
  box-shadow: 0 0 10px rgba(255, 212, 175, 0.22);
}

.dash-seg {
  width: 12px;
  height: 10px;
  border: 1px solid rgba(255, 180, 84, 0.45);
  background: rgba(255, 136, 34, 0.08);
}

.dash-seg.filled {
  background: #c8442a;
}

.dash-seg.filled-2 {
  background: #f18b1f;
}

.hud-mini {
  border-right: 0;
  padding: 0 8px;
  flex-direction: column;
  gap: 2px;
}

.hud-btn {
  min-width: 94px;
  padding: 10px 14px;
  font-size: 11px;
}

.hud-btn--danger {
  background: rgba(22, 4, 8, 0.96);
}

.game-banner {
  position: absolute;
  top: 62px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  pointer-events: none;
}

.game-banner-inner {
  min-width: 340px;
  text-align: center;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 145, 41, 0.55);
  background: rgba(16, 4, 8, 0.92);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
  animation: bannerFloat 2.8s ease-in-out infinite;
}

.banner-small {
  display: block;
  color: #8d6d61;
  font-size: 9px;
  letter-spacing: 0.28em;
  margin-bottom: 3px;
}

.game-banner strong {
  color: #fff0e1;
  font-size: 16px;
}

.game-canvas-wrap {
  position: absolute;
  left: 0;
  right: 0;
  top: 52px;
  bottom: 24px;
}

#gameCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.game-footer-hint {
  position: absolute;
  right: 12px;
  bottom: 6px;
  z-index: 16;
  color: rgba(236, 212, 199, 0.26);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* MODALS */

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
}

.modal-shell.active {
  display: block;
  animation: modalFade 0.2s ease;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}

.modal-panel {
  position: absolute;
  z-index: 2;
  border-radius: 20px;
  border: 1px solid rgba(255, 98, 38, 0.22);
  background: rgba(5, 1, 4, 0.97);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  animation: modalRise 0.24s ease;
}

.modal-panel--store {
  top: 54%;
  left: 50%;
  width: min(1180px, calc(100vw - 48px));
  max-height: calc(100vh - 90px);
  transform: translate(-50%, -50%);
  padding: 20px 22px 18px;
  overflow: auto;
}

.modal-panel--oracle {
  top: 54%;
  left: 50%;
  width: min(420px, calc(100vw - 28px));
  transform: translate(-50%, -50%);
  padding: 0;
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.modal-title {
  margin: 0 0 8px;
  color: #f39a2f;
  font-size: 22px;
  letter-spacing: 0.12em;
}

.modal-balance {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--green);
  border: 1px solid rgba(0, 242, 165, 0.25);
  background: rgba(0, 30, 21, 0.82);
  font-size: 12px;
}

.close-btn {
  min-width: 112px;
}

.store-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.tab-btn {
  background: rgba(13, 4, 8, 0.98);
  color: #e2c4b5;
  border: 1px solid rgba(255, 110, 61, 0.12);
}

.tab-btn.active {
  color: #fff4e8;
  background: rgba(102, 27, 18, 0.98);
  border-color: rgba(255, 116, 74, 0.34);
  box-shadow: 0 0 0 1px rgba(255, 130, 86, 0.08) inset;
}

.store-tab {
  display: none;
}

.store-tab.active {
  display: block;
  animation: screenFade 0.24s ease;
}

.store-header-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.store-collection-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #f2d9cb;
  font-size: 12px;
  border: 1px solid rgba(255, 116, 74, 0.18);
  background: rgba(22, 6, 11, 0.82);
}

.shop-grid {
  display: grid;
  gap: 16px;
}

.shop-grid--characters {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.shop-grid--items {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shop-grid--small {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shop-card {
  min-height: 320px;
  padding: 18px;
  border-radius: 14px;
  background: rgba(9, 1, 5, 0.98);
  border: 1px solid rgba(255, 64, 24, 0.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.shop-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0) 32%);
}

.shop-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 108, 66, 0.3);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.24);
}

.shop-card--equipped {
  border-color: rgba(0, 242, 165, 0.55);
  box-shadow:
    inset 0 0 0 1px rgba(0, 242, 165, 0.1),
    0 12px 26px rgba(0, 70, 50, 0.18);
}

.shop-card--owned {
  border-color: rgba(0, 242, 165, 0.24);
}

.shop-rarity {
  color: #b8a59a;
  font-size: 10px;
  letter-spacing: 0.24em;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.shop-rarity--rare {
  color: #3dc8ff;
}

.shop-rarity--epic {
  color: #b264ff;
}

.shop-rarity--legend {
  color: #ff9c31;
}

.shop-owned-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  margin-bottom: 10px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f4c7b1;
  background: rgba(58, 13, 15, 0.9);
  border: 1px solid rgba(255, 95, 65, 0.18);
  position: relative;
  z-index: 1;
}

.shop-owned-badge--owned {
  color: #7ef2c8;
  background: rgba(4, 47, 33, 0.92);
  border-color: rgba(0, 242, 165, 0.26);
}

.shop-owned-badge--equipped {
  color: #8ef5d8;
  background: rgba(4, 54, 38, 0.96);
  border-color: rgba(0, 242, 165, 0.36);
  box-shadow: 0 0 0 1px rgba(0, 242, 165, 0.08) inset;
}

.shop-sprite {
  width: 76px;
  height: 76px;
  margin: 12px auto 14px;
  image-rendering: pixelated;
  position: relative;
  z-index: 1;
  filter:
    drop-shadow(0 10px 12px rgba(0, 0, 0, 0.34))
    drop-shadow(0 0 10px rgba(255, 120, 64, 0.08));
}

.shop-sprite::before {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  image-rendering: pixelated;
}

/* SKINS */

.shop-sprite--cordero::before,
.shop-sprite--lamb::before {
  background:
    linear-gradient(#f3ded0 0 0) 28px 4px/20px 12px no-repeat,
    linear-gradient(#f3ded0 0 0) 18px 16px/40px 24px no-repeat,
    linear-gradient(#20110f 0 0) 24px 24px/5px 5px no-repeat,
    linear-gradient(#20110f 0 0) 48px 24px/5px 5px no-repeat,
    linear-gradient(#f0b6b3 0 0) 34px 32px/8px 7px no-repeat,
    linear-gradient(#e2a1a2 0 0) 24px 40px/7px 14px no-repeat,
    linear-gradient(#e2a1a2 0 0) 46px 40px/7px 14px no-repeat,
    linear-gradient(#fff3e7 0 0) 18px 10px/8px 8px no-repeat,
    linear-gradient(#fff3e7 0 0) 50px 10px/8px 8px no-repeat;
}

.shop-sprite--sectorio::before,
.shop-sprite--void::before {
  background:
    linear-gradient(#3d2180 0 0) 25px 4px/26px 12px no-repeat,
    linear-gradient(#161329 0 0) 17px 16px/42px 26px no-repeat,
    linear-gradient(#2b204d 0 0) 25px 42px/26px 10px no-repeat,
    linear-gradient(#ff5d2e 0 0) 23px 26px/6px 7px no-repeat,
    linear-gradient(#ff5d2e 0 0) 47px 26px/6px 7px no-repeat,
    linear-gradient(#ff5d2e 0 0) 25px 52px/7px 15px no-repeat,
    linear-gradient(#ff5d2e 0 0) 44px 52px/7px 15px no-repeat,
    linear-gradient(#5b2ca3 0 0) 30px 0/6px 12px no-repeat,
    linear-gradient(#5b2ca3 0 0) 42px 0/6px 12px no-repeat;
}

.shop-sprite--hereje::before,
.shop-sprite--solar::before {
  background:
    linear-gradient(#ffb019 0 0) 18px 0/8px 14px no-repeat,
    linear-gradient(#ffb019 0 0) 50px 0/8px 14px no-repeat,
    linear-gradient(#8f0707 0 0) 22px 8px/32px 14px no-repeat,
    linear-gradient(#d61f14 0 0) 14px 22px/48px 26px no-repeat,
    linear-gradient(#ffd36a 0 0) 24px 28px/6px 6px no-repeat,
    linear-gradient(#ffd36a 0 0) 46px 28px/6px 6px no-repeat,
    linear-gradient(#ff7a1c 0 0) 24px 48px/7px 16px no-repeat,
    linear-gradient(#ff7a1c 0 0) 46px 48px/7px 16px no-repeat,
    linear-gradient(#5a0909 0 0) 30px 36px/16px 6px no-repeat;
}

.shop-sprite--dios-sangre::before,
.shop-sprite--blood::before {
  background:
    linear-gradient(#ffb84d 0 0) 16px 0/9px 15px no-repeat,
    linear-gradient(#ffb84d 0 0) 51px 0/9px 15px no-repeat,
    linear-gradient(#5f0505 0 0) 22px 8px/32px 14px no-repeat,
    linear-gradient(#d31111 0 0) 12px 22px/52px 27px no-repeat,
    linear-gradient(#ffb84d 0 0) 24px 28px/6px 6px no-repeat,
    linear-gradient(#ffb84d 0 0) 48px 28px/6px 6px no-repeat,
    linear-gradient(#330303 0 0) 30px 36px/18px 7px no-repeat,
    linear-gradient(#ff7b1f 0 0) 24px 50px/8px 17px no-repeat,
    linear-gradient(#ff7b1f 0 0) 46px 50px/8px 17px no-repeat,
    linear-gradient(#ff4251 0 0) 6px 28px/8px 16px no-repeat,
    linear-gradient(#ff4251 0 0) 64px 28px/8px 16px no-repeat;
}

.shop-sprite--peregrino-ceniza::before {
  background:
    linear-gradient(#2b1a12 0 0) 26px 4px/24px 12px no-repeat,
    linear-gradient(#7a3d1b 0 0) 18px 16px/40px 22px no-repeat,
    linear-gradient(#3a2114 0 0) 14px 28px/48px 20px no-repeat,
    linear-gradient(#ffb223 0 0) 22px 22px/6px 7px no-repeat,
    linear-gradient(#ffb223 0 0) 49px 22px/6px 7px no-repeat,
    linear-gradient(#b65322 0 0) 22px 48px/34px 10px no-repeat,
    linear-gradient(#ff7b36 0 0) 25px 58px/7px 16px no-repeat,
    linear-gradient(#ff7b36 0 0) 45px 58px/7px 16px no-repeat,
    linear-gradient(#3b2418 0 0) 30px 0/5px 10px no-repeat,
    linear-gradient(#3b2418 0 0) 42px 0/5px 10px no-repeat;
}

.shop-sprite--monja-vacio::before {
  background:
    linear-gradient(#0e0b1d 0 0) 24px 3px/28px 13px no-repeat,
    linear-gradient(#1c1633 0 0) 16px 16px/44px 30px no-repeat,
    linear-gradient(#5b2ca3 0 0) 22px 22px/32px 24px no-repeat,
    linear-gradient(#4de2ff 0 0) 25px 28px/6px 6px no-repeat,
    linear-gradient(#4de2ff 0 0) 46px 28px/6px 6px no-repeat,
    linear-gradient(#b785ff 0 0) 32px 42px/13px 7px no-repeat,
    linear-gradient(#8d6dff 0 0) 20px 50px/8px 16px no-repeat,
    linear-gradient(#8d6dff 0 0) 49px 50px/8px 16px no-repeat,
    linear-gradient(#4de2ff 0 0) 6px 26px/10px 5px no-repeat,
    linear-gradient(#4de2ff 0 0) 60px 26px/10px 5px no-repeat;
}

.shop-sprite--rey-caido::before {
  background:
    linear-gradient(#ffd36a 0 0) 16px 2px/9px 9px no-repeat,
    linear-gradient(#ffd36a 0 0) 34px 0/9px 12px no-repeat,
    linear-gradient(#ffd36a 0 0) 52px 2px/9px 9px no-repeat,
    linear-gradient(#271010 0 0) 22px 12px/34px 14px no-repeat,
    linear-gradient(#6b0f0f 0 0) 12px 26px/54px 26px no-repeat,
    linear-gradient(#ffd36a 0 0) 24px 32px/6px 6px no-repeat,
    linear-gradient(#ffd36a 0 0) 48px 32px/6px 6px no-repeat,
    linear-gradient(#1a0505 0 0) 30px 40px/18px 7px no-repeat,
    linear-gradient(#a8241b 0 0) 23px 52px/9px 18px no-repeat,
    linear-gradient(#a8241b 0 0) 46px 52px/9px 18px no-repeat,
    linear-gradient(#ffd36a 0 0) 8px 34px/6px 22px no-repeat,
    linear-gradient(#ffd36a 0 0) 64px 34px/6px 22px no-repeat;
}

.shop-sprite--arcangel-roto::before {
  background:
    linear-gradient(#ffffff 0 0) 30px 3px/17px 12px no-repeat,
    linear-gradient(#ece7d9 0 0) 22px 15px/34px 24px no-repeat,
    linear-gradient(#d8b86a 0 0) 18px 39px/42px 16px no-repeat,
    linear-gradient(#ffffff 0 0) 2px 20px/18px 8px no-repeat,
    linear-gradient(#ffffff 0 0) 56px 20px/18px 8px no-repeat,
    linear-gradient(#ffffff 0 0) 0 29px/14px 8px no-repeat,
    linear-gradient(#ffffff 0 0) 62px 29px/14px 8px no-repeat,
    linear-gradient(#111111 0 0) 28px 26px/5px 5px no-repeat,
    linear-gradient(#111111 0 0) 45px 26px/5px 5px no-repeat,
    linear-gradient(#9a7834 0 0) 25px 55px/8px 16px no-repeat,
    linear-gradient(#9a7834 0 0) 45px 55px/8px 16px no-repeat,
    linear-gradient(#d8b86a 0 0) 34px 0/9px 5px no-repeat;
}

/* ITEM ICONS */

.shop-item-icon {
  width: 74px;
  height: 74px;
  margin: 10px auto 14px;
  border-radius: 14px;
  position: relative;
  z-index: 1;
  background: rgba(18, 5, 10, 0.78);
  border: 1px solid rgba(255, 121, 76, 0.14);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 10px 18px rgba(0, 0, 0, 0.22);
}

.shop-item-icon::before,
.shop-item-icon::after {
  content: "";
  position: absolute;
}

.shop-item-icon--damage-boost::before,
.shop-item-icon--damage::before {
  left: 31px;
  top: 12px;
  width: 12px;
  height: 46px;
  background: linear-gradient(180deg, #ffb24c, #ff6d1f);
  clip-path: polygon(40% 0, 100% 0, 56% 40%, 100% 40%, 28% 100%, 44% 58%, 0 58%);
}

.shop-item-icon--split-shot::before,
.shop-item-icon--split::before {
  left: 18px;
  top: 18px;
  width: 10px;
  height: 34px;
  background: #ff9f2f;
  transform: rotate(-22deg);
}

.shop-item-icon--split-shot::after,
.shop-item-icon--split::after {
  right: 18px;
  top: 18px;
  width: 10px;
  height: 34px;
  background: #ff9f2f;
  transform: rotate(22deg);
}

.shop-item-icon--focus-lens::before,
.shop-item-icon--focus::before {
  left: 18px;
  top: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 5px solid #66d9ff;
}

.shop-item-icon--focus-lens::after,
.shop-item-icon--focus::after {
  right: 10px;
  bottom: 12px;
  width: 16px;
  height: 6px;
  background: #66d9ff;
  transform: rotate(38deg);
  transform-origin: left center;
}

.shop-item-icon--chain-burst::before {
  left: 14px;
  top: 30px;
  width: 46px;
  height: 9px;
  background: #7bdcff;
  box-shadow:
    0 -14px 0 -2px #7bdcff,
    0 14px 0 -2px #7bdcff;
  transform: rotate(-18deg);
}

.shop-item-icon--chain-burst::after {
  left: 29px;
  top: 17px;
  width: 16px;
  height: 40px;
  border: 4px solid #7bdcff;
  border-radius: 999px;
  transform: rotate(28deg);
}

.shop-item-icon--glass-cannon::before {
  left: 18px;
  top: 12px;
  width: 38px;
  height: 46px;
  background: linear-gradient(180deg, #ffffff, #5edcff);
  clip-path: polygon(50% 0, 90% 18%, 78% 100%, 22% 100%, 10% 18%);
}

.shop-item-icon--glass-cannon::after {
  left: 28px;
  top: 22px;
  width: 18px;
  height: 18px;
  background: #ff4251;
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(255, 66, 81, 0.65);
}

.shop-item-icon--crit-boost::before {
  left: 14px;
  top: 14px;
  width: 46px;
  height: 46px;
  border: 4px solid #ffb223;
  transform: rotate(45deg);
}

.shop-item-icon--crit-boost::after {
  left: 30px;
  top: 30px;
  width: 14px;
  height: 14px;
  background: #ff4251;
  border-radius: 50%;
}

.shop-item-icon--speed-boost::before,
.shop-item-icon--speed::before {
  left: 14px;
  top: 30px;
  width: 46px;
  height: 10px;
  background: linear-gradient(90deg, #00f2a5, #5ffff3);
  border-radius: 999px;
}

.shop-item-icon--speed-boost::after,
.shop-item-icon--speed::after {
  right: 10px;
  top: 24px;
  width: 0;
  height: 0;
  border-left: 16px solid #5ffff3;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
}

.shop-item-icon--blood-core::before,
.shop-item-icon--blood::before {
  left: 22px;
  top: 14px;
  width: 30px;
  height: 42px;
  background: #d11818;
  border-radius: 50% 50% 55% 55%;
}

.shop-item-icon--blood-core::after,
.shop-item-icon--blood::after {
  left: 31px;
  top: 46px;
  width: 12px;
  height: 18px;
  background: #ff7b36;
  border-radius: 0 0 10px 10px;
}

.shop-item-icon--night-veil::before,
.shop-item-icon--veil::before {
  left: 18px;
  top: 12px;
  width: 38px;
  height: 46px;
  background: linear-gradient(180deg, #6b2aff, #b36dff);
  clip-path: polygon(20% 0, 80% 0, 100% 25%, 86% 100%, 14% 100%, 0 25%);
}

.shop-item-icon--night-veil::after,
.shop-item-icon--veil::after {
  left: 29px;
  top: 24px;
  width: 16px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.shop-item-icon--armor-boost::before {
  left: 18px;
  top: 10px;
  width: 38px;
  height: 52px;
  background: linear-gradient(180deg, #a66d32, #5a3218);
  clip-path: polygon(50% 0, 92% 14%, 82% 68%, 50% 100%, 18% 68%, 8% 14%);
}

.shop-item-icon--armor-boost::after {
  left: 31px;
  top: 21px;
  width: 12px;
  height: 28px;
  background: #ffd36a;
  box-shadow: 0 8px 0 -3px #ffd36a;
}

.shop-item-icon--ember-heart::before {
  left: 23px;
  top: 18px;
  width: 28px;
  height: 36px;
  background: #d11818;
  border-radius: 50% 50% 45% 45%;
  box-shadow: 0 0 18px rgba(255, 123, 54, 0.5);
}

.shop-item-icon--ember-heart::after {
  left: 31px;
  top: 45px;
  width: 13px;
  height: 20px;
  background: linear-gradient(180deg, #ffd36a, #ff7b36);
  border-radius: 0 0 999px 999px;
}

.shop-item-icon--soul-magnet::before {
  left: 14px;
  top: 30px;
  width: 46px;
  height: 10px;
  background: linear-gradient(90deg, #00f2a5, #5ffff3);
  border-radius: 999px;
}

.shop-item-icon--soul-magnet::after {
  left: 24px;
  top: 16px;
  width: 26px;
  height: 26px;
  border: 5px solid #00f2a5;
  border-top-color: transparent;
  border-radius: 50%;
  transform: rotate(45deg);
}

.shop-card h3 {
  margin: 0 0 8px;
  font-size: 28px;
  color: #fff0e1;
  position: relative;
  z-index: 1;
}

.shop-card p {
  margin: 0 0 8px;
  color: #c5a99b;
  position: relative;
  z-index: 1;
}

.shop-stats {
  color: #00ffaa;
  font-size: 12px;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.shop-price {
  margin-top: auto;
  margin-bottom: 14px;
  color: #f39a2f;
  font-size: 28px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.shop-price--free {
  color: #00ff99;
}

.shop-btn {
  width: 100%;
  position: relative;
  z-index: 1;
}

.shop-btn--equipped {
  background: rgba(0, 70, 50, 0.95);
  color: #aaf8d5;
}

.shop-btn--owned {
  background: rgba(17, 64, 48, 0.96);
  color: #aef2d5;
  border: 1px solid rgba(0, 242, 165, 0.18);
  box-shadow: none;
}

.oracle-box {
  padding: 28px 26px 22px;
  text-align: center;
  border: 1px solid rgba(113, 38, 216, 0.26);
  background: rgba(7, 1, 9, 0.98);
}

.oracle-head h2 {
  margin: 0 0 6px;
  font-size: 26px;
  color: #a85bff;
  letter-spacing: 0.14em;
}

.oracle-head p {
  margin: 0 0 18px;
  color: #9d89a9;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.oracle-wheel-wrap {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto 18px;
}

.oracle-wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid rgba(113, 38, 216, 0.5);
  background:
    conic-gradient(
      #1e99b9 0deg 70deg,
      #7e4f1b 70deg 120deg,
      #5c279d 120deg 180deg,
      #0d8565 180deg 260deg,
      #117a5b 260deg 320deg,
      #99631f 320deg 360deg
    );
  transition: transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 0 6px rgba(113, 38, 216, 0.06),
    0 16px 32px rgba(0, 0, 0, 0.24);
}

.oracle-wheel.spinning {
  transform: rotate(1260deg);
}

.oracle-wheel-center {
  position: absolute;
  inset: 50%;
  width: 36px;
  height: 36px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #09010d;
  border: 3px solid #5d24b8;
}

.oracle-pointer {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 18px solid #ff9624;
}

.oracle-message {
  margin: 0 0 18px;
  color: #fff0e1;
  font-size: 20px;
}

.oracle-actions {
  display: grid;
  gap: 10px;
}

/* TOASTS */

.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(380px, calc(100vw - 32px));
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 120, 80, 0.22);
  background:
    linear-gradient(180deg, rgba(32, 5, 9, 0.96), rgba(18, 3, 6, 0.96));
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 90, 60, 0.08) inset;
  color: #f6e7df;
  padding: 16px 18px;
  transform: translateY(-12px) scale(0.98);
  opacity: 0;
  transition: all 0.22s ease;
}

.toast--show {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.toast--hide {
  transform: translateY(-10px) scale(0.98);
  opacity: 0;
}

.toast::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 18px 0 0 18px;
}

.toast--success::before {
  background: linear-gradient(180deg, #ff8a5c, #ff4d2d);
}

.toast--error::before {
  background: linear-gradient(180deg, #ff5f6d, #ff2d55);
}

.toast--warning::before {
  background: linear-gradient(180deg, #ffbe55, #ff8c1a);
}

.toast--info::before {
  background: linear-gradient(180deg, #a35cff, #6a5cff);
}

.toast__content {
  padding-right: 38px;
}

.toast__title {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: #fff4ee;
}

.toast__message {
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(255, 240, 232, 0.92);
}

.toast__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.2s ease, transform 0.2s ease;
}

.toast__close:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: scale(1.05);
}

/* ANIMATIONS */

@keyframes screenFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modalFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalRise {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 12px));
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

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

@keyframes pulseGlow {
  0%,
  100% {
    transform: scale(0.96);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

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

@keyframes cardFloat {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE */

@media (max-width: 1280px) {
  .shop-grid--characters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-grid--items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1220px) {
  .screen--center {
    overflow-y: auto;
  }

  .screen--center.active {
    display: block;
  }

  .panel {
    height: auto;
    min-height: calc(100vh - 28px);
  }

  .hero-panel,
  .menu-panel {
    grid-template-columns: 1fr;
    height: auto;
  }

  .hero-copy,
  .menu-main {
    height: auto;
    padding-top: 40px;
  }

  .hero-status-grid,
  .menu-side {
    height: auto;
    max-height: none;
    overflow: visible;
    padding-right: 0;
    padding-bottom: 0;
  }

  .menu-main-visual {
    min-height: 160px;
    margin-top: 18px;
    padding-top: 8px;
  }

  .menu-logo-hero {
    max-height: 200px;
  }

  .menu-actions #menuDisconnectBtn {
    margin-left: 0;
  }
}

@media (max-width: 900px) {
  .game-hud {
    height: auto;
    min-height: 58px;
    flex-direction: column;
    align-items: stretch;
    padding: 6px;
  }

  .hud-left,
  .hud-right {
    flex-wrap: wrap;
  }

  .game-canvas-wrap {
    top: 112px;
  }

  .game-banner {
    top: 124px;
  }

  .brand-title {
    font-size: 52px;
  }

  .menu-title {
    font-size: 44px;
  }

  .hero-copy,
  .menu-main,
  .info-card {
    padding: 18px;
  }

  .store-header-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 700px) {
  .shop-grid--characters,
  .shop-grid--items,
  .shop-grid--small {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .screen--center {
    padding: 10px;
    overflow-y: auto;
  }

  .panel {
    min-height: calc(100vh - 20px);
  }

  .hero-panel,
  .menu-panel {
    padding: 10px;
    gap: 10px;
  }

  .hero-copy,
  .menu-main {
    padding: 22px 16px 18px;
  }

  .hero-actions,
  .menu-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .menu-main-visual {
    min-height: 120px;
    margin-top: 12px;
  }

  .menu-logo-hero {
    width: min(100%, 280px);
    max-height: 150px;
  }

  .modal-panel--store {
    width: calc(100vw - 18px);
    max-height: calc(100vh - 18px);
  }

  .modal-header {
    flex-direction: column;
  }

  .store-tabs {
    flex-wrap: wrap;
  }

  .oracle-wheel-wrap {
    width: 190px;
    height: 190px;
  }

  .info-card h3 {
    font-size: 20px;
  }

  .toast-container {
    top: 16px;
    right: 16px;
    left: 16px;
    width: auto;
  }
}
/* =========================
   ORÁCULO - MEJORA VISUAL FIX
========================= */

.modal-panel--oracle {
  top: 50%;
  left: 50%;
  width: min(500px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  transform: translate(-50%, -50%);
  padding: 0;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 28px;
  border: 1px solid rgba(168, 91, 255, 0.42);
  background:
    radial-gradient(circle at 50% 0%, rgba(168, 91, 255, 0.22), transparent 34%),
    radial-gradient(circle at 80% 20%, rgba(77, 226, 255, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(10, 2, 16, 0.99), rgba(5, 1, 7, 0.99));
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.62),
    0 0 60px rgba(113, 38, 216, 0.16);
}

.oracle-box {
  padding: 22px 26px 18px;
  text-align: center;
  border: 0;
  background: transparent;
  position: relative;
}

.oracle-box::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 24px;
  pointer-events: none;
  border: 1px solid rgba(168, 91, 255, 0.16);
}

.oracle-head h2 {
  margin: 0 0 4px;
  font-size: 30px;
  color: #c78aff;
  letter-spacing: 0.18em;
  text-shadow: 0 0 18px rgba(168, 91, 255, 0.42);
}

.oracle-head p {
  margin: 0 0 14px;
  color: #cdb6e6;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.oracle-wheel-wrap {
  position: relative;
  width: 205px;
  height: 205px;
  margin: 0 auto 16px;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.48));
}

.oracle-wheel-wrap::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 91, 255, 0.18), transparent 62%);
  animation: oracleAura 2.8s ease-in-out infinite;
}

.oracle-wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 5px solid rgba(200, 138, 255, 0.72);
  background:
    conic-gradient(
      #22c6ff 0deg 42deg,
      #ff9c31 42deg 84deg,
      #7e4fff 84deg 126deg,
      #00d190 126deg 168deg,
      #ff4251 168deg 210deg,
      #ffd36a 210deg 252deg,
      #5b2ca3 252deg 294deg,
      #00f2a5 294deg 336deg,
      #9a5cff 336deg 360deg
    );
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 8px rgba(4, 1, 8, 0.5),
    inset 0 0 24px rgba(255, 255, 255, 0.12),
    0 0 0 6px rgba(113, 38, 216, 0.12);
}

.oracle-wheel::before {
  content: "";
  position: absolute;
  inset: 17px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.24);
  animation: oracleInnerSpin 8s linear infinite;
}

.oracle-wheel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.24) 48%, transparent 60%);
  opacity: 0.22;
}

.oracle-wheel.spinning {
  animation: oraclePulse 0.18s linear infinite;
}

.oracle-wheel-center {
  position: absolute;
  inset: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, #20102d 0%, #09010d 72%);
  border: 4px solid #c78aff;
  box-shadow:
    0 0 22px rgba(168, 91, 255, 0.5),
    inset 0 0 10px rgba(255, 255, 255, 0.12);
}

.oracle-pointer {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  z-index: 5;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-bottom: 24px solid #ffd36a;
  filter: drop-shadow(0 0 10px rgba(255, 211, 106, 0.55));
}

.oracle-message {
  min-height: 44px;
  margin: 0 0 14px;
  padding: 11px 14px;
  border-radius: 18px;
  color: #fff0e1;
  font-size: 17px;
  line-height: 1.3;
  background: rgba(18, 5, 26, 0.72);
  border: 1px solid rgba(168, 91, 255, 0.24);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}

.oracle-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

#spinOracleBtn,
#dailyRewardBtn,
#closeOracleModalBtn {
  min-height: 40px;
  padding: 10px 16px;
}

#spinOracleBtn:disabled,
#dailyRewardBtn:disabled {
  opacity: 0.56;
  background: rgba(26, 12, 34, 0.95);
  border: 1px solid rgba(168, 91, 255, 0.18);
  color: #9d89a9;
}

@keyframes oracleAura {
  0%, 100% {
    transform: scale(0.94);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes oracleInnerSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes oraclePulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.24); }
}

@media (max-height: 760px) {
  .modal-panel--oracle {
    width: min(470px, calc(100vw - 20px));
  }

  .oracle-box {
    padding: 16px 20px 14px;
  }

  .oracle-head h2 {
    font-size: 25px;
  }

  .oracle-head p {
    margin-bottom: 10px;
  }

  .oracle-wheel-wrap {
    width: 165px;
    height: 165px;
    margin-bottom: 12px;
  }

  .oracle-message {
    min-height: 38px;
    font-size: 15px;
    margin-bottom: 10px;
  }

  #spinOracleBtn,
  #dailyRewardBtn,
  #closeOracleModalBtn {
    min-height: 36px;
    padding: 9px 14px;
  }
}

@media (max-width: 640px) {
  .modal-panel--oracle {
    width: calc(100vw - 18px);
  }

  .oracle-box {
    padding: 20px 16px 16px;
  }

  .oracle-head h2 {
    font-size: 24px;
  }

  .oracle-wheel-wrap {
    width: 170px;
    height: 170px;
  }

  .oracle-message {
    font-size: 15px;
  }
}
/* =========================
   HUD NUEVO + PAUSA
========================= */

.game-hud--new {
  top: 10px;
  left: 10px;
  right: 10px;
  min-height: 68px;
  padding: 10px 12px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(16, 3, 8, 0.96), rgba(5, 1, 4, 0.96));
  border: 1px solid rgba(255, 117, 62, 0.28);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.hud-left--new,
.hud-right--new {
  align-items: center;
}

.hud-card,
.hud-resource,
.hud-vitals,
.hud-dash-card {
  min-height: 46px;
  padding: 8px 14px;
  border-radius: 14px;
  background:
    radial-gradient(circle at top, rgba(255, 104, 52, 0.12), transparent 62%),
    rgba(9, 1, 5, 0.88);
  border: 1px solid rgba(255, 117, 62, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}

.hud-card,
.hud-resource {
  display: grid;
  place-items: center;
  gap: 2px;
  min-width: 76px;
}

.hud-card strong,
.hud-resource strong {
  color: #fff0e1;
  font-size: 16px;
  letter-spacing: 0.08em;
}

.hud-label,
.hud-resource span,
.hud-vitals-top span {
  color: #b89483;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hud-vitals {
  width: 180px;
}

.hud-vitals-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.hud-vitals-top strong {
  color: #ffcfb5;
  font-size: 12px;
}

.hearts-meter--new {
  gap: 7px;
}

.hearts-meter--new .heart {
  width: 18px;
  height: 18px;
  transform: rotate(45deg);
  border-radius: 3px;
  background: #36100d;
  border: 1px solid rgba(255, 117, 62, 0.18);
}

.hearts-meter--new .heart::before,
.hearts-meter--new .heart::after {
  width: 18px;
  height: 18px;
  background: inherit;
}

.hearts-meter--new .heart::before {
  top: -9px;
  left: 0;
}

.hearts-meter--new .heart::after {
  top: 0;
  left: -9px;
}

.hearts-meter--new .heart.filled {
  background: linear-gradient(135deg, #ffdfc9, #ff5b42 45%, #8d1414);
  box-shadow:
    0 0 10px rgba(255, 76, 55, 0.42),
    inset 0 0 0 1px rgba(255,255,255,0.16);
}

.hud-dash-card {
  min-width: 150px;
}

.dash-meter--new {
  margin-top: 7px;
  gap: 5px;
}

.dash-meter--new .dash-seg {
  width: 14px;
  height: 12px;
  border-radius: 3px;
  border: 1px solid rgba(255, 190, 85, 0.35);
  background: rgba(61, 18, 10, 0.9);
}

.dash-meter--new .dash-seg.filled {
  background: linear-gradient(180deg, #ff6b36, #bd2618);
  box-shadow: 0 0 8px rgba(255, 107, 54, 0.28);
}

.dash-meter--new .dash-seg.filled-2 {
  background: linear-gradient(180deg, #ffd36a, #ff8b19);
  box-shadow: 0 0 10px rgba(255, 179, 60, 0.38);
}

.hud-btn--pause {
  background: linear-gradient(180deg, #7d4dff, #3b168f);
  box-shadow:
    0 12px 24px rgba(113, 38, 216, 0.24),
    inset 0 0 0 1px rgba(255,255,255,0.08);
}

.game-canvas-wrap {
  top: 86px;
}

.game-banner {
  top: 94px;
}

.game-footer-hint {
  color: rgba(236, 212, 199, 0.38);
}

/* PAUSE MODAL */

.modal-shell--pause {
  z-index: 90;
}

.modal-panel--pause {
  top: 50%;
  left: 50%;
  width: min(460px, calc(100vw - 28px));
  transform: translate(-50%, -50%);
  padding: 0;
  border-radius: 28px;
  border: 1px solid rgba(168, 91, 255, 0.42);
  background:
    radial-gradient(circle at 50% 0%, rgba(168, 91, 255, 0.22), transparent 38%),
    linear-gradient(180deg, rgba(10, 2, 16, 0.98), rgba(5, 1, 7, 0.98));
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.64),
    0 0 60px rgba(113, 38, 216, 0.16);
  overflow: hidden;
}

.pause-box {
  padding: 34px 30px 28px;
  text-align: center;
  position: relative;
}

.pause-box::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 22px;
  border: 1px solid rgba(168, 91, 255, 0.16);
  pointer-events: none;
}

.pause-box h2 {
  margin: 0 0 10px;
  font-size: 42px;
  letter-spacing: 0.16em;
  color: #c78aff;
  text-shadow: 0 0 18px rgba(168, 91, 255, 0.38);
}

.pause-text {
  margin: 0 auto 22px;
  max-width: 330px;
  color: #d8c4e6;
  line-height: 1.6;
}

.pause-actions {
  display: grid;
  gap: 12px;
}

#resumeRunBtn,
#pauseStoreBtn,
#pauseOracleBtn {
  color: #fff8f1;
  background: linear-gradient(180deg, #ea5a3d 0%, #b2291b 100%);
}

#pauseExitBtn {
  color: #f7d8c9;
  background: rgba(17, 5, 10, 0.95);
  border: 1px solid rgba(255, 110, 61, 0.18);
}

@media (max-width: 900px) {
  .game-hud--new {
    position: absolute;
    gap: 8px;
  }

  .hud-left--new,
  .hud-right--new {
    flex-wrap: wrap;
  }

  .hud-vitals {
    width: 100%;
  }

  .game-canvas-wrap {
    top: 160px;
  }

  .game-banner {
    top: 168px;
  }
}