/* =========================================================================
   TROJKA ZA POBEDU — Pumpalica.cc
   Stilovi: mobilni prvo, tamna sportska atmosfera, crveni neon.
   ========================================================================= */

/* ---------- Font (lokalno hostovan, bez eksternih servisa) ---------- */
@font-face {
  font-family: "Barlow Condensed";
  font-style: italic; font-weight: 800; font-display: swap;
  src: url("assets/fonts/barlow-condensed-latin-800-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: italic; font-weight: 800; font-display: swap;
  src: url("assets/fonts/barlow-condensed-latin-ext-800-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal; font-weight: 700; font-display: swap;
  src: url("assets/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal; font-weight: 700; font-display: swap;
  src: url("assets/fonts/barlow-condensed-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* ---------- Tokeni ---------- */
:root {
  --bg: #0d0505;
  --bg-2: #210709;
  --accent: #f43142;
  --green: #36efb1;      /* zeleni akcenti u igri: indikator klikova, kvadrat na tabli, linija za 3 poena */
  --accent-2: #ffa2aa;
  --accent-deep: #ca0e1d;
  --orange: #f7812f;
  --white: #fbf2f3;
  --muted: #b18e91;
  --dim: #7e5e61;
  --line: rgba(255, 130, 140, .18);
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Impact, sans-serif;
  --ui: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: 16px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--bg); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--white);
  font-family: var(--ui);
  background:
    radial-gradient(120% 70% at 50% 0%, #2f0b0e 0%, rgba(33, 7, 9, .4) 45%, transparent 70%),
    radial-gradient(90% 60% at 50% 100%, #180607 0%, transparent 70%),
    var(--bg);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  /* nema selektovanja teksta tokom brzog kliktanja */
  -webkit-user-select: none;
  user-select: none;
}

img { display: block; max-width: 100%; }
button, a { font: inherit; color: inherit; }
button { cursor: pointer; }

/* Vidljiv fokus za tastaturu */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius);
}

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

[hidden] { display: none !important; }

/* ---------- Okvir aplikacije ---------- */
.app {
  position: relative;
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px var(--gutter) 6px;
}
.brand {
  font-family: var(--display); font-style: italic; font-weight: 800;
  font-size: 22px; letter-spacing: .2px; line-height: 1;
}
.brand span, .footer span { color: var(--accent); }
a.brand { color: var(--white); text-decoration: none; padding: 6px 0; transition: opacity .15s; }
a.brand:hover { opacity: .85; }

.top-actions { display: flex; gap: 8px; }
.chip-btn {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(28, 10, 11, .8);
  color: #d7b4b7;
  font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: 1px;
  transition: border-color .15s, background-color .15s;
}
.chip-btn:hover { border-color: rgba(244, 49, 66, .5); }
.chip-btn img, .chip-btn svg { width: 18px; height: 18px; flex: none; }
.snd-icon { color: #f87883; }
.snd-off { display: none; }
.chip-btn[aria-pressed="false"] .snd-icon { color: var(--dim); }
.chip-btn[aria-pressed="false"] .snd-on { display: none; }
.chip-btn[aria-pressed="false"] .snd-off { display: inline; }
.chip-btn[aria-pressed="false"] { color: var(--dim); }

.screens { flex: 1; display: flex; flex-direction: column; }

.screen {
  flex: 1;
  display: flex; flex-direction: column; align-items: center;
  padding: 6px var(--gutter) 16px;
  text-align: center;
  animation: screen-in .35s ease both;
}

.footer {
  padding: 8px var(--gutter) 14px;
  text-align: center;
  font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: 1.6px;
  color: var(--dim);
}
.app[data-screen="play"] .footer { display: none; }
.footer p { margin: 0; }
.footer-link {
  display: inline-block; padding: 8px 2px;
  color: #e9d8da; text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.footer-link:hover { color: #fff; border-bottom-color: var(--accent); }
.visits { margin-bottom: 2px !important; color: var(--muted); }
.visits b { color: var(--white); }

/* ---------- Tipografija ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 8px 0 0;
  font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: 3px;
  color: var(--accent);
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px var(--accent);
  animation: blink 1.6s ease-in-out infinite;
}
.title {
  margin: 6px 0 0;
  font-family: var(--display); font-style: italic; font-weight: 800;
  font-size: clamp(56px, 18vw, 92px);
  line-height: .86; letter-spacing: -1px;
  text-transform: uppercase;
}
.title span { display: block; }
.title .accent { color: var(--accent); text-shadow: 0 0 28px rgba(244, 49, 66, .35); }

.tagline {
  margin: 4px 0 14px;
  font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: .5px;
  color: #efdcdd;
}

/* ---------- Dugmad ---------- */
.btn {
  width: 100%;
  min-height: 60px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: var(--radius);
  font-family: var(--display); font-weight: 800; font-style: italic;
  font-size: 24px; letter-spacing: 1.5px;
  transition: transform .12s ease, filter .15s ease, box-shadow .15s ease;
}
.btn img { width: 22px; height: 22px; }
.btn:active { transform: scale(.98); }
.btn-primary {
  border: 0;
  color: #220306;
  background: linear-gradient(100deg, #e72b3a 0%, #fb626f 100%);
  box-shadow: 0 8px 28px rgba(244, 49, 66, .28), inset 0 -3px 0 rgba(60, 0, 5, .25);
}
.btn-primary:hover { filter: brightness(1.07); }
.btn-secondary {
  background: rgba(20, 6, 7, .85);
  border: 2px solid var(--accent);
  color: var(--white);
}
.btn-secondary:hover { background: rgba(244, 49, 66, .1); }

.btn-text {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 14px;
  border: 0; background: transparent;
  font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: 1.5px;
  color: var(--muted);
}
.btn-text:hover { color: var(--white); }

.local-count {
  margin: 14px 0 0;
  font-size: 13px; color: var(--muted);
}
.local-count b { color: var(--white); font-size: 15px; }
.local-count span {
  display: block; margin-top: 2px;
  font-size: 11px; letter-spacing: .4px; color: var(--dim);
}

/* ---------- Svetlosni snopovi (dramatično osvetljenje) ---------- */
.beam {
  position: absolute; top: -10%; width: 40%; height: 95%;
  background: linear-gradient(180deg, rgba(255, 162, 170, .16), rgba(244, 49, 66, 0) 85%);
  filter: blur(14px);
  pointer-events: none;
}
.beam-l { left: 10%; transform: skewX(14deg); transform-origin: top; }
.beam-r { right: 10%; transform: skewX(-14deg); transform-origin: top; }

/* ---------- Ekran 1: hero ---------- */
.screen-intro { justify-content: flex-start; }
.hero {
  position: relative;
  width: calc(100% + 2 * var(--gutter));
  flex: 1;
  min-height: 230px;
  max-height: 380px;
  margin: 4px calc(-1 * var(--gutter)) 0;
  overflow: hidden;
}
.hero-court {
  position: absolute; left: 0; bottom: 0; width: 100%; height: 62%;
  object-fit: cover; object-position: 50% 100%;
}
.hero-ball {
  position: absolute; left: 50%; bottom: 12%;
  width: min(54vw, 42vh, 230px); height: auto; aspect-ratio: 1;
  transform: translateX(-50%);
  filter: drop-shadow(0 0 34px rgba(247, 129, 47, .35));
  animation: hero-bounce 1.15s cubic-bezier(.5, 0, .5, 1) infinite alternate;
}
.hero-shadow {
  position: absolute; left: 50%; bottom: 8%;
  width: min(44vw, 34vh, 190px); height: 22px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .75), transparent);
  animation: hero-shadow 1.15s cubic-bezier(.5, 0, .5, 1) infinite alternate;
}

/* ---------- Ekran 2: igra ---------- */
.screen-play { padding-bottom: 6px; }
.play-head { width: 100%; }
.instruction {
  margin: 4px 0 0;
  font-family: var(--display); font-style: italic; font-weight: 800;
  font-size: clamp(30px, 9vw, 40px); line-height: 1; letter-spacing: .3px;
}
.instruction b { color: var(--accent); font-weight: 800; }

.steps {
  list-style: none; margin: 12px auto 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  max-width: 320px;
}
.step {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px;
  border: 1px solid #472225; border-radius: var(--radius);
  background: rgba(24, 8, 9, .8);
  font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: 1px;
  color: var(--dim);
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.step-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4e2a2d;
  transition: background-color .2s, box-shadow .2s;
}
.step.is-current { border-color: rgba(54, 239, 177, .55); color: var(--white); }
.step.is-current .step-dot { background: var(--green); animation: blink 1s ease-in-out infinite; }
.step.is-done {
  background: var(--green); border-color: var(--green); color: #04211a;
  box-shadow: 0 0 20px rgba(54, 239, 177, .4);
}
.step.is-done .step-dot { background: #04211a; }
.step.just-done { animation: step-pop .35s ease; }

/* Scena — koš i lopta se skaliraju prema stvarnoj veličini scene (--sw/--sh) */
.stage {
  position: relative;
  flex: 1;
  width: calc(100% + 2 * var(--gutter));
  min-height: 340px;
  margin: 10px calc(-1 * var(--gutter)) 0;
  overflow: visible;   /* lopta sme da izađe iznad scene u temenu putanje */
  isolation: isolate;
  /* --sw / --sh = širina/visina scene u px; postavlja ih app.js (ResizeObserver) */
  --sw: 390px;
  --sh: 560px;
  touch-action: manipulation;
}

.stage-world {
  position: absolute; inset: 0;
  overflow: hidden;
  border-radius: inherit;
  transform-origin: 50% 25%;
  transition: transform 1.1s cubic-bezier(.3, .6, .2, 1);
}
.stage.is-shooting .stage-world { transform: translateY(2%) scale(1.06); }

.crowd {
  position: absolute; left: -4%; right: -4%; top: 30%; height: 26%;
  background:
    radial-gradient(circle at 8% 40%, #270a0d 0 9px, transparent 10px),
    radial-gradient(circle at 18% 30%, #23090b 0 11px, transparent 12px),
    radial-gradient(circle at 29% 44%, #270a0d 0 9px, transparent 10px),
    radial-gradient(circle at 41% 32%, #23090b 0 10px, transparent 11px),
    radial-gradient(circle at 59% 34%, #23090b 0 10px, transparent 11px),
    radial-gradient(circle at 71% 46%, #270a0d 0 9px, transparent 10px),
    radial-gradient(circle at 82% 30%, #23090b 0 11px, transparent 12px),
    radial-gradient(circle at 93% 42%, #270a0d 0 9px, transparent 10px),
    linear-gradient(180deg, transparent 0 46%, #1d090a 46% 100%);
  opacity: .9;
}
.court {
  position: absolute; left: 0; bottom: 0; width: 100%; height: 54%;
  object-fit: cover; object-position: 50% 100%;
}

/* Koš — bez transform/z-index na kontejneru da slojevi dele kontekst sa loptom */
.hoop {
  --hw: min(calc(var(--sw) * .54), calc(var(--sh) * .40), 260px);
  position: absolute;
  top: 3%;
  left: calc(50% - var(--hw) / 2);
  width: var(--hw);
  height: calc(var(--hw) * 1.2);
  pointer-events: none;
}
.hoop img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hoop-back { z-index: 1; }
.hoop-net { z-index: 3; transform-origin: 50% 53.3%; }
.hoop-rim { z-index: 4; }
.hoop.is-swish .hoop-net { animation: net-swish .7s cubic-bezier(.2, .7, .3, 1); }
.hoop.is-swish .hoop-rim { animation: rim-flash .6s ease-out; }

/* Lopta */
.ball {
  --bs: min(calc(var(--sw) * .44), calc(var(--sh) * .31), 200px);
  position: absolute;
  z-index: 5;
  bottom: 7%;
  left: calc(50% - var(--bs) / 2);
  width: var(--bs); height: var(--bs);
  padding: 0; border: 0; border-radius: 50%;
  background: transparent;
  touch-action: manipulation;
  will-change: transform;
}
.ball.is-behind { z-index: 2; }           /* posle temena putanje lopta ide iza mrežice/obruča */
.ball:disabled { cursor: default; }
.ball:focus-visible { outline-offset: 6px; border-radius: 50%; }
.ball-spin { display: block; width: 100%; height: 100%; border-radius: 50%; }
.ball-spin img {
  width: 100%; height: 100%;
  pointer-events: none;
  filter: drop-shadow(0 0 calc(10px + var(--charge, 0) * 10px) rgba(247, 129, 47, calc(.25 + var(--charge, 0) * .15)));
  transition: filter .25s;
}
.ball.is-idle .ball-spin { animation: ball-idle 1.6s ease-in-out infinite; }

.ball-shadow {
  --bs: min(calc(var(--sw) * .44), calc(var(--sh) * .31), 200px);
  position: absolute; z-index: 1;
  bottom: calc(7% - 12px);
  left: calc(50% - var(--bs) * .42);
  width: calc(var(--bs) * .84); height: 26px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .8), transparent);
  transition: opacity .4s, transform .4s;
}
.stage.is-shooting .ball-shadow { opacity: 0; transform: scale(.5); }

/* Talas energije i efekti klika */
.fx { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.shock {
  position: absolute;
  border-radius: 50%;
  border: 3px solid var(--accent);
  box-shadow: 0 0 22px rgba(244, 49, 66, .6), inset 0 0 18px rgba(244, 49, 66, .35);
  animation: shock .6s cubic-bezier(.2, .7, .3, 1) forwards;
}
.pop {
  position: absolute;
  font-family: var(--display); font-style: italic; font-weight: 800;
  font-size: 34px; color: var(--accent);
  text-shadow: 0 0 16px rgba(244, 49, 66, .7);
  animation: pop-up .7s ease-out forwards;
}
.callout {
  position: absolute; left: 0; right: 0; top: 42%; z-index: 7; margin: 0;
  font-family: var(--display); font-style: italic; font-weight: 800;
  font-size: clamp(54px, 18vw, 96px); letter-spacing: 1px;
  color: var(--white);
  text-shadow: 0 0 30px rgba(244, 49, 66, .8);
  opacity: 0;
  pointer-events: none;
}
.callout.is-on { animation: callout .9s ease-out forwards; }

.screen-play .btn-text { margin-top: 4px; }

/* ---------- Ekran 4: pobeda ---------- */
.screen-result { position: relative; justify-content: center; overflow: hidden; }
.win-burst {
  position: absolute; left: 50%; top: 36%;
  width: 760px; height: 760px; margin: -380px 0 0 -380px;
  background:
    radial-gradient(closest-side, rgba(244, 49, 66, .22), transparent 70%),
    repeating-conic-gradient(from 0deg, rgba(244, 49, 66, .07) 0 6deg, transparent 6deg 18deg);
  -webkit-mask: radial-gradient(closest-side, #000 30%, transparent 100%);
  mask: radial-gradient(closest-side, #000 30%, transparent 100%);
  animation: spin 24s linear infinite;
  pointer-events: none;
  z-index: -1;
}
.screen-result > *:not(.win-burst) { position: relative; }
.win-title {
  margin: 4px 0 0;
  font-family: var(--display); font-style: italic; font-weight: 800;
  font-size: clamp(64px, 20vw, 100px); line-height: .9; letter-spacing: 1px;
  animation: slam .5s cubic-bezier(.2, 1.4, .4, 1) both;
}
.win-three {
  margin: -4px 0 0;
  font-family: var(--display); font-style: italic; font-weight: 800;
  font-size: clamp(190px, 62vw, 300px); line-height: .82;
  color: #ff3b4b;
  text-shadow:
    0 0 10px rgba(255, 80, 95, .9),
    0 0 34px rgba(244, 49, 66, .85),
    0 0 80px rgba(244, 49, 66, .55),
    0 0 140px rgba(202, 14, 29, .45);
  animation: three-in .7s cubic-bezier(.2, 1.3, .4, 1) .1s both, glow 2.2s ease-in-out .9s infinite alternate;
}
.win-msg {
  margin: 6px 0 18px;
  font-family: var(--display); font-style: italic; font-weight: 800;
  font-size: clamp(36px, 11.5vw, 54px); line-height: .95;
  animation: rise .5s ease .35s both;
}
.win-msg span { color: var(--accent); }

.actions { width: 100%; display: grid; gap: 10px; animation: rise .5s ease .5s both; }
.btn-story { color: var(--accent); font-size: 15px; }

.share-panel {
  width: 100%;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
  margin-top: 10px;
}
.share-opt {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(24, 8, 9, .9);
  font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: .8px;
  color: var(--white); text-decoration: none;
}
.share-opt:hover { border-color: var(--accent); }
.share-url {
  grid-column: 1 / -1;
  min-height: 40px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #100405; color: var(--muted);
  font: 13px var(--ui);
  -webkit-user-select: text; user-select: text;
}
.share-status { min-height: 20px; margin: 10px 0 0; font-size: 14px; font-weight: 600; color: var(--accent); }

/* ---------- Konfete ---------- */
.confetti-layer { position: fixed; inset: 0; z-index: 50; pointer-events: none; overflow: hidden; }
.confetto { position: absolute; top: 0; left: 0; border-radius: 2px; will-change: transform, opacity; }
.flash {
  position: absolute; inset: 0;
  background: radial-gradient(60% 40% at 50% 28%, rgba(255, 162, 170, .45), transparent 70%);
  animation: flash .7s ease-out forwards;
}

.noscript { padding: 24px; text-align: center; color: var(--white); }

/* ---------- Animacije ---------- */
@keyframes screen-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: .35; } }
@keyframes hero-bounce { from { transform: translateX(-50%) translateY(-26px) rotate(-6deg); } to { transform: translateX(-50%) translateY(0) rotate(6deg); } }
@keyframes hero-shadow { from { transform: translateX(-50%) scale(.7); opacity: .5; } to { transform: translateX(-50%) scale(1); opacity: 1; } }
@keyframes ball-idle { 50% { transform: translateY(-6px); } }
@keyframes step-pop { 40% { transform: scale(1.12); } }
@keyframes shock { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.9); opacity: 0; } }
@keyframes pop-up { from { transform: translate(-50%, 0) scale(.6); opacity: 0; } 25% { opacity: 1; transform: translate(-50%, -14px) scale(1.1); } to { transform: translate(-50%, -60px) scale(1); opacity: 0; } }
@keyframes callout { 0% { opacity: 0; transform: scale(.6); } 25% { opacity: 1; transform: scale(1.06); } 70% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.1); } }
@keyframes net-swish {
  0%   { transform: scale(1, 1); }
  30%  { transform: scale(.86, 1.32); }
  55%  { transform: scale(1.06, .9); }
  78%  { transform: scale(.98, 1.06); }
  100% { transform: scale(1, 1); }
}
@keyframes rim-flash { 0% { filter: brightness(2.2) drop-shadow(0 0 8px #ffb08a); } 100% { filter: none; } }
@keyframes flash { from { opacity: 1; } to { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes slam { from { opacity: 0; transform: scale(1.6); } to { opacity: 1; transform: none; } }
@keyframes three-in { from { opacity: 0; transform: scale(.3) rotate(-8deg); } to { opacity: 1; transform: none; } }
@keyframes glow { to { text-shadow: 0 0 14px rgba(255, 80, 95, 1), 0 0 44px rgba(244, 49, 66, .95), 0 0 100px rgba(244, 49, 66, .7), 0 0 170px rgba(202, 14, 29, .55); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Veći ekrani ---------- */
@media (min-width: 700px) {
  .app { max-width: 500px; }
  .topbar { padding-top: 22px; }
  .stage, .hero { border-radius: var(--radius); width: 100%; margin-left: 0; margin-right: 0; }
  .stage { border: 1px solid rgba(255, 130, 140, .1); }
}

/* Niski ekrani (npr. telefon u landscape-u ili mali telefoni) */
@media (max-height: 640px) {
  .title { font-size: clamp(48px, 14vw, 72px); }
  .tagline { font-size: 19px; margin-bottom: 10px; }
  .btn { min-height: 54px; font-size: 22px; }
  .win-title { font-size: 60px; }
  .win-three { font-size: 170px; }
  .win-msg { font-size: 36px; margin-bottom: 12px; }
  .stage { min-height: 300px; }
}

@media (max-width: 350px) {
  :root { --gutter: 12px; }
  .chip-btn span { display: none; }
}

/* ---------- Smanjeno kretanje ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .stage.is-shooting .stage-world { transform: none; }
  .win-burst { animation: none; }
}
