/* ==========================================================
   Cărți care schimbă vieți — foaie de stil comună
   Tokenuri de culoare în :root; mod întunecat automat.
   ========================================================== */

:root {
  --bg: #f5efe3;
  --bg-2: #ece4d3;
  --card: #fffcf5;
  --ink: #1c2230;
  --muted: #5a6273;
  --line: #ddd3bf;
  --accent: #0e6a70;
  --accent-2: #0a4f54;
  --accent-ink: #ffffff;
  --gem: #2fb3c2;
  --gold: #c4861a;
  --ok: #2c7a4b;
  --ok-bg: #e3f2e8;
  --bad: #b23c2a;
  --bad-bg: #f8e4df;
  --shadow: #1c2230;
  --radius: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121620;
    --bg-2: #181d2a;
    --card: #1b2131;
    --ink: #ece6d8;
    --muted: #a7adbb;
    --line: #2d3549;
    --accent: #4cc0c6;
    --accent-2: #7fd6da;
    --accent-ink: #0d1a1c;
    --gem: #5fd3e0;
    --gold: #e0a640;
    --ok: #6fcf97;
    --ok-bg: #173323;
    --bad: #ff8a75;
    --bad-bg: #3a1d19;
    --shadow: #05070b;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121620; --bg-2: #181d2a; --card: #1b2131; --ink: #ece6d8; --muted: #a7adbb;
  --line: #2d3549; --accent: #4cc0c6; --accent-2: #7fd6da; --accent-ink: #0d1a1c;
  --gem: #5fd3e0; --gold: #e0a640; --ok: #6fcf97; --ok-bg: #173323; --bad: #ff8a75;
  --bad-bg: #3a1d19; --shadow: #05070b; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 6vw, 3.2rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--card); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- antet ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 700; font-size: 1.15rem; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-tagline { font: 500 .74rem/1.25 var(--sans); color: var(--muted); letter-spacing: .01em; }
.theme-btn { white-space: nowrap; }
@media (max-width: 600px) {
  .site-header .wrap:has(.brand-tagline) { flex-wrap: wrap; row-gap: 2px; padding-top: 8px; padding-bottom: 6px; }
  .site-header .wrap:has(.brand-tagline) .header-links { margin-left: auto; }
}
.header-links { display: flex; gap: 14px; align-items: center; font-size: .95rem; }
.header-links a { text-decoration: none; }
.theme-btn { background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 999px; padding: 4px 10px; cursor: pointer; font: inherit; font-size: .85rem; }
/* Ecrane înguste: antetul rămâne pe un singur rând (bara cu pași se lipește la 60px sub el). */
@media (max-width: 480px) {
  .site-header .wrap { gap: 8px; }
  .brand { gap: 7px; font-size: .98rem; line-height: 1.1; min-width: 0; }
  .brand svg { width: 26px; height: 26px; }
  .header-links { gap: 8px; font-size: .84rem; line-height: 1.15; min-width: 0; }
  .header-links a { text-align: center; }
  /* Comutatorul de temă devine pictogramă; textul rămâne în buton pentru cititoarele de ecran. */
  .theme-btn[data-theme-toggle] { font-size: 0; width: 36px; height: 36px; padding: 0; flex: none; display: inline-grid; place-items: center; }
  .theme-btn[data-theme-toggle]::before { content: "◐"; font-size: 1.1rem; line-height: 1; }
}
@media (max-width: 359px) {
  .brand { font-size: .9rem; gap: 5px; }
  .brand svg { width: 22px; height: 22px; }
  .header-links { gap: 6px; font-size: .8rem; }
}

/* ---------- butoane ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 1rem/1.2 var(--sans);
  padding: 12px 18px; min-height: 46px;
  border-radius: 10px; border: 2px solid var(--ink);
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 3px 3px 0 var(--shadow);
  cursor: pointer; text-decoration: none;
  transition: transform .08s, box-shadow .08s;
}
.btn:hover { color: var(--accent-ink); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--shadow); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--shadow); }
.btn.secondary { background: var(--card); color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: none; border-color: var(--line); }
.btn.small { padding: 7px 12px; min-height: 36px; font-size: .9rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

/* ---------- carduri generale ---------- */
.card {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 5px 5px 0 var(--shadow);
  padding: 20px;
}
.pill { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; border: 1.5px solid currentColor; }
.pill.live { color: var(--ok); }
.pill.soon { color: var(--muted); }

/* ---------- hero pagina de start ---------- */
/* Bannerul cu imagine: textul stă pe partea stângă, întunecată, a imaginii.
   Culorile sunt fixe (nu depind de temă), pentru că fundalul e mereu închis. */
.hero-banner { position: relative; isolation: isolate; overflow: hidden; background: #0b1424; color: #f4eddd; }
.hero-banner__img img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.hero-banner::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(8, 14, 26, .78) 0%, rgba(8, 14, 26, .5) 38%, rgba(8, 14, 26, 0) 62%);
}
.hero-banner__copy { display: flex; flex-direction: column; justify-content: center; min-height: clamp(420px, 46vw, 600px); padding-top: 48px; padding-bottom: 48px; }
.hero-banner__copy > * { max-width: min(34rem, 46%); }
.hero-banner h1 { color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .55); }
.hero-banner .kicker { color: #7fd6da; }
.hero-triad { font-family: var(--serif); font-size: clamp(1.15rem, 2.4vw, 1.5rem); color: #e8bd62; font-weight: 700; text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }
.hero-banner .btn { border-color: #0b1424; box-shadow: 3px 3px 0 #05070b; }
.hero-banner .btn.secondary { background: #fffcf5; color: #1c2230; }

/* Ecrane înguste: imaginea sus (decupată pe cărți și lupă), textul dedesubt pe fundal închis. */
@media (max-width: 760px) {
  .hero-banner__img { position: relative; display: block; aspect-ratio: 4 / 3; max-height: 60vh; }
  .hero-banner__img img { z-index: 0; object-position: 78% center; }
  .hero-banner::before { inset: 0 0 auto; z-index: 1; aspect-ratio: 4 / 3; max-height: 60vh; background: linear-gradient(180deg, rgba(11, 20, 36, .15) 0%, rgba(11, 20, 36, .15) 55%, #0b1424 100%); }
  .hero-banner__copy { position: relative; z-index: 2; min-height: 0; margin-top: -56px; padding-top: 0; padding-bottom: 32px; }
  .hero-banner__copy > * { max-width: none; }
}

.hero { padding: 32px 0 28px; }
.kicker { font-weight: 700; color: var(--accent); letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; }
.hero p.lead { font-size: 1.2rem; max-width: 640px; }
.audiences { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 28px 0 8px; }
.audience { padding: 16px 18px; border-radius: var(--radius); border: 1.5px solid var(--line); background: var(--card); }
.audience h3 { font-size: 1.05rem; margin-bottom: .3em; }
.audience p { margin: 0; color: var(--muted); font-size: .95rem; }

.section-title { margin: 44px 0 6px; }
.catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; margin: 18px 0 20px; }
.book {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: 5px 5px 0 var(--shadow); padding: 0; overflow: hidden;
  text-decoration: none; color: var(--ink);
  transition: transform .12s, box-shadow .12s;
}
a.book:hover { color: var(--ink); transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--shadow); }
.book .spine { height: 92px; display: flex; align-items: flex-end; padding: 12px 16px; color: #fff; position: relative; }
.book .spine svg { position: absolute; right: 12px; top: 10px; width: 64px; height: 64px; opacity: .9; }
.book .spine .pill { background: rgba(0,0,0,.25); color: #fff; border-color: rgba(255,255,255,.7); }
.book .body { padding: 6px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.book h3 { margin: 0; font-size: 1.2rem; }
.book .orig { font-style: italic; color: var(--muted); font-size: .92rem; }
.book .meta { font-size: .88rem; color: var(--muted); }
.book .teaser { font-size: .95rem; margin: 4px 0 0; }
.book.soon { opacity: .78; box-shadow: 3px 3px 0 var(--line); border-color: var(--line); }
.book.soon .spine { filter: grayscale(.55); }
.book .cta { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--accent); }

.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 16px 0 40px; }
.principles div { padding: 14px 16px; border-left: 4px solid var(--gem); background: var(--bg-2); border-radius: 0 10px 10px 0; font-size: .95rem; }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; margin-top: 40px; color: var(--muted); font-size: .9rem; }
.site-footer p { margin: 0 0 .5em; }

/* ---------- camera ---------- */
.room-hero { padding: 36px 0 20px; }
.room-hero .byline { color: var(--muted); font-size: 1rem; }
.room-hero .orig-title { font-style: italic; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.chip { display: inline-flex; flex-direction: column; text-decoration: none; color: var(--ink); background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 14px; min-width: 160px; flex: 1 1 180px; }
.chip strong { font-size: .98rem; }
.chip span { font-size: .85rem; color: var(--muted); }
.chip:hover { border-color: var(--accent); color: var(--ink); }

.stepper { position: sticky; top: 60px; z-index: 15; background: var(--bg); border-bottom: 1px solid var(--line); }
.stepper ol { list-style: none; margin: 0; padding: 8px 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; }
.stepper li { flex: none; }
.stepper a { display: flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; text-decoration: none; color: var(--ink); font-size: .9rem; font-weight: 600; border: 1.5px solid var(--line); background: var(--card); white-space: nowrap; }
.stepper a .n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--bg-2); font-size: .78rem; }
.stepper a.done .n { background: var(--ok); color: #fff; }
.progress-bar { height: 4px; background: var(--bg-2); }
.progress-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--gem)); transition: width .4s; }

.room-section { padding: 40px 0 8px; }
.room-section > .wrap > header { margin-bottom: 18px; }
.room-section .step-label { font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }

/* dosar */
.dossier { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.clue { background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; position: relative; }
.clue[open] { border-color: var(--ink); box-shadow: 4px 4px 0 var(--shadow); }
.clue summary { list-style: none; cursor: pointer; padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; }
.clue summary::-webkit-details-marker { display: none; }
.clue .tag { flex: none; font: 700 .75rem/1 var(--sans); background: var(--gold); color: #1c1407; padding: 6px 7px; border-radius: 6px; margin-top: 3px; }
.clue .seen { margin-left: auto; color: var(--ok); font-size: .85rem; flex: none; }
.clue h3 { font-size: 1.08rem; margin: 0; }
.clue .clue-body { padding: 0 16px 16px; font-size: .97rem; }
.clue .clue-body ul { padding-left: 1.2em; margin: 0 0 1em; }

/* citate */
.quote { margin: 12px 0; padding: 12px 14px 10px; border-left: 4px solid var(--gem); background: var(--bg-2); border-radius: 0 10px 10px 0; }
.quote p { font-family: var(--serif); font-size: 1.05rem; margin: 0 0 6px; }
.quote footer { font-size: .8rem; color: var(--muted); }
.quote details { font-size: .85rem; margin-top: 4px; }
.quote details summary { cursor: pointer; color: var(--muted); }
.quote details p { font-family: var(--serif); font-style: italic; font-size: .95rem; margin-top: 4px; }

/* lacăte */
.locks { display: grid; gap: 20px; }
.lock { padding: 18px; }
.lock-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.lock-icon { width: 42px; height: 42px; flex: none; }
.lock-head h3 { margin: 0; font-size: 1.15rem; }
.lock-head .letter { margin-left: auto; font: 700 1.3rem/1 var(--serif); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; border: 2px dashed var(--line); color: var(--muted); flex: none; }
.lock.open .letter { border: 2px solid var(--ink); background: var(--gold); color: #1c1407; }
.lock fieldset { border: 0; padding: 0; margin: 14px 0 0; }
.lock legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; margin: 0 0 8px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--card); }
.opt:hover { border-color: var(--accent); }
.opt input { margin-top: 5px; accent-color: var(--accent); flex: none; width: 18px; height: 18px; }
.opt.quote-opt span { font-family: var(--serif); }
.opt:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--card)); }
.feedback { margin-top: 12px; padding: 10px 14px; border-radius: 10px; font-size: .95rem; display: none; }
.feedback.show { display: block; }
.feedback.ok { background: var(--ok-bg); color: var(--ink); border-left: 4px solid var(--ok); }
.feedback.bad { background: var(--bad-bg); color: var(--ink); border-left: 4px solid var(--bad); }
.lock.open { border-color: var(--ok); }
.lock.open .btn-row { display: none; }
.lock.open .opt { cursor: default; }
.shake { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.chest { margin-top: 26px; text-align: center; }
.slots { display: flex; justify-content: center; gap: 8px; margin: 14px 0; flex-wrap: wrap; }
.slot { width: 48px; height: 56px; display: grid; place-items: center; font: 700 1.6rem/1 var(--serif); border: 2px dashed var(--line); border-radius: 10px; color: var(--muted); background: var(--bg-2); }
.slot.on { border: 2px solid var(--ink); background: var(--gold); color: #1c1407; }
.chest form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.chest input[type="text"] { font: 700 1.3rem/1 var(--serif); letter-spacing: .25em; text-transform: uppercase; text-align: center; width: 220px; max-width: 100%; padding: 10px; border-radius: 10px; border: 2px solid var(--ink); background: var(--card); color: var(--ink); }
.treasure { display: none; margin-top: 18px; }
.treasure.show { display: block; animation: pop .5s ease-out; }
@keyframes pop { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.treasure svg { width: 90px; height: 90px; }

/* jocuri */
.games { display: grid; gap: 26px; }
.order-list { list-style: none; padding: 0; margin: 12px 0; counter-reset: ord; }
.order-list li { counter-increment: ord; display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; margin-bottom: 8px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); transition: background .2s; }
.order-list li::before { content: counter(ord); font: 700 .9rem/1 var(--sans); width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-2); flex: none; }
.order-list li .txt { flex: 1; font-size: .97rem; }
.order-list li .mv { display: flex; flex-direction: column; gap: 4px; }
.order-list li .mv button { width: 40px; height: 32px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--bg-2); color: var(--ink); cursor: pointer; font-size: 1rem; }
.order-list li .mv button:disabled { opacity: .35; cursor: default; }
.order-list li.right { border-color: var(--ok); background: var(--ok-bg); }
.order-list li.wrong { border-color: var(--bad); background: var(--bad-bg); }

