:root {
  --bg-deep: #070c1c;
  --bg-obsidian: rgba(11, 18, 34, 0.86);
  --panel-bg: linear-gradient(155deg, rgba(15, 23, 42, 0.90), rgba(9, 14, 28, 0.86));
  --panel-border: rgba(255, 224, 138, 0.46);
  --panel-glow: 0 12px 34px rgba(2, 6, 23, 0.62), inset 0 1px 0 rgba(254, 240, 138, 0.16);
  --gold: #facc15;
  --gold-bright: #fde047;
  --gold-soft: #fef08a;
  --teal: #38bdf8;
  --teal-soft: #bae6fd;
  --emerald: #ffd166;
  --rose: #fb7185;
  --purple: #c084fc;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --radius-lg: 14px;
  --radius-md: 10px;
}

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

/* Custom Royal Gold & Obsidian Scrollbars */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: rgba(9, 14, 28, 0.65);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(250, 204, 21, 0.45), rgba(56, 189, 248, 0.45));
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(250, 204, 21, 0.78), rgba(56, 189, 248, 0.72));
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 25%, #111c38 0%, #060a14 75%);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.app-shell {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
}

/* ==================== Top Royal Sheikah Glass Header ==================== */
.top-hud {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px;
  background: linear-gradient(180deg, rgba(13, 21, 40, 0.96) 0%, rgba(9, 15, 30, 0.88) 100%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(250, 204, 21, 0.36);
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.55), inset 0 -1px 0 rgba(56, 189, 248, 0.14);
  z-index: 30;
}

.brand-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-emblem {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 1px;
  background: radial-gradient(circle at 35% 30%, rgba(254, 240, 138, 0.32), rgba(11, 19, 41, 0.98));
  border: 1px solid rgba(250, 204, 21, 0.86);
  box-shadow: 0 0 16px rgba(250, 204, 21, 0.32), inset 0 0 8px rgba(56, 189, 248, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-size: 18px;
  animation: crestPulse 3.6s ease-in-out infinite;
}

.brand-emblem:hover {
  transform: scale(1.06);
}
.brand-logo-img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 9px;
  object-fit: cover;
}
@keyframes crestPulse {
  0%, 100% { box-shadow: 0 0 12px rgba(250, 204, 21, 0.24), inset 0 0 8px rgba(56, 189, 248, 0.2); }
  50% { box-shadow: 0 0 22px rgba(250, 204, 21, 0.52), inset 0 0 12px rgba(56, 189, 248, 0.38); }
}

.brand-titles h1 {
  margin: 0;
  font-size: 15.5px;
  letter-spacing: 0.3px;
  background: linear-gradient(90deg, #fef9c3 0%, #fde047 55%, #7dd3fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ver-tag {
  font-size: 10.5px;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.26), rgba(250, 204, 21, 0.24));
  border: 1px solid rgba(56, 189, 248, 0.52);
  color: #e0f2fe;
  -webkit-text-fill-color: #e0f2fe;
  padding: 1px 7px;
  border-radius: 99px;
}

.brand-titles small#hud-location {
  display: inline-block;
  margin-top: 1px;
  color: var(--teal-soft);
  font-size: 11.8px;
  font-weight: 500;
}

/* Segmented Mode Pills */
.mode-tabs {
  display: flex;
  gap: 5px;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 3px 5px;
  background: rgba(7, 12, 24, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
}
.mode-tabs::-webkit-scrollbar { display: none; }

.mode-tab {
  background: rgba(30, 41, 59, 0.55);
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  padding: 5.5px 11px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.mode-tab.rank-tab { border-color: rgba(192, 132, 252, 0.48); }
.mode-tab.tower-tab { border-color: rgba(250, 204, 21, 0.45); }
.mode-tab.beast-tab { border-color: rgba(255, 184, 108, 0.56); }
.mode-tab.workshop-tab { border-color: rgba(56, 189, 248, 0.52); }

.mode-tab:hover {
  border-color: var(--gold);
  color: #fff;
  transform: translateY(-1px);
  background: rgba(51, 65, 85, 0.72);
}
.mode-tab.is-active {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.36), rgba(14, 165, 233, 0.32));
  border-color: var(--gold);
  color: var(--gold-soft);
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #64748b;
  display: inline-block;
}
.status-dot.online {
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
}

/* Right Utility Bar & Royal Sheikah Dock Drawer */
.utility-btns {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.hud-btn {
  position: relative;
  overflow: hidden;
  background: rgba(24, 35, 56, 0.88);
  color: var(--text-main);
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 9px;
  padding: 5.5px 10px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.hud-btn:hover {
  border-color: var(--teal);
  background: rgba(14, 116, 144, 0.32);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.24);
}
.hud-btn:active {
  transform: translateY(0);
}
.hud-btn.icon-only {
  padding: 5.5px 8px;
}

.hud-btn.mall-highlight {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.34), rgba(14, 165, 233, 0.34));
  border-color: var(--gold);
  color: var(--gold-soft);
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.24);
}
.hud-btn.mall-highlight::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-24deg);
  animation: sheenSweep 4.4s ease-in-out infinite;
}
@keyframes sheenSweep {
  0%, 68% { left: -120%; }
  100% { left: 160%; }
}

.hud-btn.visual-btn {
  border-color: rgba(192, 132, 252, 0.55);
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.42), rgba(15, 23, 42, 0.88));
  color: #f3e8ff;
}
.hud-btn.dock-trigger {
  border-color: rgba(56, 189, 248, 0.58);
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.42), rgba(30, 41, 59, 0.9));
  color: #e0f2fe;
}
.hud-btn.dock-trigger.is-open {
  border-color: var(--gold);
  color: var(--gold-soft);
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.32);
}

/* Floating Categorized Royal Sheikah Dock */
.sheikah-dock-drawer {
  position: absolute;
  top: calc(100% + 8px);
  right: 16px;
  width: min(540px, 94vw);
  background: linear-gradient(160deg, rgba(13, 22, 42, 0.97), rgba(8, 13, 26, 0.96));
  backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(250, 204, 21, 0.55);
  border-radius: 15px;
  padding: 13px 15px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.78), 0 0 24px rgba(56, 189, 248, 0.16);
  display: flex;
  flex-direction: column;
  gap: 11px;
  z-index: 50;
  animation: dockDropIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.sheikah-dock-drawer[hidden] {
  display: none !important;
}

@keyframes dockDropIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.dock-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dock-group-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--gold-soft);
  opacity: 0.9;
}
.dock-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 7px;
}
.dock-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(30, 41, 59, 0.78);
}
.dock-item kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(250, 204, 21, 0.36);
  color: var(--gold-soft);
}

/* ==================== Stage & Ornate Sheikah Overlays ==================== */
.stage-container {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow: hidden;
}

#game-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.overlay-stats,
.overlay-quest {
  background: var(--panel-bg);
  backdrop-filter: blur(14px) saturate(145%);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--panel-glow);
  transition: opacity 0.24s ease, transform 0.24s ease;
  z-index: 10;
}

/* Subtle Golden Filigree Top Accent Line */
.overlay-stats::before,
.overlay-quest::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 18px;
  right: 18px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), var(--teal), transparent);
  opacity: 0.85;
  pointer-events: none;
}

.overlay-stats {
  position: absolute;
  top: 12px;
  left: 14px;
  padding: 10px 13px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-width: 500px;
}

.overlay-quest {
  position: absolute;
  top: 12px;
  right: 14px;
  width: min(332px, 44vw);
  padding: 11px 14px;
}

/* Immersive Clean-Screen HUD Collapse Mode */
.stage-container.hud-minimized .overlay-stats {
  opacity: 0;
  transform: translateX(-24px);
  pointer-events: none;
}
.stage-container.hud-minimized .overlay-quest {
  opacity: 0;
  transform: translateX(24px);
  pointer-events: none;
}

.hud-restore-fab {
  position: absolute;
  top: 12px;
  left: 14px;
  z-index: 18;
  background: rgba(15, 23, 42, 0.86);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(250, 204, 21, 0.6);
  color: var(--gold-soft);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}
.hud-restore-fab:hover {
  border-color: var(--teal);
  color: #fff;
}

.hearts-row-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hearts-row {
  font-size: 17px;
  letter-spacing: 2px;
  filter: drop-shadow(0 0 6px rgba(251, 113, 133, 0.42));
}

.rank-mini-pill {
  font-size: 11.5px;
  font-weight: 700;
  padding: 2.5px 9px;
  border-radius: 99px;
  background: linear-gradient(135deg, rgba(192, 132, 252, 0.24), rgba(56, 189, 248, 0.18));
  border: 1px solid rgba(192, 132, 252, 0.58);
  color: #f3e8ff;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.rank-mini-pill:hover {
  transform: scale(1.04);
  border-color: var(--gold);
}

.counters-row, .quick-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  font-size: 12px;
}

