@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Baloo+2:wght@400;600;800&display=swap');

:root {
  --ocean-deep: #0a1628;
  --ocean-mid: #0d2b4e;
  --ocean-surf: #1565C0;
  --ocean-foam: #42a5f5;
  --wave: #29b6f6;
  --gold: #FFD600;
  --gold-dark: #F9A825;
  --silver: #CFD8DC;
  --silver-dark: #90A4AE;
  --copper: #d4874e;
  --danger: #FF1744;
  --safe: #00E676;
  --panel: rgba(255,255,255,0.97);
  --text-dark: #0a1628;
}

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

body {
  font-family: 'Baloo 2', cursive;
  background: linear-gradient(180deg, #0a1628 0%, #0d2b4e 40%, #0a3d6b 100%);
  min-height: 100vh;
  overflow: hidden;
  user-select: none;
  position: relative;
}

/* ========== MENU SCREENS ========== */
.menu-screen {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 50;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s ease, visibility 0.4s;
}
.menu-screen.active {
  visibility: visible;
  opacity: 1;
  z-index: 50;
}
#gameWrapper.active {
  z-index: 1;
}

.menu-card {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 24px;
  padding: 2rem 1.8rem;
  text-align: center;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  color: white;
}

.menu-emoji-row { font-size: 2rem; letter-spacing: 6px; margin-bottom: 0.5rem; }
.menu-title { font-family: 'Fredoka One', cursive; font-size: 2rem; text-shadow: 0 3px 8px rgba(0,0,0,0.4); margin-bottom: 0.3rem; }
.menu-subtitle { font-size: 1.1rem; opacity: 0.85; margin-bottom: 1.2rem; }
.menu-welcome { font-size: 1.05rem; opacity: 0.9; margin-bottom: 1rem; }

.menu-input-group { margin: 1.2rem 0; text-align: left; }
.menu-input-group label { display: block; font-weight: 700; margin-bottom: 0.4rem; font-size: 0.95rem; }
.menu-input-group input[type="text"] {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: none;
  font-size: 1.1rem;
  font-family: inherit;
  font-weight: 700;
  color: #2d3436;
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.15);
}

.menu-btn {
  border: none;
  border-radius: 14px;
  padding: 0.9rem 1.5rem;
  font-size: 1.2rem;
  font-family: 'Fredoka One', cursive;
  color: #fff;
  cursor: pointer;
  width: 100%;
  transition: transform 0.15s, box-shadow 0.15s;
}
.menu-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.menu-btn:active:not(:disabled) { transform: scale(0.96); }
.menu-btn-primary {
  background: linear-gradient(135deg, #1565C0, #0d47a1);
  box-shadow: 0 5px 0 #0a2e6e, 0 8px 20px rgba(0,0,0,0.3);
}

/* Mode Cards */
.mode-cards-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
.mode-card-item {
  background: rgba(255,255,255,0.15);
  border: 2px solid transparent;
  border-radius: 18px;
  padding: 1.4rem 1.2rem;
  cursor: pointer;
  transition: transform 0.3s, background 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.mode-card-item::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 18px;
  padding: 2px;
  background: linear-gradient(135deg, #FFD600, #1565C0, #00E676);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s;
}
.mode-card-item:hover::after { opacity: 1; }
.mode-card-item:hover { transform: translateY(-4px); background: rgba(255,255,255,0.25); }
.mode-card-icon { font-size: 2.8rem; margin-bottom: 0.4rem; }
.mode-card-title { font-family: 'Fredoka One', cursive; font-size: 1.2rem; margin-bottom: 0.3rem; }
.mode-card-desc { font-size: 0.9rem; opacity: 0.85; line-height: 1.4; }
.mode-card-badge {
  display: inline-block;
  margin-top: 0.7rem;
  padding: 0.2rem 0.8rem;
  background: linear-gradient(135deg, #FFD600, #F9A825);
  color: #3E2000;
  border-radius: 20px;
  font-family: 'Fredoka One', cursive;
  font-size: 0.8rem;
}

/* Game Over buttons */
.go-buttons { display: flex; flex-direction: column; gap: 10px; }
#go-home-btn {
  background: rgba(0,0,0,0.1);
  color: #555; border: 2px solid #ccc; border-radius: 16px;
  padding: 11px 32px;
  font-family: 'Fredoka One', cursive; font-size: 1rem;
  cursor: pointer;
}

/* ========== OCEAN ========== */
#ocean {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 38%;
  background: linear-gradient(180deg, #1565C0 0%, #0d2b4e 100%);
  transition: height 6s linear;
  z-index: 2;
}
#ocean::before {
  content: '';
  position: absolute;
  top: -18px; left: -10%; width: 120%;
  height: 36px;
  background: radial-gradient(ellipse 60px 18px at 50% 100%, #42a5f5 0%, transparent 70%);
  animation: wave1 2.2s ease-in-out infinite alternate;
}
#ocean::after {
  content: '';
  position: absolute;
  top: -10px; left: -5%; width: 110%;
  height: 22px;
  background: radial-gradient(ellipse 80px 12px at 30% 100%, rgba(129,212,250,0.5) 0%, transparent 70%);
  animation: wave2 1.8s ease-in-out infinite alternate;
}
@keyframes wave1 {
  from { transform: translateX(-6px) scaleY(1); }
  to   { transform: translateX(6px) scaleY(1.15); }
}
@keyframes wave2 {
  from { transform: translateX(8px); }
  to   { transform: translateX(-8px); }
}

/* ========== SHIP ========== */
#ship-wrap {
  position: fixed;
  left: 50%; bottom: 30%;
  transform: translateX(-50%);
  transition: bottom 6s linear;
  z-index: 3;
}