/* joc de potrivire */
.match-list { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 10px; }
.match-list li { padding: 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); display: grid; gap: 8px; }
.match-list .left { display: grid; gap: 2px; font-weight: 600; }
.match-list .orig { font: italic 400 .85rem/1.4 var(--serif); color: var(--muted); }
.match-list .why { margin: 0; color: var(--muted); }
.match-list li.right { border-color: var(--ok); background: var(--ok-bg); }
.match-list li.wrong { border-color: var(--bad); background: var(--bad-bg); }
.match-list select, .tool select, .att select, .tool input[type="text"] { width: 100%; max-width: 100%; font: 1rem/1.4 var(--sans); padding: 10px 12px; min-height: 44px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); }
.match-list select:focus, .tool select:focus, .att select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }

.mine { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
@media (max-width: 560px) { .mine { grid-template-columns: repeat(2, 1fr); } }
.tile { min-height: 120px; border-radius: 12px; border: 2px solid var(--ink); padding: 10px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; text-align: center; font-size: .9rem; background: repeating-linear-gradient(45deg, #8a6a43, #8a6a43 8px, #7d5f3a 8px, #7d5f3a 16px); color: #fff; cursor: pointer; font-family: var(--sans); }
.tile.dug { background: var(--card); color: var(--ink); cursor: default; }
.tile.gem { border-color: var(--ok); background: var(--ok-bg); }
.tile.rock { border-color: var(--bad); background: var(--bad-bg); }
.tile .shovel { font-weight: 700; font-size: 1rem; background: rgba(0,0,0,.35); padding: 6px 12px; border-radius: 999px; }
.tile .q { font-weight: 600; }
.tile .choices { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.tile .choices button { font: 600 .82rem/1.2 var(--sans); padding: 7px 9px; border-radius: 8px; border: 1.5px solid var(--ink); background: var(--bg-2); color: var(--ink); cursor: pointer; }
.tile .why { font-size: .82rem; color: var(--muted); }
.tile .badge { font-size: .8rem; font-weight: 700; }
.score { font-weight: 700; }

/* jocul „grădinarul”: gânduri sortate în semințe și buruieni */
.garden { list-style: none; padding: 0; margin: 14px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.garden li { padding: 12px; border: 1.5px dashed var(--line); border-radius: 12px; background: var(--card); display: flex; flex-direction: column; gap: 8px; }
.garden .thought { margin: 0; font: italic 600 1rem/1.4 var(--serif); }
.garden .verdict { margin: 0; font-size: .92rem; }
.garden .quote { margin: 0; font-size: .9rem; }
.garden-choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.garden-choices .btn { flex: 1 1 110px; }
.garden .seed-btn { background: var(--ok); border-color: var(--ok); color: #fff; }
.garden .weed-btn { background: var(--bg-2); color: var(--ink); }
.garden li.right { border-style: solid; border-color: var(--ok); background: var(--ok-bg); }
.garden li.wrong { border-style: solid; border-color: var(--bad); background: var(--bad-bg); }

/* joc de atenție: secundarul și notificările false */
.att-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 12px 0; }
.att-controls .field { flex: 0 1 200px; }
.att-controls .btn-row { margin: 0; }
.att-stage { position: relative; max-width: 340px; margin: 10px auto 0; }
.dial { display: block; width: 100%; height: auto; }
.dial-face { fill: var(--card); stroke: var(--ink); stroke-width: 3; }
.dial .tick { stroke: var(--muted); stroke-width: 1.5; }
.dial .tick.big { stroke: var(--ink); stroke-width: 3; }
.dial .hand-line { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.dial .hand-tip { fill: var(--bg-2); stroke: var(--ink); stroke-width: 2; }
.dial .hand-tip.on { fill: var(--gold); stroke: var(--gold); stroke-width: 6; }
.dial .hand-hub { fill: var(--ink); }
.att-toasts { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-start; gap: 6px; pointer-events: none; }
.att-toast { pointer-events: auto; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; padding: 8px 10px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); box-shadow: 0 6px 16px color-mix(in srgb, var(--shadow) 25%, transparent); font-size: .85rem; animation: toast-in .25s ease-out; }
.att-toast .att-toast-app { grid-column: 1 / -1; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--bad); }
.att-toast button { font: 600 .8rem/1 var(--sans); padding: 7px 10px; border-radius: 8px; border: 1.5px solid var(--ink); background: var(--bg-2); color: var(--ink); cursor: pointer; }
.att-toast.caught { background: var(--bad-bg); border-color: var(--bad); }
@keyframes toast-in { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }
.att-time { text-align: center; font: 700 1.1rem/1.2 var(--sans); margin: 8px 0; font-variant-numeric: tabular-nums; }
.att-press-row { justify-content: center; }
.att-press { min-width: 220px; min-height: 56px; font-size: 1.15rem; }
.att.running .att-press { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }

/* provocarea de 7 zile */
.timer { text-align: center; padding: 16px; border-radius: 12px; background: var(--bg-2); margin: 12px 0; }
.timer .btn-row { justify-content: center; }
.timer-day { margin: 0; font-weight: 600; }
.timer-face { margin: 4px 0 10px; font: 700 3rem/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--accent); }
.challenge { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 10px; }
.challenge li { padding: 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); }
.challenge li.current { border-color: var(--accent); }
.challenge li.done { border-color: var(--ok); background: var(--ok-bg); }
.challenge li p { margin: 6px 0 8px 34px; font-size: .95rem; }
.challenge-head { display: flex; gap: 10px; align-items: flex-start; }
.challenge-head input { width: 24px; height: 24px; flex: none; margin: 1px 0 0; accent-color: var(--ok); }
.challenge-head label { display: grid; gap: 2px; cursor: pointer; }
.challenge-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-left: 34px; }
.challenge-foot input[type="text"] { flex: 1 1 180px; min-width: 0; font: .95rem/1.4 var(--sans); padding: 8px 10px; min-height: 40px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); }
@media (max-width: 480px) { .challenge li p, .challenge-foot { margin-left: 0; } }
.thought-log li p, .thought-log .field { margin-left: 0; }
.thought-log li .quote { margin: 6px 0 10px; font-size: .9rem; }
.thought-log .field { margin-top: 8px; }
.thought-log .field textarea { min-height: 64px; }

