/* Chacha Tarlası: interfeys və səhnə stili. Rənglər tokens.css-dədir. */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  overflow: hidden;
  background: var(--art-grass);
  color: var(--color-text);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg.ico { width: 28px; height: 28px; vertical-align: middle; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }

/* ---------- Səhnə ---------- */
#scene {
  position: fixed; inset: 0;
  width: 100%; height: calc(100% - var(--scene-lift));
  display: block;
  overflow: visible;
  touch-action: none;
  user-select: none; -webkit-user-select: none;
}
#scene [data-plot], #scene [data-b] { cursor: pointer; outline: none; }
#scene [data-plot]:focus-visible .tile-top { stroke: var(--color-focus); stroke-width: 3; stroke-dasharray: none; }
#scene [data-b]:focus-visible .lbl-bg { stroke: var(--color-focus); stroke-width: 3; }

.sun { fill: var(--art-sun); }
.sun-glow { fill: var(--art-sun); opacity: .35; }
.cloud { fill: var(--art-cloud); opacity: .95; animation: drift 38s ease-in-out infinite alternate; }
.hills2 ellipse { fill: var(--art-hill-2); }
.hills ellipse { fill: var(--art-hill); }
.path, .yard { fill: var(--art-path); }
.tuft { fill: none; stroke: var(--art-grass-dark); stroke-width: 1.6; stroke-linecap: round; }
.shadow { fill: var(--art-shadow); }

.trunk { fill: var(--art-trunk); }
.tree { fill: var(--art-tree); }
.tree-d { fill: var(--art-tree-dark); }
.tree-hl { fill: var(--art-tree-hl); }
.fence-post { fill: var(--art-wood); stroke: var(--art-outline); stroke-width: 1.2; }
.fence-rail { fill: none; stroke: var(--art-wood); stroke-width: 3; stroke-linecap: round; }
.fence-rail-d { fill: none; stroke: var(--art-wood-dark); stroke-width: 1; stroke-linecap: round; }

/* günəbaxan */
.stem { fill: none; stroke: var(--art-stem); stroke-width: 3; stroke-linecap: round; }
.stem-mini { stroke: var(--art-stem); stroke-width: 1.6; }
.leaf { fill: var(--art-leaf); stroke: var(--art-leaf-dark); stroke-width: .8; }
.petal { fill: var(--art-petal); }
.petal-d { fill: var(--art-petal-dark); }
.disc { fill: var(--art-disc); }
.disc-dot { fill: var(--art-disc-dot); }
.bud { fill: var(--art-leaf-dark); }
.mound { fill: var(--art-soil-dark); }
.seed-dot { fill: var(--art-seed); }
.sway { transform-box: fill-box; transform-origin: 50% 100%; animation: sway 3.2s ease-in-out infinite; }
.flowers.pop { transform-box: fill-box; transform-origin: 50% 100%; animation: pop 320ms ease-out; }

