/* =====================================================================
   CİVCİV BAHÇESİ — Stiller
   ===================================================================== */

:root {
  --cream: #fff8ec;
  --cream-2: #fff1dc;
  --pink: #ff8fab;
  --pink-dark: #ee6f90;
  --pink-soft: #ffe3ec;
  --green: #79c98c;
  --green-dark: #57ab6d;
  --brown: #7b5547;
  --brown-soft: #a8836f;
  --gold: #ffbf3f;
  --white: #fffdf8;
  --shadow: 0 10px 30px rgba(150, 105, 80, 0.16);
  --shadow-sm: 0 4px 12px rgba(150, 105, 80, 0.14);
  --radius: 22px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  font-family: "Segoe UI", "Trebuchet MS", system-ui, -apple-system, sans-serif;
  color: var(--brown);
  background:
    radial-gradient(circle at 12% 10%, #ffe9c9 0%, transparent 42%),
    radial-gradient(circle at 88% 20%, #ffdbe6 0%, transparent 40%),
    radial-gradient(circle at 50% 110%, #e2f3d6 0%, transparent 55%),
    #fdf3e2;
  display: flex;
  justify-content: center;
  align-items: stretch;
  user-select: none;
  -webkit-user-select: none;
}

#app {
  position: relative;
  width: 100%;
  max-width: 560px;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% -10%, #fff9ef 0%, transparent 60%),
    linear-gradient(180deg, #fff6e7 0%, #ffe9ee 55%, #fff9ee 100%);
  box-shadow: 0 0 60px rgba(140, 95, 70, 0.18);
  isolation: isolate;
}

@media (min-width: 620px) {
  #app {
    height: min(100dvh, 920px);
    margin: auto;
    border-radius: 34px;
    align-self: center;
    border: 1px solid rgba(255, 255, 255, 0.8);
  }
}

/* ---------------- Ekranlar ---------------- */
.screen {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  overflow: hidden;
  padding: calc(var(--safe-top) + 10px) 14px calc(var(--safe-bottom) + 8px);
}
.screen.active { display: flex; animation: screen-in 0.32s ease both; }

@keyframes screen-in {
  from { opacity: 0; transform: translateY(8px) scale(0.995); }
  to { opacity: 1; transform: none; }
}

/* ---------------- Butonlar ---------------- */
.btn {
  border: none;
  border-radius: 18px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--brown);
  background: var(--white);
  padding: 14px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
  touch-action: manipulation;
}
.btn:active { transform: scale(0.97); box-shadow: 0 2px 6px rgba(150, 105, 80, 0.18); }
.btn-primary {
  background: linear-gradient(180deg, #ff9db4 0%, #ff7f9f 100%);
  color: #fff;
  box-shadow: 0 6px 0 #e8688a, 0 12px 22px rgba(238, 111, 144, 0.28);
  text-shadow: 0 1px 0 rgba(180, 60, 90, 0.25);
}
.btn-primary:active { box-shadow: 0 3px 0 #e8688a, 0 6px 10px rgba(238, 111, 144, 0.25); transform: translateY(2px) scale(0.98); }
.btn-soft { background: #fff7ef; }
.btn-ghost { background: transparent; box-shadow: none; color: var(--brown-soft); font-size: 0.92rem; padding: 10px; }
.btn-ghost:active { background: rgba(255, 255, 255, 0.5); }
.btn-big { padding: 18px 24px; font-size: 1.25rem; border-radius: 22px; }
.btn-emoji { font-size: 1.2em; line-height: 1; }
.btn:disabled { opacity: 0.55; filter: grayscale(0.4); pointer-events: none; }

.icon-btn {
  width: 42px; height: 42px;
  flex: 0 0 auto;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-sm);
  color: var(--brown);
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.12s ease;
}
.icon-btn:active { transform: scale(0.92); }

/* ---------------- Menü ---------------- */
#screen-menu { justify-content: space-between; }

.deco { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.deco-item {
  position: absolute;
  font-size: 1.9rem;
  opacity: 0.5;
  filter: blur(0.2px);
  animation: floaty 7s ease-in-out infinite;
}
.d1 { top: 8%;  left: 7%;  animation-delay: 0s; }
.d2 { top: 17%; right: 9%; animation-delay: 1.2s; font-size: 1.6rem; }
.d3 { top: 38%; left: 4%;  animation-delay: 2.1s; font-size: 1.3rem; }
.d4 { bottom: 21%; right: 6%; animation-delay: 0.6s; font-size: 1.7rem; }
.d5 { bottom: 8%; left: 12%; animation-delay: 1.7s; }
.d6 { top: 6%; right: 32%; animation-delay: 2.6s; font-size: 1.4rem; }

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-14px) rotate(6deg); }
}

.menu-body {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vh, 26px);
  padding: 4px 6px;
  min-height: 0;
}

