/* Rekvizit 2026 – stilovi aplikacije (tokeni u tokens.css; izvor: DIZAJN.md, mockupi/src/*.py) */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--font-ui); font-size: var(--fs-base); line-height: var(--lh-base);
  -webkit-font-smoothing: antialiased; min-height: 100vh; min-height: 100dvh;
  transition: background-color 150ms, color 150ms;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) { body { transition: none; } }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: var(--primary-text); text-decoration: none; }
h1, h2, h3, p { margin: 0; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--primary-text); outline-offset: 2px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--text-muted); }
.hidden { display: none !important; }

/* ---------- okvir aplikacije: mobile-first, > 600 px centrirano 480 ---------- */
#app { position: relative; max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; }
@media (min-width: 601px) {
  #app { box-shadow: 0 0 0 1px var(--line); }
}
.screen { padding-bottom: calc(var(--h-nav) + 16px + env(safe-area-inset-bottom)); animation: screenIn var(--dur-base) var(--ease-out); }
.screen.no-nav { padding-bottom: 24px; }
@keyframes screenIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .screen { animation: fadeIn 120ms linear; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- logo ---------- */
.logo { display: inline-block; line-height: 0; }
.logo img { width: 100%; height: auto; display: block; }
.logo .logo-l { display: none; }
[data-theme="light"] .logo .logo-l { display: block; }
[data-theme="light"] .logo .logo-d { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .logo .logo-l { display: block; }
  :root:not([data-theme]) .logo .logo-d { display: none; }
}

/* ---------- osnovne komponente ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); }
.h { font-family: var(--font-display); font-weight: 400; letter-spacing: -.01em; }
.num { font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: var(--r-chip); background: var(--surface-2); font-weight: 700; font-size: 13px; min-height: 32px; }
.chip-turbo { background: var(--turbo); color: var(--turbo-ink); }
.tag { display: inline-block; font-size: var(--fs-xs); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: var(--r-tag); white-space: nowrap; line-height: 1.3; }
.tag-red { background: color-mix(in srgb, var(--red) 16%, transparent); color: var(--red); }
.tag-blue { background: color-mix(in srgb, var(--primary) 16%, transparent); color: var(--primary-text); }
.tag-green { background: color-mix(in srgb, var(--success) 16%, transparent); color: var(--success); }
.tag-grey { background: color-mix(in srgb, var(--text-muted) 18%, transparent); color: var(--text); }
.tag-amber { background: color-mix(in srgb, var(--turbo) 22%, transparent); color: var(--text); }
.tag-host { background: var(--primary); color: #fff; font-size: 9px; padding: 1px 5px; }

.av { display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 50%; color: #fff; font-weight: 800; overflow: hidden; line-height: 1; }
.av-img img { width: 100%; height: 100%; object-fit: cover; }
.badge { display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 50%;
  background: var(--grad-primary); box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--turbo); line-height: 1; }
.badge .lv-img { width: 70%; height: 70%; object-fit: contain; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--h-btn); padding: 0 20px;
  border-radius: var(--r-btn); background: var(--grad-primary); color: var(--on-primary); font-weight: 800; font-size: 16px;
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast); position: relative; text-align: center; }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled, .btn.disabled { opacity: .4; cursor: not-allowed; }
.btn-block { display: flex; width: 100%; }
.btn-turbo { background: var(--turbo); color: var(--turbo-ink); }
.btn-ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.btn-red { background: var(--grad-red); color: #fff; }
.btn-sm { min-height: var(--touch-min); font-size: 14px; padding: 0 14px; border-radius: 12px; }
.btn.loading { color: transparent !important; }
.btn.loading::after { content: ''; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 3px solid rgba(255,255,255,.45);
  border-top-color: #fff; animation: spin .8s linear infinite; }
.btn-turbo.loading::after { border-color: rgba(14,26,43,.3); border-top-color: var(--turbo-ink); }
@keyframes spin { to { transform: rotate(360deg); } }
.link-btn { color: var(--primary-text); font-weight: 700; min-height: var(--touch-min); padding: 0 6px; display: inline-flex; align-items: center; }

.input { width: 100%; height: var(--h-input); border-radius: var(--r-input); background: var(--surface); border: 2px solid var(--line);
  padding: 0 12px; font-size: 16px; outline: none; transition: border-color var(--dur-fast); }
.input:focus { border-color: var(--primary); }

.seg { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 12px; }
.seg button { flex: 1; min-height: 38px; font-size: 13px; font-weight: 700; border-radius: 9px; color: var(--text-muted); padding: 0 8px; white-space: nowrap; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

.skel { background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite; border-radius: 14px; border: 1px solid var(--line); }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } }

.live { display: inline-flex; align-items: center; gap: 5px; color: var(--red); font-weight: 800; font-size: 12px; }
.live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(255,22,43,.2); }

.bar { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar > div { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--primary), var(--primary-2)); transition: width var(--dur-slow) var(--ease-out); }

/* ---------- donja navigacija ---------- */
.nav { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 480px; z-index: 20;
  height: calc(var(--h-nav) + env(safe-area-inset-bottom)); padding: 8px 12px calc(14px + env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--line); display: flex; justify-content: space-around; }
.nav-it { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 600;
  color: var(--text-muted); min-height: var(--touch-min); }
.nav-it i { font-style: normal; font-size: 20px; line-height: 24px; }
.nav-it.on { color: var(--primary-text); }

/* ---------- zaglavlja ekrana ---------- */
.ph { display: flex; align-items: center; gap: 8px; padding: 14px 16px 10px; min-height: 56px; }
.ph-title { font-size: 20px; flex: 1; }
.back { font-size: 32px; line-height: 1; color: var(--text-muted); min-width: var(--touch-min); min-height: var(--touch-min); display: inline-flex; align-items: center; justify-content: center; margin-left: -10px; }
.icon-btn { min-width: var(--touch-min); min-height: var(--touch-min); display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; font-size: 20px; color: var(--text-muted); }
.section-h { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px 8px; }
.section-h .h { font-size: 17px; }

/* ---------- toast ---------- */
#toast-root { position: fixed; left: 50%; transform: translateX(-50%); top: calc(10px + env(safe-area-inset-top)); width: calc(100% - 24px); max-width: 456px;
  z-index: 100; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow); font-weight: 600; font-size: 14px; opacity: 0; transform: translateY(-10px);
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-spring); }
.toast.in { opacity: 1; transform: none; }
.toast.out { opacity: 0; transform: translateY(-10px); }
.toast-ic { font-size: 18px; }
.toast-tx { flex: 1; }
.toast-btn { font-weight: 800; color: var(--primary-text); min-height: 36px; padding: 0 8px; }
.toast-error { border-color: color-mix(in srgb, var(--error) 60%, transparent); }
.toast-error .toast-ic { color: var(--error); font-weight: 900; }
.toast-turbo { background: var(--turbo); color: var(--turbo-ink); border-color: transparent; }
.toast-success { border-color: color-mix(in srgb, var(--success) 60%, transparent); }

