/* EB IT Radio Kids (v0.5.7): big, bright and simple. */
:root {
  --bg: #fff8e7; --card: #ffffff; --ink: #1d2b3a; --muted: #5b6b7b; --line: #e7dcc4;
  --blue: #2b7bd9; --red: #ef5350; --yellow: #ffca28; --green: #43a047; --purple: #8e5bd6; --orange: #fb8c00;
  --radius: 22px; --shadow: 0 6px 0 rgba(0, 0, 0, .08);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #14202c; --card: #1d2c3b; --ink: #f4f7fb; --muted: #a9b8c8; --line: #2d4155; --shadow: 0 6px 0 rgba(0, 0, 0, .35); }
}
:root[data-theme="dark"] { --bg: #14202c; --card: #1d2c3b; --ink: #f4f7fb; --muted: #a9b8c8; --line: #2d4155; --shadow: 0 6px 0 rgba(0, 0, 0, .35); }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 18px/1.45 "Trebuchet MS", "Comic Sans MS", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; width: 100%; max-width: 980px; margin: 0 auto; padding: 8px 16px 24px; outline: none; }
a { color: var(--blue); }
button { font: inherit; color: inherit; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible { outline: 4px solid var(--yellow); outline-offset: 3px; }
h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); margin: 8px 0 14px; }
h2 { font-size: 1.35rem; margin: 18px 0 10px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

.k-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; max-width: 980px; margin: 0 auto; width: 100%; }
.k-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.5rem; }
.k-brand img { border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.k-brand span { color: var(--red); letter-spacing: .5px; }
.k-mini[hidden] { display: none; }
.k-mini { display: flex; align-items: center; gap: 8px; background: var(--card); border-radius: 999px; padding: 6px 8px 6px 14px; box-shadow: var(--shadow); max-width: 60%; }
.k-mini span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.k-loading { text-align: center; padding: 40px; color: var(--muted); }

.k-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.k-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 150px; padding: 16px; border-radius: var(--radius); border: 0; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.3rem; box-shadow: var(--shadow); cursor: pointer; text-align: center; }
.k-tile .k-emo { font-size: 3.2rem; line-height: 1; }
.k-tile:active { transform: translateY(3px); box-shadow: 0 3px 0 rgba(0, 0, 0, .1); }
.k-tile.blue { background: var(--blue); } .k-tile.red { background: var(--red); } .k-tile.green { background: var(--green); }
.k-tile.purple { background: var(--purple); } .k-tile.orange { background: var(--orange); } .k-tile.yellow { background: var(--yellow); color: #3a2a00; }
.k-tile[aria-disabled="true"] { filter: grayscale(.8); opacity: .65; cursor: not-allowed; }
.k-tile small { font-weight: 600; font-size: .85rem; opacity: .95; }

.k-card { background: var(--card); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin: 14px 0; }
.k-back { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 700; padding: 8px 14px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); color: var(--ink); }
.k-btn { border: 0; border-radius: 999px; padding: 14px 26px; font-weight: 800; font-size: 1.1rem; cursor: pointer; background: var(--blue); color: #fff; box-shadow: var(--shadow); }
.k-btn.green { background: var(--green); } .k-btn.red { background: var(--red); } .k-btn.ghost { background: var(--card); color: var(--ink); border: 2px solid var(--line); box-shadow: none; }
.k-btn.sm { padding: 8px 16px; font-size: .95rem; }
.k-btn:disabled { opacity: .5; cursor: not-allowed; }
.k-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.k-big-play { width: 120px; height: 120px; border-radius: 50%; font-size: 3rem; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.k-now { font-size: 1.15rem; font-weight: 700; margin: 10px 0 4px; }
.k-note { background: rgba(255, 202, 40, .18); border: 2px dashed var(--yellow); border-radius: 16px; padding: 12px 14px; }
.k-player { text-align: center; }

.k-stories { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.k-story { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.k-story img, .k-story .k-cover { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: linear-gradient(135deg, var(--purple), var(--blue)); }
.k-story .k-cover { display: flex; align-items: center; justify-content: center; font-size: 4rem; }
.k-story div { padding: 10px 12px; font-weight: 700; }
.k-story small { display: block; font-weight: 400; color: var(--muted); }
.k-chapters { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.k-chapters button { width: 100%; text-align: left; display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; border: 2px solid var(--line); background: var(--card); cursor: pointer; font-weight: 700; }
.k-chapters button.on { border-color: var(--blue); background: rgba(43, 123, 217, .1); }
.k-chapters .k-n { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); color: #3a2a00; display: flex; align-items: center; justify-content: center; }
.k-chapters .k-done { margin-left: auto; color: var(--green); }
.k-progress { height: 10px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 10px 0; }
.k-progress div { height: 100%; width: 0; background: var(--green); transition: width .5s linear; }

/* games */
.k-mem { display: grid; gap: 10px; grid-template-columns: repeat(4, 1fr); max-width: 560px; margin: 0 auto; }
.k-mem button { aspect-ratio: 1; border: 0; border-radius: 16px; font-size: clamp(1.8rem, 8vw, 3rem); cursor: pointer; background: var(--blue); color: #fff; box-shadow: var(--shadow); transition: transform .25s; }
.k-mem button.up, .k-mem button.got { background: var(--card); color: var(--ink); border: 3px solid var(--line); }
.k-mem button.got { border-color: var(--green); }
.k-simon { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 420px; margin: 0 auto; }
.k-simon button { aspect-ratio: 1; border: 0; border-radius: 28px; cursor: pointer; opacity: .55; box-shadow: var(--shadow); font-size: 2.4rem; }
.k-simon button.lit { opacity: 1; transform: scale(1.04); }
.k-simon .c0 { background: var(--red); } .k-simon .c1 { background: var(--blue); } .k-simon .c2 { background: var(--yellow); } .k-simon .c3 { background: var(--green); }
.k-odd { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; max-width: 460px; margin: 0 auto; }
.k-odd button { aspect-ratio: 1.3; border-radius: 22px; border: 3px solid var(--line); background: var(--card); font-size: clamp(2.6rem, 12vw, 4rem); cursor: pointer; box-shadow: var(--shadow); }
.k-odd button.right { border-color: var(--green); background: rgba(67, 160, 71, .18); }
.k-odd button.wrong { border-color: var(--red); background: rgba(239, 83, 80, .15); }
.k-colour { display: grid; gap: 14px; }
.k-colour svg { width: 100%; max-width: 520px; margin: 0 auto; display: block; background: #fff; border-radius: 22px; box-shadow: var(--shadow); touch-action: manipulation; }
.k-colour svg [data-part] { cursor: pointer; stroke: #222; stroke-width: 3; stroke-linejoin: round; }
.k-palette { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.k-palette button { width: 48px; height: 48px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 0 0 2px var(--line); cursor: pointer; }
.k-palette button.on { box-shadow: 0 0 0 4px var(--ink); }
.k-pics { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.k-win { text-align: center; font-size: 1.4rem; font-weight: 800; margin: 12px 0; }
.k-score { text-align: center; font-weight: 700; color: var(--muted); }

.k-pin { display: flex; gap: 10px; justify-content: center; margin: 12px 0; }
.k-pin input { width: 9ch; font-size: 1.6rem; text-align: center; letter-spacing: .4em; padding: 10px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); color: var(--ink); }
.k-choice { display: grid; gap: 10px; }
.k-choice label { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 2px solid var(--line); border-radius: 16px; cursor: pointer; }
.k-choice input { width: 22px; height: 22px; margin-top: 2px; }

.k-foot { text-align: center; padding: 18px 16px 28px; color: var(--muted); font-size: .85rem; }
.k-foot p { margin: 6px auto; max-width: 640px; }
.k-lic { display: flex; gap: 14px; justify-content: center; align-items: center; }
.k-lic img { background: #fff; border-radius: 6px; padding: 3px 6px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---- v0.5.8: no zooming, nine home buttons, PIN keypad, drawing, more games, printing ---- */
html, body { touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; overscroll-behavior: none; }
input, textarea, select { -webkit-user-select: text; user-select: text; font-size: 16px; }
.k-center { justify-content: center; text-align: center; }
.k-tiles.nine { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 520px) { .k-tiles.nine { grid-template-columns: repeat(2, 1fr); } }
.k-tile.c-main { background: var(--orange); } .k-tile.c-kids { background: var(--blue); } .k-tile.c-story { background: #3949ab; }
.k-tile.c-stories { background: var(--purple); } .k-tile.c-shows { background: #00897b; } .k-tile.c-games { background: var(--green); }
.k-tile.c-draw { background: var(--red); } .k-tile.c-colour { background: var(--yellow); color: #3a2a00; } .k-tile.c-pictures { background: #6d4c41; }
.k-select { padding: 10px 12px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); color: var(--ink); font: inherit; }
.k-field { display: grid; gap: 6px; margin: 10px 0; }
.k-field input { padding: 12px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); color: var(--ink); font: inherit; }
.k-level { font-size: .9rem; font-weight: 700; margin-left: 10px; padding: 4px 10px; border-radius: 999px; background: var(--yellow); color: #3a2a00; vertical-align: middle; }
.k-clock { font-weight: 800; font-variant-numeric: tabular-nums; padding: 6px 12px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); }
.k-night { background: linear-gradient(160deg, #1a237e, #311b92); color: #fff; }
.k-night .k-now { color: #fff; }
.k-bedtime { margin: 12px auto; max-width: 320px; min-height: 200px; }

.k-modal { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 50; }
.k-modal-box { background: var(--card); color: var(--ink); border-radius: 24px; padding: 22px; width: 100%; max-width: 380px; text-align: center; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); }
.k-pin-dots { font-size: 1.8rem; letter-spacing: .2em; min-height: 2.2rem; margin: 6px 0 12px; }
.k-keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.k-keypad button { font-size: 1.6rem; font-weight: 800; padding: 16px 0; border-radius: 18px; border: 2px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; }
.k-keypad button:active { transform: scale(.96); }

.k-toolbar { display: grid; gap: 10px; margin: 8px 0 12px; }
.k-sizes { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.k-paper { position: relative; width: 100%; max-width: 1200px; margin: 0 auto; aspect-ratio: 4 / 3; background: #fff; border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.k-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
img.k-canvas { object-fit: contain; }
.k-lines { pointer-events: none; }
body.k-drawing { overflow: hidden; }
body.k-drawing main { padding-bottom: 8px; }
body.k-drawing .k-foot { display: none; }
body.k-drawing h1 { margin: 4px 0 6px; font-size: 1.5rem; }
body.k-drawing .k-top { padding-top: 4px; padding-bottom: 4px; }
body.k-drawing .k-score { margin: 4px 0; min-height: 1.5em; }

.k-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.k-thumb { border: 0; padding: 0; border-radius: 18px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); cursor: pointer; text-align: left; }
.k-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: #fff; }
.k-thumb span { display: block; padding: 8px 10px; font-weight: 700; }

.k-odd.three { grid-template-columns: repeat(3, 1fr); max-width: 560px; }
.k-odd.six { grid-template-columns: repeat(3, 1fr); max-width: 600px; }
.k-board { max-width: 560px; margin: 0 auto; background: var(--card); border-radius: 22px; box-shadow: var(--shadow); padding: 8px; }
.k-dots { width: 100%; display: block; touch-action: none; }
.k-dot circle { fill: var(--blue); cursor: pointer; }
.k-dot text { fill: var(--ink); font-weight: 700; pointer-events: none; }
.k-dot.on circle { fill: var(--green); }
.k-dots line { stroke: var(--red); stroke-width: 1.6; stroke-linecap: round; }
.k-dots.done line { stroke: var(--green); }
.k-slide { display: grid; gap: 8px; max-width: 460px; margin: 0 auto; aspect-ratio: 1; }
.k-slide button { border: 0; border-radius: 14px; font-size: clamp(1.2rem, 6vw, 2.4rem); font-weight: 800; color: #fff; cursor: pointer; box-shadow: var(--shadow); }
.k-gap { border-radius: 14px; background: rgba(0, 0, 0, .06); }
.k-count-show { font-size: clamp(2rem, 9vw, 3.6rem); line-height: 1.3; word-break: break-all; }
.k-count-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; max-width: 560px; margin: 0 auto; }
.k-count-opts .k-btn { font-size: 1.6rem; padding: 18px 0; }
.k-shapes { display: grid; gap: 16px; }
.k-holes, .k-tray { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; padding: 12px; border-radius: 22px; }
.k-holes { background: var(--card); box-shadow: var(--shadow); }
.k-tray { background: rgba(43, 123, 217, .08); min-height: 120px; }
.k-hole, .k-piece { width: clamp(76px, 15vw, 120px); aspect-ratio: 1; }
.k-hole svg, .k-piece svg { width: 100%; height: 100%; }
.k-piece { cursor: grab; touch-action: none; position: relative; z-index: 2; }
.k-piece.drag { z-index: 20; cursor: grabbing; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .25)); }
.k-piece.done { visibility: hidden; }

#k-print { display: none; }
@media print {
  body.k-printing > *:not(#k-print) { display: none !important; }
  body.k-printing #k-print { display: block; }
  #k-print img { width: 100%; height: auto; }
  @page { margin: 12mm; }
}

/* v0.5.9: the Christmas countdown */
.k-xmas { display: flex; gap: 16px; align-items: center; background: linear-gradient(135deg, #c62828, #2e7d32); color: #fff; }
.k-xmas h2 { margin: 0 0 4px; color: #fff; }
.k-xmas p { margin: 0 0 8px; }
.k-xmas-big { font-size: 3.4rem; line-height: 1; }

/* v0.6.13: the radio's line on the status page */
.k-svc a { color: inherit; }
.k-svc .dot { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; background: var(--green); }
.k-svc.lvl-maintenance .dot, .k-svc.lvl-degraded .dot { background: var(--orange); }
.k-svc.lvl-outage { color: var(--red); font-weight: 700; }
.k-svc.lvl-outage .dot { background: var(--red); }

/* ---- v0.6.16: more games ---- */
.k-ans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 460px; margin: 0 auto; }
.k-ans.six { grid-template-columns: repeat(3, 1fr); }
.k-ans button { min-height: 76px; border-radius: 20px; border: 3px solid var(--line); background: var(--card); color: var(--ink); font-size: 1.6rem; font-weight: 800; cursor: pointer; box-shadow: var(--shadow); }
.k-ans button.right { border-color: var(--green); outline: 4px solid var(--green); }
.k-ans button.wrong { border-color: var(--red); outline: 4px solid var(--red); }
.k-swatch { display: inline-block; width: 120px; height: 120px; border-radius: 50%; border: 4px solid var(--line); }
.k-stroop { font-size: clamp(3rem, 16vw, 5rem); font-weight: 900; letter-spacing: .05em; -webkit-text-stroke: 1px rgba(128, 128, 128, .6); }
.k-bubbles { position: relative; height: min(62vh, 520px); overflow: hidden; border-radius: var(--radius); background: linear-gradient(#bfe6ff, #e9f7ff); box-shadow: var(--shadow); touch-action: none; }
.k-bub { position: absolute; bottom: -100px; border: 2px solid rgba(255, 255, 255, .8); border-radius: 50%; cursor: pointer; animation: k-rise linear forwards; padding: 0; }
.k-bub.pop { animation: k-pop .25s ease-out forwards; }
.k-bub.bad { filter: grayscale(1); }
@keyframes k-rise { to { transform: translateY(calc(-1 * min(62vh, 520px) - 120px)); } }
@keyframes k-pop { to { transform: scale(1.6); opacity: 0; } }
.k-whack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 420px; margin: 0 auto; touch-action: none; }
.k-hole9 { aspect-ratio: 1; border-radius: 50%; border: 0; background: radial-gradient(#5d4037 55%, #8d6e63 56%); font-size: clamp(2.4rem, 12vw, 3.6rem); cursor: pointer; box-shadow: var(--shadow); }
.k-hole9.up { background: radial-gradient(#6d4c41 55%, #a1887f 56%); }
.k-hole9.good { outline: 4px solid var(--green); } .k-hole9.bad { outline: 4px solid var(--red); }
.k-snapcard { width: min(60vw, 220px); aspect-ratio: .72; margin: 10px auto; display: grid; place-items: center; font-size: clamp(4rem, 22vw, 6.5rem); background: var(--card); border: 4px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.k-snapcard.good { border-color: var(--green); } .k-snapcard.bad { border-color: var(--red); }
.k-snapbtn { font-size: 1.6rem; padding: 18px 48px; touch-action: manipulation; }
.k-maze { display: grid; width: 100%; max-width: 480px; box-sizing: border-box; margin: 0 auto; background: var(--card); border-radius: 12px; padding: 6px; box-shadow: var(--shadow); touch-action: none; }
.k-cell { box-sizing: border-box; min-width: 0; overflow: hidden; aspect-ratio: 1; display: grid; place-items: center; font-size: clamp(.9rem, 5vw, 1.6rem); border: 0 solid var(--ink); }
.k-pad { display: grid; grid-template-columns: repeat(3, 64px); grid-template-areas: ". n ." "w . e" ". s ."; gap: 6px; justify-content: center; margin: 12px 0; }
.k-pad button { padding: 10px 0; font-size: 1.5rem; }
.k-pad-N { grid-area: n; } .k-pad-S { grid-area: s; } .k-pad-W { grid-area: w; } .k-pad-E { grid-area: e; }
.k-slots { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 10px 0; }
.k-slot { width: 44px; height: 52px; display: grid; place-items: center; border-bottom: 4px solid var(--line); font-size: 1.6rem; font-weight: 900; }
.k-letters { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 10px 0; }
.k-letter { width: 52px; height: 56px; border-radius: 14px; border: 0; background: var(--blue); color: #fff; font-size: 1.6rem; font-weight: 900; cursor: pointer; box-shadow: var(--shadow); }
.k-letter:disabled { opacity: .25; }
.k-ttt { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 340px; margin: 0 auto; }
.k-ttt-cell { aspect-ratio: 1; border-radius: 18px; border: 3px solid var(--line); background: var(--card); font-size: clamp(2.2rem, 12vw, 3.4rem); cursor: pointer; }
.k-peg { font-size: 1.6rem; padding: 8px 14px; }
.k-code-rows { display: grid; gap: 6px; max-width: 420px; margin: 0 auto; }
.k-code-row { display: flex; justify-content: space-between; background: var(--card); border-radius: 14px; padding: 8px 14px; font-size: 1.4rem; box-shadow: var(--shadow); }
.k-code-pegs { letter-spacing: .1em; }
.k-joke .k-now { font-size: 1.4rem; }
.k-reveal { font-size: 1.5rem; font-weight: 800; color: var(--green); }

/* ---- v0.6.16: helpers ---- */
.k-tile.c-help { background: #00897b; }
.k-now-step { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); font-size: 1.3rem; }
.k-now-step .k-emo { font-size: 2.6rem; }
.k-ft-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: end; }
.k-ft-label { margin: 0 0 6px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); text-align: center; }
.k-ft { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 10px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); border: 4px solid var(--line); text-align: center; font-size: 1.2rem; }
.k-ft.now { border-color: var(--green); }
.k-ft-emo { font-size: clamp(3rem, 14vw, 4.5rem); line-height: 1; }
.k-ft-arrow { font-size: 2rem; padding-bottom: 40px; }
.k-day { list-style: none; padding: 0; display: grid; gap: 8px; }
.k-day button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 18px; border: 3px solid var(--line); background: var(--card); color: var(--ink); font-size: 1.15rem; font-weight: 700; cursor: pointer; text-align: left; }
.k-day li.now button { border-color: var(--green); }
.k-day li.done button { opacity: .55; }
.k-day-emo { font-size: 2rem; } .k-day-w { flex: 1; } .k-day-tick { font-size: 1.5rem; }
.k-feel { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.k-feel button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px; border-radius: 20px; border: 3px solid var(--line); background: var(--card); color: var(--ink); font-size: 1.05rem; font-weight: 800; cursor: pointer; box-shadow: var(--shadow); }
.k-feel-emo { font-size: 3rem; line-height: 1; }
.k-big { font-size: 1.2rem; } .k-big-emo { font-size: clamp(5rem, 30vw, 9rem); line-height: 1.1; }
.k-breathe { width: 110px; height: 110px; margin: 20px auto; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff9, #64b5f6); transition: transform 4s ease-in-out; }
.k-breathe.in { transform: scale(1.9); } .k-breathe.out { transform: scale(1); }
.k-pie { width: 180px; height: 180px; border-radius: 50%; margin: 12px auto; background: var(--line); }
.k-tips { list-style: none; padding: 0; display: grid; gap: 8px; font-size: 1.1rem; }
.k-show { position: fixed; inset: 0; z-index: 100; background: var(--card); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; }
.k-show-w { font-size: clamp(2rem, 9vw, 3.4rem); font-weight: 900; margin: 10px 0; }
.k-warn { position: fixed; z-index: 90; left: 50%; top: 12px; transform: translateX(-50%); width: min(94vw, 520px); display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 20px; background: var(--card); color: var(--ink); border: 4px solid var(--orange); box-shadow: 0 10px 30px rgba(0,0,0,.3); cursor: pointer; }
.k-warn > div { flex: 1; display: grid; gap: 6px; }
.k-warn-emo { font-size: 2.4rem; }
.k-warn-track { display: block; height: 10px; border-radius: 6px; background: var(--line); overflow: hidden; }
.k-warn-bar { display: block; height: 100%; width: 100%; background: var(--orange); }
.k-sched-edit { display: grid; gap: 6px; padding-left: 1.2em; }
.k-sched-edit li { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.k-sched-edit li > span { flex: 1; min-width: 9em; }
.k-sched-lib { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
/* Calm mode: nothing moving, no timers, softer colours */
html.k-calm { --red: #d98c8a; --blue: #6f9ad0; --yellow: #e9d27e; --green: #7fb582; --purple: #a38cc7; --orange: #dca56c; }
html.k-calm *, html.k-calm *::before, html.k-calm *::after { animation-duration: 0s !important; animation-iteration-count: 1 !important; }
html.k-calm .k-bub { animation-duration: 7s !important; }
html.k-calm .k-breathe { transition: transform 4s ease-in-out !important; }
html.k-calm .k-clock { display: none !important; }
@media (prefers-reduced-motion: reduce) { .k-bubbles .k-bub { animation: k-rise 8s linear forwards !important; } .k-bubbles .k-bub.pop { animation: none !important; opacity: 0; } }
