@font-face {
  font-family: IstanbulFallback;
  src: url('../assets/fonts/DejaVuSans.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: IstanbulSignature;
  src: url('../assets/fonts/Chomsky.otf') format('opentype');
  font-display: swap;
}
#s2-overlay, #s2-home-button {
  --ink: #142e29;
  --muted: #56615b;
  --paper: #fff5e6;
  --accent: #b94632;
  --coral: #f47a60;
  --line: rgb(40 55 44 / 20%);
  --serif: Georgia, 'Times New Roman', serif;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', IstanbulFallback, sans-serif;
  font-weight: 400; color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
}
#s2-overlay *, #s2-home-button { box-sizing: border-box; }
#s2-overlay[hidden], #s2-home-button[hidden], #s2-overlay [hidden] { display: none !important; }
#s2-overlay {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; overflow: auto;
  background: #18271f; overscroll-behavior: contain;
}
.s2-stage {
  position: relative;
  width: min(100vw, 56.25vh); height: min(100vh, 177.7778vw);
  width: min(100vw, 56.25dvh); height: min(100dvh, 177.7778vw);
  isolation: isolate; container-type: inline-size;
}
.s2-art, .s2-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.s2-art { background: url('../assets/images/character_select_bg.jpg') center / 100% 100% no-repeat; }
.s2-shade { background: linear-gradient(180deg, transparent 18%, rgb(22 28 19 / 12%) 29%, rgb(22 28 19 / 28%) 50%, transparent 81%); }
/* Точные видимые границы подписи по утверждённому образцу; общий графический файл текста. */
.s2-creator-signature {
  position: absolute; left: 52.55727377%; top: 13.32635309%; margin: 0;
  width: 37.66895762%; height: 2.4871134%; display: block;
  pointer-events: none; user-select: none;
}
/* Сверху логотип и подпись, снизу исходный русский слоган.
   Прокрутка ограничена средней областью; заголовки и кнопки остаются в обычном потоке. */