/* sahələr */
.tile-top { fill: var(--art-soil); }
.tile-l { fill: var(--art-soil-side); }
.tile-r { fill: var(--art-soil-dark); }
.furrow { fill: none; stroke: var(--art-soil-furrow); stroke-width: 2.2; stroke-linecap: round; }
.tile-edge { fill: none; stroke: var(--art-soil-light); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.plot.locked .tile-top { fill: var(--art-locked); stroke: var(--art-locked-dark); stroke-width: 1.2; stroke-dasharray: 3 4; opacity: .7; }
.plot.locked .tile-l, .plot.locked .tile-r { fill: none; }
.f-shadow { fill: var(--art-soil-dark); opacity: .45; }
.sparkle { fill: var(--art-sparkle); opacity: 0; transform-box: fill-box; transform-origin: center; animation: twinkle 2.4s ease-in-out infinite; }
.stone { fill: var(--art-stone); }
.sack { fill: var(--art-sack); stroke: var(--art-outline); stroke-width: 1.2; stroke-linejoin: round; }
.sack-tie { fill: none; stroke: var(--art-sack-dark); stroke-width: 2; stroke-linecap: round; }
.bee-body { fill: var(--art-bee); stroke: var(--art-outline); stroke-width: .6; }
.bee-stripe { fill: none; stroke: var(--art-bee-stripe); stroke-width: 1.4; }
.bee-face { fill: var(--art-bee-stripe); }
.wing { fill: var(--art-wing); stroke: var(--art-outline); stroke-width: .4; transform-box: fill-box; transform-origin: 50% 100%; animation: flap 120ms linear infinite alternate; }
.buy rect { fill: var(--color-bg-2); stroke: var(--color-border); stroke-width: 2; }
.buy text { font: 900 12px var(--font-main); fill: var(--color-text); text-anchor: middle; dominant-baseline: central; }
.buy { animation: bob 1.4s ease-in-out infinite; transform-box: fill-box; }

/* binalar */
.wall { fill: var(--art-wall); stroke: var(--art-outline); stroke-width: 1.5; }
.wall-dark { fill: var(--art-wall-dark); stroke: var(--art-outline); stroke-width: 1.5; stroke-linejoin: round; }
.roof { fill: var(--art-roof); stroke: var(--art-outline); stroke-width: 1.5; stroke-linejoin: round; }
.roof-dark { fill: var(--art-roof-dark); stroke: var(--art-outline); stroke-width: 1.5; stroke-linejoin: round; }
.roof2-dark { fill: var(--art-roof-2-dark); stroke: var(--art-outline); stroke-width: 1.5; stroke-linejoin: round; }
.roof2-trim { fill: none; stroke: var(--art-roof-2); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.roof3 { fill: var(--art-roof-3); stroke: var(--art-outline); stroke-width: 1.5; stroke-linejoin: round; }
.roof3-dark { fill: var(--art-roof-3-dark); stroke: var(--art-outline); stroke-width: 1.5; stroke-linejoin: round; }
.wood { fill: var(--art-wood); stroke: var(--art-outline); stroke-width: 1.5; stroke-linejoin: round; }
.wood-dark { fill: var(--art-wood-dark); stroke: var(--art-outline); stroke-width: 1.5; stroke-linejoin: round; }
.plank { fill: none; stroke: var(--art-wood-dark); stroke-width: 1.2; opacity: .7; }
.brace { fill: none; stroke: var(--art-wood); stroke-width: 3; }
.trim { fill: none; stroke: var(--art-wall); stroke-width: 2.5; }
.metal { fill: var(--art-metal); stroke: var(--art-outline); stroke-width: 1.5; }
.metal-dark { fill: var(--art-metal-dark); stroke: var(--art-outline); stroke-width: 1.2; }
.spoke { fill: none; stroke: var(--art-metal); stroke-width: 2; stroke-linecap: round; }
.fire { fill: var(--art-fire); opacity: .25; }
.door { fill: var(--art-wood-dark); stroke: var(--art-outline); stroke-width: 1.5; }
.knob { fill: var(--art-gold); }
.window { fill: var(--art-sky-bottom); stroke: var(--art-outline); stroke-width: 1.5; }
.belt { fill: var(--art-metal-dark); stroke: var(--art-outline); stroke-width: 1.2; }
.roller { fill: var(--art-metal); }
.paper { fill: var(--art-paper); stroke: var(--art-outline); stroke-width: 1; }
.paper-line { fill: none; stroke: var(--art-wood); stroke-width: 1.4; stroke-linecap: round; }
.pin { fill: var(--art-pin); }
.aw-a { fill: var(--art-awning-a); stroke: var(--art-outline); stroke-width: 1; }
.aw-b { fill: var(--art-awning-b); stroke: var(--art-outline); stroke-width: 1; }
.kiosk-body { fill: var(--art-kiosk); stroke: var(--art-outline); stroke-width: 1.5; }
.kiosk-back { fill: var(--art-kiosk-back); stroke: var(--art-outline); stroke-width: 1.2; }
.kiosk-stripe { fill: var(--art-awning-a); }
.sign { fill: var(--art-awning-b); }
.sign-text { font: 900 12px var(--font-main); letter-spacing: 1.5px; fill: var(--art-awning-a); text-anchor: middle; dominant-baseline: central; }
.emblem-bg { fill: var(--art-wall); stroke: var(--art-outline); stroke-width: 1.5; }

.smoke circle { fill: var(--art-smoke); opacity: 0; }
.bld.busy .smoke circle { animation: smoke 2.4s ease-out infinite; }
.bld.busy .smoke circle:nth-child(2) { animation-delay: .8s; }
.bld.busy .smoke circle:nth-child(3) { animation-delay: 1.6s; }
.drum-spokes { transform-box: fill-box; transform-origin: center; }
.bld.busy .drum-spokes { animation: spin 1.4s linear infinite; }
.bld.busy .fire { opacity: .9; animation: flicker .5s ease-in-out infinite alternate; }
.bld.locked .art { opacity: .55; }

.lbl-bg { fill: var(--color-bg-2); stroke: var(--color-border); stroke-width: 2; }
.lbl { font: 800 12px var(--font-main); fill: var(--color-text); text-anchor: middle; dominant-baseline: central; }
.pb-bg { fill: var(--color-track); stroke: var(--color-border); stroke-width: 1.5; }
.pb-fill { fill: var(--color-success); }
.bubble-bg { fill: var(--color-white); stroke: var(--color-border); stroke-width: 2; }
.bob { transform-box: fill-box; animation: bob 1.2s ease-in-out infinite; }
.badge circle { fill: var(--art-ticket); stroke: var(--color-white); stroke-width: 2.5; }
.badge text { font: 900 12px var(--font-main); fill: var(--color-white); text-anchor: middle; dominant-baseline: central; }
.lock-tag circle { fill: var(--color-bg-2); stroke: var(--color-border); stroke-width: 2; }
.bld.hl .art { transform-box: fill-box; transform-origin: 50% 100%; animation: nudge 1.4s ease-in-out infinite; }
.bld.hl .lbl-bg { fill: var(--color-primary); }

/* ---------- Yuxarı panel ---------- */
.hud-top {
  position: fixed; z-index: 10; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%; max-width: 560px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: calc(env(safe-area-inset-top) + 12px) 16px 0;
  pointer-events: none;
}
.chip {
  pointer-events: auto;
  display: inline-flex; align-items: center; gap: 6px;
  height: 44px; padding: 0 14px 0 6px;
  background: var(--color-bg-2);
  border: 3px solid var(--color-border);
  border-radius: var(--radius-pill);
  box-shadow: 0 3px 0 var(--color-border), inset 0 -3px 0 var(--color-border-soft);
  font-weight: 900; font-size: 18px; line-height: 1;
  font-variant-numeric: tabular-nums;
}
button.chip { cursor: pointer; }
button.chip:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--color-border); }
.chip .ico { width: 28px; height: 28px; flex: none; }
.chip.bump { animation: bump 500ms ease-out; }
.lvl { position: relative; width: 34px; height: 34px; display: grid; place-items: center; flex: none; }
.lvl svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.lvl b { position: relative; font-size: 14px; color: var(--color-on-dark); text-shadow: 0 1px 0 var(--art-xp-dark), 1px 0 0 var(--art-xp-dark), -1px 0 0 var(--art-xp-dark), 0 -1px 0 var(--art-xp-dark); }
.xpbar { width: 64px; height: 12px; border-radius: 6px; background: var(--color-track); border: 2px solid var(--color-border); overflow: hidden; }
.xpbar span { display: block; height: 100%; width: 0; background: var(--art-xp); box-shadow: inset 0 3px 0 var(--color-highlight-soft); transition: width var(--dur) ease-out; }
/* Telefonda 4 çip bir sıraya sığsın */
.chip b { white-space: nowrap; }
@media (max-width: 480px) {
  .hud-top { gap: 6px; padding-left: 12px; padding-right: 12px; }
  .chip { gap: 4px; padding: 0 10px 0 4px; font-size: 16px; }
  .chip .ico { width: 26px; height: 26px; }
  .xpbar { width: 34px; }
}
@media (max-width: 360px) {
  .hud-top { gap: 4px; padding-left: 8px; padding-right: 8px; }
  .chip { padding: 0 8px 0 4px; }
  .xpbar { display: none; }
}

