/* Simbicom Cartoons: big, bright and easy for small fingers */
:root { --brand: #6a1b9a; --brand-2: #8e24aa; --bg: #f3e5f5; --surface: #ffffff; --text: #261a2e; --muted: #6d6275; --line: #e1d5e7; --ok: #2e7d32; }
@media (prefers-color-scheme: dark) { :root { --bg: #17121b; --surface: #231b29; --text: #f1e9f5; --muted: #b3a6bb; --line: #3a2f42; } }
* { box-sizing: border-box; }
body { margin: 0; font-family: "Comic Sans MS", "Trebuchet MS", "Segoe UI", system-ui, sans-serif; background: var(--bg); color: var(--text); }
.hidden { display: none !important; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .center { text-align: center; }
button, select, input { font: inherit; }
button { cursor: pointer; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 12px; padding: .5rem .9rem; }
button.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
button.danger { color: #c62828; }
button.big { font-size: 1.2rem; padding: .8rem 1.2rem; width: 100%; }
button.icon { font-size: 1.3rem; padding: .35rem .6rem; }
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: .6rem max(16px, env(safe-area-inset-left)); background: linear-gradient(90deg, #6a1b9a, #1e88e5); color: #fff; }
.brand { display: flex; align-items: center; gap: .6rem; font-size: 1.25rem; } .brand img { width: 36px; height: 36px; }
.status { display: flex; align-items: center; gap: .5rem; }
.top button.icon { background: rgba(255,255,255,.18); border: 0; color: #fff; }
.pill { font-size: .8rem; padding: .2rem .6rem; border-radius: 999px; background: rgba(255,255,255,.22); }
.pill.ok { background: #2e7d32; }
main { max-width: 1200px; margin: 0 auto; padding: 12px 16px 40px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1.2rem; }
.narrow { max-width: 420px; margin: 2rem auto; display: grid; gap: .8rem; }
label { display: grid; gap: .25rem; }
label.check { display: flex; align-items: center; gap: .5rem; }
input, select { padding: .55rem .7rem; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.levels { display: flex; gap: .5rem; overflow-x: auto; padding: .3rem 0 .6rem; scrollbar-width: thin; }
.level { flex: none; font-size: 1.1rem; font-weight: 700; border-radius: 999px; padding: .55rem 1.1rem; border: 2px solid var(--line); }
.level.on { background: #fdd835; border-color: #f9a825; color: #3e2723; }
.filters { justify-content: space-between; margin-bottom: .6rem; } .filters label { display: flex; align-items: center; gap: .4rem; }
.stage-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 10px; margin-bottom: 1rem; }
.screen { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; }
.screen canvas, .screen video, .screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.screen:fullscreen { border-radius: 0; }
.start { position: absolute; inset: 0; margin: auto; width: 180px; height: 180px; border-radius: 50%; border: 0; background: #fdd835; color: #4a148c; font-size: 4rem; display: grid; place-items: center; box-shadow: 0 8px 30px rgba(0,0,0,.35); animation: pulse 1.6s ease-in-out infinite; }
.start span { display: block; font-size: 1rem; font-weight: 700; margin-top: -1.5rem; }
@keyframes pulse { 50% { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .start { animation: none; } }
.now { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .5rem .2rem 0; flex-wrap: wrap; }
.subject { margin: 1.2rem 0 .5rem; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .7rem; }
.tile { display: flex; flex-direction: column; gap: .2rem; text-align: left; padding: .45rem; border-radius: 14px; border: 2px solid var(--line); }
.tile.on { border-color: #f9a825; box-shadow: 0 0 0 3px #fdd83588; }
.tile small { color: var(--muted); }
.thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, #8e24aa, #1e88e5); }
.thumb img { width: 100%; height: 100%; object-fit: cover; } .thumb .emoji { font-size: 2.6rem; }
.thumb .tick, .thumb .saved, .thumb .new { position: absolute; font-size: .8rem; font-weight: 700; border-radius: 999px; padding: .1rem .45rem; }
.thumb .tick { left: 6px; top: 6px; background: #2e7d32; color: #fff; }
.thumb .saved { right: 6px; bottom: 6px; background: rgba(0,0,0,.6); color: #fff; }
.thumb .new { right: 6px; top: 6px; background: #e53935; color: #fff; }
dialog { border: 0; padding: 0; background: transparent; max-width: min(520px, calc(100vw - 32px)); width: 100%; }
dialog::backdrop { background: rgba(0,0,0,.45); }
dialog .card { display: grid; gap: .7rem; }
hr { border: 0; border-top: 1px solid var(--line); width: 100%; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: #263238; color: #fff; padding: .7rem 1.1rem; border-radius: 12px; z-index: 20; max-width: calc(100vw - 32px); }
@media (max-width: 520px) { .tiles { grid-template-columns: repeat(2, 1fr); } .brand b { font-size: 1.05rem; } }