#ship {
  font-size: 7rem;
  line-height: 1;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.5));
  animation: shipRock 3s ease-in-out infinite;
  transform-origin: bottom center;
  transition: filter 1s;
}
#ship.danger-ship {
  animation: shipRock 1s ease-in-out infinite, shipDanger 0.3s ease-in-out infinite alternate;
}
@keyframes shipRock {
  0%,100% { transform: rotate(-3deg); }
  50%     { transform: rotate(3deg); }
}
@keyframes shipDanger {
  from { filter: drop-shadow(0 0 12px #FF1744) drop-shadow(0 8px 24px rgba(0,0,0,0.5)); }
  to   { filter: drop-shadow(0 0 24px #FF5722) drop-shadow(0 8px 24px rgba(0,0,0,0.5)); }
}

/* Water level label */
#water-label {
  position: fixed;
  left: 14px;
  bottom: 38%;
  color: #42a5f5;
  font-family: 'Fredoka One', cursive;
  font-size: 0.85rem;
  opacity: 0.8;
  z-index: 10;
  transition: bottom 6s linear;
}

/* ========== BUBBLES ========== */
.bubble {
  position: fixed;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.5), rgba(100,180,255,0.15));
  border: 1px solid rgba(255,255,255,0.3);
  animation: bubbleUp linear forwards;
  z-index: 2;
  pointer-events: none;
}
@keyframes bubbleUp {
  0%   { transform: translateY(0) scale(1); opacity: 0.7; }
  100% { transform: translateY(-120px) scale(0.4); opacity: 0; }
}

/* ========== HUD ========== */
#hud {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  z-index: 20;
  background: linear-gradient(180deg, rgba(10,22,40,0.9) 0%, transparent 100%);
}
.hud-pill {
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 5px 14px;
  color: white;
  font-family: 'Fredoka One', cursive;
  font-size: 1rem;
  display: flex; align-items: center; gap: 5px;
}
.hud-pill .v { color: var(--gold); font-size: 1.15rem; }

/* ========== QUESTION PANEL ========== */
#q-panel {
  position: fixed;
  top: 62px; left: 50%;
  transform: translateX(-50%);
  width: 93%;
  max-width: 440px;
  background: var(--panel);
  border-radius: 20px;
  padding: 14px 16px 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  border: 3px solid rgba(255,255,255,0.6);
  z-index: 20;
}
#q-title {
  font-family: 'Fredoka One', cursive;
  font-size: 0.9rem;
  color: #1565C0;
  text-align: center;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
#q-text {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
  text-align: center;
  background: #E3F2FD;
  border-radius: 12px;
  padding: 10px 12px;
  border: 2px dashed #90CAF9;
  line-height: 1.4;
}
/* Target amount display */
#target-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}
.target-lira {
  font-family: 'Fredoka One', cursive;
  font-size: 2.2rem;
  color: #1565C0;
  background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
  border-radius: 14px;
  padding: 4px 20px;
  border: 2px solid #90CAF9;
}
.target-eq {
  font-family: 'Fredoka One', cursive;
  font-size: 1.4rem;
  color: #555;
}
/* Collected so far - REPLACED WITH COIN COUNT BADGE */
#coin-count-badge {
  position: fixed;
  top: 62px; right: 12px;
  background: linear-gradient(135deg, #FFD600, #F9A825);
  color: #3E2000;
  font-family: 'Fredoka One', cursive;
  font-size: 1.1rem;
  padding: 8px 16px;
  border-radius: 20px;
  z-index: 25;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3), 0 0 0 3px rgba(255,214,0,0.3);
  transition: transform 0.2s;
  animation: coinBadgePulse 2s ease-in-out infinite;
}
#coin-count-badge.pop {
  transform: scale(1.15);
}
@keyframes coinBadgePulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(0,0,0,0.3), 0 0 0 3px rgba(255,214,0,0.3); }
  50% { box-shadow: 0 4px 16px rgba(0,0,0,0.3), 0 0 0 6px rgba(255,214,0,0.15); }
}
#coin-count-v {
  font-size: 1.3rem;
  color: #b71c1c;
}

