/* Brojevni otoci — jadranska paleta, debele zaobljene forme, veliki dodirni ciljevi. */

:root {
  --sky-top: #b3e7ff;
  --sky-horizon: #ffe9c2;
  --sea-1: #4fc3e8;
  --sea-2: #1b7fb4;
  --sea-deep: #0e5e8a;
  --sea-night: #073b58;
  --sand: #ffe3a3;
  --sand-dark: #e8c477;
  --stone: #fffaf0;
  --coral: #ff6b4a;
  --coral-dark: #d94f30;
  --sunce: #ffd23f;
  --sunce-dark: #e0a900;
  --bor: #2fa26e;
  --bor-dark: #1f7a50;
  --ljubicasta: #a862e0;
  --ink: #143a5a;
  --ink-soft: #46708f;
  --card: #ffffff;
  --radius: 22px;
  --shadow: 0 6px 0 rgba(14, 94, 138, .18);
  --shadow-lift: 0 10px 24px rgba(14, 94, 138, .22);
  --font-display: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Nunito", "Verdana", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: linear-gradient(180deg, var(--sky-top) 0%, #d8f2ff 30%, var(--sea-1) 62%, var(--sea-2) 100%);
  background-attachment: fixed;
  min-height: 100%;
  padding-top: 64px;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; }

.hidden { display: none !important; }
.skriveno { display: none !important; }

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

.sitno { font-size: 14px; color: var(--ink-soft); font-weight: 700; margin: 6px 0 0; }

/* Veliki tiskani način za male čitače — text-transform se nasljeđuje,
   pa jedno pravilo na body pokriva sav tekst. */
body.velika-slova {
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ============ HUD ============ */
#hud {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; justify-content: space-between; align-items: center;
  gap: 8px; padding: 8px 12px;
  background: rgba(255, 250, 240, .92);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid rgba(14, 94, 138, .12);
}

.hud-left, .hud-right { display: flex; gap: 8px; align-items: center; }

.hud-pill {
  display: flex; align-items: center; gap: 6px;
  background: #fff; border: 3px solid var(--sand-dark);
  border-radius: 999px; padding: 4px 12px 4px 6px;
  font-family: var(--font-display); font-size: 18px; font-weight: 800;
  box-shadow: 0 3px 0 rgba(14, 94, 138, .12);
}

.hud-pill .hud-ik { width: 24px; height: 24px; display: block; }
.hud-pill .hud-ik svg { width: 100%; height: 100%; display: block; }
#hud-stars { border-color: var(--sunce-dark); }
#hud-niz { border-color: var(--coral-dark); }
#hud-niz.niz { color: var(--coral-dark); }

.hud-btn {
  width: 46px; height: 46px; border-radius: 16px;
  border: 3px solid rgba(14, 94, 138, .16); background: #fff;
  display: grid; place-items: center; cursor: pointer;
  font-family: var(--font-display); font-size: 17px; font-weight: 800; color: var(--ink);
  box-shadow: 0 3px 0 rgba(14, 94, 138, .12);
  transition: transform .12s;
  padding: 0;
}
.hud-btn:active { transform: translateY(2px); box-shadow: none; }
.hud-btn svg { width: 24px; height: 24px; }
.hud-btn.active { background: var(--sunce); border-color: var(--sunce-dark); }
.hud-btn .kriz { display: none; }
.hud-btn.iskljuceno .val { display: none; }
.hud-btn.iskljuceno .kriz { display: block; }
.osmica-btn { padding: 3px; overflow: hidden; }
.osmica-btn .osmica { width: 100%; height: 100%; }

/* ============ Zasloni ============ */
.screen {
  max-width: 660px; margin: 0 auto;
  padding: 14px 16px 48px;
  position: relative; z-index: 2;
  animation: uklizi .3s ease;
}

