/* ROKO GOVORKO - stilovi (tablet prvo) */
@font-face { font-family: 'Nunito'; font-weight: 400; font-display: swap; src: url(../fonts/nunito-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: 'Nunito'; font-weight: 400; font-display: swap; src: url(../fonts/nunito-latin-400-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: 'Nunito'; font-weight: 700; font-display: swap; src: url(../fonts/nunito-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: 'Nunito'; font-weight: 700; font-display: swap; src: url(../fonts/nunito-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: 'Nunito'; font-weight: 800; font-display: swap; src: url(../fonts/nunito-latin-ext-800-normal.woff2) format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: 'Nunito'; font-weight: 800; font-display: swap; src: url(../fonts/nunito-latin-800-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: 'Nunito'; font-weight: 900; font-display: swap; src: url(../fonts/nunito-latin-ext-900-normal.woff2) format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: 'Nunito'; font-weight: 900; font-display: swap; src: url(../fonts/nunito-latin-900-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; }

:root {
  --bg: #EEF3FA;
  --surface: #FFFDF7;
  --ink: #1D2B4F;
  --muted: #56627F;
  --line: #D5DEEC;
  --brand: #2456A6;
  --sun: #F2B705;
  --go: #2E9E5B;
  --danger: #C93743;
  --profile: #2F7FD8;
  --r-lg: 22px;
  --r-md: 14px;
  --card: 132px;
  --pic: 64px;
  --emoji-font: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
  color-scheme: light;
}
body[data-size="s"] { --card: 104px; --pic: 48px; }
body[data-size="l"] { --card: 176px; --pic: 92px; }

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: 'Nunito', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.45;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 4px solid var(--sun); outline-offset: 2px; }
[hidden] { display: none !important; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: .88rem; }
.hint.block { display: block; margin-left: 2rem; }
.emoji { font-family: var(--emoji-font); line-height: 1; }
.loading { display: grid; place-items: center; height: 100vh; font-weight: 800; color: var(--muted); }

/* ---------- Gumbi ---------- */
.btn {
  border: 2px solid var(--line); background: var(--surface); border-radius: 999px;
  padding: .6rem 1.15rem; font-weight: 800; min-height: 48px;
}
.btn:hover { border-color: var(--brand); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.ghost { background: transparent; }
.btn.small { min-height: 40px; padding: .35rem .9rem; font-size: .95rem; }
.btn.big { min-height: 58px; font-size: 1.15rem; padding: .7rem 1.6rem; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.recording { background: var(--danger); border-color: var(--danger); color: #fff; animation: pulse 1s infinite; }
.icon-btn { border: 0; background: transparent; width: 44px; height: 44px; border-radius: 50%; font-size: 1.1rem; }
.icon-btn:hover:not(:disabled) { background: rgba(36, 86, 166, .1); }
.icon-btn:disabled { opacity: .3; }
.icon-btn.big { width: 56px; height: 56px; font-size: 1.6rem; font-family: var(--emoji-font); }
.link { border: 0; background: none; text-decoration: underline; font-weight: 800; color: inherit; }
.pill {
  display: inline-flex; align-items: center; gap: .35rem;
  border: 0; border-radius: 999px; padding: .55rem 1.1rem; min-height: 48px;
  background: var(--surface); font-weight: 800; box-shadow: 0 1px 0 var(--line);
}
.pill.ghost { background: transparent; box-shadow: inset 0 0 0 2px var(--line); }

/* ---------- Gornja traka ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .6rem max(1rem, env(safe-area-inset-left)) .4rem;
}
.brand { display: flex; align-items: center; gap: .5rem; font-weight: 900; letter-spacing: .02em; color: var(--brand); font-size: 1.15rem; }
.who { display: flex; align-items: center; gap: .55rem; border: 0; background: transparent; font-weight: 800; font-size: 1.05rem; padding: .25rem .6rem .25rem .25rem; border-radius: 999px; min-height: 48px; }
.who:hover { background: rgba(255, 255, 255, .7); }
.avatar { font-family: var(--emoji-font); display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--surface); font-size: 46px; box-shadow: inset 0 0 0 5px var(--c, var(--profile)); }
.avatar.sm { width: 44px; height: 44px; font-size: 24px; box-shadow: inset 0 0 0 3px var(--profile); }
.top-actions { display: flex; gap: .5rem; }

/* ---------- Ploča ---------- */
.board { display: grid; grid-template-rows: auto auto auto auto 1fr; height: 100dvh; }
.voice-banner {
  margin: 0 1rem .4rem; padding: .55rem .9rem; border-radius: var(--r-md);
  background: #FFF4CC; border: 2px solid #E9CF6B; display: flex; gap: 1rem; justify-content: space-between; align-items: center; font-size: .95rem;
}

/* Traka rečenice: glavni element sučelja */
.tray {
  margin: 0 1rem; padding: .7rem .7rem .7rem 1rem;
  background: var(--surface); border-radius: var(--r-lg);
  display: grid; grid-template-columns: 1fr auto; gap: .8rem; align-items: center;
  box-shadow: 0 0 0 3px var(--line);
  transition: box-shadow .2s;
}
.tray.speaking { box-shadow: 0 0 0 4px var(--go); }
.tray-main { min-width: 0; }
.strip-cards { display: flex; gap: .45rem; overflow-x: auto; min-height: 78px; align-items: center; padding-bottom: 2px; scrollbar-width: thin; }
.strip-hint { color: var(--muted); font-weight: 700; padding-left: .2rem; }
.mini {
  flex: 0 0 auto; display: grid; justify-items: center; gap: 2px; width: 72px; padding: .3rem .2rem .45rem;
  border: 0; border-radius: 12px; background: #fff; font-weight: 800; font-size: .78rem;
  box-shadow: inset 0 -5px 0 var(--band), 0 0 0 2px var(--line);
  animation: drop .18s ease-out;
}
.mini.on { box-shadow: inset 0 -5px 0 var(--band), 0 0 0 4px var(--sun); }
.mini span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-pic { width: 38px; height: 38px; object-fit: cover; border-radius: 8px; font-size: 32px; display: grid; place-items: center; }
.sentence-line {
  margin: .35rem 0 0; min-height: 1.2em;
  font-weight: 900; font-size: clamp(1.7rem, 3.6vw, 3rem); line-height: 1.15; letter-spacing: -.01em;
}
.sentence-line .w { border-radius: .25em; padding: 0 .08em; transition: background .12s; }
.sentence-line .w.on { background: var(--sun); }
.tray-actions { display: flex; gap: .45rem; align-items: center; }
.tray-btn { width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--bg); font-size: 1.5rem; font-weight: 900; }
.tray-btn:hover { background: var(--line); }
.play {
  width: 92px; height: 92px; border-radius: 50%; border: 0; background: var(--go); color: #fff;
  font-size: 2.6rem; box-shadow: 0 6px 0 #1F7A43; transition: transform .08s, box-shadow .08s;
}
.play:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 2px 0 #1F7A43; }
.play:disabled { background: #A9C9B6; box-shadow: 0 6px 0 #8AAE98; }

/* Kategorije */
.tabs { display: flex; gap: .5rem; overflow-x: auto; padding: .8rem 1rem .5rem; scrollbar-width: none; }
.tab {
  flex: 0 0 auto; display: flex; align-items: center; gap: .45rem; min-height: 56px;
  border: 0; border-radius: 16px; padding: .4rem 1rem .4rem .6rem; font-weight: 800; font-size: 1.02rem;
  background: var(--surface); box-shadow: inset 0 0 0 2px var(--line);
}
.tab-emoji { font-family: var(--emoji-font); font-size: 1.6rem; }
.tab.active { background: var(--c); color: #fff; box-shadow: none; text-shadow: 0 1px 1px rgba(0, 0, 0, .25); }

/* Mreža kartica */
.grid {
  overflow-y: auto; padding: .4rem 1rem 1.5rem; display: grid; align-content: start;
  grid-template-columns: repeat(auto-fill, minmax(var(--card), 1fr)); gap: .75rem;
}
.card {
  position: relative; border: 0; border-radius: 18px; background: var(--surface); aspect-ratio: 1 / 1.08;
  display: grid; grid-template-rows: 1fr auto; justify-items: center; align-items: center; padding: .6rem .4rem .85rem;
  box-shadow: inset 0 -9px 0 var(--band), 0 0 0 2px var(--line);
  touch-action: manipulation; user-select: none;
}
.card:hover { box-shadow: inset 0 -9px 0 var(--band), 0 0 0 3px var(--band); }
.card-pic { width: 100%; height: 100%; max-height: calc(var(--card) * .62); object-fit: contain; border-radius: 10px; }
.card-pic.emoji { display: grid; place-items: center; font-size: var(--pic); }
.card-label { font-weight: 800; font-size: clamp(.95rem, calc(var(--card) / 8), 1.35rem); line-height: 1.1; text-align: center; padding: 0 .2rem; overflow-wrap: anywhere; }
.card-label::first-letter { text-transform: uppercase; }
.rec-dot { position: absolute; top: 10px; right: 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--danger); }
.card.pop { animation: pop .22s ease-out; }
.grid.needs { grid-template-columns: repeat(auto-fill, minmax(calc(var(--card) * 1.35), 1fr)); }
.grid.needs .card { aspect-ratio: 1.35 / 1; }
.empty { padding: 2rem; text-align: center; color: var(--muted); grid-column: 1 / -1; }

/* Vizualna rezerva bez zvuka */
.big-word {
  position: fixed; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 50;
  font-size: clamp(3rem, 10vw, 8rem); font-weight: 900; color: var(--ink); text-align: center; padding: 1rem;
  background: rgba(238, 243, 250, .72); transition: opacity .45s;
}
.big-word.out { opacity: 0; }

/* ---------- Profili i prvo pokretanje ---------- */
.profiles, .setup { min-height: 100dvh; display: grid; place-items: center; align-content: center; gap: 2rem; padding: 2rem 1rem; }
.brand-big { display: flex; align-items: center; gap: .8rem; color: var(--brand); }
.brand-big h1 { margin: 0; font-weight: 900; font-size: clamp(2rem, 5vw, 3.2rem); }
.profile-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem; max-width: 900px; }
.profile-tile {
  border: 0; background: var(--surface); border-radius: 26px; width: 170px; padding: 1.3rem 1rem 1rem;
  display: grid; justify-items: center; gap: .7rem; font-weight: 900; font-size: 1.25rem; box-shadow: 0 0 0 2px var(--line);
}
.profile-tile:hover { box-shadow: 0 0 0 4px var(--c, var(--brand)); }
.profile-tile.add .avatar { box-shadow: inset 0 0 0 3px var(--line); color: var(--muted); font-family: inherit; }
.setup-card { background: var(--surface); border-radius: 28px; padding: 2rem clamp(1.2rem, 4vw, 2.6rem); max-width: 620px; width: 100%; box-shadow: 0 0 0 2px var(--line); }
.setup-card .brand-big { margin-bottom: 1rem; }
.lead { font-size: 1.12rem; }
.error { color: var(--danger); font-weight: 700; min-height: 1.2em; }

/* ---------- Obrasci ---------- */
.form { display: grid; gap: .9rem; }
.field { display: grid; gap: .3rem; min-width: 0; flex: 1 1 160px; }
.field-label { font-weight: 800; font-size: .95rem; }
.input {
  width: 100%; min-height: 48px; border: 2px solid var(--line); border-radius: 12px; padding: .5rem .75rem; background: #fff;
}
.input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(36, 86, 166, .2); }
.input.big { font-size: 1.4rem; letter-spacing: .3em; text-align: center; }
.input.inline { width: auto; min-height: 42px; }
.input.color { padding: 4px; height: 48px; }
.emoji-input { font-family: var(--emoji-font); font-size: 1.4rem; max-width: 120px; }
.row { display: flex; gap: .8rem; align-items: end; }
.row.wrap { flex-wrap: wrap; }
.check { display: flex; align-items: center; gap: .4rem; font-weight: 700; min-height: 44px; flex-wrap: wrap; }
.check input { width: 24px; height: 24px; accent-color: var(--brand); }
.check.big { padding: .3rem 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.choice { width: 52px; height: 52px; border-radius: 14px; border: 2px solid var(--line); background: #fff; font-family: var(--emoji-font); font-size: 1.6rem; }
.choice.on { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(36, 86, 166, .25); }
.swatch { width: 44px; height: 44px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--line); }
.swatch.on { box-shadow: 0 0 0 3px var(--ink); }
.swatch.sm { display: inline-block; width: 16px; height: 16px; vertical-align: -2px; margin-right: .5rem; border: 0; }
.seg { display: inline-flex; border-radius: 999px; background: var(--bg); padding: 4px; gap: 4px; }
.seg-btn { border: 0; background: transparent; border-radius: 999px; padding: .45rem 1.1rem; font-weight: 800; min-height: 44px; }
.seg-btn.on { background: var(--brand); color: #fff; }
.range { width: 100%; accent-color: var(--brand); }

/* ---------- Modal ---------- */
.overlay { position: fixed; inset: 0; background: rgba(29, 43, 79, .45); display: grid; place-items: center; padding: 1rem; z-index: 40; animation: fade .15s; }
.modal { background: var(--surface); border-radius: 24px; width: min(520px, 100%); max-height: calc(100dvh - 2rem); display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(29, 43, 79, .3); }
.modal.wide { width: min(980px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1rem .4rem 1.4rem; }
.modal-head h2 { margin: 0; font-size: 1.35rem; }
.modal-body { padding: .4rem 1.4rem 1rem; overflow-y: auto; }
.modal-actions { display: flex; gap: .6rem; justify-content: flex-end; padding: .8rem 1.4rem 1.2rem; border-top: 2px solid var(--bg); flex-wrap: wrap; }
.modal-actions .left { margin-right: auto; }

/* PIN */
.pin-wrap { display: grid; justify-items: center; gap: .6rem; }
.pin-dots { display: flex; gap: .7rem; padding: .5rem; }
.pin-dots .dot { width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--ink); }
.pin-dots .dot.opt { border-style: dashed; opacity: .45; }
.pin-dots .dot.on { background: var(--ink); opacity: 1; }
.pin-dots.shake { animation: shake .35s; }
.pin-msg { margin: 0; color: var(--muted); min-height: 1.4em; text-align: center; }
.pin-pad { display: grid; grid-template-columns: repeat(3, 76px); gap: .6rem; }
.pin-key { height: 72px; border-radius: 20px; border: 0; background: var(--bg); font-size: 1.8rem; font-weight: 900; }
.pin-key:active { background: var(--line); }
.pin-key.ok { background: var(--go); color: #fff; }
.pin-key.muted { color: var(--muted); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 1.2rem; transform: translate(-50%, 150%); visibility: hidden; background: var(--ink); color: #fff; padding: .75rem 1.3rem; border-radius: 14px; font-weight: 700; z-index: 60; max-width: min(92vw, 620px); transition: transform .25s; }
.toast.show { transform: translate(-50%, 0); visibility: visible; }
.toast.ok { background: #1F7A43; }
.toast.error { background: var(--danger); }

/* ---------- Roditeljski dio ---------- */
.admin { display: grid; grid-template-rows: auto 1fr; height: 100dvh; background: #F6F8FC; }
.admin-top { background: var(--surface); border-bottom: 2px solid var(--line); padding-bottom: .6rem; }
.admin-who { display: flex; align-items: center; gap: .5rem; }
.admin-body { display: grid; grid-template-columns: 230px 1fr; min-height: 0; }
.admin-nav { display: flex; flex-direction: column; gap: .2rem; padding: 1rem .6rem; overflow-y: auto; border-right: 2px solid var(--line); }
.nav-item { display: flex; gap: .6rem; align-items: center; border: 0; background: transparent; padding: .65rem .8rem; border-radius: 12px; font-weight: 800; text-align: left; min-height: 48px; }
.nav-item span:first-child { font-family: var(--emoji-font); }
.nav-item.active { background: var(--brand); color: #fff; }
.nav-item:hover:not(.active) { background: var(--bg); }
.admin-content { overflow-y: auto; padding: 1.2rem clamp(1rem, 3vw, 2rem) 3rem; max-width: 1000px; }
.panel { background: var(--surface); border-radius: 18px; padding: 1.2rem 1.4rem; margin-bottom: 1rem; box-shadow: 0 0 0 2px var(--line); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .6rem; }
.panel-head h2 { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .6rem 0 1rem; }
.chip { border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: .3rem .8rem; font-weight: 700; min-height: 40px; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.card-group h3 { margin: 1.2rem 0 .5rem; }
.card-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.card-row { display: flex; align-items: center; gap: .8rem; background: var(--surface); border-radius: 14px; padding: .4rem .6rem; box-shadow: 0 0 0 2px var(--line); }
.card-row.is-hidden { opacity: .55; }
.thumb { width: 52px; height: 52px; border-radius: 12px; background: #fff; display: grid; place-items: center; box-shadow: inset 0 -5px 0 var(--band), 0 0 0 2px var(--line); overflow: hidden; flex: 0 0 auto; }
.thumb-pic { width: 40px; height: 40px; object-fit: cover; font-size: 30px; display: grid; place-items: center; }
.row-text { flex: 1; display: grid; min-width: 0; }
.row-text small { color: var(--muted); }
.row-actions { display: flex; gap: .2rem; align-items: center; }
.legend summary { cursor: pointer; font-weight: 700; color: var(--muted); }
.legend ul { list-style: none; padding: .4rem 0; margin: 0; display: grid; gap: .2rem; }
.status { padding: .6rem .9rem; border-radius: 12px; font-weight: 700; }
.status.ok { background: #E2F4E9; }
.status.warn { background: #FFF4CC; }
.status.bad { background: #FBE3E5; }
.help-list { padding-left: 1.2rem; display: grid; gap: .5rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.btn-col { display: grid; gap: .5rem; align-content: start; }

/* Uređivač kartice */
.editor { display: grid; grid-template-columns: 250px 1fr; gap: 1.4rem; }
.editor-media { display: grid; gap: .8rem; align-content: start; grid-template-columns: 1fr; }
.pic-box { width: 100%; max-width: 210px; justify-self: center; aspect-ratio: 1; border-radius: 18px; background: #fff; box-shadow: 0 0 0 2px var(--line); display: grid; place-items: center; overflow: hidden; }
.pic-box img { width: 100%; height: 100%; object-fit: contain; }
.big-pic { font-size: 120px; width: 100%; height: 100%; object-fit: contain; display: grid; place-items: center; }
.audio-box { display: grid; gap: .4rem; padding: .8rem; border-radius: 14px; background: var(--bg); }
.editor-fields { display: grid; gap: .8rem; align-content: start; }
.editor-fields h3 { margin: .4rem 0 0; }
.grammar { display: grid; gap: .6rem; padding: .8rem; border-radius: 14px; background: var(--bg); }
.grammar details summary { cursor: pointer; font-weight: 700; padding: .3rem 0; }
.example { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; min-height: 2rem; }
.example .ex { background: #FFF4CC; border-radius: 10px; padding: .2rem .6rem; font-weight: 800; }

/* ---------- Igra ---------- */
.game { display: grid; grid-template-rows: auto auto 1fr; height: 100dvh; }
.game-prompt { display: flex; justify-content: center; align-items: center; gap: .6rem; font-size: clamp(1.8rem, 4.5vw, 3.2rem); font-weight: 900; margin: .6rem 1rem; text-align: center; }
.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 260px)); gap: 1.2rem; justify-content: center; align-content: center; padding: 1rem; }
.game-card { --card: 220px; --pic: 110px; }
.game-card.right { box-shadow: inset 0 -9px 0 var(--go), 0 0 0 6px var(--go); animation: pop .3s; }
.game-card.wrong { animation: shake .35s; }
.stars { font-family: var(--emoji-font); font-size: 1.4rem; min-width: 80px; text-align: right; }

/* Visoki kontrast */
body.hc { --bg: #FFFFFF; --surface: #FFFFFF; --line: #1D2B4F; --muted: #1D2B4F; }
body.hc .card { box-shadow: inset 0 -10px 0 var(--band), 0 0 0 3px #000; }

/* ---------- Animacije ---------- */
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(.94); } 100% { transform: scale(1); } }
@keyframes drop { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
@keyframes pulse { 50% { opacity: .7; } }
@keyframes fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Manji ekrani ---------- */
@media (max-width: 820px) {
  .admin-body { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .admin-nav { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 2px solid var(--line); padding: .5rem; }
  .nav-item { flex: 0 0 auto; }
  .editor { grid-template-columns: 1fr; }
  .editor-media { grid-template-columns: 160px 1fr; }
  .editor-media .audio-box { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --card: 98px; --pic: 46px; }
  .brand span, .who > span:last-child { display: none; }
  .strip-cards { min-height: 56px; }
  .voice-banner { font-size: .85rem; margin: 0 .5rem .4rem; }
  .pill { padding: .5rem .8rem; }
  .tray { grid-template-columns: 1fr; margin: 0 .5rem; }
  .tray-actions { justify-content: flex-end; }
  .play { width: 72px; height: 72px; font-size: 2rem; }
  .grid { padding: .4rem .5rem 1rem; gap: .5rem; }
  .tabs { padding: .6rem .5rem .4rem; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row { flex-wrap: wrap; }
}
