/* ÜS Liivika laulik – sirvitav veebiraamat */

:root {
  --stage: #e7e3da;
  --stage-glow: #f3f0ea;
  --ink: #0f1b3d;
  --muted: #4a5670;
  --chrome: rgba(247, 245, 240, 0.82);
  --panel: #ffffff;
  --line: rgba(15, 27, 61, 0.14);
  --accent: #c4913a;
  --accent-ink: #8a5e17;
  --hl: rgba(196, 145, 58, 0.16);
  --btn: rgba(15, 27, 61, 0.06);
  --btn-hover: rgba(15, 27, 61, 0.12);
  --paper: #f8f5ec;
  --linen: #1d2f57;
  --shadow: rgba(15, 27, 61, 0.28);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --stage: #0c1626;
    --stage-glow: #13223a;
    --ink: #e8ebef;
    --muted: #a7b1bf;
    --chrome: rgba(12, 22, 38, 0.8);
    --panel: #101d31;
    --line: rgba(214, 220, 228, 0.14);
    --accent: #ffc72c;
    --accent-ink: #ffd966;
    --hl: rgba(255, 199, 44, 0.16);
    --btn: rgba(238, 241, 246, 0.07);
    --btn-hover: rgba(238, 241, 246, 0.14);
    --shadow: rgba(0, 0, 0, 0.55);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --stage: #0c1626;
  --stage-glow: #13223a;
  --ink: #e8ebef;
  --muted: #a7b1bf;
  --chrome: rgba(12, 22, 38, 0.8);
  --panel: #101d31;
  --line: rgba(214, 220, 228, 0.14);
  --accent: #ffc72c;
  --accent-ink: #ffd966;
  --hl: rgba(255, 199, 44, 0.16);
  --btn: rgba(238, 241, 246, 0.07);
  --btn-hover: rgba(238, 241, 246, 0.14);
  --shadow: rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
}

body {
  background: var(--stage);
  color: var(--ink);
  font-family: 'Manrope', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

button, input { font: inherit; color: inherit; }

.lk-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ─── Raam ─────────────────────────────────────────────────────────────────── */

.lk-app {
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.lk-top, .lk-bar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--chrome);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lk-top { border-bottom: 1px solid var(--line); }
.lk-bar { border-top: 1px solid var(--line); }

.lk-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px 0 8px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.lk-back:hover { color: var(--ink); background: var(--btn); }

.lk-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  min-width: 0;
}

.lk-brand img { width: 40px; height: 40px; flex: 0 0 40px; }
.lk-vapp-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .lk-vapp-light { display: none; }
  :root:not([data-theme="light"]) .lk-vapp-dark { display: block; }
}
:root[data-theme="dark"] .lk-vapp-light { display: none; }
:root[data-theme="dark"] .lk-vapp-dark { display: block; }

.lk-brand-text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.lk-brand-eyebrow {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.lk-brand-title {
  margin: 2px 0 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.lk-tools { display: flex; align-items: center; gap: 6px; }

.lk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--btn);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s;
}
.lk-btn:hover { background: var(--btn-hover); }
.lk-btn:focus-visible, .lk-back:focus-visible, .lk-toc-item:focus-visible, .lk-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.lk-btn svg { width: 20px; height: 20px; flex: 0 0 20px; }
.lk-btn svg[hidden] { display: none; }
.lk-btn[aria-pressed="true"] { background: var(--hl); color: var(--accent-ink); }
.lk-btn[disabled] { opacity: 0.4; cursor: default; }

/* ─── Lava ja raamat ───────────────────────────────────────────────────────── */

.lk-stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 55% at 50% 45%, var(--stage-glow), transparent 70%),
    var(--stage);
}

.lk-book-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.lk-book-wrap[hidden] { display: none; }

.lk-floor {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -18px;
  height: 36px;
  border-radius: 50%;
  background: var(--shadow);
  filter: blur(18px);
  pointer-events: none;
}

.lk-book-wrap.is-front .lk-floor { left: 54%; }
.lk-book-wrap.is-rear .lk-floor { right: 54%; }

.lk-page {
  background: var(--paper);
  overflow: hidden;
}

/* Köite vari kuulub lehe enda juurde, et see pööramisel lehega kaasa liiguks
   (eraldi kiht raamatu kohal paistaks pööratavast lehest läbi). */
