/* אחר צהריים בלי ריבים — paleta ניצוץ IL: #1C3A5E · #FF6B35 · #F2B138 · #EAF6FF · #1E2233
   RTL: todo con propiedades lógicas (inline-start/end). Fuentes estáticas locales: Rubik (títulos) + Heebo (texto). */
@font-face { font-family: "Rubik"; src: url("../fonts/Rubik-700.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "Rubik"; src: url("../fonts/Rubik-800.woff2") format("woff2"); font-weight: 800 900; font-display: swap; }
@font-face { font-family: "Heebo"; src: url("../fonts/Heebo-400.woff2") format("woff2"); font-weight: 100 500; font-display: swap; }
@font-face { font-family: "Heebo"; src: url("../fonts/Heebo-700.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Heebo"; src: url("../fonts/Heebo-800.woff2") format("woff2"); font-weight: 800 1000; font-display: swap; }

:root {
  --navy: #1C3A5E;
  --navy-2: #14304F;
  --deep: #0F2238;
  --blue: #2F5F94;
  --blue-2: #3E78B8;
  --orange: #FF6B35;
  --orange-2: #FF8A5C;
  --gold: #F2B138;
  --gold-2: #FFD27A;
  --sky: #EAF6FF;
  --sky-2: #D9E8F7;
  --white: #FFFFFF;
  --ink: #1E2233;
  --soft: #4A5D7A;
  --line: #D3E2F1;
  --ok: #1E8C6E;
  --radius: 22px;
  --radius-s: 14px;
  --shadow: 0 10px 30px rgba(15, 34, 56, .14);
  --shadow-s: 0 4px 14px rgba(15, 34, 56, .10);
  --head: "Rubik", "Heebo", system-ui, sans-serif;
  --body: "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --nav-h: 72px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; overflow-x: hidden; }
body {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--sky);
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
body.dark { background: var(--deep); }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.15; margin: 0 0 .4em; color: var(--navy); }
h1 { font-size: clamp(30px, 7vw, 46px); font-weight: 800; }
h2 { font-size: clamp(24px, 5.4vw, 34px); font-weight: 800; }
h3 { font-size: 21px; font-weight: 700; }
p { margin: 0 0 .8em; }
a { color: var(--blue); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; z-index: 99; background: var(--gold); color: var(--deep); padding: 10px 16px; border-radius: 10px; font-weight: 800; }
.skip:focus { inset-inline-start: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 22px; border: 0; border-radius: 999px;
  font-family: var(--head); font-weight: 800; font-size: 19px; line-height: 1.1;
  text-decoration: none; cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-primary { background: var(--orange); color: var(--deep); box-shadow: 0 6px 0 #D4501F, 0 12px 24px rgba(255, 107, 53, .35); }
.btn-primary:hover { background: var(--orange-2); }
.btn-primary:active { box-shadow: 0 2px 0 #D4501F; transform: translateY(3px); }
.btn-gold { background: var(--gold); color: var(--deep); box-shadow: 0 5px 0 #C98E1E; }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 5px 0 var(--navy-2); }
.btn-ghost { background: transparent; color: var(--navy); border: 2px solid var(--line); }
.btn-ghost-light { background: rgba(255,255,255,.08); color: #fff; border: 2px solid rgba(255,255,255,.28); }
.btn-xl { min-height: 64px; font-size: 22px; padding: 16px 30px; width: 100%; }
.btn-wide { width: 100%; }
.btn-sm { min-height: 44px; font-size: 16px; padding: 8px 16px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row > .btn { flex: 1 1 200px; }

/* ---------- Zámek ---------- */
.lock {
  min-height: 100vh; display: grid; place-items: center; padding: 24px 16px;
  background:
    radial-gradient(circle at 15% 10%, rgba(242,177,56,.25), transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(255,107,53,.30), transparent 45%),
    linear-gradient(160deg, var(--navy) 0%, var(--deep) 100%);
}
.lock-card {
  width: 100%; max-width: 440px; background: #fff; border-radius: 28px; padding: 32px 24px 26px;
  box-shadow: 0 30px 60px rgba(0,0,0,.35); text-align: center;
}
.lock-icon { margin: -72px auto 12px; border-radius: 24px; box-shadow: var(--shadow); }
.brand-kicker { font-family: var(--head); font-weight: 700; color: var(--blue); font-size: 14px; margin-bottom: 4px; }
.lock h1 span, .logo-txt b { color: var(--orange); }
.lock-sub { color: var(--soft); }
.lock form { text-align: start; margin-top: 18px; }
.lock label { display: block; font-weight: 800; margin-bottom: 6px; color: var(--navy); }
.lock input {
  width: 100%; min-height: 58px; border-radius: 16px; border: 2px solid var(--line); padding: 10px 16px;
  font-family: var(--head); font-size: 28px; font-weight: 800; letter-spacing: .25em; text-align: center; color: var(--navy); background: var(--sky);
}
.lock input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 4px rgba(47,95,148,.2); }
.lock-err { min-height: 24px; color: #B3261E; font-weight: 800; margin: 8px 0; }
.lock-note { font-size: 14px; color: var(--soft); margin: 16px 0 0; }
.shake { animation: shake .4s; }
@keyframes shake { 20%,60% { transform: translateX(-8px); } 40%,80% { transform: translateX(8px); } }

/* ---------- Horní lišta ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 16px 10px; background: var(--navy); color: #fff;
  box-shadow: 0 2px 16px rgba(0,0,0,.18);
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; min-height: 44px; }
.logo img { border-radius: 10px; }
.logo-txt { font-family: var(--head); font-weight: 700; font-size: 19px; line-height: 1; }
.topnav { display: none; margin-inline-start: auto; gap: 4px; }
.topnav a { color: #DCE7F4; text-decoration: none; font-weight: 800; padding: 10px 14px; border-radius: 999px; }
.topnav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.topnav a[aria-current="page"] { background: var(--gold); color: var(--deep); }
.icon-btn { margin-inline-start: auto; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; cursor: pointer; }
.icon-btn svg { width: 24px; height: 24px; }

/* ---------- Spodní navigace ---------- */
.bottomnav {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr);
  background: #fff; border-top: 1px solid var(--line); padding: 6px 4px calc(6px + var(--safe-b));
  box-shadow: 0 -6px 24px rgba(15,34,56,.10);
}
.bottomnav a { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 56px; justify-content: center; text-decoration: none; color: var(--soft); font-size: 13px; font-weight: 800; border-radius: 14px; }
.bottomnav svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.bottomnav a[aria-current="page"] { color: var(--navy); background: var(--sky); }
.bottomnav a[aria-current="page"] svg { stroke: var(--orange); }

.view { display: block; padding: 0 0 calc(var(--nav-h) + 28px + var(--safe-b)); outline: none; }
.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 16px; }
.section { padding: 22px 0 8px; }
.kicker { display: inline-block; font-family: var(--head); font-weight: 800; font-size: 14px; color: var(--orange); margin-bottom: 6px; }
.lead { font-size: 18px; color: var(--soft); }
.muted { color: var(--soft); }
.small { font-size: 14px; }

/* ---------- Hlavička stránky ---------- */
.pagehead {
  background: linear-gradient(165deg, var(--navy) 0%, var(--blue) 100%); color: #fff; padding: 22px 0 54px; position: relative; overflow: hidden;
}
.pagehead::after { content: ""; position: absolute; inset-inline-end: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(242,177,56,.18); }
.pagehead h1, .pagehead h2 { color: #fff; }
.pagehead p { color: #D8E6F5; max-width: 640px; }
.pagehead .kicker { color: var(--gold); }
.pull { margin-top: -38px; position: relative; z-index: 2; }

/* ---------- Karty ---------- */
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-s); padding: 20px; }
.card + .card { margin-top: 14px; }
.grid { display: grid; gap: 14px; }
.two-col > div + div { margin-top: 14px; }

/* Domů */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 60%, var(--blue) 100%); color: #fff; padding: 20px 0 64px; position: relative; overflow: hidden;
}
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1.5px, transparent 1.5px); background-size: 22px 22px; }
.hero .wrap { position: relative; }
.hero-hello { font-family: var(--head); color: var(--gold); font-weight: 700; font-size: 18px; margin: 0 0 2px; }
.hero h1 { color: #fff; margin-bottom: 8px; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero p { color: #D8E6F5; font-size: 18px; max-width: 520px; }
.hero-img { border-radius: 24px; border: 4px solid rgba(255,255,255,.9); box-shadow: 0 18px 40px rgba(0,0,0,.35); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; margin: 16px 0 18px; transform: rotate(1.2deg); }
.hero .btn-xl { max-width: 520px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: #fff; border-radius: 18px; padding: 14px 8px; text-align: center; box-shadow: var(--shadow-s); text-decoration: none; color: var(--ink); }
.stat b { display: block; font-family: var(--head); font-size: 30px; line-height: 1; color: var(--navy); }
.stat span { font-size: 13px; font-weight: 800; color: var(--soft); }
.stat .e { font-size: 22px; display: block; margin-bottom: 4px; }

.order { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.order li { background: var(--sky); border-radius: 999px; padding: 6px 12px; font-weight: 800; color: var(--navy); font-size: 15px; }
.order li.arrow { background: none; padding: 0; color: var(--orange); }
.order li.now { background: var(--orange); color: var(--deep); }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 150px; padding: 72px 16px 16px; border-radius: var(--radius);
  text-decoration: none; color: #fff; overflow: hidden; box-shadow: var(--shadow-s); transition: transform .15s;
}
.tile:hover { transform: translateY(-3px); }
.tile .ti { position: absolute; top: 14px; inset-inline-start: 14px; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.2); font-size: 24px; }
.tile b { font-family: var(--head); font-size: 20px; line-height: 1.1; }
.tile small { font-size: 14px; opacity: .92; font-weight: 700; }
.tile.t-orange { background: linear-gradient(150deg, var(--orange), #E8521C); color: var(--deep); }
.tile.t-orange .ti { background: rgba(255,255,255,.35); }
.tile.t-blue { background: linear-gradient(150deg, var(--blue-2), var(--blue)); }
.tile.t-gold { background: linear-gradient(150deg, var(--gold-2), var(--gold)); color: var(--deep); }
.tile.t-gold .ti { background: rgba(255,255,255,.45); }
.tile.t-navy { background: linear-gradient(150deg, var(--navy), var(--deep)); }
.tile.t-deep { background: linear-gradient(150deg, #2F5F94, #1C3A5E); }
.tile.t-wide { grid-column: 1 / -1; min-height: 120px; }
.tile.t-wide b { font-size: 22px; }

.next-test { display: flex; gap: 14px; align-items: center; border-inline-start: 6px solid var(--orange); text-decoration: none; color: inherit; margin-bottom: 14px; }
.next-test .small { font-size: 12px; color: var(--soft); }
.next-test .big { font-family: var(--head); font-size: 34px; font-weight: 800; color: var(--orange); line-height: 1; min-width: 56px; text-align: center; }

.steps-start { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.steps-start li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.steps-start li::before { counter-increment: s; content: counter(s); width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: var(--deep); font-family: var(--head); font-weight: 800; font-size: 20px; display: grid; place-items: center; }
.steps-start b { color: var(--navy); }

/* ---------- Odpoledne (časovač) ---------- */
.session { background: radial-gradient(circle at 50% 0%, var(--blue) 0%, var(--navy) 45%, var(--deep) 100%); color: #fff; min-height: calc(100vh - 68px); padding: 18px 0 calc(var(--nav-h) + 30px); }
.session h2, .session h3 { color: #fff; }
.session p { color: #D8E6F5; }
.session .kicker { color: var(--gold); }
.blocks-dots { display: flex; gap: 8px; justify-content: center; margin: 6px 0 4px; }
.blocks-dots i { width: 38px; height: 10px; border-radius: 99px; background: rgba(255,255,255,.18); }
.blocks-dots i.done { background: var(--gold); }
.blocks-dots i.cur { background: var(--orange); }

.ring-wrap { position: relative; width: min(78vw, 340px); aspect-ratio: 1; margin: 12px auto 8px; }
.ring-wrap svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(255,255,255,.12); stroke-width: 16; }
.ring-fg { fill: none; stroke: var(--orange); stroke-width: 16; stroke-linecap: round; transition: stroke-dashoffset .5s linear; }
.ring-fg.pause { stroke: var(--gold); }
.ring-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-time { font-family: var(--head); font-weight: 800; font-size: clamp(60px, 19vw, 92px); line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.ring-label { font-weight: 800; color: var(--gold); font-size: 17px; }
.ring-task { color: #D8E6F5; font-weight: 700; max-width: 220px; margin: 6px auto 0; font-size: 15px; }
.ring-task.paused { color: var(--gold); }
.ring-end { color: #BFD2E8; font-weight: 700; font-size: 14px; margin-top: 4px; }
.ring-end bdi { color: #fff; font-weight: 800; }
.session-ctrl { display: grid; gap: 12px; max-width: 520px; margin: 14px auto 0; }
.session-ctrl .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.session-ctrl .row2 .btn { white-space: nowrap; font-size: 17px; padding: 10px 12px; }
.bell { text-align: center; margin: 14px auto 0; max-width: 520px; background: rgba(255,255,255,.08); border: 1px dashed rgba(242,177,56,.6); border-radius: 16px; padding: 12px 14px; font-weight: 800; color: var(--gold-2); }

.prep { max-width: 640px; margin: 0 auto; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.check-item { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,.08); border: 2px solid rgba(255,255,255,.14); border-radius: 18px; padding: 12px 14px; cursor: pointer; min-height: 64px; transition: background .2s, border-color .2s; }
.check-item input { position: absolute; opacity: 0; pointer-events: none; }
.check-item .box { flex: none; width: 34px; height: 34px; border-radius: 10px; border: 3px solid rgba(255,255,255,.5); display: grid; place-items: center; transition: all .2s; }
.check-item .box svg { width: 22px; height: 22px; stroke: var(--deep); stroke-width: 3.5; fill: none; opacity: 0; }
.check-item b { display: block; color: #fff; font-size: 17px; }
.check-item small { color: #BFD2E8; font-size: 14px; font-weight: 700; }
.check-item.on { background: rgba(242,177,56,.16); border-color: var(--gold); }
.check-item.on .box { background: var(--gold); border-color: var(--gold); }
.check-item.on .box svg { opacity: 1; }
.check-item:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label, .field .lbl { font-weight: 800; color: var(--navy); }
.session .field label, .session .field .lbl { color: #fff; }
.input, select.input {
  width: 100%; min-height: 54px; border-radius: 14px; border: 2px solid var(--line); background: #fff; padding: 10px 14px; font-size: 17px; color: var(--ink);
}
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47,95,148,.2); }
.session .input { background: rgba(255,255,255,.95); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 2px solid var(--line); background: #fff; color: var(--navy); font-weight: 800; cursor: pointer; font-size: 15.5px;
}
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.session .chip { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.25); }
.session .chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--deep); }
.chips-sub .chip { min-height: 40px; font-size: 14.5px; border-style: dashed; }
.chips-sub .chip[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: var(--deep); border-style: solid; }

.pause-ideas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.pause-ideas div { background: rgba(255,255,255,.08); border-radius: 16px; padding: 12px; }
.pause-ideas .e { font-size: 26px; }
.pause-ideas b { display: block; color: #fff; }
.pause-ideas small { color: #BFD2E8; font-weight: 700; font-size: 13.5px; }

.review { text-align: center; max-width: 560px; margin: 0 auto; }
.review .bigbell { font-size: 76px; line-height: 1; margin: 10px 0; animation: ring 1s ease-in-out 3; display: inline-block; }
@keyframes ring { 0%,100% { transform: rotate(0); } 20% { transform: rotate(-18deg); } 40% { transform: rotate(16deg); } 60% { transform: rotate(-10deg); } 80% { transform: rotate(6deg); } }
.tech-mini { display: flex; gap: 12px; align-items: center; background: rgba(255,255,255,.08); border-radius: 16px; padding: 10px 12px; margin-top: 12px; text-align: start; }
.tech-mini small { color: #BFD2E8; font-weight: 700; font-size: 14px; }
.tech-mini img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: none; }
.tech-mini b { color: #fff; display: block; }
.tech-mini q { color: var(--gold-2); font-weight: 800; quotes: '"' '"'; }

.sound-toggle { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.1); border: 0; color: #fff; border-radius: 999px; min-height: 44px; padding: 6px 14px; font-weight: 800; cursor: pointer; }
.sound-toggle[aria-pressed="false"] { opacity: .7; }

/* ---------- Techniky ---------- */
.filters { position: sticky; top: 68px; z-index: 10; background: var(--sky); padding: 12px 0 10px; }
.filters .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.filters .chips::-webkit-scrollbar { display: none; }
.filters .chip { flex: none; }
.filters .chips-sub { margin-top: 8px; }
.tech-grid { display: grid; gap: 16px; }
.tcard { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-s); display: flex; flex-direction: column; }
.tcard-img { position: relative; }
.tcard-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.tcard-num { position: absolute; inset-inline-start: 14px; bottom: -22px; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-family: var(--head); font-weight: 800; font-size: 26px; box-shadow: var(--shadow-s); border: 3px solid #fff; }
.c-orange { background: var(--orange); color: var(--deep); }
.c-blue { background: var(--blue); color: #fff; }
.c-gold { background: var(--gold); color: var(--deep); }
.c-navy { background: var(--navy); color: #fff; }
.tried-badge { position: absolute; inset-inline-end: 12px; top: 12px; background: var(--ok); color: #fff; font-weight: 800; font-size: 13px; padding: 4px 10px; border-radius: 99px; }
.tcard-body { padding: 30px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tcard-tag { font-weight: 800; font-size: 14px; color: var(--orange); }
.tcard h3 { margin: 0; font-size: 24px; }
.tcard .what { color: var(--soft); margin: 0; }
.how { counter-reset: h; list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.how li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; }
.how li::before { counter-increment: h; content: counter(h); width: 30px; height: 30px; border-radius: 50%; background: var(--sky); color: var(--navy); font-weight: 900; display: grid; place-items: center; font-size: 15px; }
.example { background: linear-gradient(135deg, #FFF3E0, #FFE8DC); border-radius: 16px; padding: 12px 14px; border-inline-start: 5px solid var(--orange); }
.example .lbl { font-weight: 800; font-size: 14px; color: #B8461A; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.example p { margin: 4px 0 0; color: var(--ink); }
.book-tag { background: var(--navy); color: #fff; border-radius: 99px; padding: 1px 8px; font-size: 11.5px; letter-spacing: .04em; }
.phrase { background: var(--navy); color: #fff; border-radius: 16px; padding: 12px 14px; font-weight: 800; }
.phrase small { display: block; color: var(--gold); font-size: 13px; }
.phrase q { quotes: '"' '"'; font-size: 18px; }
.why { font-size: 15.5px; color: var(--soft); margin: 0; }
.why b { color: var(--navy); }
.tcard-actions { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 4px; }
.tcard-actions .btn { font-size: 16px; min-height: 48px; padding: 8px 12px; }
.empty { text-align: center; padding: 30px 10px; color: var(--soft); }

/* ---------- Písemka ---------- */
.plan-form { display: grid; gap: 4px; }
.plan-day { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 16px 0; border-top: 1px dashed var(--line); }
.plan-day:first-of-type { border-top: 0; }
.plan-date { width: 66px; text-align: center; background: var(--sky); border-radius: 14px; padding: 8px 4px; align-self: start; }
.plan-date b { display: block; font-family: var(--head); font-size: 28px; line-height: 1; color: var(--navy); }
.plan-date span { font-size: 13px; font-weight: 800; color: var(--soft); display: block; }
.plan-date b.time { font-size: 20px; }
.plan-date.today { background: var(--orange); }
.plan-date.today b, .plan-date.today span { color: var(--deep); }
.plan-day h4 { margin: 0 0 4px; font-size: 19px; }
.plan-day .min { display: inline-block; background: var(--gold); color: var(--deep); font-weight: 900; border-radius: 99px; padding: 1px 10px; font-size: 13.5px; margin-inline-start: 6px; vertical-align: 2px; }
.plan-day ul { margin: 6px 0 8px; padding-inline-start: 20px; }
.plan-day li { margin-bottom: 2px; }
.tech-links { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.tech-link { font-size: 14px; font-weight: 800; color: var(--blue); background: var(--sky); border: 0; border-radius: 99px; padding: 6px 12px; cursor: pointer; min-height: 36px; }
.done-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding-block: 6px; padding-inline: 8px 14px; border-radius: 999px; border: 2px solid var(--line); background: #fff; font-weight: 800; color: var(--navy); cursor: pointer; }
.done-toggle .box { width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--line); display: grid; place-items: center; }
.done-toggle .box svg { width: 18px; height: 18px; stroke: #fff; stroke-width: 3.5; fill: none; opacity: 0; }
.done-toggle[aria-pressed="true"] { border-color: var(--ok); color: var(--ok); }
.done-toggle[aria-pressed="true"] .box { background: var(--ok); border-color: var(--ok); }
.done-toggle[aria-pressed="true"] .box svg { opacity: 1; }
.plan-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.plan-head h3 { margin: 0; }
.progress { height: 10px; background: var(--sky); border-radius: 99px; overflow: hidden; margin: 10px 0 4px; }
.progress i { display: block; height: 100%; background: linear-gradient(to left, var(--gold), var(--orange)); border-radius: 99px; transition: width .4s; }
.note { background: var(--sky); border-radius: 14px; padding: 12px 14px; font-size: 15.5px; }
.note.warn { background: #FFF1E8; border-inline-start: 5px solid var(--orange); }
.link-btn { background: none; border: 0; color: var(--blue); font-weight: 800; text-decoration: underline; cursor: pointer; padding: 8px 4px; min-height: 44px; }

/* ---------- Hvězdy ---------- */
.streak-card { display: flex; align-items: center; gap: 16px; background: linear-gradient(135deg, var(--orange), #E8521C); color: var(--deep); }
.streak-card .flame { font-size: 52px; line-height: 1; }
.streak-card b { font-family: var(--head); font-size: 44px; line-height: 1; display: block; color: var(--deep); }
.streak-card span { font-weight: 800; }
.star-board { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 14px 0; }
.star-cell { aspect-ratio: 1; border-radius: 14px; background: var(--sky); display: grid; place-items: center; position: relative; font-weight: 900; color: #8AA2BE; font-size: 16px; border: 2px dashed #C9DAEC; }
.star-cell.on { border: 0; }
.star-cell svg { width: 78%; height: 78%; position: absolute; }
.star-cell.on { background: #FFF6DE; color: transparent; }
.star-cell.on svg path { fill: var(--gold); stroke: #D99A1E; }
.star-cell.pop svg { animation: pop .6s cubic-bezier(.2,1.6,.4,1); }
@keyframes pop { 0% { transform: scale(0) rotate(-40deg); } 100% { transform: scale(1) rotate(0); } }
.star-cell.goal { background: var(--navy); color: var(--gold); font-size: 22px; }
.star-cell.goal.on { background: var(--gold); }
.medals { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 520px) { .medals { grid-template-columns: repeat(2, 1fr); } }
.medal { display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 16px; padding: 12px; box-shadow: var(--shadow-s); }
.medal .m { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; flex: none; background: radial-gradient(circle at 35% 30%, var(--gold-2), var(--gold) 60%, #C98E1E); box-shadow: inset 0 -3px 0 rgba(0,0,0,.15), 0 0 0 4px #FFF0CC; }
.medal b { display: block; font-size: 15px; color: var(--navy); line-height: 1.2; }
.medal small { font-size: 12.5px; color: var(--soft); font-weight: 700; line-height: 1.25; display: block; }
.medal.locked .m { background: var(--sky-2); box-shadow: none; filter: grayscale(1); opacity: .55; }
.medal.locked b { color: var(--soft); }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.week div { border-radius: 12px; padding: 8px 2px; background: var(--sky); font-weight: 800; font-size: 13px; color: var(--soft); }
.week div .d { display: block; font-size: 20px; line-height: 1.2; }
.week div.ok { background: #FFF6DE; color: var(--navy); }
.week div.today { outline: 3px solid var(--orange); outline-offset: -3px; }

/* ---------- Pro rodiče ---------- */
.pair { display: grid; gap: 8px; }
.pair + .pair { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.say { display: flex; gap: 10px; align-items: flex-start; border-radius: 14px; padding: 10px 12px; font-weight: 800; }
.say i { font-style: normal; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; }
.say.no { background: #FDECEC; color: #8E2A2A; text-decoration: line-through; text-decoration-color: rgba(142,42,42,.45); }
.say.no i { background: #E25555; color: #fff; text-decoration: none; }
.say.yes { background: #E6F5EF; color: #135C47; font-size: 18px; }
.say.yes i { background: var(--ok); color: #fff; }
.rules { counter-reset: r; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.rules li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; }
.rules li::before { counter-increment: r; content: counter(r); width: 44px; height: 44px; border-radius: 14px; background: var(--blue); color: #fff; font-family: var(--head); font-weight: 800; font-size: 22px; display: grid; place-items: center; }
.rules b { color: var(--navy); display: block; }
.quote { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 22px; font-family: var(--head); font-size: 22px; line-height: 1.25; font-weight: 700; }
.quote span { color: var(--gold); }
.phr-grid { display: grid; gap: 10px; }
.phr { background: #fff; border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow-s); display: flex; gap: 12px; align-items: center; }
.phr .n { flex: none; }
.phr q { quotes: '"' '"'; font-weight: 800; color: var(--navy); }
.phr { border: 0; text-align: start; cursor: pointer; font: inherit; color: inherit; }
.phr .tcard-num.n { position: static; width: 44px; height: 44px; font-size: 20px; border: 0; box-shadow: none; }
.phr small { display: block; color: var(--soft); font-weight: 700; }

/* ---------- Panel ---------- */
.sheet { position: fixed; inset: 0; z-index: 60; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(8,18,32,.6); animation: fade .2s; }
.sheet-panel {
  position: absolute; inset-inline: 0; bottom: 0; max-height: 88vh; overflow-y: auto; background: #fff; border-radius: 26px 26px 0 0;
  padding: 26px 18px calc(22px + var(--safe-b)); animation: up .25s cubic-bezier(.2,.9,.3,1);
}
.sheet-x { position: sticky; top: 0; float: left; float: inline-end; margin-block-start: -12px; margin-inline: 8px -6px; z-index: 5; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--sky); font-size: 26px; line-height: 1; cursor: pointer; color: var(--navy); box-shadow: 0 2px 8px rgba(15,34,56,.18); }
#sheet-body { clear: none; }
#sheet-body .tcard { box-shadow: none; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.switch { position: relative; width: 60px; height: 34px; flex: none; }
.switch input { opacity: 0; width: 100%; height: 100%; position: absolute; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; background: var(--line); border-radius: 99px; transition: .2s; }
.switch span::after { content: ""; position: absolute; inset-inline-start: 4px; top: 4px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 2px 4px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--orange); }
.switch input:checked + span::after { transform: translateX(-26px); }
[dir="ltr"] .switch input:checked + span::after { transform: translateX(26px); }
.switch input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.seg { display: inline-flex; background: var(--sky); border-radius: 999px; padding: 4px; }
.seg button { border: 0; background: none; min-height: 40px; padding: 6px 16px; border-radius: 999px; font-weight: 800; color: var(--soft); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--navy); color: #fff; }

/* ---------- Oslava ---------- */
.party { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: radial-gradient(circle, rgba(28,58,94,.92), rgba(8,18,32,.96)); }
.party canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.party-card { position: relative; background: #fff; border-radius: 30px; padding: 30px 22px 24px; text-align: center; max-width: 420px; width: 100%; box-shadow: 0 30px 60px rgba(0,0,0,.4); animation: zoom .5s cubic-bezier(.2,1.5,.4,1); }
@keyframes zoom { from { transform: scale(.6); opacity: 0; } }
.party-medal { width: 128px; height: 128px; margin: -94px auto 10px; border-radius: 50%; display: grid; place-items: center; font-size: 62px; background: radial-gradient(circle at 35% 30%, var(--gold-2), var(--gold) 60%, #C98E1E); box-shadow: 0 0 0 8px #fff, 0 0 0 14px rgba(242,177,56,.5), 0 20px 40px rgba(0,0,0,.3); }
.party-card .reward { background: var(--sky); border-radius: 16px; padding: 12px; font-family: var(--head); font-size: 22px; color: var(--navy); font-weight: 800; margin: 12px 0 16px; }

.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 20px + var(--safe-b)); transform: translateX(-50%) translateY(20px); background: var(--deep); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 800; opacity: 0; pointer-events: none; transition: .25s; z-index: 70; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.footer-note { text-align: center; color: var(--soft); font-size: 13.5px; padding: 26px 16px 0; }

/* ---------- Tablet / desktop ---------- */
@media (min-width: 700px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .tile.t-wide { grid-column: span 2; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .medals { grid-template-columns: repeat(3, 1fr); }
  .pause-ideas { grid-template-columns: repeat(4, 1fr); }
  .sheet-panel { left: 50%; right: auto; bottom: auto; top: 50%; transform: translate(-50%, -50%); width: min(620px, 92vw); border-radius: 26px; animation: fade .2s; max-height: 86vh; }
}
@media (min-width: 1000px) {
  body { font-size: 18px; }
  .bottomnav { display: none; }
  .topnav { display: flex; }
  .icon-btn { margin-inline-start: 8px; }
  .view { padding-bottom: 50px; }
  .session { min-height: calc(100vh - 68px); padding-bottom: 50px; }
  .hero { padding: 40px 0 90px; }
  .hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; }
  .hero-img { margin: 0; order: 2; aspect-ratio: 3 / 2; }
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
  .home-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
  .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
  .two-col > .card + .card, .two-col > div + div { margin-top: 0; }
  .session-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; max-width: 1000px; margin: 0 auto; }
  .filters { top: 68px; }
  .toast { bottom: 30px; }
  .star-board { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Agregados de la versión hebrea ---------- */
.nv { color: var(--navy); }
.wt { color: #fff; }
.opt { font-weight: 600; opacity: .8; }
.session .field .opt { color: #BFD2E8; opacity: 1; }
.stat b small { font-size: 16px; color: var(--soft); }
.stat.flat { box-shadow: none; background: var(--sky); }
.card.on-dark { color: var(--ink); text-align: center; margin-top: 16px; }
.install-card { margin-top: 14px; display: flex; gap: 14px; align-items: center; }
.install-card .e { font-size: 34px; }
.prep-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.demo-note { text-align: center; color: var(--gold) !important; }
.form-err { color: #B3261E; font-weight: 800; min-height: 1em; margin: 0 0 8px; }
.sheet-h { padding-inline-end: 44px; }
details > summary { cursor: pointer; font-weight: 800; color: var(--navy); min-height: 32px; }
.danger { color: #B3261E !important; }
input[type="date"] { text-align: start; }
q { quotes: '"' '"'; }
.session .card h2, .session .card h3 { color: var(--navy); }
.session .card p { color: var(--soft); }
.sheet-x { margin-block-end: 10px; }
