﻿/* Press colors from scripts/theme/palette.gd. Poster from Poster in scripts/ui/main_menu.gd. */

:root {
  --paper: #f3e9d2;
  --light-paper: #fcf4e2;
  --print-face: #ece0c4;
  --print-grid: #d8c8aa;
  --ink: #20201c;
  --shadow: #151512;
  --rule: #c9ba9d;
  --red: #ba3025;
  --red-shade: #85251f;
  --yellow: #d7a636;
  --blue: #284a68;
  --green: #3d654f;
  color-scheme: light;
}

@font-face {
  font-family: "Golos Text";
  src: url("../fonts/GolosText.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border-radius: 0;
}

html {
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Golos Text", sans-serif;
  font-size: 16px;
  font-weight: 400;
  font-variation-settings: "wght" 400;
  line-height: 1.45;
}

h1,
h2,
h3,
h4,
button,
.btn,
.meta,
.mark,
.mark-small,
.card-title,
.card-en,
.card-langs,
.colophon,
.status {
  font-weight: 850;
  font-variation-settings: "wght" 850;
}

p,
h1,
h2,
h3 {
  margin: 0;
}

a {
  color: inherit;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

::selection {
  background: var(--yellow);
  color: var(--ink);
}

button,
.btn {
  font-family: inherit;
  appearance: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 0;
  font-size: 19px;
  line-height: 1;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: var(--red);
  color: var(--light-paper);
}

.btn-primary:hover {
  background: var(--ink);
  color: var(--light-paper);
}

.btn-primary:active {
  background: var(--blue);
  color: var(--light-paper);
}

.btn-secondary {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink);
}

.btn-secondary:hover {
  background: var(--ink);
  color: var(--light-paper);
  border-color: var(--ink);
}

.btn-secondary:active {
  background: var(--blue);
  color: var(--light-paper);
  border-color: var(--blue);
}

.btn:disabled,
.btn-primary:disabled,
.btn-secondary:disabled,
.btn:disabled:hover,
.btn-primary:disabled:hover,
.btn-secondary:disabled:hover {
  background: var(--shadow);
  color: var(--light-paper);
  border-color: var(--shadow);
  cursor: default;
}

.sheet {
  min-height: 100vh;
  box-sizing: border-box;
  padding: 48px 64px 40px;
}

.shelf-head {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "mark press"
    "line press";
  gap: 8px 32px;
  align-items: end;
  margin-bottom: 28px;
}

.shelf-head .masthead {
  grid-area: mark;
}

.shelf-head .mark {
  font-size: clamp(42px, 5vw, 64px);
}

.shelf-head .tagline {
  grid-area: line;
  max-width: 42ch;
  margin: 0;
  font-size: 18px;
}

.shelf-press {
  grid-area: press;
  align-self: start;
  margin: 8px 0 0;
  text-decoration: none;
  border-bottom: 2px solid var(--ink);
}

.masthead {
  min-width: 0;
}

.meta {
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mark {
  margin: 12px 0 0;
  font-size: clamp(56px, 6vw, 84px);
  line-height: 0.86;
}

.mark-small {
  font-size: 64px;
}

.rule {
  height: 2px;
  margin: 18px 0 22px;
  border: 0;
  background: var(--ink);
}

.tagline {
  max-width: 28ch;
  font-size: 22px;
  line-height: 1.35;
  white-space: pre-line;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 0;
}

.card {
  position: relative;
  aspect-ratio: 4 / 3;
  min-height: 0;
  border: 2px solid var(--ink);
  background: var(--light-paper);
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 52px 18px 18px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.tile .meta {
  position: absolute;
  top: 16px;
  left: 18px;
}

.card-live .tile::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 10px;
  height: 10px;
  background: var(--red);
}

.card-title {
  margin: 0;
  font-size: clamp(32px, 3.4vw, 48px);
  line-height: 0.9;
}

.card-pop {
  position: absolute;
  inset: 10px;
  z-index: 3;
  display: none;
  flex-direction: column;
  align-items: stretch;
  padding: 14px;
  border: 2px solid var(--ink);
  background: var(--paper);
}

.card-pop-title {
  font-size: clamp(26px, 2.4vw, 36px);
}

.card:hover,
.card:focus-within,
.card.is-open {
  z-index: 4;
}

.card:hover .card-pop,
.card:focus-within .card-pop,
.card.is-open .card-pop {
  display: flex;
}

.card-en {
  margin: 8px 0 0;
  font-size: 13px;
  letter-spacing: 0.12em;
}

.card-tag {
  margin: 8px 0 0;
  font-size: 17px;
  line-height: 1.35;
  white-space: pre-line;
}

.card-langs {
  margin: 10px 0 0;
  color: var(--blue);
  font-size: 13px;
  letter-spacing: 0.16em;
}

.card-empty {
  background: var(--print-face);
}

.card-empty .card-title,
.card-empty .meta {
  color: #8a7d68;
}

.card .btn {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  margin-top: 14px;
  justify-content: flex-start;
  padding: 12px 16px;
  font-size: 18px;
}

.poster-compact {
  min-height: 220px;
  aspect-ratio: 16 / 7;
}

.poster {
  position: relative;
  width: 100%;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
  background: var(--print-face);
}

.poster.poster-compact {
  min-height: 0;
  height: 210px;
  aspect-ratio: auto;
}

.poster > * {
  position: absolute;
  pointer-events: none;
}

.poster-grid {
  z-index: 1;
  inset: 24px;
  background-image:
    linear-gradient(var(--print-grid), var(--print-grid)),
    linear-gradient(var(--print-grid), var(--print-grid)),
    repeating-linear-gradient(
      to right,
      var(--print-grid) 0 1px,
      transparent 1px 131px
    ),
    repeating-linear-gradient(
      to bottom,
      var(--print-grid) 0 1px,
      transparent 1px 131px
    );
  background-repeat: no-repeat;
  background-position:
    right 22px top 0,
    left 0 bottom 22px,
    23px 23px,
    23px 23px;
  background-size: 1px 100%, 100% 1px, auto, auto;
}

.poster-frame {
  z-index: 2;
  inset: 26px;
  border: 1px solid var(--rule);
}

.poster-ring,
.poster-disc,
.poster-hole,
.poster-hole-line {
  z-index: 3;
  left: 58.735%;
  top: 50.812%;
  transform: translate(-50%, -50%);
  animation: bukva-drift-hub 16s ease-in-out alternate infinite;
}

.poster-ring {
  width: 384px;
  height: 384px;
  background: var(--rule);
  -webkit-mask-image: radial-gradient(
    circle at 50% 50%,
    transparent 190px,
    #fff 191px,
    #fff 192px,
    transparent 193px
  );
  mask-image: radial-gradient(
    circle at 50% 50%,
    transparent 190px,
    #fff 191px,
    #fff 192px,
    transparent 193px
  );
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.poster-disc {
  z-index: 4;
  width: 304px;
  height: 304px;
}

.poster-disc::before,
.poster-disc::after {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: circle(50%);
}

.poster-disc::before {
  background: var(--rule);
  transform: translate(10px, 13px);
}

.poster-disc::after {
  background: var(--ink);
}

.poster-hole {
  z-index: 5;
  width: 222px;
  height: 222px;
  background: var(--light-paper);
  clip-path: circle(50%);
}

.poster-hole-line {
  z-index: 6;
  width: 180px;
  height: 180px;
  background: var(--rule);
  -webkit-mask-image: radial-gradient(
    circle at 50% 50%,
    transparent 88px,
    #fff 89px,
    #fff 90px,
    transparent 91px
  );
  mask-image: radial-gradient(
    circle at 50% 50%,
    transparent 88px,
    #fff 89px,
    #fff 90px,
    transparent 91px
  );
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.poster-plane-a,
.poster-plane-b,
.poster-block {
  inset: 0;
}

.poster-plane-a::before,
.poster-plane-a::after,
.poster-plane-b::before,
.poster-plane-b::after,
.poster-block::before,
.poster-block::after {
  content: "";
  position: absolute;
  inset: 0;
}

.poster-plane-a {
  z-index: 8;
  animation: bukva-drift-upper 15s ease-in-out alternate infinite;
  animation-delay: -2.4s;
}

.poster-plane-a::before {
  background: var(--red);
  clip-path: polygon(21.08% 36.2%, 68.07% 13.31%, 72.89% 24.51%, 25.9% 47.4%);
}

.poster-plane-a::after {
  background: var(--red-shade);
  clip-path: polygon(25.9% 47.4%, 72.89% 24.51%, 72.59% 26.95%, 27.26% 49.68%);
}

.poster-plane-b {
  z-index: 7;
  animation: bukva-drift-lower 17s ease-in-out alternate infinite;
  animation-delay: -5s;
}

.poster-plane-b::before {
  background: var(--red-shade);
  clip-path: polygon(7.23% 66.23%, 18.07% 86.53%, 83.43% 38.8%, 76.36% 31.98%);
}

.poster-plane-b::after {
  background: var(--red);
  clip-path: polygon(7.23% 66.23%, 83.28% 29.55%, 43.52% 71.92%, 18.07% 82.31%);
}

.poster-block {
  z-index: 9;
  animation: bukva-drift-block 18s ease-in-out alternate infinite;
  animation-delay: -7.5s;
}

.poster-block::before {
  background: var(--blue);
  clip-path: polygon(68.67% 72.24%, 84.94% 64.45%, 90.96% 77.6%, 74.7% 85.71%);
}

.poster-block::after {
  background: var(--ink);
  clip-path: polygon(74.7% 85.71%, 90.96% 77.6%, 90.96% 79.87%, 75.9% 87.34%);
}

.poster-dot {
  z-index: 10;
  left: 82.38%;
  top: 18.831%;
  width: 54px;
  height: 54px;
  background: var(--yellow);
  clip-path: circle(50%);
  transform: translate(-50%, -50%);
  animation: bukva-drift-dot 14s ease-in-out alternate infinite;
  animation-delay: -1.2s;
}

.poster-dot::after {
  content: "";
  position: absolute;
  left: calc(50% - 6px);
  top: calc(50% - 6px);
  width: 12px;
  height: 12px;
  background: var(--ink);
  clip-path: circle(50%);
}

.poster-bars {
  z-index: 11;
  inset: 0;
  background-repeat: no-repeat;
  background-image:
    linear-gradient(var(--ink), var(--ink)),
    linear-gradient(var(--ink), var(--ink)),
    linear-gradient(var(--ink), var(--ink)),
    linear-gradient(var(--ink), var(--ink)),
    linear-gradient(var(--ink), var(--ink)),
    linear-gradient(var(--ink), var(--ink)),
    linear-gradient(var(--ink), var(--ink));
  background-size:
    53px 5px,
    32px 2px,
    6px 19px,
    2px 16px,
    2px 10px,
    65px 2px,
    2px 16px;
  background-position:
    left 46px top 47px,
    left 46px top 57px,
    left 46px bottom 47px,
    left 56px bottom 47px,
    left 65px bottom 47px,
    right 46px bottom 46px,
    right 46px bottom 46px;
}

.colophon {
  margin-top: 48px;
  font-size: 14px;
  letter-spacing: 0.12em;
}

.colophon a {
  color: var(--ink);
}

footer.colophon {
  padding: 0 64px 40px;
}

footer.colophon a {
  text-decoration: none;
  border-bottom: 2px solid var(--ink);
}

footer.colophon a:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}

.play-sheet {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.play-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  width: min(100%, 1280px);
  margin-bottom: 24px;
}

.stage {
  position: relative;
  width: min(100%, 1280px);
  aspect-ratio: 16 / 9;
  margin-inline: auto;
  overflow: hidden;
  background: var(--ink);
}

.stage canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  background: var(--paper);
}

.gate {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  padding: 48px;
  overflow: auto;
  background: var(--paper);
}

.gate.is-hidden {
  display: none;
}

.gate .mark {
  margin-top: 0;
}

.status {
  margin-top: 12px;
  color: var(--red);
  font-size: 16px;
}

.about {
  max-width: 62ch;
}

.about p {
  font-size: 22px;
  line-height: 1.45;
}

.about .meta {
  font-size: 14px;
  line-height: 1.2;
}

.about p + p {
  margin-top: 18px;
}

.about .colophon {
  margin-top: 48px;
  font-size: 14px;
}

@keyframes bukva-drift-hub {
  0% { translate: 0 0; }
  25% { translate: 18px -12px; }
  50% { translate: 6px 16px; }
  75% { translate: -20px 8px; }
  100% { translate: 0 0; }
}

@keyframes bukva-drift-upper {
  0% { translate: 0 0; }
  25% { translate: -16px -10px; }
  50% { translate: -8px 18px; }
  75% { translate: 20px 6px; }
  100% { translate: 0 0; }
}

@keyframes bukva-drift-lower {
  0% { translate: 0 0; }
  25% { translate: 20px 10px; }
  50% { translate: 8px -14px; }
  75% { translate: -18px -8px; }
  100% { translate: 0 0; }
}

@keyframes bukva-drift-block {
  0% { translate: 0 0; }
  25% { translate: -14px 16px; }
  50% { translate: 12px 8px; }
  75% { translate: 18px -14px; }
  100% { translate: 0 0; }
}

@keyframes bukva-drift-dot {
  0% { translate: 0 0; }
  25% { translate: 14px 12px; }
  50% { translate: -10px 18px; }
  75% { translate: -16px -10px; }
  100% { translate: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .poster-ring,
  .poster-disc,
  .poster-hole,
  .poster-hole-line,
  .poster-plane-a,
  .poster-plane-b,
  .poster-block,
  .poster-dot,
  .field-ring,
  .field-disc,
  .field-hole,
  .field-plane,
  .field-block,
  .field-dot {
    animation: none;
  }
}

@media (max-width: 1100px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }

  .shelf-head {
    grid-template-columns: 1fr;
    grid-template-areas:
      "mark"
      "line"
      "press";
  }
}

@media (max-width: 640px) {
  .sheet {
    padding: 28px 20px;
  }

  .cards {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .card-pop {
    left: 0;
    right: 0;
    top: auto;
    bottom: 8px;
    translate: 0 0;
  }

  footer.colophon {
    padding-right: 20px;
    padding-left: 20px;
  }

  .gate {
    padding: 24px 20px;
  }
}

.field {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--print-face);
  pointer-events: none;
}

.field-grid,
.field-ring,
.field-disc,
.field-hole,
.field-plane,
.field-block,
.field-dot,
.field-bars {
  position: absolute;
}

.field-grid {
  inset: 4vh 4vw;
  background-image:
    repeating-linear-gradient(to right, var(--print-grid) 0 1px, transparent 1px 9vw),
    repeating-linear-gradient(to bottom, var(--print-grid) 0 1px, transparent 1px 9vw);
}

.field-ring,
.field-disc,
.field-hole {
  left: 62%;
  top: 46%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.field-ring {
  width: min(54vh, 42vw);
  aspect-ratio: 1;
  border: 1px solid var(--rule);
  animation: bukva-drift-hub 18s linear infinite;
}

.field-disc {
  width: min(42vh, 32vw);
  aspect-ratio: 1;
  animation: bukva-drift-hub 18s linear infinite;
}

.field-disc::before,
.field-disc::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.field-disc::before {
  background: var(--rule);
  translate: 12px 16px;
}

.field-disc::after {
  background: var(--ink);
}

.field-hole {
  width: min(28vh, 22vw);
  aspect-ratio: 1;
  background: var(--light-paper);
  border: 1px solid var(--rule);
  animation: bukva-drift-hub 18s linear infinite;
}

.field-plane {
  width: min(46vw, 520px);
  height: min(28vh, 240px);
}

.field-plane-a {
  right: -8vw;
  bottom: -6vh;
  left: auto;
  background: var(--red);
  clip-path: polygon(0 22%, 74% 0, 100% 64%, 24% 100%);
  animation: bukva-drift-lower 18s linear infinite;
  animation-delay: -9s;
}

.typing .sheet {
  position: relative;
  z-index: 1;
}

.field-block {
  right: 6vw;
  bottom: 8vh;
  width: min(24vw, 280px);
  height: min(22vh, 200px);
  background: var(--blue);
  clip-path: polygon(0 30%, 68% 0, 100% 58%, 30% 100%);
  animation: bukva-drift-block 15s linear infinite;
  animation-delay: -4s;
}

.field-dot {
  top: 12vh;
  right: 14vw;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--yellow);
  animation: bukva-drift-dot 17s linear infinite;
}

.field-dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ink);
  translate: -50% -50%;
}