.hint {
  position: fixed; z-index: 9;
  top: calc(env(safe-area-inset-top) + 68px); left: 50%;
  transform: translateX(-50%);
  width: max-content; max-width: min(400px, calc(100% - 32px));
  display: flex; align-items: center; gap: 12px;
  margin: 0; padding: 8px 16px 8px 8px;
  background: var(--color-hint-bg); color: var(--color-on-dark);
  border-radius: var(--radius-l);
  font-weight: 800; font-size: 16px; line-height: 1.4;
  pointer-events: none;
  animation: hintIn 300ms ease-out;
}
.hint[hidden] { display: none; }
.hint-ico { flex: none; width: 40px; height: 40px; display: grid; place-items: center; background: var(--color-bg-2); border-radius: 50%; }
.hint-ico svg { width: 34px; height: 34px; animation: nod 2.4s ease-in-out infinite; }

/* ---------- Aşağı panel ---------- */
.hud-bottom {
  position: fixed; z-index: 10; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: center; align-items: flex-end; gap: 12px;
  padding: 0 16px calc(env(safe-area-inset-bottom) + 16px + var(--badge-space));
  pointer-events: none;
}
.hud-bottom > * { pointer-events: auto; }
.nav-btn {
  width: 68px; height: 64px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: var(--color-bg-2);
  border: 3px solid var(--color-border);
  border-radius: var(--radius-l);
  box-shadow: 0 4px 0 var(--color-border), inset 0 -3px 0 var(--color-border-soft);
  font-weight: 800; font-size: 12px; line-height: 1.2;
  cursor: pointer;
}
.nav-btn svg { width: 30px; height: 30px; }
.cta {
  height: 64px;
  display: flex; align-items: center; gap: 8px;
  padding: 0 24px;
  background: linear-gradient(180deg, var(--color-primary-light), var(--color-primary));
  border: 3px solid var(--color-border);
  border-radius: var(--radius-l);
  box-shadow: 0 5px 0 var(--color-border), inset 0 3px 0 var(--color-highlight);
  font-weight: 900; font-size: 18px; line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
}
.cta svg { width: 30px; height: 30px; flex: none; }
.cta.pulse { animation: ctaPulse 1.4s ease-in-out infinite; }
.nav-btn:hover, .cta:hover, button.chip:hover, .btn:hover:not(:disabled) { filter: brightness(1.05); }
.nav-btn:active, .cta:active, .btn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--color-border); }

