@font-face {
  font-family: "Squada One";
  src: url("../fonts/squada-one-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --ink: #231f20;
  --ink-deep: #171416;
  --ink-raised: #2d2529;
  --plum: #a2467a;
  --plum-deep: #76304f;
  --pink: #ef85b4;
  --blush: #f3d3e5;
  --paper: #fff8fc;
  --text: #fff7fb;
  --muted: #d2c0ca;
  --line: rgba(243, 211, 229, 0.18);
  --line-strong: rgba(243, 211, 229, 0.34);
  --glass: rgba(45, 37, 41, 0.72);
  --glass-strong: rgba(39, 31, 35, 0.88);
  --shadow: 0 24px 70px rgba(5, 3, 4, 0.34);
  --display: "Squada One", Impact, sans-serif;
  --body: "Source Sans 3", "Segoe UI", sans-serif;
  --page: min(1240px, calc(100% - 48px));
  --header-height: 78px;
}

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

html {
  min-height: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 32px);
  overscroll-behavior-y: none;
  background: var(--ink-deep);
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: clip;
  overscroll-behavior-y: none;
  color: var(--text);
  background: var(--ink-deep);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 4px;
}

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

.skip-link {
  position: fixed;
  top: 14px;
  left: 16px;
  z-index: 1000;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  color: var(--paper);
  border: 0;
  background: var(--ink-deep);
  font-weight: 700;
}

.skip-link:focus,
.skip-link:focus-visible {
  width: auto;
  height: auto;
  margin: 0;
  padding: 10px 14px;
  overflow: visible;
  clip: auto;
  clip-path: none;
  border: 1px solid var(--pink);
  border-radius: 4px 12px 4px 12px;
}

.site-header {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  left: 0;
  z-index: 100;
  width: 100%;
  padding-inline: 24px;
}

.header-inner {
  width: min(1320px, 100%);
  min-height: var(--header-height);
  margin-inline: auto;
  padding: 4px 12px 4px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 14px 4px 14px 4px;
  background: var(--glass);
  box-shadow: 0 12px 38px rgba(5, 3, 4, 0.2);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}

.brand {
  flex: 0 0 auto;
  border-radius: 4px;
}

.brand img {
  width: 88px;
  height: auto;
}

#main-navigation {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
}

#main-navigation a {
  position: relative;
  padding: 12px 0 10px;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease;
}

#main-navigation a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 5px;
  height: 2px;
  background: var(--pink);
  transition: right 180ms ease;
}

#main-navigation a:hover,
#main-navigation a[aria-current="page"] {
  color: var(--text);
}

#main-navigation a:hover::after,
#main-navigation a[aria-current="page"]::after {
  right: 0;
}

#main-navigation .nav-contact {
  padding: 11px 16px;
  color: var(--ink);
  background: var(--blush);
  border-radius: 4px 12px 4px 12px;
}

#main-navigation .nav-contact::after {
  display: none;
}

#main-navigation .nav-contact:hover {
  color: var(--ink);
  background: var(--pink);
}

.language-toggle {
  min-height: 40px;
  padding: 6px 8px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(23, 20, 22, 0.48);
  cursor: pointer;
}

.language-toggle:hover {
  color: var(--paper);
  border-color: var(--line-strong);
}

.language-toggle__option {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  opacity: 0.48;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  transition: color 160ms ease, opacity 160ms ease;
}

.language-toggle__flag {
  font-size: 0.95rem;
  line-height: 1;
}

.language-toggle__track {
  position: relative;
  width: 38px;
  height: 22px;
  flex: 0 0 38px;
  border-radius: 999px;
  background: rgba(243, 211, 229, 0.14);
  box-shadow: inset 0 0 0 1px rgba(243, 211, 229, 0.16);
}

.language-toggle__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 2px 7px rgba(5, 3, 4, 0.35);
  transition: transform 180ms ease;
}

html[lang="fi"] .language-toggle__option--fi,
html[lang="en"] .language-toggle__option--en {
  color: var(--paper);
  opacity: 1;
}

