/* Jedan svetao, veseo izgled (po Drawbook referenci): krem papir, bele kartice, boja teme nedelje kao glavna boja.
   --main menja Mia svake nedelje. */
:root {
  color-scheme: light;
  --cream: #FFF8EC;
  --card: #FFFFFF;
  --ink: #2B2A33;
  --ink-soft: #6E6A7C;
  --line: #F1E6D0;
  --red: #F0483E;
  --ok: #2FA35B;
  --main: #FFC93C;
  --main-ink: #2B2A33;
  --soft: color-mix(in srgb, var(--main) 20%, var(--cream));
  --lav: #EFEAFB;
  --shadow: 0 2px 0 rgba(43, 42, 51, .04), 0 12px 30px -16px rgba(120, 90, 30, .35);
  --f-hand: "Mali", "Comic Sans MS", "Chalkboard SE", cursive;
  --f-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --s1: #F25C54; --s2: #FF8A3D; --s3: #F5B700; --s4: #4CB861; --s5: #2EB8AE;
  --s6: #3F95EA; --s7: #6C63E8; --s8: #A35BD6; --s9: #F06FA8; --s10: #B9773F;
}
[hidden] { display: none !important; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--f-body); font-size: 17px; line-height: 1.5; font-weight: 500;
  padding-top: env(safe-area-inset-top, 0px);
}
h1, h2, h3 { font-family: var(--f-hand); font-weight: 700; line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 10px; }
.s1 { --step: var(--s1); } .s2 { --step: var(--s2); } .s3 { --step: var(--s3); } .s4 { --step: var(--s4); } .s5 { --step: var(--s5); }
.s6 { --step: var(--s6); } .s7 { --step: var(--s7); } .s8 { --step: var(--s8); } .s9 { --step: var(--s9); } .s10 { --step: var(--s10); }

.wrap {
  width: 100%; max-width: 760px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
main { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
.view { display: grid; gap: 26px; padding-block: 20px 24px; }

/* ---------- donji meni (kao u aplikaciji) ---------- */
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 0 max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
  pointer-events: none;
}
.nav-in {
  pointer-events: auto; max-width: 560px; margin: 0 auto; background: var(--card); border-radius: 28px;
  box-shadow: 0 10px 30px -10px rgba(60, 40, 10, .35); display: grid; grid-template-columns: repeat(5, 1fr);
  align-items: end; padding: 8px 6px;
}
.nav a {
  display: grid; justify-items: center; gap: 2px; text-decoration: none; font-size: 12px; font-weight: 800;
  color: var(--ink-soft); padding: 4px 0; min-height: 52px; align-content: center;
}
.nav a svg { width: 26px; height: 26px; }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] svg { color: var(--main); filter: drop-shadow(0 1px 0 rgba(0,0,0,.15)); }
.nav .fab { align-self: center; }
.nav .fab span.plus {
  width: 56px; height: 56px; border-radius: 50%; background: var(--main); color: var(--main-ink);
  display: grid; place-items: center; margin-top: -26px; box-shadow: 0 8px 18px -6px color-mix(in srgb, var(--main) 80%, black);
  border: 4px solid var(--card);
}
.nav .fab span.plus svg { width: 28px; height: 28px; }