/* ---------- bottom sheet & modal ---------- */
.sheet-wrap, .modal-wrap { position: fixed; inset: 0; z-index: 60; }
.scrim { position: absolute; inset: 0; background: var(--scrim); opacity: 0; transition: opacity var(--dur-base); }
.sheet-wrap.open .scrim, .modal-wrap.open .scrim { opacity: 1; }
.sheet { position: absolute; left: 50%; bottom: 0; width: 100%; max-width: 480px; max-height: 92vh; max-height: 92dvh; overflow-y: auto;
  background: var(--surface); border-radius: var(--r-sheet) var(--r-sheet) 0 0; border-top: 1px solid var(--line);
  padding: 10px 20px calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 100%);
  transition: transform 300ms var(--ease-spring); overscroll-behavior: contain; }
.sheet-wrap.open .sheet { transform: translate(-50%, 0); }
.sheet-wrap.closing .sheet { transform: translate(-50%, 100%); transition-timing-function: var(--ease-out); transition-duration: 220ms; }
@media (prefers-reduced-motion: reduce) { .sheet, .sheet-wrap.closing .sheet { transition: opacity 120ms linear; } .sheet { transform: translate(-50%, 0); opacity: 0; } .sheet-wrap.open .sheet { opacity: 1; } }
.grab { width: 42px; height: 5px; border-radius: 9px; background: var(--line); margin: 0 auto 10px; position: relative; z-index: 1; touch-action: none; cursor: grab; }
.grab::before { content: ''; position: absolute; inset: -14px -40px; }
.sheet-x { position: absolute; right: 8px; top: 6px; width: var(--touch-min); height: var(--touch-min); border-radius: 12px; color: var(--text-muted); font-size: 16px; z-index: 2; }
.sheet-body { position: relative; }
.sheet-title { font-size: 22px; margin: 4px 0 6px; }

.modal-wrap { display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { position: relative; width: 100%; max-width: 380px; padding: 22px 20px 18px; text-align: center; opacity: 0; transform: scale(.92);
  transition: opacity var(--dur-base), transform var(--dur-base) var(--ease-spring); }
.modal-wrap.open .modal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .modal { transform: none; } }
.modal-title { font-size: 22px; margin-bottom: 8px; }
.modal-text { color: var(--text-muted); font-weight: 500; margin-bottom: 16px; }
.modal-actions { display: flex; gap: 10px; }
.modal-actions .btn { flex: 1; }

