/* ============================================================================
   ROYAL GEM FORGE: DROP & CRUSH — Lush Royal Match / Candy Crush UI Styles
   ============================================================================ */

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0f172a;
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #ffffff;
  touch-action: none;
}

#app-shell {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 50% 35%, #1e1b4b 0%, #0f172a 100%);
}

/* ============================================================================
   TOP ROYAL HEADER BAR (Moves Counter + Level Goals + 3-Star Progress)
   ============================================================================ */
#top-hud {
  height: 64px;
  padding: 0 16px;
  background: linear-gradient(180deg, #1e1b4b 0%, #0f172a 100%);
  border-bottom: 3px solid #fbbf24;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  z-index: 25;
}

.hud-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Candy Crush / Royal Match Style Moves Counter */
.moves-badge {
  background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%);
  border: 2px solid #fef08a;
  border-radius: 14px;
  padding: 4px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 72px;
  box-shadow: 0 3px 0 #92400e, 0 4px 12px rgba(251, 191, 36, 0.35);
}

.moves-badge.moves-danger {
  background: linear-gradient(180deg, #f43f5e 0%, #be123c 100%);
  border-color: #fecdd3;
  box-shadow: 0 3px 0 #881337, 0 0 16px rgba(244, 63, 94, 0.65);
  animation: dangerPulse 0.6s infinite alternate;
}

@keyframes dangerPulse {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}

.moves-label {
  font-size: 9px;
  font-weight: 900;
  color: #1e1b4b;
  letter-spacing: 0.8px;
}

.moves-badge.moves-danger .moves-label {
  color: #ffe4e6;
}

.moves-num {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.05;
  color: #0f172a;
}

.moves-badge.moves-danger .moves-num {
  color: #ffffff;
}

.hud-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 5px 12px;
  display: flex;
  flex-direction: column;
}

.hud-pill .label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.7px;
  color: #94a3b8;
  text-transform: uppercase;
}

.hud-pill .value {
  font-size: 14px;
  font-weight: 900;
  color: #ffffff;
}

.hud-pill.level-pill {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.14);
}

.hud-pill.level-pill .value {
  color: #bae6fd;
}

.hud-pill.coin-pill {
  border-color: #fbbf24;
  background: rgba(251, 191, 36, 0.14);
}

.hud-pill.coin-pill .value {
  color: #fbbf24;
}

.hud-pill.streak-pill {
  border-color: #fb923c;
  background: rgba(251, 146, 60, 0.16);
}

.hud-pill.streak-pill .value {
  color: #fdba74;
}

/* Live Level Goals Checklist Bar */
.goals-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.goal-chip {
  background: rgba(15, 23, 42, 0.85);
  border: 2px solid #38bdf8;
  border-radius: 12px;
  padding: 5px 11px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 900;
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, border-color 0.2s ease;
}

.goal-chip.goal-done {
  border-color: #34d399;
  background: rgba(16, 185, 129, 0.22);
  color: #a7f3d0;
}

.goal-chip .g-icon {
  font-size: 17px;
}

/* 3-Star Progress Meter */
.star-meter-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 118px;
  gap: 3px;
}

.star-row {
  font-size: 13px;
  letter-spacing: 3px;
}

.star-bar-bg {
  width: 100%;
  height: 9px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 99px;
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.45);
}

#hud-star-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #fbbf24, #34d399);
  transition: width 0.2s ease;
}

/* Canvas Area — Full-Screen Edge-to-Edge Aspect-Locked Scaling */
#canvas-container {
  position: relative;
  flex: 1;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#game-canvas {
  width: min(100vw, calc(100vh * (1140 / 680)));
  height: min(100vh, calc(100vw * (680 / 1140)));
  display: block;
  cursor: pointer;
}

#game-canvas.portrait-canvas {
  width: min(100vw, calc(100vh * (520 / 860)));
  height: min(100vh, calc(100vw * (860 / 520)));
}

/* ============================================================================
   LEFT PANEL: EARNED BOOSTERS (Bottom-Left Corner, Non-Blocking!)
   ============================================================================ */
#left-tools-panel {
  position: absolute;
  bottom: 14px;
  left: 14px;
  width: 196px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 20;
}

.panel-box {
  background: rgba(15, 23, 42, 0.92);
  border: 2px solid rgba(251, 191, 36, 0.45);
  border-radius: 16px;
  padding: 10px 11px;
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}

.panel-title {
  font-size: 10.5px;
  font-weight: 900;
  color: #fbbf24;
  letter-spacing: 0.7px;
  margin-bottom: 2px;
}

.panel-sub {
  font-size: 10px;
  color: #cbd5e1;
  margin-bottom: 8px;
}

.tool-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.16);
  border: 2px solid #34d399;
  border-radius: 12px;
  padding: 7px 9px;
  color: #ffffff;
  text-align: left;
  cursor: pointer;
  margin-bottom: 6px;
  box-shadow: 0 0 14px rgba(52, 211, 153, 0.35);
  transition: transform 0.1s ease, background 0.12s ease;
}

.tool-btn:last-child {
  margin-bottom: 0;
}

.tool-btn:hover:not(.tool-charging) {
  background: rgba(52, 211, 153, 0.28);
  transform: translateX(3px);
}

.tool-btn.tool-charging {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
  opacity: 0.72;
  cursor: not-allowed;
}

.tool-key {
  background: #fbbf24;
  color: #0f172a;
  font-weight: 900;
  font-size: 11px;
  width: 21px;
  height: 21px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tool-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.tool-info {
  flex: 1;
  min-width: 0;
}

.tool-info strong {
  display: block;
  font-size: 11px;
  color: #ffffff;
}

.tool-info span {
  display: block;
  font-size: 9.5px;
  color: #34d399;
  font-weight: 800;
  margin-bottom: 3px;
}

.tool-btn.tool-charging .tool-info span {
  color: #94a3b8;
}

.tool-bar-bg {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 99px;
  overflow: hidden;
}

.tool-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #fbbf24, #34d399);
  transition: width 0.2s ease;
}

/* ============================================================================
   NON-BLOCKING CORNER BOOSTER CHOOSER (Bottom-Right Corner)
   ============================================================================ */
