:root {
  color-scheme: dark;
  --wine: #1b0c13;
  --deep-wine: #150a10;
  --plum: #2f151f;
  --text: #fbeada;
  --muted: #cfb2ab;
  --amber: #f2b574;
  --line: rgba(244, 192, 158, .19);
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--wine);
  color: var(--text);
  font: 100%/1.58 var(--sans);
}

*, *::before, *::after { box-sizing: border-box; }
html:not([lang="en"]) [data-locale="en"],
html[lang="en"] [data-locale="ru"],
[hidden] { display: none !important; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 5px; }
::selection { color: var(--deep-wine); background: var(--amber); }

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h2, h3 { line-height: 1.1; }
h2 { font-size: clamp(2.2rem, 4.4vw, 4.4rem); letter-spacing: -.045em; }
h3 { font-size: clamp(1.6rem, 2.65vw, 2.4rem); letter-spacing: -.035em; }
p { text-wrap: pretty; }

.shell { width: min(100% - 112px, 1272px); margin-inline: auto; }
.section { padding-block: clamp(3.8rem, 8.4vw, 8rem); }
.section-heading { margin-bottom: clamp(1.6rem, 4vw, 3.2rem); }
.section-heading p { margin-top: .75rem; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.18rem); }

.skip-link {
  position: fixed;
  top: .7rem;
  left: .8rem;
  z-index: 5;
  padding: .65rem 1rem;
  transform: translateY(-180%);
  border-radius: .5rem;
  background: var(--amber);
  color: var(--deep-wine);
}
.skip-link:focus { transform: translateY(0); }