/* ---------- splash / login ---------- */
.splash { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; text-align: center; }
.splash .logo { width: 230px; }
.slogan { font-family: var(--font-slogan); font-size: 22px; color: var(--text-muted); margin-top: -8px; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 4px solid var(--surface-2); border-top-color: var(--primary); animation: spin .8s linear infinite; }
.login-card { width: 100%; max-width: 360px; padding: 18px; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.login-card label { font-size: 13px; font-weight: 700; color: var(--text-muted); }
.err-text { color: var(--error); font-size: 13px; font-weight: 600; }
.err-text::before { content: '✕ '; font-weight: 900; }
.mock-pill { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px;
  border-radius: 6px; background: color-mix(in srgb, var(--turbo) 22%, transparent); color: var(--text); }

/* ================= 01 LOBBY ================= */
.top { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 12px; gap: 10px; }
.top .logo { width: 150px; }
.top-l { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.mecard { display: flex; gap: 8px; align-items: center; background: var(--surface); border: 1px solid var(--line); padding: 5px 12px 5px 6px; border-radius: 999px; min-height: var(--touch-min); color: var(--text); max-width: 60%; }
.mecard .mn { font-weight: 800; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mecard .ml { font-size: 11px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.mecard > div { min-width: 0; }
.wallet { display: flex; gap: 8px; padding: 0 16px; }
.w { flex: 1; display: flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; color: var(--text); min-height: var(--touch-min); min-width: 0; }
.w b { font-size: 17px; }
.w small { font-size: 11px; color: var(--text-muted); font-weight: 600; line-height: 1.1; }
.w-turbo { background: var(--turbo); border-color: transparent; color: var(--turbo-ink); }
.w-turbo small { color: var(--turbo-ink); opacity: .75; }
.modes { display: flex; gap: 10px; padding: 14px 16px 6px; }
.mode { flex: 1; border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 8px; color: #fff; min-height: 104px; text-align: left;
  transition: transform var(--dur-fast); box-shadow: var(--shadow); }
.mode:active { transform: scale(.98); }
.m1 { background: linear-gradient(160deg, var(--primary), var(--primary-2)); }
.m2 { background: linear-gradient(160deg, var(--red), var(--red-2)); }
.mode .mi { font-size: 24px; line-height: 1.1; }
.mode .mt { font-size: 18px; }
.mode .ms { font-size: 12px; opacity: .92; font-weight: 500; }
.abcd { display: grid; grid-template-columns: repeat(4, 22px); gap: 3px; }
.abcd b { background: rgba(255,255,255,.22); border-radius: 5px; font-size: 12px; text-align: center; line-height: 22px; }
.rooms { padding: 0 16px; display: flex; flex-direction: column; gap: 7px; }
.room { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 7px 12px 7px 8px;
  width: 100%; text-align: left; min-height: 60px; transition: transform var(--dur-fast), border-color var(--dur-fast); }
.room:active:not(.dis) { transform: scale(.99); }
.room.cur { border-color: var(--primary); box-shadow: 0 0 0 2px var(--glow); }
.room.dis { opacity: .62; }
.room.first { border-color: color-mix(in srgb, var(--turbo) 70%, transparent); }
.room .ri { flex: 1; min-width: 0; }
.room .rn { font-weight: 800; font-size: 15px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.room .rd { font-size: 12px; margin-top: 1px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room .ro { display: flex; flex-direction: column; align-items: flex-end; min-width: 44px; }
.room .ro .num { font-size: 16px; }
.room .ro .on { font-size: 10px; font-weight: 700; color: var(--success); }
.room .ro .full { font-size: 11px; font-weight: 800; color: var(--error); }
.room .lock { font-size: 18px; }
.room-skel { height: 60px; }
.reserve-note { font-size: 11px; color: var(--text-muted); font-weight: 600; }
.conn-banner { margin: 8px 16px 0; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--error) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--error) 40%, transparent);
  font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: space-between; gap: 8px; }

/* ================= 02 SOBA UŽIVO ================= */
.room-screen { display: flex; flex-direction: column; height: var(--app-h, 100vh); height: var(--app-h, 100dvh); overflow: hidden; }
.rh { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 4px; flex: none; }
.rh .rt { flex: 1; min-width: 0; }
.rh .rt .h { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rh .sub { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.rh .sub .onl { color: var(--success); }
.tch { background: var(--turbo); color: var(--turbo-ink); min-height: var(--touch-min); padding: 0 12px; }
.tch.flash { animation: chipFlash 600ms var(--ease-out); }
@keyframes chipFlash { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--turbo) 80%, transparent); } 100% { box-shadow: 0 0 0 14px transparent; } }
.connbar { flex: none; margin: 0 14px 6px; padding: 7px 12px; border-radius: 10px; background: var(--surface-2); font-size: 12px; font-weight: 700; color: var(--text-muted);
  display: flex; align-items: center; gap: 8px; }
.connbar .spin-s { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--primary); animation: spin .8s linear infinite; }
.connbar.warn { background: color-mix(in srgb, var(--turbo) 18%, var(--surface)); color: var(--text); }
.connbar.err { background: color-mix(in srgb, var(--error) 14%, var(--surface)); color: var(--text); }
.connbar button { margin-left: auto; color: var(--primary-text); font-weight: 800; min-height: 32px; }

.strip { display: flex; gap: 6px; padding: 0 14px 10px; overflow-x: auto; flex: none; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.pl { display: flex; gap: 6px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px 3px 3px; flex: none;
  min-height: 34px; transition: box-shadow var(--dur-base), border-color var(--dur-base); }
.pl.me { border-color: var(--primary); box-shadow: 0 0 0 2px var(--glow); }
.pl.turbo { border-color: var(--turbo); box-shadow: 0 0 0 2px color-mix(in srgb, var(--turbo) 45%, transparent); }
.pl.glow-ok { animation: okGlow 900ms var(--ease-out); }
@keyframes okGlow { 0%, 60% { border-color: var(--success); box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 40%, transparent); } }
.pl .pn { font-size: 11px; font-weight: 700; line-height: 1.1; white-space: nowrap; }
.pl .pp { font-size: 12px; line-height: 1.1; color: var(--primary-text); }
.pl .ok { color: var(--success); font-weight: 900; font-size: 12px; }

.qcard { margin: 0 14px; padding: 14px; flex: none; position: relative; overflow: hidden; transition: border-color var(--dur-base), transform var(--dur-base); }
.qcard.turbo { border: 2px solid var(--turbo); box-shadow: 0 0 0 3px color-mix(in srgb, var(--turbo) 25%, transparent), var(--shadow); }
.qcard .qtop { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.cat { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--chip-bg); color: var(--primary-text); white-space: nowrap; }
.qmeta { font-size: 12px; font-weight: 600; color: var(--text-muted); text-align: right; }
.qmeta b { color: var(--text); }
.qt { font-family: var(--font-display); font-size: var(--fs-question); line-height: 1.22; word-wrap: break-word; }
.hintrow { display: flex; gap: 10px; align-items: center; margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--text-muted); flex-wrap: wrap; }
.hl { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 800; font-size: 15px; letter-spacing: .04em; color: var(--text);
  background: var(--surface-2); padding: 4px 10px; border-radius: 8px; white-space: pre-wrap; word-break: break-word; }