.field-plane-b {
  right: -4vw;
  top: 22vh;
  left: auto;
  width: min(34vw, 380px);
  background: var(--red-shade);
  clip-path: polygon(8% 0, 92% 18%, 100% 78%, 0 100%);
  animation: bukva-drift-upper 21s linear infinite;
  animation-delay: -12s;
}

.field-bars {
  top: auto;
  right: 8vw;
  bottom: 8vh;
  left: auto;
  width: 53px;
  height: 5px;
  background: var(--ink);
  animation: bukva-drift-upper 12s linear infinite;
  animation-delay: -2s;
}

.field-bars::before,
.field-bars::after {
  content: "";
  position: absolute;
  left: 0;
  background: var(--ink);
}

.field-bars::before {
  top: 10px;
  width: 32px;
  height: 2px;
}

.typing-main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
  min-height: 100vh;
  padding: 36px 48px 48px;
  overflow-x: clip;
}

.hero {
  display: flex;
  align-items: stretch;
  gap: 16px;
  width: min(980px, 100%);
}

.typing-head {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  align-self: stretch;
  padding: 24px 28px 26px;
  background: var(--paper);
  border: 2px solid var(--ink);
}

.hero-play {
  flex: 0 0 168px;
  min-height: 100%;
  font-size: 28px;
  letter-spacing: 0.08em;
}