/* ========== BOTTOM UI STACK ========== */
#bottom-ui-wrapper {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 20;
}

/* ========== COIN TRAY (draggable area) ========== */
#coin-tray {
  background: rgba(255,255,255,0.97);
  border-radius: 22px;
  padding: 12px 10px 14px;
  box-shadow: 0 -4px 32px rgba(0,0,0,0.4);
  border: 3px solid rgba(255,255,255,0.8);
}
#tray-label {
  font-family: 'Fredoka One', cursive;
  font-size: 0.85rem;
  color: #888;
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}
#coin-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ========== COIN ========== */
.coin {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: transform 0.12s, box-shadow 0.12s;
  touch-action: manipulation;
  flex-shrink: 0;
}
.coin:active { transform: scale(0.9); }
.coin svg { pointer-events: none; }

/* Gold coins */
.coin-gold {
  background: radial-gradient(circle at 35% 35%, #FFF176, #FFD600 55%, #F9A825 85%, #E65100 100%);
  box-shadow: 0 5px 0 #B8860B, 0 8px 16px rgba(0,0,0,0.3), inset 0 2px 4px rgba(255,255,255,0.4);
  border: 2.5px solid #DAA520;
}
/* Silver coins */
.coin-silver {
  background: radial-gradient(circle at 35% 35%, #fff, #CFD8DC 55%, #90A4AE 85%, #546E7A 100%);
  box-shadow: 0 5px 0 #607D8B, 0 8px 16px rgba(0,0,0,0.3), inset 0 2px 4px rgba(255,255,255,0.5);
  border: 2.5px solid #90A4AE;
}
/* Copper coins */
.coin-copper {
  background: radial-gradient(circle at 35% 35%, #ffccaa, #d4874e 55%, #a6521a 85%, #7a360c 100%);
  box-shadow: 0 5px 0 #8c4212, 0 8px 16px rgba(0,0,0,0.3), inset 0 2px 4px rgba(255,255,255,0.4);
  border: 2.5px solid #bd6931;
}
/* 1 TL (Bimetallic) */
.coin-bimetal {
  background: radial-gradient(circle at center, #ffd600 0%, #f9a825 45%, #cfd8dc 46%, #90a4ae 100%);
  box-shadow: 0 5px 0 #607D8B, 0 8px 16px rgba(0,0,0,0.3), inset 0 2px 4px rgba(255,255,255,0.5);
  border: 2.5px solid #90A4AE;
}

/* ========== BANKNOTES ========== */
.banknote {
  width: 90px;
  height: 50px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: transform 0.12s, box-shadow 0.12s;
  touch-action: manipulation;
  flex-shrink: 0;
  box-shadow: 0 4px 0 rgba(0,0,0,0.2), 0 6px 12px rgba(0,0,0,0.3);
  border: 2px solid rgba(255,255,255,0.4);
  overflow: hidden;
}
.banknote::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.1) 4px, transparent 4px, transparent 8px);
  pointer-events: none;
}
.banknote:active { transform: scale(0.9); }

.bn-5 { background: linear-gradient(135deg, #ce93d8, #ab47bc); box-shadow: 0 4px 0 #7b1fa2, 0 6px 12px rgba(0,0,0,0.3); }     /* Mor/Kahve */
.bn-10 { background: linear-gradient(135deg, #ef9a9a, #ef5350); box-shadow: 0 4px 0 #c62828, 0 6px 12px rgba(0,0,0,0.3); }    /* Kırmızı */
.bn-20 { background: linear-gradient(135deg, #a5d6a7, #66bb6a); box-shadow: 0 4px 0 #2e7d32, 0 6px 12px rgba(0,0,0,0.3); }    /* Yeşil */
.bn-50 { background: linear-gradient(135deg, #ffcc80, #ffa726); box-shadow: 0 4px 0 #e65100, 0 6px 12px rgba(0,0,0,0.3); }    /* Turuncu */
.bn-100 { background: linear-gradient(135deg, #90caf9, #42a5f5); box-shadow: 0 4px 0 #1565c0, 0 6px 12px rgba(0,0,0,0.3); }   /* Mavi */
.bn-200 { background: linear-gradient(135deg, #f48fb1, #ec407a); box-shadow: 0 4px 0 #c2185b, 0 6px 12px rgba(0,0,0,0.3); }   /* Pembe/Mor */

.banknote-value {
  font-family: 'Fredoka One', cursive;
  font-size: 1.5rem;
  color: white;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
  pointer-events: none;
  z-index: 2;
}
.banknote-label {
  font-family: 'Fredoka One', cursive;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.9);
  margin-left: 4px;
  pointer-events: none;
  z-index: 2;
}


.coin-label {
  font-family: 'Fredoka One', cursive;
  font-size: 0.78rem;
  line-height: 1.1;
  text-align: center;
  pointer-events: none;
}
.coin-gold .coin-label { color: #5D3A00; }
.coin-silver .coin-label { color: #263238; }
.coin-copper .coin-label { color: #3e1c02; }
.coin-bimetal .coin-label { color: #1a2a30; }

.coin-value {
  font-size: 1.05rem;
  font-weight: 900;
  pointer-events: none;
}
.coin-gold .coin-value { color: #3E2000; }
.coin-silver .coin-value { color: #1a2a30; }
.coin-copper .coin-value { color: #3e1c02; }
.coin-bimetal .coin-value { color: #3E2000; }

/* Counter badge */
.coin-count {
  position: absolute;
  top: -6px; right: -6px;
  background: #1565C0;
  color: white;
  font-family: 'Fredoka One', cursive;
  font-size: 0.8rem;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  pointer-events: none;
}

/* ========== ANSWER AREA ========== */
#answer-area {
  width: 100%;
}

#answer-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  min-height: 52px;
  max-height: 120px;
  overflow-y: auto;
  background: rgba(255,255,255,0.15);
  border: 2px dashed rgba(255,255,255,0.4);
  border-radius: 16px;
  padding: 8px;
  transition: border-color 0.3s, background 0.3s;
}
#answer-slots.correct-glow {
  background: rgba(0,230,118,0.2);
  border-color: #00E676;
}
#answer-slots.wrong-glow {
  background: rgba(255,23,68,0.15);
  border-color: #FF1744;
}

.slot-coin, .slot-banknote {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s;
  flex-shrink: 0;
}
.slot-coin { border-radius: 50%; }
.slot-banknote { border-radius: 4px; flex-direction: row; }
.slot-coin:active, .slot-banknote:active { transform: scale(0.85); }

/* Submit */
#submit-btn {
  display: block;
  margin: 6px auto 0;
  background: linear-gradient(135deg, #1565C0, #0d47a1);
  color: white;
  border: none;
  border-radius: 16px;
  padding: 10px 40px;
  font-family: 'Fredoka One', cursive;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 5px 0 #0a2e6e, 0 8px 20px rgba(0,0,0,0.3);
  transition: transform 0.1s, box-shadow 0.1s;
}
#submit-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 #0a2e6e; }
#submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ========== FEEDBACK TOAST ========== */
#toast {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: white;
  border-radius: 22px;
  padding: 20px 28px;
  text-align: center;
  z-index: 100;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  transition: transform 0.22s cubic-bezier(.34,1.56,.64,1);
  min-width: 240px;
}
#toast.show { transform: translate(-50%, -50%) scale(1); }
#toast-emoji { font-size: 2.8rem; }
#toast-msg { font-family: 'Fredoka One', cursive; font-size: 1.3rem; margin: 6px 0 2px; }
#toast-sub { font-size: 0.9rem; color: #555; font-weight: 600; }

/* ========== GAMEOVER ========== */
#gameover {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#gameover.show { display: flex; }
#go-box {
  background: white;
  border-radius: 28px;
  padding: 32px 36px;
  text-align: center;
  max-width: 340px; width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
#go-emoji { font-size: 4rem; margin-bottom: 6px; }
#go-title { font-family: 'Fredoka One', cursive; font-size: 1.9rem; color: #0d2b4e; margin-bottom: 4px; }
#go-stars { font-size: 2.5rem; margin: 8px 0; letter-spacing: 6px; }
#go-praise {
  font-family: 'Fredoka One', cursive;
  font-size: 1.1rem;
  color: #1565C0;
  margin-bottom: 10px;
}
#go-stats { font-size: 0.95rem; color: #555; font-weight: 700; margin-bottom: 20px; line-height: 1.7; }
#restart-btn {
  background: linear-gradient(135deg, #1565C0, #0d47a1);
  color: white; border: none; border-radius: 16px;
  padding: 13px 32px;
  font-family: 'Fredoka One', cursive; font-size: 1.2rem;
  cursor: pointer; box-shadow: 0 5px 0 #0a2e6e;
}

/* floating coin animation (tap feedback) */
.float-coin {
  position: fixed;
  font-family: 'Fredoka One', cursive;
  font-size: 1rem;
  color: #FFD600;
  pointer-events: none;
  z-index: 50;
  animation: floatUp 0.8s ease-out forwards;
}
@keyframes floatUp {
  0%   { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-60px) scale(0.6); opacity: 0; }
}

/* stars */
.star {
  position: fixed;
  width: 2px; height: 2px;
  background: white;
  border-radius: 50%;
  animation: twinkle 2s infinite alternate;
  pointer-events: none;
}
@keyframes twinkle {
  from { opacity: 0.15; }
  to   { opacity: 0.9; }
}

/* urgency screen flash */
@keyframes flashRed {
  0%,100% { background: transparent; }
  50%     { background: rgba(255,23,68,0.08); }
}
body.urgent { animation: flashRed 0.5s infinite; }

/* HUD responsive wrap */
#hud { flex-wrap: wrap; gap: 6px; justify-content: center; }
.hud-pill { font-size: 0.85rem; padding: 4px 10px; }

/* ========== MOBILE OPTIMIZATIONS ========== */
@media (max-width: 600px), (max-height: 800px) {
  /* HUD adjustments */
  .hud-pill { font-size: 0.75rem; padding: 3px 8px; }
  .hud-pill .v { font-size: 0.9rem; }
  #hud { padding: 6px 8px; }

  /* Q-Panel Shrink */
  #q-panel {
    top: 52px;
    padding: 8px 10px 8px;
    border-radius: 16px;
    border-width: 2px;
  }
  #q-title { font-size: 0.75rem; margin-bottom: 4px; }
  .target-lira { font-size: 1.6rem; padding: 2px 14px; border-radius: 10px; }
  .target-eq { font-size: 1.1rem; }
  #q-text { font-size: 0.9rem; padding: 8px 10px; }
  #coin-count-badge { top: 52px; font-size: 0.85rem; padding: 6px 12px; }
  #coin-count-v { font-size: 1.1rem; }

  /* Ship and Ocean */
  #ship { font-size: 4.5rem; }
  #water-label { font-size: 0.75rem; left: 8px; }

  /* Bottom UI Stack Tweak */
  #bottom-ui-wrapper { gap: 6px; bottom: 6px; max-width: 98%; }
  
  /* Answer Area Tweak */
  #answer-slots {
    padding: 6px;
    border-radius: 12px;
    min-height: 48px;
    max-height: 90px;
    gap: 4px;
  }
  #submit-btn {
    padding: 8px 30px;
    font-size: 1rem;
    margin-top: 4px;
    border-radius: 14px;
  }

  /* Tray Tweak */
  #coin-tray {
    padding: 8px 6px 10px;
    border-radius: 16px;
    border-width: 2px;
  }
  #tray-label { font-size: 0.75rem; margin-bottom: 4px; }
  #coin-row { gap: 6px; }

  /* Universal Coin Shrink for Tray */
  .coin { width: 50px; height: 50px; border-width: 2px; }
  .coin-value { font-size: 0.9rem; }
  .coin-label { font-size: 0.65rem; }
  
  /* Universal Banknote Shrink for Tray */
  .banknote { width: 66px; height: 36px; border-width: 1.5px; }
  .banknote-value { font-size: 1.1rem; }
  .banknote-label { font-size: 0.6rem; }

  /* Answer Slots Overrides for Mobiles */
  .slot-coin { width: 38px !important; height: 38px !important; }
  .slot-coin > div:first-child { font-size: 0.65rem !important; }
  .slot-coin > div > span { font-size: 0.55rem !important; }
  
  .slot-banknote { width: 48px !important; height: 26px !important; border-radius: 3px !important; }
  .slot-banknote .banknote-value { font-size: 0.85rem !important; }
  .slot-banknote .banknote-label { font-size: 0.45rem !important; }
  
  /* Result Screens */
  .menu-card { padding: 1.5rem 1.2rem; }
  .menu-emoji-row { font-size: 1.6rem; }
  .menu-title { font-size: 1.6rem; }
  
  #go-emoji { font-size: 3.5rem; }
  #go-title { font-size: 1.5rem; }
  #go-stats { font-size: 0.85rem; margin-bottom: 15px; }
  #go-box { padding: 20px 24px; }
}