.hintrow.in .hl { animation: hintIn var(--dur-slow) var(--ease-out); }
@keyframes hintIn { from { opacity: 0; transform: translateY(-4px); } }
.hintrow.gold .hl { box-shadow: inset 0 0 0 2px var(--turbo); }
.timer { height: 8px; border-radius: 99px; background: var(--surface-2); margin-top: 12px; overflow: hidden; }
.timer > div { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--primary), var(--primary-2)); transition: width 120ms linear, background var(--dur-base); }
.qcard.turbo .timer > div { background: var(--turbo); }
.timer.danger > div { background: var(--error) !important; }
.tl { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; margin-top: 5px; color: var(--text-muted); }
.tsec { font-size: 14px; color: var(--primary-text); }
.tl.danger .tsec { color: var(--error); animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
@media (prefers-reduced-motion: reduce) { .tl.danger .tsec { animation: none; } }
.turbo-label { display: inline-flex; align-items: center; gap: 4px; background: var(--turbo); color: var(--turbo-ink); font-weight: 800; font-size: 11px; letter-spacing: .04em;
  padding: 3px 8px; border-radius: 6px; text-transform: uppercase; margin-bottom: 8px; }
.waiting { text-align: center; padding: 22px 6px; }
.waiting .h { font-size: 18px; opacity: .55; }
.waiting .sub { font-size: 13px; color: var(--text-muted); font-weight: 600; margin-top: 6px; }
.slow-ok { margin-top: 10px; font-weight: 800; font-size: 13px; color: var(--success); }
.slow-ok small { display: block; font-weight: 600; font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* Turbo najava */
.announce { text-align: center; padding: 10px 4px 6px; }
.announce .big { font-family: var(--font-display); font-size: 30px; line-height: 1.05; display: inline-block; }
.announce .big.pop { animation: annPop 450ms var(--ease-spring); }
@keyframes annPop { from { transform: scale(1.3); opacity: 0; } to { transform: none; opacity: 1; } }
.announce .who { margin-top: 8px; font-weight: 700; font-size: 14px; }
.announce .who b { color: var(--text); }
.announce .cd { margin-top: 6px; font-size: 13px; color: var(--text-muted); font-weight: 700; }
.flashsweep { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: inherit; }
.flashsweep::before { content: ''; position: absolute; top: -20%; bottom: -20%; width: 45%; left: -60%;
  background: linear-gradient(100deg, transparent, color-mix(in srgb, var(--turbo) 70%, transparent), transparent); transform: skewX(-20deg);
  animation: sweep 450ms var(--ease-out) forwards; }
@keyframes sweep { to { left: 120%; } }
@media (prefers-reduced-motion: reduce) { .flashsweep { display: none; } .announce .big.pop { animation: fadeIn 200ms; } }

/* 05 otkrivanje odgovora */
.rev { text-align: center; }
.rev.win::before { content: ''; position: absolute; left: 50%; top: 40px; width: 420px; height: 300px; transform: translateX(-50%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--success) 26%, transparent), transparent); pointer-events: none; }
.rev.turbo-win::before { background: radial-gradient(closest-side, color-mix(in srgb, var(--turbo) 34%, transparent), transparent); }
.rev > * { position: relative; }
.qcard.lift { animation: lift 450ms var(--ease-out); }
@keyframes lift { 0% { transform: none; } 30% { transform: translateY(-4px); } 45% { transform: translate(2px, -4px); } 55% { transform: translate(-2px, -4px); } 100% { transform: none; } }
.rev .qs { font-size: 14px; font-weight: 600; margin: 4px 6px 10px; color: var(--text-muted); }
.stamp { display: inline-block; font-family: var(--font-display); font-size: 15px; color: var(--success); border: 3px solid var(--success); border-radius: 10px;
  padding: 3px 12px; transform: rotate(-5deg); letter-spacing: .06em; }
