:root {
  --ocean: #0ea5e9;
  --ocean-dark: #0369a1;
  --sand: #fcd34d;
  --sand-dark: #d97706;
  --purple: #7c3aed;
  --purple-light: #a78bfa;
  --coral: #f43f5e;
  --gold: #fbbf24;
  --text: #1e1b4b;
  --green: #16a34a;
  --white: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  overflow: hidden;
  font-family: 'Fredoka One', 'Comic Sans MS', cursive;
  background: linear-gradient(160deg, var(--ocean) 0%, var(--ocean-dark) 100%);
  color: var(--text);
  touch-action: manipulation;
  user-select: none;
}

/* ─── LAYOUT — landscape two-column ─────────────── */
#app {
  display: flex;
  flex-direction: row;
  height: 100dvh;
  width: 100dvw;
  overflow: hidden;
}

/* ─── LEFT PANEL — island path ───────────────────── */
#path-section {
  flex: 0 0 42%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 6px 10px 10px;
  background: linear-gradient(180deg, #0ea5e9 0%, #075985 100%);
}

#island-svg {
  width: auto;
  height: 100%;
  max-width: 100%;
  display: block;
  border-radius: 20px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}

/* ─── RIGHT PANEL ────────────────────────────────── */
#right-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  padding: 10px 10px 10px 6px;
  gap: 8px;
}

/* ─── HEADER ─────────────────────────────────────── */
#header {
  background: linear-gradient(135deg, var(--purple) 0%, #a21caf 100%);
  color: white;
  text-align: center;
  padding: 8px 16px 6px;
  flex-shrink: 0;
  border-radius: 14px;
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

#header h1 {
  font-size: clamp(1rem, 2.8vw, 1.5rem);
  letter-spacing: 1px;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.2);
}

#week-label {
  font-size: clamp(0.65rem, 1.6vw, 0.9rem);
  opacity: 0.9;
  margin-top: 1px;
}

#total-display {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 3px 14px;
  margin-top: 4px;
  font-size: clamp(0.9rem, 2.5vw, 1.3rem);
}

#total-display.bounce {
  animation: bounceScale 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

#princess-pos {
  transition: transform 0.65s cubic-bezier(0.34,1.56,0.64,1);
}

#princess-char {
  animation: idleWiggle 3s ease-in-out infinite;
}

#princess-pos.hopping #princess-char {
  animation: none;
}

/* ─── TOKEN BANK ─────────────────────────────────── */
#bank-section {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(4px);
  border-radius: 14px;
  padding: 8px 14px;
  flex-shrink: 0;
}

#pot-svg {
  width: auto;
  height: clamp(56px, 9vh, 80px);
  flex-shrink: 0;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.3));
}

#bank-right {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex-shrink: 0;
}

#bank-count-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1;
}

#bank-count-wrap.bounce {
  animation: bounceScale 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

#bank-total {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  color: var(--gold);
  text-shadow: 1px 1px 0 rgba(0,0,0,0.3);
}

#bank-coin-icon {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
}

#bank-label-text {
  font-size: clamp(0.7rem, 1.8vw, 0.95rem);
  color: rgba(255,255,255,0.85);
  letter-spacing: 1px;
}

#history-card {
  flex: 1;
  min-width: 0;
  background: rgba(255,255,255,0.16);
  border-radius: 14px;
  padding: 8px 10px 6px;
  border: 1px solid rgba(255,255,255,0.18);
}

#history-title {
  font-size: clamp(0.68rem, 1.5vw, 0.9rem);
  color: white;
  letter-spacing: 0.6px;
}

#history-subtitle {
  font-size: clamp(0.5rem, 1vw, 0.68rem);
  color: rgba(255,255,255,0.8);
  margin-top: 1px;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#history-bars {
  height: 58px;
  display: grid;
  grid-template-columns: repeat(21, minmax(0, 1fr));
  align-items: end;
  gap: 3px;
}

.history-bar {
  position: relative;
  min-height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.18);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
}

.history-bar.week-end {
  margin-right: 5px;
}

