/* ---------- Шрифты (лежат в папке fonts, интернет не нужен) ---------- */
@font-face { font-family: "Nunito"; font-weight: 400; src: url("fonts/nunito-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-weight: 400; src: url("fonts/nunito-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Nunito"; font-weight: 700; src: url("fonts/nunito-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-weight: 700; src: url("fonts/nunito-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Nunito"; font-weight: 800; src: url("fonts/nunito-cyrillic-800-normal.woff2") format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-weight: 800; src: url("fonts/nunito-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Rubik"; font-weight: 700; src: url("fonts/rubik-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Rubik"; font-weight: 700; src: url("fonts/rubik-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Rubik"; font-weight: 800; src: url("fonts/rubik-cyrillic-800-normal.woff2") format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Rubik"; font-weight: 800; src: url("fonts/rubik-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }


/* ---------- Цвета ---------- */
:root {
  --bg: #DBE8F6;
  --paper: #FFFFFF;
  --ink: #233654;
  --soft: #526986;
  --line: #D6E1F2;
  --blue: #3E57A0;
  --blue-dark: #30447F;
  --blue-light: #E9EFFC;
  --red: #B93530;
  --red-light: #FCE9E6;
  --green: #2E9B5F;
  --green-light: #E2F4EA;
  --gold: #F2B33D;
  --gold-light: #FFF4D9;
  --shadow: 0 6px 0 rgba(31, 49, 80, .07), 0 18px 40px rgba(31, 49, 80, .10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  font-family: "Nunito", "Segoe UI", Arial, sans-serif; color: var(--ink);
  background: linear-gradient(180deg, #C8DDF2 0%, #EEF5FC 100%) fixed;
  font-size: clamp(15px, min(1.2vw, 2.2vh), 22px); line-height: 1.4; 
}
h1, h2, h3, .btn, .badge, .task-chip, .task-num, .counter, .album-count, .card-fact-title, .card-top { font-family: "Rubik", "Nunito", sans-serif; }

.screen { display: none; min-height: 100vh; min-height: 100svh; padding: clamp(14px, 2.2vw, 36px); position: relative; z-index: 1; }
.screen.active { display: flex; flex-direction: column; animation: fade .35s ease; }
.hidden { display: none !important; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Снег ---------- */
.snow { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.flake { position: absolute; top: -20px; border-radius: 50%; background: #fff; opacity: .85; animation: fall linear infinite; }
@keyframes fall { to { transform: translate(var(--drift), 110vh); } }

/* ---------- Кнопки ---------- */
.btn { border: none; cursor: pointer; font-weight: 700; font-size: 1em; padding: .75em 1.4em; border-radius: 16px; transition: transform .12s, box-shadow .12s, background .2s; }
.btn:active { transform: translateY(3px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 5px 0 var(--blue-dark); }
.btn-primary:hover { background: #4966B5; }
.btn-primary:active { box-shadow: 0 2px 0 var(--blue-dark); }
.btn-secondary { background: #fff; color: var(--blue); border: 2px solid var(--line); box-shadow: 0 5px 0 var(--line); }
.btn-big { font-size: 1.25em; padding: .85em 2em; }
.icon-btn { background: #fff; border: 2px solid var(--line); border-radius: 12px; font-size: 1em; cursor: pointer; }
.badge { display: inline-block; background: var(--gold-light); color: #8A5A00; font-weight: 700; font-size: .85em; padding: .35em .9em; border-radius: 999px; margin-bottom: .7em; }

.btn:focus-visible, .icon-btn:focus-visible, .print-link:focus-visible,
.opt:focus-visible, .tile:focus-visible, .food:focus-visible, .fcell:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

/* ---------- Обложка ---------- */
body:has(#screen-start.active) { background-image: linear-gradient(180deg, #CDD8EC, #EEF3FC); }
#screen-start { align-items: center; justify-content: center; padding-top: clamp(12px, 3vh, 36px); padding-bottom: clamp(12px, 3vh, 36px); }
.cover {
  --blue: #4A4D98;
  --blue-dark: #383C78;
  --blue-light: #EAEDFA;
  --line: #D8DFF0;
  font-size: clamp(15px, min(1.4vw, 2.5vh), 22px);
  position: relative; max-width: 1400px; width: 100%; background: var(--paper);
  border-radius: 28px 36px 36px 28px; box-shadow: var(--shadow); border-left: 22px solid var(--blue);
}
.cover-rings { position: absolute; left: -35px; top: 8%; bottom: 8%; display: flex; flex-direction: column; justify-content: space-between; }
.cover-rings span { width: 54px; height: 20px; border-radius: 12px; border: 5px solid #B8C9DD; background: transparent; }
.cover-body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); align-items: center; padding: clamp(18px, min(4vw, 5.5vh), 56px); }
h1 { font-size: clamp(32px, min(4vw, 7.2vh), 72px); font-weight: 800; line-height: 1.05; color: var(--blue); margin-bottom: .4em; }
.cover-heading { width: fit-content; max-width: 100%; }
.cover-brand { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: .55em .8em; margin-bottom: .85em; }
.brand-logo { display: block; width: clamp(66px, 6.5vw, 96px); height: auto; }
.cover-topic {
  display: inline-block; padding: .36em .88em; border-radius: 999px;
  background: #2B5CAD; color: #fff; font-family: "Rubik", "Nunito", sans-serif;
  font-size: clamp(14px, min(1.6vw, 3vh), 24px); font-weight: 700; line-height: 1.2;
}
#start-title { font-size: clamp(32px, min(4.5vw, 8vh), 72px); margin-bottom: .14em; }
.cover-subtitle { color: var(--blue-dark); font-size: clamp(18px, min(1.9vw, 4vh), 28px); font-weight: 800; margin-bottom: .65em; }
.lead { font-size: 1.08em; color: var(--soft); margin-bottom: .8em; }
.how { list-style: none; display: grid; gap: .5em; margin-bottom: 1.15em; }
.how li { display: flex; align-items: center; gap: .7em; font-weight: 700; }
.how-num { flex: none; width: 1.9em; height: 1.9em; border-radius: 50%; background: var(--blue-light); color: var(--blue); display: grid; place-items: center; font-family: "Rubik"; }
.start-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: stretch; }
.start-actions .btn, .start-actions .btn-big { white-space: nowrap; font-size: 1.05em; padding: .8em 1.4em; }
.start-actions .btn-primary { border: 2px solid transparent; }
.save-note { margin-top: 1em; font-size: .85em; color: var(--soft); display: flex; align-items: center; gap: .4em; }
.save-note::before { content: "💾"; }
.cover-scene {
  position: relative; isolation: isolate; overflow: hidden; width: 100%; max-width: 560px;
  aspect-ratio: 1.07; border-radius: 26px; border: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 65% 104%, #FAFDFF 0 31%, transparent 31.4%),
    radial-gradient(ellipse at 32% 109%, #EEF6FE 0 40%, transparent 40.4%),
    linear-gradient(155deg, #DDE6F7, #CDD5EE 56%, #E8EFFB);
}
.cover-stickers { position: absolute; inset: 0; }
.cover-stickers .st {
  position: absolute; width: 29%; aspect-ratio: 1; border-radius: 50%; background: #fff;
  padding: clamp(3px, .6vw, 9px); box-shadow: 0 8px 20px rgba(31,49,80,.15); animation: bob 4s ease-in-out infinite;
}
.cover-stickers .st img { width: 100%; height: 100%; display: block; }
.cover-stickers .st:nth-child(1) { left: 7%; top: 8%; transform: rotate(-8deg); }
.cover-stickers .st:nth-child(2) { right: 7%; top: 12%; transform: rotate(7deg); animation-delay: -1.3s; }
.cover-stickers .st:nth-child(3) { right: 5%; bottom: 11%; width: 23%; transform: rotate(-3deg); animation-delay: -2.6s; }
.cover-cat {
  position: absolute; bottom: 1%; left: 18%; width: 61%; height: 81%;
  object-fit: contain; object-position: bottom center; filter: drop-shadow(0 8px 8px rgba(38, 61, 116, .18));
}
@keyframes bob { 50% { translate: 0 -7px; } }

.materials { margin-top: 1em; padding-top: .8em; border-top: 1px solid var(--line); }
.materials-title { font-size: .88em; font-weight: 800; color: var(--soft); margin-bottom: .35em; }
.materials-links { display: flex; gap: .45em .6em; flex-wrap: wrap; }
.print-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: .38em .8em; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; color: var(--blue-dark); font-weight: 800; font-size: .88em;
  text-decoration: none;
}
.print-link:hover { background: var(--blue-light); border-color: var(--blue); }

/* ---------- Верхняя панель ---------- */
.topbar {
  --control-height: 46px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  width: 100%; max-width: 1600px; margin: 0 auto clamp(10px, 1.6vw, 22px); gap: clamp(6px, 1.5vw, 16px);
}
.topbar-right { display: flex; align-items: center; gap: clamp(6px, 1.2vw, 12px); margin-inline-start: auto; }
.topbar :is(.task-chip, .btn-home, .counter, .icon-btn) {
  display: inline-flex; align-items: center; justify-content: center; height: var(--control-height);
}
.btn-home { min-height: 44px; padding: .45em .85em; font-size: .88em; white-space: nowrap; }
.topbar .btn-home { box-shadow: none; }
.topbar .icon-btn { width: var(--control-height); }
.task-chip { background: var(--blue); color: #fff; font-weight: 700; padding: 0 1.1em; border-radius: 999px; gap: .5em; }
.counter { background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 0 .8em; font-weight: 800; gap: .2em; white-space: nowrap; }
.star { color: var(--gold); }

/* ---------- Раскладка ---------- */
.game-layout { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(245px, .45fr); gap: clamp(16px, 2.4vw, 40px); align-items: start; max-width: 1600px; width: 100%; margin: 0 auto; }

/* ---------- Задание ---------- */
.task { background: var(--paper); border-radius: 28px; box-shadow: var(--shadow); padding: clamp(20px, 2.4vw, 42px); }
.task-head { margin-bottom: 1em; }
.task-num { color: var(--blue); font-weight: 700; font-size: .85em; margin-bottom: .2em; }
.question { font-size: clamp(26px, 2.3vw, 42px); font-weight: 800; line-height: 1.15; }

.photo { border-radius: 50%; background: #fff; padding: 8px; box-shadow: 0 8px 22px rgba(31,49,80,.15); flex: none; }
.photo img { width: 100%; height: 100%; display: block; }

/* «Кто прилетел?» */
.who { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); align-items: center; }
.who .photo { width: clamp(165px, min(19vw, 36vh), 340px); aspect-ratio: 1; }
.options { display: grid; gap: .75em; }
.opt {
  display: flex; align-items: center; gap: .9em; width: 100%; text-align: left;
  background: #fff; border: 3px solid var(--line); border-radius: 18px; padding: .75em 1.1em;
  font-family: inherit; font-size: 1.15em; font-weight: 800; color: var(--ink); cursor: pointer;
  box-shadow: 0 4px 0 var(--line); transition: border-color .15s, background .15s, transform .1s;
}
.opt .letter { flex: none; width: 2em; height: 2em; border-radius: 10px; background: var(--blue-light); color: var(--blue); display: grid; place-items: center; font-family: "Rubik"; }
.opt:hover:not(:disabled) { border-color: var(--blue); background: var(--blue-light); }
.opt:disabled { cursor: default; }
.right { border-color: var(--green) !important; background: var(--green-light) !important; box-shadow: 0 4px 0 #BFE3CD !important; }
.right .letter { background: var(--green); color: #fff; }
.wrong { border-color: var(--red) !important; background: var(--red-light) !important; animation: shake .4s; }
.wrong .letter { background: var(--red); color: #fff; }
.dim { opacity: .45; }
@keyframes shake { 20%,60% { transform: translateX(-6px); } 40%,80% { transform: translateX(6px); } }

/* «Узнай по приметам» */
.clue {
  background: var(--gold-light); border-radius: 18px; padding: .9em 1.3em; font-size: 1.2em; font-weight: 700; margin-bottom: 1.1em;
  border-left: 8px solid var(--gold); border-radius: 0 18px 18px 0;
}
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 28px); }
.tile {
  background: #fff; border: 3px solid var(--line); border-radius: 22px; padding: 14px 14px 10px; cursor: pointer;
  box-shadow: 0 4px 0 var(--line); display: flex; flex-direction: column; align-items: center; gap: .5em;
  font-family: inherit; font-size: 1em; color: var(--ink); transition: border-color .15s, background .15s;
}
.tile:hover:not(:disabled) { border-color: var(--blue); background: var(--blue-light); }
.tile:disabled { cursor: default; }
.tile .photo { width: 100%; aspect-ratio: 1; height: auto; padding: 5px; box-shadow: none; }
.tile .tname { overflow-wrap: anywhere; font-weight: 800; min-height: 1.4em; font-size: 1em; }
.tile .tname .letter { display: inline-grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 8px; background: var(--blue-light); color: var(--blue); font-family: "Rubik"; }

/* «Угости гостя» */
.feed { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); align-items: center; }
.feed .guest { display: flex; flex-direction: column; align-items: center; gap: .6em; }
.feed .photo { width: clamp(150px, min(16vw, 31vh), 280px); aspect-ratio: 1; }
.guest-name { text-align: center; font-family: "Rubik"; font-weight: 700; font-size: 1.15em; background: var(--blue-light); color: var(--blue-dark); padding: .2em .9em; border-radius: 999px; }
.foods { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.2vw, 20px); }
.food {
  background: #fff; border: 3px solid var(--line); border-radius: 20px; padding: .8em .6em; cursor: pointer;
  box-shadow: 0 4px 0 var(--line); display: flex; flex-direction: column; align-items: center; gap: .3em;
  font-family: inherit; font-size: 1.05em; font-weight: 800; color: var(--ink); transition: border-color .15s, background .15s;
}
.food:hover:not(:disabled) { border-color: var(--blue); background: var(--blue-light); }
.food:disabled { cursor: default; }
.food svg { width: clamp(56px, 5vw, 90px); height: clamp(56px, 5vw, 90px); }

/* «Верю — не верю» */
.truth { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); align-items: center; }
.truth .photo { width: clamp(150px, min(16vw, 31vh), 280px); aspect-ratio: 1; }
.statement { position: relative; background: var(--blue-light); border-radius: 22px; padding: 1.1em 1.3em; font-size: 1.25em; font-weight: 800; margin-bottom: 1.1em; }
.statement::before { content: ""; position: absolute; left: -14px; top: 40%; border: 10px solid transparent; border-right: 14px solid var(--blue-light); border-left: 0; }
.tf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tf .opt { justify-content: center; font-size: 1.08em; gap: .5em; padding-inline: .6em; }
.explain { margin-top: 1em; background: var(--green-light); color: #1C6B40; border-radius: 16px; padding: .8em 1.1em; font-weight: 700; animation: fade .3s; }

.mascot-feedback { display: flex; align-items: center; gap: .7em; margin-top: .8em; }
.mascot-feedback img { flex: none; width: clamp(52px, 6vw, 82px); aspect-ratio: 1; object-fit: contain; }
.mascot-message { padding: .5em .8em; border-radius: 12px; background: var(--blue-light); font-size: .92em; }
#mascot-text { font-weight: 800; }
#hint-text { margin-top: .2em; }
.mascot-feedback[data-mood="think"] .mascot-message { background: var(--gold-light); }
.mascot-feedback[data-mood="cheer"] .mascot-message { background: var(--green-light); }

/* ---------- Альбом ---------- */
.album { background: #FFFCF3; border-radius: 28px; box-shadow: var(--shadow); padding: clamp(16px, 1.8vw, 30px); border: 2px solid #EDE3CC; }
.album-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .8em; }
.album-head h3 { font-size: 1.3em; color: var(--blue); }
.album-count { font-weight: 800; color: var(--soft); }
.album-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(6px, .8vw, 12px); }
.slot {
  position: relative; aspect-ratio: 1; border-radius: 50%; border: 3px dashed #D9CDB0; display: grid; place-items: center;
  color: #C9BB98; font-family: "Rubik"; font-weight: 800; font-size: .9em; background: #FBF6E9;
}
.slot.current { border-color: var(--blue); color: var(--blue); background: var(--blue-light); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.06); } }
.slot.filled { border: none; background: #fff; padding: 4px; box-shadow: 0 4px 10px rgba(31,49,80,.15); cursor: pointer; }
.slot.filled img { width: 100%; height: 100%; display: block; border-radius: 50%; }
.slot.new { animation: stick .6s cubic-bezier(.3,1.6,.5,1); }
@keyframes stick { from { transform: scale(.2) rotate(-25deg); opacity: 0; } to { transform: none; opacity: 1; } }
.slot .gold { position: absolute; right: -4px; top: -4px; width: 1.5em; height: 1.5em; border-radius: 50%; background: var(--gold); color: #fff; display: grid; place-items: center; font-size: .75em; box-shadow: 0 2px 0 #C98E1E; }
.album-note { margin-top: .9em; font-size: .78em; color: var(--soft); text-align: center; }

/* ---------- Карточка птицы ---------- */
.modal { position: fixed; inset: 0; z-index: 10; background: rgba(23, 40, 68, .45); display: grid; place-items: center; padding: 20px; animation: fade .25s; }
.card { background: #fff; border-radius: 30px; max-width: 1000px; width: 100%; box-shadow: 0 30px 80px rgba(0,0,0,.25); overflow: hidden; max-height: calc(100dvh - 40px); overflow-y: auto; }
.card-top { background: var(--blue); color: #fff; font-weight: 700; padding: .7em 1.4em; font-size: 1.05em; }
.card-body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(18px, 2.5vw, 40px); padding: clamp(18px, 2.4vw, 36px); align-items: center; }
.card-photo { width: clamp(200px, 20vw, 340px); aspect-ratio: 1; border-radius: 50%; background: #fff; padding: 10px; box-shadow: 0 10px 28px rgba(31,49,80,.2); transform: rotate(-4deg); }
.card-photo img { width: 100%; height: 100%; display: block; }
.card-info h2 { font-size: clamp(28px, 2.6vw, 46px); color: var(--blue); line-height: 1.1; margin-bottom: .5em; }
.card-rows { display: grid; gap: .45em; margin-bottom: .9em; }
.card-rows div { display: grid; grid-template-columns: 8.2em 1fr; gap: .6em; }
.card-rows dt { font-weight: 800; color: var(--soft); font-size: .9em; padding-top: .1em; }
.card-rows dd { font-weight: 700; }
.card-fact { background: var(--gold-light); border: 3px dashed var(--gold); border-radius: 18px; padding: .8em 1.1em; font-weight: 700; }
.card-fact-title { color: #8A5A00; font-size: .85em; margin-bottom: .2em; }
.card-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; padding: 0 clamp(18px, 2.4vw, 36px) clamp(18px, 2.4vw, 30px); }

/* ---------- Памятка ---------- */
.memo-card { max-width: 820px; padding: clamp(22px, 3vw, 44px) 0 0; }
.memo-card h2 { color: var(--blue); font-size: 1.7em; padding: 0 clamp(22px, 3vw, 44px); margin-bottom: .6em; }
.memo { list-style: none; counter-reset: m; display: grid; gap: .6em; padding: 0 clamp(22px, 3vw, 44px) 1.2em; }
.memo li { counter-increment: m; display: flex; gap: .7em; font-weight: 700; background: var(--blue-light); border-radius: 14px; padding: .6em .9em; }
.memo li::before { content: counter(m); flex: none; width: 1.8em; height: 1.8em; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-family: "Rubik"; font-size: .85em; }

/* ---------- Финал ---------- */
.finish { max-width: 1500px; width: 100%; margin: 0 auto; background: #FFFCF3; border-radius: 32px; box-shadow: var(--shadow); padding: clamp(22px, 3vw, 48px); border: 2px solid #EDE3CC; }
.finish-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 1.4em; }
.finish-summary { display: flex; align-items: center; gap: clamp(8px, 1.5vw, 24px); min-width: 0; }
.finish-cat { width: clamp(54px, 7vw, 110px); height: auto; flex: none; }
.finish h1 { margin-bottom: .15em; font-size: clamp(32px, 3.2vw, 60px); }
.finish-score { color: var(--soft); font-weight: 700; }
.finish-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.finish-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(8px, 1.2vw, 20px) clamp(12px, 1.6vw, 26px); }
.fcell { display: flex; flex-direction: column; align-items: center; gap: .4em; cursor: pointer; background: none; border: none; font-family: inherit; color: var(--ink); }
.fcell .slot { width: min(100%, 17vh); font-size: 1.1em; }
.fcell:nth-child(odd) .slot { transform: rotate(-3deg); } .fcell:nth-child(even) .slot { transform: rotate(3deg); }
.fcell > span { overflow-wrap: anywhere; font-weight: 800; font-size: .9em; text-align: center; line-height: 1.2; }

/* ---------- Узкие и низкие экраны ---------- */
@media (max-width: 1000px) {
  .game-layout { grid-template-columns: minmax(0, 1fr); }
  .album { width: 100%; max-width: 560px; }
  .cover-rings { display: none; }
  .statement::before { display: none; }
}
@media (max-width: 720px) {
  .cover { border-left-width: 8px; border-radius: 22px; }
  .cover-body { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .cover-scene { order: -1; justify-self: center; max-width: min(100%, 330px, 42vh); max-width: min(100%, 330px, 42svh); }
  .finish-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-photo { width: clamp(120px, 27vw, 200px); }
}
@media (max-width: 540px) {
  .who, .feed, .truth, .card-body { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .who .photo, .truth .photo, .card-photo { margin-inline: auto; }
  .task { padding: 15px; }
  .tile { padding: 5px; border-width: 2px; border-radius: 12px; }
  .tile .photo { padding: 1px; }
  .tile .tname { font-size: .86em; }
  .tiles { gap: 5px; }
  .tf .opt .letter { width: 1.45em; height: 1.45em; }
  .start-actions .btn { white-space: normal; flex: 1 1 100%; }
  .card-rows div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .card-body { align-items: start; padding: 14px; }
  .card-info h2 { font-size: clamp(24px, 6.5vw, 28px); }
  .finish h1 { font-size: clamp(23px, 7vw, 32px); }
}
@media (min-width: 541px) and (max-width: 850px) and (max-height: 500px) {
  .cover-body { grid-template-columns: minmax(0, 1fr) minmax(0, .72fr); }
  .cover-scene { order: 0; max-width: 100%; }
  .start-actions .btn { padding: .65em .85em; }
}
@media (prefers-reduced-motion: reduce) {
  .flake { display: none; }
  .screen.active, .cover-stickers .st, .slot.current, .slot.new, .modal, .wrong, .explain { animation: none; }
}

/* ---------- Печать текущего экрана ---------- */
@media print {
  body { background-attachment: scroll; font-size: 11pt; }
  .snow { display: none; }
  .screen.active { display: block; min-height: 0; padding: 0; }
  #screen-start { padding: 0; }
  .screen.active, .screen.active *, .modal { animation: none; }
  .cover, .task, .album, .finish, .card { box-shadow: none; }
  .cover-body { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); padding: 16px; }
  .cover-scene { order: 0; max-width: 100%; }
  .cover-topic { background: var(--blue-light); color: var(--blue-dark); }
  .cover-rings { display: none; }
  .game-layout { grid-template-columns: minmax(0, 1fr) minmax(130px, .45fr); gap: 12px; }
  .task, .album { padding: 12px; }
  .who, .feed, .truth { gap: 12px; }
  .who .photo, .feed .photo, .truth .photo { width: clamp(100px, 19vw, 170px); }
  .finish-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .fcell { break-inside: avoid; }
  .fcell .slot { width: min(100%, 76px); }
  body:has(.modal:not(.hidden)) .screen.active { display: none; }
  .modal:not(.hidden) { display: block; position: static; padding: 0; background: none; }
  .modal .card { max-height: none; overflow: visible; }
  .modal .card-actions { display: none; }
}