.corner-perk-chooser {
  position: absolute;
  bottom: 36px;
  right: 14px;
  width: 300px;
  background: rgba(15, 23, 42, 0.95);
  border: 2px solid #fbbf24;
  border-radius: 18px;
  padding: 11px 12px;
  z-index: 30;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.7), 0 0 20px rgba(251, 191, 36, 0.25);
  backdrop-filter: blur(8px);
  animation: cornerSlideIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cornerSlideIn {
  from { transform: translateY(20px) scale(0.95); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

.perk-corner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.perk-corner-badge {
  display: block;
  font-size: 10px;
  font-weight: 900;
  color: #fbbf24;
  letter-spacing: 0.7px;
}

.perk-corner-header h4 {
  font-size: 12px;
  color: #38bdf8;
  font-weight: 800;
}

.perk-queue-pill {
  background: #f43f5e;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 99px;
}

.perk-corner-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.corner-perk-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(56, 189, 248, 0.5);
  border-radius: 12px;
  padding: 8px 10px;
  color: #ffffff;
  text-align: left;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.12s ease;
}

.corner-perk-btn:hover {
  background: rgba(56, 189, 248, 0.22);
  transform: translateX(-3px);
}

.corner-perk-key {
  background: #fbbf24;
  color: #0f172a;
  font-weight: 900;
  font-size: 11px;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.corner-perk-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.corner-perk-info strong {
  display: block;
  font-size: 13px;
  color: #ffffff;
}

.corner-perk-info span {
  display: block;
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.2;
}

/* ============================================================================
   2.5D VERTICAL CANDY-CRUSH SAGA OVERWORLD MAP (FULL-SCREEN BORDERLESS)
   ============================================================================ */
.saga-fullscreen-overlay {
  padding: 0 !important;
  background: #0b192c;
  backdrop-filter: none;
}

.saga-fullscreen-shell {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.85);
}

.level-map-section {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
  box-shadow: none;
}

.saga-overworld-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  max-height: none;
  border-radius: 0;
  overflow: hidden;
  border: none;
  box-shadow: none;
  background: #0b192c;
}

/* Floating Bottom Navigation Dock on Saga Map (Candy Crush Bottom Tab Bar) */
.saga-bottom-dock {
  position: absolute;
  bottom: max(14px, env(safe-area-inset-bottom, 14px));
  left: 50%;
  transform: translateX(-50%);
  width: min(94%, 440px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 99px;
  background: linear-gradient(180deg, rgba(23, 37, 84, 0.88) 0%, rgba(15, 23, 42, 0.94) 100%);
  backdrop-filter: blur(12px);
  border: none;
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.72),
    inset 0 1.5px 1px rgba(255, 255, 255, 0.25);
  z-index: 32;
}

.saga-nav-pill {
  border: none;
  outline: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 99px;
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 76px;
  color: #f8fafc;
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.35),
    inset 0 1px 1px rgba(255, 255, 255, 0.28);
  transition: transform 0.12s ease, background 0.14s ease;
}

.saga-nav-pill:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.saga-nav-pill:active {
  transform: translateY(1px);
}

.nav-pill-icon {
  font-size: 19px;
  line-height: 1;
}

.nav-pill-label {
  font-size: 10px;
  font-weight: 900;
  color: #e2e8f0;
  letter-spacing: 0.3px;
}

.saga-play-cta {
  flex: 1;
  border-radius: 99px !important;
  padding: 13px 20px !important;
  font-size: 17px !important;
  border: none !important;
  background: linear-gradient(180deg, #ff6b9d 0%, #ec4899 52%, #be185d 100%) !important;
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(131, 24, 67, 0.85) !important;
  box-shadow:
    0 5px 0 #831843,
    0 10px 22px rgba(236, 72, 153, 0.5),
    inset 0 2px 2px rgba(255, 255, 255, 0.55) !important;
}

/* 1. FLOATING HUD OVERLAY (Top Resource/Relic Ribbon + Left Airship + Right Crucible Bank) */
.saga-floating-hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 25;
}

.saga-top-ribbon {
  position: absolute;
  top: max(12px, env(safe-area-inset-top, 12px));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, rgba(23, 37, 84, 0.86) 0%, rgba(15, 23, 42, 0.92) 100%);
  backdrop-filter: blur(10px);
  border: none;
  border-radius: 99px;
  padding: 6px 14px;
  pointer-events: auto;
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.65),
    inset 0 1px 1px rgba(255, 255, 255, 0.25);
  white-space: nowrap;
}

.saga-res-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 900;
  color: #fef08a;
  padding: 2px 6px;
}

.saga-res-pill + .saga-res-pill {
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  padding-left: 10px;
}

.relic-strip-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.mini-relic-slot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.78);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6);
}

.mini-relic-slot.is-on {
  background: radial-gradient(circle, rgba(251, 191, 36, 0.42) 0%, rgba(30, 58, 138, 0.9) 100%);
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.55);
}

.mini-relic-slot img {
  width: 18px !important;
  height: 18px !important;
  object-fit: contain;
  display: block;
}

/* Left & Right Candy-Crush Style Floating Side Widgets */
.saga-side-widget {
  position: absolute;
  top: 64px;
  width: 78px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  pointer-events: auto;
  z-index: 26;
}

.saga-side-widget.side-left {
  left: 12px;
}

.saga-side-widget.side-right {
  right: 12px;
}

.widget-TopCallout {
  background: rgba(15, 23, 42, 0.85);
  border: none;
  border-radius: 99px;
  padding: 3px 9px;
  font-size: 9.5px;
  font-weight: 900;
  color: #fde047;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

.widget-TopCallout.callout-ready {
  background: linear-gradient(180deg, #fb7185 0%, #e11d48 100%);
  color: #ffffff;
  animation: widgetFloatPulse 1.3s infinite ease-in-out;
}

.widget-balloon-frame,
.widget-piggy-frame {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(56, 189, 248, 0.45) 0%, rgba(23, 37, 84, 0.92) 100%);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.65),
    inset 0 2px 2px rgba(255, 255, 255, 0.35);
  animation: crownFloatBounce 2.6s infinite ease-in-out;
}

.widget-piggy-frame {
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.widget-balloon-frame.streak-hot,
.widget-piggy-frame.piggy-ready {
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.85), 0 8px 18px rgba(0, 0, 0, 0.75);
}

.widget-piggy-frame:hover {
  transform: scale(1.08);
  filter: brightness(1.1);
}

.widget-hero-img {
  width: 54px !important;
  height: 54px !important;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.8));
  pointer-events: none;
}

.widget-badge-num {
  position: absolute;
  bottom: -3px;
  right: -3px;
  background: linear-gradient(180deg, #f43f5e 0%, #be123c 100%);
  border: none;
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  border-radius: 99px;
  padding: 2px 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.widget-ribbon-tag {
  background: rgba(15, 23, 42, 0.86);
  border: none;
  border-radius: 99px;
  padding: 3px 9px;
  font-size: 9px;
  font-weight: 900;
  color: #e0f2fe;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.65);
}

.widget-ribbon-tag.gold-tag {
  color: #fef08a;
}

@keyframes widgetFloatPulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-3px) scale(1.06); }
}