.stamp.drop { animation: stampIn 260ms var(--ease-spring); }
@keyframes stampIn { from { transform: translateY(-30px) scale(1.4) rotate(-5deg); opacity: 0; } to { transform: rotate(-5deg); opacity: 1; } }
.ans { font-family: var(--font-display); font-size: var(--fs-answer-reveal); line-height: 1.08; margin: 8px 0 12px; word-break: break-word; }
.ans.long { font-size: 32px; }
.ans .ch { display: inline-block; opacity: 0; animation: chIn 200ms var(--ease-out) forwards; white-space: pre; }
@keyframes chIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ans.neutral { color: var(--text); }
@media (prefers-reduced-motion: reduce) { .ans .ch { animation: fadeIn 150ms forwards; } .stamp.drop, .qcard.lift { animation: none; } }
.winbox { display: flex; gap: 10px; align-items: center; text-align: left; background: var(--surface-2); border-radius: 14px; padding: 10px 12px; font-size: 14px; }
.winbox .sub { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.pts { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin: 12px 0 4px; }
.pts .num { font-size: var(--fs-points-big); line-height: 1; background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pts small { font-weight: 800; font-size: 16px; }
.mult { font-family: var(--font-display); font-size: 22px; margin-top: 10px; display: flex; justify-content: center; gap: 8px; align-items: baseline; }
.mult .x { display: inline-block; animation: slideX 300ms var(--ease-spring) both; animation-delay: 250ms; }
@keyframes slideX { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.mult .res { color: var(--turbo); font-size: 30px; text-shadow: 0 0 18px color-mix(in srgb, var(--turbo) 50%, transparent); }
[data-theme="light"] .mult .res { color: #B86E00; }
@media (prefers-color-scheme: light) { :root:not([data-theme]) .mult .res { color: #B86E00; } }
.lvrow { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; margin-top: 6px; color: var(--text-muted); }
.lvrow b { color: var(--text); }
.phrase { display: flex; gap: 8px; align-items: flex-end; text-align: left; margin-top: 12px; }
.phrase .bub { background: var(--chip-bg); border-radius: 16px 16px 16px 4px; padding: 8px 12px; transform-origin: bottom left; animation: bubIn 300ms var(--ease-spring); }
@keyframes bubIn { from { transform: scale(.8); opacity: 0; } }
.phrase .joke { font-family: var(--font-display); font-size: 17px; }
.phrase .host-av { animation: nod 500ms ease-in-out 1; }
@keyframes nod { 30% { transform: rotate(-10deg); } 60% { transform: rotate(6deg); } }
.awards { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; text-align: left; }
.awards .ar { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding: 3px 4px; border-radius: 8px; }
.awards .ar.me { background: var(--chip-bg); }
.awards .ar .nm { flex: 1; }
.awards .ar .t { color: var(--text-muted); font-size: 12px; }
.awards .ar .p { font-family: var(--font-display); color: var(--success); }
.nextcd { margin-top: 12px; height: 44px; border-radius: 14px; border: 1px dashed var(--line); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--text-muted); font-size: 14px; }
.nextcd b { color: var(--text); font-size: 18px; margin-left: 6px; }
.rev-compact .ans { font-size: 34px; margin: 6px 0 8px; }

/* chat */
.chat { flex: 1; min-height: 90px; overflow-y: auto; position: relative; padding: 10px 14px 6px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 28px); mask-image: linear-gradient(180deg, transparent 0, #000 28px); overscroll-behavior: contain; }
.chat-in { display: flex; flex-direction: column; gap: 7px; justify-content: flex-end; min-height: 100%; }
.msg { display: flex; gap: 8px; align-items: flex-end; animation: msgIn var(--dur-base) var(--ease-out); }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .msg { animation: fadeIn 120ms; } }
.bub { background: var(--surface); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 6px 10px; font-size: 14px; max-width: 80%; word-wrap: break-word; overflow-wrap: anywhere; }
.who { font-size: 11px; font-weight: 800; color: var(--text-muted); display: flex; gap: 6px; align-items: center; }
.msg.host .bub { background: var(--chip-bg); border-color: transparent; }
.msg.mine { flex-direction: row-reverse; }
.msg.mine .bub { border-radius: 14px 14px 4px 14px; background: color-mix(in srgb, var(--primary) 16%, var(--surface)); border-color: color-mix(in srgb, var(--primary) 40%, transparent); }
.msg.pending .bub { opacity: .7; }
.msg.okmsg .bub { border-color: var(--success); }
.msg .flag { font-size: 11px; font-weight: 700; margin-top: 2px; color: var(--text-muted); }
.msg.okmsg .flag { color: var(--success); }
.msg.private .bub { border: 1.5px solid var(--turbo); }
.msg.only .bub { border-style: dashed; }
.sys { align-self: center; text-align: center; font-size: 12px; font-weight: 600; color: var(--text-muted); max-width: 92%; padding: 2px 8px; animation: msgIn var(--dur-base) var(--ease-out); }
.sys.turbo { color: var(--text); background: color-mix(in srgb, var(--turbo) 20%, transparent); border-radius: 8px; padding: 4px 10px; }
.sys.ok { color: var(--success); }
.sys.levelUp { color: var(--text); background: var(--chip-bg); border-radius: 8px; padding: 4px 10px; }
.sys.warn { color: var(--text); background: color-mix(in srgb, var(--error) 14%, transparent); border-radius: 8px; padding: 4px 10px; }
.sys.warn::before { content: '✕ '; color: var(--error); font-weight: 900; }

/* traka za unos */
.inbar { flex: none; display: flex; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid color-mix(in srgb, var(--line) 50%, transparent); }
.turbo-b { width: 52px; height: var(--h-input); border-radius: 12px; background: var(--turbo); color: var(--turbo-ink); display: flex; flex-direction: column; align-items: center;
  justify-content: center; font-size: 17px; font-weight: 800; line-height: 1; flex: none; position: relative; transition: transform var(--dur-fast); }
.turbo-b small { font-size: 9px; margin-top: 2px; }
.turbo-b:active, .turbo-b.press { transform: scale(.96); }
.turbo-b.low { opacity: .45; }
.turbo-b .qpos { position: absolute; top: -6px; right: -6px; background: var(--red); color: #fff; font-size: 10px; border-radius: 99px; padding: 2px 5px; font-weight: 800; }
.inp-wrap { flex: 1; position: relative; min-width: 0; }
.inp-wrap .input { border-color: var(--primary); padding-right: 34px; }
.inp-wrap .ok-check { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--success); font-weight: 900; font-size: 18px; display: none; }
.inp-wrap.ok .ok-check { display: block; }
.inp-wrap.ok .input { border-color: var(--success); }
.inp-wrap.flash-ok .input { animation: flashOk 300ms; }
@keyframes flashOk { 0%, 50% { border-color: var(--success); box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 35%, transparent); } }
.inp-wrap.shake { animation: shake 300ms; }
@keyframes shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-6px); } }
@media (prefers-reduced-motion: reduce) { .inp-wrap.shake, .inp-wrap.flash-ok .input { animation: none; } }
.send { width: var(--h-input); height: var(--h-input); border-radius: 12px; background: var(--grad-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; flex: none; }
.send:disabled { opacity: .5; }

.term { text-align: center; padding: 26px 16px; }
.term .h { font-size: 20px; margin-bottom: 8px; }
.term p { color: var(--text-muted); margin-bottom: 16px; font-weight: 500; }
.term .btn { margin: 4px; }

/* ================= 03 TURBO SHEET ================= */
.turbo-sheet { text-align: center; overflow: hidden; }
.turbo-sheet::before { content: ''; position: absolute; left: 50%; top: -180px; width: 520px; height: 420px; transform: translateX(-50%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--turbo) 45%, transparent), transparent); pointer-events: none; }
.burst { position: relative; width: 84px; height: 84px; margin: 4px auto 8px; border-radius: 26px; background: var(--turbo); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--turbo) 25%, transparent), 0 12px 40px color-mix(in srgb, var(--turbo) 55%, transparent); transform: rotate(-6deg);
  animation: boltIn 600ms var(--ease-spring); }
