/* Burgi Kids – TV plátno 1920×1080 (LG OLED55A1, webOS 6 = Chromium 79).
   Pravidla: žádný flex `gap` (jen grid gap), žádné aspect-ratio / :has / backdrop-filter,
   animace jen transform + opacity. Čitelnost z 2–3 m: text ≥ 32 px, cíle kliknutí ≥ 120 px. */

:root {
  --ink: #2B2346;
  --ink-2: #6B6485;
  --ink-3: #A39DB8;
  --card: #FFFFFF;
  --radius: 40px;
  --shadow: 0 14px 36px rgba(67, 45, 130, 0.10);
  --font-head: 'Fredoka', 'Nunito', 'Segoe UI', sans-serif;
  --font: 'Nunito', 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; }
body.tv { background: #FFF8EE; color: var(--ink); font-family: var(--font); font-weight: 700;
  -webkit-font-smoothing: antialiased; -webkit-user-select: none; user-select: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
img { display: block; }

/* ── plátno ── */
.stage {
  position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; overflow: hidden;
  transform-origin: 0 0; padding: 44px 56px 48px;
  background:
    radial-gradient(circle at 8% 0%, var(--soft) 0, rgba(255,255,255,0) 42%),
    radial-gradient(circle at 100% 100%, var(--tint) 0, rgba(255,255,255,0) 48%),
    #FFFCF7;
}
.season-decor { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; pointer-events: none; z-index: 3; }

.card { position: relative; z-index: 1; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }

/* fokus (šipky ovladače i ukazovátko) */
/* Plynulé i na slabém SoC TV: animuje se jen transform (vlastní GPU vrstva) a opacity rámečku –
   žádné animované box-shadow (to se přepočítává každý snímek a na A1 to „sekalo“). */
[data-nav] { position: relative; outline: none; transition: transform .14s ease-out; will-change: transform; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
[data-nav]::after {
  content: ''; position: absolute; top: -10px; left: -10px; right: -10px; bottom: -10px; pointer-events: none;
  border: 8px solid var(--primary); border-radius: var(--ring-r, 50px); opacity: 0; transition: opacity .14s ease-out; will-change: opacity;
}
[data-nav]:focus, [data-nav].is-focus { transform: scale(1.03); z-index: 2; }
[data-nav]:focus::after, [data-nav].is-focus::after { opacity: 1; }

/* ── horní lišta ── */
.top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; height: 118px; margin-bottom: 30px; }
.hello h1 { font-family: var(--font-head); font-weight: 600; font-size: 68px; line-height: 1.05; color: var(--ink); letter-spacing: -0.5px; }
.hello .date { font-size: 34px; color: var(--ink-2); margin-top: 6px; }
.top-right { display: flex; align-items: center; }
.clock { font-family: var(--font-head); font-weight: 600; font-size: 96px; line-height: 1; color: var(--primary); }
.gear { --ring-r: 38px; display: block; width: 84px; height: 84px; border-radius: 28px; margin-left: 28px; padding: 14px; background: var(--card); box-shadow: var(--shadow); opacity: .7; }
.gear img { width: 56px; height: 56px; }

/* ── Home ── */
.home { display: grid; grid-template-columns: 620px 1164px; grid-gap: 24px; height: 842px; }
.col-left { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr 250px; grid-gap: 24px; }
.col-right { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 300px 214px 1fr; grid-gap: 24px; }

.hero { background: var(--soft); overflow: hidden; }
.hero .mascot { position: absolute; left: 50%; bottom: 40px; width: 380px; height: 380px; margin-left: -190px; object-fit: contain; }
.hero.with-dad .dad { position: absolute; left: 24px; bottom: 34px; height: 430px; width: auto; }
.hero.with-dad .bubble { left: 210px; right: 30px; padding: 22px 26px; font-size: 38px; }
.hero.with-dad .bubble::after { left: 34px; margin-left: 0; border-width: 26px 0 0 30px; border-color: #fff transparent transparent transparent; bottom: -24px; }
.hero.with-dad .mascot { left: auto; right: 30px; bottom: 44px; width: 250px; height: 250px; margin-left: 0; }
.bubble {
  position: absolute; left: 40px; right: 40px; top: 36px; padding: 26px 34px; border-radius: 34px;
  background: #fff; font-family: var(--font-head); font-weight: 600; font-size: 42px; line-height: 1.15; text-align: center; color: var(--ink);
  box-shadow: 0 8px 20px rgba(67, 45, 130, 0.08);
}
.bubble::after { content: ''; position: absolute; left: 50%; bottom: -22px; margin-left: -22px; border: 22px solid transparent; border-bottom: 0; border-top-color: #fff; }
.pack-chip { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font-size: 22px; color: var(--ink-3); }

.kids { display: flex; align-items: center; justify-content: center; padding: 0 24px; }
.kids .kid { margin: 0 30px; }
.kid { display: flex; flex-direction: column; align-items: center; padding: 14px 22px; border-radius: 36px; }
.avatar {
  display: flex; align-items: center; justify-content: center; width: 150px; height: 150px; border-radius: 50%; overflow: hidden;
  background: var(--kid); color: #fff; font-family: var(--font-head); font-size: 76px; font-weight: 600; border: 8px solid #fff; box-shadow: 0 0 0 6px var(--kid);
}
.avatar.photo { background: #fff; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.kid-name { margin-top: 14px; font-family: var(--font-head); font-size: 40px; font-weight: 600; }

/* týden u taťky */
.custody { padding: 32px 40px; }
.custody-head { display: flex; align-items: center; }
.custody-icon { width: 92px; height: 92px; margin-right: 24px; }
.custody h2 { font-family: var(--font-head); font-weight: 600; font-size: 52px; line-height: 1.1; }
.custody h2 b { color: var(--primary); font-size: 64px; }
.custody .sub { font-size: 30px; color: var(--ink-2); margin-top: 4px; }
.nights { list-style: none; display: flex; justify-content: space-between; margin-top: 26px; }
.night { display: flex; flex-direction: column; align-items: center; width: 116px; }
.night .moon { display: flex; align-items: center; justify-content: center; width: 92px; height: 92px; border-radius: 50%; background: #F1EEFA; }
.night .moon img { width: 60px; height: 60px; }
.night .day { margin-top: 6px; font-size: 28px; color: var(--ink-2); }
.night.past .moon { background: #FFF4CC; }
.night.past .moon img { width: 52px; height: 52px; }
.night.past .day { color: var(--ink-3); }
.night.tonight .moon { background: var(--primary); box-shadow: 0 0 0 8px var(--soft); }
.night.tonight .day { color: var(--primary); font-weight: 900; }
.night.mom .moon { background: #FFE8EE; }

/* timeline */
.timeline { padding: 26px 36px; }
.timeline h3 { font-family: var(--font-head); font-weight: 600; font-size: 36px; color: var(--ink-2); }
.events { list-style: none; display: flex; margin-top: 18px; }
.event { display: flex; align-items: center; flex: 1 1 0; min-width: 0; height: 118px; margin-right: 18px; padding: 12px 20px; border-radius: 28px; background: var(--tint); }
.event:last-child { margin-right: 0; }
.event img { width: 76px; height: 76px; margin-right: 14px; flex: none; }
.ev-text { display: flex; flex-direction: column; min-width: 0; }
.ev-title { font-size: 30px; line-height: 1.12; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-moons { display: flex; align-items: center; margin-top: 8px; height: 34px; }
.ev-moons img { width: 30px; height: 30px; margin-right: 1px; }
.ev-today { font-family: var(--font-head); font-size: 30px; color: var(--primary); }
.ev-more { font-family: var(--font-head); font-size: 32px; color: var(--primary); margin-left: 4px; }
.ev-when { font-size: 28px; color: var(--primary); white-space: nowrap; }
.timeline .empty { font-size: 30px; color: var(--ink-3); margin-top: 22px; }

/* dlaždice rutin */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); grid-gap: 24px; }
.tile {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
}
.tile img { width: 132px; height: 132px; }
.tile-name { margin-top: 12px; font-family: var(--font-head); font-weight: 600; font-size: 36px; line-height: 1.1; text-align: center; padding: 0 12px; }
.tile-sub { font-size: 28px; color: var(--ink-2); margin-top: 4px; }
.tile.suggested { background: var(--soft); }
.ribbon { position: absolute; top: 18px; right: 18px; padding: 4px 18px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 24px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; }

/* ── párování ── */
.pair { display: flex; align-items: center; justify-content: center; height: 100%; }
.pair-mascot { width: 420px; height: 420px; margin-right: 40px; }
.pair-card { padding: 60px 70px; width: 980px; }
.pair-card h1 { font-family: var(--font-head); font-weight: 600; font-size: 72px; color: var(--primary); }
.pair-card p { font-size: 36px; color: var(--ink-2); margin-top: 18px; }
.pair-card p b { color: var(--ink); }
.pair-code { font-family: var(--font-head); font-weight: 600; font-size: 160px; letter-spacing: 16px; color: var(--ink); margin: 28px 0 8px; }
.pair-card .sub { font-size: 28px; }

/* udržení TV vzhůru: přehrávané video = aktivita, spořič nenaskočí */
.keepawake { position: fixed; right: 0; bottom: 0; width: 4px; height: 4px; opacity: .01; pointer-events: none; }

/* ── toast ── */
.toast {
  position: fixed; left: 50%; bottom: 6vh; z-index: 10; transform: translateX(-50%); padding: 0.9em 1.6em; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 3.2vh; font-weight: 700; box-shadow: 0 10px 30px rgba(0,0,0,.2);
}