/* ---------- Bildiriş və uçan rəqəmlər ---------- */
.toast {
  position: fixed; z-index: 70; left: 50%;
  bottom: calc(env(safe-area-inset-bottom) + 100px + var(--badge-space));
  transform: translate(-50%, 16px);
  width: max-content; max-width: min(420px, calc(100% - 32px));
  padding: 12px 16px;
  background: var(--color-hint-bg); color: var(--color-on-dark);
  border-radius: var(--radius-l);
  font-weight: 800; text-align: center;
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur) ease-in, transform var(--dur) ease-in;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); transition-timing-function: ease-out; }
body.modal-open .toast { bottom: auto; top: calc(env(safe-area-inset-top) + 16px); }

.float {
  position: fixed; z-index: 20; pointer-events: none;
  display: flex; align-items: center; gap: 2px;
  transform: translate(-50%, -50%);
  font-weight: 900; font-size: 22px; line-height: 1;
  color: var(--color-on-dark);
  text-shadow: 2px 0 0 var(--color-border), -2px 0 0 var(--color-border), 0 2px 0 var(--color-border), 0 -2px 0 var(--color-border), 2px 2px 0 var(--color-border), -2px 2px 0 var(--color-border), 2px -2px 0 var(--color-border), -2px -2px 0 var(--color-border);
  animation: floatUp 1000ms ease-out forwards;
}
.float svg { width: 26px; height: 26px; }