.history-fill {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(180deg, #fde68a 0%, #f43f5e 100%);
  box-shadow: 0 2px 6px rgba(244,63,94,0.28);
}

.history-bar.low .history-fill {
  background: linear-gradient(180deg, #f59e0b 0%, #dc2626 100%);
  box-shadow: 0 2px 4px rgba(185,28,28,0.22);
}

.history-bar.medium .history-fill {
  background: linear-gradient(180deg, #fbbf24 0%, #f97316 55%, #ef4444 100%);
  box-shadow: 0 2px 5px rgba(239,68,68,0.24);
}

.history-bar.high .history-fill {
  background: linear-gradient(180deg, #fde68a 0%, #fbbf24 35%, #fb7185 100%);
  box-shadow: 0 3px 8px rgba(244,63,94,0.34);
}

.history-bar.empty .history-fill {
  opacity: 0.12;
  box-shadow: none;
}

.history-bar.today {
  outline: 2px solid rgba(255,255,255,0.7);
  outline-offset: 1px;
}

.history-day-label {
  position: absolute;
  bottom: -14px;
  font-size: 0.48rem;
  color: rgba(255,255,255,0.75);
}

/* ─── DAY CARDS ──────────────────────────────────── */
#days-section {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(4px);
  border-radius: 16px;
  padding: 8px 6px 6px;
  flex-shrink: 0;
}

#days-section h2 {
  text-align: center;
  color: white;
  font-size: clamp(0.7rem, 2.5vw, 0.95rem);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
  opacity: 0.9;
}

#days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  padding: 0 4px;
}

.day-card {
  background: rgba(255,255,255,0.85);
  border-radius: 12px;
  padding: 5px 3px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  border: 2px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s;
}

.day-card.today {
  background: white;
  border-color: var(--coral);
  box-shadow: 0 0 12px rgba(244,63,94,0.5);
}

.day-card.cashout-day {
  background: linear-gradient(180deg, rgba(254,240,138,0.92) 0%, rgba(255,255,255,0.94) 100%);
  border-color: rgba(251,191,36,0.55);
  box-shadow: inset 0 0 0 1px rgba(251,191,36,0.18);
}

.day-card.cashout-day .day-name {
  color: #b45309;
}

.day-card.future {
  opacity: 0.45;
}


.day-name {
  font-size: clamp(0.6rem, 2vw, 0.85rem);
  color: var(--purple);
  font-weight: bold;
}

.day-count {
  font-size: clamp(1rem, 3.5vw, 1.5rem);
  color: var(--text);
  min-height: 1.5em;
  line-height: 1.2;
}

.day-count.bump {
  animation: bounceScale 0.35s cubic-bezier(0.34,1.56,0.64,1);
}

.day-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  font-size: clamp(1rem, 3.5vw, 1.4rem);
  line-height: 1;
  width: clamp(30px, 8vw, 42px);
  height: clamp(30px, 8vw, 42px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}

.day-btn:active:not(:disabled) {
  transform: scale(0.85);
}

.btn-plus {
  background: var(--gold);
  color: var(--text);
}

.btn-plus:disabled {
  background: #e5e7eb;
  opacity: 0.4;
  cursor: default;
}

.btn-minus {
  background: rgba(0,0,0,0.08);
  color: var(--text);
  font-size: clamp(1rem, 3.5vw, 1.6rem);
}

.btn-minus:disabled {
  opacity: 0.3;
  cursor: default;
}

/* ─── PRIZE LADDER ───────────────────────────────── */
#prizes-section {
  flex: 1;
  overflow-y: auto;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(4px);
  border-radius: 16px;
  padding: 8px 10px;
  -webkit-overflow-scrolling: touch;
}

#prizes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

#prizes-header h2 {
  color: white;
  font-size: clamp(0.75rem, 2.5vw, 1rem);
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.9;
}

#edit-btn {
  background: rgba(255,255,255,0.2);
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}

#edit-btn:active { background: rgba(255,255,255,0.4); }

