:root {
  --color-screen: #0E1214;
  --color-app: #12171B;
  --color-paper: #F4F1EA;
  --color-accent: #E10011;
  --color-accent-ink: #FFFFFF;
  --splash-bg: #F02F24;
  --hall-bg-image: none;
  --logo-width: 720px;
  --color-success: #3DDC97;
  --color-error: #FF5A36;
  --color-muted: #8B938C;
  --color-card: #1C2428;
  --font-ui: Manrope, "Segoe UI", system-ui, sans-serif;
  --font-display: Unbounded, "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--color-app);
  color: var(--color-paper);
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  line-height: 1.4;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

button,
input,
textarea {
  font: inherit;
}

button,
.entry-link {
  min-height: 48px;
}

button {
  background: var(--color-card);
  border: 0;
  border-radius: 14px;
  color: var(--color-paper);
  cursor: pointer;
  padding: 12px 18px;
}

body.hall {
  background-color: var(--color-app);
  background-image: var(--hall-bg-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.button-accent,
button.button-accent {
  background: var(--color-accent);
  color: var(--color-accent-ink);
  font-weight: 700;
}

a {
  color: inherit;
}

.error-text {
  color: var(--color-error);
  font-weight: 700;
  margin: 0;
}

.error-text:empty {
  display: none;
}

.noscript {
  background: var(--color-card);
  color: var(--color-paper);
  margin: 0;
  padding: 14px 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

label {
  color: var(--color-muted);
  font-size: 0.95rem;
}

input,
textarea {
  background: var(--color-screen);
  border: 1px solid rgba(244, 241, 234, 0.16);
  border-radius: 14px;
  color: var(--color-paper);
  font-size: 16px;
  min-height: 48px;
  padding: 12px 14px;
  width: 100%;
}

textarea {
  resize: vertical;
}

input:focus-visible,
textarea:focus-visible,
button:focus-visible,
.entry-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

::placeholder {
  color: var(--color-muted);
}

::selection {
  background: var(--color-accent);
  color: var(--color-accent-ink);
}

.home-frame,
.error-frame {
  display: flex;
  flex-direction: column;
  gap: 28px;
  justify-content: center;
  margin: 0 auto;
  max-width: 760px;
  min-height: 100vh;
  padding: 40px 20px;
}

.home-frame h1,
.error-frame h1 {
  font-size: clamp(3.4rem, 9vw, 6.2rem);
  margin: 0;
}

.error-frame .error-text {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 18ch;
}

.entry-list {
  border-top: 1px solid rgba(244, 241, 234, 0.22);
  display: flex;
  flex-direction: column;
}

.entry-link {
  align-items: center;
  background: transparent;
  border-bottom: 1px solid rgba(244, 241, 234, 0.22);
  border-radius: 0;
  display: flex;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 600;
  justify-content: space-between;
  letter-spacing: -0.03em;
  line-height: 0.95;
  min-height: 88px;
  padding: 18px 4px;
  text-decoration: none;
}

.entry-link::after {
  color: var(--color-accent);
  content: "→";
  font-size: 0.72em;
}

.entry-play {
  background: var(--color-accent);
  color: var(--color-accent-ink);
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
}

.entry-play::after {
  color: var(--color-accent-ink);
}

.entry-screen {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
}

.entry-link:hover,
.entry-link:focus-visible {
  background: var(--color-accent);
  color: var(--color-accent-ink);
}

.entry-link:hover::after,
.entry-link:focus-visible::after {
  color: var(--color-accent-ink);
}

.service-empty,
.wait-line {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 7vw, 2.7rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
}

.logo-slot {
  line-height: 0;
  padding: 28px;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}

.logo-slot--top-left { top: 0; left: 0; }
.logo-slot--top-center { top: 0; left: 50%; transform: translateX(-50%); }
.logo-slot--top-right { top: 0; right: 0; }
.logo-slot--center-left { top: 50%; left: 0; transform: translateY(-50%); }
.logo-slot--center { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.logo-slot--center-right { top: 50%; right: 0; transform: translateY(-50%); }
.logo-slot--bottom-left { bottom: 0; left: 0; }
.logo-slot--bottom-center { bottom: 0; left: 50%; transform: translateX(-50%); }
.logo-slot--bottom-right { bottom: 0; right: 0; }

html:has(body.design-alpha.screen),
body.design-alpha.screen,
html:has(body.design-alpha.play.team),
body.design-alpha.play.team {
  background-color: #ff001c;
  background-image: none;
}

html:has(body.design-alpha.play:not(.team):not(.play-join)),
body.design-alpha.play:not(.team):not(.play-join) {
  background-color: #ff001c;
  background-image: none;
  color: #fff;
}

.alpha-logo {
  display: block;
  height: auto;
  width: min(420px, 72vw);
}

.alpha-logo--on-light {
  display: none;
}


body.screen .alpha-logo {
  width: min(560px, 36vw);
}

.alpha-wait {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 28px;
  justify-content: center;
  min-height: 70dvh;
  text-align: center;
}