.lk-page--l::after,
.lk-page--r::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 9%;
  pointer-events: none;
}
.lk-page--l::after {
  right: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.05) 55%, rgba(0, 0, 0, 0.18));
}
.lk-page--r::after {
  left: 0;
  background: linear-gradient(270deg, transparent, rgba(0, 0, 0, 0.05) 55%, rgba(0, 0, 0, 0.18));
}
.lk-book-wrap.is-portrait .lk-page--l::after,
.lk-book-wrap.is-portrait .lk-page--r::after {
  left: 0;
  right: auto;
  width: 4%;
  background: linear-gradient(270deg, transparent, rgba(0, 0, 0, 0.12));
}

.lk-page-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.lk-page-img:not([src]) { visibility: hidden; }
.lk-page--cover .lk-page-img { object-fit: cover; }

.lk-book-wrap.is-jump #book { animation: lk-jump 0.32s ease-out; }
@keyframes lk-jump {
  from { opacity: 0.35; transform: scale(0.985); }
  to { opacity: 1; transform: none; }
}

.lk-page-folio {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 28px;
  color: rgba(15, 27, 61, 0.18);
  pointer-events: none;
}
.lk-page.is-ready .lk-page-folio { display: none; }

/* Kaas ja tagakaas – lina, hõbetrükk */
.lk-linen {
  background-color: var(--linen);
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.08) 0 1px, transparent 1px 3px);
  color: #dfe3ea;
}

.lk-cover-art {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 16%;
  text-align: center;
}
.lk-cover-art .lk-cover-org {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(11px, 2.4cqw, 22px);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.lk-cover-art .lk-cover-title {
  margin-top: 9%;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(22px, 8cqw, 64px);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25), 0 -1px 0 rgba(0, 0, 0, 0.5);
}
.lk-cover-art img {
  margin-top: 10%;
  width: 34%;
  filter: grayscale(1) brightness(1.15) drop-shadow(0 1px 0 rgba(0, 0, 0, 0.5));
}

.lk-cover-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lk-page--cover, .lk-page--back, .lk-hero-cover { container-type: inline-size; }

.lk-back-art {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6%;
  text-align: center;
}
.lk-back-art img { width: 22%; opacity: 0.85; filter: grayscale(1) brightness(1.1); }
.lk-back-art p {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: clamp(12px, 3.6cqw, 26px);
  line-height: 1.3;
  color: #c9d0db;
}

/* ─── Laadimine ja avamine ─────────────────────────────────────────────────── */

.lk-intro {
  position: absolute;
  inset: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 5vw, 72px);
  padding: 24px;
  overflow-y: auto;
}
.lk-intro[hidden] { display: none; }

.lk-hero-book {
  perspective: 1600px;
  flex: 0 0 auto;
}

.lk-hero-cover {
  position: relative;
  width: clamp(180px, 26vh, 320px);
  aspect-ratio: 271 / 383;
  border-radius: 3px 8px 8px 3px;
  overflow: hidden;
  transform: rotateY(-18deg) rotateX(4deg);
  transform-origin: left center;
  box-shadow:
    -1px 0 0 rgba(255, 255, 255, 0.08) inset,
    10px 0 0 -4px #d9d4c7,
    12px 2px 0 -4px #c9c3b4,
    22px 30px 50px var(--shadow);
  animation: lk-float 6s ease-in-out infinite alternate;
}
.lk-hero-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.35), transparent 7%, rgba(255, 255, 255, 0.06) 9%, transparent 14%);
  pointer-events: none;
}

@keyframes lk-float {
  from { transform: rotateY(-18deg) rotateX(4deg) translateY(4px); }
  to { transform: rotateY(-14deg) rotateX(3deg) translateY(-6px); }
}

.lk-intro-card {
  max-width: 420px;
  flex: 1 1 300px;
}

.lk-intro-card h2 {
  margin: 0 0 10px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 600;
  line-height: 1.05;
}

.lk-intro-card p { margin: 0 0 16px; color: var(--muted); line-height: 1.6; }

.lk-progress {
  height: 4px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
  margin: 18px 0 10px;
}
.lk-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.2s;
}
.lk-progress.is-indeterminate span {
  width: 35%;
  animation: lk-slide 1.1s ease-in-out infinite;
}
@keyframes lk-slide {
  from { transform: translateX(-100%); }
  to { transform: translateX(300%); }
}

.lk-drop {
  margin-top: 8px;
  padding: 22px;
  border: 2px dashed var(--line);
  border-radius: 16px;
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
}
.lk-drop.is-over { border-color: var(--accent); background: var(--hl); }
.lk-drop p { margin: 0 0 14px; }
.lk-drop small { display: block; margin-top: 12px; color: var(--muted); font-size: 12px; line-height: 1.5; }