.stat-pill {
  background: rgba(9, 15, 29, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.26);
  padding: 2.5px 7.5px;
  border-radius: 7px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.stat-pill.rupee {
  border-color: rgba(255, 184, 108, 0.56);
  color: #ffd88a;
}
.stat-pill.gem-pill {
  border-color: rgba(56, 189, 248, 0.65);
  background: rgba(14, 116, 144, 0.24);
  color: #7dd3fc;
  cursor: pointer;
}
.stat-pill.gem-pill:hover,
.stat-pill.seed-pill:hover {
  transform: translateY(-1px);
  border-color: var(--gold);
}
.stat-pill.seed-pill {
  border-color: rgba(255, 212, 121, 0.58);
  color: #ffe484;
  cursor: pointer;
}

.action-chip {
  border-radius: 8px;
  padding: 5px 8.5px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  background: rgba(30, 41, 59, 0.9);
  transition: transform 0.14s ease, box-shadow 0.14s ease, opacity 0.14s ease, border-color 0.14s ease;
}
.action-chip:hover {
  transform: translateY(-1px);
  border-color: var(--gold-soft);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}
.action-chip.is-cooling {
  opacity: 0.68;
  filter: saturate(0.65);
}
.action-chip.elem-chip {
  border-color: rgba(56, 189, 248, 0.6);
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.55), rgba(15, 23, 42, 0.85));
}
.action-chip.fusion-chip {
  border-color: rgba(255, 184, 108, 0.56);
  background: linear-gradient(135deg, rgba(255, 212, 121, 0.58), rgba(15, 23, 42, 0.85));
}
.action-chip.relic-chip {
  border-color: rgba(255, 212, 121, 0.6);
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.56), rgba(15, 23, 42, 0.85));
}
.action-chip.skill-chip {
  border-color: rgba(250, 204, 21, 0.65);
  background: linear-gradient(135deg, rgba(161, 98, 7, 0.56), rgba(15, 23, 42, 0.85));
}
.action-chip.tilt-chip {
  border-color: rgba(250, 204, 21, 0.8);
  background: linear-gradient(135deg, rgba(180, 83, 9, 0.72), rgba(30, 41, 59, 0.9));
  animation: pulseGlow 1.8s infinite;
}
.action-chip.mount-chip {
  border-color: rgba(255, 212, 121, 0.58);
  background: linear-gradient(135deg, rgba(255, 212, 121, 0.52), rgba(15, 23, 42, 0.85));
}
.action-chip.dragon-chip {
  border-color: rgba(251, 146, 60, 0.68);
  background: linear-gradient(135deg, rgba(154, 52, 18, 0.62), rgba(15, 23, 42, 0.85));
}
.action-chip.remote-chip {
  border-color: rgba(192, 132, 252, 0.65);
  background: linear-gradient(135deg, rgba(107, 33, 168, 0.56), rgba(15, 23, 42, 0.85));
}
.action-chip.interact-chip {
  border-color: rgba(255, 184, 108, 0.56);
  background: linear-gradient(135deg, rgba(255, 212, 121, 0.45), rgba(15, 23, 42, 0.85));
}

.quest-header {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
}

.era-badge {
  background: linear-gradient(135deg, #facc15, #f59e0b);
  color: #090e1a;
  font-weight: 800;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.35);
}

.quest-header strong {
  font-size: 13.5px;
  color: var(--gold-soft);
}

.quest-step {
  margin: 4px 0;
  font-size: 12px;
  color: #e2e8f0;
  line-height: 1.44;
}

.quest-compass {
  font-size: 12px;
  color: var(--teal);
  font-weight: 600;
}

.side-quest-box {
  margin-top: 7px;
  padding-top: 6px;
  border-top: 1px dashed rgba(148, 163, 184, 0.32);
  font-size: 12px;
  color: #ffe484;
}

.gold-cta-btn {
  margin-top: 8px;
  width: 100%;
  padding: 7.5px 10px;
  border-radius: 9px;
  border: 1px solid #fde047;
  background: linear-gradient(135deg, #eab308, #f59e0b);
  color: #0f172a;
  font-weight: 800;
  font-size: 12.5px;
  cursor: pointer;
  animation: pulseGlow 1.6s infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 6px rgba(250, 204, 21, 0.45); }
  50% { box-shadow: 0 0 18px rgba(250, 204, 21, 0.92); }
}

/* Ornate Center Banner */
.center-banner {
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(9, 14, 28, 0.05), rgba(9, 14, 28, 0.94) 18%, rgba(9, 14, 28, 0.94) 82%, rgba(9, 14, 28, 0.05));
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(250, 204, 21, 0.78);
  border-bottom: 1px solid rgba(250, 204, 21, 0.78);
  padding: 9px 44px 11px;
  text-align: center;
  pointer-events: none;
  z-index: 15;
  animation: bannerReveal 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes bannerReveal {
  from { opacity: 0; transform: translate(-50%, -10px) scale(0.97); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}
.banner-ornament {
  font-size: 10px;
  letter-spacing: 3px;
  color: rgba(250, 204, 21, 0.8);
  margin-bottom: 2px;
}
.center-banner h2 {
  margin: 0;
  font-size: 18.5px;
  letter-spacing: 0.6px;
  color: var(--gold-soft);
  text-shadow: 0 2px 12px rgba(250, 204, 21, 0.35);
}
.center-banner p {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: #cbd5e1;
}

.bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 16px;
  font-size: 12px;
  color: var(--text-muted);
  background: linear-gradient(180deg, rgba(9, 14, 28, 0.94), rgba(6, 10, 20, 0.98));
  border-top: 1px solid rgba(250, 204, 21, 0.2);
  gap: 10px;
}
.bottom-bar b {
  color: #e2e8f0;
}
.server-pill {
  color: var(--teal);
  font-weight: 600;
  white-space: nowrap;
}

/* ==================== Royal Sheikah Modals & Cards ==================== */
.sheikah-modal {
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.97), rgba(8, 13, 26, 0.98));
  color: var(--text-main);
  border: 1px solid rgba(250, 204, 21, 0.68);
  border-radius: 18px;
  padding: 18px 22px;
  width: min(610px, 94vw);
  max-height: 89vh;
  overflow-y: auto;
  box-shadow: 0 26px 68px rgba(0, 0, 0, 0.85), 0 0 32px rgba(56, 189, 248, 0.14), inset 0 1px 0 rgba(254, 240, 138, 0.22);
}
.sheikah-modal[open] {
  animation: modalFadeZoom 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalFadeZoom {
  from { opacity: 0; transform: translateY(8px) scale(0.975); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.sheikah-modal.wide {
  width: min(920px, 95vw);
}
.sheikah-modal::backdrop {
  background: radial-gradient(circle at 50% 40%, rgba(12, 20, 40, 0.72), rgba(3, 6, 15, 0.86));
  backdrop-filter: blur(6px);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(250, 204, 21, 0.28);
  padding-bottom: 11px;
  margin-bottom: 14px;
}
.modal-head h2 {
  margin: 0;
  font-size: 18px;
  color: var(--gold-soft);
  text-shadow: 0 0 14px rgba(250, 204, 21, 0.2);
}
.modal-close {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.38);
  color: var(--text-main);
  width: 32px;
  height: 32px;
  border-radius: 9px;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.modal-close:hover {
  border-color: var(--rose);
  background: rgba(190, 18, 60, 0.35);
  color: #fff;
}
.modal-hint {
  margin: 0 0 12px;
  font-size: 12.5px;
  color: #cbd5e1;
  line-height: 1.48;
}

.season-hero-banner {
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.52), rgba(15, 23, 42, 0.94));
  border: 1px solid rgba(192, 132, 252, 0.5);
  border-radius: 13px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}
.rp-bar-outer,
.bounty-progress-bar {
  width: 240px;
  height: 9px;
  border-radius: 99px;
  background: rgba(9, 14, 28, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
  margin-top: 6px;
}
.bounty-progress-bar {
  width: 100%;
  height: 8px;
  margin-top: 0;
}
.rp-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #facc15);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}
.bounty-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffd166, #facc15);
}

.season-launch-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}
.season-rules-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  background: rgba(30, 41, 59, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.2);
  padding: 9px 12px;
  border-radius: 10px;
  margin-bottom: 14px;
  color: #e2e8f0;
}
.sub-heading {
  font-size: 14px;
  color: var(--gold-soft);
  margin: 8px 0 10px;
}

.tier-track-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 10px;
}
.tier-card {
  background: rgba(24, 35, 56, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 11px;
  padding: 11px;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.tier-card:hover {
  transform: translateY(-2px);
  border-color: var(--teal);
}
.tier-card.unlocked {
  border-color: var(--gold);
  background: linear-gradient(155deg, rgba(234, 179, 8, 0.15), rgba(15, 23, 42, 0.85));
}

.profile-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  background: rgba(24, 35, 56, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.24);
  padding: 10px 12px;
  border-radius: 11px;
}
.profile-bar input,
.join-code-row input,
.chat-input-row input,
.field-row select,
.workshop-toolbar input,
.workshop-toolbar select,
.workshop-share-row input {
  background: rgba(9, 15, 29, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.42);
  color: #fff;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  user-select: text;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.profile-bar input:focus,
.join-code-row input:focus,
.chat-input-row input:focus,
.field-row select:focus,
.workshop-toolbar input:focus,
.workshop-toolbar select:focus,
.workshop-share-row input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.2);
}