#prize-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.prize-item {
  background: rgba(255,255,255,0.9);
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 2px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.prize-item.affordable {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  border-color: var(--green);
}

.prize-item.in-progress {
  border-color: rgba(251,191,36,0.3);
}

.prize-item.affordable {
  animation: pulseGold 2s ease-in-out infinite;
}

.prize-progress {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: rgba(251,191,36,0.25);
  border-radius: 12px 0 0 12px;
  transition: width 0.6s ease;
  pointer-events: none;
}

.prize-gem {
  font-size: clamp(1.2rem, 4vw, 1.6rem);
  flex-shrink: 0;
  z-index: 1;
}

.prize-info {
  flex: 1;
  z-index: 1;
}

.prize-name {
  font-size: clamp(0.85rem, 3vw, 1.1rem);
  color: var(--text);
}

.spend-btn {
  background: linear-gradient(135deg, var(--gold), #f59e0b);
  color: var(--text);
  border: none;
  border-radius: 10px;
  padding: 6px 10px;
  font-family: inherit;
  font-size: clamp(0.65rem, 1.8vw, 0.85rem);
  font-weight: bold;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.1s;
  z-index: 1;
  -webkit-tap-highlight-color: transparent;
}

.spend-btn:active { transform: scale(0.92); }

.prize-threshold {
  font-size: clamp(0.65rem, 2vw, 0.8rem);
  color: var(--purple);
  opacity: 0.8;
}

.prize-status {
  font-size: clamp(1rem, 3.5vw, 1.4rem);
  flex-shrink: 0;
  z-index: 1;
}

/* ─── EDIT MODAL ─────────────────────────────────── */
#modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#modal-overlay.open {
  display: flex;
}

#modal {
  background: white;
  border-radius: 20px;
  padding: 20px;
  width: 100%;
  max-width: 380px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

#modal h3 {
  color: var(--purple);
  font-size: 1.3rem;
  margin-bottom: 10px;
  text-align: center;
}

#setting-row {
  background: #f5f3ff;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

#lock-future-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
}

#lock-future-toggle {
  width: 18px;
  height: 18px;
  accent-color: var(--purple);
  cursor: pointer;
  flex-shrink: 0;
}

#history-edit-section {
  margin-bottom: 14px;
}

#history-edit-section h4 {
  color: var(--purple);
  font-size: 0.95rem;
  margin-bottom: 8px;
  text-align: center;
}

#history-edit-weeks {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.history-week-block {
  background: #f5f3ff;
  border-radius: 12px;
  padding: 10px;
}

.history-week-label {
  font-size: 0.82rem;
  color: var(--purple);
  text-align: center;
  margin-bottom: 8px;
}

.history-edit-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.history-edit-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
  background: rgba(255,255,255,0.8);
  border-radius: 10px;
  padding: 6px 4px;
}

.history-edit-day {
  font-size: 0.72rem;
  color: var(--purple);
}

.history-edit-date {
  font-size: 0.62rem;
  color: #6b7280;
}

.history-edit-input {
  width: 100%;
  max-width: 44px;
  border: 2px solid #ddd6fe;
  border-radius: 8px;
  padding: 4px 6px;
  font-family: inherit;
  font-size: 0.84rem;
  text-align: center;
  color: var(--text);
}

.history-edit-input:focus {
  outline: none;
  border-color: var(--purple);
}

.edit-prize-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  background: #f5f3ff;
  border-radius: 12px;
  padding: 8px 10px;
}

.edit-prize-row input {
  border: 2px solid #ddd6fe;
  border-radius: 8px;
  padding: 6px 8px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  transition: border-color 0.2s;
}

.edit-prize-row input:focus {
  outline: none;
  border-color: var(--purple);
}

.input-name { flex: 1; }
.input-tokens { width: 60px; text-align: center; }

.delete-btn {
  background: var(--coral);
  color: white;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#add-prize-btn {
  width: 100%;
  background: var(--sand);
  border: 2px dashed var(--sand-dark);
  border-radius: 12px;
  padding: 10px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--sand-dark);
  cursor: pointer;
  margin-top: 4px;
  transition: background 0.2s;
}

