/* /anime – страница для аниме-аудитории (14.10.2026, только превью).
   Ника как персонаж: анкета, характер, отыгрыш, режимы, распорядок.
   Картинки – свои из assets (кадр у окна, дневник, скриншоты переписки),
   новых нет. Цвета – токены site.css: светлая и тёмная тема без своих
   значений; свои цвета только поверх фото (оно светлое в обеих темах).
   Кружков перед словами нет (правило 29.09): цвет модели – полоской. */

/* ── Первый экран: текст слева, карточка персонажа справа ─────────────── */
.an-hero { position: relative; overflow: hidden; padding: 56px 0 80px; }
.an-hero::before { content: ""; position: absolute; top: 0; bottom: 0; right: -5%; width: 60%; background: radial-gradient(closest-side, var(--accent-soft), transparent); pointer-events: none; }
.an-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px 72px; align-items: center; }
.an-kicker { display: flex; align-items: center; gap: 12px; margin: 0; font: 500 14.5px/1 var(--sans); color: var(--ink-2); }
.an-age { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); color: var(--accent); font: 500 12.5px/1 var(--mono); letter-spacing: .06em; }
.an-title { margin: 26px 0 0; font: 300 clamp(40px, 5.4vw, 78px)/1.0 var(--serif); letter-spacing: -0.03em; text-wrap: balance; max-width: 11em; }
.an-title em { font-style: normal; color: var(--accent); }
.an-hero .lead { max-width: 26em; color: var(--ink-2); }
.an-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 38px; }
.an-note { margin: 18px 0 0; max-width: 34em; font-size: 15px; line-height: 1.45; color: var(--muted); }

/* Карточка: кадр в скруглённой рамке; сверху в тумане – стеклянная
   табличка с именем, у правого края – имя катаканой (ニカ), как в заставке
   персонажа. Фигура на кадре – внизу, табличка её не закрывает. */
.an-card { position: relative; margin: 0; justify-self: end; width: min(100%, 460px); aspect-ratio: 2 / 3; border-radius: 32px; overflow: hidden; isolation: isolate; background: #e7e5e1;
  box-shadow: 0 0 0 1px var(--line), 0 50px 90px -50px rgba(38, 28, 24, .45); }
.an-card img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 40% 60%; }
.an-kana { position: absolute; top: 24px; right: 20px; writing-mode: vertical-rl; font: 500 30px/1 "Yu Gothic UI", "Yu Gothic", "Hiragino Sans", "Noto Sans JP", "Noto Sans CJK JP", sans-serif; letter-spacing: .25em; color: rgba(28, 27, 26, .5); user-select: none; }
.an-plate { position: absolute; left: 18px; top: 18px; display: grid; gap: 6px; padding: 14px 20px 16px; border-radius: 20px; color: #1c1b1a;
  background: rgba(255, 255, 255, .5); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, .75); box-shadow: 0 16px 40px -24px rgba(38, 28, 24, .45); }
.an-plate b { font: 300 34px/1 var(--serif); letter-spacing: -.02em; }
.an-plate-k { font: 500 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(28, 27, 26, .62); }
.an-plate-s { font-size: 14.5px; line-height: 1.2; color: rgba(28, 27, 26, .78); }
/* Её реплика из настоящей переписки (скриншот ниже, «Вечером») – пузырём в тумане справа от головы. */
.an-say { position: absolute; right: 16px; top: 40%; max-width: 64%; margin: 0; padding: 10px 14px 11px; border-radius: 18px; border-bottom-left-radius: 6px; color: #1c1b1a;
  font: 400 15px/1.35 var(--sans); background: rgba(255, 255, 255, .62); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .8); box-shadow: 0 12px 30px -18px rgba(38, 28, 24, .5); }
html.lowgfx .an-plate, html.lowgfx .an-say { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255, 255, 255, .85); }