.site-header { position: relative; z-index: 1; background: var(--deep-wine); border-bottom: 1px solid var(--line); }
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 78px;
  gap: 1.4rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: .7rem;
  color: var(--text);
  text-decoration: none;
  font-size: .775rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .095em;
  line-height: 1.22;
}
.brand img { border-radius: 24%; border: 1px solid var(--line); }
.main-nav { display: flex; gap: clamp(1.5rem, 4vw, 3.2rem); }
.main-nav a, .site-footer a { color: var(--muted); font-size: .92rem; text-decoration: none; }
.main-nav a:hover, .site-footer a:hover { color: var(--amber); }
.language-control {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: .2rem;
  padding: .18rem;
  border: 1px solid var(--line);
  border-radius: 99px;
}
.language-control button {
  display: grid;
  place-items: center;
  min-width: 2.4rem;
  min-height: 2.55rem;
  border: 0;
  border-radius: 99px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: .79rem;
  font-weight: 700;
  letter-spacing: .065em;
}
.language-control button[aria-pressed="true"] { background: #40242c; color: var(--text); }
.language-control button:hover { color: var(--text); }

.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--deep-wine); }
.hero-visual { position: absolute; z-index: -1; inset: 0 0 0 36%; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center 36%; }
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, #150a10 0%, #150a10 27%, rgba(21, 10, 16, .97) 35%, rgba(21, 10, 16, .6) 47%, rgba(21, 10, 16, .12) 63%, transparent 76%),
    linear-gradient(0deg, #1b0c13 0%, rgba(21, 10, 16, .12) 32%, transparent 68%, rgba(21, 10, 16, .12));
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: clamp(615px, 57vw, 760px);
  padding-block: 4rem 6.8rem;
}
.eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: .135em;
  font-size: .83rem;
  line-height: 1.4;
  font-weight: 650;
}
.age {
  display: inline-flex;
  align-items: center;
  padding: .13rem .4rem .1rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: .37rem;
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .01em;
  white-space: nowrap;
}
.hero h1 {
  margin: 1.35rem 0 1.55rem;
  font-size: clamp(3.5rem, 6.23vw, 6.35rem);
  line-height: .98;
  letter-spacing: -.055em;
}
.hero h1 em { color: var(--amber); font-weight: inherit; }
.hero-description { max-width: 30rem; color: #ecd0c6; font-size: clamp(1.06rem, 1.65vw, 1.32rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.45rem; margin-top: 2rem; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 3.35rem;
  padding: .72rem 1.3rem;
  border: 1px solid transparent;
  border-radius: .56rem;
  font-size: .97rem;
  line-height: 1.32;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease;
  cursor: pointer;
}
.button-primary { background: var(--amber); color: #28141a; }
.button-primary:hover:not(:disabled) { background: #fbd09b; }
.button-primary:disabled { background: #4b3037; color: #e0c3bc; cursor: default; }
.button-outline { border-color: rgba(242, 181, 116, .5); color: var(--amber); background: transparent; }
.button-outline:hover { background: rgba(242, 181, 116, .08); }
.text-link {
  width: max-content;
  max-width: 100%;
  padding: .4rem 0;
  border: 0;
  background: transparent;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: .32em;
  text-decoration-color: rgba(242, 181, 116, .6);
  font-weight: 550;
  font-size: .97rem;
  cursor: pointer;
}
.text-link:hover { color: var(--amber); }

#try { padding-top: clamp(1.2rem, 3.7vw, 3.6rem); padding-bottom: 0; }
.demo-panel {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr);
  gap: clamp(1.8rem, 5.5vw, 5rem);
  padding: clamp(1.4rem, 4.6vw, 4.3rem);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: linear-gradient(121deg, #381b27, #24131c 74%);
}
.demo-intro h2 { margin: .8rem 0 1rem; font-size: clamp(2.4rem, 4vw, 3.9rem); }
.demo-intro > p:last-child { max-width: 27rem; color: var(--muted); }
.demo-form { align-self: center; min-width: 0; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.choice-grid fieldset { display: grid; grid-template-rows: 1fr 1fr; gap: .55rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.choice-grid legend { padding: 0 0 .7rem; color: var(--text); font-size: .9rem; font-weight: 650; }
.choice {
  display: flex;
  align-items: center;
  gap: .55rem;
  position: relative;
  padding: .68rem .7rem;
  min-height: 3.45rem;
  border: 1px solid var(--line);
  border-radius: .57rem;
  color: var(--text);
  background: rgba(12, 6, 11, .27);
  cursor: pointer;
  font-size: .92rem;
  line-height: 1.36;
}
.choice:hover { border-color: rgba(242, 181, 116, .57); }
.choice:has(input:checked) { border-color: var(--amber); background: rgba(242, 181, 116, .11); }
.choice:has(input:focus-visible) { outline: 2px solid var(--amber); outline-offset: 3px; }
.choice input { flex: 0 0 auto; margin: 0; width: .92rem; height: .92rem; accent-color: var(--amber); }
.choice input:focus-visible { outline: none; }
.demo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1rem; margin-top: 1.2rem; }
.demo-status { color: var(--muted); font-size: .87rem; }
.demo-result { margin-top: 1.35rem; padding: clamp(1rem, 2vw, 1.55rem); border-radius: .7rem; border: 1px solid rgba(242, 181, 116, .4); background: #261319; }
.demo-result h3 { margin: .55rem 0 .6rem; font-size: clamp(1.55rem, 3vw, 2.4rem); }
.demo-result p:not(.eyebrow) { color: #e9cfc3; }
.demo-result .text-link { margin-top: .85rem; }

.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.8rem, 2vw, 1.45rem); }
.story-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(360px, 40vw, 535px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: #351d25;
}
.story-card img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 31%; }
.story-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(0deg, #190c13 0%, rgba(25, 12, 19, .95) 14%, rgba(25, 12, 19, .76) 31%, rgba(25, 12, 19, .22) 57%, transparent 75%);
}
.story-content { padding: clamp(1.05rem, 2.4vw, 2.05rem); }
.story-access { width: fit-content; padding: .2rem .52rem; border: 1px solid rgba(247, 181, 117, .43); border-radius: .3rem; color: #ffcf9c; background: rgba(25, 12, 19, .47); font-size: .83rem; font-weight: 650; }
.story-card h3 { margin: .66rem 0 .6rem; }
.story-card p:not(.story-access) { color: #e3c5bb; max-width: 26rem; }

.how-band { border-block: 1px solid var(--line); background: #231018; }
.how-band .section { padding-block: clamp(3.6rem, 6.7vw, 6.3rem); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.4rem, 4vw, 3rem); margin: 0; padding: 0; list-style-type: none; }
.steps li { border-top: 1px solid var(--line); padding-top: 1.2rem; }
.step-marker { color: var(--amber); font-family: var(--serif); font-style: italic; font-size: 1.75rem; line-height: 1; }
.steps h3 { margin: .9rem 0 .65rem; font-size: clamp(1.5rem, 2.35vw, 2.15rem); }
.steps p { color: var(--muted); }
.game-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 2.5rem;
  margin-top: 2.5rem;
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: #2c1620;
  color: var(--muted);
}
.game-notes strong { color: var(--text); }

.screen-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.1rem, 6vw, 5rem); width: min(100%, 62rem); margin-inline: auto; }
.screen-grid figure { margin: 0; min-width: 0; }
.screen-frame {
  width: 100%;
  padding: .36rem;
  overflow: hidden;
  border: 1px solid rgba(244, 192, 158, .29);
  border-radius: clamp(.9rem, 3.4vw, 2.5rem);
  background: #241519;
  box-shadow: 0 21px 42px rgba(0, 0, 0, .25);
}
.screen-frame img { width: 100%; height: auto; border-radius: inherit; }
.screen-grid figcaption { margin-top: 1rem; color: var(--muted); text-align: center; font-size: .94rem; }

.release-band { background: #2a131d; border-block: 1px solid var(--line); }
.release-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 1.3rem; align-items: center; padding-block: 2.5rem; }
.release-inner img { border-radius: 23%; border: 1px solid var(--line); }
.release-inner h2 { font-size: clamp(1.6rem, 3vw, 2.65rem); }
.release-inner p { color: var(--muted); margin-top: .28rem; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem 1.4rem; min-height: 100px; padding-block: 1rem; }
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .91rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }

@media (max-width: 1040px) {
  .shell { width: calc(100% - 76px); }
  .hero-inner { min-height: 580px; }
  .hero h1 { font-size: clamp(3.25rem, 6.8vw, 5rem); }
  .demo-panel { gap: 2rem; }
}

@media (max-width: 760px) {
  .shell { width: calc(100% - 40px); }
  .header-inner { min-height: 65px; grid-template-columns: 1fr auto; }
  .main-nav { display: none; }
  .hero-visual { inset: 0 0 auto; height: min(74vw, 420px); }
  .hero-visual img { object-position: center 34%; }
  .hero::after { background: linear-gradient(0deg, #1b0c13, #150a10 calc(100% - min(74vw, 420px)), rgba(21, 10, 16, .24) calc(100% - min(50vw, 265px)), transparent 100%); }
  .hero-inner { min-height: 0; padding-block: min(63vw, 355px) 2.9rem; }
  .hero h1 { margin: .8rem 0 1rem; font-size: clamp(2.85rem, 9.2vw, 4.7rem); }
  .hero-actions { margin-top: 1.4rem; gap: .55rem 1.2rem; }
  .demo-panel { grid-template-columns: 1fr; }
  .wide-only { display: none; }
  .story-grid { grid-template-columns: 1fr; gap: 1rem; }
  .story-card { min-height: clamp(410px, 90vw, 530px); }
  .story-card h3 { font-size: clamp(1.9rem, 5.5vw, 2.8rem); }
  .story-content { padding: 1.5rem; }
  .steps { grid-template-columns: 1fr; }
  .steps li { display: grid; grid-template-columns: 1.6rem 1fr; align-items: baseline; gap: .4rem .85rem; }
  .steps h3 { margin: 0; }
  .steps p { grid-column: 2; }
  .game-notes { grid-template-columns: 1fr; padding: 1rem; margin-top: 1.8rem; }
  .release-inner { padding-block: 1.8rem; grid-template-columns: auto 1fr; }
  .release-inner img { width: 58px; height: 58px; }
  .release-inner .button { grid-column: 2; justify-self: start; }
  .site-footer { flex-direction: column; align-items: flex-start; justify-content: center; }
}

@media (max-width: 490px) {
  .choice-grid { grid-template-columns: 1fr; gap: 1rem; }
  .choice-grid legend { padding-bottom: .45rem; }
  .choice { min-height: 2.9rem; }
  .screen-grid { gap: 1.8rem; grid-template-columns: 1fr; width: min(100%, 17rem); }
  .screen-frame { border-radius: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
