:root {
  --bg-cocoa: #1B0D07;
  --bg-copper-dark: #2C150B;
  --copper-mid: #9A4B26;
  --copper-bright: #D97736;
  --treacle-gold: #F59E0B;
  --treacle-amber: #FBBF24;
  --cane-rose: #EC4899;
  --cane-ruby: #BE185D;
  --brioche-cream: #FFFBEB;
  --brioche-muted: #FDE68A;
  --card-glass: rgba(38, 18, 10, 0.88);
  --border-copper: rgba(245, 158, 11, 0.42);
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-cocoa);
  color: var(--brioche-cream);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  touch-action: none;
}

#app-shell {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-image:
    radial-gradient(circle at 50% 24%, rgba(245, 158, 11, 0.16), rgba(27, 13, 7, 0.78) 68%),
    url("bg.jpg");
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.85);
  overflow: hidden;
}

/* Top Confectionery HUD (Score-Safe & 320px Zero-Overflow) */
.hud-top {
  position: relative;
  z-index: 10;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: max(8px, env(safe-area-inset-top)) 8px 4px;
  background: linear-gradient(180deg, rgba(20, 9, 4, 0.95) 0%, rgba(27, 13, 7, 0.78) 85%, rgba(27, 13, 7, 0) 100%);
}

.brand-cluster {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex: 1 1 0%;
  overflow: hidden;
}

.chef-avatar-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: radial-gradient(circle at 35% 30%, #4A2311, #1F0E07);
  border: 2px solid var(--treacle-gold);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.55), inset 0 1px 4px rgba(255, 251, 235, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chef-avatar-wrap:active {
  transform: scale(0.92);
}

.chef-avatar-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.gift-sparkle {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cane-rose), var(--treacle-gold));
  color: #FFFBEB;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(236, 72, 153, 0.6);
}

.score-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  flex: 1 1 0%;
  overflow: hidden;
}

.hud-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--treacle-amber);
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
}

.score-row {
  display: flex;
  align-items: baseline;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.score-num {
  display: block;
  max-width: 100%;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.05;
  color: var(--brioche-cream);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-shadow: 0 2px 10px rgba(245, 158, 11, 0.45);
}

.best-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  font-size: 11px;
  font-weight: 800;
  color: var(--brioche-muted);
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 1px 6px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
}

.hud-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.next-preview-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 62px;
  padding: 3px 3px;
  border-radius: 12px;
  background: var(--card-glass);
  border: 1.5px solid var(--border-copper);
  box-shadow: inset 0 1px 0 rgba(255, 251, 235, 0.18), 0 4px 12px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.next-label {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--treacle-amber);
  line-height: 1;
  white-space: nowrap;
}

#next-canvas {
  width: 30px;
  height: 30px;
  margin: 1px 0;
}

.next-tier-name {
  display: block;
  width: 100%;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--brioche-cream);
  white-space: nowrap;
  overflow: hidden;
  text-align: center;
}

.nav-pill-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 84px;
  flex-shrink: 0;
}

.top-pill-btn {
  position: relative;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(64, 29, 14, 0.92), rgba(36, 16, 8, 0.95));
  border: 1px solid rgba(245, 158, 11, 0.44);
  color: var(--brioche-cream);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.15s ease;
}

.top-pill-btn:active {
  transform: scale(0.94);
}

.pill-ico {
  color: var(--treacle-amber);
  font-size: 10px;
  flex-shrink: 0;
}

.pill-txt {
  white-space: nowrap;
  overflow: hidden;
}

.orders-dot {
  padding: 0 4px;
  height: 14px;
  border-radius: 999px;
  background: var(--cane-rose);
  color: #FFFBEB;
  font-size: 10px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

/* Caramel Geyser Boil Strip */
.boil-strip {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 0 8px 3px;
}

.boil-pill {
  width: 100%;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(44, 19, 9, 0.92), rgba(68, 28, 12, 0.92));
  border: 1px solid rgba(245, 158, 11, 0.45);
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--brioche-cream);
  cursor: pointer;
  overflow: hidden;
}

.boil-pill.ready {
  border-color: #FDE047;
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.55);
}

.boil-pot-ico {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.boil-title {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--treacle-amber);
  white-space: nowrap;
  flex-shrink: 0;
}

.boil-bar-track {
  flex: 1 1 0%;
  min-width: 40px;
  height: 10px;
  border-radius: 999px;
  background: rgba(18, 7, 3, 0.9);
  border: 1px solid rgba(245, 158, 11, 0.35);
  overflow: hidden;
}

.boil-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #F59E0B, #EC4899, #FDE047);
  transition: width 0.25s ease;
}