/* ---------- Pəncərə (modal) ---------- */
.modal-back {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: flex-end; justify-content: center;
  background: var(--color-overlay);
  animation: fadeIn var(--dur) ease-out;
}
.modal-back[hidden] { display: none; }
.modal {
  position: relative;
  width: 100%; max-width: 480px; max-height: calc(100% - 48px);
  overflow-y: auto;
  background: var(--color-bg-2);
  border: 3px solid var(--color-border); border-bottom: 0;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 24px 16px calc(env(safe-area-inset-bottom) + 24px + var(--badge-space));
  animation: sheetIn 250ms ease-out;
}
.modal::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--color-border-soft); }
@media (min-width: 768px) {
  .modal-back { align-items: center; padding: 24px; }
  .modal { border-bottom: 3px solid var(--color-border); border-radius: var(--radius-xl); padding: 24px; }
  .modal::before { display: none; }
}
.modal h2 { margin: 0 56px 16px 0; font-size: 24px; line-height: 1.25; font-weight: 900; }
.modal p { margin: 0 0 12px; }
.modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--color-white);
  border: 3px solid var(--color-border);
  border-radius: var(--radius-l);
  cursor: pointer;
}
.modal-close svg { width: 20px; height: 20px; }

/* düymələr */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px;
  border: 3px solid var(--color-border);
  border-radius: var(--radius-l);
  box-shadow: 0 4px 0 var(--color-border);
  font-weight: 900; font-size: 16px; line-height: 1.2;
  cursor: pointer;
}
.btn svg { width: 24px; height: 24px; flex: none; }
.btn-1 { background: linear-gradient(180deg, var(--color-primary-light), var(--color-primary)); box-shadow: 0 4px 0 var(--color-border), inset 0 3px 0 var(--color-highlight); }
.btn-2 { background: var(--color-white); }
.btn:disabled {
  background: var(--color-disabled); color: var(--color-text-2);
  border-color: var(--color-disabled-border);
  box-shadow: 0 4px 0 var(--color-disabled-border);
  cursor: not-allowed;
}
.btn.wide { width: 100%; margin-top: 4px; }
.btn.sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn-text {
  display: block; margin: 8px auto 0;
  min-height: 44px; padding: 0 12px;
  background: none; border: 0;
  color: var(--color-text-2);
  font-weight: 800; text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer;
}
.btn-text.sm { display: inline-flex; align-items: center; margin: 0; font-size: 15px; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0 8px; }

.muted { color: var(--color-text-2); }
.center { text-align: center; }
.sm { font-size: 14px; }
.note { color: var(--color-text-2); font-size: 14px; font-weight: 700; margin: 8px 0 0 !important; }
.card { background: var(--color-white); border: 2px solid var(--color-border-soft); border-radius: var(--radius-m); padding: 16px; }
.card, .inv-item, .rc, .reward-item { box-shadow: 0 3px 0 var(--color-border-soft); }
.empty { text-align: center; color: var(--color-text-2); font-weight: 700; }

/* resept */
.recipe { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 8px 0 16px; }
.rc { position: relative; width: 72px; height: 72px; display: grid; place-items: center; background: var(--color-white); border: 2px solid var(--color-border-soft); border-radius: var(--radius-m); }
.rc svg { width: 44px; height: 44px; }
.rc b { position: absolute; right: -8px; bottom: -8px; min-width: 28px; height: 28px; padding: 0 6px; display: grid; place-items: center; background: var(--color-primary); border: 2px solid var(--color-border); border-radius: 14px; font-size: 14px; line-height: 1; }
.recipe .arrow { width: 32px; height: 32px; }
.recipe.big svg { width: 96px; height: 96px; animation: pop 400ms ease-out; }
.progress { height: 16px; margin: 0 0 12px; background: var(--color-track); border: 2px solid var(--color-border); border-radius: 8px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--color-success); transition: width 250ms linear; }