/* 12 Awakened Heroes Showcase Grid */
.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}
.hero-card {
  background: linear-gradient(160deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 13px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.hero-card:hover {
  transform: translateY(-3px);
  border-color: var(--teal);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.5), 0 0 14px rgba(56, 189, 248, 0.2);
}
.hero-card.selected {
  border-color: var(--gold);
  background: linear-gradient(160deg, rgba(234, 179, 8, 0.17), rgba(15, 23, 42, 0.92));
  box-shadow: 0 8px 24px rgba(250, 204, 21, 0.18);
}
.hero-card-top {
  display: flex;
  align-items: center;
  gap: 11px;
}
.hero-card canvas {
  width: 68px;
  height: 68px;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 35%, rgba(56, 189, 248, 0.18), rgba(9, 14, 28, 0.92));
  border: 1px solid rgba(250, 204, 21, 0.35);
  flex-shrink: 0;
}
.hero-card h3 {
  margin: 0;
  font-size: 14px;
  color: var(--gold-soft);
}
.hero-card small {
  color: var(--teal);
  font-size: 11.5px;
}
.hero-card p {
  margin: 1px 0;
  font-size: 11.8px;
  color: #cbd5e1;
  line-height: 1.38;
}
.star-row {
  color: #facc15;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
}
.hero-lore {
  font-size: 11.2px !important;
  color: #94a3b8 !important;
  font-style: italic;
  border-left: 2px solid rgba(56, 189, 248, 0.5);
  padding-left: 7px;
  margin: 3px 0 !important;
}
.hero-card-actions {
  display: flex;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
}

/* World Star Map */
.world-map-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
  margin: 12px 0;
}
.map-cell {
  aspect-ratio: 1.15;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  text-align: center;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.map-cell.can-warp {
  cursor: pointer;
  border-color: var(--teal);
  box-shadow: inset 0 0 12px rgba(56, 189, 248, 0.38);
}
.map-cell.can-warp:hover {
  transform: scale(1.06);
  border-color: var(--gold);
}
.map-cell.is-here {
  outline: 2px solid var(--gold);
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.45);
}
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Buttons */
.gold-btn, .teal-btn, .outline-btn, .danger-btn {
  padding: 8px 14px;
  border-radius: 9px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.14s ease, filter 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}
.gold-btn:hover, .teal-btn:hover, .outline-btn:hover, .danger-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}
.gold-btn {
  background: linear-gradient(135deg, #facc15, #f59e0b);
  color: #090e1a;
  box-shadow: 0 4px 14px rgba(234, 179, 8, 0.28);
}
.teal-btn {
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  color: #fff;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.26);
}
.outline-btn {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(148, 163, 184, 0.45);
  color: var(--text-main);
}
.outline-btn:hover {
  border-color: var(--gold);
}
.danger-btn {
  background: linear-gradient(135deg, #e11d48, #be123c);
  color: #fff;
}
.small {
  padding: 5px 10px;
  font-size: 12px;
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.field-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Online Lobby, Chat & Chronicle */
.online-banner {
  padding: 8.5px 13px;
  border-radius: 9px;
  background: linear-gradient(90deg, rgba(14, 116, 144, 0.34), rgba(15, 23, 42, 0.86));
  border: 1px solid rgba(56, 189, 248, 0.45);
  font-size: 12.5px;
  margin-bottom: 12px;
}
.lobby-toolbar, .join-code-row, .room-host-controls, .emote-strip, .chat-input-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  align-items: center;
}
.rooms-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 110px;
}
.room-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 13px;
  border-radius: 10px;
  background: rgba(24, 35, 56, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.26);
}
.room-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.code-badge {
  background: rgba(250, 204, 21, 0.2);
  border: 1px solid var(--gold);
  color: var(--gold-soft);
  padding: 2px 8px;
  border-radius: 6px;
  margin-left: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.room-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.slot-card {
  padding: 9px;
  border-radius: 9px;
  background: rgba(24, 35, 56, 0.84);
  border: 1px solid rgba(148, 163, 184, 0.3);
  font-size: 12.5px;
}
.chat-messages {
  height: 105px;
  overflow-y: auto;
  background: rgba(9, 14, 28, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 9px;
  padding: 8px;
  font-size: 12.5px;
  margin-bottom: 8px;
}
.emote-btn {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.38);
  color: #e0f2fe;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
}
.emote-btn:hover {
  border-color: var(--gold);
}
.chat-input-row input {
  flex: 1;
}

.npc-quote {
  margin: 0 0 14px;
  padding: 11px 15px;
  background: rgba(24, 35, 56, 0.76);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.52;
  color: #f1f5f9;
}
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 9px;
}
.shop-item {
  background: rgba(24, 35, 56, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 10px;
  padding: 9px 11px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
}
.two-col-board {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}
.two-col-board h3 {
  margin: 0 0 8px;
  font-size: 14.5px;
  color: var(--teal);
}
.scroll-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 3px;
}
.feed-card {
  background: rgba(24, 35, 56, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 12.5px;
  line-height: 1.46;
}
.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.guide-card {
  background: rgba(24, 35, 56, 0.76);
  border: 1px solid rgba(250, 204, 21, 0.22);
  border-radius: 12px;
  padding: 13px 15px;
  font-size: 12.8px;
  line-height: 1.56;
}
.guide-card h3 {
  margin-top: 0;
  color: var(--gold-soft);
}

/* Mobile Touch Controls */
.touch-controls {
  display: none;
  position: absolute;
  inset: auto 12px 12px 12px;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: none;
  z-index: 16;
}
.dpad-cluster {
  position: relative;
  width: 134px;
  height: 134px;
  pointer-events: auto;
}
.dpad-btn {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(250, 204, 21, 0.42);
  background: rgba(11, 18, 34, 0.8);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 18px;
}
.dpad-btn.up { top: 0; left: 45px; }
.dpad-btn.down { bottom: 0; left: 45px; }
.dpad-btn.left { top: 45px; left: 0; }
.dpad-btn.right { top: 45px; right: 0; }

.touch-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  pointer-events: auto;
}
.touch-btn {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-weight: 700;
  font-size: 12.5px;
  color: #fff;
  background: rgba(24, 35, 56, 0.86);
  backdrop-filter: blur(6px);
}
.touch-btn.bomb {
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.92), rgba(194, 65, 12, 0.92));
  border-color: var(--gold);
}
.touch-btn.skill { background: rgba(2, 132, 199, 0.88); }
.touch-btn.relic { background: rgba(15, 118, 110, 0.88); }

/* Cooking, Starlight Mall, Pets, Bounties, Synergy & Factions */
.pantry-strip,
.mall-wallet-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  background: rgba(24, 35, 56, 0.74);
  border: 1px solid rgba(148, 163, 184, 0.24);
  padding: 10px 13px;
  border-radius: 11px;
  margin-bottom: 12px;
  font-size: 13px;
}
.pantry-badge {
  background: rgba(9, 15, 29, 0.88);
  border: 1px solid rgba(250, 204, 21, 0.36);
  border-radius: 8px;
  padding: 4px 10px;
}
.wallet-balances {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
}

.recipe-grid,
.mall-grid,
.pet-grid,
.bounty-grid,
.boon-draft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 11px;
}

.recipe-card,
.mall-card,
.pet-card,
.bounty-card,
.boon-card {
  background: linear-gradient(160deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 13px;
  padding: 13px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.recipe-card:hover,
.mall-card:hover,
.pet-card:hover,
.bounty-card:hover,
.boon-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.65);
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.45);
}
.pet-card.equipped {
  border-color: var(--gold);
  background: linear-gradient(160deg, rgba(234, 179, 8, 0.16), rgba(15, 23, 42, 0.92));
}
.recipe-card h4 {
  margin: 0;
  color: var(--gold-soft);
  font-size: 14.5px;
}