.boil-pct {
  font-size: 10px;
  font-weight: 900;
  color: var(--brioche-cream);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Booster Targeting Banner */
.booster-banner {
  position: absolute;
  top: 102px;
  left: 10px;
  right: 10px;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(190, 24, 93, 0.95), rgba(217, 119, 6, 0.95));
  border: 1.5px solid #FFFBEB;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65);
  font-size: 12px;
  font-weight: 800;
  color: #FFFBEB;
  overflow: hidden;
}

.banner-cancel-btn {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 251, 235, 0.7);
  background: rgba(27, 13, 7, 0.6);
  color: #FFFBEB;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Stage & Canvas */
.stage-wrap {
  position: relative;
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#game-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

.combo-toast {
  position: absolute;
  top: 16%;
  left: 50%;
  transform: translate(-50%, -10px) scale(0.85);
  pointer-events: none;
  max-width: 92%;
  padding: 5px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.96), rgba(236, 72, 153, 0.94));
  border: 2px solid #FFFBEB;
  color: #1B0D07;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.55);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 20;
}

.combo-toast.show {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

/* Bottom Clutch Confectionery Boosters Bar */
.hud-bottom {
  position: relative;
  z-index: 10;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 5px 8px max(10px, env(safe-area-inset-bottom));
  background: linear-gradient(0deg, rgba(20, 9, 4, 0.96) 0%, rgba(27, 13, 7, 0.82) 78%, rgba(27, 13, 7, 0) 100%);
}

.booster-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 6px 7px;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(58, 27, 13, 0.92), rgba(31, 14, 7, 0.96));
  border: 1.5px solid rgba(245, 158, 11, 0.42);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 251, 235, 0.16);
  color: var(--brioche-cream);
  cursor: pointer;
  transition: transform 0.14s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.15s ease, box-shadow 0.15s ease;
}

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

.booster-card.active-mode {
  border-color: var(--cane-rose);
  box-shadow: 0 0 18px rgba(236, 72, 153, 0.65), inset 0 0 10px rgba(236, 72, 153, 0.3);
}

.booster-top-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.booster-sprite-ico {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  flex-shrink: 0;
}

.booster-count {
  min-width: 20px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--treacle-amber), var(--copper-bright));
  color: #1B0D07;
  font-size: 11px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.booster-title {
  display: block;
  width: 100%;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--brioche-cream);
  white-space: nowrap;
  overflow: hidden;
  text-align: left;
}

.booster-sub {
  display: block;
  width: 100%;
  font-size: 10px;
  font-weight: 600;
  color: var(--brioche-muted);
  white-space: nowrap;
  overflow: hidden;
  text-align: left;
  opacity: 0.88;
}

.inline-mini-ico {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  object-fit: contain;
}

/* Modals */
.modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 50;
  background: rgba(14, 6, 3, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.hidden {
  display: none !important;
}

.modal-sheet {
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  border-radius: 22px;
  padding: 15px;
  background: linear-gradient(170deg, #2D160B 0%, #1B0D07 100%);
  border: 2px solid rgba(245, 158, 11, 0.55);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 251, 235, 0.22);
}

.sheet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.sheet-kicker {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  color: var(--treacle-amber);
}

.sheet-title {
  font-size: 19px;
  font-weight: 900;
  color: var(--brioche-cream);
}

.sheet-close-btn {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: var(--brioche-cream);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.sheet-desc {
  font-size: 12px;
  line-height: 1.4;
  color: var(--brioche-muted);
  margin-bottom: 12px;
}

/* Evolution Wheel Canvas & Tier Grid */
.wheel-ring-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

#wheel-canvas {
  width: 220px;
  height: 220px;
}

.tier-grid-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.tier-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 11px;
  background: rgba(255, 251, 235, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.28);
  min-width: 0;
  overflow: hidden;
}

.tier-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1.5px solid #FFFBEB;
}