.brand { text-align: center; }

.mascot-wrap { position: relative; height: 112px; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 4px; }
.mascot {
  font-size: 5.2rem;
  line-height: 1;
  animation: bob 2.4s ease-in-out infinite;
  filter: drop-shadow(0 10px 10px rgba(160, 110, 60, 0.18));
  z-index: 1;
}
.mascot-shadow {
  position: absolute;
  bottom: 4px;
  width: 86px; height: 18px;
  border-radius: 50%;
  background: rgba(150, 110, 70, 0.18);
  filter: blur(3px);
  animation: shadow-pulse 2.4s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}
@keyframes shadow-pulse {
  0%, 100% { transform: scaleX(1); opacity: 0.9; }
  50% { transform: scaleX(0.78); opacity: 0.55; }
}

.brand h1 {
  margin: 2px 0 4px;
  font-size: clamp(2.1rem, 8.6vw, 2.8rem);
  letter-spacing: -0.5px;
  color: #7a4f3c;
  text-shadow: 0 2px 0 #fff, 0 5px 14px rgba(190, 130, 95, 0.2);
}
.tagline {
  margin: 0;
  font-size: 1rem;
  color: var(--brown-soft);
  font-weight: 600;
  min-height: 1.4em;
}

.stat-chips { display: flex; gap: 10px; }
.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.84);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
  font-size: 1rem;
}
.chip-icon { font-size: 1.05rem; }
.chip-sub { color: var(--brown-soft); font-weight: 600; font-size: 0.82rem; margin-left: -3px; }

.menu-actions {
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.menu-row { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.menu-row .btn { padding: 13px 10px; font-size: 0.95rem; }

.menu-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
}
.menu-footer-note {
  flex: 1;
  text-align: center;
  font-size: 0.72rem;
  color: rgba(123, 85, 71, 0.62);
  line-height: 1.3;
}

/* ---------------- Üst bar ---------------- */
.topbar, .game-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.topbar-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar-title strong { font-size: 1.08rem; }
.topbar-title span { font-size: 0.72rem; color: var(--brown-soft); }
.coin-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.86);
  padding: 8px 13px;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
  font-size: 0.92rem;
}

/* ---------------- Harita ---------------- */
.map-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  margin-top: 14px;
  padding: 2px 4px 24px;
  scrollbar-width: none;
}
.map-content::-webkit-scrollbar { display: none; }

.chapter { margin-bottom: 22px; }
.chapter-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 4px 10px;
}
.chapter-head .chapter-emoji {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-size: 1.1rem;
}
.chapter-head h2 { margin: 0; font-size: 1rem; letter-spacing: -0.2px; }
.chapter-head span { font-size: 0.72rem; color: var(--brown-soft); font-weight: 600; }