.mall-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.mall-subtab {
  background: rgba(24, 35, 56, 0.84);
  color: var(--text-main);
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 999px;
  padding: 6.5px 14px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.mall-subtab:hover {
  border-color: var(--teal);
}
.mall-subtab.is-active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.34), rgba(234, 179, 8, 0.3));
  border-color: var(--gold);
  color: var(--gold-soft);
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.24);
}
.pay-channel-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.pay-channel-pill {
  background: rgba(24, 35, 56, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: var(--text-main);
  border-radius: 10px;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.pay-channel-pill.selected {
  border-color: var(--gold);
  background: rgba(234, 179, 8, 0.18);
}
.mall-card-top {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mall-card-top strong {
  font-size: 14.5px;
  color: var(--gold-soft);
}
.mall-tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 99px;
  border: 1px solid rgba(250, 204, 21, 0.58);
  color: #fde047;
  background: rgba(234, 179, 8, 0.16);
}
.mall-gem-headline {
  font-size: 18px;
  font-weight: 800;
  color: #7dd3fc;
}
.mall-card p {
  margin: 0;
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.45;
}
.checkout-box {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.38), rgba(15, 23, 42, 0.96));
  border: 1px solid var(--gold);
  border-radius: 13px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.synergy-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.synergy-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.26), rgba(56, 189, 248, 0.26));
  border: 1px solid rgba(250, 204, 21, 0.62);
  color: #fef08a;
}
.faction-strip {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed rgba(148, 163, 184, 0.28);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11px;
  color: #cbd5e1;
}
.faction-chip {
  background: rgba(9, 15, 29, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 6px;
  padding: 1.5px 6.5px;
}

/* Sheikah Maker Workshop & Operations Dashboard */
.workshop-toolbar, .workshop-share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}
.workshop-share-row input {
  flex: 1;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.workshop-editor-layout {
  display: grid;
  grid-template-columns: 235px 1fr;
  gap: 14px;
  align-items: start;
}
.workshop-brushes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.wk-brush-btn {
  background: rgba(24, 35, 56, 0.86);
  color: var(--text-main);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 8px;
  padding: 6.5px 8px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  text-align: left;
  transition: border-color 0.14s ease, background 0.14s ease;
}
.wk-brush-btn:hover {
  border-color: var(--teal);
}
.wk-brush-btn.is-active {
  border-color: var(--gold);
  background: rgba(234, 179, 8, 0.24);
  color: var(--gold-soft);
}
.workshop-canvas-wrap {
  background: rgba(9, 14, 28, 0.86);
  border: 1px solid rgba(56, 189, 248, 0.38);
  border-radius: 13px;
  padding: 11px;
}
.workshop-grid {
  display: grid;
  grid-template-columns: repeat(15, 1fr);
  gap: 2px;
  max-width: 540px;
  margin: 0 auto;
  touch-action: none;
}
.wk-cell {
  aspect-ratio: 1;
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-size: 13px;
  cursor: crosshair;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.08s ease;
}
.wk-cell:hover:not(.is-border) {
  transform: scale(1.08);
  border-color: rgba(250, 204, 21, 0.65);
}
.wk-cell.is-border {
  opacity: 0.72;
  cursor: not-allowed;
}
.wk-cell.is-spawn {
  outline: 2px solid #ffd166;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 10px;
}
.admin-kpi-card {
  background: linear-gradient(155deg, rgba(24, 35, 56, 0.88), rgba(15, 23, 42, 0.92));
  border: 1px solid rgba(56, 189, 248, 0.36);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.admin-kpi-card small {
  color: var(--text-muted);
  font-size: 11.5px;
}
.admin-kpi-card strong {
  font-size: 19px;
  color: var(--gold-soft);
}

@media (max-width: 1120px) {
  .top-hud { flex-wrap: wrap; padding: 7px 12px; }
  .mode-tabs { order: 3; width: 100%; justify-content: flex-start; }
}

/* ==================== 9.0 Royal Title Plinth, Ruby Hearts, 2.5D Workshop & Card Spotlight ==================== */
.royal-title-curtain {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: radial-gradient(circle at 50% 45%, rgba(8, 14, 30, 0.56), rgba(3, 6, 15, 0.82));
  backdrop-filter: blur(5px);
  z-index: 24;
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.royal-title-curtain[hidden] {
  display: none !important;
}
.royal-title-curtain.is-closing {
  opacity: 0;
  transform: scale(1.03);
  pointer-events: none;
}

.title-plinth-card {
  position: relative;
  width: min(690px, 94vw);
  max-height: calc(100% - 16px);
  overflow-y: auto;
  background: linear-gradient(165deg, rgba(13, 22, 42, 0.94), rgba(7, 12, 24, 0.95));
  border: 1px solid rgba(250, 204, 21, 0.72);
  border-radius: 22px;
  padding: 20px 24px 16px;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.82), 0 0 38px rgba(56, 189, 248, 0.18), inset 0 1px 0 rgba(254, 240, 138, 0.28);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  text-align: center;
}

.title-mandala-wrap {
  position: relative;
  width: 102px;
  height: 102px;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 0 18px rgba(250, 204, 21, 0.44)) drop-shadow(0 0 26px rgba(56, 189, 248, 0.26));
}
.title-mandala-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: slowSpin 26s linear infinite;
  pointer-events: none;
}
.title-crest-logo {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 20px;
  object-fit: contain;
  animation: crestFloat 4.2s ease-in-out infinite;
}
@keyframes crestFloat {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-3px) scale(1.03); }
}
@keyframes slowSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.title-eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.2px;
  color: var(--teal-soft);
  opacity: 0.9;
}
.title-headline-box h2 {
  margin: 3px 0 5px;
  font-size: clamp(22px, 3.2vw, 30px);
  letter-spacing: 1.5px;
  background: linear-gradient(90deg, #fef9c3 0%, #facc15 48%, #7dd3fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 16px rgba(250, 204, 21, 0.25));
}
.title-headline-box p {
  margin: 0;
  font-size: 12.5px;
  color: #cbd5e1;
}

.title-hero-showcase {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(24, 36, 62, 0.78), rgba(11, 18, 34, 0.88));
  border: 1px solid rgba(56, 189, 248, 0.36);
  border-radius: 15px;
  padding: 10px 14px;
  text-align: left;
}
#title-hero-canvas {
  width: 82px;
  height: 82px;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 35%, rgba(56, 189, 248, 0.24), rgba(8, 13, 26, 0.94));
  border: 1px solid rgba(250, 204, 21, 0.52);
  flex-shrink: 0;
}
.title-hero-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.title-hero-info strong {
  font-size: 15px;
  color: var(--gold-soft);
}
.title-hero-info small {
  font-size: 11.8px;
  color: #bae6fd;
}
.title-hero-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 3px;
}
.title-hero-pill {
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.34);
  color: #e2e8f0;
  border-radius: 999px;
  padding: 2.5px 8.5px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s ease;
}
.title-hero-pill:hover {
  border-color: var(--teal);
}
.title-hero-pill.is-active {
  border-color: var(--gold);
  background: rgba(234, 179, 8, 0.24);
  color: var(--gold-soft);
}

.title-launch-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.title-launch-card {
  background: rgba(24, 35, 56, 0.84);
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 13px;
  padding: 11px 13px;
  text-align: left;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.title-launch-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.5);
}
.title-launch-card.primary {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.32), rgba(14, 165, 233, 0.28));
  border-color: var(--gold);
  box-shadow: 0 0 18px rgba(250, 204, 21, 0.22);
}
.title-launch-card strong {
  font-size: 13.5px;
  color: var(--gold-soft);
}
.title-launch-card small {
  font-size: 11.2px;
  color: #cbd5e1;
  line-height: 1.35;
}
.title-dismiss-hint {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* Faceted Ruby SVG Heart Jewels */
.hearts-row {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
}
.ruby-heart {
  width: 19px;
  height: 19px;
  display: inline-flex;
  transition: transform 0.18s ease, filter 0.18s ease;
}
.ruby-heart svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.ruby-heart.is-full {
  filter: drop-shadow(0 0 5px rgba(244, 63, 94, 0.55));
}
.ruby-heart.is-bonus {
  filter: drop-shadow(0 0 6px rgba(250, 204, 21, 0.65));
}
.ruby-heart.is-critical {
  animation: rubyBeat 0.72s ease-in-out infinite;
}
.ruby-heart.is-empty {
  opacity: 0.46;
}
@keyframes rubyBeat {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.24); filter: drop-shadow(0 0 10px rgba(251, 113, 133, 0.95)); }
}

/* 3-Star Awakened Prismatic Card Border & Mouse Spotlight */
.hero-card,
.mall-card,
.pet-card,
.recipe-card,
.bounty-card {
  position: relative;
  overflow: hidden;
}
.hero-card::after,
.mall-card::after,
.pet-card::after,
.recipe-card::after,
.bounty-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(220px circle at var(--spot-x, 50%) var(--spot-y, 0%), rgba(254, 240, 138, 0.11), transparent 70%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.hero-card:hover::after,
.mall-card:hover::after,
.pet-card:hover::after,
.recipe-card:hover::after,
.bounty-card:hover::after {
  opacity: 1;
}
.hero-card.star-max {
  border-color: rgba(250, 204, 21, 0.78);
  box-shadow: 0 0 18px rgba(250, 204, 21, 0.2), inset 0 0 12px rgba(56, 189, 248, 0.14);
}

/* 2.5D Tactile Bevel Workshop Cells & Illustrated Star-Map Cells */
.wk-cell {
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.22), inset 0 -3px 0 rgba(0, 0, 0, 0.42);
}
.map-cell {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 4px 10px rgba(0, 0, 0, 0.35);
}

/* ==================== 9.5 Crystal Skill Dock, Toast Ribbons & 2.5D Workshop Preview ==================== */
.crystal-skill-dock {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  background: linear-gradient(180deg, rgba(13, 22, 42, 0.86), rgba(7, 12, 24, 0.92));
  backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid rgba(250, 204, 21, 0.46);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.62), inset 0 1px 0 rgba(254, 240, 138, 0.2);
  z-index: 14;
  transition: opacity 0.24s ease, transform 0.24s ease;
}
.stage-container.hud-minimized .crystal-skill-dock {
  opacity: 0;
  transform: translate(-50%, 18px);
  pointer-events: none;
}

.crystal-orb-btn {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(30, 41, 59, 0.95), rgba(9, 14, 28, 0.98));
  border: 1.5px solid rgba(148, 163, 184, 0.42);
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.crystal-orb-btn:hover {
  transform: translateY(-3px) scale(1.04);
  border-color: var(--gold);
  box-shadow: 0 6px 16px rgba(250, 204, 21, 0.28);
}
.crystal-orb-btn.primary-skill {
  width: 54px;
  height: 54px;
  border-color: rgba(250, 204, 21, 0.72);
  background: radial-gradient(circle at 35% 30%, rgba(161, 98, 7, 0.48), rgba(15, 23, 42, 0.96));
}
.crystal-orb-btn.is-cooling {
  opacity: 0.72;
}
.orb-emoji {
  font-size: 16px;
  line-height: 1;
}
.orb-label {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--gold-soft);
  margin-top: 2px;
  max-width: 44px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.orb-key-tag {
  position: absolute;
  top: -4px;
  right: -4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9.5px;
  font-weight: 800;
  padding: 0.5px 4.5px;
  border-radius: 99px;
  background: #090e1a;
  border: 1px solid rgba(250, 204, 21, 0.65);
  color: #fef08a;
}