html[lang="en"] .language-toggle__thumb {
  transform: translateX(16px);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  color: var(--text);
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.menu-toggle__icon {
  width: 22px;
  display: grid;
  gap: 6px;
}

.menu-toggle__icon i {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 180ms ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

main {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: var(--ink);
}

.hero,
.section-shell,
.footer-inner {
  width: var(--page);
  margin-inline: auto;
}

.hero {
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(148px, 17vh, 190px) 0 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  scroll-margin-top: 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.78fr);
  align-items: center;
  gap: clamp(42px, 7vw, 108px);
}

.location-line,
.section-index {
  margin: 0 0 18px;
  color: var(--pink);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.location-line span {
  display: inline-block;
  margin-right: 8px;
  font-size: 0.72em;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
}

h1 {
  max-width: 760px;
  color: var(--paper);
  font-size: clamp(4rem, 7.5vw, 7.4rem);
  line-height: 0.9;
  letter-spacing: -0.025em;
}

.hero-lead {
  max-width: 660px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(1.12rem, 1.65vw, 1.32rem);
  line-height: 1.55;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.button {
  min-height: 50px;
  padding: 13px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 1px solid transparent;
  border-radius: 5px 16px 5px 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  color: var(--ink);
  background: var(--pink);
}

.button--primary:hover {
  background: var(--blush);
}

.text-link {
  color: var(--blush);
  font-weight: 600;
  text-decoration-color: var(--plum);
}

.text-link:hover {
  color: var(--pink);
}

.hero-mark {
  position: relative;
  min-height: 500px;
  padding: clamp(20px, 4vw, 42px);
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(239, 133, 180, 0.48);
  border-radius: 34px 6px 34px 6px;
  background: #d2a0ba;
  box-shadow: 0 24px 70px rgba(5, 3, 4, 0.25), inset 0 1px rgba(255, 255, 255, 0.2);
}

.hero-mark > img {
  position: relative;
  width: min(100%, 500px);
  height: auto;
  filter: drop-shadow(0 18px 28px rgba(35, 31, 32, 0.18));
  animation: logo-float 6s ease-in-out infinite;
}

.discord-panel {
  margin-top: clamp(38px, 7vh, 72px);
  border: 1px solid var(--line);
  border-radius: 18px 5px 18px 5px;
  background: rgba(55, 43, 49, 0.58);
  box-shadow: 0 18px 55px rgba(5, 3, 4, 0.22);
  backdrop-filter: blur(18px) saturate(115%);
  -webkit-backdrop-filter: blur(18px) saturate(115%);
}

.discord-panel__open {
  width: 100%;
  min-height: 112px;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  color: var(--text);
  text-align: left;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
}

.discord-panel__open[hidden],
.discord-panel__thanks[hidden] {
  display: none;
}

.discord-panel__icon {
  width: 58px;
  height: 58px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px 18px 8px 18px;
  background: rgba(243, 211, 229, 0.08);
}

.discord-panel__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.discord-panel__copy {
  display: grid;
  gap: 2px;
}

.discord-panel__copy small,
.discord-panel__thanks small {
  color: var(--muted);
  font-size: 0.9rem;
}

.discord-panel__copy strong,
.discord-panel__thanks strong {
  color: var(--paper);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  line-height: 1.3;
}

.discord-panel__action {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--pink);
  font-weight: 700;
}

.discord-panel__thanks {
  min-height: 112px;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.discord-panel__thanks > span:nth-child(2) {
  display: grid;
  gap: 2px;
}

.discord-panel__check {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--ink);
  border-radius: 50%;
  background: var(--pink);
  font-size: 1.25rem;
  font-weight: 700;
}

.discord-panel__thanks a {
  color: var(--pink);
  font-weight: 700;
}

.noscript-discord {
  margin: 14px 0 0;
  color: var(--pink);
}

.status-strip,
.about,
.games,
.contact {
  scroll-margin-top: calc(var(--header-height) + 34px);
}

.status-strip {
  border-block: 1px solid var(--line);
  background: rgba(23, 20, 22, 0.52);
}

.status-strip .section-shell {
  padding-block: clamp(72px, 9vw, 120px);
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.35fr);
  gap: clamp(56px, 9vw, 130px);
}

.section-intro h2,
.games-heading h2,
.contact-copy h2,
.discord-modal h2 {
  color: var(--paper);
  font-size: clamp(3rem, 5.5vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: -0.02em;
}

.section-intro > p:last-child,
.games-heading > p,
.contact-copy > p {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.facts-list {
  margin: 0;
  display: grid;
}

.facts-list > div {
  padding: 22px 0;
  display: grid;
  grid-template-columns: minmax(110px, 0.42fr) minmax(180px, 0.85fr) minmax(240px, 1fr);
  gap: 24px;
  align-items: baseline;
  border-top: 1px solid var(--line);
}

.facts-list > div:last-child {
  border-bottom: 1px solid var(--line);
}

.facts-list dt {
  color: var(--pink);
  font-weight: 700;
}

.facts-list dd {
  margin: 0;
}

.facts-list .fact-value {
  color: var(--paper);
  font-size: 1.12rem;
  font-weight: 600;
}

.facts-list .fact-note {
  color: var(--muted);
}

.facts-list a:hover {
  color: var(--pink);
}

.about,
.games,
.contact {
  padding-block: clamp(100px, 13vw, 180px);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 70px clamp(54px, 8vw, 120px);
}

.section-intro--wide {
  grid-column: 1 / -1;
  max-width: 970px;
}

.about-copy {
  max-width: 650px;
}

.about-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

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

.about-copy .about-copy__lead {
  color: var(--text);
  font-size: clamp(1.35rem, 2.3vw, 1.85rem);
  line-height: 1.45;
}

.audience-list {
  border-top: 1px solid var(--line);
}

.audience-list > div {
  padding: 19px 0;
  display: grid;
  grid-template-columns: minmax(140px, 0.6fr) minmax(0, 1fr);
  align-items: baseline;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.audience-list strong {
  color: var(--paper);
  font-size: 1.06rem;
}

.audience-list p {
  margin: 0;
  color: var(--muted);
}

.games {
  border-block: 1px solid var(--line);
  background-color: rgba(23, 20, 22, 0.52);
}

.games-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.62fr);
  align-items: end;
  gap: clamp(48px, 8vw, 110px);
}

.games-heading .section-intro--wide {
  grid-column: auto;
}

.games-heading > p {
  margin-bottom: 8px;
}

.game-list {
  margin-top: clamp(58px, 8vw, 96px);
  border-top: 1px solid var(--line-strong);
}

.game-row {
  min-height: 150px;
  padding: 28px 0;
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(250px, 1fr) minmax(220px, 0.78fr);
  gap: clamp(20px, 3vw, 42px);
  align-items: center;
  border-bottom: 1px solid var(--line);
  transition: background-color 160ms ease, padding 160ms ease;
}

.game-row:hover {
  padding-inline: 18px;
  background-color: rgba(243, 211, 229, 0.045);
}

.game-row__name small {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.game-row__name h3 {
  color: var(--paper);
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  line-height: 1;
}

.game-row > p {
  margin: 0;
  color: var(--muted);
}

.game-row .game-row__examples {
  color: var(--blush);
  font-size: 0.95rem;
  font-weight: 600;
}

.games-note {
  margin: 24px 0 0 auto;
  max-width: 600px;
  color: rgba(210, 192, 202, 0.72);
  font-size: 0.86rem;
  text-align: right;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(270px, 0.68fr) minmax(460px, 1fr);
  gap: clamp(54px, 9vw, 130px);
  align-items: start;
}

.contact-copy {
  position: sticky;
  top: calc(var(--header-height) + 50px);
}

.contact-copy address {
  margin-top: 38px;
  display: grid;
  gap: 7px;
  font-style: normal;
}

.contact-copy address a {
  width: max-content;
  max-width: 100%;
  color: var(--blush);
  font-size: 1.06rem;
  font-weight: 600;
}

.contact-copy address a:hover {
  color: var(--pink);
}

.form-wrap {
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line-strong);
  border-radius: 26px 6px 26px 6px;
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px) saturate(115%);
  -webkit-backdrop-filter: blur(20px) saturate(115%);
}

.contact-form {
  display: grid;
  gap: 24px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: var(--blush);
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  color: var(--text);
  caret-color: var(--pink);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(23, 20, 22, 0.62);
  font-size: 1rem;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.field textarea {
  min-height: 160px;
  resize: vertical;
}

.field input:hover,
.field textarea:hover {
  border-color: var(--line-strong);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--pink);
  background: rgba(23, 20, 22, 0.82);
  outline: none;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.form-footer p {
  max-width: 260px;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.form-status {
  margin-bottom: 24px;
  padding: 13px 15px;
  color: var(--ink);
  border-radius: 6px;
  background: var(--blush);
  font-weight: 700;
}

.form-status[hidden] {
  display: none;
}

.form-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.site-footer {
  padding: 72px 0 calc(34px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-strong);
  background: var(--ink-deep);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(150px, 0.7fr) minmax(140px, 0.55fr);
  gap: 50px;
}

.footer-brand img {
  width: 154px;
  height: auto;
  filter: drop-shadow(0 10px 22px rgba(5, 3, 4, 0.28));
}

.footer-brand p {
  margin: 14px 0 0;
  color: var(--muted);
}

.footer-nav,
.footer-social {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-nav a,
.footer-social a,
.footer-meta a {
  width: max-content;
  max-width: 100%;
  color: var(--muted);
  text-decoration: none;
}

.footer-nav a:hover,
.footer-social a:hover,
.footer-meta a:hover {
  color: var(--pink);
}

.footer-meta {
  grid-column: 1 / -1;
  padding-top: 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px 24px;
  color: rgba(210, 192, 202, 0.72);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.footer-meta p {
  margin: 0;
}

.discord-modal {
  width: min(620px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: visible;
  color: var(--text);
  border: 0;
  background: transparent;
}

.discord-modal::backdrop {
  background: rgba(13, 9, 11, 0.78);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.discord-modal__panel {
  position: relative;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  padding: clamp(28px, 5vw, 54px);
  overflow-y: auto;
  border: 1px solid var(--line-strong);
  border-radius: 28px 7px 28px 7px;
  background: var(--glass-strong);
  box-shadow: 0 34px 100px rgba(5, 3, 4, 0.56);
  backdrop-filter: blur(24px) saturate(120%);
  -webkit-backdrop-filter: blur(24px) saturate(120%);
}

.discord-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 7px 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.discord-modal__close:hover {
  color: var(--paper);
}

.discord-modal__close span {
  font-size: 1.35rem;
  line-height: 1;
}

.discord-modal__icon {
  width: 64px;
  height: 64px;
  margin-bottom: 26px;
  object-fit: contain;
}

.discord-modal h2 {
  max-width: 480px;
  font-size: clamp(3.2rem, 9vw, 5.4rem);
}

.discord-modal__lead {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.discord-modal__list {
  margin: 30px 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.discord-modal__list li {
  padding: 13px 0;
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--blush);
  border-bottom: 1px solid var(--line);
}

.discord-modal__list li::before {
  content: "";
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pink);
}

.button--discord {
  width: 100%;
  color: var(--ink);
  background: var(--blush);
}

.button--discord:hover {
  background: var(--pink);
}

.discord-confirm {
  margin-top: 18px;
  padding: 16px;
  border-left: 3px solid var(--pink);
  background: rgba(243, 211, 229, 0.07);
}

.discord-confirm[hidden] {
  display: none;
}

.discord-confirm p {
  margin: 0 0 10px;
  color: var(--blush);
  font-weight: 600;
}

.discord-confirm button {
  padding: 10px 14px;
  color: var(--ink);
  border: 0;
  border-radius: 4px 11px 4px 11px;
  background: var(--pink);
  cursor: pointer;
  font-weight: 700;
}

.discord-confirm button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.discord-registration-status {
  min-height: 1.5em;
  margin-top: 12px;
  color: var(--blush);
  font-weight: 600;
}

.discord-registration-status.is-error {
  color: #ffb6c7;
}

.discord-modal__privacy {
  margin: 20px 0 0;
  color: rgba(210, 192, 202, 0.72);
  font-size: 0.84rem;
  line-height: 1.5;
}

@keyframes logo-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 1040px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
    gap: 44px;
  }

  .hero-mark {
    min-height: 430px;
  }

  .facts-list > div {
    grid-template-columns: 100px minmax(170px, 0.8fr) minmax(190px, 1fr);
  }

  .game-row {
    grid-template-columns: minmax(190px, 0.72fr) minmax(230px, 1fr);
  }

  .game-row__examples {
    grid-column: 2;
  }
}

@media (max-width: 820px) {
  :root {
    --page: min(100% - 34px, 680px);
    --header-height: 68px;
  }

  .site-header {
    top: max(8px, env(safe-area-inset-top));
    padding-inline: 12px;
  }

  .header-inner {
    min-height: var(--header-height);
    padding: 2px 10px 2px 14px;
    gap: 12px;
  }

  .brand img {
    width: 76px;
  }

  .js .menu-toggle {
    display: flex;
  }

  #main-navigation {
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    padding: 12px;
    display: grid;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--line-strong);
    border-radius: 12px 3px 12px 3px;
    background: rgba(39, 31, 35, 0.96);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    margin-left: 0;
  }

  .js #main-navigation {
    display: none;
  }

  .js #main-navigation.open {
    display: grid;
  }

  #main-navigation a {
    padding: 13px 10px;
    border-bottom: 1px solid var(--line);
  }

  #main-navigation a::after {
    display: none;
  }

  #main-navigation a:last-child {
    border-bottom: 0;
  }

  #main-navigation .nav-contact {
    margin-top: 8px;
    text-align: center;
    border-bottom: 0;
  }

  .hero {
    min-height: auto;
    padding-top: 126px;
    padding-bottom: 52px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  h1 {
    font-size: clamp(4rem, 15vw, 6.4rem);
  }

  .hero-mark {
    min-height: 480px;
  }

  .discord-panel {
    margin-top: 34px;
  }

  .status-strip .section-shell,
  .about-layout,
  .games-heading,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .status-strip .section-shell {
    gap: 48px;
  }

  .facts-list > div {
    grid-template-columns: minmax(90px, 0.42fr) minmax(0, 1fr);
    gap: 4px 20px;
  }

  .facts-list .fact-note {
    grid-column: 2;
  }

  .about-layout {
    gap: 50px;
  }

  .games-heading {
    gap: 24px;
  }

  .game-row {
    grid-template-columns: minmax(170px, 0.7fr) minmax(0, 1fr);
    gap: 14px 18px;
  }

  .game-row > p,
  .game-row__examples {
    grid-column: 2;
  }

  .contact-layout {
    gap: 52px;
  }

  .contact-copy {
    position: static;
  }

}