/* anbar */
.inv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
.inv-item {
  display: grid; grid-template-columns: 48px 1fr; column-gap: 12px; align-items: center;
  padding: 12px;
  background: var(--color-white); border: 2px solid var(--color-border-soft); border-radius: var(--radius-m);
}
.inv-item svg { grid-row: span 2; width: 48px; height: 48px; }
.inv-item b { font-size: 20px; line-height: 1.2; }
.inv-item span { font-size: 14px; line-height: 1.3; color: var(--color-text-2); }
.inv-item.zero svg { opacity: .4; }
.tip { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.tip > svg { width: 40px; height: 40px; flex: none; }
.tip p { margin: 0 0 8px; }
.tip p:last-child { margin: 0; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.row-between p { margin: 0; }

/* sifarişlər */
.orders { display: grid; gap: 12px; }
.order-items { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.oi { display: flex; flex-direction: column; align-items: center; width: 92px; padding: 8px 4px; background: var(--color-bg-2); border: 2px solid var(--color-border-soft); border-radius: var(--radius-m); }
.oi svg { width: 36px; height: 36px; }
.oi span { font-weight: 900; }
.oi small { font-size: 12px; line-height: 1.3; color: var(--color-text-2); text-align: center; }
.oi.ok { border-color: var(--color-success); }
.oi.ok span::after { content: " ✓"; color: var(--color-success); }
.order-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.order-reward { display: flex; gap: 12px; font-weight: 900; font-size: 18px; }
.order-reward span { display: inline-flex; align-items: center; gap: 4px; }
.order-reward svg { width: 24px; height: 24px; }
.order-btns { display: flex; align-items: center; gap: 4px; }

/* tiraj */
.prize { position: relative; overflow: hidden; display: flex; align-items: center; gap: 16px; padding: 16px; margin-bottom: 12px; background: linear-gradient(180deg, var(--color-primary-light), var(--color-primary)); border: 3px solid var(--color-border); border-radius: var(--radius-m); box-shadow: 0 4px 0 var(--color-border); }
.prize::before { content: ""; position: absolute; left: 48px; top: 50%; width: 280px; height: 280px; border-radius: 50%; background: repeating-conic-gradient(var(--color-highlight-soft) 0deg 10deg, transparent 10deg 20deg); transform: translate(-50%, -50%); animation: rays 30s linear infinite; }
.prize > * { position: relative; }
.prize svg { width: 64px; height: 64px; flex: none; }
.prize p { margin: 0 !important; }
.prize-label { font-weight: 800; }
.prize-sum { font-size: 32px; line-height: 1.2; font-weight: 900; }
.draw-info { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.draw-info .card { padding: 12px; }
.draw-info p { margin: 0 !important; }
.big { font-size: 18px; font-weight: 900; line-height: 1.3; }
.chances-card { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.chances-card > svg { width: 48px; height: 48px; flex: none; }
.chances-card p { margin: 0 !important; }
.rules { margin-top: 12px; }
.rules summary { min-height: 44px; display: flex; align-items: center; font-weight: 800; cursor: pointer; }
.rules ul { margin: 0; padding-left: 20px; color: var(--color-text-2); }
.rules li { margin-bottom: 4px; }

/* çek şəkli */
.photo-guide { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; padding: 12px; background: var(--color-bg-2); border: 2px solid var(--color-border-soft); border-radius: var(--radius-m); }
.photo-guide-ico { width: 48px; height: 48px; flex: none; }
.photo-guide p { margin: 0 0 4px; }
.photo-guide p:last-child { margin: 0; }
#photoMsg { margin: 0 0 12px !important; }
.btn.wide + .btn.wide { margin-top: 12px; }
.receipt-preview { max-width: 320px; margin: 0 auto 12px; padding: 8px; background: var(--color-bg-2); border: 2px solid var(--color-border-soft); border-radius: var(--radius-m); }
.receipt-preview img { display: block; width: 100%; max-height: 50vh; object-fit: contain; border-radius: var(--radius-s); }
.progress.wide-bar { width: 100%; max-width: 280px; margin: 0; }

/* forma */
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 4px; font-weight: 800; }
.field input {
  width: 100%; height: 48px; padding: 0 12px;
  font: 700 16px var(--font-main); color: var(--color-text);
  background: var(--color-white);
  border: 2px solid var(--color-border-soft); border-radius: var(--radius-m);
}
.field input:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 1px; border-color: var(--color-border); }
.field input.invalid { border-color: var(--color-error); }
.field-err { margin: 4px 0 0 !important; color: var(--color-error); font-size: 14px; font-weight: 700; }
.field-err:empty { display: none; }
.field-hint { margin: 4px 0 0 !important; color: var(--color-text-2); font-size: 14px; }
.phone-field { display: flex; }
.phone-prefix { display: flex; align-items: center; padding: 0 12px; font-weight: 800; background: var(--color-bg-2); border: 2px solid var(--color-border-soft); border-right: 0; border-radius: var(--radius-m) 0 0 var(--radius-m); }
.phone-field input { flex: 1; min-width: 0; border-radius: 0 var(--radius-m) var(--radius-m) 0; }
.form-note { margin: 8px 0 0 !important; text-align: center; color: var(--color-text-2); font-size: 14px; }

/* yoxlama, hədiyyə, xəta */
.checking { display: grid; place-items: center; gap: 16px; padding: 24px 0; text-align: center; }
.spinner { width: 48px; height: 48px; border-radius: 50%; border: 5px solid var(--color-track); border-top-color: var(--color-primary); animation: spin 800ms linear infinite; }
.reward, .scan-error, .lvlup, .gate { text-align: center; }
.gift-box { width: 112px; height: 112px; margin: 0 auto 8px; animation: giftPop 600ms cubic-bezier(.2, 1.6, .4, 1) both; }
.gift-box svg { width: 100%; height: 100%; }
.reward-head { font-size: 20px; font-weight: 900; line-height: 1.3; }
.reward-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 16px; }
.reward-item { display: flex; flex-direction: column; align-items: center; padding: 12px 4px; background: var(--color-white); border: 2px solid var(--color-border-soft); border-radius: var(--radius-m); animation: rise 400ms ease-out both; }
.reward-item:nth-child(2) { animation-delay: 120ms; }
.reward-item:nth-child(3) { animation-delay: 240ms; }
.reward-item:nth-child(4) { animation-delay: 360ms; }
.reward-item svg { width: 40px; height: 40px; }
.reward-item b { font-size: 20px; line-height: 1.3; }
.reward-item span { font-size: 14px; line-height: 1.3; color: var(--color-text-2); }
.err-ico { width: 72px; height: 72px; margin: 8px auto 12px; }
.err-ico svg { width: 100%; height: 100%; }
.lvl-star { position: relative; width: 120px; height: 120px; margin: 0 auto 8px; display: grid; place-items: center; animation: giftPop 600ms cubic-bezier(.2, 1.6, .4, 1) both; }
.lvl-star svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.lvl-star b { position: relative; font-size: 40px; line-height: 1; }
.unlock-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; text-align: left; }
.unlock-list li { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--color-white); border: 2px solid var(--color-border-soft); border-radius: var(--radius-m); }
.unlock-list svg { width: 32px; height: 32px; flex: none; }