.hero-play::after {
  content: "→";
  margin-left: 12px;
}

.typing-head .mark {
  font-size: clamp(64px, 7vw, 96px);
}

.typing-head .tagline {
  max-width: 44ch;
  margin-top: 18px;
  font-size: 20px;
  white-space: normal;
}

.typing-note {
  max-width: 52ch;
  margin-top: 10px;
  font-size: 16px;
}

.typing-about {
  display: inline-block;
  margin-top: 18px;
  text-decoration: none;
  border-bottom: 2px solid var(--ink);
}

.typing-about:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}

.points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.point {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px 18px;
  background: var(--light-paper);
  border: 2px solid var(--ink);
}

.point-mark {
  display: block;
  margin-bottom: 8px;
  animation: bukva-drift-dot 11s linear infinite;
}

.point-mark-square {
  width: 16px;
  height: 16px;
  margin: 2px 0 10px;
  background: var(--red);
  animation-name: bukva-drift-upper;
  animation-delay: -3s;
}

.point-mark-disc {
  position: relative;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--yellow);
  animation-delay: -7s;
}

.point-mark-disc::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
  translate: -50% -50%;
}

.point-mark-wedge {
  width: 30px;
  height: 18px;
  margin: 1px 0 9px;
  background: var(--blue);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  animation-name: bukva-drift-block;
  animation-delay: -5s;
}

