/* Нефор-Геймс — shared tokens and primitives (TV, phone, editor) */
@font-face { font-family: 'Unbounded'; font-weight: 500; font-display: swap; src: url(/fonts/unbounded-cyrillic-500-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-weight: 500; font-display: swap; src: url(/fonts/unbounded-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Unbounded'; font-weight: 700; font-display: swap; src: url(/fonts/unbounded-cyrillic-700-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-weight: 700; font-display: swap; src: url(/fonts/unbounded-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Unbounded'; font-weight: 900; font-display: swap; src: url(/fonts/unbounded-cyrillic-900-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-weight: 900; font-display: swap; src: url(/fonts/unbounded-latin-900-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Wet Paint'; font-display: swap; src: url(/fonts/rubik-wet-paint-cyrillic-400-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Wet Paint'; font-display: swap; src: url(/fonts/rubik-wet-paint-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'Marker'; font-weight: 700; font-display: swap; src: url(/fonts/caveat-cyrillic-700-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Marker'; font-weight: 700; font-display: swap; src: url(/fonts/caveat-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }

:root {
  --ink: #1d0f2b;        /* bruised plum, the "black" of this world */
  --ink-2: #2c1842;
  --ink-3: #3d2458;
  --paper: #fbf7ff;
  --pink: #ff3da6;
  --lime: #c8ff2e;
  --cyan: #33e1ff;
  --violet: #9a6bff;
  --orange: #ff8a1f;
  --yellow: #ffe23d;
  --red: #ff4b4b;
  --shadow: #0c0514;
  --display: 'Unbounded', system-ui, sans-serif;
  --drip: 'Wet Paint', 'Unbounded', sans-serif;
  --hand: 'Marker', 'Comic Sans MS', cursive;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--display);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
/* halftone field: a xerox-flyer texture instead of a gradient wash */
.halftone {
  background-color: var(--ink);
  background-image:
    radial-gradient(circle at 20% 10%, rgba(255, 61, 166, .22), transparent 40%),
    radial-gradient(circle at 85% 90%, rgba(154, 107, 255, .25), transparent 45%),
    radial-gradient(rgba(255, 255, 255, .07) 1.2px, transparent 1.6px);
  background-size: 100% 100%, 100% 100%, 14px 14px;
}

button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 4px solid var(--cyan); outline-offset: 3px; }

/* option colors (index-based) */
.c0 { --c: var(--pink); }
.c1 { --c: var(--lime); }
.c2 { --c: var(--cyan); }
.c3 { --c: var(--orange); }
.c4 { --c: var(--violet); }
.c5 { --c: var(--yellow); }

/* chunky button */
.btn {
  --c: var(--lime);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  background: var(--c); color: var(--ink);
  border: 4px solid var(--ink); border-radius: 16px;
  box-shadow: 0 6px 0 var(--shadow);
  padding: .8em 1.4em;
  font-weight: 900; font-size: 1rem; letter-spacing: .01em;
  transition: transform .08s, box-shadow .08s;
  text-decoration: none;
}
.btn:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 2px 0 var(--shadow); }
.btn:disabled { filter: grayscale(1) brightness(.6); }
.btn.ghost { background: transparent; color: var(--paper); border-color: var(--ink-3); box-shadow: none; }
.btn.pink { --c: var(--pink); }
.btn.cyan { --c: var(--cyan); }
.btn.paper { --c: var(--paper); }

/* avatars: a photo-booth sticker with a white die-cut edge */
.ava {
  --s: 64px;
  width: var(--s); height: var(--s);
  border-radius: 22%;
  border: calc(var(--s) * .06) solid var(--paper);
  background: var(--pc, var(--pink)) center / cover no-repeat;
  box-shadow: 0 calc(var(--s) * .06) 0 var(--shadow);
  position: relative; flex: none;
  display: grid; place-items: center;
  color: var(--ink);
  font-family: var(--drip);
  font-size: calc(var(--s) * .5);
  line-height: 1;
  overflow: hidden;
}
.ava.off { filter: grayscale(1) brightness(.55); }
.name-tag {
  font-family: var(--hand); font-weight: 700;
  line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* option glyphs */
.glyph { width: 1em; height: 1em; flex: none; display: inline-block; }
.glyph path, .glyph polygon, .glyph circle { fill: currentColor; }

.hidden { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
}