.orb-cd-svg {
  position: absolute;
  inset: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  transform: rotate(-90deg);
  pointer-events: none;
}
.orb-cd-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 2.6;
}
.orb-cd-prog {
  fill: none;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-dasharray: 132;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.1s linear;
}
.orb-cd-prog.relic-ring { stroke: #38bdf8; }
.orb-cd-prog.skill-ring { stroke: #facc15; }

/* Shimmering Golden Toast Ribbons */
.toast-ribbon-stack {
  position: absolute;
  bottom: 78px;
  right: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  z-index: 22;
}
.toast-ribbon-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.92));
  border: 1px solid rgba(250, 204, 21, 0.78);
  border-left: 4px solid #facc15;
  border-radius: 12px;
  padding: 9px 14px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6), 0 0 18px rgba(250, 204, 21, 0.22);
  animation: ribbonSlideIn 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes ribbonSlideIn {
  from { opacity: 0; transform: translateX(28px) scale(0.96); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
.toast-ribbon-icon {
  font-size: 22px;
}
.toast-ribbon-body strong {
  display: block;
  font-size: 13px;
  color: var(--gold-soft);
}
.toast-ribbon-body small {
  font-size: 11.5px;
  color: #bae6fd;
}

/* Live 2.5D Workshop Preview & Community Thumbnails */
.wk-left-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wk-preview-box {
  background: rgba(9, 14, 28, 0.88);
  border: 1px solid rgba(250, 204, 21, 0.38);
  border-radius: 11px;
  padding: 8px;
  text-align: center;
}
.wk-preview-box small {
  display: block;
  font-size: 11px;
  color: var(--gold-soft);
  margin-bottom: 5px;
}
#wk-live-preview-canvas,
.wk-comm-thumb {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  background: #060a14;
  display: block;
}

/* ==================== 10.0 Sheikah Camera Studio, MVP Podium & 60fps Showcases ==================== */
.photo-studio-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  background: rgba(24, 35, 56, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.24);
  padding: 9px 13px;
  border-radius: 11px;
}
.photo-preview-wrap {
  background: #050811;
  border: 1px solid rgba(250, 204, 21, 0.55);
  border-radius: 14px;
  padding: 10px;
  display: grid;
  place-items: center;
}
#sheikah-photo-canvas {
  width: 100%;
  max-width: 780px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.72);
}

.pet-card-head-row,
.cosmetic-card-head-row {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 6px;
}
.pet-showcase-canvas,
.cosmetic-showcase-canvas {
  width: 66px;
  height: 66px;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 35%, rgba(56, 189, 248, 0.2), rgba(9, 14, 28, 0.92));
  border: 1px solid rgba(250, 204, 21, 0.38);
  flex-shrink: 0;
}

/* 3-Tier Arena & Ranked MVP Champion Podium */
.podium-stage {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  margin: 6px 0 14px;
  padding: 12px 10px 0;
  background: radial-gradient(circle at 50% 25%, rgba(250, 204, 21, 0.14), rgba(9, 14, 28, 0.72));
  border: 1px solid rgba(250, 204, 21, 0.32);
  border-radius: 14px;
}
.podium-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(155px, 30%);
  text-align: center;
}
.podium-slot canvas {
  width: 68px;
  height: 68px;
}
.podium-slot strong {
  font-size: 12.5px;
  color: #fef08a;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.podium-slot small {
  font-size: 11px;
  color: #bae6fd;
  margin-bottom: 5px;
}
.podium-pedestal {
  width: 100%;
  border-radius: 10px 10px 0 0;
  font-weight: 800;
  font-size: 13px;
  display: grid;
  place-items: center;
  color: #090e1a;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35);
}
.podium-slot.rank-1 .podium-pedestal {
  height: 52px;
  background: linear-gradient(180deg, #fde047, #ca8a04);
}
.podium-slot.rank-2 .podium-pedestal {
  height: 38px;
  background: linear-gradient(180deg, #e2e8f0, #94a3b8);
}
.podium-slot.rank-3 .podium-pedestal {
  height: 28px;
  background: linear-gradient(180deg, #fdba74, #b45309);
}

@media (max-width: 900px), (pointer: coarse) {
  .touch-controls { display: flex; }
  .bottom-bar, .crystal-skill-dock { display: none; }
  .overlay-stats { max-width: 56vw; padding: 7px 9px; }
  .overlay-quest { width: 41vw; padding: 8px 10px; }
  .two-col-board, .guide-grid, .workshop-editor-layout, .title-launch-grid { grid-template-columns: 1fr; }
  .title-hero-showcase { flex-direction: column; text-align: center; }
}

/* ==================== v11.0 Skyward Archipelago, S1 Royal Battle Pass & Goddess Wish Fountain ==================== */
.mode-tab.sky-tab {
  border-color: rgba(255, 184, 108, 0.56);
  color: #fff3c4;
}
.mode-tab.sky-tab.is-active {
  background: linear-gradient(135deg, rgba(255, 212, 121, 0.38), rgba(234, 179, 8, 0.34));
  border-color: #fde047;
  color: #fef9c3;
  box-shadow: 0 0 14px rgba(255, 184, 108, 0.56);
}

.hud-btn.bp-highlight {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.24), rgba(255, 212, 121, 0.22));
  border-color: rgba(250, 204, 21, 0.58);
  color: #fef08a;
  font-weight: 700;
}
.hud-btn.bp-highlight:hover {
  border-color: #fde047;
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.35);
}

.bp-hero-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 18px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(255, 212, 121, 0.42), rgba(113, 63, 18, 0.45));
  border: 1px solid rgba(250, 204, 21, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 24px rgba(0, 0, 0, 0.35);
}
.bp-exp-bar {
  width: 260px;
  max-width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.35);
  overflow: hidden;
  margin-top: 6px;
}
.bp-exp-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffd166, #facc15, #38bdf8);
  transition: width 0.35s ease;
}
.bp-tiers-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-height: 54vh;
  overflow-y: auto;
  padding-right: 4px;
}
.bp-tier-row {
  display: grid;
  grid-template-columns: 118px 1fr 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.24);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.bp-tier-row.is-reached {
  border-color: rgba(255, 184, 108, 0.56);
  background: linear-gradient(90deg, rgba(255, 212, 121, 0.28), rgba(15, 23, 42, 0.84));
}
.bp-level-badge {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bp-level-badge strong {
  color: #fde047;
  font-size: 15px;
}
.bp-level-badge small {
  color: #94a3b8;
  font-size: 11.5px;
}
.bp-reward-cell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border-radius: 10px;
  background: rgba(30, 41, 59, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.2);
  font-size: 12.5px;
}
.bp-reward-cell.pro-cell {
  background: linear-gradient(135deg, rgba(113, 63, 18, 0.32), rgba(30, 41, 59, 0.74));
  border-color: rgba(250, 204, 21, 0.42);
}