.point-title {
  font-size: 19px;
  font-weight: 850;
  font-variation-settings: "wght" 850;
  line-height: 1.1;
}

.point-text {
  font-size: 15px;
  line-height: 1.4;
}

.tongues {
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 40px;
  width: 100%;
}

.tongue {
  position: relative;
  isolation: isolate;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  min-height: 188px;
  padding: 24px;
  color: var(--ink);
  text-decoration: none;
}

.tongue::before,
.tongue::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.tongue::before {
  z-index: -2;
}

.tongue::after {
  z-index: -1;
  inset: 0;
  background: var(--light-paper);
  border: 2px solid var(--ink);
}

.tongue:hover::after {
  border-color: var(--red);
}

.tongue-name {
  font-size: clamp(28px, 2.4vw, 40px);
  font-weight: 850;
  font-variation-settings: "wght" 850;
  line-height: 0.9;
}

.tongue-play {
  font-size: 14px;
  font-weight: 850;
  font-variation-settings: "wght" 850;
  letter-spacing: 0.14em;
}

.tongue:hover .tongue-play,
.tongue:focus-visible .tongue-play {
  color: var(--red);
}

.tongue-ru::before {
  top: -18px;
  left: -18px;
  width: 72px;
  height: 72px;
  background: var(--red);
  animation: bukva-drift-upper 13s linear infinite;
  animation-delay: -4s;
}

.tongue-en::before {
  top: -26px;
  right: -34px;
  width: 136px;
  height: 136px;
  border-radius: 50%;
  background: var(--ink);
  animation: bukva-drift-hub 15s linear infinite;
  animation-delay: -10s;
}

.tongue-es::before {
  right: -24px;
  bottom: -30px;
  left: 28%;
  height: 90px;
  background: var(--red);
  clip-path: polygon(0 20%, 78% 0, 100% 68%, 16% 100%);
  animation: bukva-drift-lower 17s linear infinite;
  animation-delay: -1s;
}

.tongue-fr::before {
  top: -18px;
  left: -26px;
  width: 140px;
  height: 120px;
  background: var(--blue);
  clip-path: polygon(0 28%, 74% 0, 100% 58%, 22% 100%);
  animation: bukva-drift-block 14s linear infinite;
  animation-delay: -8s;
}

.tongue:hover::before,
.tongue:focus-visible::before {
  transform: translate(6px, -5px);
}