/* 2. CONTINUOUS VERTICAL SCROLLING 2.5D SAGA OVERWORLD STAGE */
.saga-vertical-scroll {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  padding-bottom: 92px;
}

.saga-vertical-stage {
  position: relative;
  width: 100%;
  height: 3650px;
  user-select: none;
  overflow: hidden;
}

/* 5 Seamless Sunlit Biome Bands (Top W5 down to Bottom W1) */
.saga-biome-backdrop {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  pointer-events: none;
  z-index: 1;
}

.biome-band {
  flex: 1;
  width: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  border-bottom: none;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.35);
}

/* Continuous Winding 3D Striped Candy-Crush Road SVG */
.saga-vertical-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

.saga-vertical-svg path {
  fill: none !important;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.v-road-shadow {
  stroke: rgba(2, 6, 23, 0.72);
  stroke-width: 44px;
  transform: translateY(8px);
}

.v-road-curb {
  stroke: #fde68a;
  stroke-width: 38px;
  opacity: 0.85;
}

.v-road-base {
  stroke: #1e293b;
  stroke-width: 30px;
}

.v-road-stripe {
  stroke-width: 24px;
}

.v-road-stripe.v-seg-unlocked {
  stroke-dasharray: 18 14;
  filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.45));
}

.v-road-stripe.v-seg-locked {
  stroke: rgba(148, 163, 184, 0.38);
  stroke-dasharray: 14 18;
}

/* 3. REALM RIBBON BANNERS, 2.5D LANDMARKS & ON-PATH CHESTS */
.saga-landmarks-layer {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.saga-realm-ribbon {
  position: absolute;
  transform: translate(-50%, -50%);
  background: rgba(15, 23, 42, 0.84);
  backdrop-filter: blur(6px);
  border: none;
  border-radius: 99px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 900;
  color: #fef08a;
  letter-spacing: 0.5px;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.65);
}

.saga-landmark-mount {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 144px;
  pointer-events: auto;
  z-index: 7;
}

.landmark-hill-mound {
  position: absolute;
  bottom: 24px;
  width: 126px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(251, 191, 36, 0.32) 0%, rgba(15, 23, 42, 0.75) 68%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.landmark-sprite-img {
  position: relative;
  z-index: 1;
  width: 112px !important;
  height: 112px !important;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.85));
  transition: transform 0.22s ease, filter 0.22s ease;
}

.saga-landmark-mount:hover .landmark-sprite-img {
  transform: scale(1.07) translateY(-4px);
}

.saga-landmark-mount.landmark-dim .landmark-sprite-img {
  filter: saturate(0.65) brightness(0.88) drop-shadow(0 8px 12px rgba(0, 0, 0, 0.85));
}

.saga-landmark-mount.landmark-lit .landmark-sprite-img {
  filter: brightness(1.1) drop-shadow(0 0 18px rgba(250, 204, 21, 0.75)) drop-shadow(0 10px 16px rgba(0, 0, 0, 0.85));
}

.landmark-pedestal-plate {
  position: relative;
  z-index: 2;
  margin-top: -8px;
  background: rgba(15, 23, 42, 0.86);
  backdrop-filter: blur(6px);
  border: none;
  border-radius: 14px;
  padding: 4px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.72);
}

.landmark-title {
  font-size: 9.5px;
  font-weight: 900;
  color: #ffffff;
  white-space: nowrap;
}

.landmark-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 8.5px;
  font-weight: 900;
  white-space: nowrap;
}

.landmark-stars {
  color: #fde047;
}

.landmark-relic-tag {
  color: #34d399;
}

.landmark-forge-btn {
  margin-top: 3px;
  background: linear-gradient(180deg, #fde047 0%, #f59e0b 100%);
  color: #090d16;
  border: none;
  border-radius: 99px;
  padding: 3px 9px;
  font-size: 8.5px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.85);
  animation: widgetFloatPulse 1.3s infinite ease-in-out;
}

/* On-Path Milestone Treasure Chests */
.saga-road-chest {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
}

.saga-road-chest.chest-ready {
  cursor: pointer;
  animation: widgetFloatPulse 1.4s infinite ease-in-out;
}

.saga-road-chest.chest-claimed {
  opacity: 0.68;
}

.road-chest-img {
  width: 50px !important;
  height: 50px !important;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.85));
}

.road-chest-tag {
  margin-top: -4px;
  background: rgba(15, 23, 42, 0.88);
  border: none;
  border-radius: 99px;
  padding: 2px 8px;
  font-size: 8.5px;
  font-weight: 900;
  color: #fde047;
  white-space: nowrap;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.75);
}

/* 4. 25 3D TILTED LEVEL PEDESTAL PUCKS (Candy Crush Style) */
.saga-vnodes-layer {
  position: absolute;
  inset: 0;
  z-index: 12;
  pointer-events: none;
}

.v-puck-wrap {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.v-puck-wrap.v-puck-current-wrap {
  z-index: 18;
}

/* Dark Purple Storm Cloud Cushion Under Boss Nodes */
.v-boss-cloud {
  position: absolute;
  width: 84px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(168, 85, 247, 0.72) 0%, rgba(59, 7, 100, 0.9) 65%, transparent 100%);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.85);
  top: 4px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 4px;
  font-size: 12px;
  pointer-events: none;
  z-index: 0;
}

/* Bouncing Royal Crown Avatar Above Current Active Level */
.v-player-avatar {
  position: absolute;
  top: -38px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.95));
  animation: crownFloatBounce 1.1s infinite ease-in-out;
  pointer-events: none;
  z-index: 15;
}

.v-player-avatar img {
  width: 34px !important;
  height: 34px !important;
  object-fit: contain;
  display: block;
}

@keyframes crownFloatBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-5px) scale(1.08); }
}

/* 3D Elliptical Tilted Pedestal Puck Button */
.v-pedestal-puck {
  position: relative;
  width: 62px;
  height: 48px;
  border-radius: 50% / 44%;
  border: 3px solid #fde68a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 2;
  outline: none;
  transition: transform 0.14s cubic-bezier(0.2, 0.9, 0.3, 1.2), filter 0.14s ease;
  background: radial-gradient(ellipse at 35% 28%, #60a5fa 0%, #2563eb 65%, #1d4ed8 100%);
  box-shadow:
    0 5px 0 #e2e8f0,
    0 8px 0 #475569,
    0 12px 18px rgba(0, 0, 0, 0.8);
}

.v-pedestal-puck:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.08);
  filter: brightness(1.12);
}