/* ---------- opšte ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 10px 22px;
  border-radius: 999px; border: 0; background: var(--card); color: var(--ink); font-weight: 900; font-size: 17px;
  text-decoration: none; box-shadow: inset 0 0 0 2px var(--line); line-height: 1.2; transition: transform .12s ease;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.main { background: var(--main); color: var(--main-ink); box-shadow: 0 6px 0 -2px color-mix(in srgb, var(--main) 70%, black); }
.btn.ink { background: var(--ink); color: #fff; box-shadow: none; }
.btn.red { background: #FFE9E7; color: #B3261E; box-shadow: none; }
.btn.okb { background: #E3F6EA; color: #1C6E3B; box-shadow: none; }
.btn.small { min-height: 42px; padding: 6px 16px; font-size: 15px; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .5; cursor: default; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.card { background: var(--card); border-radius: 26px; padding: 20px; box-shadow: var(--shadow); }
.muted { color: var(--ink-soft); }
.eyebrow { font-size: 13px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.head { display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.head h2 { font-size: 26px; }
.head a { font-weight: 800; font-size: 15px; text-decoration: none; color: var(--ink-soft); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--cream); font-weight: 800; font-size: 14px; }
.err { color: #B3261E; font-weight: 800; }
label.field { display: grid; gap: 6px; font-weight: 800; font-size: 15px; }
input[type="text"], input[type="password"], select, textarea {
  width: 100%; min-height: 52px; border-radius: 16px; border: 2px solid var(--line); background: var(--card);
  padding: 10px 16px; font-size: 17px; font-weight: 700;
}
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--main); }

/* ---------- početna ---------- */
.hello { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hello h1 { font-size: 30px; }
.avatar {
  width: 54px; height: 54px; border-radius: 50%; background: var(--main); color: var(--main-ink); flex: none;
  display: grid; place-items: center; font-family: var(--f-hand); font-size: 26px; font-weight: 700; text-decoration: none;
  border: 3px solid var(--card); box-shadow: var(--shadow);
}
.theme-card {
  position: relative; overflow: hidden; border-radius: 30px; padding: 24px; background: var(--main); color: var(--main-ink);
  display: grid; gap: 12px; box-shadow: 0 16px 30px -18px color-mix(in srgb, var(--main) 70%, black);
}
.theme-card::before, .theme-card::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .22); pointer-events: none;
}
.theme-card::before { width: 220px; height: 200px; right: -60px; top: -70px; border-radius: 46% 54% 60% 40%; }
.theme-card::after { width: 120px; height: 110px; right: 60px; bottom: -60px; }
.theme-card > * { position: relative; z-index: 1; }
.theme-card .eyebrow { color: inherit; opacity: .8; }
.theme-card h2 { font-size: clamp(34px, 9vw, 52px); }
.theme-card p { font-size: 18px; font-weight: 700; max-width: 34ch; }
.theme-card .pill { background: rgba(255, 255, 255, .55); color: var(--ink); justify-self: start; }
.theme-card .btn { justify-self: start; background: var(--card); color: var(--ink); box-shadow: none; }
.theme-card .sun { position: absolute; right: 14px; top: 14px; width: 74px; height: 74px; z-index: 1; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.tile {
  display: grid; gap: 6px; justify-items: center; text-decoration: none; text-align: center; padding: 12px 10px 14px;
  border-radius: 22px; background: color-mix(in srgb, var(--step) 15%, white); font-weight: 800; font-size: 15px; line-height: 1.2;
  position: relative;
}
.tile .fig { width: 100%; max-width: 130px; }
.tile .n { font-size: 12px; color: var(--step); font-weight: 900; letter-spacing: .05em; text-transform: uppercase; filter: brightness(.8); }
.tile .done { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; }
.tile .done svg { width: 14px; height: 14px; }

.challenge { background: var(--lav); border-radius: 26px; padding: 20px; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.challenge h3 { font-size: 21px; }
.challenge q { display: block; font-weight: 700; margin-top: 4px; quotes: "„" "“"; }
.challenge .icon-btn { background: var(--main); color: var(--main-ink); border: 0; }

.podium { max-width: 560px; width: 100%; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-items: end; }
.podium figure { margin: 0; display: grid; gap: 6px; text-align: center; min-width: 0; }
.podium img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 18px; background: var(--cream); border: 4px solid var(--card); box-shadow: var(--shadow); }
.podium .p1 img { border-color: #FFC93C; }
.podium .p1 { order: 2; } .podium .p2 { order: 1; } .podium .p3 { order: 3; }
.podium .p2 img, .podium .p3 img { width: 86%; justify-self: center; }
.medal { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-weight: 900; font-size: 15px; justify-self: center; color: #2B2A33; }
.m1 { background: #FFC93C; } .m2 { background: #D9DCE6; } .m3 { background: #F0B48A; }
.podium figcaption { font-weight: 800; font-size: 14px; line-height: 1.2; overflow-wrap: anywhere; }
.podium figcaption b { display: block; font-family: var(--f-hand); font-size: 17px; }

/* ---------- korak (vodič kao na easydrawingguides) ---------- */
.lesson-head { display: grid; gap: 10px; }
.lesson-head .eyebrow { color: var(--step); filter: brightness(.8); }
.lesson-head h1 { font-size: clamp(36px, 9vw, 54px); }
.lesson-head .lead { font-size: 19px; font-weight: 700; color: var(--ink-soft); }
.final { background: color-mix(in srgb, var(--step) 12%, white); border-radius: 26px; padding: 18px; display: grid; gap: 8px; }
.final .fig { max-width: 420px; margin: 0 auto; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-weight: 800; font-size: 14px; color: var(--ink-soft); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 24px; height: 5px; border-radius: 3px; display: inline-block; }
.guide { display: grid; gap: 18px; counter-reset: g; }
.gstep { background: var(--card); border-radius: 26px; box-shadow: var(--shadow); overflow: hidden; }
.gstep .pic {
  padding: 18px 18px 6px; background:
    linear-gradient(rgba(43,42,51,.05) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(43,42,51,.05) 1px, transparent 1px) 0 0 / 22px 22px;
}
.gstep .pic .fig { max-width: 460px; margin: 0 auto; }
.gstep .txt { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 14px 18px 20px; }
.gstep .num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--step); color: #fff; display: grid; place-items: center;
  font-family: var(--f-hand); font-size: 24px; font-weight: 700;
}
.gstep .txt p { font-size: 19px; font-weight: 700; padding-top: 7px; }
.tips { display: grid; gap: 12px; }
.tip { display: grid; grid-template-columns: 46px 1fr; gap: 12px; }
.tip .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--step) 15%, white); }
.tip .ic svg { width: 26px; height: 26px; }
.tip b { display: block; font-family: var(--f-hand); font-size: 19px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.fig { width: 100%; height: auto; display: block; overflow: visible; }
.fig g { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.fig .o { stroke: var(--ink); color: var(--ink); stroke-width: 3; }
.fig .n { stroke: var(--red); color: var(--red); stroke-width: 4.2; }
.fig .f { stroke: var(--ink); color: var(--ink); stroke-width: 3; }
.fig text { font-family: var(--f-body); font-weight: 900; }

/* ---------- tema, glasanje, izložba ---------- */
.stars { display: flex; gap: 6px; align-items: center; font-weight: 900; }
.stars svg { width: 30px; height: 30px; }
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 14px; }
.art { position: relative; background: var(--card); border-radius: 22px; padding: 8px; box-shadow: var(--shadow); display: grid; gap: 8px; }
.art img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; background: var(--cream); display: block; cursor: zoom-in; }
.art .star {
  min-height: 46px; border-radius: 999px; border: 0; background: var(--cream); font-weight: 900; display: flex; align-items: center; justify-content: center; gap: 6px;
}
.art .star svg { width: 24px; height: 24px; }
.art .star[aria-pressed="true"] { background: var(--main); color: var(--main-ink); }
.art .own { text-align: center; font-weight: 800; font-size: 14px; color: var(--ink-soft); padding: 11px 0; }
.art .place { position: absolute; top: 14px; left: 14px; }
.art .cap { font-weight: 800; font-size: 14px; text-align: center; padding-bottom: 4px; }
.status { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; }
.status img { width: 96px; height: 96px; object-fit: cover; border-radius: 16px; background: var(--cream); }
.badge { display: inline-block; padding: 3px 12px; border-radius: 999px; font-weight: 900; font-size: 13px; }
.b-pending { background: #FFF1C9; color: #7A5600; } .b-approved { background: #E3F6EA; color: #1C6E3B; } .b-rejected { background: #FFE9E7; color: #B3261E; }
.hall { display: grid; gap: 18px; }
.hall .card { display: grid; gap: 14px; border-top: 8px solid var(--c, var(--main)); }

/* ---------- prijava ---------- */
.code-show {
  font-family: var(--f-hand); font-size: clamp(32px, 10vw, 46px); font-weight: 700; text-align: center; letter-spacing: .04em;
  background: var(--soft); border: 3px dashed var(--main); border-radius: 20px; padding: 16px; user-select: all;
}
.tabs2 { display: grid; grid-template-columns: 1fr 1fr; background: var(--cream); border-radius: 999px; padding: 4px; }
.tabs2 button { border: 0; background: transparent; border-radius: 999px; min-height: 46px; font-weight: 900; }
.tabs2 button[aria-pressed="true"] { background: var(--card); box-shadow: var(--shadow); }

/* ---------- Mia ---------- */
.admin-list { display: grid; gap: 10px; }
.admin-item { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--cream); border-radius: 18px; padding: 12px 14px; }
.admin-item > div { min-width: 0; }
.admin-item img { width: 100%; max-width: 260px; border-radius: 14px; display: block; }
.admin-item.drw { display: grid; grid-template-columns: minmax(0, 260px) 1fr; }
@media (max-width: 520px) { .admin-item.drw { grid-template-columns: 1fr; } }
.code { font-family: ui-monospace, Menlo, monospace; font-weight: 700; background: var(--card); padding: 2px 8px; border-radius: 8px; }
.theme-edit { display: grid; gap: 12px; border-left: 8px solid var(--c); }
.theme-edit h3 { font-size: 22px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.swatches button { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--card); box-shadow: 0 0 0 2px var(--line); }
.swatches button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--ink); }
.swatches input[type="color"] { width: 44px; height: 44px; border: 0; background: none; padding: 0; }
.phase { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.phase button { border: 2px solid var(--line); background: var(--card); border-radius: 14px; min-height: 48px; font-weight: 800; font-size: 13px; padding: 4px; line-height: 1.15; }
.phase button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (max-width: 420px) { .phase { grid-template-columns: 1fr 1fr; } }

/* ---------- modali ---------- */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(43, 42, 51, .55); display: grid; align-items: end; justify-items: center; }
@media (min-width: 700px) { .modal { align-items: center; padding: 24px; } }
.sheet {
  width: 100%; max-width: 520px; max-height: 92vh; overflow: auto; background: var(--card); border-radius: 30px 30px 0 0;
  padding: 22px max(18px, env(safe-area-inset-right, 0px)) calc(22px + env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-left, 0px));
  display: grid; gap: 16px;
}
@media (min-width: 700px) { .sheet { border-radius: 30px; } }
.sheet h2 { font-size: 28px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.icon-btn { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--cream); display: grid; place-items: center; flex: none; }
.icon-btn svg { width: 22px; height: 22px; }
.pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pick input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.preview { border-radius: 20px; overflow: hidden; background: var(--cream); display: grid; place-items: center; min-height: 150px; }
.preview img { max-height: 300px; width: auto; }
.preview p { padding: 20px; text-align: center; font-weight: 700; color: var(--ink-soft); }
.zoom { position: fixed; inset: 0; z-index: 60; background: rgba(20, 18, 28, .92); display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px)); }
.zoom img { max-width: 100%; max-height: 86vh; border-radius: 16px; background: #fff; }
.zoom .icon-btn { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); right: 14px; }
.toast {
  position: fixed; left: 50%; bottom: calc(108px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 70;
  background: var(--ink); color: #fff; font-weight: 800; padding: 12px 20px; border-radius: 999px; max-width: calc(100% - 32px); text-align: center;
}
.foot { text-align: center; font-size: 14px; color: var(--ink-soft); }
.foot a { font-weight: 800; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- zaglavlje sa jezikom ---------- */
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 12px 0; }
.brand { display: flex; align-items: center; gap: 8px; font-family: var(--f-hand); font-weight: 700; font-size: 20px; text-decoration: none; }
.brand svg { width: 32px; height: 32px; flex: none; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.05; }
.brand-txt small { font-family: var(--f-body); font-size: 12px; font-weight: 800; color: var(--ink-soft); letter-spacing: .02em; }
.langs { display: inline-flex; background: var(--card); border-radius: 999px; padding: 3px; box-shadow: var(--shadow); }
.langs button { border: 0; background: transparent; min-width: 44px; min-height: 36px; border-radius: 999px; font-weight: 900; font-size: 14px; color: var(--ink-soft); }
.langs button[aria-pressed="true"] { background: var(--main); color: var(--main-ink); }
.nav a span { display: block; }

/* ---------- pomoćne ---------- */
.big { font-size: clamp(34px, 8vw, 44px); margin-top: 4px; }
.stack { display: grid; gap: 12px; }
.center { text-align: center; justify-items: center; }
.small { font-size: 14px; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.card h3 { font-size: 22px; }
h2 { font-size: 26px; }
a.card.grow, a.card { text-decoration: none; display: flex; align-items: center; gap: 12px; justify-content: space-between; }
a.card svg { width: 22px; height: 22px; flex: none; }
.pickable { border: 0; cursor: pointer; }
ol.steps { margin: 0; padding-left: 22px; display: grid; gap: 6px; font-weight: 600; }

/* ---------- početna: brze akcije, nivo, uzrast ---------- */
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.qa { display: grid; gap: 2px; text-decoration: none; background: color-mix(in srgb, var(--q) 16%, white); border-radius: 22px; padding: 14px 12px; min-width: 0; }
.qa svg { width: 30px; height: 30px; color: var(--q); filter: brightness(.85); }
.qa b { font-family: var(--f-hand); font-size: 17px; line-height: 1.15; }
.qa span { font-size: 13px; color: var(--ink-soft); font-weight: 700; line-height: 1.25; }
@media (max-width: 380px) { .quick { grid-template-columns: 1fr; } }
.levelcard { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.levelcard h3 { font-size: 26px; }
.streak { text-align: center; background: var(--soft); border-radius: 18px; padding: 10px 14px; min-width: 84px; }
.streak b { display: block; font-family: var(--f-hand); font-size: 32px; line-height: 1; }
.streak span { font-size: 12px; font-weight: 800; color: var(--ink-soft); }
.agepick { display: grid; gap: 10px; }

/* ---------- staze ---------- */
.tracks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tracks button { border: 3px solid transparent; background: color-mix(in srgb, var(--q) 18%, white); border-radius: 20px; padding: 12px; text-align: left; display: grid; gap: 2px; }
.tracks button b { font-family: var(--f-hand); font-size: 19px; line-height: 1.1; }
.tracks button span { font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.tracks button[aria-selected="true"] { border-color: var(--q); background: var(--card); box-shadow: var(--shadow); }

/* ---------- značke ---------- */
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.bdg { background: var(--card); border-radius: 20px; padding: 12px; display: grid; gap: 4px; justify-items: center; text-align: center; opacity: .55; filter: grayscale(1); }
.bdg.got { opacity: 1; filter: none; box-shadow: var(--shadow); }
.bdg span { width: 46px; height: 46px; border-radius: 50%; background: var(--main); color: var(--main-ink); display: grid; place-items: center; }
.bdg span svg { width: 24px; height: 24px; }
.bdg b { font-family: var(--f-hand); font-size: 16px; line-height: 1.15; }
.bdg small { font-size: 12px; color: var(--ink-soft); font-weight: 700; line-height: 1.25; }

/* ---------- tabla za crtanje ---------- */
.canvas-wrap { position: relative; background: #fff; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3; max-width: 100%; box-shadow: var(--shadow); touch-action: none; }
.canvas-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.canvas-wrap canvas.live { cursor: crosshair; }
.canvas-wrap .ghost { position: absolute; inset: 6%; opacity: .22; pointer-events: none; }
.canvas-wrap .ghost .fig .f, .canvas-wrap .ghost .fig g { stroke: #5B6075; color: #5B6075; }
.toolbar { display: grid; gap: 12px; background: var(--card); border-radius: 24px; padding: 14px; box-shadow: var(--shadow); }
.brushes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.brushes button { border: 0; background: var(--cream); border-radius: 16px; min-height: 58px; display: grid; justify-items: center; align-content: center; gap: 2px; font-weight: 800; font-size: 12px; }
.brushes button svg { width: 24px; height: 24px; }
.brushes button[aria-pressed="true"] { background: var(--main); color: var(--main-ink); }
.sizer { display: flex; align-items: center; gap: 12px; }
.sizer .dotprev { flex: none; width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 2px var(--line); }
.sizer > span:first-child { display: grid; place-items: center; }
.sizer b { min-width: 2ch; font-variant-numeric: tabular-nums; text-align: right; }
.sizer label { display: block; }
input[type="range"] { width: 100%; accent-color: var(--ink); min-height: 32px; }
.colors { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.colors .cur { width: 44px; height: 44px; border-radius: 14px; box-shadow: inset 0 0 0 3px #fff, 0 0 0 2px var(--line); }
.colors button[data-c], .recent button { width: 36px; height: 36px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--line); padding: 0; }
.colors button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--ink); transform: scale(1.1); }
.colors .more { border: 0; background: var(--cream); border-radius: 999px; min-height: 40px; padding: 4px 12px; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 13px; }
.colors .more svg { width: 20px; height: 20px; }
.colors .more[aria-pressed="true"], .colors .more[aria-expanded="true"] { background: var(--ink); color: #fff; }
.recent { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-height: 0; }
.recent:empty { display: none; }
.picker { display: grid; gap: 8px; background: var(--cream); border-radius: 18px; padding: 12px; }
.picker label { display: grid; gap: 2px; font-weight: 800; font-size: 13px; }
.picker label.row { display: flex; }
.picker input[type="range"] { -webkit-appearance: none; appearance: none; height: 22px; border-radius: 999px; min-height: 22px; }
.picker input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); }
.picker input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); }
.picker .hue { background: linear-gradient(90deg, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00); }
.picker .sat { background: linear-gradient(90deg, var(--a, #888), var(--b, #f00)); }
.picker .lig { background: linear-gradient(90deg, #000, var(--b, #f00), #fff); }
.picker .opa { background: linear-gradient(90deg, transparent, var(--b, #000)), repeating-conic-gradient(#ddd 0 25%, #fff 0 50%) 0 0 / 12px 12px; }
.picker input[type="color"] { width: 48px; height: 36px; border: 0; padding: 0; background: none; }
.bowl { display: grid; gap: 10px; background: var(--cream); border-radius: 18px; padding: 12px; }
.bowl-row { display: flex; gap: 12px; align-items: center; }
.bowl-res { flex: none; width: 64px; height: 64px; border-radius: 50%; box-shadow: inset 0 -8px 0 rgba(0,0,0,.08), 0 0 0 3px #fff, 0 0 0 5px var(--line); }
.bowl-res.empty { background: repeating-linear-gradient(45deg, #eee 0 6px, #fff 6px 12px) !important; }
.drops { display: flex; flex-wrap: wrap; gap: 6px; }
.drops button { border: 0; background: #fff; border-radius: 999px; padding: 4px 10px 4px 4px; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 13px; }
.drops button i { width: 22px; height: 22px; border-radius: 50%; background: var(--d); box-shadow: 0 0 0 1px var(--line); }
.toolrow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.toolrow button { border: 0; background: var(--cream); border-radius: 16px; min-height: 48px; display: flex; justify-content: center; align-items: center; gap: 6px; font-weight: 800; font-size: 14px; }
.toolrow button svg { width: 22px; height: 22px; }

/* ---------- pogodi boju ---------- */
.guess { display: grid; gap: 16px; }
.guess .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.guess figure { margin: 0; display: grid; gap: 6px; text-align: center; font-weight: 800; }
.guess .sw { display: block; aspect-ratio: 1; border-radius: 26px; box-shadow: inset 0 0 0 4px #fff, 0 0 0 2px var(--line); }
.guess .sw.empty { background: repeating-linear-gradient(45deg, #eee 0 8px, #fff 8px 16px) !important; }
.score { text-align: center; }
.score b { font-family: var(--f-hand); font-size: 44px; display: block; line-height: 1; }
.score span { font-weight: 800; color: var(--ink-soft); }
.paints { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.paint { background: var(--cream); border-radius: 18px; padding: 10px 6px; display: grid; gap: 6px; justify-items: center; font-size: 14px; }
.paint .blob { width: 40px; height: 40px; border-radius: 50% 50% 46% 54%; box-shadow: 0 0 0 2px var(--line); }
.paint .row { gap: 4px; flex-wrap: nowrap; }
.paint .icon-btn { width: 36px; height: 36px; font-size: 20px; font-weight: 900; background: #fff; }
.paint .icon-btn.add { background: var(--main); color: var(--main-ink); }
.paint .cnt { min-width: 2ch; text-align: center; font-weight: 900; font-variant-numeric: tabular-nums; }

/* ---------- igra uživo ---------- */
.seg3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.seg3 button { border: 2px solid var(--line); background: var(--card); border-radius: 14px; min-height: 48px; font-weight: 900; }
.seg3 button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.codein { text-transform: uppercase; letter-spacing: .3em; font-family: var(--f-hand); font-size: 28px !important; text-align: center; }
.roomhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.roomhead .code { font-family: var(--f-hand); letter-spacing: .12em; font-size: 34px; background: none; padding: 0; }
.myscore { text-align: right; } .myscore b { font-family: var(--f-hand); font-size: 30px; display: block; line-height: 1; } .myscore span { font-size: 12px; font-weight: 800; color: var(--ink-soft); }
.theme-card.slim { padding: 18px 20px; gap: 4px; } .theme-card.slim h2 { font-size: clamp(26px, 7vw, 38px); }
.timer { display: grid; gap: 6px; }
.timer span { display: flex; align-items: center; gap: 8px; font-family: var(--f-hand); font-size: 30px; font-weight: 700; }
.timer span svg { width: 30px; height: 30px; }
.timer i { display: block; height: 12px; border-radius: 999px; background: var(--line); overflow: hidden; }
.timer em { display: block; height: 100%; width: 100%; background: var(--main); transition: width .2s linear; }
ol.board { margin: 0; padding-left: 24px; display: grid; gap: 6px; }
ol.board li { font-weight: 800; } ol.board li span { float: right; font-variant-numeric: tabular-nums; }

/* ---------- vođa grupe ---------- */
.invite .code-show { font-size: clamp(30px, 9vw, 42px); }
.code.big { font-size: 20px; padding: 6px 12px; }
.suggest .sug { display: grid; gap: 4px; background: color-mix(in srgb, var(--c) 22%, white); border-left: 8px solid var(--c); border-radius: 16px; padding: 14px; }
.suggest .sug b { font-family: var(--f-hand); font-size: 22px; line-height: 1.15; }
.suggest .sug span { font-weight: 600; color: var(--ink-soft); }
details summary { cursor: pointer; font-weight: 800; }

/* ---------- scena (T26) ----------
   Ambijentalni, unapred određeni pokreti: CSS animacije (van glavne niti), samo transform i opacity.
   Spore i blage; na stranicama za učenje se ništa ne kreće preko teksta. */
:root { --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1); --ease-out: cubic-bezier(0.23, 1, 0.32, 1); }
body { background: linear-gradient(180deg, #D6EFFF 0, #EAF7FF 260px, var(--cream) 560px) fixed; }
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg .bg-clouds { position: absolute; top: 0; left: 0; width: 100%; height: 300px; opacity: .9; }
.bg .bg-hills { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 120px; }
.scene { position: relative; border-radius: 30px; overflow: hidden; aspect-ratio: 400 / 230; min-height: 220px; max-width: 100%; box-shadow: var(--shadow); background: #A9DEFF; }
.scene-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scene .hello { position: relative; z-index: 1; padding: 20px 20px 0; align-items: flex-start; }
.scene .hello h1 { text-shadow: 0 2px 0 rgba(255, 255, 255, .7); }
.scene .hello p { color: #3E4A63; font-weight: 700; }
.scene .sun-hit { position: absolute; z-index: 2; top: 2%; right: 2%; width: 26%; height: 48%; border: 0; background: transparent; border-radius: 50%; cursor: pointer; }
.scene-svg * { transform-box: fill-box; transform-origin: center; }

/* oblaci plove polako levo-desno */
.cloud { animation: drift 22s var(--ease-in-out) infinite alternate; }
.c2 { animation-duration: 28s; animation-delay: -9s; }
.c3 { animation-duration: 70s; } .c4 { animation-duration: 90s; animation-delay: -30s; } .c5 { animation-duration: 80s; animation-delay: -50s; }
@keyframes drift { from { transform: translateX(-24px); } to { transform: translateX(24px); } }

/* sunce: sjaj treperi, zraci se okreću, oči trepću, desno oko namigne, osmeh se raširi */
.sun .glow { opacity: .8; animation: glow 3.2s ease-in-out infinite alternate; }
@keyframes glow { from { opacity: .55; transform: scale(.92); } to { opacity: 1; transform: scale(1.06); } }
.sun .rays { animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sun .eye-l { animation: blink 6s ease-in-out infinite; }
.sun .eye-r { animation: wink 6s ease-in-out infinite; }
@keyframes blink { 0%, 44%, 50%, 100% { transform: scaleY(1); } 47% { transform: scaleY(.12); } }
@keyframes wink { 0%, 44%, 50%, 82%, 94%, 100% { transform: scaleY(1); } 47% { transform: scaleY(.12); } 85%, 91% { transform: scaleY(.1); } }
.sun .mouth { animation: grin 6s ease-in-out infinite; }
@keyframes grin { 0%, 82%, 94%, 100% { transform: scale(1); } 85%, 91% { transform: scale(1.18); } }
.sun .cheek { animation: blush 6s ease-in-out infinite; }
@keyframes blush { 0%, 82%, 94%, 100% { opacity: .55; } 85%, 91% { opacity: .95; } }
/* dodir = namig odmah */
.scene.wink .sun .eye-r { animation: wink-now .7s var(--ease-out); }
.scene.wink .sun .mouth { animation: grin-now .7s var(--ease-out); }
@keyframes wink-now { 0%, 100% { transform: scaleY(1); } 25%, 70% { transform: scaleY(.1); } }
@keyframes grin-now { 0%, 100% { transform: scale(1); } 25%, 70% { transform: scale(1.22); } }

/* pčelica: let preko neba (putanja), okret kad leti nazad, ljuljanje i krilca */
.bee-path { animation: bee 16s var(--ease-in-out) infinite; transform-box: view-box; transform-origin: 0 0; }
@keyframes bee {
  0% { transform: translate(40px, 140px); } 20% { transform: translate(150px, 118px); } 45% { transform: translate(275px, 138px); }
  55% { transform: translate(250px, 160px); } 80% { transform: translate(120px, 128px); } 100% { transform: translate(40px, 140px); }
}
.bee-turn { animation: turn 16s steps(1) infinite; }
@keyframes turn { 0%, 49% { transform: scaleX(1); } 50%, 100% { transform: scaleX(-1); } }
.bee-bob { animation: bob .9s ease-in-out infinite alternate; }
@keyframes bob { from { transform: translateY(-3px); } to { transform: translateY(3px); } }
.wing { animation: flap .12s linear infinite alternate; transform-origin: center bottom; }
@keyframes flap { from { transform: scaleY(1); } to { transform: scaleY(.35); } }

/* zeka skakuće svakih 5 s, uvo mrdne */
.bunny { animation: hop 5s var(--ease-out) infinite; transform-origin: center bottom; }
@keyframes hop { 0%, 70%, 100% { transform: translateY(0) scaleY(1); } 76% { transform: translateY(-16px) scaleY(1.05); } 84% { transform: translateY(0) scaleY(.9); } 90% { transform: translateY(0) scaleY(1); } }
.ear { animation: twitch 5s ease-in-out infinite; transform-origin: center bottom; }
@keyframes twitch { 0%, 30%, 40%, 100% { transform: rotate(0); } 34% { transform: rotate(-14deg); } }

/* puž puzi preko brda (dugo i sporo) */
.snail-path { animation: crawl 60s linear infinite; transform-box: view-box; transform-origin: 0 0; }
@keyframes crawl { from { transform: translateX(-40px); } to { transform: translateX(440px); } }

/* leptir luta levo gore */
.bfly-path { animation: bfly 18s ease-in-out infinite; transform-box: view-box; transform-origin: 0 0; }
@keyframes bfly { 0% { transform: translate(250px, 165px); } 30% { transform: translate(190px, 128px); } 60% { transform: translate(130px, 160px); } 100% { transform: translate(250px, 165px); } }
.bw { animation: bw .25s ease-in-out infinite alternate; }
@keyframes bw { from { transform: scaleX(1); } to { transform: scaleX(.3); } }

/* cveće se njiše na vetru */
.sway { animation: sway 4s ease-in-out infinite alternate; transform-origin: center bottom; }
@keyframes sway { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }

@media (prefers-reduced-motion: reduce) {
  .scene-svg *, .bg * { animation: none !important; }
  .bee-path { transform: translate(150px, 125px); } .snail-path { transform: translateX(250px); } .bfly-path { transform: translate(200px, 140px); }
}

/* ---------- scena: nove životinje, noć, more, svemir, zima (T27–T30) ---------- */
.scene.dark .hello h1, .scene.dark .hello p { color: #fff; text-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.scene [data-act] { cursor: pointer; }
.zzz { animation: zzz 3s ease-in-out infinite; }
@keyframes zzz { 0% { opacity: 0; transform: translate(0, 0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(6px, -14px); } }
.bunny.sleep { animation: breathe 3s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.96); } }

/* ptičica na oblaku mahne krilom, bubamara puzi po latici */
.bwing { animation: bwing 4s ease-in-out infinite; transform-origin: right center; }
@keyframes bwing { 0%, 80%, 100% { transform: rotate(0); } 85%, 95% { transform: rotate(-35deg); } 90% { transform: rotate(10deg); } }
.lady { animation: lady 7s ease-in-out infinite; }
@keyframes lady { 0%, 100% { transform: translate(0, 0); } 40% { transform: translate(0, 16px); } 60% { transform: translate(1px, 16px); } }

/* zvezde trepere, svici svetlucaju */
.twinkle { animation: twinkle 2.6s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .25; } to { opacity: 1; } }
.fly { animation: firefly 9s ease-in-out infinite; transform-box: view-box; transform-origin: 0 0; }
.fly > * { animation: glowfly 1.6s ease-in-out infinite alternate; }
@keyframes glowfly { from { opacity: .2; } to { opacity: 1; } }
@keyframes firefly { 0% { transform: translate(var(--x0), var(--y0)); } 33% { transform: translate(var(--x1), var(--y1)); } 66% { transform: translate(var(--x2), var(--y2)); } 100% { transform: translate(var(--x0), var(--y0)); } }
.f0 { --x0: 60px; --y0: 150px; --x1: 110px; --y1: 120px; --x2: 80px; --y2: 175px; }
.f1 { --x0: 160px; --y0: 140px; --x1: 200px; --y1: 170px; --x2: 140px; --y2: 120px; animation-duration: 11s; }
.f2 { --x0: 250px; --y0: 160px; --x1: 290px; --y1: 130px; --x2: 230px; --y2: 120px; animation-duration: 8s; }
.f3 { --x0: 330px; --y0: 170px; --x1: 360px; --y1: 140px; --x2: 310px; --y2: 150px; animation-duration: 12s; }
.f4 { --x0: 30px; --y0: 120px; --x1: 70px; --y1: 100px; --x2: 40px; --y2: 160px; animation-duration: 10s; }
.f5 { --x0: 200px; --y0: 115px; --x1: 240px; --y1: 140px; --x2: 180px; --y2: 160px; animation-duration: 13s; }
.f6 { --x0: 120px; --y0: 190px; --x1: 170px; --y1: 180px; --x2: 100px; --y2: 165px; animation-duration: 9.5s; }

/* more: talasi, mehurići, alge, ribice, rak, hobotnica */
.wave { animation: wave 6s ease-in-out infinite alternate; }
@keyframes wave { from { transform: translateX(0); } to { transform: translateX(-30px); } }
.bubble { animation: bubble 6s linear infinite; }
@keyframes bubble { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: .9; } 85% { opacity: .9; } 100% { transform: translateY(-120px); opacity: 0; } }
.weed { animation: sway 3.5s ease-in-out infinite alternate; transform-origin: center bottom; }
.fish1 { animation: swimR 14s linear infinite; transform-box: view-box; transform-origin: 0 0; }
.fish2 { animation: swimL 18s linear infinite; transform-box: view-box; transform-origin: 0 0; }
@keyframes swimR { from { transform: translateX(-40px); } to { transform: translateX(440px); } }
@keyframes swimL { from { transform: translateX(440px) scaleX(-1); } to { transform: translateX(-40px) scaleX(-1); } }
.tail { animation: tail .4s ease-in-out infinite alternate; transform-origin: right center; }
@keyframes tail { from { transform: scaleY(1); } to { transform: scaleY(.6); } }
.crab-path { animation: crab 12s ease-in-out infinite alternate; transform-box: view-box; transform-origin: 0 0; }
@keyframes crab { from { transform: translateX(150px); } to { transform: translateX(270px); } }
.claw { animation: claw 1.2s ease-in-out infinite alternate; }
@keyframes claw { from { transform: translateY(0); } to { transform: translateY(-2px); } }
.octo { animation: octo 3s ease-in-out infinite alternate; }
@keyframes octo { from { transform: translateY(-6px); } to { transform: translateY(6px); } }

/* svemir: planeta, raketa, NLO */
.planet { animation: octo 5s ease-in-out infinite alternate; }
.rocket-path { animation: rocket 14s var(--ease-in-out) infinite; transform-box: view-box; transform-origin: 0 0; }
@keyframes rocket { 0% { transform: translate(-30px, 240px) rotate(35deg); } 60% { transform: translate(210px, 40px) rotate(35deg); } 61%, 100% { transform: translate(-30px, 240px) rotate(35deg); } }
.flame { animation: flame .15s linear infinite alternate; transform-origin: center top; }
@keyframes flame { from { transform: scaleY(1); } to { transform: scaleY(.7); } }
.ufo { animation: octo 2.4s ease-in-out infinite alternate; }

/* zima: pahulje, Sneško trepće, pingvin gega */
.flake { animation: flake 8s linear infinite; }
@keyframes flake { from { transform: translate(0, 0); } to { transform: translate(14px, 240px); } }
.snow-eyes { animation: blink 5s ease-in-out infinite; }
.peng-path { animation: peng 20s linear infinite alternate; transform-box: view-box; transform-origin: 0 0; }
@keyframes peng { from { transform: translateX(260px); } to { transform: translateX(345px); } }
.peng { animation: waddle .6s ease-in-out infinite alternate; transform-origin: center bottom; }
@keyframes waddle { from { transform: rotate(-8deg); } to { transform: rotate(8deg); } }

/* reakcije na dodir (klasa .act) */
.bee-act.act { animation: loop .8s var(--ease-in-out); }
@keyframes loop { 0% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-26px) rotate(-180deg); } 100% { transform: translateY(0) rotate(-360deg); } }
.bunny-act.act { animation: bighop .7s var(--ease-out); transform-origin: center bottom; }
@keyframes bighop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-34px) rotate(-8deg); } 70% { transform: translateY(0) scaleY(.88); } }
.bird.act { animation: flyoff 1.8s var(--ease-in-out); }
@keyframes flyoff { 0%, 100% { transform: translate(0, 0); } 45% { transform: translate(60px, -30px); } 55% { transform: translate(60px, -30px); } }
.bird.act .bwing { animation: flap .12s linear infinite alternate; }
.fish-act.act { animation: dash .6s var(--ease-out); }
@keyframes dash { 0%, 100% { transform: translateX(0); } 40% { transform: translateX(34px); } }
.crab.act { animation: pinch .6s ease-in-out; }
@keyframes pinch { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
.octo.act { animation: pinch .6s ease-in-out 2; }
.rocket.act .flame { animation: boost .5s ease-out 2; }
@keyframes boost { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(2.2); } }
.ufo.act .beam { animation: beam 1.4s ease-in-out; }
@keyframes beam { 0%, 100% { opacity: 0; } 30%, 70% { opacity: .55; } }
.snowman.act .hat { animation: hat .8s var(--ease-out); }
@keyframes hat { 0%, 100% { transform: translateY(0) rotate(0); } 40% { transform: translateY(-14px) rotate(-10deg); } }
.peng.act { animation: bighop .7s var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  .fish1 { transform: translateX(120px); } .fish2 { transform: translateX(280px) scaleX(-1); } .crab-path { transform: translateX(200px); }
  .rocket-path { transform: translate(150px, 120px) rotate(35deg); } .peng-path { transform: translateX(300px); }
  .fly { transform: translate(var(--x1), var(--y1)); } .flake { opacity: .8; transform: translateY(calc(var(--i, 1) * 40px)); }
}

/* tempere / svetlo prekidač (T31) */
.mixkind { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border-radius: 999px; padding: 4px; gap: 4px; }
.mixkind button { border: 0; background: transparent; border-radius: 999px; min-height: 40px; font-weight: 900; font-size: 14px; }
.mixkind button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.mixkind.big { background: var(--card); box-shadow: var(--shadow); }
.mixkind.big button { min-height: 48px; font-size: 16px; }
.lightdrops { display: flex; flex-wrap: wrap; gap: 6px; }
.lightdrops:empty { display: none; }
.lightdrops button { border: 0; background: #1E2140; color: #fff; border-radius: 999px; padding: 6px 12px 6px 6px; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 13px; }
.lightdrops button i { width: 20px; height: 20px; border-radius: 50%; background: var(--l); box-shadow: 0 0 10px 2px var(--l); }


/* ---------- mešalica: mešanje prstom (T33) ---------- */
.mixer { position: relative; width: 100%; aspect-ratio: 1; border-radius: 26px; overflow: hidden; touch-action: none;
  background: #FBF8F2; box-shadow: inset 0 0 0 1px rgba(0,0,0,.05), inset 0 -10px 24px rgba(120, 90, 40, .12), 0 10px 24px -14px rgba(60, 40, 10, .45); }
.mixer canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.mixer canvas:active { cursor: grabbing; }
.mixer.light { background: #0C0B10; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .7); }
.mx-hint { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font-weight: 800; font-size: 14px; color: #6E6A7C; pointer-events: none; padding: 0 16px; }
.mixer.light .mx-hint { color: rgba(255, 255, 255, .7); }
.mx-sensor { position: absolute; left: 50%; top: 50%; width: 15%; aspect-ratio: 1; margin: -7.5% 0 0 -7.5%; border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 0 0 6px rgba(0,0,0,.35); background: transparent; }
.mx-sensor::after { content: ""; position: absolute; inset: 30%; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px rgba(0,0,0,.3); }
.mx-host { width: 100%; max-width: 420px; margin: 0 auto; }
.mx-now { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.mx-now .sw { width: 40px; height: 40px; border-radius: 12px; box-shadow: inset 0 0 0 3px #fff, 0 0 0 2px var(--line); display: inline-block; }
.sw.empty { background: repeating-linear-gradient(45deg, #eee 0 6px, #fff 6px 12px) !important; }
.guess .cmp { display: grid; grid-template-columns: auto auto 1fr; gap: 14px; align-items: center; }
.guess .cmp > div { display: grid; justify-items: center; gap: 4px; font-size: 13px; }
.guess .cmp .sw { width: 72px; height: 72px; aspect-ratio: auto; border-radius: 20px; }
.guess .cmp .score { justify-items: end; text-align: right; }
.guess .cmp .score b { font-size: 40px; }
#g-mix { width: 100%; max-width: 460px; margin: 0 auto; }

/* ---------- mešalica: tube, alati, točkići (T34) ---------- */
.mixer-wrap { display: grid; gap: 12px; }
.mx-tools { display: grid; gap: 10px; }
.tubes { display: flex; gap: 6px; overflow-x: auto; padding: 6px 2px 4px; scrollbar-width: none; }
.tubes::-webkit-scrollbar { display: none; }
.tube { flex: none; position: relative; width: 38px; height: 64px; border: 0; background: none; padding: 0; transition: transform .16s var(--ease-out); }
.tube-body { position: absolute; left: 4px; right: 4px; top: 12px; bottom: 0; border-radius: 8px 8px 4px 4px;
  background: linear-gradient(90deg, rgba(255,255,255,.55), rgba(255,255,255,0) 40%, rgba(0,0,0,.12)), var(--t);
  box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--line); }
.tube-body::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 10px; background: rgba(255,255,255,.75); }
.tube-cap { position: absolute; left: 11px; right: 11px; top: 0; height: 14px; border-radius: 4px 4px 2px 2px; background: #3A3845; }
.tube[aria-pressed="true"] { transform: translateY(-6px) rotate(-8deg); }
.tube[aria-pressed="true"] .tube-body { box-shadow: 0 0 0 2px #fff, 0 0 0 4.5px var(--ink); }
.tool-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tool-row button { border: 0; background: var(--cream); border-radius: 16px; min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 800; font-size: 14px; }
.tool-row button svg { width: 22px; height: 22px; }
.tool-row button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.mixer[data-tool="add"] canvas { cursor: copy; }
.mixer[data-tool="erase"] canvas { cursor: cell; }
.mx-knobs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.knob { display: grid; justify-items: center; gap: 4px; font-size: 13px; }
.knob b { font-weight: 800; }
.knob .pct { font-variant-numeric: tabular-nums; color: var(--ink-soft); font-weight: 800; }
.dial { position: relative; width: 84px; height: 84px; border-radius: 50%; touch-action: none; cursor: grab;
  background: radial-gradient(circle at 50% 40%, #3A3747, #18161E); box-shadow: 0 6px 14px -6px rgba(0,0,0,.6), inset 0 0 0 2px rgba(255,255,255,.06); }
.dial:focus-visible { outline: 3px solid var(--k); outline-offset: 3px; }
.dial svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(135deg); }
.dial circle { fill: none; stroke-width: 7; stroke-linecap: round; }
.dial .trk { stroke: rgba(255,255,255,.12); stroke-dasharray: 75 100; }
.dial .val { stroke: var(--k); stroke-dasharray: calc(var(--v, 0) * 75) 100; filter: drop-shadow(0 0 4px var(--k)); }
.dial .cap { position: absolute; inset: 20%; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #5A5768, #2B2935); transform: rotate(var(--rot, -135deg)); box-shadow: 0 2px 4px rgba(0,0,0,.5); }
.dial .cap i { position: absolute; left: 50%; top: 8%; width: 5px; height: 26%; margin-left: -2.5px; border-radius: 3px; background: var(--k); box-shadow: 0 0 6px var(--k); }
.tool-row button span { white-space: nowrap; } .tool-row button { padding: 0 6px; gap: 5px; font-size: 13px; }

/* ---------- savet za boju (T35) ---------- */
.advice { display: flex; gap: 10px; align-items: center; background: var(--cream); border-radius: 16px; padding: 10px 14px; font-weight: 800; }
.advice.perfect, .advice.close { background: #E3F6EA; color: #1C6E3B; }
.adv-dot { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--d, #2FA35B); box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--line); }
.adv-dot.ok { background: #2FA35B; }

/* ---------- početna: 4 brze akcije u mreži 2×2 ---------- */
.quick { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .quick { grid-template-columns: repeat(4, 1fr); } }

/* ---------- bojanka (T36) ---------- */
.bj-stage { position: relative; width: 100%; max-width: 100%; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: var(--shadow); touch-action: none; }
.bj-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.bj-shade, .bj-lines { mix-blend-mode: multiply; pointer-events: none; }
.bj-orig { pointer-events: none; z-index: 3; }
.bj-stage[data-tool="fill"], .bj-stage:not([data-tool]) { cursor: copy; }
.bj-stage[data-tool="brush"] { cursor: crosshair; }
.bj-marks { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.bj-mark { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 15px; color: #fff; background: #F25C54; box-shadow: 0 0 0 3px #fff, 0 4px 10px rgba(0,0,0,.3); animation: pop .3s var(--ease-out) both; }
.bj-mark.ok { background: #2FA35B; }
ol.bj-list { margin: 0; padding-left: 26px; display: grid; gap: 10px; }
ol.bj-list li { font-weight: 700; }
ol.bj-list li::marker { font-weight: 900; color: #F25C54; }
ol.bj-list li { display: list-item; }
ol.bj-list li > * { vertical-align: middle; }
ol.bj-list .adv-dot { display: inline-block; width: 20px; height: 20px; margin-right: 8px; }
.bj-pair { display: inline-flex; gap: 3px; margin-left: 8px; }
.bj-pair i { width: 18px; height: 18px; border-radius: 5px; box-shadow: 0 0 0 1.5px var(--line); }
.colors label.more { cursor: pointer; }
.bj-hint { pointer-events: none; }

/* ---------- slikaj po koracima (T37–T39) ---------- */
.vg-img { width: 100%; height: auto; display: block; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.vg-img.pixel { image-rendering: auto; }
.vg-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.vg-tabs::-webkit-scrollbar { display: none; }
.vg-tabs button { flex: none; border: 0; background: var(--card); border-radius: 999px; min-height: 44px; padding: 6px 16px; font-weight: 900; box-shadow: var(--shadow); }
.vg-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.vg-step { display: grid; gap: 10px; }
.vg-step-head { display: flex; align-items: center; gap: 10px; }
.vg-step-head .num { width: 36px; height: 36px; border-radius: 50%; background: var(--main); color: var(--main-ink); display: grid; place-items: center; font-family: var(--f-hand); font-weight: 700; font-size: 20px; flex: none; }
.vg-chips, .vg-legend { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.vg-chip { display: inline-flex; align-items: center; gap: 5px; background: var(--cream); border-radius: 999px; padding: 3px 10px 3px 3px; font-weight: 900; font-size: 14px; }
.vg-chip i { width: 22px; height: 22px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1.5px rgba(0,0,0,.12); }
.vg-time { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border-radius: 14px; padding: 8px 12px; font-weight: 800; font-size: 14px; }
.vg-time svg { width: 20px; height: 20px; flex: none; }
.vg-time.fast { background: #FFF1C9; color: #7A5600; }
.vg-time.wait { background: #E6F2FF; color: #1F4E8A; }
.vg-time .btn { margin-left: auto; }
.vg-pal { display: grid; gap: 12px; }
.vg-col { display: grid; grid-template-columns: 60px 1fr; gap: 12px; align-items: center; }
.vg-sw { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; box-shadow: inset 0 0 0 3px #fff, 0 0 0 1.5px var(--line); }
.vg-sw b { background: rgba(255,255,255,.85); border-radius: 999px; padding: 0 8px; font-size: 14px; }
.vg-rec { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin: 4px 0; }
.vg-part { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-size: 14px; }
.vg-part i { width: 16px; height: 16px; border-radius: 50%; background: #ccc; box-shadow: 0 0 0 1px rgba(0,0,0,.2); }
.vg-rec .plus { color: var(--ink-soft); font-weight: 900; }
.vg-mini { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: middle; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.vg-blend { display: grid; gap: 8px; padding-top: 10px; border-top: 1.5px dashed var(--line); }
.vg-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; height: 34px; border-radius: 10px; overflow: hidden; }
.vg-strip i { display: block; }
.vg-tips { margin: 0; padding-left: 22px; display: grid; gap: 6px; font-weight: 600; }
.vg-mist { display: grid; gap: 8px; }
details.mist { background: var(--cream); border-radius: 16px; padding: 10px 14px; }
details.mist summary { display: flex; align-items: center; gap: 10px; font-weight: 900; list-style: none; cursor: pointer; }
details.mist summary::-webkit-details-marker { display: none; }
details.mist summary .num { width: 26px; height: 26px; border-radius: 50%; background: #F25C54; color: #fff; display: grid; place-items: center; font-size: 13px; flex: none; }
details.mist p { margin-top: 6px; }
.timer-chip { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(104px + env(safe-area-inset-bottom, 0px)); z-index: 65; display: flex; align-items: center; gap: 8px;
  background: #1F4E8A; color: #fff; border-radius: 999px; padding: 8px 10px 8px 14px; font-weight: 900; box-shadow: 0 10px 24px -10px rgba(0,0,0,.5); }
.timer-chip svg { width: 20px; height: 20px; }
.timer-chip b { font-variant-numeric: tabular-nums; font-size: 18px; min-width: 4ch; }
.timer-chip button { border: 0; background: rgba(255,255,255,.2); color: #fff; width: 30px; height: 30px; border-radius: 50%; font-size: 18px; }

/* ---------- provere, očekivanja, vodič (T51–T55) ---------- */
.expect { display: grid; gap: 6px; background: #FFF7E0; border-left: 8px solid var(--main); }
.expect b { font-family: var(--f-hand); font-size: 20px; }
.expect a { font-weight: 800; }
.checks { display: grid; gap: 10px; background: var(--cream); border-radius: 16px; padding: 12px; }
.chk { display: grid; gap: 8px; }
.chk p { font-weight: 700; }
.chk.done > p { color: var(--ink-soft); }
.chk-fix { background: #fff; border-radius: 12px; padding: 10px 12px; display: grid; gap: 4px; border-left: 4px solid #F5A524; }
.chk-good { display: flex; align-items: center; gap: 6px; color: #1C6E3B; font-weight: 800; }
.chk-good svg { width: 18px; height: 18px; }
.seg5 { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 6px; }
.seg5 button { border: 2px solid var(--line); background: var(--card); border-radius: 14px; min-height: 48px; font-weight: 900; font-size: 14px; padding: 4px; line-height: 1.15; }
.seg5 button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.seg3.two { grid-template-columns: 1fr 1fr; }
.vg-time.calm { background: #E3F6EA; color: #1C6E3B; }
.medtip { font-weight: 700; color: #7A5600; background: #FFF7E0; border-radius: 12px; padding: 8px 12px; }
.ug-pic { background: var(--cream); border-radius: 16px; padding: 10px; }
.ug-pic .fig { max-width: 360px; margin: 0 auto; }
.ug-look { display: grid; place-items: center; background: var(--cream); border-radius: 16px; padding: 18px; }
.ug-look svg { width: 64px; height: 64px; color: var(--ink-soft); }
.ug-card { border-left: 8px solid var(--main); }
.advanced-cta { border: 2px dashed var(--main); }
.blendkey { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.blendkey i { width: 34px; height: 0; border-top: 3px dashed #E0457B; }

/* ---------- jednostavna početna (T63) ---------- */
.start { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; align-items: center; text-decoration: none; background: var(--main); color: var(--main-ink);
  border-radius: 28px; padding: 14px 18px 14px 14px; box-shadow: 0 8px 0 -2px color-mix(in srgb, var(--main) 70%, black), var(--shadow); transition: transform .12s var(--ease-out); }
.start:active { transform: translateY(2px); }
.start-fig { background: #fff; border-radius: 20px; padding: 6px; display: block; }
.start-fig .fig .f { stroke: var(--ink); }
.start-txt { display: grid; gap: 2px; min-width: 0; }
.start-txt b { font-family: var(--f-hand); font-size: 28px; line-height: 1.05; }
.start-txt span { font-weight: 800; opacity: .8; }
.start-go { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.75); display: grid; place-items: center; }
.start-go svg { width: 26px; height: 26px; }
.big3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.big3.two { grid-template-columns: 1fr 1fr; }
.big3 a { display: grid; justify-items: center; align-content: center; gap: 6px; text-align: center; text-decoration: none; min-height: 116px; padding: 12px 8px;
  background: color-mix(in srgb, var(--q) 16%, white); border-radius: 24px; }
.big3 a svg { width: 38px; height: 38px; color: var(--q); filter: brightness(.85); }
.big3 a b { font-family: var(--f-hand); font-size: 18px; line-height: 1.1; }
.big3 a span { font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.theme-line { display: flex; align-items: center; gap: 10px; text-decoration: none; background: var(--card); border-radius: 18px; padding: 12px 14px; box-shadow: var(--shadow); font-weight: 700; }
.theme-line i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); flex: none; }
.theme-line span { flex: 1; min-width: 0; }
.theme-line svg { width: 20px; height: 20px; flex: none; }
.lan { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; background: var(--cream); border-radius: 18px; padding: 12px; }
.lan .qr svg { width: 120px; height: 120px; display: block; background: #fff; border-radius: 10px; }
.lan .code { word-break: break-all; display: inline-block; margin-top: 6px; }
@media (max-width: 380px) { .lan { grid-template-columns: 1fr; justify-items: center; text-align: center; } }
.home-qr { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; text-align: left; border: 0; background: var(--card); border-radius: 22px; padding: 12px; box-shadow: var(--shadow); cursor: zoom-in; }
.home-qr .qr svg { width: 96px; height: 96px; display: block; }
.home-qr > span:last-child { display: grid; gap: 2px; }
.home-qr b { font-family: var(--f-hand); font-size: 20px; }
.home-qr .code { justify-self: start; margin-top: 4px; }
.qr-full { position: fixed; inset: 0; z-index: 80; background: #fff; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; padding: 24px; cursor: zoom-out; }
.qr-full .qr-big svg { width: min(78vw, 70vh); height: min(78vw, 70vh); display: block; }
.qr-full b { font-family: var(--f-hand); font-size: 30px; }

/* ---------- mešalica: boja na četkici u uglu + podsticaj (T66) ---------- */
.mx-chip { position: absolute; left: 10px; top: 10px; display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); box-shadow: 0 2px 8px -2px rgba(60, 40, 10, .35); font-size: 13px; font-weight: 800; pointer-events: none; }
.mx-chip .sw { width: 34px; height: 34px; border-radius: 50%; display: block; box-shadow: inset 0 0 0 3px #fff, 0 0 0 1.5px var(--line); }
.mixer-wrap { scroll-margin-top: 8px; }
.tool-row button.nudge { background: #FFE27A; animation: mx-nudge 1.4s var(--ease-out) infinite; }
@keyframes mx-nudge { 0%, 60%, 100% { transform: rotate(0); } 10% { transform: rotate(-5deg); } 20% { transform: rotate(5deg); } 30% { transform: rotate(-3deg); } 40% { transform: rotate(0); } }
@media (prefers-reduced-motion: reduce) { .tool-row button.nudge { animation: none; } }

/* ---------- T67: igre preko celog ekrana na telefonu ---------- */
.playbar { display: flex; align-items: center; gap: 12px; }
.playbar .pb-t { flex: 1; min-width: 0; }
.playbar > .icon-btn { display: none; }
.pb-help { font-weight: 900; font-size: 20px; color: var(--ink); }
@media (max-width: 700px) {
  body.play .topbar, body.play .nav, body.play .bg { display: none; }
  body.play main { padding-bottom: 0; }
  body.play .view {
    position: fixed; left: 0; right: 0; top: 0; height: 100vh; height: 100svh; z-index: 40; overflow: hidden;
    background: var(--cream); display: flex; flex-direction: column; gap: 8px;
    padding: max(10px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) max(10px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
  }
  body.play .view > * { flex: none; }
  body.play .toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }

  /* Pogodi boju: naslov, cilj/četkica, papir koji staje u ostatak visine, dugmad na dnu */
  body.play .playbar { gap: 10px; }
  body.play .playbar > .icon-btn { display: grid; width: 42px; height: 42px; background: var(--card); box-shadow: var(--shadow); }
  body.play .playbar h1.big { font-size: 24px; line-height: 1.1; }
  body.play .playbar .eyebrow, body.play .playbar .sub { display: none; }
  body.play .mixkind.big button { min-height: 36px; font-size: 14px; }
  body.play .card.guess { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 22px; }
  body.play .card.guess > * { flex: none; }
  body.play .guess .cmp { gap: 10px; }
  body.play .guess .cmp > div { font-size: 12px; gap: 2px; }
  body.play .guess .cmp .sw { width: 44px; height: 44px; border-radius: 14px; }
  body.play .guess .cmp .score b { font-size: 28px; line-height: 1; }
  body.play .guess .cmp .score span { font-size: 12px; }
  body.play .guess .advice { padding: 6px 10px; font-size: 14px; line-height: 1.25; }
  body.play .guess .adv-dot { width: 20px; height: 20px; }
  body.play #g-mix { flex: 1 1 0; min-height: 0; max-width: none; display: flex; flex-direction: column; }
  body.play #g-mix .mixer-wrap { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
  body.play #g-mix .mx-tools, body.play #g-mix .mx-knobs { flex: none; gap: 6px; }
  body.play #g-mix .mx-stage { flex: 1 1 0; min-height: 110px; container-type: size; display: grid; place-items: center; }
  body.play #g-mix .mixer { width: min(100cqw, 100cqh); border-radius: 20px; }
  body.play #g-mix .tubes { padding-top: 4px; }
  body.play #g-mix .tube { height: 52px; }
  body.play #g-mix .tool-row button { min-height: 44px; }
  body.play #g-mix .dial { width: 62px; height: 62px; }
  body.play .g-actions { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 6px; }
  body.play .g-actions .btn { min-height: 52px; padding: 4px 6px; font-size: 13px; line-height: 1.1; white-space: normal; text-align: center; justify-content: center; gap: 4px; }
  body.play .g-actions .btn.main { font-size: 16px; }
  body.play .g-actions .btn svg { width: 18px; height: 18px; }
  body.play .guess .best { display: none; }
  body.play .play-tips { display: none; }
  body.play .view.tips-open .play-tips {
    display: grid; position: fixed; z-index: 45; left: 12px; right: 12px; top: calc(max(10px, env(safe-area-inset-top, 0px)) + 52px);
    max-height: 70svh; overflow: auto; box-shadow: 0 24px 60px -12px rgba(30, 20, 10, .55); cursor: pointer;
  }

  /* Brzo crtanje (faza crtanja): tema + tajmer gore, tabla, alati se skroluju u svom delu, „Gotovo“ uvek na dnu */
  body.play #room { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 8px !important; }
  body.play #room > * { flex: none; }
  body.play #room .roomhead { display: none; }
  body.play #room .theme-card.slim { padding: 8px 14px; border-radius: 18px; gap: 0; }
  body.play #room .theme-card.slim h2 { font-size: 20px; line-height: 1.15; }
  body.play #room .theme-card .eyebrow { font-size: 11px; }
  body.play #room .timer { gap: 4px; }
  body.play #room .timer span { font-size: 20px; }
  body.play #room .timer span svg { width: 20px; height: 20px; }
  body.play #room .timer i { height: 8px; }
  body.play #gpad { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
  body.play #gpad .canvas-wrap { flex: none; align-self: center; width: auto; max-width: 100%; height: min(calc((100vw - 24px) * .75), 44svh); border-radius: 16px; }
  body.play #gpad .toolbar { flex: 1 1 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 10px; gap: 10px; border-radius: 18px; }
  body.play #gdone { min-height: 52px; }
}
