/* Merge after the current site stylesheet. Do not edit generated language pages. */

/* Headings: the font's Cyrillic stems were colliding because of -0.045em tracking. */
.hero h1 {
  font-size: 5.65cqw;
  letter-spacing: .012em;
  line-height: 1.07;
  font-kerning: normal;
  font-variant-ligatures: none;
  text-wrap: pretty;
}
.choice h2, .paths h2, .history h2, .gameplay h2, .finale-heading, .path-card h3 {
  letter-spacing: .005em;
  font-kerning: normal;
  font-variant-ligatures: none;
}
.choice h2 {
  font-size: 3.62cqw;
  line-height: 1.15;
  letter-spacing: .005em;
}
.choice-copy p {
  font-size: 1.98cqw;
  letter-spacing: 0;
}
html:not([lang="ru"]) .choice h2,
html:not([lang="ru"]) .choice-copy p { white-space: normal; }
html[lang^="zh"] .hero h1, html[lang="ja"] .hero h1, html[lang="ko"] .hero h1,
html[lang^="zh"] :is(h2,h3), html[lang="ja"] :is(h2,h3), html[lang="ko"] :is(h2,h3) {
  letter-spacing: 0;
}

/* Interactive choice scene. All copy is DOM text, never part of the illustration. */
.story-scene {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 3 / 2;
  min-height: 37cqw;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20cqw 1.8cqw 1.65cqw;
  overflow: hidden;
  background: #141c1c;
  border: 1px solid #c5a270ac;
  border-radius: max(4px, .35cqw);
  box-shadow: 0 1cqw 2cqw #0005, inset 0 0 0 1px #d8b57d22;
}
.choice-visual .story-background {
  position: absolute;
  z-index: -3;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center top;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.story-scene::after {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 35%, #080e1066 58%, #080e10c9 78%, #080e10ed);
}
.story-progress {
  position: absolute;
  top: 1.15cqw;
  right: 1.15cqw;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: 7px 10px;
  border-radius: 6px;
  border: 1px solid #c6a37180;
  background: #10191bd9;
  color: #f5e6cf;
  font: 700 clamp(11px, 1.12cqw, 15px)/1.25 SagaSans, system-ui, sans-serif;
  box-shadow: 0 4px 16px #0004;
}
.story-progress strong { font: inherit; color: #dbba83; }
.story-progress-dots { display: flex; align-items: center; gap: 4px; }
.story-progress-dots i {
  display: block;
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  border: 1px solid #d1ad7460;
  background: #a98b5440;
  transition: background .25s, box-shadow .25s;
}
.story-progress-dots i.is-filled { background: #e0bc7e; box-shadow: 0 0 7px #e0bc7e99; }
.story-ui {
  width: 100%;
  display: grid;
  gap: max(8px, .7cqw);
  transition: opacity .17s ease, transform .17s ease;
}
.story-ui.is-changing { opacity: 0; transform: translateY(5px); }
.story-dialogue { position: relative; }
.story-speaker {
  display: inline-flex;
  position: relative;
  min-height: 30px;
  max-width: 100%;
  align-items: center;
  margin-left: .35cqw;
  padding: 6px 16px;
  border: 1px solid #ba9862ad;
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  color: #fae6c3;
  background: linear-gradient(155deg,#4d3c28db,#1c2020f0);
  box-shadow: inset 0 0 0 1px #d7aa6925;
  font: 700 clamp(14px, 1.45cqw, 20px)/1.2 Saga, Georgia, serif;
  letter-spacing: .025em;
}
.story-message {
  position: relative;
  display: grid;
  align-content: center;
  gap: 5px;
  min-height: 60px;
  border: 1px solid #bda17180;
  border-radius: 6px;
  padding: max(11px, .85cqw) max(12px, 1.2cqw);
  background: linear-gradient(110deg,#111b1def,#101719ee 80%);
  color: #f4e8d3;
  font-size: clamp(15px,1.35cqw,20px);
  line-height: 1.4;
  box-shadow: inset 0 0 0 2px #c39f6821,0 3px 10px #0004;
  overflow-wrap: anywhere;
}
.story-message::before,.story-message::after {
  content:"";
  position:absolute;
  pointer-events:none;
  width:12px;
  height:12px;
  border-color:#d2ac72;
  border-style:solid;
}
.story-message::before { top:-1px;left:-1px;border-width:2px 0 0 2px;border-radius:6px 0 0; }
.story-message::after { bottom:-1px;right:-1px;border-width:0 2px 2px 0;border-radius:0 0 6px; }
.story-result-title { color: #e4c38c; font-size: 1.16em; }
.story-options { display: grid; gap: 7px; margin: 0 .6cqw; }
.story-option, .story-restart {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 13px;
  min-height: 43px;
  width: 100%;
  border: 1px solid #b5945e82;
  border-radius: 6px;
  background: linear-gradient(100deg,#172123e8,#0e1618ed);
  color: #f4e9d5;
  font: 400 clamp(14px,1.27cqw,18px)/1.32 Saga, Georgia, serif;
  text-align: left;
  cursor: pointer;
  transition: background .18s,border-color .18s,box-shadow .18s,transform .18s,color .18s;
  overflow-wrap: anywhere;
}
.story-option::before {
  content: "";
  display: block;
  flex: none;
  width: 12px;
  height: 12px;
  background: #93836a;
  transform: rotate(45deg);
  transition: background .18s,box-shadow .18s;
}
.story-option:hover,.story-option:focus-visible,.story-option.is-selected,
.story-restart:hover,.story-restart:focus-visible {
  outline: none;
  border-color: #e5c184;
  background: linear-gradient(100deg,#94703dbf,#3a3125ec 65%,#182123e8);
  box-shadow: inset 0 0 0 1px #e2c18c4d,0 0 15px #d7a75338;
  color: #fff3dc;
  transform: translateY(-1px);
}
.story-option:hover::before,.story-option:focus-visible::before,.story-option.is-selected::before {
  background: #f2d394;
  box-shadow: 0 0 12px #e4be79a6;
}
.story-option:disabled { cursor: default; }
.story-option:disabled:not(.is-selected) { opacity: .72; }
.story-result-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 9px;
}
.story-result-actions[hidden], .story-result-title[hidden],
.story-options[hidden] { display: none; }
.story-restart { justify-content: center; text-align: center; }
.story-steam {
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  gap:8px;
  border:1px solid #8bb6b6;
  border-radius:7px;
  background:linear-gradient(180deg,#3a7779,#0c484d);
  color:white;
  font:700 clamp(13px,1.2cqw,17px)/1.2 SagaSans,system-ui,sans-serif;
  text-align:center;
  padding: 9px 12px;
  box-shadow:0 4px 12px #0005,inset 0 1px 1px #ddf3e488;
}
.story-steam:hover { filter: brightness(1.16); }
.story-steam .steam-icon { width:1.5em; height:1.5em; }

/* Authentic game artwork. Text, headers and captions are HTML layers. */
.feature-frame {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 16/9;
  border: 1px solid #c9a975b3;
  border-radius: max(4px, .38cqw);
  overflow: hidden;
  background: #142023;
}
.gameplay-grid .feature-frame img {
  position: absolute;
  inset: 0;
  width:100%;
  height:100%;
  aspect-ratio:auto;
  object-fit:cover;
  border: 0;
  border-radius: 0;
}
.feature-dialogue-text {
  position:absolute;
  inset:auto 4% 5% 4%;
  display:grid;
  gap:3px;
  padding: 7px 9px;
  font-size:clamp(10px,.88cqw,13px);
  line-height:1.28;
  color:#f5ead4;
  border:1px solid #c9a9759e;
  border-radius:4px;
  background:#102335e8;
  text-shadow:0 1px 2px #000;
}
.feature-dialogue-text strong { color:#e9c98f; font-weight:700; }
.feature-equipment img { object-fit:contain!important; }
.equipment-merchant,.equipment-inventory {
  position:absolute;
  top:10.2%;
  transform:translateX(-50%);
  max-width:25%;
  font:700 clamp(9px,.8cqw,12px)/1.15 SagaSans,system-ui,sans-serif;
  color:#f3e9d4;
  text-align:center;
  text-shadow:0 1px 3px #01131c;
  overflow-wrap:anywhere;
}
.equipment-merchant { left:34.5%; }
.equipment-inventory { left:71%; }

/* Real game UI showcases: cropped artwork + responsive HTML for every label. */
.gameplay .showcase-grid {
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: clamp(22px,3cqw,42px) clamp(16px,2.2cqw,32px);
  padding: 0 2.75cqw;
  align-items: start;
}
.showcase-card { min-width: 0; container-type: inline-size; }
.gameplay-grid .showcase-card figcaption { text-align:left; padding:15px 7px 0; }
.showcase-card figcaption h3 {
  color:#f6e8cc; font:700 clamp(20px,4.45cqw,30px)/1.18 Saga,Georgia,serif;
  letter-spacing:.01em; margin:0 0 7px;
}
.showcase-card figcaption p { color:#cdc8b7; font:400 clamp(14px,2.65cqw,17px)/1.55 Saga,Georgia,serif; margin:0; }
.game-ui {
  --ui-line:#78b8c6; --ui-light:#dbeef0; --ui-muted:#a6d1d9;
  position:relative; isolation:isolate; display:flex; flex-direction:column; gap:11px;
  min-height:clamp(280px,66.5cqw,435px); padding:12px;
  border:1px solid #bca17a; border-radius:6px; overflow:hidden;
  background:radial-gradient(ellipse at 52% 38%,#075567 0%,#064052 55%,#092b3b 100%);
  box-shadow:inset 0 0 0 3px #073241,0 8px 18px #07101255;
  font:400 clamp(11px,2.35cqw,15px)/1.3 SagaSans,system-ui,sans-serif;
  color:var(--ui-light);
}
.game-ui::before { content:"";position:absolute;z-index:-1;inset:0;pointer-events:none;background:repeating-linear-gradient(115deg,#ffffff03 0 1px,transparent 1px 5px); }
.game-ui .ui-header {
  position:relative; display:grid; place-items:center; min-height:36px; margin:-12px -12px 0;
  padding:9px 14px; text-align:center; background:linear-gradient(180deg,#1a5263,#063449);
  border-bottom:1px solid #73b5c7a0; color:#f3f0dc;
  font:700 clamp(16px,3.6cqw,24px)/1.24 SagaSans,system-ui,sans-serif;
  text-shadow:0 2px 4px #031723; overflow-wrap:anywhere;
}
.game-ui .ui-footer {
  text-align:center; min-height:24px; margin-top:auto; padding:7px 3px 0;
  border-top:1px solid #76bdc84f; color:var(--ui-muted); font-size:.91em; line-height:1.3; overflow-wrap:anywhere;
}
.gameplay-grid .game-ui img { display:block; width:100%; height:auto; aspect-ratio:auto; object-fit:cover; border:0; border-radius:0; }
.merchant-board { flex:1; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.15fr) minmax(0,1fr); align-items:center; gap:9px; }
.merchant-items { align-self:stretch; min-width:0; display:flex; flex-direction:column; justify-content:center; gap:7px; }
.merchant-items > strong { color:#f6f0d9; text-align:center; font-size:1.07em; overflow-wrap:anywhere; }
.item-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:5px; }
.item-tile { min-width:0; overflow:hidden; border:1px solid #74bdcc65; background:#12394c; border-radius:3px; }
.item-tile.is-active { border-color:#53dba9; box-shadow:0 0 7px #41f1a755; }
.game-ui .item-tile img { aspect-ratio:1.38; object-fit:cover; }
.item-price,.merchant-footer>span:first-child { display:flex; justify-content:center;align-items:center;gap:4px;font-weight:700; }
.item-price { min-height:20px; padding:2px; color:#fff; background:linear-gradient(90deg,#042b40,#103d50);font-size:.92em; }
.item-price i,.ui-coin { display:inline-block;width:.94em;height:.94em;flex:none;border:1px solid #ffe4a2;border-radius:50%;background:radial-gradient(circle at 35% 35%,#fff2a9,#f5b63c 50%,#ac6220);box-shadow:inset 0 0 0 1px #ad6c23; }
.game-ui .merchant-person { align-self:center; width:100%; object-fit:contain; mix-blend-mode:normal; border-radius:5px; mask-image:linear-gradient(90deg,transparent 0%,#000 7%,#000 93%,transparent 100%); }
.merchant-footer { display:flex;justify-content:space-between;align-items:center;gap:8px; }
.merchant-footer > span:first-child { color:#ffe8a0; }
.hall-board { flex:1; display:grid;grid-template-columns:minmax(0,.76fr) minmax(0,2fr);gap:10px;align-items:stretch; }
.hall-progress { padding:7px 8px 7px 0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;text-align:center;border-right:1px solid #8ac6d55c;color:var(--ui-muted); }
.hall-progress > strong { color:#e9f2ed; font-size:1.2em; }
.hall-ring { width:clamp(60px,15cqw,100px);aspect-ratio:1;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#f2bd61 0deg 35deg,#2c7183 35deg 360deg);box-shadow:0 0 0 1px #80b9c477,inset 0 0 10px #12344288; }
.hall-ring b { width:82%;aspect-ratio:1;border-radius:50%;display:grid;place-items:center;background:#073643;color:#f5eee0;font-size:clamp(25px,6.4cqw,46px); }
.hall-endings { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;align-content:stretch; }
.ending-tile { min-width:0;display:flex;flex-direction:column;gap:5px;padding:8px;border:1px solid #75b4c5b5;border-radius:5px;background:linear-gradient(150deg,#0d3d54,#0a283e);box-shadow:inset 0 0 0 2px #73cadd1c; overflow-wrap:anywhere; }
.ending-tile > strong,.ending-heading strong { color:#f1ede4; font-size:1.08em; }
.ending-tile.is-unlocked { border-color:#e9bc64; background:linear-gradient(135deg,#175963,#0d4350);box-shadow:inset 0 0 0 1px #e5b24f,0 0 12px #e1ad3a22; }
.ending-heading { display:flex;justify-content:space-between;align-items:center;gap:5px; }
.ending-check { font-size:1.4em;font-weight:bold;color:#ffd475; }
.ending-chapter { color:#9ac5ce;font-size:.85em; }
.ending-tile p { font-weight:700;color:#e9e7d9;margin:0;font-size:.96em;line-height:1.23; }
.ending-locked { flex:1; min-height:44px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;text-align:center;color:var(--ui-muted);font-size:.9em; }
.ending-locked svg { width:clamp(19px,5cqw,35px);height:clamp(19px,5cqw,35px);color:#89b8c5; }
.relationship-grid { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;align-items:stretch;flex:1; }
.relationship-tile { min-width:0;display:flex;flex-direction:column;overflow:hidden;border:1px solid #79aeba;border-radius:5px;background:#0a303c; }
.relationship-tile.is-active { border-color:#a3f5ff;box-shadow:inset 0 0 0 1px #a3f5ff,0 0 9px #4bedef70; }
.game-ui .relationship-tile img { aspect-ratio:1.27;object-fit:cover; }
.relationship-tile > span { display:flex;align-items:center;justify-content:center;gap:3px;padding:5px 2px;flex:1;color:#aad1db;font-size:.82em;text-align:center; }
.relationship-tile > span svg { width:1em;height:1em;flex:none; }
.relationship-tile > span i { font-style:normal;overflow-wrap:anywhere; }
.relationship-tile > strong { text-align:center;color:#f5f3e8;font-size:1em;padding:3px 2px 0; }
.relationship-meter { display:flex;align-items:center;justify-content:center;gap:3px;padding:3px 4px;color:#e4f9fa;font-size:.76em; }
.relationship-meter i { flex:1;height:5px;min-width:10px;border-radius:8px;background:linear-gradient(90deg,#38f0b0 20%,#265263 20%);border:1px solid #69a6b977; }
.relationship-meter b { white-space:nowrap; }
.tactics-ui { background:linear-gradient(115deg,#102839f5,#071d2bee);border-color:#b4a78f; }
.tactics-ui .ui-header { color:#efcb85;font-family:Saga,Georgia,serif;background:linear-gradient(180deg,#163343,#0c2234);border-bottom-color:#8c836e; }
.tactic-grid { flex:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;align-items:stretch; }
.tactic-choice { min-width:0;min-height:160px;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:8px;padding:10px 8px;color:#e2e8e9;background:linear-gradient(160deg,#183c53,#0b2537);border:1px solid #7096a3;border-radius:5px;box-shadow:inset 0 0 0 2px #8cbbd522;cursor:pointer;font:inherit;text-align:center;transition:background .18s,border-color .18s,box-shadow .18s;overflow-wrap:anywhere; }
.tactic-choice[aria-pressed="true"],.tactic-choice:hover,.tactic-choice:focus-visible { border-color:#f0c678;box-shadow:inset 0 0 0 1px #eccc85,0 0 13px #d0b06636;background:linear-gradient(160deg,#214861,#112b3d);outline:none; }
.tactic-choice[aria-pressed="true"]::after { content:"✓";position:absolute;top:5px;right:6px;display:grid;place-items:center;width:18px;height:18px;border:1px solid #f1cc82;border-radius:50%;color:#f3d18c;background:#173242;font-weight:bold; }
.game-ui .tactic-choice img { width:clamp(48px,17cqw,110px);aspect-ratio:1;object-fit:contain;border:0; }
.tactic-choice strong { font:700 clamp(13px,3.1cqw,21px)/1.22 Saga,Georgia,serif;color:#efd095; }
.tactic-choice span { padding-top:7px;border-top:1px solid #b2aa7a5c;font-size:.9em;line-height:1.32; }
.tactics-footer { color:#d2ba8c!important; }
@media(max-width:800px) {
  .gameplay .showcase-grid { grid-template-columns:1fr;padding:0;gap:25px; }
  .game-ui { min-height:0; }
  .showcase-card figcaption h3 { font-size:22px; }
  .showcase-card figcaption p { font-size:15px; }
}
@container (max-width:390px) {
  .game-ui { padding:10px; gap:9px; font-size:12px; }
  .game-ui .ui-header { margin:-10px -10px 0; }
  .merchant-board { grid-template-columns:repeat(2,minmax(0,1fr));gap:7px; }
  .game-ui .merchant-person { grid-column:1/-1;grid-row:1;justify-self:center;width:min(100%,185px);max-height:142px;object-fit:cover;object-position:center 35%; }
  .hall-board { grid-template-columns:1fr; }
  .hall-progress { flex-direction:row;justify-content:center;padding:0 0 9px;border-right:0;border-bottom:1px solid #8ac6d55c;gap:9px; }
  .hall-progress > strong { max-width:85px; }
  .hall-progress > span { max-width:100px; }
  .ending-tile { padding:7px; }
  .relationship-grid { gap:4px; }
  .relationship-tile > span { flex-direction:column;font-size:10px;min-height:34px; }
  .relationship-meter { flex-wrap:wrap; }
  .relationship-meter i { flex-basis:75%; }
  .tactic-grid { grid-template-columns:1fr;gap:6px; }
  .tactic-choice { min-height:0;display:grid;grid-template-columns:58px minmax(0,1fr);grid-template-rows:auto auto;gap:3px 8px;align-items:center;text-align:left;padding:8px 24px 8px 8px; }
  .game-ui .tactic-choice img { grid-row:1/3;width:58px; }
  .tactic-choice strong { font-size:16px; }
  .tactic-choice span { border:0;padding:0;font-size:12px; }
}

/* The closing heading remains HTML, on a completely clean high-res landscape. */
.finale {
  min-height: 34cqw;
  aspect-ratio: 2051 / 767;
  padding: 4.1cqw 4cqw 3cqw;
  background:linear-gradient(180deg,#17232c83 0%,#171c2259 38%,#121a2110 67%),url("../assets/images/sunset.webp?v=25181d14") center center/cover no-repeat,#262c2a;
  justify-content:flex-start;
}
.finale-heading { letter-spacing:.012em; text-shadow:0 3px 12px #000b; }

@media(max-width:650px) {
  .hero h1 {
    font-size:clamp(34px,9.4vw,56px);
    letter-spacing:.01em;
    line-height:1.12;
  }
  .choice h2,.paths h2,.history h2,.gameplay h2 {
    font-size:29px;
    letter-spacing:.005em;
  }
  .choice-copy p { font-size:17px; white-space:normal; }
  .story-scene {
    aspect-ratio:auto;
    min-height:0;
    padding:clamp(185px,55vw,295px) 11px 13px;
    display:block;
  }
  .choice-visual .story-background {
    height:clamp(265px,77vw,395px);
    object-position:center top;
    mask-image:linear-gradient(180deg,black 68%,transparent);
    -webkit-mask-image:linear-gradient(180deg,black 68%,transparent);
  }
  .story-scene::after {
    background:linear-gradient(180deg,transparent 25%,#0b151868 55%,#0b1518e8 78%);
  }
  .story-progress { top:10px;right:10px;font-size:12px; }
  .story-ui { gap:8px; }
  .story-speaker { margin-left:4px; font-size:16px; padding:5px 13px; }
  .story-message { min-height:68px; padding:12px; font-size:16px; }
  .story-options { margin:0 3px; gap:8px; }
  .story-option,.story-restart { min-height:50px;font-size:15px;padding:11px 12px;gap:11px; }
  .story-option::before { width:10px;height:10px; }
  .story-result-actions { grid-template-columns:1fr; }
  .story-steam { min-height:50px;font-size:17px; }
  .feature-dialogue-text { font-size:12px; padding:8px 10px; }
  .equipment-merchant,.equipment-inventory { font-size:11px; }
  .finale {
    min-height:300px; aspect-ratio:auto; padding:36px 22px 32px;
    gap:17px;background-size:cover;background-position:center center;
  }
  .finale-heading { font-size:30px;letter-spacing:.01em;line-height:1.18; }
}
@media(prefers-reduced-motion:reduce) {
  .story-ui,.story-option,.story-option::before,.story-restart,.story-progress-dots i {
    transition:none!important;
  }
  .story-option:hover,.story-option:focus-visible,.story-restart:hover { transform:none; }
}