.v-pedestal-puck:active:not(:disabled) {
  transform: translateY(3px);
}

.puck-top-cap {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50% / 44%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.puck-specular {
  position: absolute;
  top: 3px;
  left: 9px;
  right: 9px;
  height: 13px;
  border-radius: 99px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.puck-lvl-num {
  position: relative;
  z-index: 3;
  font-size: 17px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.95), 0 0 8px rgba(0, 0, 0, 0.75);
  letter-spacing: -0.3px;
}

/* Candy-Crush Pedestal Color Variants */
.v-pedestal-puck.puck-blue {
  background: radial-gradient(ellipse at 35% 28%, #7dd3fc 0%, #0284c7 65%, #0369a1 100%);
  border-color: #e0f2fe;
  box-shadow: 0 5px 0 #bae6fd, 0 8px 0 #075985, 0 12px 18px rgba(0, 0, 0, 0.8);
}

.v-pedestal-puck.puck-green {
  background: radial-gradient(ellipse at 35% 28%, #6ee7b7 0%, #10b981 65%, #047857 100%);
  border-color: #fef08a;
  box-shadow: 0 5px 0 #fde68a, 0 8px 0 #065f46, 0 12px 18px rgba(0, 0, 0, 0.8);
}

.v-pedestal-puck.puck-pink {
  background: radial-gradient(ellipse at 35% 28%, #f9a8d4 0%, #ec4899 62%, #be185d 100%);
  border-color: #fce7f3;
  box-shadow: 0 5px 0 #fbcfe8, 0 8px 0 #831843, 0 12px 18px rgba(0, 0, 0, 0.8);
}

.v-pedestal-puck.puck-orange {
  background: radial-gradient(ellipse at 35% 28%, #fde047 0%, #f59e0b 62%, #b45309 100%);
  border-color: #fef9c3;
  box-shadow: 0 5px 0 #fde68a, 0 8px 0 #78350f, 0 12px 18px rgba(0, 0, 0, 0.8);
}

.v-pedestal-puck.puck-boss {
  width: 68px;
  height: 52px;
  background: radial-gradient(ellipse at 35% 28%, #e879f9 0%, #9333ea 60%, #4c1d95 100%);
  border: 3px solid #fde047;
  box-shadow: 0 5px 0 #f59e0b, 0 9px 0 #3b0764, 0 14px 20px rgba(0, 0, 0, 0.85);
}

.v-pedestal-puck.is-current-puck {
  width: 68px;
  height: 54px;
  background: radial-gradient(ellipse at 35% 28%, #fda4af 0%, #f43f5e 58%, #9f1239 100%);
  border: 3px solid #fde047;
  box-shadow: 0 5px 0 #fbbf24, 0 9px 0 #881337, 0 0 24px rgba(251, 191, 36, 0.95);
  animation: sagaPuckPulse 1.5s infinite ease-in-out;
}

@keyframes sagaPuckPulse {
  0%, 100% {
    box-shadow: 0 5px 0 #fbbf24, 0 9px 0 #881337, 0 0 16px rgba(251, 191, 36, 0.75);
  }
  50% {
    box-shadow: 0 5px 0 #fde047, 0 9px 0 #881337, 0 0 28px rgba(251, 191, 36, 1), 0 0 0 6px rgba(251, 191, 36, 0.28);
  }
}

.v-pedestal-puck.is-locked-puck {
  background: radial-gradient(ellipse at 35% 28%, #64748b 0%, #334155 68%, #0f172a 100%);
  border-color: rgba(148, 163, 184, 0.45);
  box-shadow: 0 4px 0 #1e293b, 0 7px 0 #090d16, 0 10px 14px rgba(0, 0, 0, 0.65);
  opacity: 0.78;
  cursor: not-allowed;
}

.v-pedestal-puck.is-locked-puck .puck-lvl-num {
  font-size: 14px;
}

.puck-skull-emblem {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #090d16;
  border: 1.5px solid #fbbf24;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  z-index: 4;
}

/* 3 Colored Candy-Crush Stars Tucked Underneath Cleared Pedestals */
.v-under-stars {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  pointer-events: none;
  z-index: 4;
}

.u-star {
  font-size: 14px;
  line-height: 1;
  font-style: normal;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.95));
}

.u-star:nth-child(1) {
  transform: rotate(-16deg) translateY(-2px);
}

.u-star:nth-child(2) {
  transform: translateY(1px) scale(1.16);
}

.u-star:nth-child(3) {
  transform: rotate(16deg) translateY(-2px);
}

.u-star.st-red.earned {
  color: #fb7185;
  text-shadow: 0 0 6px rgba(244, 63, 94, 0.9);
}

.u-star.st-green.earned {
  color: #4ade80;
  text-shadow: 0 0 6px rgba(34, 197, 94, 0.9);
}

.u-star.st-gold.earned {
  color: #fde047;
  text-shadow: 0 0 8px rgba(250, 204, 21, 0.98);
}

.u-star.empty {
  color: rgba(148, 163, 184, 0.42);
  text-shadow: none;
}

/* Mini Visual Goal Tag Under Each Medallion */
.saga-node-tag {
  margin-top: 5px;
  background: rgba(9, 13, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 99px;
  padding: 1px 7px;
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 1px;
  white-space: nowrap;
  pointer-events: none;
}

/* Portal SDK Live Status Badge */
#sdk-status-pill {
  position: absolute;
  bottom: 8px;
  right: 14px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 20;
}

/* Modals & Overlays */
.overlay-screen {
  position: absolute;
  inset: 0;
  background: rgba(9, 13, 28, 0.82);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 40;
}

.hidden {
  display: none !important;
}

.modal-card {
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(30, 58, 138, 0.96) 0%, rgba(15, 23, 42, 0.98) 100%);
  border: none;
  border-radius: 32px;
  padding: 24px;
  text-align: center;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.82),
    inset 0 2px 2px rgba(255, 255, 255, 0.28);
}

.modal-card.wide-card {
  max-width: 720px;
}

.borderless-sheet-card {
  background: linear-gradient(180deg, #1d3572 0%, #0f172a 100%);
  border: none;
  box-shadow:
    0 26px 64px rgba(0, 0, 0, 0.85),
    inset 0 2px 2px rgba(255, 255, 255, 0.25);
}

.game-badge {
  display: inline-block;
  background: rgba(251, 191, 36, 0.18);
  color: #fbbf24;
  border: none;
  font-size: 11px;
  font-weight: 900;
  padding: 4px 12px;
  border-radius: 99px;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.game-title {
  font-size: 36px;
  font-weight: 900;
  line-height: 1.08;
  background: linear-gradient(90deg, #fef08a, #fbbf24, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.game-subtitle {
  color: #e2e8f0;
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 14px;
}

/* Stats Row */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 18px;
}

.stat-box {
  background: rgba(9, 14, 30, 0.55);
  border: none;
  border-radius: 16px;
  padding: 8px 16px;
  min-width: 115px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.45);
}

.stat-box span {
  display: block;
  font-size: 10px;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
}

.stat-box strong {
  font-size: 18px;
  color: #fbbf24;
}

/* Chunky Royal Arcade Buttons (Borderless 3D Pill Style) */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

.arcade-btn {
  border: none;
  outline: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 900;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 99px;
  transition: transform 0.08s ease, filter 0.12s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.arcade-btn:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.arcade-btn:active:not(:disabled) {
  transform: translateY(2px);
}

.btn-xl {
  font-size: 19px;
  padding: 14px 38px;
  border-radius: 99px;
}

.btn-primary {
  background: linear-gradient(180deg, #34d399 0%, #059669 100%);
  color: #ffffff;
  text-shadow: 0 2px 3px rgba(6, 78, 59, 0.85);
  box-shadow: 0 5px 0 #065f46, 0 10px 20px rgba(52, 211, 153, 0.35), inset 0 2px 2px rgba(255, 255, 255, 0.45);
}

.btn-gold {
  background: linear-gradient(180deg, #fde047 0%, #eab308 100%);
  color: #0f172a;
  box-shadow: 0 5px 0 #a16207, 0 10px 20px rgba(250, 204, 21, 0.35), inset 0 2px 2px rgba(255, 255, 255, 0.55);
}

.btn-purple {
  background: linear-gradient(180deg, #c084fc 0%, #7c3aed 100%);
  color: #ffffff;
  box-shadow: 0 5px 0 #4c1d95, inset 0 2px 2px rgba(255, 255, 255, 0.35);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

.btn-locked, .btn-disabled {
  background: rgba(255, 255, 255, 0.08);
  color: #64748b;
  cursor: not-allowed;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  padding: 7px 11px;
  border-radius: 99px;
  cursor: pointer;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* Workshop & Skins Grids (Borderless Soft Cards) */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.upgrade-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  text-align: left;
  margin-bottom: 12px;
}

.upgrade-card {
  background: rgba(12, 22, 48, 0.68);
  border: none;
  border-radius: 20px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.35),
    inset 0 1px 1px rgba(255, 255, 255, 0.14);
}

.upgrade-card.card-equipped {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.28) 0%, rgba(12, 22, 48, 0.85) 100%);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.4),
    inset 0 1.5px 2px rgba(52, 211, 153, 0.55);
}

.up-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.up-icon {
  font-size: 26px;
}

.up-header h4 {
  font-size: 15px;
  color: #ffffff;
}

.up-lvl {
  font-size: 11px;
  font-weight: 800;
  color: #38bdf8;
}

.up-desc {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.35;
}

.up-effect {
  font-size: 12px;
  font-weight: 800;
  color: #fbbf24;
}

/* Simulated Rewarded Video Ad Overlay */
#ad-sim-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 14, 0.94);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-sim-box {
  background: #1e1b4b;
  border: none;
  border-radius: 24px;
  padding: 28px;
  width: 360px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.ad-progress-track {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 16px;
}

#ad-sim-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #34d399, #fbbf24);
}

/* ============================================================================
   CANDY CRUSH STYLE HANGING PRE-MATCH CARD ("SELECT BOOSTERS") & BUTTONS
   ============================================================================ */
.hud-star-img {
  width: 15px;
  height: 15px;
  object-fit: contain;
  vertical-align: middle;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.85));
}

@keyframes royalFloatCrest {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-4px) scale(1.04); }
}

/* Tactile 3D Pill Button Skins (Borderless!) */
.btn-sprite-emerald {
  background: linear-gradient(180deg, #34d399 0%, #10b981 52%, #059669 100%);
  color: #ffffff;
  text-shadow: 0 2px 3px rgba(6, 78, 59, 0.85);
  border: none;
  border-radius: 99px;
  box-shadow: 0 5px 0 #064e3b, 0 10px 22px rgba(16, 185, 129, 0.42), inset 0 2px 2px rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
}

.btn-sprite-gold {
  background: linear-gradient(180deg, #fde047 0%, #f59e0b 55%, #d97706 100%);
  color: #fffbeb;
  text-shadow: 0 2px 3px rgba(120, 53, 15, 0.85);
  border: none;
  border-radius: 99px;
  box-shadow: 0 5px 0 #854d0e, 0 10px 22px rgba(250, 204, 21, 0.38), inset 0 2px 2px rgba(255, 255, 255, 0.55);
}

.btn-sprite-purple {
  background: linear-gradient(180deg, #c084fc 0%, #8b5cf6 52%, #6d28d9 100%);
  color: #ffffff;
  text-shadow: 0 2px 3px rgba(59, 7, 100, 0.85);
  border: none;
  border-radius: 99px;
  box-shadow: 0 5px 0 #4c1d95, 0 8px 18px rgba(139, 92, 246, 0.38), inset 0 2px 2px rgba(255, 255, 255, 0.42);
}

.btn-inline-sprite {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.6));
}

.pulse-cta-btn {
  animation: ctaPulseBreath 1.5s ease-in-out infinite;
}

@keyframes ctaPulseBreath {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.045); filter: brightness(1.08); }
}