.typing .about {
  min-height: 0;
  margin: 6vh 0 6vh 8vw;
  background: var(--paper);
  border: 2px solid var(--ink);
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.about-links .btn-primary,
.about-links .btn:hover {
  color: var(--light-paper);
}

@media (max-width: 980px) {
  .typing-main {
    padding: 28px 20px 40px;
  }

  .tongues {
    gap: 28px;
  }

  .points {
    grid-template-columns: 1fr;
  }

  .typing .about {
    margin: 20px;
  }
}

@media (max-width: 640px) {
  .hero {
    flex-direction: column;
  }

  .hero-play {
    flex-basis: auto;
    min-height: 72px;
  }

  .typing-head {
    padding: 18px 18px 20px;
  }

  .tongues {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .typing .about p {
    font-size: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .field-ring,
  .field-disc,
  .field-hole,
  .field-plane,
  .field-block,
  .field-dot,
  .field-bars,
  .point-mark,
  .tongue::before,
  .home-ring,
  .home-disc,
  .home-hole,
  .home-plane,
  .home-block,
  .home-dot {
    animation: none;
  }
}

.home {
  min-height: 100vh;
  background: var(--paper);
}

.home-frame {
  display: grid;
  grid-template-columns: minmax(280px, 440px) minmax(280px, 1fr);
  align-items: center;
  gap: 48px;
  width: min(1120px, calc(100% - 80px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 48px 0;
}

.home-copy .mark {
  margin-top: 8px;
  font-size: clamp(72px, 9vw, 108px);
}

.home-copy .rule {
  width: 100%;
  margin: 16px 0 20px;
}

.home-copy .tagline {
  max-width: 18ch;
  margin: 0;
  font-size: 28px;
  line-height: 1.25;
}

.home-play {
  display: flex;
  width: 100%;
  min-height: 74px;
  margin-top: 28px;
  font-size: 24px;
  letter-spacing: 0.08em;
  justify-content: space-between;
  padding: 0 22px;
}

.home-play::after {
  content: "→";
  font-size: 28px;
}

.home-note {
  max-width: 36ch;
  margin: 18px 0 0;
  font-size: 17px;
  line-height: 1.45;
}

.home-how {
  display: inline-block;
  margin-top: 22px;
  text-decoration: none;
  border-bottom: 2px solid var(--ink);
}

.home-how:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}

.home-poster {
  position: relative;
  height: min(640px, 78vh);
  overflow: hidden;
  background: var(--print-face);
}

.home-grid,
.home-frame-line,
.home-ring,
.home-disc,
.home-hole,
.home-plane,
.home-block,
.home-dot,
.home-bars {
  position: absolute;
  pointer-events: none;
}

.home-grid {
  inset: 24px;
  background-image:
    repeating-linear-gradient(to right, var(--print-grid) 0 1px, transparent 1px 22%),
    repeating-linear-gradient(to bottom, var(--print-grid) 0 1px, transparent 1px 22%);
}

.home-frame-line {
  inset: 26px;
  border: 1px solid var(--rule);
}

.home-ring,
.home-disc,
.home-hole {
  left: 58%;
  top: 48%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: bukva-drift-hub 18s linear infinite;
}

.home-ring {
  width: 62%;
  aspect-ratio: 1;
  border: 1px solid var(--rule);
}

.home-disc {
  width: 46%;
  aspect-ratio: 1;
  background: var(--ink);
}

.home-disc::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--rule);
  translate: 12px 14px;
  z-index: -1;
}

.home-hole {
  width: 32%;
  aspect-ratio: 1;
  background: var(--light-paper);
  border: 1px solid var(--rule);
}

.home-plane-a {
  left: -8%;
  bottom: 8%;
  width: 78%;
  height: 28%;
  background: var(--red);
  clip-path: polygon(0 22%, 74% 0, 100% 64%, 24% 100%);
  animation: bukva-drift-lower 18s linear infinite;
}

.home-plane-b {
  top: 10%;
  right: -6%;
  width: 48%;
  height: 24%;
  background: var(--red-shade);
  clip-path: polygon(8% 0, 92% 18%, 100% 78%, 0 100%);
  animation: bukva-drift-upper 20s linear infinite;
}

.home-block {
  right: 8%;
  bottom: 16%;
  width: 28%;
  height: 22%;
  background: var(--blue);
  clip-path: polygon(0 30%, 68% 0, 100% 58%, 30% 100%);
  animation: bukva-drift-block 16s linear infinite;
}

.home-dot {
  top: 14%;
  right: 16%;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--yellow);
  animation: bukva-drift-dot 17s linear infinite;
}

.home-dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ink);
  translate: -50% -50%;
}

.home-bars {
  top: 8%;
  left: 8%;
  width: 48px;
  height: 5px;
  background: var(--ink);
}

.home-bars::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--ink);
}

@media (max-width: 860px) {
  .home-frame {
    grid-template-columns: 1fr;
    width: min(560px, calc(100% - 40px));
    gap: 28px;
    padding: 28px 0 40px;
  }

  .home-poster {
    height: 420px;
    order: -1;
  }
}

.learn {
  --gutter: clamp(20px, 5vw, 76px);
  --site-width: 1440px;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  background-color: var(--paper);
  background-image: linear-gradient(115deg, #fff6e566 18%, transparent 66%);
}

.learn-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--site-width), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}

.learn-logo,
.learn-quiet {
  color: var(--ink);
  font-weight: 850;
  font-variation-settings: "wght" 850;
  text-decoration: none;
}