/* ---------- Animasiyalar ---------- */
@keyframes sway { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }
@keyframes pop { 0% { transform: scale(.7); } 70% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes nudge { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05, .97); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes flicker { from { opacity: .55; } to { opacity: .95; } }
@keyframes smoke { 0% { opacity: 0; transform: translate(0, 4px) scale(.6); } 25% { opacity: .85; } 100% { opacity: 0; transform: translate(6px, -18px) scale(1.4); } }
@keyframes drift { from { transform: translateX(-18px); } to { transform: translateX(18px); } }
@keyframes ctaPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes hintIn { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheetIn { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes giftPop { 0% { transform: scale(.3) rotate(-12deg); opacity: 0; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes rise { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes floatUp {
  0% { opacity: 0; transform: translate(-50%, -30%) scale(.8); }
  20% { opacity: 1; transform: translate(-50%, -80%) scale(1.05); }
  100% { opacity: 0; transform: translate(-50%, -220%) scale(1); }
}
@keyframes twinkle { 0%, 60%, 100% { opacity: 0; transform: scale(.4) rotate(0); } 75% { opacity: 1; transform: scale(1.1) rotate(20deg); } }
@keyframes flap { from { transform: scaleY(1); } to { transform: scaleY(.45); } }
@keyframes nod { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@keyframes rays { from { transform: translate(-50%, -50%) rotate(0); } to { transform: translate(-50%, -50%) rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