/* Spinning Golden God-Rays Background for Victory */
.victory-sunburst-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 0;
}

.victory-sunburst-rays {
  width: 920px;
  height: 920px;
  border-radius: 50%;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(251, 191, 36, 0.22) 0deg 12deg,
    rgba(56, 189, 248, 0.04) 12deg 24deg
  );
  mask-image: radial-gradient(circle, rgba(0,0,0,1) 12%, rgba(0,0,0,0.4) 48%, rgba(0,0,0,0) 70%);
  -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 12%, rgba(0,0,0,0.4) 48%, rgba(0,0,0,0) 70%);
  animation: rotateSunburst 22s linear infinite;
}

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

/* 1B. Candy-Crush Style Hanging Pre-Match Level Start Card */
.level-intro-backdrop {
  background: rgba(6, 11, 26, 0.68);
  backdrop-filter: blur(7px);
}

.candy-intro-card {
  position: relative;
  max-width: 380px;
  width: 92%;
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 28%, #1d4ed8 68%, #1e3a8a 100%);
  border: none;
  border-radius: 36px;
  padding: 22px 20px 22px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.78),
    0 8px 0 #172554,
    inset 0 3px 3px rgba(255, 255, 255, 0.45);
  animation: modalPopSpring 0.38s cubic-bezier(0.18, 1.25, 0.4, 1);
  overflow: visible;
  z-index: 2;
}