#add-prize-btn:active { background: var(--sand-dark); color: white; }

#modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.modal-btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.1s;
}

.modal-btn:active { transform: scale(0.97); }
.modal-btn.cancel { background: #f3f4f6; color: #6b7280; }
.modal-btn.save { background: var(--purple); color: white; }

/* ─── SPEND MODAL ────────────────────────────────── */
#spend-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 150;
  align-items: center;
  justify-content: center;
}

#spend-modal.open { display: flex; }

#spend-modal-content {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-radius: 24px;
  padding: 28px 32px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  animation: popIn 0.4s cubic-bezier(0.34,1.56,0.64,1);
  border: 3px solid var(--gold);
  max-width: 320px;
  width: 90%;
}

#spend-modal-emoji { font-size: 2.5rem; margin-bottom: 6px; }

#spend-modal-question {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 4px;
}

#spend-prize {
  font-size: 1.4rem;
  color: var(--purple);
  margin-bottom: 18px;
}

#spend-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

#spend-yes {
  background: var(--green);
  color: white;
  border: none;
  border-radius: 14px;
  padding: 12px 24px;
  font-family: inherit;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.1s;
}

#spend-no {
  background: #e5e7eb;
  color: #6b7280;
  border: none;
  border-radius: 14px;
  padding: 12px 24px;
  font-family: inherit;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.1s;
}

#spend-yes:active, #spend-no:active { transform: scale(0.95); }

/* ─── CELEBRATION ────────────────────────────────── */
#celebration {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

#celebration.show {
  display: flex;
}

#celebration-content {
  background: linear-gradient(135deg, var(--purple), #a21caf);
  color: white;
  border-radius: 24px;
  padding: 28px 36px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: popIn 0.5s cubic-bezier(0.34,1.56,0.64,1);
}

#celebration-content .cel-emoji { font-size: 3rem; }
#celebration-content .cel-title { font-size: 1.6rem; margin: 8px 0 4px; }
#celebration-content .cel-prize { font-size: 1.2rem; opacity: 0.9; }

.confetti-piece {
  position: fixed;
  font-size: 1.5rem;
  animation: confettiFall 2.5s ease-in forwards;
  pointer-events: none;
  z-index: 201;
}

/* ─── COIN PARTICLES ─────────────────────────────── */
.coin-particle {
  position: fixed;
  font-size: 1.5rem;
  pointer-events: none;
  z-index: 150;
}

.earn-coin  { animation: coinEarn  0.75s ease-in  forwards; }
.spend-coin { animation: coinSpend 0.85s ease-out forwards; }

/* ─── KEYFRAMES ──────────────────────────────────── */
@keyframes bounceScale {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.3); }
  100% { transform: scale(1); }
}

@keyframes idleWiggle {
  0%,100% { transform: translateY(0) rotate(0deg); }
  25%     { transform: translateY(-4px) rotate(-3deg); }
  75%     { transform: translateY(-2px) rotate(3deg); }
}

@keyframes pulseGold {
  0%,100% { box-shadow: 0 0 8px rgba(251,191,36,0.4); }
  50%     { box-shadow: 0 0 18px rgba(251,191,36,0.8); }
}

@keyframes coinEarn {
  0%   { opacity: 1; transform: translate(0,0) scale(1); }
  60%  { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.6); }
}

@keyframes coinSpend {
  0%   { opacity: 1; transform: translate(0,0) scale(1.2); }
  30%  { opacity: 1; transform: translate(calc(var(--dx)*0.4), calc(var(--dy)*-0.4)) scale(1.3); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.4); }
}