/* reflecție */
.prompts { display: grid; gap: 14px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field .hint { display: block; font-weight: 400; font-size: .88rem; color: var(--muted); }
.field textarea, .field input[type="text"] { width: 100%; font: 1rem/1.5 var(--sans); padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); }
.field textarea { min-height: 92px; resize: vertical; }
.field textarea:focus, .field input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.privacy { font-size: .88rem; color: var(--muted); background: var(--bg-2); padding: 10px 14px; border-radius: 10px; margin: 0 0 16px; }
.apply { margin-top: 30px; }
.apply .steps { counter-reset: st; display: grid; gap: 14px; }
.commit-card { margin-top: 18px; padding: 20px; border: 2px dashed var(--accent); border-radius: var(--radius); background: var(--card); display: none; }
.commit-card.show { display: block; }
.commit-card h3 { color: var(--accent); }
.commit-card dl { margin: 0; }
.commit-card dt { font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-top: 10px; }
.commit-card dd { margin: 2px 0 0; white-space: pre-wrap; }

/* unelte din „aplică azi”: calculator și carnețelul virtuților */
.tool { margin: 22px 0; padding-top: 18px; border-top: 1.5px dashed var(--line); }
.tool-title { margin: 22px 0 10px; padding-top: 18px; border-top: 1.5px dashed var(--line); }
.calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 12px 0; }
.calc-out { padding: 14px 16px; border-radius: 10px; background: var(--bg-2); }
.calc-out p { margin: 0 0 4px; }
.calc-line { font-size: .95rem; }
.calc-big { font: 700 1.6rem/1.2 var(--serif); color: var(--accent); }
.tracker { padding: 14px; border: 2px solid var(--ink); border-radius: 10px; background: var(--card); }
.tracker h4 { margin: 0; letter-spacing: .08em; }
.tracker-kicker { margin: 0 0 4px; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.tracker-precept { font-family: var(--serif); font-style: italic; margin: 4px 0; }
.tracker-week { margin: 0 0 10px; }
.table-scroll { overflow-x: auto; }
.tracker table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tracker th, .tracker td { border: 1px solid var(--line); padding: 0; text-align: center; }
.tracker thead th { padding: 6px 2px; background: var(--bg-2); }
.tracker tbody th { text-align: left; padding: 6px; font-weight: 500; white-space: nowrap; }
.tracker tr.focus th, .tracker tr.focus td { border-top: 2px solid var(--accent); border-bottom: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.tracker tr.focus th { font-weight: 700; }
.tracker .dot { width: 100%; min-width: 26px; min-height: 36px; border: 0; background: transparent; color: var(--ink); font-size: 1.2rem; line-height: 1; cursor: pointer; letter-spacing: -.1em; }
.tracker .dot:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }

.teacher-box { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 760px) { .teacher-box { grid-template-columns: 1.4fr 1fr; } }

/* ---------- fișa profesorului ---------- */
.sheet { padding: 28px 0 40px; }
.sheet h2 { margin-top: 1.4em; border-bottom: 2px solid var(--ink); padding-bottom: 6px; }
.sheet table { width: 100%; border-collapse: collapse; margin: 10px 0 18px; font-size: .95rem; }
.sheet th, .sheet td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.sheet th { background: var(--bg-2); }
.sheet td.write { width: 38%; }
.sheet td.write-sm { width: 22%; }
.sheet .item { margin: 0 0 18px; break-inside: avoid; }
.sheet .item p { margin-bottom: 6px; }
.lines { border-bottom: 1px solid var(--line); height: 30px; }
.sheet .meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 12px 0; }
.sheet .meta-grid div { background: var(--bg-2); padding: 10px 12px; border-radius: 10px; font-size: .95rem; }
.name-line { display: flex; gap: 20px; flex-wrap: wrap; margin: 10px 0 20px; }
.name-line span { flex: 1 1 200px; border-bottom: 1px solid var(--ink); padding-bottom: 4px; }
.sheet-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }

/* ---------- tipărire ---------- */
@media print {
  :root { --bg: #fff; --card: #fff; --ink: #000; --muted: #333; --line: #999; --bg-2: #f1f1f1; --shadow: transparent; color-scheme: light; }
  body { font-size: 11.5pt; background: #fff; }
  .no-print, .site-header, .stepper, .site-footer, .skip { display: none !important; }
  .card, .book { box-shadow: none; }
  .page-break { break-before: page; }
  a { color: #000; text-decoration: none; }
  .sheet { padding: 0; }
  .wrap { max-width: none; padding: 0; }
  .commit-card { border-color: #000; }
  body.print-card * { visibility: hidden; }
  body.print-card #cartonas, body.print-card #cartonas * { visibility: visible; }
  body.print-card #cartonas { position: absolute; left: 0; top: 0; width: 100%; }
  body.print-jurnal * { visibility: hidden; }
  body.print-jurnal #jurnal, body.print-jurnal #jurnal * { visibility: visible; }
  body.print-jurnal #jurnal { position: absolute; left: 0; top: 0; width: 100%; border-color: #000; }
  .tracker th, .tracker td { border-color: #000; }
  .tracker .dot { min-height: 30pt; }
}