@keyframes modalPopSpring {
  0%   { transform: scale(0.76) translateY(-30px); opacity: 0; }
  70%  { transform: scale(1.03) translateY(4px); opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* Hanging Chains Accent at Top of Pre-Match Card */
.candy-hanging-chains {
  position: absolute;
  top: -54px;
  left: 0;
  right: 0;
  height: 56px;
  pointer-events: none;
}

.chain-link {
  position: absolute;
  top: 0;
  width: 10px;
  height: 58px;
  border-radius: 99px;
  background: repeating-linear-gradient(
    180deg,
    #cbd5e1 0px,
    #f8fafc 5px,
    #64748b 10px,
    #334155 14px
  );
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.65);
}

.chain-link.left-chain {
  left: 52px;
}

.chain-link.right-chain {
  right: 52px;
}

/* Top-Left Circular Music Toggle Button on Level Start Card */
.candy-music-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  outline: none;
  cursor: pointer;
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 65%, #075985 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 4px 0 #0c4a6e,
    0 6px 14px rgba(0, 0, 0, 0.55),
    inset 0 2px 2px rgba(255, 255, 255, 0.5);
  transition: transform 0.1s ease, filter 0.12s ease;
  z-index: 6;
}

.candy-music-btn.is-muted {
  background: linear-gradient(180deg, #64748b 0%, #334155 70%, #1e293b 100%);
  box-shadow:
    0 4px 0 #0f172a,
    0 6px 12px rgba(0, 0, 0, 0.45),
    inset 0 2px 2px rgba(255, 255, 255, 0.35);
}

.candy-music-btn:hover {
  transform: scale(1.07);
  filter: brightness(1.08);
}

.candy-music-btn:active {
  transform: translateY(2px);
}

/* Red Circular Close Button (Top-Right of Card) */
.candy-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  outline: none;
  cursor: pointer;
  background: linear-gradient(180deg, #fb7185 0%, #e11d48 60%, #9f1239 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 4px 0 #881337,
    0 6px 14px rgba(0, 0, 0, 0.55),
    inset 0 2px 2px rgba(255, 255, 255, 0.5);
  transition: transform 0.1s ease, filter 0.12s ease;
  z-index: 6;
}

.candy-close-btn.static-close-btn {
  position: relative;
  top: auto;
  right: auto;
}

.candy-close-btn:hover {
  transform: scale(1.07);
  filter: brightness(1.08);
}

.candy-close-btn:active {
  transform: translateY(2px);
}

/* Top Level Header inside Candy Intro Card */
.candy-level-header {
  margin-bottom: 10px;
}

.candy-realm-kicker {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 900;
  color: #bae6fd;
  background: rgba(15, 23, 42, 0.35);
  padding: 3px 12px;
  border-radius: 99px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.candy-level-title {
  font-size: 32px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 3px 0 #1e3a8a, 0 5px 12px rgba(0, 0, 0, 0.55);
  line-height: 1.08;
}

/* Soft Recessed Target Well ("Clear the targets!") */
.candy-targets-well {
  background: rgba(12, 24, 56, 0.52);
  border: none;
  border-radius: 24px;
  padding: 12px 14px 14px;
  margin-bottom: 14px;
  box-shadow:
    inset 0 4px 12px rgba(0, 0, 0, 0.45),
    0 1px 1px rgba(255, 255, 255, 0.22);
}

.candy-well-title {
  font-size: 13px;
  font-weight: 900;
  color: #e0f2fe;
  margin-bottom: 10px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.intro-goals-grid {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.intro-goal-card {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  border-radius: 18px;
  padding: 8px 14px;
  min-width: 86px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.28),
    inset 0 1px 1px rgba(255, 255, 255, 0.28);
}

.intro-goal-sprite {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.65));
}

.intro-goal-count {
  font-size: 17px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.75);
}

.intro-goal-desc {
  font-size: 9.5px;
  font-weight: 800;
  color: #bae6fd;
}

.intro-streak-banner {
  background: rgba(16, 185, 129, 0.28);
  border: none;
  border-radius: 99px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 900;
  color: #d1fae5;
  margin-bottom: 10px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

/* Pre-Match "Select boosters:" Section (3 Circular Booster Bubbles with Limited Counts & Checkmark!) */
.candy-preboosters-section {
  margin-bottom: 6px;
}

.candy-preboosters-title {
  font-size: 13px;
  font-weight: 900;
  color: #e0f2fe;
  margin-bottom: 10px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.candy-preboosters-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.pre-booster-slot {
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 0;
  transition: transform 0.14s cubic-bezier(0.2, 1.2, 0.3, 1);
}

.pre-booster-slot:hover {
  transform: translateY(-3px) scale(1.05);
}

.pre-booster-slot:active {
  transform: scale(0.95);
}

.pre-booster-circle {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #bae6fd 0%, #38bdf8 48%, #0284c7 100%);
  box-shadow:
    0 5px 0 #075985,
    0 8px 16px rgba(0, 0, 0, 0.48),
    inset 0 3px 3px rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.16s ease, background 0.16s ease;
}

.pre-booster-slot.is-selected .pre-booster-circle {
  background: radial-gradient(circle at 35% 28%, #a7f3d0 0%, #10b981 52%, #047857 100%);
  box-shadow:
    0 5px 0 #064e3b,
    0 0 22px rgba(52, 211, 153, 0.9),
    inset 0 3px 3px rgba(255, 255, 255, 0.75);
}

.pre-booster-slot.is-empty .pre-booster-circle {
  background: radial-gradient(circle at 35% 28%, #94a3b8 0%, #475569 65%, #1e293b 100%);
  box-shadow:
    0 4px 0 #0f172a,
    0 6px 12px rgba(0, 0, 0, 0.4),
    inset 0 2px 2px rgba(255, 255, 255, 0.35);
}

.pre-booster-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.6));
  pointer-events: none;
}

.up-sprite-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.65));
  flex-shrink: 0;
}