@keyframes popIn {
  from { transform: scale(0.3); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

@keyframes confettiFall {
  0%   { opacity: 1; transform: translateY(-20px) rotate(0deg); }
  100% { opacity: 0; transform: translateY(100vh) rotate(720deg); }
}

/* ─── SCROLLBAR ──────────────────────────────────── */
#prizes-section::-webkit-scrollbar { width: 4px; }
#prizes-section::-webkit-scrollbar-track { background: transparent; }
#prizes-section::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.3); border-radius: 2px; }

@media (orientation: landscape) and (max-height: 900px) {
  #path-section {
    flex-basis: 38%;
    padding: 8px 4px 8px 8px;
  }

  #right-panel {
    padding: 8px 8px 8px 4px;
    gap: 6px;
  }

  #header {
    padding: 6px 12px 5px;
    border-radius: 12px;
  }

  #header h1 {
    font-size: clamp(0.9rem, 1.9vw, 1.2rem);
  }

  #week-label {
    font-size: clamp(0.58rem, 1.2vw, 0.78rem);
  }

  #total-display {
    gap: 5px;
    padding: 2px 10px;
    margin-top: 3px;
    font-size: clamp(0.82rem, 1.8vw, 1.05rem);
  }

  #bank-section {
    gap: 10px;
    padding: 6px 10px;
    border-radius: 12px;
  }

  #pot-svg {
    height: clamp(46px, 8vh, 64px);
  }

  #bank-total {
    font-size: clamp(1.35rem, 3.2vw, 2rem);
  }

  #bank-coin-icon {
    font-size: clamp(1rem, 2.3vw, 1.35rem);
  }

  #bank-label-text {
    font-size: clamp(0.58rem, 1.2vw, 0.76rem);
    letter-spacing: 0.6px;
  }

  #history-card {
    padding: 6px 8px 4px;
    border-radius: 12px;
  }

  #history-title {
    font-size: clamp(0.58rem, 1vw, 0.76rem);
  }

  #history-subtitle {
    font-size: clamp(0.44rem, 0.8vw, 0.58rem);
    margin-bottom: 4px;
  }

  #history-bars {
    height: 48px;
    gap: 2px;
  }

  .history-bar.week-end {
    margin-right: 3px;
  }

  .history-day-label {
    bottom: -12px;
    font-size: 0.42rem;
  }

  #days-section {
    padding: 6px 4px 5px;
    border-radius: 12px;
  }

  #days-section h2 {
    font-size: clamp(0.6rem, 1.2vw, 0.8rem);
    letter-spacing: 1.4px;
    margin-bottom: 4px;
  }

  #days-grid {
    gap: 3px;
    padding: 0 2px;
  }

  .day-card {
    padding: 4px 2px;
    gap: 2px;
    border-radius: 10px;
  }

  .day-name {
    font-size: clamp(0.5rem, 1vw, 0.7rem);
  }

  .day-count {
    font-size: clamp(0.8rem, 1.8vw, 1.1rem);
    min-height: 1.2em;
  }

  .day-btn {
    width: clamp(24px, 4.6vw, 32px);
    height: clamp(24px, 4.6vw, 32px);
    font-size: clamp(0.82rem, 1.8vw, 1.1rem);
  }

  .btn-minus {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
  }

  #prizes-section {
    overflow: hidden;
    padding: 6px 8px 7px;
    border-radius: 12px;
  }

  #prizes-header {
    margin-bottom: 4px;
  }

  #prizes-header h2 {
    font-size: clamp(0.62rem, 1.2vw, 0.82rem);
    letter-spacing: 1.4px;
  }

  #edit-btn {
    width: 28px;
    height: 28px;
    font-size: 0.92rem;
  }

  #prize-list {
    gap: 4px;
  }

  .prize-item {
    gap: 8px;
    padding: 6px 10px;
    border-radius: 10px;
  }

  .prize-gem {
    font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  }

  .prize-name {
    font-size: clamp(0.72rem, 1.45vw, 0.92rem);
    line-height: 1.05;
  }

  .prize-threshold {
    font-size: clamp(0.54rem, 1vw, 0.68rem);
  }

  .spend-btn {
    padding: 4px 8px;
    border-radius: 8px;
    font-size: clamp(0.54rem, 1vw, 0.68rem);
  }

  .prize-status {
    font-size: clamp(0.78rem, 1.6vw, 1rem);
  }
}