.learn-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 3px 0;
  font-size: 23px;
  letter-spacing: -0.04em;
}

.learn-logo::before {
  content: "";
  width: 13px;
  height: 13px;
  background: var(--red);
  transform: rotate(-12deg);
}

.learn-quiet {
  font-size: 14px;
  padding: 5px 0;
}

.learn-quiet:hover,
.learn-logo:hover {
  color: var(--red);
}

.learn :focus-visible {
  outline-color: var(--blue);
}

.learn-stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 460px;
  padding: clamp(64px, 12vh, 116px) var(--gutter) clamp(100px, 18vh, 178px);
  text-align: center;
}

.learn-wordmark {
  display: flex;
  gap: clamp(5px, 0.8vw, 13px);
  font-size: clamp(40px, 16vw, 148px);
  font-weight: 900;
  font-variation-settings: "wght" 900;
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.learn-key {
  padding: 0 0.025em 0.12em;
  border-bottom: 1px solid var(--rule);
}

.learn-key:has(.learn-hit) {
  border-color: var(--red);
}

.learn-letter {
  display: inline-block;
}

.learn-hit {
  color: var(--red);
}

.learn-hint {
  margin-top: 21px;
  font-size: clamp(14px, 1.55vw, 18px);
}

.learn-start {
  align-self: center;
  gap: 23px;
  min-height: 49px;
  margin-top: 24px;
  padding: 12px 17px;
  font-size: 16px;
  letter-spacing: 0.015em;
  transition: background-color 150ms ease;
}

.learn-start span {
  font-size: 19px;
}

.learn-layouts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(100%, 465px);
  margin: clamp(32px, 5vh, 54px) 0 0;
  padding: 0;
  list-style: none;
  font-size: clamp(12px, 2.7vw, 17px);
  font-weight: 850;
  font-variation-settings: "wght" 850;
  letter-spacing: 0.02em;
}

.learn-layouts li + li {
  border-left: 1px solid var(--rule);
}

.learn-layouts span {
  display: block;
  margin-bottom: 3px;
  color: #514a3e;
  font-size: clamp(10px, 2.2vw, 12px);
  font-weight: 500;
  font-variation-settings: "wght" 500;
  letter-spacing: 0.04em;
}

.home-art {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.home-art-upper,
.home-art-lower {
  position: absolute;
  width: clamp(132px, 27vw, 490px);
  aspect-ratio: 1;
}

.home-art-upper {
  top: clamp(-30px, 5vh, 54px);
  right: clamp(-152px, -6vw, -38px);
}

.home-art-upper::before {
  content: "";
  position: absolute;
  inset: 15% 3% 0 7%;
  border: 1px solid var(--rule);
  border-radius: 50%;
  aspect-ratio: 1;
}

.home-art-upper::after {
  content: "";
  position: absolute;
  top: 54%;
  left: -9%;
  width: 118%;
  height: 1px;
  background: var(--rule);
  rotate: -18deg;
}

.home-art-wheel {
  position: absolute;
  top: 22%;
  left: 17%;
  width: 67%;
  aspect-ratio: 1;
  border: clamp(11px, 2.7vw, 46px) solid var(--ink);
  border-right-color: transparent;
  border-radius: 50%;
  rotate: -29deg;
}

.home-art-weight {
  position: absolute;
  top: 39%;
  left: 60%;
  width: 15%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--yellow);
}

.home-art-lower {
  bottom: clamp(-166px, -9vw, -48px);
  left: clamp(-107px, -5vw, -18px);
  rotate: -19deg;
}

.home-art-lower::before {
  content: "";
  position: absolute;
  inset: 5% -10% 0 2%;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: repeating-linear-gradient(90deg, transparent 0 calc(20% - 1px), #c9ba9d80 calc(20% - 1px) 20%);
}

.home-art-stripe {
  position: absolute;
  top: 32%;
  left: -45%;
  width: 139%;
  height: 39%;
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
}

.home-art-stripe::before {
  content: "";
  position: absolute;
  inset: 78% 0 0;
  background-color: var(--red-shade);
}

.home-art-tab {
  position: absolute;
  top: 67%;
  left: 47%;
  width: 43%;
  height: 12%;
  background: var(--blue);
  rotate: 8deg;
}

.learn-how {
  display: grid;
  grid-template-columns: minmax(0, 0.77fr) minmax(0, 1.23fr);
  align-items: center;
  gap: clamp(28px, 5vw, 96px);
  width: min(1340px, calc(100% - 2 * var(--gutter)));
  flex: 1;
  margin: 0 auto;
  padding-block: clamp(40px, 9vh, 108px);
}

.learn-how-title {
  max-width: 10ch;
  margin-bottom: 23px;
  font-size: clamp(44px, 5.7vw, 86px);
  font-weight: 900;
  font-variation-settings: "wght" 900;
  line-height: 0.94;
  letter-spacing: -0.024em;
}

.learn-how-copy p {
  max-width: 43ch;
  margin-bottom: 14px;
  font-size: clamp(16px, 1.75vw, 19px);
  line-height: 1.55;
}

.learn-how .learn-start {
  margin-top: 8px;
}

.gameplay-preview {
  position: relative;
  max-width: 850px;
  margin: 0;
  padding: clamp(7px, 1.1vw, 15px);
  border: 1px solid var(--rule);
  background: var(--light-paper);
  box-shadow: 8px 8px 0 #c9ba9d55;
}

.gameplay-preview::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 23px;
  height: 3px;
  background: var(--red);
}