.pre-booster-plus3 {
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 2px 0 #075985, 0 4px 8px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

/* Inventory Count Pill Badge on Pre-Match Booster */
.pre-booster-badge {
  position: absolute;
  bottom: -3px;
  right: -3px;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 99px;
  background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 2px 5px rgba(0, 0, 0, 0.65),
    inset 0 1px 1px rgba(255, 255, 255, 0.55);
}

.pre-booster-slot.is-empty .pre-booster-badge {
  background: linear-gradient(180deg, #fde047 0%, #eab308 100%);
  color: #0f172a;
}

/* Green Checkmark Badge when Toggled ON */
.pre-booster-check {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(180deg, #4ade80 0%, #16a34a 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 3px 8px rgba(0, 0, 0, 0.65),
    inset 0 1.5px 1px rgba(255, 255, 255, 0.65);
}

.pre-booster-slot.is-selected .pre-booster-check {
  display: inline-flex;
}

.pre-booster-slot.is-selected .pre-booster-badge {
  display: none;
}

.pre-booster-name {
  font-size: 11px;
  font-weight: 900;
  color: #e0f2fe;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.candy-preboosters-hint {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #bae6fd;
  min-height: 16px;
}

/* Glossy Candy-Crush Pink/Magenta "Play!" Button */
.candy-play-btn {
  min-width: 210px;
  border-radius: 99px !important;
  padding: 13px 44px !important;
  font-size: 22px !important;
  background: linear-gradient(180deg, #ff7eb3 0%, #ec4899 50%, #be185d 100%) !important;
  color: #ffffff !important;
  text-shadow: 0 2px 3px rgba(131, 24, 67, 0.85) !important;
  border: none !important;
  box-shadow:
    0 6px 0 #831843,
    0 12px 24px rgba(236, 72, 153, 0.55),
    inset 0 3px 3px rgba(255, 255, 255, 0.65) !important;
}

/* ============================================================================
   2. ROYAL VICTORY CELEBRATION MODAL (Clean Borderless Card)
   ============================================================================ */
.victory-celebration-screen {
  background: radial-gradient(circle at 50% 42%, rgba(30, 27, 75, 0.84) 0%, rgba(4, 7, 18, 0.94) 100%);
}

.royal-victory-card {
  position: relative;
  z-index: 2;
  max-width: 420px;
  background: linear-gradient(180deg, #2563eb 0%, #1e3a8a 52%, #0f172a 100%);
  border: none;
  border-radius: 34px;
  padding: 18px 18px 22px;
  overflow: visible;
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.88),
    0 8px 0 #090d16,
    inset 0 3px 3px rgba(255, 255, 255, 0.38);
  animation: victoryCardEntrance 0.48s cubic-bezier(0.18, 1.3, 0.38, 1);
}

@keyframes victoryCardEntrance {
  0%   { transform: scale(0.6) translateY(40px); opacity: 0; }
  68%  { transform: scale(1.04) translateY(-6px); opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.victory-crest-hero {
  position: relative;
  margin-top: -54px;
  margin-bottom: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.victory-arch-img {
  width: 210px;
  height: 124px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 22px rgba(251, 191, 36, 0.5));
  animation: royalFloatCrest 2.5s ease-in-out infinite;
}

.victory-ribbon-plate {
  margin-top: -14px;
  background: linear-gradient(180deg, #fde047 0%, #f59e0b 55%, #b45309 100%);
  border: none;
  border-radius: 99px;
  padding: 6px 24px 8px;
  box-shadow:
    0 5px 0 #78350f,
    0 10px 24px rgba(0, 0, 0, 0.65),
    inset 0 2px 2px rgba(255, 255, 255, 0.6);
}

.victory-ribbon-sub {
  display: block;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #451a03;
}

.victory-ribbon-heading {
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 2px 0 #78350f, 0 4px 10px rgba(0, 0, 0, 0.65);
  line-height: 1.1;
}

/* 3D Midjourney Stars Arc Stage */
.victory-3d-stars-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 12px 0 10px;
  min-height: 82px;
}

.vic-star-slot {
  position: relative;
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vic-star-slot.slot-left {
  transform: translateY(6px) rotate(-12deg);
}

.vic-star-slot.slot-center {
  width: 82px;
  height: 82px;
  transform: translateY(-6px) scale(1.08);
  z-index: 3;
}

.vic-star-slot.slot-right {
  transform: translateY(6px) rotate(12deg);
}

.vic-star-3d-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: filter 0.25s ease, opacity 0.25s ease;
}

.vic-star-slot.star-unearned .vic-star-3d-img {
  filter: grayscale(1) brightness(0.28) contrast(1.2) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
  opacity: 0.55;
  transform: scale(0.88);
}

.vic-star-slot.star-earned .vic-star-3d-img {
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 18px rgba(250, 204, 21, 0.85));
  animation: star3DSlamIn 0.55s cubic-bezier(0.2, 1.45, 0.35, 1) forwards;
}

@keyframes star3DSlamIn {
  0%   { transform: scale(2.8) rotate(-28deg); opacity: 0; }
  60%  { transform: scale(0.88) rotate(6deg); opacity: 1; }
  82%  { transform: scale(1.12) rotate(-3deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.star-shockwave {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 3px solid #fde047;
  opacity: 0;
  pointer-events: none;
}

.vic-star-slot.star-earned .star-shockwave {
  animation: starRingBurst 0.65s ease-out forwards;
}

@keyframes starRingBurst {
  0%   { transform: scale(0.4); opacity: 1; border-width: 6px; }
  100% { transform: scale(1.95); opacity: 0; border-width: 1px; }
}

/* Win Streak Pill */
.victory-streak-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.26);
  border: none;
  border-radius: 99px;
  padding: 5px 14px;
  margin-bottom: 10px;
  font-size: 11.5px;
  font-weight: 900;
  color: #a7f3d0;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

.vic-streak-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* Treasure Coffer & 3 Soft Stat Wells */
.victory-treasure-showcase {
  background: rgba(9, 15, 36, 0.55);
  border: none;
  border-radius: 24px;
  padding: 10px 12px 12px;
  margin-bottom: 10px;
  box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.45);
}

.victory-coffer-visual {
  margin-top: -18px;
  margin-bottom: 4px;
}

.victory-coffer-img {
  width: 116px;
  height: 82px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 16px rgba(251, 191, 36, 0.35));
  animation: cofferBounce 2.2s ease-in-out infinite;
}

@keyframes cofferBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-3px) scale(1.05); }
}

.victory-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 0;
}

.royal-plaque {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 16px;
  padding: 8px 6px;
  min-width: 0;
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.35),
    inset 0 1px 1px rgba(255, 255, 255, 0.22);
}

.plaque-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 3px;
}