.lk-file {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--stage);
}
.lk-file:hover { background: var(--ink); opacity: 0.9; }
.lk-file input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* ─── Lehitsemisnupud ──────────────────────────────────────────────────────── */

.lk-nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--chrome);
  backdrop-filter: blur(6px);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, opacity 0.15s;
}
.lk-nav:hover { background: var(--panel); }
.lk-nav svg { width: 22px; height: 22px; }
.lk-nav--prev { left: 16px; }
.lk-nav--next { right: 16px; }
.lk-nav[disabled] { opacity: 0; pointer-events: none; }

/* ─── Alumine riba ─────────────────────────────────────────────────────────── */

.lk-bar { gap: 16px; }

.lk-now {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.lk-now-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.lk-now-song {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 21px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lk-scrub {
  flex: 2 1 0;
  min-width: 80px;
  accent-color: var(--accent);
  height: 44px;
  cursor: pointer;
}

.lk-pageno {
  flex: 0 0 auto;
  min-width: 112px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  color: var(--muted);
}
.lk-pageno strong { color: var(--ink); font-weight: 600; }

/* ─── Sisukord ─────────────────────────────────────────────────────────────── */

.lk-scrim {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(5, 10, 25, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.lk-scrim.is-open { opacity: 1; pointer-events: auto; }

.lk-toc {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 21;
  width: min(420px, 92vw);
  display: flex;
  flex-direction: column;
  background: var(--panel);
  box-shadow: 20px 0 60px rgba(0, 0, 0, 0.25);
  transform: translateX(-104%);
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1);
  visibility: hidden;
}
.lk-toc.is-open { transform: none; visibility: visible; }

.lk-toc-head {
  padding: 18px 18px 12px;
  border-bottom: 1px solid var(--line);
}
.lk-toc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.lk-toc-head h2 {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 30px;
  font-weight: 600;
}
.lk-toc-count { color: var(--muted); font-size: 13px; }

.lk-search {
  position: relative;
  margin-top: 14px;
}
.lk-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.lk-search input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px 0 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--stage);
  outline: none;
}
.lk-search input:focus { border-color: var(--accent); }

.lk-tabs { display: flex; gap: 6px; margin-top: 12px; }
.lk-tab {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.lk-tab[aria-selected="true"] { background: var(--ink); color: var(--panel); border-color: var(--ink); }

.lk-toc-list {
  flex: 1 1 auto;
  margin: 0;
  padding: 6px 8px 24px;
  list-style: none;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.lk-toc-letter {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 10px 12px 4px;
  background: var(--panel);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--accent-ink);
}

.lk-toc-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.lk-toc-item:hover { background: var(--btn); }
.lk-toc-item.is-current { background: var(--hl); }
.lk-toc-title { flex: 1 1 auto; min-width: 0; font-size: 15px; line-height: 1.35; }
.lk-toc-dots { flex: 1 1 24px; border-bottom: 1px dotted var(--line); transform: translateY(-4px); min-width: 16px; }
.lk-toc-page { flex: 0 0 auto; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; }
.lk-toc-empty { padding: 24px 12px; color: var(--muted); }
.lk-toc-item mark { background: var(--hl); color: inherit; border-radius: 3px; }

/* ─── Suurendus ────────────────────────────────────────────────────────────── */

.lk-zoom {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  background: var(--stage);
}
.lk-zoom[hidden] { display: none; }

.lk-zoom-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--chrome);
  border-bottom: 1px solid var(--line);
}
.lk-zoom-bar .lk-zoom-title {
  margin-right: auto;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
}
.lk-zoom-level { min-width: 56px; text-align: center; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; }

.lk-zoom-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  display: flex;
  padding: 24px;
}
.lk-zoom-inner {
  display: flex;
  gap: 16px;
  margin: auto;
}
.lk-zoom-inner img {
  display: block;
  max-width: none;
  background: var(--paper);
  box-shadow: 0 10px 40px var(--shadow);
}

/* ─── 3D-vaade ─────────────────────────────────────────────────────────────── */

a.lk-btn { color: inherit; text-decoration: none; }

.lk-3d {
  position: absolute;
  inset: 0;
  overflow: hidden;
  perspective: 2200px;
  perspective-origin: 50% 30%;
  touch-action: none;
  user-select: none;
  cursor: grab;
}
.lk-3d[hidden] { display: none; }
.lk-3d.is-dragging { cursor: grabbing; }