@media (max-width: 560px) {
  :root {
    --page: calc(100% - 28px);
  }

  .menu-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
  }

  .hero {
    padding-top: 116px;
  }

  h1 {
    font-size: clamp(3.7rem, 18vw, 5.3rem);
  }

  .hero-lead {
    margin-top: 24px;
    font-size: 1.06rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 17px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-actions .text-link {
    width: max-content;
  }

  .hero-mark {
    min-height: 350px;
    padding: 16px;
    border-radius: 22px 5px 22px 5px;
  }

  .discord-panel__open,
  .discord-panel__thanks {
    min-height: 0;
    padding: 18px;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
  }

  .discord-panel__icon {
    width: 50px;
    height: 50px;
    padding: 9px;
  }

  .discord-panel__action,
  .discord-panel__thanks > a {
    grid-column: 2;
  }

  .section-intro h2,
  .games-heading h2,
  .contact-copy h2 {
    font-size: clamp(3rem, 15vw, 4.6rem);
  }

  .about,
  .games,
  .contact {
    padding-block: 92px;
  }

  .audience-list > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .audience-list p {
    grid-column: 1;
  }

  .game-row {
    grid-template-columns: 1fr;
  }

  .game-row > p,
  .game-row__examples {
    grid-column: 1;
  }

  .game-row:hover {
    padding-inline: 0;
    background: transparent;
  }

  .games-note {
    text-align: left;
  }

  .form-wrap {
    padding: 22px 18px;
    border-radius: 18px 5px 18px 5px;
  }

  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .form-footer .button {
    width: 100%;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px 24px;
  }

  .footer-brand,
  .footer-meta {
    grid-column: 1 / -1;
  }

  .footer-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .discord-modal {
    width: min(100% - 20px, 620px);
    max-height: calc(100dvh - 20px);
  }

  .discord-modal__panel {
    max-height: calc(100dvh - 20px);
    padding: 56px 22px 26px;
    border-radius: 20px 5px 20px 5px;
  }

  .discord-modal__close {
    top: 14px;
    right: 14px;
  }
}

@media (max-width: 400px) {
  .language-toggle__code {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .header-inner,
  .discord-panel,
  .form-wrap,
  .discord-modal__panel {
    background: var(--glass-strong);
  }
}