.s2-content {
  position: absolute; inset: 18.4% 0 18.5%;
  padding: 3px clamp(14px, 6cqw, 32px) 8px;
  overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: rgb(255 245 230 / 70%) transparent;
  -webkit-overflow-scrolling: touch;
}
#s2-overlay button, #s2-home-button {
  font-family: inherit; color: inherit; cursor: pointer; touch-action: manipulation;
  -webkit-appearance: none; appearance: none;
}
#s2-overlay button { min-height: 44px; max-width: 100%; }
#s2-overlay button:disabled { cursor: wait; opacity: .65; }
#s2-overlay button:focus-visible, #s2-home-button:focus-visible {
  outline: 3px solid #ad4834; outline-offset: 3px;
}
#s2-overlay h1:focus { outline: none; }
#s2-overlay svg, #s2-home-button svg {
  display: block; width: 20px; height: 20px; flex: 0 0 auto;
}
#s2-overlay strong { font-weight: 600; }
#s2-overlay h1, #s2-overlay h2, #s2-overlay p { overflow-wrap: break-word; }
.s2-glass {
  border: 1px solid rgb(255 255 255 / 75%);
  background: linear-gradient(135deg, rgb(255 250 240 / 95%), rgb(250 237 217 / 89%));
  box-shadow: 0 8px 28px rgb(30 25 13 / 16%), inset 0 1px 0 rgb(255 255 255 / 80%);
  -webkit-backdrop-filter: blur(22px) saturate(110%);
  backdrop-filter: blur(22px) saturate(110%);
}
.s2-ending-copy {
  min-height: 100%; display: flex; flex-direction: column; justify-content: flex-end;
  text-align: center; padding-block: 8px;
}
.s2-ending-copy > * { flex-shrink: 0; }
.s2-ending-header { margin: 0 0 clamp(14px, 4cqw, 21px); }
.s2-completed {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: fit-content; max-width: 100%; padding: 7px 14px 7px 8px;
  margin: 0 auto clamp(12px, 3.8cqw, 20px); border-radius: 999px;
  font-family: var(--serif); font-size: clamp(14px, 4.3cqw, 22px);
  font-weight: 700; line-height: 1.25;
}
.s2-completed-icon {
  display: grid; place-items: center; flex-shrink: 0;
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(145deg, #ff957b, #df513a); color: #fff;
}
.s2-completed-icon svg { width: 20px !important; height: 20px !important; stroke-width: 2.5; }
#s2-overlay h1 {
  margin: 0; font-family: var(--serif); font-weight: 700;
  font-size: clamp(29px, 8.3cqw, 43px); line-height: 1.05;
  letter-spacing: -.035em; text-wrap: balance;
}
#s2-overlay .s2-ending-header h1 {
  color: #fff5e6; font-size: clamp(35px, 11.5cqw, 59px);
  text-shadow: 0 2px 8px #201c14, 0 1px 2px #201c14;
}
.s2-ending-header h1 > span, .s2-ending-header h1 em { display: block; }
.s2-ending-header h1 em { font: inherit; font-size: .91em; margin-top: 1px; }
.s2-flourish { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 10px auto 0; color: #fff5e6; }
.s2-flourish > span { width: 48px; height: 7px; border-bottom: 1px solid currentColor; border-radius: 50%; }
.s2-flourish svg { width: 15px !important; height: 15px !important; }
.s2-ending-actions { display: grid; gap: 10px; }
.s2-card-button {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
  gap: clamp(10px, 3.2cqw, 17px); width: 100%; min-height: 66px !important;
  padding: clamp(12px, 3.5cqw, 18px); border-radius: clamp(15px, 4.3cqw, 22px);
  text-align: left; transition: background .18s ease, transform .18s ease;
}
.s2-card-button strong { font-size: clamp(14px, 3.9cqw, 20px); line-height: 1.35; }
.s2-icon { display: grid; place-items: center; width: 28px; color: var(--ink); }
.s2-icon svg { width: 27px !important; height: 27px !important; }
.s2-chevron { color: var(--accent); }
.s2-chevron svg { width: 18px !important; height: 18px !important; stroke-width: 2.4; }
.s2-home-link {
  display: flex; align-items: center; justify-content: center; width: 100%;
  margin: 12px 0 0; padding: 10px 0; border: 0; background: transparent;
  font-size: clamp(13px, 3.45cqw, 17px); line-height: 1.4;
  text-decoration: underline; text-underline-offset: 3px;
}
#s2-overlay .s2-ending-copy > .s2-home-link { color: #fffaf1; text-shadow: 0 1px 5px #17271e; }
.s2-back-arrow { flex: 0 0 auto; transform: rotate(180deg); }
.s2-back-arrow svg { width: 15px !important; height: 15px !important; }
.s2-sheet {
  position: relative; width: 100%; padding: clamp(16px, 4.7cqw, 25px);
  border-radius: clamp(20px, 5.5cqw, 28px);
  background: linear-gradient(150deg, rgb(255 250 240 / 98%), rgb(249 234 212 / 96%));
}
.s2-sheet-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: -10px 0 5px; }
.s2-back-button { display: inline-flex; align-items: center; gap: 3px; border: 0; background: none; padding: 5px 0; font-size: 12px; line-height: 1.4; }
.s2-eyebrow { font-size: 11px; line-height: 1.5; font-weight: 600; text-transform: uppercase; color: var(--accent); }
#s2-overlay .s2-sheet h1 { font-size: clamp(27px, 7.7cqw, 40px); text-align: center; }
.s2-copy { margin: 10px 0 0; font-size: clamp(14px, 3.7cqw, 19px); line-height: 1.4; text-align: center; }
.s2-price { display: grid; gap: 3px; margin: 14px 0; padding: 12px 6px; border: 1px solid rgb(255 255 255 / 35%); border-radius: 15px; background: rgb(255 253 247 / 46%); text-align: center; }
.s2-price-label { font-size: 12px; line-height: 1.4; }
.s2-price > strong { font-family: var(--serif); font-size: clamp(42px, 11.9cqw, 62px); line-height: 1.05; font-weight: 700 !important; letter-spacing: -.04em; white-space: nowrap; }
.s2-price > strong span { font-size: .88em; }
.s2-release-price { font-size: 12px; line-height: 1.4; color: var(--muted); }
.s2-package-label { font-family: var(--serif); margin: 0 0 10px; text-align: center; font-size: clamp(15px, 4.2cqw, 21px); font-weight: 700; line-height: 1.3; }
.s2-package-list { display: grid; gap: 10px; list-style: none; padding: 0; margin: 0 0 16px; }
.s2-package-list li { display: flex; align-items: center; gap: 9px; font-size: clamp(12px, 3.4cqw, 17px); line-height: 1.4; }
.s2-package-list svg { width: 22px !important; height: 22px !important; padding: 4px; color: #fff; border-radius: 50%; background: linear-gradient(145deg, #ff957b, #df513a); stroke-width: 2.4; }
#s2-overlay .s2-pay-button, #s2-overlay .s2-small-cta {
  display: grid; width: 100%; padding: 12px; gap: 6px;
  border: 1px solid rgb(255 255 255 / 20%); border-radius: 19px;
  background: linear-gradient(135deg, #36563e, #183b30); color: #fff7ec;
  box-shadow: 0 4px 10px rgb(29 50 35 / 14%); text-align: center;
}
.s2-pay-label { font-family: var(--serif); font-size: clamp(17px, 4.4cqw, 23px); font-weight: 700; line-height: 1.2; text-wrap: balance; }
.s2-button-price { display: flex; align-items: baseline; justify-content: center; gap: 16px; flex-wrap: wrap; }
.s2-button-price s { font-size: 17px; color: #f7dfcc; text-decoration-color: #ff977e; text-decoration-thickness: 2px; white-space: nowrap; }
.s2-button-price strong { font-size: clamp(26px, 7cqw, 36px); color: #ff9278; white-space: nowrap; }
.s2-fineprint { margin: 9px 2px 0; font-size: 12px; line-height: 1.4; text-align: center; color: var(--muted); }
.s2-sheet > .s2-home-link { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.s2-notice { margin: 12px 0 0; padding: 12px; border-radius: 12px; background: #e8eee5; color: #234630; font-size: 13px; line-height: 1.5; text-align: center; }
.s2-feature-list { display: grid; gap: 8px; list-style: none; margin: 14px -2px 12px; padding: 0; }
.s2-feature-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 11px 10px; border-radius: 17px; background: rgb(255 253 248 / 63%); }
.s2-feature-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--accent); background: #ffe7d5; }
.s2-feature-icon svg { width: 22px !important; height: 22px !important; }
.s2-feature-list li:nth-child(n+5) .s2-feature-icon { color: var(--ink); }
.s2-feature-list h2 { font-family: var(--serif); margin: 0 0 3px; font-size: clamp(16px, 4.4cqw, 22px); font-weight: 700; line-height: 1.15; letter-spacing: -.025em; }
.s2-feature-list p { margin: 0; font-size: clamp(12px, 3.25cqw, 16px); line-height: 1.45; color: #38483e; }
.s2-requirement { margin: 0 0 12px; padding-top: 9px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.5; text-align: center; color: var(--muted); }
#s2-overlay .s2-small-cta { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px; font-size: clamp(13px, 3.4cqw, 17px); line-height: 1.35; font-weight: 600; }
.s2-small-cta svg { width: 17px !important; height: 17px !important; color: #ff977e; }
#s2-home-button { position: fixed; z-index: 90; display: flex; align-items: center; justify-content: center; gap: .6em; padding: .45em .5em; font-weight: 500; }
#s2-home-button svg { width: 1em; height: 1em; }
/* После прохождения основное действие в меню ведёт на второй сезон. */
#s2-home-button.s2-completed-primary{border-style:solid;border-color:#ffe2a5;background:#17364ef7;color:#fff1cf;font-family:GameSans,IstanbulFallback,sans-serif;font-weight:700;padding:0;line-height:1.1}
#s2-home-button.s2-completed-primary:hover{background:#ad5046;color:#fff}
#s2-home-button.s2-completed-primary svg{width:.65em;height:.65em}
/* Карточка на одном экране с размытым фоном: непрозрачность 30% означает прозрачность 70%. */
.s2-stage[data-view="preorder"] .s2-content,.s2-stage[data-view="features"] .s2-content{inset:18.4% 0 16.5%;padding:0 6cqw;overflow:clip}
.s2-stage .s2-sheet{transform-origin:top center;background:rgb(255 245 228 / 30%);backdrop-filter:blur(32px) saturate(65%) contrast(.45) brightness(1.5);-webkit-backdrop-filter:blur(32px) saturate(65%) contrast(.45) brightness(1.5);text-shadow:0 1px 1px #fff6}
.s2-preorder-sheet{display:grid;gap:.7cqw;padding:2.6cqw 4cqw;border-radius:5cqw}
#s2-overlay .s2-preorder-sheet>*{margin:0}
#s2-overlay .s2-preorder-sheet .s2-sheet-nav{gap:2cqw;min-height:6cqw}
#s2-overlay .s2-preorder-sheet .s2-back-button{min-height:6cqw;padding:0;font-size:2.9cqw}
.s2-preorder-sheet .s2-eyebrow{font-size:2.8cqw}
#s2-overlay .s2-preorder-sheet h1{font-size:5.6cqw;line-height:1.08;letter-spacing:-.035em;text-wrap:initial}
.s2-preorder-sheet .s2-copy{font-size:3.2cqw;line-height:1.25}
.s2-preorder-sheet .s2-price{grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:3cqw;row-gap:0;padding:.8cqw 2.4cqw;border-radius:3cqw;text-align:left;align-items:center}
.s2-preorder-sheet .s2-price>strong{grid-column:1;grid-row:1 / 3;font-size:8.7cqw;line-height:1}
.s2-preorder-sheet .s2-price-label{grid-column:2;grid-row:1;font-size:2.9cqw;line-height:1.2}
.s2-preorder-sheet .s2-release-price{grid-column:2;grid-row:2;font-size:2.7cqw;line-height:1.2;color:#243e35}
.s2-preorder-sheet .s2-package-label{font-size:3.7cqw;line-height:1.25;padding-top:.6cqw}
.s2-preorder-sheet .s2-package-list{gap:.7cqw;padding:1cqw 0}
.s2-preorder-sheet .s2-package-list li{gap:1.8cqw;font-size:3.05cqw;line-height:1.25}
.s2-preorder-sheet .s2-package-list svg{width:3.8cqw!important;height:3.8cqw!important;padding:.6cqw}
#s2-overlay .s2-preorder-sheet .s2-pay-button{grid-template-columns:minmax(0,1fr) auto;align-items:center;min-height:14cqw;padding:1.7cqw 2.5cqw;gap:2.4cqw;border-radius:3.5cqw;text-shadow:none}
.s2-preorder-sheet .s2-pay-label{font-size:3.8cqw;line-height:1.2;text-align:left;text-wrap:initial}
.s2-preorder-sheet .s2-button-price{flex-direction:column;gap:0;align-items:center;line-height:1.15}
.s2-preorder-sheet .s2-button-price s{font-size:3cqw}
.s2-preorder-sheet .s2-button-price strong{font-size:6cqw}
.s2-preorder-sheet .s2-fineprint{font-size:2.65cqw;line-height:1.25;color:#233d33;padding:1cqw 0}
#s2-overlay .s2-preorder-sheet .s2-home-link{min-height:8cqw;font-size:3.1cqw;padding:1cqw 0;border-top:1px solid #24453533;line-height:1.3}
.s2-preorder-sheet .s2-notice{padding:1.4cqw;font-size:2.8cqw;line-height:1.25;border-radius:2cqw;background:#eef5e9cc}
@media (hover: hover) {
  .s2-card-button:hover { background: #fffaef; }
  #s2-overlay .s2-pay-button:hover, #s2-overlay .s2-small-cta:hover { background: #254b35; }
  .s2-home-link:hover { text-decoration-thickness: 2px; }
}
.s2-card-button:active, .s2-pay-button:active, .s2-small-cta:active { transform: translateY(1px); }
#s2-overlay[data-view="ending"] { animation: s2-ending-enter .5s linear both; }
.s2-stage[data-view="ending"] .s2-ending-copy { animation: s2-ending-enter .45s ease both; }
@keyframes s2-ending-enter { from { opacity: 0; } to { opacity: 1; } }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .s2-glass { background: #fcf0df; } }
@media (prefers-reduced-motion: reduce) { #s2-overlay, #s2-overlay *, #s2-home-button { transition: none !important; animation: none !important; } }
.s2-notice svg{display:inline-block;width:1.1em;height:1.1em;vertical-align:-0.18em;margin-right:.3em}