/* ── Анкета персонажа ─────────────────────────────────────────────────── */
.an-sheet { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; }
.an-sheet > div { padding: 22px 24px 24px; border-radius: 22px; border: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, transparent), color-mix(in srgb, var(--surface) 55%, transparent)); }
.an-sheet > div.wide { grid-column: span 2; }
.an-sheet dt { font: 500 11.5px/1.2 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.an-sheet dd { margin: 14px 0 0; font: 300 clamp(22px, 2vw, 28px)/1.15 var(--serif); letter-spacing: -.02em; color: var(--ink); overflow-wrap: anywhere; }
.an-sheet .wide dd { font: 400 17px/1.5 var(--sans); letter-spacing: 0; color: var(--ink-2); }
.an-sheet dd a { color: var(--accent); text-decoration: none; }
@media (hover: hover) { .an-sheet dd a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; } }

/* ── Характер: черты и два настоящих скриншота переписки ──────────────── */
.an-char { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px 72px; align-items: center; }
.an-traits { list-style: none; margin: 32px 0 0; padding: 0; }
.an-traits li { padding: 18px 0; border-top: 1px solid var(--line); font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.an-traits li:last-child { border-bottom: 1px solid var(--line); }
.an-traits b { display: block; margin-bottom: 6px; font: 300 22px/1.2 var(--serif); letter-spacing: -.02em; color: var(--ink); }
.an-shots { display: flex; justify-content: center; align-items: flex-start; gap: 28px; }
.an-shot { --w: 260px; margin: 0; display: grid; justify-items: center; gap: 16px; }
.an-shot:nth-child(2) { margin-top: 72px; }
.an-shot figcaption { font: 500 12.5px/1.3 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); text-align: center; }
@media (max-width: 1100px) and (min-width: 901px) { .an-shot { --w: 220px; } }

/* ── Отыгрыш: цифры замера на тёмных плашках ──────────────────────────── */
.an-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.an-stat { position: relative; overflow: hidden; display: grid; gap: 16px; align-content: start; padding: 30px 28px 32px; border-radius: 24px; background: var(--night); color: var(--night-ink); }
.an-stat::before { content: ""; position: absolute; right: -30%; bottom: -60%; width: 90%; height: 120%; background: radial-gradient(closest-side, rgba(227, 162, 154, .12), transparent 70%); pointer-events: none; }
.an-stat b { position: relative; font: 300 clamp(36px, 3.8vw, 54px)/1 var(--serif); letter-spacing: -.03em; color: var(--cyan); white-space: nowrap; }
.an-stat span { position: relative; font-size: 16px; line-height: 1.5; color: var(--night-muted); }
.an-src { margin: 18px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--faint); }
.an-more { margin: 22px 0 0; }

/* ── Режимы: три модели, цвет – полоской сверху ───────────────────────── */
.an-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.an-mode { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: 28px 26px 26px; border-radius: 24px; border: 1px solid var(--line); background: var(--surface); }
.an-mode::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--c); }
.an-mode-k { margin: 0; font: 500 11.5px/1 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--c); }
.an-mode h3 { margin: 0; font: 300 32px/1 var(--serif); letter-spacing: -.025em; }
.an-mode p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.an-mode p.an-mode-t { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font: 500 13px/1 var(--mono); color: var(--muted); }
.an-modes-foot { margin: 26px 0 0; max-width: 46em; font-size: 16px; line-height: 1.65; color: var(--muted); }
.an-modes-foot code { font: 500 14.5px/1 var(--mono); padding: 2px 6px; border-radius: 6px; background: var(--paper-2); color: var(--ink); white-space: nowrap; }

/* ── Распорядок: кадр с дневником и текст ─────────────────────────────── */
.an-day { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px 64px; align-items: center; }
.an-day-photo { margin: 0; aspect-ratio: 5 / 4; border-radius: 28px; overflow: hidden; background: var(--paper-2); }
.an-day-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.an-day-text .h2 { margin-bottom: 24px; }
.an-day-text p { margin: 0 0 14px; max-width: 34em; font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.an-day-text .eyebrow { color: var(--muted); }
.an-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 24px !important; }