.plaque-mini-icon {
  width: 15px;
  height: 15px;
  object-fit: contain;
}

.royal-plaque span {
  font-size: 9px;
  font-weight: 900;
  color: #cbd5e1;
  letter-spacing: 0.5px;
}

.royal-plaque strong {
  font-size: 17px;
  font-weight: 900;
  color: #fef08a;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.85);
}

.plaque-gold strong {
  color: #fbbf24;
}

.plaque-bonus strong {
  color: #34d399;
}

/* Star Vault Milestone Progress Strip inside Victory Modal */
.victory-chest-progress-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(9, 15, 36, 0.55);
  border: none;
  border-radius: 18px;
  padding: 8px 14px;
  margin-bottom: 12px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.45);
}

.vic-chest-mini {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.7));
}

.vic-chest-track-wrap {
  flex: 1;
  text-align: left;
}

.vic-chest-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 900;
  color: #bae6fd;
  margin-bottom: 4px;
}

.vic-chest-label-row strong {
  color: #fde047;
}

.vic-chest-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 99px;
  overflow: hidden;
}

.vic-chest-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #fbbf24, #34d399);
  border-radius: 99px;
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Out of Moves / Gameover Royal Card (Borderless "SO CLOSE!" Screen) */
.royal-gameover-card {
  max-width: 390px;
  width: 92%;
  padding: 18px 16px 18px;
  border: none;
  border-radius: 34px;
  background: linear-gradient(180deg, #2563eb 0%, #1e3a8a 48%, #0f172a 100%);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.88),
    0 8px 0 #090d16,
    inset 0 3px 3px rgba(255, 255, 255, 0.38);
  overflow-x: hidden;
  overflow-y: auto;
  animation: victoryCardEntrance 0.42s cubic-bezier(0.18, 1.25, 0.38, 1);
}

.gameover-header-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 8px;
}

.gameover-medallion-ring {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, rgba(251, 191, 36, 0.32), rgba(136, 19, 55, 0.88));
  border: none;
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.75),
    inset 0 2px 2px rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.gameover-crest-img {
  width: 58px !important;
  height: 58px !important;
  max-width: 58px !important;
  max-height: 58px !important;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.85));
  animation: royalFloatCrest 2.4s ease-in-out infinite;
}

.gameover-ribbon-plate {
  margin-top: -10px;
  background: linear-gradient(180deg, #fb7185 0%, #e11d48 52%, #881337 100%);
  border: none;
  border-radius: 99px;
  padding: 5px 24px 7px;
  box-shadow:
    0 4px 0 #4c0519,
    0 8px 18px rgba(0, 0, 0, 0.65),
    inset 0 2px 2px rgba(255, 255, 255, 0.45);
  z-index: 3;
}

.gameover-ribbon-sub {
  display: block;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 1.2px;
  color: #fef08a;
}

.gameover-ribbon-heading {
  font-size: 23px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 2px 0 #4c0519, 0 4px 8px rgba(0, 0, 0, 0.7);
  line-height: 1.1;
  margin: 0;
}

.gameover-streak-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.24);
  border: none;
  border-radius: 99px;
  padding: 4px 14px;
  margin-bottom: 8px;
  font-size: 10.5px;
  font-weight: 900;
  color: #fde68a;
}

.gameover-targets-panel {
  background: rgba(9, 15, 36, 0.55);
  border: none;
  border-radius: 22px;
  padding: 10px 12px 12px;
  margin-bottom: 10px;
  box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.45);
}

.gameover-targets-label {
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 1.1px;
  color: #bae6fd;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.gameover-goals-preview {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 8px;
  flex-wrap: wrap;
}

.go-target-card,
.intro-goal-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 78px;
  max-width: 112px;
  padding: 8px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.35),
    inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

.go-target-card.is-done {
  background: rgba(16, 185, 129, 0.26);
}

.go-target-card img,
.go-target-sprite,
.intro-goal-chip img {
  width: 36px !important;
  height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.8));
}

.go-target-count,
.intro-goal-chip span {
  font-size: 13.5px;
  font-weight: 900;
  color: #fde047;
  line-height: 1.1;
}

.go-target-card.is-done .go-target-count {
  color: #34d399;
}

.go-target-name {
  font-size: 9.5px;
  font-weight: 800;
  color: #cbd5e1;
  white-space: nowrap;
}

.go-target-bar {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 2px;
}

.go-target-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #fbbf24, #f43f5e);
  border-radius: 99px;
}

.go-target-card.is-done .go-target-bar-fill {
  background: #34d399;
}

/* +5 Extra Moves Continue Box */
.gameover-continue-box {
  background: rgba(9, 15, 36, 0.55);
  border: none;
  border-radius: 22px;
  padding: 10px 12px 12px;
  margin-bottom: 8px;
  box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.45);
}

.continue-offer-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.continue-plus-badge {
  background: linear-gradient(180deg, #34d399, #059669);
  border: none;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 99px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.continue-offer-desc {
  font-size: 11.5px;
  font-weight: 800;
  color: #fef08a;
}

@media (max-width: 900px) {
  #left-tools-panel {
    width: 180px;
  }
}

@media (max-width: 760px), (orientation: portrait) {
  .overlay-screen {
    padding: 10px;
  }

  .modal-card {
    padding: 18px 14px 18px;
    border-radius: 30px;
    max-height: 92vh;
  }

  .victory-arch-img {
    width: 185px;
    height: 108px;
  }

  .vic-star-slot {
    width: 60px;
    height: 60px;
  }

  .vic-star-slot.slot-center {
    width: 74px;
    height: 74px;
  }

  .saga-top-ribbon {
    padding: 5px 10px;
    gap: 5px;
  }

  .saga-res-pill {
    font-size: 10.5px;
    padding: 1px 4px;
  }

  .mini-relic-slot {
    width: 20px;
    height: 20px;
  }

  .mini-relic-slot img {
    width: 15px !important;
    height: 15px !important;
  }

  .saga-side-widget {
    top: 56px;
    width: 64px;
    transform: scale(0.88);
  }

  .saga-side-widget.side-left {
    left: 6px;
    transform-origin: top left;
  }

  .saga-side-widget.side-right {
    right: 6px;
    transform-origin: top right;
  }

  .saga-landmark-mount {
    transform: translate(-50%, -50%) scale(0.84);
  }

  .v-pedestal-puck {
    width: 54px;
    height: 42px;
  }

  .v-pedestal-puck.puck-boss,
  .v-pedestal-puck.is-current-puck {
    width: 60px;
    height: 46px;
  }

  .puck-lvl-num {
    font-size: 15px;
  }
}