.gameplay-field {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--print-face);
}

.gameplay-field img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gameplay-slide {
  position: absolute;
  inset: 0;
}

.gameplay-language {
  margin-top: 7px;
  font-size: 13px;
  font-weight: 700;
  font-variation-settings: "wght" 700;
}

.print-study {
  --study-line: #b4a48180;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--print-face);
  background-image:
    linear-gradient(90deg, var(--study-line) 1px, transparent 1px),
    linear-gradient(0deg, var(--study-line) 1px, transparent 1px);
  background-size: 16.67% 16.67%;
  background-position: center;
  pointer-events: none;
}

.print-study::before {
  content: "";
  position: absolute;
  inset: 6%;
  border: 1px solid var(--study-line);
}

.print-study::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--light-paper);
  clip-path: polygon(0 0, 86% 0, 10% 100%, 0 100%);
}

.print-study span {
  position: absolute;
}

.study-orbit {
  top: 17%;
  left: 18%;
  width: 63%;
  aspect-ratio: 1;
  border: clamp(15px, 3.4vw, 50px) solid var(--ink);
  border-radius: 50%;
}

.study-orbit::after {
  content: "";
  position: absolute;
  inset: clamp(-66px, -4.5vw, -25px);
  z-index: -1;
  border: 1px solid var(--rule);
  border-radius: 50%;
}

.study-plane {
  top: 49%;
  left: -14%;
  width: 123%;
  height: 19%;
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
  rotate: -25deg;
}

.study-plane::after {
  content: "";
  position: absolute;
  inset: 78% 0 0;
  background: var(--red-shade);
}

.study-block {
  top: 66%;
  left: 49%;
  width: 28%;
  height: 15%;
  background: var(--blue);
  rotate: -11deg;
}

.study-dot {
  top: 16%;
  right: 17%;
  width: 11%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--yellow);
}

.launch-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(var(--site-width), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
  padding-block: clamp(14px, 4vh, 48px);
}

.play-frame {
  position: relative;
  display: grid;
  justify-items: end;
  gap: 10px;
  width: min(100%, 1280px, max(480px, calc((100svh - 206px) * 16 / 9)));
}

.launch-stage {
  display: grid;
  width: 100%;
  outline: 1px solid var(--rule);
}

.launch-stage canvas {
  position: absolute;
  inset: 0;
}

.play-fullscreen {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--rule);
  background: var(--light-paper);
  color: var(--ink);
  font-size: 14px;
  letter-spacing: 0;
  cursor: pointer;
}

.play-fullscreen:hover {
  border-color: var(--ink);
}

.play-fullscreen[hidden],
.play-fullscreen-status:empty {
  display: none;
}

.play-fullscreen-icon::before {
  content: "\26F6";
  font: 20px/1 "Segoe UI Symbol", sans-serif;
}

.play-fullscreen-status {
  font-size: 14px;
}

.play-frame:fullscreen {
  place-items: center;
  width: 100%;
  height: 100%;
  background: var(--shadow);
}

.play-frame:fullscreen .launch-stage {
  width: min(100%, calc(100dvh * 16 / 9));
  outline: 0;
}

.play-frame:fullscreen .play-fullscreen {
  position: absolute;
  z-index: 2;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  color: var(--light-paper);
  border-color: #f3e9d288;
  background: #20201cd9;
}

.play-frame:fullscreen .play-fullscreen:hover,
.play-frame:fullscreen .play-fullscreen:focus-visible {
  border-color: var(--light-paper);
  background: var(--ink);
}

.play-frame:fullscreen .play-fullscreen:focus-visible {
  outline-color: var(--yellow);
}

.play-frame:fullscreen .play-fullscreen-status {
  position: absolute;
  right: 12px;
  bottom: 62px;
  padding: 4px 8px;
  color: var(--light-paper);
  background: var(--ink);
}

.launch-stage:has(.gate:not(.is-hidden)) {
  min-height: 360px;
}

.launch-stage:has(.gate:not(.is-hidden)) canvas {
  visibility: hidden;
}

.launch-stage .gate {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
  background: var(--light-paper);
}

.launch-stage .gate.is-hidden {
  display: none;
}

.launch-copy {
  align-self: center;
  padding: clamp(24px, 5.3vw, 80px);
}

.launch-copy :is(h1, h2) {
  font-size: clamp(39px, 5.5vw, 88px);
  font-weight: 900;
  font-variation-settings: "wght" 900;
  line-height: 0.94;
  letter-spacing: -0.024em;
}

.launch-tagline {
  max-width: 26ch;
  margin-top: 16px;
  font-size: clamp(16px, 2vw, 24px);
  line-height: 1.35;
}

.launch-study {
  border-left: 1px solid var(--rule);
}

.launch-study .study-orbit {
  top: 22%;
  left: 27%;
  width: 55%;
}

.launch-study .study-plane {
  top: 53%;
  left: 1%;
  width: 114%;
  height: 26%;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
  rotate: -31deg;
}

.launch-study .study-block {
  top: 68%;
  left: 19%;
  width: 32%;
}

.launch-study .study-dot {
  top: 22%;
  right: 22%;
}

@keyframes slovo-art-drift {
  from { translate: var(--slovo-drift-from); }
  to { translate: var(--slovo-drift-to); }
}