@keyframes uklizi { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.back-btn {
  border: none; background: rgba(255, 255, 255, .82);
  font-family: var(--font-display); font-weight: 800; font-size: 16px; color: var(--ink);
  padding: 9px 16px; border-radius: 999px; cursor: pointer;
  box-shadow: var(--shadow); margin-bottom: 12px;
}
.back-btn:active { transform: translateY(2px); box-shadow: none; }

.odjeljak {
  font-size: 19px; color: #fff; margin: 22px 0 10px;
  text-shadow: 0 2px 0 rgba(14, 94, 138, .35);
}

/* ============ Karta ============ */
.map-title { text-align: center; margin-bottom: 18px; }
.map-title h1 {
  font-size: 38px; color: #fff; letter-spacing: .5px;
  text-shadow: 0 3px 0 var(--sea-2), 0 6px 14px rgba(14, 94, 138, .35);
}
.map-sub {
  font-weight: 800; color: var(--ink); margin: 4px 0 0;
  background: rgba(255, 250, 240, .78); display: inline-block;
  padding: 4px 14px; border-radius: 999px;
}

.karta-akcije { display: grid; gap: 10px; }

.akcija-kartica {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border: none; border-radius: var(--radius);
  padding: 12px 16px; cursor: pointer; text-align: left;
  box-shadow: var(--shadow); border-left: 8px solid var(--sea-1);
  font-family: var(--font-body);
}
.akcija-kartica:active { transform: translateY(3px); box-shadow: none; }
.akcija-kartica.dnevni { border-left-color: var(--coral); }
.akcija-kartica.ribolov { border-left-color: var(--sunce); }
.akcija-kartica.greben { border-left-color: var(--ljubicasta); }
.akcija-kartica.gotovo { opacity: .68; }
.ak-slika { width: 46px; height: 46px; flex: none; display: grid; place-items: center; }
.ak-slika svg { width: 100%; height: 100%; }
.ak-tekst h3 { font-size: 20px; }
.ak-tekst p { margin: 2px 0 0; font-size: 14px; font-weight: 700; color: var(--ink-soft); }

.archipelago { display: grid; gap: 12px; }

.island {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border: none; border-radius: var(--radius);
  padding: 12px 16px; cursor: pointer; text-align: left;
  box-shadow: var(--shadow); font-family: var(--font-body);
}
.island:active { transform: translateY(3px); box-shadow: none; }
.island.locked { opacity: .62; cursor: default; }
.island.zavrsen { background: linear-gradient(180deg, #fff 60%, #fff6d8); }
.island-emoji { width: 84px; flex: none; }
.otok-art { width: 100%; height: auto; display: block; }
.island:not(.locked) .otok-art { animation: bob 5s ease-in-out infinite; }

@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.island-info { flex: 1; min-width: 0; }
.island-info h3 { font-size: 21px; }
.island-info p { margin: 2px 0 6px; font-size: 14px; font-weight: 700; color: var(--ink-soft); }

.napredak-traka {
  height: 10px; border-radius: 999px; background: rgba(14, 94, 138, .12);
  overflow: hidden; margin-bottom: 4px;
}
.napredak-traka span {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--bor), #58d69b);
  transition: width .5s cubic-bezier(.25, .9, .3, 1);
}
.island-progress { font-size: 13px; font-weight: 800; color: var(--bor-dark); }
.lock-note { font-size: 13px; font-weight: 800; color: var(--ink-soft); }

.waves { position: fixed; left: 0; right: 0; bottom: 0; height: 90px; z-index: 1; pointer-events: none; }
.wave {
  position: absolute; bottom: 0; left: -50%; width: 200%; height: 100%;
  background-repeat: repeat-x; background-size: 50% 100%;
  background-image: radial-gradient(ellipse at 50% 100%, rgba(255, 255, 255, .35) 0 40%, transparent 41%);
}
.wave-1 { animation: drift 12s linear infinite; opacity: .5; }
.wave-2 { animation: drift 18s linear infinite reverse; opacity: .32; height: 70%; }

@keyframes drift { from { transform: translateX(0); } to { transform: translateX(25%); } }

/* ============ Otok ============ */
.island-head { text-align: center; margin-bottom: 20px; }
.island-head h2 { font-size: 29px; color: #fff; text-shadow: 0 3px 0 var(--sea-2); }
.island-head p { font-weight: 800; color: var(--ink); margin: 4px 0 0; }

.trail { display: grid; gap: 12px; }

.buoy {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border: none; border-radius: var(--radius);
  padding: 12px 16px; cursor: pointer; text-align: left;
  box-shadow: var(--shadow); font-family: var(--font-body);
}
.buoy:active { transform: translateY(3px); box-shadow: none; }
.buoy.locked { opacity: .55; cursor: default; }
.buoy.current { outline: 4px solid var(--sunce); }
.buoy.done { background: linear-gradient(180deg, #fff 55%, #eefbf4); }

.buoy-badge {
  width: 46px; height: 46px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sea-1); color: #fff;
  font-family: var(--font-display); font-size: 22px; font-weight: 800;
  border: 3px solid #fff; box-shadow: 0 3px 0 rgba(14, 94, 138, .2);
}
.buoy.done .buoy-badge { background: var(--bor); }
.buoy.current .buoy-badge { background: var(--coral); animation: pulse 1.8s ease-in-out infinite; }
.buoy.locked .buoy-badge { background: #b9cbd8; }

@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.09); } }

.buoy-info { flex: 1; min-width: 0; }
.buoy-info h4 { font-size: 18px; }
.buoy-info p { margin: 2px 0 0; font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.buoy-stars { display: flex; gap: 2px; flex: none; }
.buoy-stars svg { width: 20px; height: 20px; }

/* ============ Lekcija ============ */
.lesson-top { margin-bottom: 12px; }
.lesson-top .back-btn { margin-bottom: 8px; padding: 7px 14px; }
.lesson-name {
  font-family: var(--font-display); font-size: 22px; font-weight: 800; color: #fff;
  text-shadow: 0 2px 0 var(--sea-2); margin-bottom: 8px;
}

.traka-napretka {
  height: 8px; background: rgba(255, 255, 255, .45); border-radius: 999px; overflow: hidden;
  margin-bottom: 10px;
}
.traka-napretka span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--sunce), #ffe98a);
  border-radius: 999px; transition: width .45s cubic-bezier(.25, .9, .3, 1);
}

.step-dots { display: flex; gap: 6px; }
.dot {
  flex: 1; text-align: center; padding: 7px 4px; border-radius: 14px;
  background: rgba(255, 255, 255, .55); color: var(--ink-soft);
  font-size: 12px; font-weight: 800;
}
.dot b { display: block; font-family: var(--font-display); font-size: 16px; }
.dot.active { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.dot.done { background: rgba(47, 162, 110, .85); color: #fff; }

.lesson-card {
  background: var(--card); border-radius: var(--radius);
  padding: 18px 16px; box-shadow: var(--shadow-lift);
  min-height: 220px;
}

.pitanje-vrh { display: flex; align-items: flex-start; gap: 8px; }
.step-title { font-size: 23px; flex: 1; margin-bottom: 8px; }
.citaj-btn {
  flex: none; width: 40px; height: 40px; border-radius: 12px;
  border: 3px solid rgba(14, 94, 138, .14); background: #f4fbff; color: var(--sea-2);
  cursor: pointer; display: grid; place-items: center; padding: 0;
}
.citaj-btn svg { width: 22px; height: 22px; }
.citaj-btn:active { transform: translateY(2px); }

.step-text { font-size: 17px; font-weight: 600; line-height: 1.45; margin-bottom: 14px; }
.veliki-broj { font-family: var(--font-display); font-size: 30px; color: var(--sea-2); }

.pomoc-red { display: flex; justify-content: center; margin-top: 10px; min-height: 0; }
.mala-btn {
  border: 3px solid rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .85);
  color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 15px;
  padding: 8px 16px; border-radius: 999px; cursor: pointer;
}
.mala-btn:active { transform: translateY(2px); }
.mala-btn:disabled { opacity: .5; cursor: default; }

.lesson-bottom {
  display: flex; align-items: flex-end; gap: 12px; margin-top: 16px;
}
.mascot { display: flex; align-items: flex-end; gap: 8px; flex: 1; min-width: 0; }
.mascot-osmica { width: 58px; flex: none; }
.mascot-osmica .osmica { width: 100%; height: auto; display: block; animation: bob 4s ease-in-out infinite; }

.bubble {
  background: #fff; border-radius: 16px; padding: 10px 13px;
  font-size: 14px; font-weight: 700; line-height: 1.35;
  box-shadow: var(--shadow); position: relative; flex: 1; min-width: 0;
}
.bubble::before {
  content: ""; position: absolute; left: -8px; bottom: 14px;
  border: 8px solid transparent; border-right-color: #fff;
}
.bubble.happy { background: #eefbf4; box-shadow: 0 6px 0 rgba(31, 122, 80, .2); }
.bubble.happy::before { border-right-color: #eefbf4; }
.bubble.oops { background: #fff2ee; box-shadow: 0 6px 0 rgba(217, 79, 48, .2); }
.bubble.oops::before { border-right-color: #fff2ee; }

.big-btn {
  flex: none; border: none; cursor: pointer;
  font-family: var(--font-display); font-size: 19px; font-weight: 800; color: #fff;
  background: var(--sea-2); padding: 14px 24px; border-radius: 18px;
  box-shadow: 0 5px 0 var(--sea-deep); min-height: 52px;
}
.big-btn.green { background: var(--bor); box-shadow: 0 5px 0 var(--bor-dark); }
.big-btn:active { transform: translateY(4px); box-shadow: none; }
.big-btn:disabled { opacity: .55; cursor: default; transform: none; }

/* ============ Odgovori ============ */
.mc-options { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.mc-opt {
  border: 3px solid rgba(14, 94, 138, .16); background: #f7fcff;
  border-radius: 16px; padding: 14px 16px; cursor: pointer;
  font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--ink);
  min-height: 56px; transition: transform .1s;
}
.mc-opt:active { transform: scale(.98); }
.mc-opt.picked { border-color: var(--sea-2); background: #e3f4fd; }
.mc-opt.right { border-color: var(--bor-dark); background: #dcf5e8; color: var(--bor-dark); }
.mc-opt.wrong { border-color: var(--coral-dark); background: #ffe9e3; color: var(--coral-dark); animation: shake .4s; }
.mc-opt:disabled { cursor: default; opacity: .8; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.num-input {
  width: 84px; height: 60px; text-align: center;
  font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--ink);
  border: 3px solid rgba(14, 94, 138, .2); border-radius: 14px; background: #f7fcff;
}
.num-input:focus { outline: none; border-color: var(--sea-2); background: #fff; }
.num-input.wrong { border-color: var(--coral-dark); background: #ffe9e3; animation: shake .4s; }
.num-input.right { border-color: var(--bor-dark); background: #dcf5e8; }

.input-row {
  display: flex; gap: 8px; justify-content: center; align-items: center;
  flex-wrap: wrap; margin-top: 14px;
}
.polje-oznaka { font-family: var(--font-display); font-size: 18px; font-weight: 800; color: var(--ink-soft); }
.polje-razmak { width: 10px; }

.seq-row {
  display: flex; gap: 8px; justify-content: center; align-items: center;
  flex-wrap: wrap; margin-top: 14px;
}
.seq-num {
  min-width: 62px; height: 60px; display: grid; place-items: center;
  background: #eaf6fd; border-radius: 14px;
  font-family: var(--font-display); font-size: 24px; font-weight: 800; color: var(--sea-2);
  padding: 0 8px;
}
.seq-row .num-input { width: 72px; }

.red-traka {
  min-height: 54px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  background: #f2f9fd; border: 3px dashed rgba(14, 94, 138, .22);
  border-radius: 16px; padding: 8px; margin-bottom: 12px;
}
.red-cip {
  background: var(--sea-2); color: #fff; border-radius: 10px; padding: 6px 12px;
  font-family: var(--font-display); font-weight: 800; font-size: 18px;
}
.red-prazno { color: var(--ink-soft); font-weight: 700; font-size: 14px; padding: 0 6px; }
.red-opcije { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.red-opt { flex: 1 1 96px; min-width: 96px; }
.red-opt.uzeto { opacity: .35; }
.red-alati { display: flex; justify-content: center; margin-top: 12px; }
.trese { animation: shake .4s; }

.tap-mreza { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 12px; }
.tap-plocica {
  min-width: 78px; min-height: 62px; padding: 10px 14px;
  border: 3px solid rgba(14, 94, 138, .16); background: #f7fcff; border-radius: 16px;
  font-family: var(--font-display); font-size: 24px; font-weight: 800; color: var(--ink);
  cursor: pointer;
}
.tap-plocica.picked { background: var(--sunce); border-color: var(--sunce-dark); }
.tap-plocica.right { background: #dcf5e8; border-color: var(--bor-dark); color: var(--bor-dark); }
.tap-plocica.wrong { background: #ffe9e3; border-color: var(--coral-dark); animation: shake .4s; }

/* ============ Vizualni elementi zadataka ============ */
.playfield {
  background: linear-gradient(180deg, #f2fbff, #e6f6ff);
  border-radius: 18px; padding: 14px; margin: 12px 0;
  border: 3px solid rgba(14, 94, 138, .08);
}

.viz-plaza, .viz-red {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center;
  min-height: 50px;
}
.viz-plaza svg { width: 34px; height: 32px; }
.viz-sredina { display: flex; justify-content: center; }
.viz-krug { width: 160px; height: 160px; }
.viz-sat { width: 165px; height: 165px; }

.viz-vreca {
  width: 54px; height: 62px; border-radius: 10px 10px 18px 18px;
  background: linear-gradient(180deg, #d8a56b, #b57d43);
  display: grid; place-items: center; color: #fff;
  font-family: var(--font-display); font-size: 22px; font-weight: 800;
  border: 3px solid #96662f;
}

.viz-traka {
  display: flex; gap: 3px; width: 100%; max-width: 340px; margin: 0 auto;
  height: 46px; background: #fff; border: 3px solid var(--coral-dark);
  border-radius: 12px; padding: 3px; overflow: hidden;
}
.viz-traka span { flex: 1; border-radius: 6px; background: #fffdf8; }
.viz-traka span.pun { background: #ff8a5c; }
.viz-traka.dvoboja span.pun.drugi { background: var(--sea-1); }

.viz-mreza {
  display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px;
  width: 200px; margin: 0 auto;
}
.viz-mreza span { aspect-ratio: 1; background: #fff; border-radius: 2px; }
.viz-mreza span.pun { background: #ff8a5c; }

.viz-grupe, .omjer-host { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.grupa {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
  max-width: 46%; background: rgba(255, 255, 255, .7);
  border-radius: 14px; padding: 10px;
}
.tocka {
  width: 22px; height: 22px; border-radius: 50%; display: inline-block;
  background: var(--sea-1); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12);
}
.tocka.crvena { background: var(--coral); }
.tocka.plava { background: var(--sea-1); }
.tocka.zuta { background: var(--sunce); }

.usporedba {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  font-family: var(--font-display); font-size: 40px; font-weight: 800; color: var(--sea-2);
  margin: 8px 0 4px;
}
.usporedba .znak { color: var(--coral); font-size: 32px; }

.racun {
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  font-family: var(--font-display); font-size: 30px; font-weight: 800; color: var(--sea-2);
  margin: 6px 0 12px;
}
.racun span { color: var(--coral); }

.frac { display: inline-flex; flex-direction: column; align-items: center; vertical-align: middle; line-height: 1; }
.frac-a { border-bottom: 3px solid currentColor; padding: 0 6px 2px; }
.frac-b { padding: 2px 6px 0; }

.viz-par { display: grid; gap: 12px; margin-top: 10px; }

/* ============ Demonstracije ============ */
.shell-beach { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; min-height: 56px; }
.shell {
  width: 40px; height: 38px; border: none; background: none; padding: 0; cursor: pointer;
  transition: transform .12s;
}
.shell svg { width: 100%; height: 100%; display: block; }
.shell:hover { transform: scale(1.14) rotate(-5deg); }
.shell:active { transform: scale(.9); }

.basket {
  margin: 12px auto 0; min-height: 76px; max-width: 340px;
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-content: flex-start;
  background: linear-gradient(180deg, #e8bf85, #c99450);
  border: 4px solid #a6752f; border-radius: 12px 12px 26px 26px; padding: 10px;
}

.count-display {
  text-align: center; font-family: var(--font-display); font-size: 40px; font-weight: 800;
  color: var(--sea-2); margin-top: 10px;
}
.count-word { text-align: center; font-weight: 800; color: var(--ink-soft); min-height: 22px; }

.bags-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
.bag {
  width: 74px; min-height: 84px; border-radius: 10px 10px 20px 20px;
  background: linear-gradient(180deg, #e8c69a, #c99450);
  border: 4px solid #a6752f; padding: 5px; text-align: center;
  font-weight: 800; font-size: 11px; color: #6b4420;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.bag.full { background: linear-gradient(180deg, #ffd98a, var(--sunce)); border-color: var(--sunce-dark); }
.bag-fill { display: flex; flex-wrap: wrap; gap: 1px; justify-content: center; flex: 1; align-content: flex-end; }
.mini-skoljka { width: 12px; height: 12px; display: block; }
.mini-skoljka svg { width: 100%; height: 100%; display: block; }

.numline { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; margin: 10px 0; }
.tick {
  min-width: 44px; height: 52px; display: grid; place-items: center;
  background: #fff; border-radius: 12px;
  font-family: var(--font-display); font-size: 19px; font-weight: 800; color: var(--ink-soft);
  border: 3px solid rgba(14, 94, 138, .1);
}
.tick.here {
  background: var(--coral); color: #fff; border-color: var(--coral-dark);
  transform: scale(1.12);
}
.numline-controls { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }

.machine { display: flex; gap: 10px; justify-content: center; }
.machine-col {
  background: #fff; border-radius: 16px; padding: 8px 6px; text-align: center;
  border: 3px solid rgba(14, 94, 138, .12); min-width: 92px;
}
.col-label { font-size: 10px; font-weight: 800; color: var(--ink-soft); letter-spacing: .6px; }
.col-digit {
  font-family: var(--font-display); font-size: 40px; font-weight: 800; line-height: 1.05;
  color: var(--sea-2);
}
.machine-col button {
  width: 100%; border: none; background: #eaf6fd; color: var(--sea-2);
  border-radius: 8px; font-size: 15px; cursor: pointer; padding: 5px 0; margin: 2px 0;
}
.machine-col button:active { background: var(--sea-1); color: #fff; }
.c-sto { border-color: rgba(255, 107, 74, .4); }
.c-des { border-color: rgba(255, 210, 63, .55); }
.c-jed { border-color: rgba(47, 162, 110, .4); }
.machine-total {
  text-align: center; font-family: var(--font-display); font-size: 46px; font-weight: 800;
  color: var(--coral); margin-top: 10px;
}
.machine-read { text-align: center; font-weight: 800; color: var(--ink-soft); min-height: 22px; }
.machine-read b { color: var(--sea-2); }

.stepper-red { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 14px; }
.stepper {
  display: flex; align-items: center; gap: 6px; background: #fff;
  border: 3px solid rgba(14, 94, 138, .12); border-radius: 14px; padding: 5px 8px;
}
.st-oznaka { font-size: 11px; font-weight: 800; color: var(--ink-soft); text-transform: uppercase; }
.st-btn {
  width: 38px; height: 38px; border: none; border-radius: 10px; background: #eaf6fd;
  color: var(--sea-2); font-size: 22px; font-weight: 800; cursor: pointer; line-height: 1;
}
.st-btn:active { background: var(--sea-1); color: #fff; }
.st-vrij {
  min-width: 38px; text-align: center;
  font-family: var(--font-display); font-size: 24px; font-weight: 800; color: var(--sea-2);
}

.ishod {
  text-align: center; font-weight: 800; font-size: 16px; margin-top: 12px;
  background: #fff; border-radius: 14px; padding: 10px 12px;
}
.ishod .dobro { color: var(--bor-dark); }
.ishod .lose { color: var(--coral-dark); }
.ishod .crveni { color: var(--coral); }
.ishod .plavi { color: var(--sea-2); }

.vaga { display: flex; align-items: center; justify-content: center; gap: 10px; }
.vaga-strana { flex: 1; text-align: center; }
.vaga-hrpa {
  display: flex; flex-wrap: wrap; gap: 5px; justify-content: center;
  background: rgba(255, 255, 255, .7); border-radius: 14px; padding: 10px; min-height: 60px;
}
.vaga-broj { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--sea-2); }
.vaga-znak {
  font-family: var(--font-display); font-size: 48px; font-weight: 800; color: var(--coral);
  flex: none; width: 54px; text-align: center;
}
.vaga-znak.jednako { color: var(--bor); }

.parovi { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.par {
  display: flex; gap: 3px; background: rgba(255, 255, 255, .8);
  border-radius: 10px; padding: 6px; border: 3px solid transparent;
}
.par svg { width: 26px; height: 25px; }
.par.sam { border-color: var(--coral); background: #ffeee9; }

.hrpe { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.hrpa {
  display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; align-content: center;
  background: rgba(255, 255, 255, .8); border-radius: 14px; padding: 10px;
  min-width: 66px; min-height: 60px; border: 3px solid transparent; position: relative;
}
.hrpa svg { width: 26px; height: 20px; }
.hrpa.ostatak { border-color: var(--coral); background: #ffeee9; }
.hrpa.istaknuta { border-color: var(--bor); background: #e9f9f1; }
.hrpa-lbl {
  position: absolute; bottom: -9px; left: 50%; transform: translateX(-50%);
  font-size: 10px; font-weight: 800; color: var(--coral-dark);
  background: #fff; padding: 1px 6px; border-radius: 999px;
}

.pravokutnici { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.pravokutnik { background: rgba(255, 255, 255, .8); border-radius: 12px; padding: 8px; text-align: center; }
.pr-mreza { display: grid; gap: 3px; justify-content: center; }
.pr-mreza .tocka { width: 14px; height: 14px; }
.pr-lbl { font-size: 12px; font-weight: 800; color: var(--ink-soft); margin-top: 5px; }

.ravnalo {
  height: 40px; background: repeating-linear-gradient(90deg, #fff 0 9%, #dceefa 9% 10%);
  border-radius: 10px; border: 3px solid rgba(14, 94, 138, .12); overflow: hidden;
  display: flex; align-items: center;
}
.uze {
  height: 14px; background: linear-gradient(180deg, #d8a56b, #a6752f);
  border-radius: 999px; transition: width .3s; min-width: 4px;
}

.tas {
  min-height: 70px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
  align-items: flex-end; padding: 10px;
  background: rgba(255, 255, 255, .75); border-radius: 12px 12px 26px 26px;
  border-bottom: 6px solid var(--sea-2);
  transform: translateY(var(--nagib, 0));
  transition: transform .3s;
}
.utezi { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.uteg {
  border: 3px solid #8b9aa8; background: #cfd9e2; color: var(--ink);
  border-radius: 8px 8px 12px 12px; padding: 10px 14px; cursor: pointer;
  font-family: var(--font-display); font-weight: 800; font-size: 15px;
}
.uteg:active { transform: translateY(2px); }
.uteg-mali {
  background: #cfd9e2; border: 2px solid #8b9aa8; border-radius: 5px;
  padding: 3px 7px; font-size: 11px; font-weight: 800;
}

.bacva {
  width: 120px; height: 160px; margin: 0 auto; position: relative;
  background: rgba(255, 255, 255, .8); border: 4px solid #a6752f;
  border-radius: 12px 12px 20px 20px; overflow: hidden;
}
.bacva-voda {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(180deg, #7fd4f5, var(--sea-2));
  transition: height .35s cubic-bezier(.25, .9, .3, 1);
}
.bacva-crte { position: absolute; inset: 0; }
.bacva-crte span {
  position: absolute; left: 0; right: 0; height: 2px; background: rgba(14, 94, 138, .22);
}

.sat-host { display: flex; justify-content: center; }

.krug-host { display: flex; justify-content: center; }
.krug-host svg { width: 170px; height: 170px; }

.par-traka { display: grid; gap: 14px; }
.pt-oznaka {
  text-align: center; font-family: var(--font-display); font-size: 26px; font-weight: 800;
  color: var(--sea-2); margin-bottom: 4px;
}

.traka-host { display: flex; justify-content: center; }
.veliki-ispis {
  text-align: center; font-family: var(--font-display); font-size: 46px; font-weight: 800;
  color: var(--coral); margin-top: 10px;
}

.dec-pravac { padding: 10px 0; }
.dp-linija {
  display: flex; justify-content: space-between; align-items: flex-start;
  border-top: 4px solid var(--sea-2); padding-top: 0;
}
.dp-tocka { flex: 1; text-align: center; position: relative; }
.dp-tocka i {
  display: block; width: 3px; height: 12px; background: var(--sea-2); margin: 0 auto;
}
.dp-tocka em {
  display: block; font-style: normal; font-size: 11px; font-weight: 800; color: var(--ink-soft);
}
.dp-tocka.a i, .dp-tocka.b i { width: 16px; height: 16px; border-radius: 50%; margin-top: -6px; }
.dp-tocka.a i { background: var(--coral); }
.dp-tocka.b i { background: var(--sea-2); }

.racun-stupci {
  font-family: var(--font-display); font-size: 34px; font-weight: 800; color: var(--sea-2);
  display: inline-block; text-align: right; background: #fff; padding: 12px 20px; border-radius: 14px;
}
.stupci-host { display: flex; justify-content: center; }
.rs-red { display: flex; justify-content: space-between; gap: 16px; }
.rs-znak { color: var(--coral); }
.rs-crta { border-bottom: 4px solid var(--ink); margin: 5px 0; }
.rs-zbroj { color: var(--coral); }

.novcanik {
  min-height: 64px; display: flex; flex-wrap: wrap; gap: 5px; justify-content: center;
  align-content: flex-start; background: rgba(255, 255, 255, .75);
  border-radius: 12px 12px 22px 22px; padding: 10px; border: 3px solid #c99450;
}
.kovanice { display: flex; gap: 7px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.kovanica {
  width: 52px; height: 52px; border-radius: 50%; border: 3px solid var(--sunce-dark);
  background: radial-gradient(circle at 35% 30%, #ffe98a, var(--sunce));
  font-family: var(--font-display); font-weight: 800; font-size: 13px; color: #7a5a00;
  cursor: pointer;
}
.kovanica.euro { border-color: #9aa5ad; background: radial-gradient(circle at 35% 30%, #fff, #cfd9e2); color: var(--ink); }
.kovanica:active { transform: translateY(2px); }
.kovanica-mala {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #ffe98a, var(--sunce));
  border: 2px solid var(--sunce-dark); font-size: 9px; font-weight: 800; color: #7a5a00;
}
.kovanica-mala.euro { background: radial-gradient(circle at 35% 30%, #fff, #cfd9e2); border-color: #9aa5ad; color: var(--ink); }

.recept { background: rgba(255, 255, 255, .8); border-radius: 14px; padding: 12px; }
.recept-vrh {
  font-family: var(--font-display); font-size: 20px; font-weight: 800; color: var(--sea-2);
  text-align: center; margin-bottom: 8px;
}
.recept-red { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 2px dashed rgba(14, 94, 138, .14); }
.recept-broj {
  font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--coral);
  min-width: 42px; text-align: right;
}
.recept-ime { font-weight: 800; flex: 1; }
.recept-slika { display: flex; gap: 2px; flex-wrap: wrap; max-width: 45%; }
.recept-slika svg { width: 22px; height: 16px; }

.cijene { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.cijena-kom { text-align: center; background: rgba(255, 255, 255, .8); border-radius: 12px; padding: 8px; }
.cijena-kom svg { width: 34px; height: 32px; }
.cijena-kom span { display: block; font-family: var(--font-display); font-weight: 800; color: var(--bor-dark); }

.blago { display: flex; gap: 12px; justify-content: center; }
.blago-strana { flex: 1; text-align: center; background: rgba(255, 255, 255, .8); border-radius: 14px; padding: 10px; }
.bs-lbl { font-weight: 800; color: var(--ink-soft); font-size: 13px; }
.bs-hrpa { display: flex; flex-wrap: wrap; gap: 3px; justify-content: center; margin: 6px 0; min-height: 40px; }
.bs-hrpa svg { width: 22px; height: 21px; }
.bs-broj { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--sea-2); }

.zbroj-host { display: flex; justify-content: center; }

/* ============ Ribolov ============ */
.rib-vrh {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: rgba(255, 250, 240, .9); border-radius: var(--radius);
  padding: 10px 14px; margin-bottom: 10px; box-shadow: var(--shadow);
}
.rib-vrh .back-btn { margin: 0; padding: 7px 13px; }
.rib-stat { text-align: center; font-family: var(--font-display); font-size: 24px; font-weight: 800; color: var(--sea-2); }
.rib-lbl { display: block; font-family: var(--font-body); font-size: 10px; color: var(--ink-soft); letter-spacing: .5px; text-transform: uppercase; }
.rib-zivoti { display: flex; gap: 4px; margin-left: auto; }
.zivot { width: 24px; height: 30px; color: var(--sea-2); }
.zivot svg { width: 100%; height: 100%; }
.zivot.potrosen { color: #c3d3de; }
.rib-niz { flex-basis: 100%; text-align: center; min-height: 20px; }
.kombo {
  display: inline-block; background: var(--sunce); color: #6b4b00;
  border-radius: 999px; padding: 2px 12px; font-weight: 800; font-size: 13px;
  animation: pulse 1.2s ease-in-out infinite;
}

.rib-kanta {
  display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; min-height: 34px;
  margin-bottom: 8px;
}
.ulovljena { width: 30px; height: 22px; animation: uklizi .35s ease; }
.ulovljena svg { width: 100%; height: 100%; }

/* ============ Dnevni izazov ============ */
.dan-vrh { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.dan-vrh .back-btn { margin: 0; padding: 7px 13px; }
.dan-naslov {
  flex: 1; font-family: var(--font-display); font-size: 23px; font-weight: 800; color: #fff;
  text-shadow: 0 2px 0 var(--sea-2);
}
.dan-brojac {
  background: #fff; border-radius: 999px; padding: 5px 14px;
  font-family: var(--font-display); font-weight: 800; color: var(--sea-2);
}
.dan-napredak { display: flex; gap: 6px; justify-content: center; margin-bottom: 12px; }
.tocka-nap {
  width: 14px; height: 14px; border-radius: 50%; background: rgba(255, 255, 255, .55);
}
.tocka-nap.gotovo { background: var(--bor); }
.tocka-nap.sad { background: var(--sunce); transform: scale(1.3); }

/* ============ Greben ============ */
.greben-vrh { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.greben-vrh .back-btn { margin: 0; }
.greben-vrh h2 { flex: 1; font-size: 24px; color: #fff; text-shadow: 0 2px 0 var(--sea-2); }
.greben-brojac {
  background: #fff; border-radius: 999px; padding: 5px 14px;
  font-family: var(--font-display); font-weight: 800; color: var(--ljubicasta);
}

.greben-scena {
  position: relative; width: 100%; aspect-ratio: 4 / 3; max-height: 420px;
  border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, #2aa3d6 0%, #1b7fb4 45%, var(--sea-night) 100%);
  box-shadow: var(--shadow-lift);
}
.more-svjetlo {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, .14) 0 6%, transparent 7% 18%),
    linear-gradient(80deg, rgba(255, 255, 255, .1) 0 5%, transparent 6% 24%);
}
.greben-dno {
  position: absolute; left: 0; right: 0; bottom: 0; height: 22%;
  background: linear-gradient(180deg, var(--sand-dark), #c9a35d);
  border-radius: 50% 50% 0 0 / 26% 26% 0 0;
}
.greben-stvar {
  position: absolute; transform: translate(-50%, -50%);
}
.greben-stvar svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .25)); }
.greben-stvar.pliva { animation: pliva 7s ease-in-out infinite; }
.greben-stvar.njise { animation: njise 4s ease-in-out infinite; }

@keyframes pliva {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(calc(-50% + 22px), calc(-50% - 8px)); }
}
@keyframes njise {
  0%, 100% { transform: translate(-50%, -50%) rotate(-5deg); }
  50% { transform: translate(-50%, calc(-50% - 8px)) rotate(5deg); }
}

.greben-osmica { position: absolute; left: 50%; bottom: 4%; width: 22%; transform: translateX(-50%); }
.greben-osmica .osmica { width: 100%; height: auto; animation: bob 5s ease-in-out infinite; }

.greben-prazno {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center;
  color: #fff; font-weight: 800; padding: 20px; text-shadow: 0 2px 6px rgba(0, 0, 0, .4);
}
.greben-prazno .sitno { color: #d8f2ff; }

.greben-mascot { margin: 12px 0; }

.greben-tabs { display: flex; gap: 8px; margin: 14px 0 10px; }
.greben-tab {
  flex: 1; border: none; background: rgba(255, 255, 255, .6); border-radius: 14px;
  padding: 11px 6px; cursor: pointer;
  font-family: var(--font-display); font-size: 16px; font-weight: 800; color: var(--ink-soft);
}
.greben-tab.active { background: #fff; color: var(--ink); box-shadow: var(--shadow); }

.greben-panel { background: var(--card); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.polica { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }

.artikl {
  background: #f7fcff; border: 3px solid rgba(14, 94, 138, .1);
  border-radius: 16px; padding: 10px; text-align: center;
  display: flex; flex-direction: column; gap: 6px; align-items: center;
}
.artikl.imam { background: #eefbf4; border-color: rgba(47, 162, 110, .35); }
.artikl.sljedeci { border-color: var(--sunce); box-shadow: 0 0 0 4px rgba(255, 210, 63, .28); }
.artikl-slika { height: 56px; display: grid; place-items: center; width: 100%; }
.artikl-slika svg { max-width: 100%; max-height: 56px; }
.artikl-slika.mala-osmica { height: 66px; }
.artikl-slika.mala-osmica .osmica { height: 66px; width: auto; }
.artikl-ime { font-size: 13px; font-weight: 800; line-height: 1.25; }
.artikl-imam { font-size: 12px; font-weight: 800; color: var(--bor-dark); }

.kupi-btn, .nosi-btn {
  border: none; border-radius: 12px; cursor: pointer; width: 100%;
  font-family: var(--font-display); font-size: 16px; font-weight: 800; color: #fff;
  background: var(--sea-2); padding: 9px 8px; box-shadow: 0 3px 0 var(--sea-deep);
  display: flex; align-items: center; justify-content: center; gap: 5px;
}
.kupi-btn svg { width: 20px; height: 19px; }
.kupi-btn:active, .nosi-btn:active { transform: translateY(2px); box-shadow: none; }
.kupi-btn:disabled { background: #c3d3de; box-shadow: 0 3px 0 #a9bcc9; cursor: default; }
.nosi-btn { background: var(--bor); box-shadow: 0 3px 0 var(--bor-dark); }
.nosi-btn.nosi { background: var(--sunce); color: #6b4b00; box-shadow: 0 3px 0 var(--sunce-dark); }

.ormar-vrh { display: grid; place-items: center; margin-bottom: 12px; }
.ormar-vrh .osmica { width: 120px; height: auto; animation: bob 4s ease-in-out infinite; }

.skrinja-panel { text-align: center; }
.skrinja-slika { width: 120px; margin: 0 auto 8px; }
.skrinja-slika svg { width: 100%; height: auto; animation: bob 3s ease-in-out infinite; }
.skrinja-panel h4 { font-size: 22px; margin-bottom: 6px; }
.skrinja-panel .big-btn { margin-top: 10px; display: inline-flex; align-items: center; gap: 7px; }
.skrinja-panel .big-btn svg { width: 22px; height: 21px; }

/* ============ Modali ============ */
#modal-wrap {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10, 60, 90, .62);
  display: grid; place-items: center; padding: 18px;
  backdrop-filter: blur(3px);
}
.modal {
  background: var(--card); border-radius: 26px; padding: 22px 20px;
  max-width: 420px; width: 100%; text-align: center;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .3);
  animation: pop-in .32s cubic-bezier(.3, 1.5, .5, 1);
  max-height: 90vh; overflow-y: auto;
}

@keyframes pop-in { from { transform: scale(.86); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.modal h3 { font-size: 26px; margin-bottom: 10px; color: var(--sea-2); }
.modal-slika { width: 130px; margin: 0 auto 10px; }
.modal-slika svg { width: 100%; height: auto; }
.modal-slika.dar svg { animation: pop-in .5s cubic-bezier(.3, 1.6, .5, 1); }
.dar-ime { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--coral); }

.big-stars { display: flex; gap: 8px; justify-content: center; margin: 6px 0 12px; }
.big-stars svg { width: 46px; height: 44px; animation: pop-in .4s backwards; }
.big-stars svg:nth-child(2) { animation-delay: .14s; }
.big-stars svg:nth-child(3) { animation-delay: .28s; }

.uspjesi { list-style: none; padding: 0; margin: 0 0 12px; text-align: left; display: inline-block; }
.uspjesi li { font-weight: 800; color: #b9c8d3; padding: 3px 0; font-size: 15px; }
.uspjesi li.ok { color: var(--bor-dark); }

.reward-line {
  font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--sunce-dark);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.reward-line svg { width: 28px; height: 27px; }
.veliki-rezultat {
  font-family: var(--font-display); font-size: 34px; font-weight: 800; color: var(--sea-2);
}
.otok-gotov { background: #fff6d8; border-radius: 14px; padding: 10px; margin-top: 12px; }

.modal-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.modal-btns .big-btn { flex: 1 1 auto; }

.niz-poruka {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #fff2ee; border-radius: 14px; padding: 8px 12px; margin-top: 12px;
  font-weight: 700; font-size: 14px;
}
.niz-poruka svg { width: 26px; height: 30px; flex: none; }

.kalendar { display: flex; gap: 5px; justify-content: center; margin-top: 12px; }
.kal-dan {
  width: 38px; border-radius: 12px; padding: 5px 2px; background: #f0f6fa; text-align: center;
}
.kal-dan.bio { background: #eefbf4; }
.kal-dan.danas { outline: 3px solid var(--sunce); }
.kal-slovo { display: block; font-size: 10px; font-weight: 800; color: var(--ink-soft); }
.kal-tocka { display: block; height: 22px; }
.kal-tocka svg { width: 20px; height: 19px; }

.ime-polje {
  display: block; margin: 14px 0 4px; font-weight: 800; font-size: 15px; color: var(--ink-soft);
}
.ime-polje input {
  display: block; width: 100%; margin-top: 6px; height: 54px; text-align: center;
  font-family: var(--font-display); font-size: 24px; font-weight: 800; color: var(--ink);
  border: 3px solid rgba(14, 94, 138, .2); border-radius: 14px; background: #f7fcff;
}
.ime-polje input:focus { outline: none; border-color: var(--sea-2); background: #fff; }

/* ============ Efekti ============ */
#confetti-layer { position: fixed; inset: 0; pointer-events: none; z-index: 200; overflow: hidden; }
.confetto {
  position: absolute; top: -8vh; width: 26px; height: 26px; display: block;
  animation: pada linear forwards;
}
.confetto svg { width: 100%; height: 100%; }

@keyframes pada {
  to { transform: translateY(115vh) rotate(var(--vrt, 360deg)); opacity: .1; }
}

.duh { position: fixed; z-index: 190; pointer-events: none; }
.duh svg { width: 100%; height: 100%; }

.iskra {
  position: fixed; width: 10px; height: 10px; border-radius: 50%;
  pointer-events: none; z-index: 190;
}

#pozadinski-mjehurici {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}
.mjehur {
  position: absolute; bottom: -6%; display: block; opacity: .5;
  animation: dize linear infinite;
}
.mjehur svg { width: 100%; height: auto; }

@keyframes dize {
  from { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: .55; }
  to { transform: translateY(-108vh) translateX(24px); opacity: 0; }
}

/* ============ Prilagodbe ============ */
@media (max-width: 420px) {
  .screen { padding: 12px 12px 40px; }
  .map-title h1 { font-size: 31px; }
  .lesson-card { padding: 15px 12px; }
  .island-emoji { width: 68px; }
  .big-btn { font-size: 17px; padding: 13px 18px; }
  .mascot-osmica { width: 48px; }
  .machine-col { min-width: 76px; }
  .col-digit { font-size: 34px; }
  .polica { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

:focus-visible { outline: 4px solid var(--sunce); outline-offset: 2px; }