.tier-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.tier-chip-name {
  font-size: 11px;
  font-weight: 800;
  color: var(--brioche-cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tier-chip-pts {
  font-size: 11px;
  font-weight: 700;
  color: var(--treacle-amber);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Duolingo-Style Chunky Daily Sugar Orders */
.orders-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quest-card {
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(48, 22, 11, 0.9);
  border: 1.5px solid rgba(245, 158, 11, 0.36);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.quest-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.quest-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--brioche-cream);
  min-width: 0;
}

.quest-reward-tag {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(236, 72, 153, 0.22);
  border: 1px solid rgba(236, 72, 153, 0.55);
  color: #FBCFE8;
  white-space: nowrap;
  flex-shrink: 0;
}

.quest-bar-wrap {
  position: relative;
  height: 24px;
  border-radius: 999px;
  background: #140904;
  border: 2px solid rgba(245, 158, 11, 0.45);
  overflow: visible;
  display: flex;
  align-items: center;
}

.quest-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #D97706 0%, #FBBF24 60%, #FDE047 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.45);
  transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.quest-bar-label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 900;
  color: #FFFBEB;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.quest-chest-icon {
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: radial-gradient(circle at 30% 30%, #FBBF24, #B45309);
  border: 2px solid #FFFBEB;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

.quest-claim-btn {
  align-self: flex-end;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #FBBF24, #F59E0B);
  border: none;
  color: #1B0D07;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.quest-claim-btn:disabled {
  background: rgba(255, 251, 235, 0.12);
  color: rgba(255, 251, 235, 0.45);
  cursor: default;
}

/* Ahead-Style Radial Burst Reward Modal */
.reward-burst-sheet {
  position: relative;
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.radial-sunburst {
  position: absolute;
  top: -60px;
  left: 50%;
  width: 320px;
  height: 320px;
  transform: translateX(-50%);
  background: conic-gradient(
    from 0deg,
    rgba(245, 158, 11, 0.24) 0deg 15deg,
    transparent 15deg 30deg,
    rgba(236, 72, 153, 0.2) 30deg 45deg,
    transparent 45deg 60deg,
    rgba(245, 158, 11, 0.24) 60deg 75deg,
    transparent 75deg 90deg,
    rgba(236, 72, 153, 0.2) 90deg 105deg,
    transparent 105deg 120deg,
    rgba(245, 158, 11, 0.24) 120deg 135deg,
    transparent 135deg 150deg,
    rgba(236, 72, 153, 0.2) 150deg 165deg,
    transparent 165deg 180deg,
    rgba(245, 158, 11, 0.24) 180deg 195deg,
    transparent 195deg 210deg,
    rgba(236, 72, 153, 0.2) 210deg 225deg,
    transparent 225deg 240deg,
    rgba(245, 158, 11, 0.24) 240deg 255deg,
    transparent 255deg 270deg,
    rgba(236, 72, 153, 0.2) 270deg 285deg,
    transparent 285deg 300deg,
    rgba(245, 158, 11, 0.24) 300deg 315deg,
    transparent 315deg 330deg,
    rgba(236, 72, 153, 0.2) 330deg 345deg,
    transparent 345deg 360deg
  );
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
  animation: spinSlow 22s linear infinite;
}

@keyframes spinSlow {
  from { transform: translateX(-50%) rotate(0deg); }
  to { transform: translateX(-50%) rotate(360deg); }
}

.reward-kicker {
  position: relative;
  z-index: 2;
}

.reward-main-title {
  position: relative;
  z-index: 2;
}

.hex-glass-card {
  position: relative;
  z-index: 2;
  width: 148px;
  height: 148px;
  border-radius: 32px;
  background: radial-gradient(circle at 50% 35%, rgba(251, 191, 36, 0.34), rgba(44, 21, 11, 0.92));
  border: 2.5px solid var(--treacle-amber);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.65), 0 0 28px rgba(245, 158, 11, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  cursor: pointer;
  transition: transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hex-glass-card:active {
  transform: scale(0.93);
}

.reward-hero-img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.6));
}

.reward-tier-pill {
  margin-top: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cane-rose), var(--cane-ruby));
  color: #FFFBEB;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
  max-width: 132px;
  overflow: hidden;
}

.chef-tooltip-box {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 14px;
  background: rgba(20, 9, 4, 0.78);
  border: 1px solid rgba(245, 158, 11, 0.36);
  text-align: left;
}

.tooltip-chef-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.tooltip-copy {
  font-size: 12px;
  line-height: 1.35;
  color: var(--brioche-cream);
}

.primary-amber-btn {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 42px;
  padding: 0 8px;
  border-radius: 13px;
  border: none;
  background: linear-gradient(135deg, #FDE047 0%, #F59E0B 55%, #D97706 100%);
  color: #1B0D07;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.03em;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
}

.secondary-rose-btn {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 42px;
  padding: 0 8px;
  border-radius: 13px;
  border: 1.5px solid #FBCFE8;
  background: linear-gradient(135deg, #EC4899 0%, #BE185D 100%);
  color: #FFFBEB;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.03em;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
}

.summary-score-box {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 4px 0;
}

.summary-stat {
  padding: 10px;
  border-radius: 14px;
  background: rgba(20, 9, 4, 0.78);
  border: 1px solid rgba(245, 158, 11, 0.35);
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  overflow: hidden;
}

.stat-label {
  font-size: 10px;
  font-weight: 800;
  color: var(--treacle-amber);
  white-space: nowrap;
}

.stat-big {
  font-size: 20px;
  font-weight: 900;
  color: var(--brioche-cream);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
}

.stat-med {
  font-size: 13px;
  font-weight: 800;
  color: #FBCFE8;
  white-space: nowrap;
  overflow: hidden;
}

.gameover-btn-row {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