.level-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.level-node {
  position: relative;
  border: none;
  font-family: inherit;
  background: linear-gradient(180deg, #fffdf8 0%, #fff2dc 100%);
  border-radius: 18px;
  padding: 12px 4px 9px;
  color: var(--brown);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transition: transform 0.12s ease;
}
.level-node:active { transform: scale(0.95); }
.level-node .level-num { font-size: 1.3rem; font-weight: 800; line-height: 1.1; }
.level-node .level-emoji { font-size: 1.15rem; line-height: 1; margin-top: 2px; }
.level-node .level-stars { font-size: 0.66rem; letter-spacing: 1px; color: #d9c7b8; line-height: 1.2; }
.level-node .level-stars .on { color: var(--gold); }
.level-node.current {
  background: linear-gradient(180deg, #fff3b8 0%, #ffe58c 100%);
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px rgba(255, 191, 63, 0.35), var(--shadow-sm);
  animation: node-pulse 1.9s ease-in-out infinite;
}
.level-node.locked {
  background: rgba(255, 255, 255, 0.42);
  box-shadow: none;
  color: rgba(123, 85, 71, 0.38);
}
.level-node.locked .level-stars { color: transparent; }
.level-node .lock { position: absolute; top: 6px; right: 7px; font-size: 0.7rem; opacity: 0.65; }
.level-node .done-badge {
  position: absolute;
  top: -5px; right: -4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 5px rgba(87, 171, 109, 0.4);
}
@keyframes node-pulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.map-tip {
  margin: 4px 4px 18px;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.64);
  border-radius: 16px;
  font-size: 0.8rem;
  color: var(--brown-soft);
  line-height: 1.5;
  text-align: center;
}

/* ---------------- Oyun ---------------- */
.game-screen { gap: 8px; }

.game-top .level-pill {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.15;
}
.level-pill span { font-size: 0.68rem; color: var(--brown-soft); font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; }
.level-pill strong { font-size: 1.02rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.moves-pill {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.86);
  border-radius: 14px;
  padding: 5px 12px;
  box-shadow: var(--shadow-sm);
  line-height: 1.05;
}
.moves-pill strong { font-size: 1.15rem; }
.moves-pill span { font-size: 0.62rem; color: var(--brown-soft); font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; }
.moves-pill.low { animation: low-pulse 1s ease-in-out infinite; background: #ffe1e8; }
@keyframes low-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.hud-card {
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  padding: 9px 13px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.goal-list { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.goal-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff8ed;
  border-radius: 10px;
  padding: 4px 9px;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--brown);
  box-shadow: inset 0 0 0 1px rgba(220, 190, 160, 0.35);
}
.goal-chip .goal-emoji { font-size: 1rem; }
.goal-chip .goal-count { font-size: 0.82rem; }
.goal-chip .goal-count em { font-style: normal; color: var(--brown-soft); font-weight: 700; }
.goal-chip.done { background: #e7f7e5; box-shadow: inset 0 0 0 1px rgba(120, 200, 140, 0.5); color: #3f8a55; }
.goal-chip.done .goal-count em { color: #3f8a55; }

.score-line { display: flex; align-items: center; gap: 8px; }
.score-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.6px; font-weight: 800; color: var(--brown-soft); }
#hud-score { font-size: 1.15rem; font-weight: 900; }
.mini-stars { margin-left: auto; font-size: 0.9rem; letter-spacing: 2px; color: #e2d3c5; }
.mini-stars .on { color: var(--gold); text-shadow: 0 1px 2px rgba(220, 150, 20, 0.3); }

.board-wrap {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 2px 0;
}
.board-frame {
  position: relative;
  border-radius: 24px;
  padding: 8px;
  background: linear-gradient(180deg, #fffdf7 0%, #fff4e2 100%);
  box-shadow: 0 14px 34px rgba(150, 105, 80, 0.18), inset 0 0 0 1px #fff;
}
#board {
  display: block;
  border-radius: 18px;
  touch-action: none;
  cursor: pointer;
}

.combo-banner {
  position: absolute;
  top: 14%;
  left: 50%;
  transform: translate(-50%, 0) scale(0.7);
  padding: 7px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff0a8, #ffd24a);
  color: #8a5b13;
  font-weight: 900;
  font-size: 1.05rem;
  box-shadow: 0 8px 20px rgba(220, 160, 30, 0.35);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}
.combo-banner.show { animation: combo-pop 0.8s ease both; }
@keyframes combo-pop {
  0% { opacity: 0; transform: translate(-50%, 8px) scale(0.6); }
  20% { opacity: 1; transform: translate(-50%, 0) scale(1.08); }
  70% { opacity: 1; transform: translate(-50%, -6px) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -22px) scale(0.94); }
}

.booster-bar {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  padding: 2px 2px 0;
}
.booster {
  position: relative;
  border: none;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  padding: 9px 4px 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  color: var(--brown);
  transition: transform 0.12s ease;
}
.booster:active { transform: scale(0.94); }
.booster-emoji { font-size: 1.4rem; line-height: 1.1; }
.booster-label { font-size: 0.62rem; font-weight: 800; color: var(--brown-soft); }
.booster-count {
  position: absolute;
  top: -5px; right: -3px;
  min-width: 21px; height: 21px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 5px rgba(238, 111, 144, 0.4);
}
.booster-count.empty { background: #cbb9ac; }
.booster.active {
  background: linear-gradient(180deg, #fff3b8, #ffe58c);
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px rgba(255, 191, 63, 0.4);
  animation: node-pulse 1.1s ease-in-out infinite;
}
.booster-hint .booster-label { color: var(--brown-soft); }

/* ---------------- Modal ---------------- */
.modal-root {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  padding-top: calc(var(--safe-top) + 18px);
  padding-bottom: calc(var(--safe-bottom) + 18px);
}
.modal-root.hidden { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(90, 55, 40, 0.42);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fade-in 0.22s ease both;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.modal {
  position: relative;
  width: 100%;
  max-width: 380px;
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: linear-gradient(180deg, #fffdf8 0%, #fff5e6 100%);
  border-radius: 26px;
  padding: 24px 22px 20px;
  box-shadow: 0 24px 60px rgba(90, 55, 40, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.9);
  text-align: center;
  animation: modal-in 0.3s cubic-bezier(0.2, 1.3, 0.5, 1) both;
  scrollbar-width: none;
}
.modal::-webkit-scrollbar { display: none; }
@keyframes modal-in {
  from { opacity: 0; transform: translateY(18px) scale(0.94); }
  to { opacity: 1; transform: none; }
}

.modal h2 { margin: 4px 0 8px; font-size: 1.4rem; color: #7a4f3c; letter-spacing: -0.3px; }
.modal p { margin: 0 0 14px; font-size: 0.9rem; line-height: 1.55; color: var(--brown-soft); }
.modal .modal-emoji { font-size: 3.2rem; line-height: 1; margin-bottom: 4px; animation: bob 2.6s ease-in-out infinite; }
.modal .modal-actions { display: flex; flex-direction: column; gap: 9px; margin-top: 16px; }
.modal .modal-actions.row { flex-direction: row; }
.modal .modal-actions.row .btn { flex: 1; }
.modal .tiny { font-size: 0.72rem; color: rgba(123, 85, 71, 0.55); margin: 10px 0 0; }
.modal label { display: block; text-align: left; font-size: 0.78rem; font-weight: 800; color: var(--brown-soft); margin: 0 4px 6px; }

.text-input {
  width: 100%;
  border: 2px solid #f0dfcb;
  background: #fffaf0;
  border-radius: 14px;
  padding: 13px 15px;
  font-family: inherit;
  font-size: 1.02rem;
  color: var(--brown);
  font-weight: 700;
  outline: none;
  transition: border-color 0.15s ease;
}
.text-input:focus { border-color: var(--pink); }
.text-input::placeholder { color: #cbb7a7; font-weight: 500; }

/* Yıldızlar */
.stars-big {
  display: flex;
  justify-content: center;
  gap: 6px;
  font-size: 2.4rem;
  line-height: 1;
  margin: 6px 0 10px;
  color: #eadbcb;
}
.stars-big span.on {
  color: var(--gold);
  text-shadow: 0 4px 12px rgba(255, 180, 40, 0.5);
  animation: star-pop 0.5s cubic-bezier(0.2, 1.6, 0.5, 1) both;
}
.stars-big span:nth-child(2) { animation-delay: 0.15s; }
.stars-big span:nth-child(3) { animation-delay: 0.3s; }
@keyframes star-pop {
  0% { transform: scale(0) rotate(-30deg); opacity: 0; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

.result-score {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  background: #fff7e9;
  border-radius: 12px;
  padding: 7px 16px;
  font-size: 0.82rem;
  color: var(--brown-soft);
  font-weight: 700;
}
.result-score strong { font-size: 1.3rem; color: var(--brown); }

.reward-line {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
  font-size: 0.85rem;
  font-weight: 800;
}
.reward-pill { background: #fff6da; border-radius: 999px; padding: 5px 12px; }

.note-card {
  background: #fff9ef;
  border: 1px dashed #eccfae;
  border-radius: 16px;
  padding: 14px 16px;
  margin: 12px 0;
  text-align: left;
  position: relative;
}
.note-card .note-text { font-size: 0.9rem; line-height: 1.55; color: #6d4c3f; margin: 0; font-style: italic; }
.note-card .note-from { display: block; text-align: right; font-size: 0.75rem; color: var(--brown-soft); font-weight: 700; margin-top: 8px; }
.note-card .note-seal { font-size: 1.1rem; }

.note-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; text-align: left; }
.note-list .note-card { margin: 0; }
.note-card.locked { opacity: 0.55; border-style: solid; background: rgba(255, 255, 255, 0.5); }
.note-card.locked .note-text { font-style: normal; font-size: 0.82rem; }

/* Dükkân */
.shop-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff9ef;
  border-radius: 16px;
  padding: 11px 13px;
  margin-bottom: 9px;
  text-align: left;
  box-shadow: inset 0 0 0 1px rgba(235, 215, 190, 0.5);
}
.shop-item .shop-emoji { font-size: 1.8rem; width: 36px; text-align: center; }
.shop-item .shop-info { flex: 1; min-width: 0; }
.shop-item .shop-info strong { display: block; font-size: 0.9rem; }
.shop-item .shop-info span { font-size: 0.72rem; color: var(--brown-soft); line-height: 1.3; display: block; }
.shop-item .shop-owned { font-size: 0.72rem; color: var(--brown-soft); font-weight: 700; }
.shop-buy {
  border: none;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.8rem;
  color: #7a4f20;
  background: #ffe9a8;
  border-radius: 11px;
  padding: 9px 11px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 3px 0 #e9c96e;
}
.shop-buy:active { transform: translateY(2px); box-shadow: 0 1px 0 #e9c96e; }
.shop-buy:disabled { background: #efe4d6; color: #b5a294; box-shadow: 0 3px 0 #ddcfc0; }

.rules { text-align: left; }
.rules li { margin-bottom: 9px; font-size: 0.86rem; line-height: 1.45; color: #6d4c3f; }
.rules li strong { color: var(--brown); }
.rules { padding-left: 20px; margin: 4px 0 0; }

/* ---------------- Toast & konfeti ---------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--safe-bottom) + 92px);
  transform: translate(-50%, 20px);
  background: rgba(94, 62, 48, 0.94);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(90, 55, 40, 0.3);
  opacity: 0;
  pointer-events: none;
  z-index: 80;
  max-width: 88%;
  text-align: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.confetti-layer { position: fixed; inset: 0; pointer-events: none; z-index: 70; overflow: hidden; }
.confetti-piece {
  position: absolute;
  top: -30px;
  font-size: 1.2rem;
  animation: confetti-fall linear forwards;
}
@keyframes confetti-fall {
  0% { transform: translateY(-10px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(105vh) rotate(520deg); opacity: 0.75; }
}

/* ---------------- Küçük ekranlar ---------------- */
@media (max-height: 700px) {
  .mascot-wrap { height: 84px; }
  .mascot { font-size: 4.1rem; }
  .brand h1 { font-size: 2rem; }
  .menu-body { gap: 10px; }
  .menu-row .btn { padding: 11px 8px; }
  .btn-big { padding: 15px 20px; }
  .hud-card { padding: 7px 11px; gap: 5px; }
  .goal-chip { padding: 3px 7px; font-size: 0.78rem; }
  .game-screen { gap: 6px; }
  .booster { padding: 7px 4px 5px; }
  .booster-emoji { font-size: 1.25rem; }
  .toast { bottom: calc(var(--safe-bottom) + 82px); }
}

@media (max-height: 620px) {
  .deco { display: none; }
  .mascot-wrap { height: 62px; }
  .mascot { font-size: 3.3rem; }
  .brand h1 { font-size: 1.7rem; }
  .tagline { font-size: 0.88rem; }
  .menu-footer-note { display: none; }
  .hud-card { padding: 6px 10px; }
  .score-label { display: none; }
}