.burst svg { transform: rotate(6deg); }
@keyframes boltIn { 0% { transform: rotate(-6deg) scale(.6); } 55% { transform: rotate(-6deg) scale(1.08); } 70% { transform: rotate(-10deg); } 85% { transform: rotate(-2deg); } 100% { transform: rotate(-6deg) scale(1); } }
.burst::after { content: ''; position: absolute; inset: -10px; border-radius: 32px; box-shadow: 0 0 0 0 color-mix(in srgb, var(--turbo) 60%, transparent); animation: glowPulse 900ms ease-out 1; }
@keyframes glowPulse { to { box-shadow: 0 0 0 22px transparent; } }
@media (prefers-reduced-motion: reduce) { .burst, .burst::after { animation: none; } }
.ts-title { font-size: 28px; letter-spacing: .01em; }
.ts-sub { font-size: 14px; margin: 4px 16px 14px; color: var(--text-muted); }
.ts-sub b { color: var(--text); }
.stake { display: flex; align-items: center; justify-content: center; gap: 22px; }
.pm { width: 52px; height: 52px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); font-size: 28px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.pm:disabled { opacity: .35; }
.stake .val { min-width: 110px; }
.stake .big { font-size: var(--fs-stake); line-height: 1; display: inline-block; }
.stake .big.up { animation: tickUp var(--dur-fast) var(--ease-out); }
.stake .big.down { animation: tickDown var(--dur-fast) var(--ease-out); }
@keyframes tickUp { from { transform: translateY(14px); opacity: .3; } }
@keyframes tickDown { from { transform: translateY(-14px); opacity: .3; } }
.stake .lbl { font-size: 12px; font-weight: 700; color: var(--text-muted); }
.pres { display: flex; gap: 8px; justify-content: center; margin: 14px 0; flex-wrap: wrap; }
.pr { min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--surface-2); font-weight: 800; font-size: 14px; border: 1px solid var(--line); }
.pr.on { background: var(--turbo); color: var(--turbo-ink); border-color: transparent; }
.pr:disabled { opacity: .4; }
.pr .lk { font-size: 11px; }
.outrows { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.orow { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); font-size: 14px; font-weight: 600; }
.orow .num { font-size: 14px; white-space: nowrap; }
.orow.me { background: color-mix(in srgb, var(--turbo) 18%, var(--surface)); border: 1px solid color-mix(in srgb, var(--turbo) 60%, transparent); }
.orow.me b { font-size: 18px; }
.orow small { display: block; font-size: 11px; color: var(--text-muted); font-weight: 600; }
.ts-go { margin-top: 16px; min-height: var(--h-btn-lg); font-size: 17px; box-shadow: 0 10px 28px color-mix(in srgb, var(--turbo) 40%, transparent); }
.ts-note { font-size: 12px; margin-top: 8px; font-weight: 600; color: var(--text-muted); }
.ts-charger { margin-top: 10px; padding: 10px 12px; border-radius: 12px; border: 1px dashed color-mix(in srgb, var(--turbo) 70%, transparent); font-size: 13px; font-weight: 600; text-align: left; display: flex; gap: 10px; align-items: center; }
.ts-charger .btn { margin-left: auto; flex: none; }
.ts-queue { margin-top: 10px; font-weight: 800; font-size: 13px; color: var(--text); background: color-mix(in srgb, var(--turbo) 20%, transparent); border-radius: 10px; padding: 8px; }