/* ── 18+ и «Ника – ИИ» ────────────────────────────────────────────────── */
.an-honest { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.an-honest-card { display: grid; gap: 12px; align-content: start; padding: 32px; border-radius: 24px; border: 1px solid var(--line-2);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 90%, transparent), color-mix(in srgb, var(--surface) 50%, transparent)); }
.an-big { margin: 0; font: 300 56px/1 var(--serif); letter-spacing: -.03em; color: var(--accent); }
.an-honest-card h2 { margin: 8px 0 0; font: 600 21px/1.3 var(--sans); letter-spacing: -.005em; }
.an-honest-card p:not(.an-big) { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--ink-2); }
.an-honest-card .arrow { justify-self: start; margin-top: 6px; }

/* ── Как начать ───────────────────────────────────────────────────────── */
.an-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.an-steps li { padding: 26px 26px 28px; border-radius: 24px; border: 1px solid var(--line); background: var(--surface); }
.an-step-n { font: 500 13px/1 var(--mono); letter-spacing: .08em; color: var(--accent); }
.an-steps h3 { margin: 12px 0 8px; font: 300 22px/1.15 var(--serif); letter-spacing: -.025em; }
.an-steps p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--muted); }
.an-fine { margin: 20px 0 0; max-width: 46em; font-size: 15px; line-height: 1.55; color: var(--muted); }

/* ── Тёмная тема: светлые кадры чуть приглушены, рамка карточки светлее ── */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .an-card img, :root:not([data-theme="light"]) .an-day-photo img { filter: brightness(.86); }
  :root:not([data-theme="light"]) .an-card { box-shadow: 0 0 0 1px var(--line-2), 0 50px 90px -50px rgba(0, 0, 0, .7); }
}
:root[data-theme="dark"] .an-card img, :root[data-theme="dark"] .an-day-photo img { filter: brightness(.86); }
:root[data-theme="dark"] .an-card { box-shadow: 0 0 0 1px var(--line-2), 0 50px 90px -50px rgba(0, 0, 0, .7); }

/* ── Узкие экраны ─────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .an-hero { padding: 32px 0 56px; }
  .an-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 32px; }
  .an-card { width: 100%; }
  .an-char, .an-day { grid-template-columns: minmax(0, 1fr); }
  .an-stats, .an-modes, .an-steps { grid-template-columns: minmax(0, 1fr); }
  .an-sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Скриншоты листаются вбок внутри блока, как шаги на главной; страница не шире экрана. */
  .an-shots { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 6px var(--gutter) 18px; scrollbar-width: none; }
  .an-shots::-webkit-scrollbar { display: none; }
  .an-shot { --w: 250px; flex: none; scroll-snap-align: center; }
  .an-shot:nth-child(2) { margin-top: 0; }
}
/* Телефон: кадр сверху во всю ширину, ниже по высоте (голова под табличкой
   с именем не прячется, ноги на месте), текст под ним. */
@media (max-width: 700px) {
  .an-hero { padding: 16px 0 48px; }
  .an-hero::before { top: 0; bottom: auto; right: -30%; width: 110%; height: 60%; }
  .an-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .an-card { order: -1; justify-self: stretch; aspect-ratio: 5 / 6; max-height: 72svh; border-radius: 26px; }
  .an-card img { object-position: 40% 82%; }
}
@media (max-width: 560px) {
  .an-title { margin-top: 20px; }
  .an-cta { margin-top: 30px; }
  .an-cta .btn { width: 100%; }
  .an-plate { left: 14px; top: 14px; padding: 12px 16px 13px; border-radius: 16px; }
  .an-plate b { font-size: 28px; }
  .an-kana { top: 18px; right: 14px; font-size: 24px; }
  .an-say { right: 12px; top: auto; bottom: 14px; max-width: 70%; font-size: 14px; padding: 8px 12px 9px; }
  .an-sheet > div { padding: 16px 16px 18px; border-radius: 18px; }
  .an-sheet dd { margin-top: 10px; }
  .an-honest { grid-template-columns: minmax(0, 1fr); }
  .an-honest-card { padding: 24px 22px; }
  .an-big { font-size: 46px; }
}
@media (max-width: 380px) {
  .an-plate { gap: 4px; padding: 10px 14px 11px; }
  .an-plate-k { display: none; }
  .an-plate b { font-size: 24px; }
  .an-plate-s { font-size: 13px; }
  .an-card img { object-position: 40% 90%; }
}