.lk-3d-cam {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-style: preserve-3d;
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.lk-3d-face {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
}

.lk-3d-content {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.lk-3d-content .lk-page-img { position: absolute; inset: 0; }
.lk-3d-paper { background: var(--paper); }
.lk-3d-cover { container-type: inline-size; }
.lk-3d-cover .lk-page-img { object-fit: cover; }
.lk-3d-inset { position: absolute; overflow: hidden; background: var(--paper); }

/* Lehepaki servad: õhukesed paberikihid */
.lk-3d-edge.lk-3d-tail,
.lk-3d-edge.lk-3d-head {
  background: repeating-linear-gradient(to bottom, #f4efe3 0 1px, #d9d0bb 1px 2px);
}
.lk-3d-edge.lk-3d-fore {
  background: repeating-linear-gradient(to right, #ece6d6 0 1px, #cdc4ad 1px 2px);
}
.lk-3d-edge.lk-3d-head { filter: brightness(0.85); }

.lk-3d-board {
  background-color: var(--linen);
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.08) 0 1px, transparent 1px 3px);
  border-radius: 2px;
}
.lk-3d-board-edge { background: #14244a; }
.lk-3d-underside { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.lk-3d-board-edge.lk-3d-tail { background: #1b2d57; }
.lk-3d-spine { background: #16284f; }

.lk-3d-shadow {
  background: rgba(0, 0, 0, 0.42);
  filter: blur(22px);
  border-radius: 12px;
}

.lk-3d-sheet,
.lk-3d-strip {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  transform-style: preserve-3d;
}

.lk-3d-side {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--paper);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.lk-3d-back { transform: rotateY(180deg); }
/* Ribad kattuvad veidi, et nende vahelt ei paistaks praod. */
.lk-3d-strip > .lk-3d-side { right: -1.5px; }
.lk-3d-side .lk-3d-content { right: auto; }
.lk-3d-fill .lk-page-img { object-fit: fill; }

.lk-3d-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.lk-3d-hint {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  max-width: calc(100% - 24px);
  margin: 0;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--chrome);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  pointer-events: none;
  transition: opacity 0.6s;
}
.lk-3d-hint.is-hidden { opacity: 0; }

.lk-toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  z-index: 40;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  margin: 0;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  font-size: 14px;
  box-shadow: 0 10px 30px var(--shadow);
}
.lk-toast[hidden] { display: none; }

/* ─── Kohanduvus ───────────────────────────────────────────────────────────── */

@media (max-width: 720px) {
  .lk-top { padding: 8px 10px; gap: 6px; }
  .lk-back span { display: none; }
  .lk-back { padding: 0 10px; }
  .lk-brand-eyebrow { display: none; }
  .lk-brand img { width: 34px; height: 34px; flex-basis: 34px; }
  .lk-brand-title { font-size: 22px; }
  .lk-btn-label { display: none; }
  .lk-btn { padding: 0 11px; }
  .lk-bar { flex-wrap: wrap; gap: 4px 12px; padding: 8px 12px; }
  .lk-scrub { order: 3; flex-basis: 100%; height: 28px; }
  .lk-nav { width: 44px; height: 44px; top: auto; bottom: 8px; transform: none; }
  .lk-nav--prev { left: 12px; }
  .lk-nav--next { right: 12px; }
  .lk-zoom-body { padding: 12px; }
  .lk-3d-hint { bottom: 64px; font-size: 12px; }
}

@media (max-width: 380px) {
  .lk-fs { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .lk-hero-cover { animation: none; }
  .lk-toc, .lk-scrim, .lk-progress span, .lk-3d-cam { transition: none; }
}

/* Sisselogimine (auth.css) lauliku teemas: hele või tume nagu ülejäänud laulik. */
.lk-gate.auth-panel {
  --a-ink: var(--ink); --a-muted: var(--muted); --a-line: var(--line); --a-field: var(--panel);
  max-width: none; margin: 4px 0 0; padding: 0; background: none; border: 0; color: var(--ink);
}
.lk-gate .auth-title { font-size: 24px; }
.lk-gate .auth-btn:not(.auth-primary):not(.auth-google) { border-color: var(--line); background: var(--btn); }
.lk-gate .auth-google { border-color: var(--line); }
.lk-gate .auth-link:hover { color: var(--ink); }
/* Hõljub päise all paremal, et mitte muuta .lk-app ruudustikku (päis, lava, riba). */
.lk-session { position: fixed; top: 72px; right: 16px; z-index: 30; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--chrome); backdrop-filter: blur(8px); color: var(--muted); }
.lk-session .auth-link { color: var(--muted); }
.lk-session .auth-link:hover { color: var(--ink); }
.lk-gate .auth-msg { color: var(--accent-ink); }
.lk-gate .auth-tabs button[aria-selected="true"] { background: var(--btn-hover); color: var(--ink); }