.wish-altar-box {
  padding: 16px 18px;
  border-radius: 14px;
  background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.22), rgba(15, 23, 42, 0.92) 62%),
    linear-gradient(135deg, rgba(88, 28, 135, 0.34), rgba(15, 23, 42, 0.92));
  border: 1px solid rgba(250, 204, 21, 0.48);
  margin-bottom: 14px;
}
.wish-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.wish-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 10px;
  margin: 12px 0 14px;
}
.wish-result-card {
  padding: 12px;
  border-radius: 12px;
  text-align: center;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.32);
  animation: wishCardPop 0.36s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.wish-result-card.rarity-SSR {
  border: 1.5px solid #fde047;
  background: radial-gradient(circle at top, rgba(250, 204, 21, 0.28), rgba(15, 23, 42, 0.92));
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.36);
}
.wish-result-card.rarity-SR {
  border: 1.5px solid #c084fc;
  background: radial-gradient(circle at top, rgba(192, 132, 252, 0.24), rgba(15, 23, 42, 0.92));
  box-shadow: 0 0 14px rgba(192, 132, 252, 0.28);
}
.wish-result-card.rarity-R {
  border-color: rgba(255, 184, 108, 0.56);
}
@keyframes wishCardPop {
  from { opacity: 0; transform: translateY(10px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 780px) {
  .bp-tier-row { grid-template-columns: 1fr; }
}

/* ==================== v12.0 Depths, World Raid Boss & Sacred Gear Forge ==================== */
.mode-tab.depths-tab {
  border-color: rgba(255, 212, 121, 0.36);
  color: #bae6fd;
}
.mode-tab.depths-tab.is-active {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.45), rgba(88, 28, 135, 0.42));
  border-color: #38bdf8;
  color: #f0fdfa;
  box-shadow: 0 0 14px rgba(255, 212, 121, 0.34);
}
.mode-tab.raid-tab {
  border-color: rgba(251, 113, 133, 0.42);
  color: #fecdd3;
}
.mode-tab.raid-tab.is-active {
  background: linear-gradient(135deg, rgba(190, 18, 60, 0.46), rgba(202, 138, 4, 0.38));
  border-color: #fde047;
  color: #fef9c3;
  box-shadow: 0 0 15px rgba(244, 63, 94, 0.38);
}
.raid-hp-bar {
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(251, 113, 133, 0.48);
  overflow: hidden;
  margin-top: 8px;
}
.raid-hp-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #e11d48, #fb923c, #fde047);
  transition: width 0.4s ease;
}
.expedition-tab {
  border-color: rgba(56, 189, 248, 0.52) !important;
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.35), rgba(30, 58, 138, 0.45)) !important;
  color: #bae6fd !important;
}
.gauntlet-tab {
  border-color: rgba(251, 113, 133, 0.5) !important;
  background: linear-gradient(135deg, rgba(136, 19, 55, 0.38), rgba(88, 28, 135, 0.42)) !important;
  color: #fecdd3 !important;
}
.boon-stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 8px;
  margin: 10px 0 12px;
}
.boon-stack-chip {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(253, 224, 71, 0.32);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.theater-stage-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.86));
  border: 1px solid rgba(253, 224, 71, 0.45);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  margin-bottom: 10px;
}
.theater-acts-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.bond-active-glow {
  border-color: rgba(255, 184, 108, 0.56) !important;
  box-shadow: 0 0 16px rgba(255, 184, 108, 0.56);
}
.weather-btn {
  border-color: rgba(56, 189, 248, 0.55) !important;
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.36), rgba(30, 58, 138, 0.42)) !important;
  color: #e0f2fe !important;
}
.hero-card.skin-awakened {
  border-color: rgba(253, 224, 71, 0.85);
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.24), inset 0 0 18px rgba(253, 224, 71, 0.08);
}
.hero-card.skin-celestial {
  border-color: rgba(244, 114, 182, 0.88);
  box-shadow: 0 0 24px rgba(244, 114, 182, 0.28), inset 0 0 20px rgba(255, 212, 121, 0.12);
}
.hero-card.skin-divine {
  border-color: rgba(255, 212, 121, 0.92);
  box-shadow: 0 0 26px rgba(255, 212, 121, 0.3), inset 0 0 22px rgba(253, 224, 71, 0.14);
}
.hero-card.skin-mythic {
  border-color: rgba(232, 121, 249, 0.95);
  box-shadow: 0 0 28px rgba(192, 132, 252, 0.36), inset 0 0 24px rgba(56, 189, 248, 0.16);
}
.hero-card.skin-transcendent {
  border-color: rgba(56, 189, 248, 0.96);
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.36), inset 0 0 26px rgba(244, 114, 182, 0.2);
}
.hero-card.skin-primordial {
  border-color: rgba(249, 115, 22, 0.96);
  box-shadow: 0 0 32px rgba(249, 115, 22, 0.38), inset 0 0 26px rgba(250, 204, 21, 0.22);
}
.hero-card.skin-sovereign {
  border-color: rgba(234, 179, 8, 0.98);
  box-shadow: 0 0 34px rgba(234, 179, 8, 0.42), inset 0 0 28px rgba(37, 99, 235, 0.24);
}
.hero-card.skin-eternal {
  border-color: rgba(34, 211, 238, 0.98);
  box-shadow: 0 0 36px rgba(34, 211, 238, 0.44), inset 0 0 28px rgba(192, 132, 252, 0.26);
}
.hero-card.skin-genesis {
  border-color: rgba(236, 72, 153, 0.98);
  box-shadow: 0 0 38px rgba(236, 72, 153, 0.46), inset 0 0 30px rgba(250, 204, 21, 0.28);
}
.hero-card.skin-aeon {
  border-color: rgba(251, 191, 36, 0.98);
  box-shadow: 0 0 40px rgba(251, 191, 36, 0.48), inset 0 0 32px rgba(168, 85, 247, 0.3);
}
.hero-card.skin-empyrean {
  border-color: rgba(255, 212, 121, 0.98);
  box-shadow: 0 0 42px rgba(255, 212, 121, 0.5), inset 0 0 34px rgba(250, 204, 21, 0.32);
}
.hero-card.skin-jubilee {
  border-color: rgba(250, 204, 21, 0.99);
  box-shadow: 0 0 44px rgba(250, 204, 21, 0.54), inset 0 0 36px rgba(255, 255, 255, 0.32);
}
.hero-card.skin-apotheosis {
  border-color: rgba(103, 232, 249, 0.99);
  box-shadow: 0 0 46px rgba(56, 189, 248, 0.56), inset 0 0 38px rgba(253, 224, 71, 0.34);
}
.hero-card.skin-nirvana {
  border-color: rgba(251, 113, 133, 0.99);
  box-shadow: 0 0 48px rgba(244, 63, 94, 0.56), inset 0 0 38px rgba(253, 224, 71, 0.36);
}
.hero-card.skin-celestium {
  border-color: rgba(14, 165, 233, 0.99);
  box-shadow: 0 0 48px rgba(14, 165, 233, 0.58), inset 0 0 38px rgba(224, 242, 254, 0.36);
}
.hero-card.skin-astral-crown {
  border-color: rgba(168, 85, 247, 0.99);
  box-shadow: 0 0 50px rgba(168, 85, 247, 0.62), inset 0 0 40px rgba(253, 224, 71, 0.38);
}
.hero-card.skin-elysium {
  border-color: rgba(245, 158, 11, 0.99);
  box-shadow: 0 0 52px rgba(245, 158, 11, 0.65), inset 0 0 42px rgba(255, 212, 121, 0.38);
}
.hero-card.skin-omni-crown {
  border-color: rgba(253, 224, 71, 0.99);
  box-shadow: 0 0 54px rgba(253, 224, 71, 0.68), inset 0 0 44px rgba(255, 212, 121, 0.40);
}
.hero-card.skin-stellaris {
  border-color: rgba(56, 189, 248, 0.99);
  box-shadow: 0 0 56px rgba(56, 189, 248, 0.68), inset 0 0 46px rgba(192, 132, 252, 0.42);
}
.hero-card.skin-harmonia {
  border-color: rgba(244, 114, 182, 0.99);
  box-shadow: 0 0 58px rgba(244, 114, 182, 0.68), inset 0 0 48px rgba(192, 132, 252, 0.44);
}
.hero-card.skin-aether-atlas {
  border-color: rgba(255, 212, 121, 0.99);
  box-shadow: 0 0 60px rgba(255, 212, 121, 0.68), inset 0 0 48px rgba(253, 224, 71, 0.40);
}
.hero-card.skin-pantheon-crown {
  border-color: rgba(253, 224, 71, 0.99);
  box-shadow: 0 0 64px rgba(253, 224, 71, 0.72), inset 0 0 50px rgba(103, 232, 249, 0.44);
}
.hero-card.skin-oceanic-dream {
  border-color: rgba(56, 189, 248, 0.99);
  box-shadow: 0 0 68px rgba(56, 189, 248, 0.74), inset 0 0 52px rgba(251, 191, 36, 0.46);
}
.hero-card.skin-quarter-crown {
  border-color: rgba(245, 158, 11, 0.99);
  box-shadow: 0 0 72px rgba(245, 158, 11, 0.78), inset 0 0 54px rgba(251, 113, 133, 0.48);
}
.hero-card.skin-prism-gallery {
  border-color: rgba(192, 132, 252, 0.99);
  box-shadow: 0 0 76px rgba(192, 132, 252, 0.78), inset 0 0 56px rgba(253, 224, 71, 0.50);
}
.hero-card.skin-couture-bloom {
  border-color: rgba(236, 72, 153, 0.99);
  box-shadow: 0 0 80px rgba(236, 72, 153, 0.80), inset 0 0 58px rgba(255, 212, 121, 0.52);
}
.hero-card.skin-octo-pantheon {
  border-color: rgba(250, 204, 21, 0.99);
  box-shadow: 0 0 84px rgba(250, 204, 21, 0.82), inset 0 0 60px rgba(56, 189, 248, 0.54);
}
.hero-card.skin-ballad-grace {
  border-color: rgba(56, 189, 248, 0.99);
  box-shadow: 0 0 86px rgba(56, 189, 248, 0.84), inset 0 0 62px rgba(251, 113, 133, 0.54);
}
.hero-card.skin-tri-zenith {
  border-color: rgba(253, 224, 71, 0.99);
  box-shadow: 0 0 90px rgba(250, 204, 21, 0.88), inset 0 0 66px rgba(249, 115, 22, 0.58);
}
.hero-card.skin-skyward-wolf {
  border-color: rgba(56, 189, 248, 0.99);
  box-shadow: 0 0 92px rgba(56, 189, 248, 0.88), inset 0 0 68px rgba(250, 204, 21, 0.58);
}
.hero-card.skin-sovereign-pearl {
  border-color: rgba(34, 211, 238, 0.99);
  box-shadow: 0 0 94px rgba(34, 211, 238, 0.88), inset 0 0 70px rgba(192, 132, 252, 0.58);
}
.hero-card.skin-pantheon-eternity {
  border-color: rgba(253, 224, 71, 0.99);
  box-shadow: 0 0 98px rgba(250, 204, 21, 0.90), inset 0 0 72px rgba(255, 212, 121, 0.60);
}
.hero-card.skin-siren-valiant {
  border-color: rgba(103, 232, 249, 0.99);
  box-shadow: 0 0 100px rgba(103, 232, 249, 0.90), inset 0 0 74px rgba(244, 114, 182, 0.62);
}
.hero-card.skin-chrono-ocean {
  border-color: rgba(251, 191, 36, 0.99);
  box-shadow: 0 0 102px rgba(251, 191, 36, 0.90), inset 0 0 76px rgba(56, 189, 248, 0.62);
}
.hero-card.skin-dragon-pyramid {
  border-color: rgba(249, 115, 22, 0.99);
  box-shadow: 0 0 104px rgba(249, 115, 22, 0.90), inset 0 0 78px rgba(168, 85, 247, 0.62);
}
.hero-card.skin-oracle-broom {
  border-color: rgba(255, 212, 121, 0.99);
  box-shadow: 0 0 106px rgba(255, 212, 121, 0.90), inset 0 0 80px rgba(236, 72, 153, 0.62);
}
.hero-card.skin-centennial-sovereign {
  border-color: rgba(250, 204, 21, 0.99);
  box-shadow: 0 0 112px rgba(250, 204, 21, 0.94), inset 0 0 84px rgba(56, 189, 248, 0.65);
}
.hero-card.skin-thunder-bell {
  border-color: rgba(6, 182, 212, 0.99);
  box-shadow: 0 0 114px rgba(6, 182, 212, 0.92), inset 0 0 86px rgba(255, 212, 121, 0.62);
}
.hero-card.skin-quad-zenith {
  border-color: rgba(253, 224, 71, 0.99);
  box-shadow: 0 0 118px rgba(253, 224, 71, 0.95), inset 0 0 88px rgba(56, 189, 248, 0.68);
}
.skin-toggle-btn {
  border: 1px solid rgba(253, 224, 71, 0.65);
  background: linear-gradient(135deg, rgba(161, 98, 7, 0.42), rgba(113, 63, 18, 0.52));
  color: #fef08a;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.skin-toggle-btn.is-celestial {
  border-color: rgba(244, 114, 182, 0.8);
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.55), rgba(15, 118, 110, 0.55));
  color: #fbcfe8;
}
.skin-toggle-btn.is-divine {
  border-color: rgba(255, 212, 121, 0.85);
  background: linear-gradient(135deg, rgba(255, 212, 121, 0.65), rgba(180, 83, 9, 0.6));
  color: #fef08a;
}
.skin-toggle-btn.is-mythic {
  border-color: rgba(232, 121, 249, 0.9);
  background: linear-gradient(135deg, rgba(76, 29, 149, 0.72), rgba(14, 116, 144, 0.68));
  color: #fef08a;
}
.skin-toggle-btn.is-transcendent {
  border-color: rgba(56, 189, 248, 0.95);
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.72), rgba(190, 24, 93, 0.68));
  color: #fef9c3;
}
.skin-toggle-btn.is-primordial {
  border-color: rgba(249, 115, 22, 0.96);
  background: linear-gradient(135deg, rgba(153, 27, 27, 0.78), rgba(180, 83, 9, 0.75));
  color: #fef08a;
}
.skin-toggle-btn.is-sovereign {
  border-color: rgba(234, 179, 8, 0.98);
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.82), rgba(180, 83, 9, 0.82));
  color: #ffffff;
}
.skin-toggle-btn.is-eternal {
  border-color: rgba(34, 211, 238, 0.98);
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.85), rgba(107, 33, 168, 0.85));
  color: #fef08a;
}
.skin-toggle-btn.is-genesis {
  border-color: rgba(236, 72, 153, 0.98);
  background: linear-gradient(135deg, rgba(190, 24, 93, 0.88), rgba(14, 116, 144, 0.88));
  color: #fef08a;
}
.skin-toggle-btn.is-aeon {
  border-color: rgba(251, 191, 36, 0.98);
  background: linear-gradient(135deg, rgba(146, 64, 14, 0.9), rgba(88, 28, 135, 0.9));
  color: #ffffff;
}
.skin-toggle-btn.is-empyrean {
  border-color: rgba(255, 212, 121, 0.98);
  background: linear-gradient(135deg, rgba(255, 212, 121, 0.92), rgba(161, 98, 7, 0.9));
  color: #fef9c3;
}
.skin-toggle-btn.is-jubilee {
  border-color: rgba(250, 204, 21, 0.99);
  background: linear-gradient(135deg, rgba(202, 138, 4, 0.94), rgba(37, 99, 235, 0.92));
  color: #ffffff;
}
.skin-toggle-btn.is-apotheosis {
  border-color: rgba(103, 232, 249, 0.99);
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.94), rgba(202, 138, 4, 0.92));
  color: #ecfeff;
}
.skin-toggle-btn.is-nirvana {
  border-color: rgba(251, 113, 133, 0.99);
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.94), rgba(217, 119, 6, 0.92));
  color: #fff1f2;
}
.skin-toggle-btn.is-celestium {
  border-color: rgba(14, 165, 233, 0.99);
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.95), rgba(30, 58, 138, 0.94));
  color: #f0f9ff;
}
.skin-toggle-btn.is-astral-crown {
  border-color: rgba(168, 85, 247, 0.99);
  background: linear-gradient(135deg, rgba(126, 34, 206, 0.95), rgba(255, 212, 121, 0.92));
  color: #fef08a;
}
.skin-toggle-btn.is-elysium {
  border-color: rgba(245, 158, 11, 0.99);
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.96), rgba(255, 212, 121, 0.94));
  color: #fffbeb;
}
.skin-toggle-btn.is-omni-crown {
  border-color: rgba(253, 224, 71, 0.99);
  background: linear-gradient(135deg, rgba(202, 138, 4, 0.96), rgba(255, 212, 121, 0.94));
  color: #fefce8;
}
.skin-toggle-btn.is-stellaris {
  border-color: rgba(56, 189, 248, 0.99);
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.96), rgba(124, 58, 237, 0.94));
  color: #f0f9ff;
}
.skin-toggle-btn.is-harmonia {
  border-color: rgba(244, 114, 182, 0.99);
  background: linear-gradient(135deg, rgba(190, 24, 93, 0.96), rgba(126, 34, 206, 0.94));
  color: #fdf4ff;
}
.skin-toggle-btn.is-aether-atlas {
  border-color: rgba(255, 212, 121, 0.99);
  background: linear-gradient(135deg, rgba(255, 212, 121, 0.96), rgba(2, 132, 199, 0.94));
  color: #f0fdfa;
}
.skin-toggle-btn.is-pantheon-crown {
  border-color: rgba(253, 224, 71, 0.99);
  background: linear-gradient(135deg, rgba(202, 138, 4, 0.96), rgba(124, 58, 237, 0.94));
  color: #fefce8;
}
.skin-toggle-btn.is-oceanic-dream {
  border-color: rgba(56, 189, 248, 0.99);
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.96), rgba(217, 119, 6, 0.94));
  color: #f0f9ff;
}
.skin-toggle-btn.is-quarter-crown {
  border-color: rgba(245, 158, 11, 0.99);
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.96), rgba(190, 24, 93, 0.94));
  color: #fffbeb;
}
.skin-toggle-btn.is-prism-gallery {
  border-color: rgba(192, 132, 252, 0.99);
  background: linear-gradient(135deg, rgba(126, 34, 206, 0.96), rgba(202, 138, 4, 0.94));
  color: #faf5ff;
}
.skin-toggle-btn.is-couture-bloom {
  border-color: rgba(236, 72, 153, 0.99);
  background: linear-gradient(135deg, rgba(219, 39, 119, 0.96), rgba(255, 212, 121, 0.94));
  color: #fdf2f8;
}
.skin-toggle-btn.is-octo-pantheon {
  border-color: rgba(250, 204, 21, 0.99);
  background: linear-gradient(135deg, rgba(202, 138, 4, 0.96), rgba(2, 132, 199, 0.94));
  color: #fefce8;
}
.skin-toggle-btn.is-ballad-grace {
  border-color: rgba(56, 189, 248, 0.99);
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.96), rgba(225, 29, 72, 0.94));
  color: #f0f9ff;
}
.skin-toggle-btn.is-tri-zenith {
  border-color: rgba(253, 224, 71, 0.99);
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.96), rgba(2, 132, 199, 0.94));
  color: #fefce8;
}
.skin-toggle-btn.is-skyward-wolf {
  border-color: rgba(56, 189, 248, 0.99);
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.96), rgba(202, 138, 4, 0.94));
  color: #f0f9ff;
}
.skin-toggle-btn.is-sovereign-pearl {
  border-color: rgba(34, 211, 238, 0.99);
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.96), rgba(147, 51, 234, 0.94));
  color: #ecfeff;
}
.skin-toggle-btn.is-pantheon-eternity {
  border-color: rgba(253, 224, 71, 0.99);
  background: linear-gradient(135deg, rgba(202, 138, 4, 0.96), rgba(255, 212, 121, 0.94));
  color: #fefce8;
}
.skin-toggle-btn.is-siren-valiant {
  border-color: rgba(103, 232, 249, 0.99);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.96), rgba(219, 39, 119, 0.94));
  color: #ecfeff;
}
.skin-toggle-btn.is-chrono-ocean {
  border-color: rgba(251, 191, 36, 0.99);
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.96), rgba(2, 132, 199, 0.94));
  color: #fffbeb;
}
.skin-toggle-btn.is-dragon-pyramid {
  border-color: rgba(249, 115, 22, 0.99);
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.96), rgba(126, 34, 206, 0.94));
  color: #fff7ed;
}
.skin-toggle-btn.is-oracle-broom {
  border-color: rgba(255, 212, 121, 0.99);
  background: linear-gradient(135deg, rgba(255, 212, 121, 0.96), rgba(190, 24, 93, 0.94));
  color: #fffaf0;
}
.skin-toggle-btn.is-centennial-sovereign {
  border-color: rgba(250, 204, 21, 0.99);
  background: linear-gradient(135deg, rgba(202, 138, 4, 0.98), rgba(14, 165, 233, 0.95));
  color: #fffbeb;
}
.skin-toggle-btn.is-thunder-bell {
  border-color: rgba(6, 182, 212, 0.99);
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.98), rgba(255, 212, 121, 0.95));
  color: #ecfeff;
}
.skin-toggle-btn.is-quad-zenith {
  border-color: rgba(253, 224, 71, 0.99);
  background: linear-gradient(135deg, rgba(202, 138, 4, 0.98), rgba(2, 132, 199, 0.96));
  color: #fefce8;
}
.skin-toggle-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(250, 204, 21, 0.28);
}
.tear-unlocked-glow {
  border-color: rgba(253, 224, 71, 0.85) !important;
  box-shadow: 0 0 16px rgba(250, 204, 21, 0.22);
}
.affinity-quote-chip {
  margin: 4px 0;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(244, 114, 182, 0.12);
  border-left: 3px solid #f472b6;
  color: #fbcfe8;
  font-size: 11.5px;
}
.affinity-gift-btn {
  border: 1px solid rgba(244, 114, 182, 0.72);
  background: linear-gradient(135deg, rgba(157, 23, 77, 0.45), rgba(131, 24, 67, 0.55));
  color: #fce7f3;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.affinity-gift-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(244, 114, 182, 0.3);
}