@media (prefers-reduced-motion: no-preference) {
  .home-art-wheel,
  .launch-study .study-orbit {
    --slovo-drift-from: 4px 5px;
    --slovo-drift-to: -6px -7px;
    animation: slovo-art-drift 10s ease-in-out -3s infinite alternate;
  }

  .home-art-weight,
  .launch-study .study-dot {
    --slovo-drift-from: -5px 4px;
    --slovo-drift-to: 6px -6px;
    animation: slovo-art-drift 8s ease-in-out -5s infinite alternate;
  }

  .home-art-stripe,
  .launch-study .study-plane {
    --slovo-drift-from: -7px 4px;
    --slovo-drift-to: 6px -5px;
    animation: slovo-art-drift 12s ease-in-out -7s infinite alternate;
  }

  .home-art-tab,
  .launch-study .study-block {
    --slovo-drift-from: 5px -3px;
    --slovo-drift-to: -5px 7px;
    animation: slovo-art-drift 13s ease-in-out -2s infinite alternate;
  }
}

.slovo-page {
  scroll-behavior: smooth;
}

.slovo-scroll {
  --landing-bar-height: 76px;
  --landing-content: min(1240px, calc(100% - 2 * var(--gutter)));
  --landing-guide-paper: #f8eed8;
  --landing-play-paper: #eee1c6;
}

.slovo-scroll .learn-bar {
  min-height: var(--landing-bar-height);
  padding-block: 10px;
}

.slovo-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 42px);
}

.slovo-scroll > main {
  position: relative;
}

.slovo-scroll > main::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0 auto 0 calc(var(--gutter) - 13px);
  width: 1px;
  background: linear-gradient(transparent 6%, #a4926c64 27% 77%, transparent 98%);
  pointer-events: none;
}

.slovo-scroll .slovo-intro {
  isolation: isolate;
  min-height: max(470px, calc(100svh - var(--landing-bar-height)));
  background: linear-gradient(transparent 79%, var(--landing-guide-paper));
}

.slovo-intro .home-art {
  mask-image: linear-gradient(#000 90%, transparent);
}

.slovo-intro .home-art-lower {
  bottom: clamp(-105px, -5vw, -32px);
}

.slovo-scroll-cue {
  position: absolute;
  bottom: clamp(16px, 4vh, 36px);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 2px;
  color: #514a3e;
  font-size: 13px;
  text-decoration: none;
}

.slovo-scroll-cue span {
  color: var(--red);
  font-size: 16px;
}

.slovo-scroll-cue:hover {
  color: var(--red);
}

.slovo-how,
.slovo-play {
  position: relative;
  isolation: isolate;
  scroll-margin-top: 12px;
}

.slovo-how {
  background: linear-gradient(var(--landing-guide-paper) 26%, #f5ead3 72%, var(--landing-play-paper));
}

.slovo-how::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 0 38%;
  background-image:
    linear-gradient(90deg, #aa96762a 1px, transparent 1px),
    linear-gradient(#aa96762a 1px, transparent 1px);
  background-size: clamp(42px, 6.5vw, 96px) clamp(42px, 6.5vw, 96px);
  clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%);
  mask-image: linear-gradient(transparent, #000 25% 73%, transparent);
  pointer-events: none;
}

.slovo-how .learn-how {
  width: var(--landing-content);
  min-height: min(85svh, 760px);
  padding-block: clamp(56px, 10vh, 110px);
}

.slovo-play {
  display: grid;
  align-items: center;
  min-height: min(100svh, 900px);
  background: linear-gradient(var(--landing-play-paper), #e7d7b8);
}

.slovo-play::before,
.slovo-play::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
}

.slovo-play::before {
  background: linear-gradient(transparent, #284a6831 38%);
  clip-path: polygon(84% 0, 100% 0, 100% 47%, 78% 12%);
}

.slovo-play::after {
  background: linear-gradient(transparent 52%, #ba302535 86%);
  clip-path: polygon(0 59%, 24% 100%, 0 100%);
}

.slovo-play .launch-main {
  width: var(--landing-content);
  min-width: 0;
  padding-block: clamp(40px, 7vh, 82px);
}

@media (max-width: 960px) {
  .home-art-upper {
    top: 42px;
    right: -48px;
  }

  .home-art-lower {
    bottom: -68px;
    left: -42px;
  }
}

@media (max-width: 800px) {
  .learn-how {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

@media (max-width: 640px) {
  .slovo-scroll {
    --landing-bar-height: 62px;
  }

  .learn-bar {
    padding-block: 12px;
  }

  .learn-stage {
    min-height: 430px;
    padding-block: 90px 104px;
  }

  .home-art-lower {
    bottom: -58px;
    left: -38px;
    width: clamp(155px, 44vw, 238px);
  }

  .slovo-play {
    min-height: 0;
  }

  .play-frame {
    width: 100%;
  }

  .launch-stage:has(.gate:not(.is-hidden)) {
    min-height: 0;
    aspect-ratio: auto;
  }

  .launch-stage .gate {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 126px;
  }

  .launch-study {
    border-top: 1px solid var(--rule);
    border-left: 0;
  }

  .launch-study .study-orbit {
    top: -22%;
  }

  .launch-study .study-dot {
    width: 9%;
  }
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: 320ms ease both slovo-leave;
}

::view-transition-new(root) {
  animation: 320ms ease both slovo-enter;
}

@keyframes slovo-leave {
  to { opacity: 0; }
}

@keyframes slovo-enter {
  from { opacity: 0; }
}

html.is-leaving body {
  opacity: 0;
  transition: opacity 280ms ease;
}

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }

  .slovo-page {
    scroll-behavior: auto;
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }

  .learn-start {
    transition: none;
  }
}

