@font-face {
  font-family: Unbounded;
  src: url('assets/unbounded-cyrillic.woff2') format('woff2');
  font-weight: 500 700;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Unbounded;
  src: url('assets/unbounded-latin.woff2') format('woff2');
  font-weight: 500 700;
  font-display: swap;
}

@font-face {
  font-family: Manrope;
  src: url('assets/manrope-cyrillic.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Manrope;
  src: url('assets/manrope-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #05051b;
  --text: #f9f7ff;
  --muted: #c2bce0;
  --quiet: #a8a1c7;
  --pink: #f945ca;
  --cyan: #68eaff;
  --display: Unbounded, Manrope, sans-serif;
  font-family: Manrope, Arial, sans-serif;
  color: var(--text);
  background: var(--background);
  -webkit-tap-highlight-color: transparent;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  min-width: 0;
  min-height: 100svh;
  margin: 0;
  background:
    radial-gradient(ellipse 84% 29rem at 36% -9rem, #390b76 0%, transparent 78%),
    radial-gradient(ellipse 65% 23rem at 96% 106%, #1c0b63 0%, transparent 88%),
    radial-gradient(ellipse 52% 17rem at 6% 108%, #440e62 0%, transparent 90%),
    var(--background);
}

::selection { color: #05051b; background: #82eaff; }

.kiosk {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  max-width: 57rem;
  margin-inline: auto;
  padding: clamp(1.25rem, 3.3svh, 2.75rem) clamp(1.25rem, 6.5vw, 4rem) 1.5rem;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.75rem;
  padding-block-end: 1.15rem;
  border-bottom: 1px solid #b2a6ff32;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--display);
  font-size: 0.875rem;
  font-weight: 650;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.wordmark__symbol {
  display: block;
  width: 2.25rem;
  height: 2rem;
  flex: 0 0 auto;
  background: linear-gradient(155deg, #fe60cc 14%, #e936d3 51%, #653ff5 73%, #56ddff 91%);
  clip-path: polygon(44% 0%, 57% 0%, 100% 100%, 78% 100%, 66% 72%, 50% 86%, 34% 72%, 22% 100%, 0% 100%, 44% 0%, 39% 57%, 50% 67%, 61% 57%, 50% 30%, 39% 57%);
}

.masthead__caption {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 650;
}

.kiosk__main { display: grid; }

.screen {
  --accent: var(--pink);
  display: grid;
  grid-template-rows: auto minmax(15rem, 1fr) auto;
  padding-block: clamp(2.5rem, 5.4svh, 4.75rem) clamp(1.5rem, 3.7svh, 3rem);
}

.screen[data-category='cup'], .screen[data-category='guest'] { --accent: var(--cyan); }

.intro { z-index: 1; }

.intro h1 {
  max-width: 100%;
  margin: 0;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(1.65rem, 6vw, 3.85rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.14;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.screen--result .intro h1 { font-size: clamp(1.65rem, 5.45vw, 3.5rem); }
.intro h1:focus { outline: none; }

.intro p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.45vw, 1.375rem);
  line-height: 1.5;
}

.artwork {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  margin-block: clamp(0.75rem, 1.85svh, 1.75rem) 0.9rem;
}

.artwork::before, .artwork::after {
  position: absolute;
  z-index: 1;
  width: 1.6rem;
  height: 1.6rem;
  border: solid color-mix(in srgb, var(--accent) 56%, transparent);
  content: '';
  pointer-events: none;
}

.artwork::before { inset: 0 auto auto 0; border-width: 1px 0 0 1px; }
.artwork::after { inset: auto 0 0 auto; border-width: 0 1px 1px 0; }

.artwork img {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  object-fit: contain;
  mix-blend-mode: screen;
  mask-image:
    linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent),
    linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  mask-composite: intersect;
}

.compass {
  position: absolute;
  display: grid;
  place-items: center;
  width: min(58%, 22rem, 34svh);
  aspect-ratio: 1;
  border: 1px solid #5579dd76;
  border-radius: 50%;
  background: radial-gradient(circle at 46% 43%, #162969 0%, #0b0c3a 58%, #08091e 78%);
  box-shadow: 0 1rem 4rem #263fcb41, inset 0 0 2.5rem #5a42ed28;
  rotate: -13deg;
}

.compass__outer, .compass__inner, .compass__needle { position: absolute; }

.compass__outer {
  inset: 5%;
  border-radius: 50%;
  background: repeating-conic-gradient(from 1deg, #7be9ff9e 0deg 1deg, transparent 1deg 10deg);
  mask-image: radial-gradient(circle, transparent 66%, #000 67%);
}

.compass__inner {
  inset: 15%;
  border: 1px solid #4e6fa778;
  border-radius: 50%;
  background:
    linear-gradient(transparent calc(50% - 0.5px), #74a0ff4d 50%, transparent calc(50% + 0.5px)),
    linear-gradient(90deg, transparent calc(50% - 0.5px), #74a0ff4d 50%, transparent calc(50% + 0.5px));
}

.compass__needle {
  width: 27%;
  height: 66%;
  background: conic-gradient(from 90deg, #dd53fc 25%, #6c3cf0 0 50%, #3e92fb 0 75%, #89f8ff 0);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  rotate: 49deg;
}

.form { display: grid; gap: 0.65rem; }

.form label {
  color: var(--text);
  font-size: 1.0625rem;
  font-weight: 700;
}

.form input {
  display: block;
  width: 100%;
  min-height: clamp(3.4rem, 7svh, 4.65rem);
  padding: 0.8rem clamp(1rem, 2.5vw, 1.45rem);
  border: 1px solid #716baa;
  border-radius: 0.75rem;
  background: #11113b;
  color: var(--text);
  caret-color: #fa77dd;
  font: 600 clamp(1rem, 2.55vw, 1.3rem)/1.35 Manrope, Arial, sans-serif;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.form input::placeholder { color: #aba4cd; opacity: 1; }
.form input:focus { border-color: #e775ff; background: #181849; outline: 2px solid #e775ff; outline-offset: 2px; }
.form input[aria-invalid='true'] { border-color: #ff89ac; }

.form__error {
  margin: 0.1rem 0 0;
  color: #ffadca;
  font-size: 0.95rem;
  font-weight: 650;
}

.button {
  display: block;
  width: 100%;
  min-height: clamp(3.6rem, 7.5svh, 4.85rem);
  padding: 0.85rem 1rem;
  border: 1px solid #f68cf2a8;
  border-radius: 0.75rem;
  background: linear-gradient(101deg, #bd157f 0%, #a70bd4 56%, #7111ed 100%);
  box-shadow: 0 0.7rem 1.85rem #8011bc36;
  color: var(--text);
  cursor: pointer;
  font: 650 clamp(0.95rem, 2.55vw, 1.2rem)/1.3 var(--display);
  letter-spacing: 0.015em;
  text-transform: uppercase;
  transition: filter 160ms ease, transform 160ms ease;
}

.form .button { margin-block-start: 0.45rem; }
.button:focus-visible { outline: 2px solid #90edff; outline-offset: 4px; }
.button:active { transform: translateY(1px); filter: brightness(0.95); }
@media (hover: hover) { .button:hover { filter: brightness(1.15); } }

.instruction {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 5rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid color-mix(in srgb, var(--accent) 29%, #26224d);
  border-radius: 0.75rem;
  background: #100f31;
}

.instruction__icon {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.6rem;
  background: color-mix(in srgb, var(--accent) 15%, #171635);
  color: var(--accent);
}

.instruction__icon::before {
  width: 1.05rem;
  height: 1.05rem;
  margin-block-end: 0.23rem;
  rotate: -45deg;
  border: 2px solid currentColor;
  border-radius: 50% 50% 50% 0;
  content: '';
}

.instruction__icon::after {
  position: absolute;
  width: 0.3rem;
  height: 0.3rem;
  margin-block-end: 0.23rem;
  border-radius: 50%;
  background: currentColor;
  content: '';
}

.screen[data-category='guest'] .instruction__icon::before {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  border-radius: 50%;
}

.screen[data-category='guest'] .instruction__icon::after {
  width: 0.35rem;
  height: 0.78rem;
  margin: 0;
  border-radius: 0;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  rotate: 42deg;
}

.instruction h2 { margin: 0; font-size: clamp(1rem, 2.5vw, 1.25rem); line-height: 1.3; }
.instruction p { margin: 0.18rem 0 0; color: var(--muted); font-size: clamp(0.95rem, 2.2vw, 1.065rem); line-height: 1.4; }

.button--secondary {
  min-height: clamp(3.15rem, 6.4svh, 4.15rem);
  margin-block-start: 0.7rem;
  border-color: #665c99;
  background: linear-gradient(105deg, #282248, #231747);
  box-shadow: none;
}

.kiosk__footer {
  padding-block-start: 1rem;
  border-top: 1px solid #b2a6ff32;
  color: var(--quiet);
  font-size: 0.875rem;
  line-height: 1.5;
}

.fallback { margin-block: 2rem; color: var(--muted); }

@media (max-width: 34rem) {
  .screen { grid-template-rows: auto minmax(12rem, 1fr) auto; }
  .masthead__caption { font-size: 0.75rem; }
  .wordmark { font-size: 0.75rem; gap: 0.5rem; }
  .wordmark__symbol { width: 1.8rem; height: 1.6rem; }
  .kiosk__footer { font-size: 0.8125rem; }
}

@media (max-height: 770px) {
  .screen { padding-block-start: 1.5rem; padding-block-end: 1.25rem; }
}

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