/* ==================== v62.0 Omni-Starlight UX, Glassmorphism & Accessibility Polish ==================== */
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}

/* Sticky Modal Header so Close Button & Title Always Stay Accessible While Scrolling */
.sheikah-modal .modal-head {
  position: sticky;
  top: -18px;
  margin: -18px -20px 14px;
  padding: 14px 20px 12px;
  background: linear-gradient(180deg, rgba(11, 18, 35, 0.98) 0%, rgba(11, 18, 35, 0.92) 88%, rgba(11, 18, 35, 0) 100%);
  backdrop-filter: blur(16px);
  z-index: 8;
}

.hud-btn kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9.5px;
  padding: 0 4px;
  margin-left: 3px;
  border-radius: 4px;
  background: rgba(9, 14, 28, 0.72);
  border: 1px solid rgba(250, 204, 21, 0.35);
  color: #fef08a;
}

.hud-btn.cmd-search-btn {
  border-color: rgba(253, 224, 71, 0.72);
  background: linear-gradient(135deg, rgba(202, 138, 4, 0.34), rgba(14, 116, 144, 0.46));
  color: #fef9c3;
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.18);
}
.hud-btn.cmd-search-btn:hover {
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.38);
}

/* Title Curtain Quick Entry Pills */
.title-quick-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 6px;
}
.title-mini-pill {
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #e0f2fe;
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.title-mini-pill:hover {
  transform: translateY(-1px);
  border-color: var(--gold);
  background: rgba(30, 41, 59, 0.92);
  color: #fef08a;
}

/* Real-Time Stage Proximity Interaction Prompt Pill */
.proximity-hint-pill {
  position: absolute;
  left: 50%;
  bottom: 84px;
  transform: translateX(-50%);
  background: linear-gradient(135deg, rgba(13, 23, 44, 0.94), rgba(21, 94, 117, 0.88));
  backdrop-filter: blur(12px);
  border: 1px solid rgba(253, 224, 71, 0.85);
  box-shadow: 0 10px 26px rgba(2, 6, 23, 0.65), 0 0 18px rgba(250, 204, 21, 0.28);
  color: #fef9c3;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  z-index: 16;
  white-space: nowrap;
  max-width: 92vw;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.proximity-hint-pill:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.78), 0 0 22px rgba(250, 204, 21, 0.48);
}
.proximity-hint-pill[hidden] {
  display: none !important;
}