/* ================= 04 SOLO / ABCD ================= */
.solo-screen { min-height: var(--app-h, 100dvh); display: flex; flex-direction: column; }
.tb { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px 10px; }
.tb .h { font-size: 17px; }
.hearts { min-height: 36px; }
.hearts .hh { display: inline-block; }
.hearts .hh.lose { animation: heartLose 600ms var(--ease-out) forwards; }
@keyframes heartLose { 30% { transform: scale(1.2); } 100% { transform: scale(0); opacity: 0; } }
.score { display: flex; gap: 8px; padding: 0 16px; }
.sc { flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; min-width: 0; }
.sc .k { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.sc .v { font-size: 22px; line-height: 1.2; white-space: nowrap; }
.sc.streak { background: linear-gradient(160deg, var(--red), var(--red-2)); color: #fff; border: 0; }
.sc.streak .k { color: #fff; opacity: .9; }
.sc.streak small { font-size: 11px; font-weight: 700; opacity: .9; }
.sc.streak.flare .v { animation: flare 400ms var(--ease-spring); }
@keyframes flare { 50% { transform: scale(1.15); } }
.ring { position: relative; width: 132px; height: 132px; margin: 16px auto 10px; flex: none; }
.ring svg { display: block; }
.ring .arc { transition: stroke-dashoffset 120ms linear, stroke 200ms; }
.ring .rt { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring .rt .num { font-size: 40px; line-height: 1; }
.ring .rt small { font-size: 11px; font-weight: 700; color: var(--text-muted); }
.ring.danger .rt .num { color: var(--error); animation: pulse 1s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .ring.danger .rt .num { animation: none; } }
.sq { margin: 0 16px; padding: 16px; text-align: center; }
.sq .qt { font-size: var(--fs-question-solo); line-height: 1.2; margin-top: 10px; }
.ops { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.op { display: flex; align-items: center; gap: 12px; min-height: var(--h-option); border-radius: 14px; background: var(--surface); border: 2px solid var(--line); padding: 8px 14px;
  font-weight: 700; font-size: 17px; text-align: left; width: 100%; transition: border-color var(--dur-fast), background var(--dur-fast); }
.op .L { width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 15px; flex: none; }
.op .tx { flex: 1; }
.op .mk { margin-left: auto; font-weight: 900; }
.op.sel { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 14%, var(--surface)); }
.op.sel .L { background: var(--grad-primary); color: #fff; }
.op.ok { border-color: var(--success); background: color-mix(in srgb, var(--success) 16%, var(--surface)); animation: bounce 300ms var(--ease-spring); }
.op.ok .L { background: var(--success); color: #fff; }
.op.ok .mk { color: var(--success); }
.op.bad { border-color: var(--error); background: color-mix(in srgb, var(--error) 14%, var(--surface)); animation: shake 300ms; }
.op.bad .L { background: var(--error); color: #fff; }
.op.bad .mk { color: var(--error); }
.op:disabled { cursor: default; }
@keyframes bounce { 50% { transform: scale(1.03); } }
@media (prefers-reduced-motion: reduce) { .op.ok, .op.bad, .hearts .hh.lose { animation: none; } .hearts .hh.lose { opacity: 0; } }
.foot { text-align: center; font-size: 12px; font-weight: 600; color: var(--text-muted); padding: 0 16px 16px; }
.upis { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.upis .row { display: flex; gap: 8px; }
.upis .input { border-color: var(--primary); }
.upis .input.ok { border-color: var(--success); }
.upis .input.bad { border-color: var(--error); }
.feedback { text-align: center; font-weight: 800; font-size: 15px; min-height: 22px; }
.feedback.ok { color: var(--success); }
.feedback.bad { color: var(--error); }
.feedback.bad::before { content: '✕ '; }
.solo-pick { display: flex; flex-direction: column; gap: 12px; padding: 0 16px; }
.solo-pick .mode { min-height: 130px; }
.solo-pick .mode .ms { font-size: 13px; }
.rules-mini { margin: 16px; padding: 14px 16px; font-size: 14px; }
.rules-mini li { margin: 4px 0; }
.rules-mini ul { margin: 6px 0 0; padding-left: 18px; }
.result { padding: 10px 16px 24px; text-align: center; }
.result .big { font-size: 64px; line-height: 1; background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 6px 0; }
.result .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0; text-align: left; }
.result .grid .sc .v { font-size: 20px; }
.result .best { display: inline-block; margin-top: 6px; }

/* ================= LJESTVICA & PROFIL ================= */
.tabs { margin: 0 14px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs .seg { min-width: max-content; }
.tabs .seg button { font-size: 12px; min-height: 36px; padding: 0 10px; }
.lb { padding: 8px 14px; display: flex; flex-direction: column; gap: 3px; }
.lr { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; font-size: 13px; min-height: 40px; }
.lr.me { background: var(--chip-bg); outline: 1.5px solid var(--primary); }
.lr .md { width: 24px; text-align: center; font-size: 16px; flex: none; }
.lr .rk { font-size: 13px; color: var(--text-muted); }
.lr .ln { font-weight: 700; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lr .ll { font-size: 11px; font-weight: 600; width: 92px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lr .lp { font-size: 13px; min-width: 62px; text-align: right; }
.lb-gap { text-align: center; color: var(--text-muted); font-weight: 800; letter-spacing: .2em; line-height: 1; padding: 2px 0; }
.lb-empty { text-align: center; color: var(--text-muted); padding: 24px 0; font-weight: 600; }
.lb-skel { height: 40px; border-radius: 10px; }
.hero { margin: 0 14px; padding: 14px; display: flex; gap: 14px; align-items: center; }
.hero .hi { flex: 1; min-width: 0; }
.hero .nm { font-size: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero .rl { font-weight: 700; font-size: 13px; color: var(--text-muted); }
.hero .rl b { color: var(--text); }
.hero .bar { margin-top: 8px; }
.pg { display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; margin-top: 5px; color: var(--text-muted); gap: 6px; }
.pg b { color: var(--text); }
.ladder { display: flex; gap: 3px; padding: 12px 14px 4px; justify-content: space-between; }
.st { width: 22px; height: 22px; border-radius: 7px; background: var(--surface-2); font-size: 12px; display: flex; align-items: center; justify-content: center; filter: grayscale(1); opacity: .45; flex: none; }
.st.done { filter: none; opacity: 1; background: var(--chip-bg); }
.st.cur { filter: none; opacity: 1; box-shadow: 0 0 0 2px var(--turbo); background: var(--chip-bg); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 8px 14px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.stat .num { font-size: 16px; }
.stat .muted { font-size: 10px; font-weight: 600; line-height: 1.15; }
.links { margin: 8px 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.links a, .links button { display: flex; align-items: center; gap: 8px; padding: 12px; min-height: 52px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font-weight: 700; font-size: 14px; text-align: left; }
.links a i, .links button i { font-style: normal; font-size: 18px; }
.set-group { margin: 6px 0 16px; text-align: left; }
.set-group .lbl { font-weight: 800; font-size: 13px; color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .05em; }
.set-group .hintx { font-size: 12px; color: var(--text-muted); margin-top: 6px; font-weight: 500; }
.rules { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.rules .card { padding: 14px 16px; }
.rules .card h3 { font-family: var(--font-display); font-weight: 400; font-size: 16px; margin-bottom: 4px; }
.rules .card p { font-size: 14px; color: var(--text-muted); font-weight: 500; }

/* ================= TRGOVINA & POKLONI ================= */
.shop { padding: 0 16px; display: flex; flex-direction: column; gap: 10px; }
.item { display: flex; gap: 12px; align-items: center; padding: 12px; }
.item .ic { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; flex: none; background: var(--surface-2); }
.item .ic.t { background: var(--turbo); }
.item .ic.g { background: linear-gradient(160deg, #FFD34D, #E0A400); }
.item .tx { flex: 1; min-width: 0; }
.item .tx b { display: block; font-size: 15px; }
.item .tx small { display: block; font-size: 12px; color: var(--text-muted); font-weight: 500; }
.item .btn { flex: none; }
.owned { color: var(--success); font-weight: 800; font-size: 13px; }
.locked-note { margin: 0 16px 10px; padding: 12px 14px; border-radius: 14px; background: var(--chip-bg); font-weight: 600; font-size: 14px; }
.sms { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.sms .row { display: flex; gap: 8px; }
.gift-list { padding: 0 16px; display: flex; flex-direction: column; gap: 6px; }
.gift { display: flex; align-items: center; gap: 10px; padding: 8px 10px; }
.gift .tx { flex: 1; min-width: 0; font-weight: 700; font-size: 14px; }
.gift .tx small { display: block; font-weight: 500; font-size: 12px; color: var(--text-muted); }
.empty { text-align: center; color: var(--text-muted); font-weight: 600; padding: 18px; font-size: 14px; }

/* ================= TUTORIAL ================= */
.tut { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding: 16px; gap: 14px; }
.tut .dots { display: flex; gap: 6px; justify-content: center; }
.tut .dots i { width: 8px; height: 8px; border-radius: 99px; background: var(--line); transition: width var(--dur-base); }
.tut .dots i.on { width: 22px; background: var(--primary); }
.tut .body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.tut .hostline { display: flex; gap: 10px; align-items: flex-end; }
.tut .hostline .bub { background: var(--chip-bg); border-color: transparent; font-size: 16px; padding: 10px 14px; border-radius: 16px 16px 16px 4px; max-width: 100%; }
.tut .big-h { font-size: 26px; text-align: center; }
.tut .lead { text-align: center; color: var(--text-muted); font-weight: 500; }
.tut .skip { align-self: center; }
.tut .demo-row { display: flex; gap: 8px; }

/* ================= efekti ================= */
.sparks { position: fixed; z-index: 90; pointer-events: none; width: 0; height: 0; }
.sparks i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--turbo); box-shadow: 0 0 8px var(--turbo);
  animation: spark 500ms var(--ease-out) forwards; }
@keyframes spark { to { transform: translate(var(--dx), var(--dy)) scale(.3); opacity: 0; } }
.confetti { position: fixed; inset: 0; z-index: 70; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; animation: fall 1.2s cubic-bezier(.3,.6,.5,1) forwards; }
@keyframes fall { to { transform: translate(var(--drift), 105vh) rotate(var(--rot)); } }
.lvl-modal .badge { margin: 6px auto 14px; animation: spinY 600ms var(--ease-out); }
@keyframes spinY { from { transform: rotateY(0); } to { transform: rotateY(360deg); } }
@media (prefers-reduced-motion: reduce) { .lvl-modal .badge { animation: none; } }
.lvl-modal .modal-actions { flex-direction: column; }
.player-sheet { text-align: center; }
.player-sheet .nm { font-size: 22px; margin: 8px 0 2px; }