/* Interactive Footer Shortcut Strip */
.footer-shortcut-strip {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
}
.footer-shortcut-strip::-webkit-scrollbar { display: none; }
.footer-lead-label {
  font-weight: 700;
  color: #fde047;
  white-space: nowrap;
  margin-right: 2px;
}
.footer-static-chip,
.footer-key-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2.5px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #e2e8f0;
  white-space: nowrap;
}
.footer-key-pill {
  cursor: pointer;
  transition: border-color 0.14s ease, background 0.14s ease, transform 0.14s ease;
}
.footer-key-pill:hover {
  border-color: var(--gold);
  background: rgba(51, 65, 85, 0.88);
  color: #fff;
  transform: translateY(-1px);
}
.footer-static-chip kbd,
.footer-key-pill kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 700;
  padding: 0 4px;
  border-radius: 4px;
  background: rgba(9, 14, 28, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #7dd3fc;
}

/* Sticky Filter & Search Toolbar (Hero Pantheon / Achievements / Theater / Workshop) */
.hero-filter-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 9px 12px;
  margin-bottom: 12px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(56, 189, 248, 0.32);
  border-radius: 11px;
}
.hero-search-input,
.wk-brush-filter-bar input {
  flex: 1 1 210px;
  min-width: 180px;
  background: rgba(7, 12, 24, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #f8fafc;
  padding: 6.5px 11px;
  border-radius: 8px;
  font-size: 12.5px;
  user-select: text;
}
.hero-search-input:focus,
.wk-brush-filter-bar input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.2);
}
.hero-filter-pills,
.wk-cat-pills,
.cmd-cat-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}
.filter-pill {
  background: rgba(30, 41, 59, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: #cbd5e1;
  border-radius: 999px;
  padding: 4.5px 10px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s ease;
}
.filter-pill:hover {
  border-color: var(--teal);
  color: #fff;
}
.filter-pill.is-active {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.34), rgba(14, 165, 233, 0.32));
  border-color: var(--gold);
  color: #fef9c3;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.22);
}
.hero-batch-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.filter-count-tag {
  font-size: 11.5px;
  color: #7dd3fc;
  font-weight: 700;
  padding: 0 4px;
}

/* Direct 19-Tier Sacred Regalia Dropdown on Hero Cards */
.skin-select-mini {
  background: rgba(9, 15, 29, 0.94);
  border: 1px solid rgba(250, 204, 21, 0.55);
  color: #fef08a;
  border-radius: 8px;
  padding: 4px 6px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  max-width: 148px;
}
.skin-select-mini:hover {
  border-color: var(--gold-bright);
}

/* Workshop Brush Filter & Active Brush Indicator */
.wk-brush-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}
.wk-active-brush-bar {
  margin-bottom: 8px;
  padding: 5px 11px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(56, 189, 248, 0.38);
  color: #bae6fd;
  font-size: 12px;
  font-weight: 600;
}

/* Omni-Starlight Global Command Palette Modal */
.cmd-palette-modal {
  width: min(680px, 94vw);
  max-height: 80vh;
  padding: 14px 16px;
}
.cmd-palette-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(7, 12, 24, 0.95);
  border: 1px solid rgba(250, 204, 21, 0.62);
  border-radius: 11px;
  margin-bottom: 10px;
}
.cmd-search-icon {
  font-size: 17px;
}
.cmd-palette-head input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 14px;
  user-select: text;
}
.cmd-palette-head input:focus {
  outline: none;
}
.cmd-cat-bar {
  margin-bottom: 10px;
}
.cmd-results-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 48vh;
  overflow-y: auto;
  padding-right: 4px;
}
.cmd-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(24, 35, 56, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #f1f5f9;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease, transform 0.12s ease;
}
.cmd-result-item:hover,
.cmd-result-item.is-selected {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.24), rgba(14, 165, 233, 0.26));
  border-color: var(--gold);
  transform: translateX(2px);
}
.cmd-result-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.cmd-result-icon {
  font-size: 19px;
  flex-shrink: 0;
}
.cmd-result-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.cmd-result-text strong {
  font-size: 13px;
  color: #fef9c3;
}
.cmd-result-text small {
  font-size: 11.5px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cmd-result-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.42);
  color: #7dd3fc;
  white-space: nowrap;
}
.cmd-palette-foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  font-size: 11.5px;
  color: #94a3b8;
}
.cmd-palette-foot kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(250, 204, 21, 0.35);
  color: #fde047;
}

@media (max-width: 1360px) {
  .top-hud {
    flex-wrap: wrap;
    padding: 6px 12px;
    gap: 6px;
  }
  .mode-tabs {
    order: 3;
    width: 100%;
  }
}


/* v125 Tougaigu x Dalaran Enamel HUD Polish */
.top-hud {
  background: linear-gradient(180deg, rgba(14, 22, 48, 0.96) 0%, rgba(9, 15, 34, 0.90) 100%);
  border-bottom: 1px solid rgba(255, 224, 138, 0.42);
  box-shadow: 0 8px 28px rgba(3, 6, 18, 0.62), inset 0 1px 0 rgba(255, 250, 235, 0.16);
}
.hud-btn, .mode-tab {
  box-shadow: inset 0 1px 0 rgba(255, 250, 240, 0.14), 0 2px 8px rgba(4, 7, 20, 0.35);
}
.sheikah-modal {
  border: 1.5px solid rgba(255, 224, 138, 0.52) !important;
  box-shadow: 0 24px 64px rgba(2, 5, 16, 0.82), inset 0 1px 0 rgba(255, 250, 240, 0.22) !important;
}
.map-cell.can-warp {
  border-color: rgba(255, 224, 138, 0.68) !important;
  box-shadow: 0 4px 12px rgba(125, 211, 252, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.20);
}
.map-cell.is-here {
  border-color: #ffe484 !important;
  box-shadow: 0 0 16px rgba(255, 228, 132, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}
