@font-face {
  font-family: 'Gabarito';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(fonts/gabarito-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Gabarito';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(fonts/gabarito-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Shantell Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/shantell-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Shantell Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/shantell-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/inter-latin.woff2) format('woff2');
}

:root {
  color-scheme: light;
  --paper: #f6f6f4;
  --surface: #ffffff;
  --surface-2: #f1f1ee;
  --ink: #1d1d1b;
  --ink-2: #57574f;
  --ink-3: #75756d;
  --line: #e2e2dc;
  --line-strong: #c9c9c1;
  --focus: #0b6bcb;
  --frame-bg: rgb(0 0 0 / 0.028);
  --shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 2px 8px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 4px 12px rgb(0 0 0 / 0.08), 0 12px 32px rgb(0 0 0 / 0.08);
  --shadow-lift: 0 10px 18px rgb(0 0 0 / 0.14), 0 26px 48px rgb(0 0 0 / 0.14);

  --night: #0b1030;
  --sky-ink: #eef0ff;
  --sky-ink-2: #bcc1ea;
  --sky-pen: #fcc419;
  --shadow-night: 0 6px 14px rgb(2 4 22 / 0.42), 0 26px 60px rgb(2 4 22 / 0.5);

  --tape: #ff8fb4;
  --kai: #4dabf7;
  --mo: #51cf66;
  --ann: #ff6b6b;
  --jo: #ff922b;
  --you: #9775fa;
  --on-tag: #10131f;

  --red: #e03131;
  --orange: #f76707;
  --green: #2f9e44;
  --blue: #1971c2;
  --violet: #7048e8;
  --blue-d: #1971c2;

  --f-display: 'Gabarito', 'Avenir Next', 'Segoe UI', sans-serif;
  --f-hand: 'Shantell Sans', 'Segoe Print', 'Bradley Hand', cursive;
  --f-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --emoji: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --section: clamp(88px, 11vw, 160px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --paper: #161615;
    --surface: #222220;
    --surface-2: #2b2b29;
    --ink: #ededea;
    --ink-2: #b5b5ad;
    --ink-3: #93938b;
    --line: #33332f;
    --line-strong: #46463f;
    --focus: #4a9eff;
    --frame-bg: rgb(255 255 255 / 0.03);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 2px 8px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 4px 12px rgb(0 0 0 / 0.4), 0 12px 32px rgb(0 0 0 / 0.4);
    --shadow-lift: 0 10px 18px rgb(0 0 0 / 0.45), 0 26px 48px rgb(0 0 0 / 0.45);
    --red: #ff6b6b;
    --orange: #ff922b;
    --green: #51cf66;
    --blue: #4dabf7;
    --violet: #9775fa;
  }
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --paper: #161615;
  --surface: #222220;
  --surface-2: #2b2b29;
  --ink: #ededea;
  --ink-2: #b5b5ad;
  --ink-3: #93938b;
  --line: #33332f;
  --line-strong: #46463f;
  --focus: #4a9eff;
  --frame-bg: rgb(255 255 255 / 0.03);
  --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 2px 8px rgb(0 0 0 / 0.3);
  --shadow-lg: 0 4px 12px rgb(0 0 0 / 0.4), 0 12px 32px rgb(0 0 0 / 0.4);
  --shadow-lift: 0 10px 18px rgb(0 0 0 / 0.45), 0 26px 48px rgb(0 0 0 / 0.45);
  --red: #ff6b6b;
  --orange: #ff922b;
  --green: #51cf66;
  --blue: #4dabf7;
  --violet: #9775fa;
}

/* Things inside a space keep the look's own light paper, whatever the visitor's appearance. */
.space {
  --surface: #ffffff;
  --surface-2: #f1f1ee;
  --ink: #1d1d1b;
  --ink-2: #57574f;
  --ink-3: #75756d;
  --line: #e2e2dc;
  --line-strong: #c9c9c1;
  --red: #e03131;
  --orange: #f76707;
  --green: #2f9e44;
  --blue: #1971c2;
  --violet: #7048e8;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.08), 0 3px 10px rgb(0 0 0 / 0.08);
}
.night {
  --focus: #9db8ff;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: #4a4f86 var(--night);
  background: var(--night);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

::selection {
  background: color-mix(in oklab, var(--you) 34%, #fff);
  color: #1d1d1b;
}

img,
svg,
canvas {
  display: block;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

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

:focus-visible {
  outline: 2.5px solid var(--focus);
  outline-offset: 3px;
  border-radius: 8px;
}

h1,
h2,
p {
  margin: 0;
}

h1,
h2 {
  font-weight: 800;
  text-wrap: balance;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ico {
  width: 1.05em;
  height: 1.05em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

kbd {
  display: inline-block;
  min-width: 1.5em;
  padding: 0 0.35em;
  border: 1.5px solid currentColor;
  border-bottom-width: 3px;
  border-radius: 6px;
  font-family: var(--f-ui);
  font-size: 0.8em;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  vertical-align: 0.1em;
}

.wrap {
  width: min(100%, 1328px);
  margin-inline: auto;
}

/* ---------- Sky: llayo's Night sky look ---------- */

.night {
  position: relative;
  color: var(--sky-ink);
  background: var(--night);
  isolation: isolate;
}

.sky,
.look-ground {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.sky {
  background: var(--night);
}

.sky .tex,
.sky .par {
  position: absolute;
  inset: 0;
  background-repeat: repeat;
}

.sky .tex {
  right: -512px;
  background-image: url(img/looks/night-starfield.jpg);
  background-size: 512px;
}

.sky .par {
  inset: -40px -680px -40px -40px;
  background-image: url(img/looks/stars-near.webp);
  background-size: 640px;
  translate: calc(var(--px, 0) * 1px) calc(var(--py, 0) * 1px);
  transition: translate 0.6s var(--ease-out);
}

.sky .glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 130% 62% at 50% 116%, rgb(255 138 112 / 0.38), transparent 64%);
}

@media (prefers-reduced-motion: no-preference) {
  .sky .tex {
    animation: drift 205s linear infinite;
  }
  .sky .par {
    animation: drift-near 107s linear infinite;
  }
}

@keyframes drift {
  to {
    transform: translateX(-512px);
  }
}
@keyframes drift-near {
  to {
    transform: translateX(-640px);
  }
}

/* ---------- Top bar ---------- */

.top {
  position: absolute;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(14px, 2.4vw, 26px) var(--gutter);
  pointer-events: none;
}

.top > * {
  pointer-events: auto;
}

.logo img {
  width: clamp(104px, 10.5vw, 148px);
  height: auto;
}

.signin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  background: #fff;
  color: #1d1d1b;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 1px 0 rgb(16 19 31 / 0.08), 0 8px 22px rgb(2 4 22 / 0.34);
  transition: translate 0.2s, box-shadow 0.2s;
}

.signin:hover {
  translate: 0 -1px;
  box-shadow: 0 1px 0 rgb(16 19 31 / 0.08), 0 12px 28px rgb(2 4 22 / 0.42);
}

.signin:focus-visible {
  outline-color: #9db8ff;
}

/* ---------- People: cursors, faces, tags ---------- */

.cursor {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 15;
  color: var(--c);
  pointer-events: none;
  will-change: transform;
}

.cursor.still {
  position: relative;
  will-change: auto;
}

.mark {
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  overflow: visible;
  filter: drop-shadow(0 1px 1.5px rgb(0 0 0 / 0.35));
}

.mark use,
.you-cursor .mark use {
  fill: var(--c);
  stroke: #fff;
  stroke-width: 1.2;
  stroke-linejoin: round;
}

.mark.round {
  left: -9px;
  top: -9px;
}

.mark.hand {
  left: -7px;
  top: -2px;
  width: 20px;
  height: 22px;
}

.tag {
  position: absolute;
  left: 14px;
  top: 17px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  font-family: var(--f-ui);
}

.mark.round + .tag {
  left: 8px;
  top: 8px;
}

.mark.hand + .tag {
  top: 20px;
}

.tag .name {
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--c);
  color: var(--on-tag);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
  white-space: nowrap;
}

.tag .status {
  max-width: 200px;
  padding: 1px 7px;
  border: 1px solid #e2e2dc;
  border-radius: 6px;
  background: #fff;
  color: #57574f;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tag .status:empty {
  display: none;
}

.tag .chat {
  order: -1;
  width: max-content;
  max-width: 230px;
  margin-bottom: 2px;
  padding: 6px 10px;
  border: 1.5px solid var(--c);
  border-radius: 4px 14px 14px 14px;
  background: #fff;
  color: #1d1d1b;
  font-size: 14px;
  line-height: 1.35;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.16), 0 8px 20px rgb(0 0 0 / 0.14);
  opacity: 0;
  scale: 0.85;
  transform-origin: 0 100%;
  transition: opacity 0.18s, scale 0.32s var(--ease-out);
}

.tag .chat:empty {
  display: none;
}

.tag .chat.on {
  opacity: 1;
  scale: 1;
}

.face {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--c);
  color: var(--on-tag);
  font-family: var(--f-ui);
  font-size: 11px;
  font-weight: 700;
  overflow: hidden;
}

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

.faces {
  display: inline-flex;
}

.faces .face + .face {
  margin-left: -7px;
}

.faces.small .face {
  width: 22px;
  height: 22px;
  font-size: 10px;
}

.burst-p {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 40;
  font-family: var(--emoji);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.you-cursor {
  --c: var(--you);
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  display: none;
  pointer-events: none;
  color: var(--you);
}

.you-cursor.on {
  display: block;
}

.you-cursor .mark {
  display: none;
}

.you-cursor[data-shape='arrow'] .arrow-m,
.you-cursor[data-shape='round'] .round-m,
.you-cursor[data-shape='hand'] .hand-m {
  display: block;
}

.you-cursor .round-m {
  left: -9px;
  top: -9px;
}

.you-cursor .hand-m {
  left: -7px;
  top: -2px;
  width: 20px;
  height: 22px;
}

.you-cursor[data-shape='round'] .tag {
  left: 8px;
  top: 8px;
}

.you-cursor[data-shape='hand'] .tag {
  top: 21px;
}

.you-cursor.over-ui .mark {
  display: none;
}

.you-cursor.over-ui .tag {
  left: 18px;
  top: 20px;
  opacity: 0.88;
}

.fine [data-space] {
  cursor: none;
}

.fine [data-space] :is(.note, .ticket, .widget, .tray, .live-tile, .room .block, .history, .follow-chip, .cam-tile, .tier .item, .watch) {
  cursor: default;
}

.fine [data-space] :is(a, button, label, [role='radio']) {
  cursor: pointer;
}

.fine [data-space] input {
  cursor: text;
}

.fine [data-space] .placed {
  cursor: grab;
}

.fine [data-space] .placed.dragging {
  cursor: grabbing;
}

/* ---------- Shared pieces: notes, tape, stickers, pen ---------- */

.note {
  position: relative;
  background: var(--surface);
  color: var(--ink);
  border-radius: 14px;
  box-shadow: var(--shadow-night);
}

.tape {
  position: absolute;
  z-index: 2;
  width: 128px;
  height: auto;
  pointer-events: none;
}

.tape-top {
  top: -17px;
  left: 50%;
  translate: -50% 0;
  rotate: -3deg;
}

.tape-corner {
  top: -14px;
  left: -30px;
  width: 112px;
  rotate: -34deg;
}

.sticker {
  position: absolute;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 2px 2px rgb(0 0 0 / 0.22)) drop-shadow(0 8px 14px rgb(0 0 0 / 0.18));
  user-select: none;
}

.pen {
  font-family: var(--f-hand);
  font-weight: 600;
  line-height: 1.15;
}

.pen-arrow {
  width: 70px;
  height: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(14px, 1.8vw, 28px);
  align-items: start;
  min-height: max(700px, min(100svh, 960px));
  padding: clamp(112px, 15vh, 148px) var(--gutter) clamp(56px, 8vh, 96px);
  overflow: clip;
}

.room-pill {
  position: absolute;
  top: clamp(20px, 2.9vw, 34px);
  left: calc(var(--gutter) + clamp(118px, 12vw, 172px));
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 5px 6px 5px 13px;
  border-radius: 11px;
  background: rgb(255 255 255 / 0.94);
  color: #1d1d1b;
  font-family: var(--f-ui);
  font-size: 13.5px;
  font-weight: 650;
  box-shadow: 0 2px 8px rgb(2 4 22 / 0.3);
}

.room-pill .face {
  width: 28px;
  height: 28px;
}

.room-pill .you-face {
  width: auto;
  padding: 0 7px;
  border: 2px dashed var(--you);
  border-radius: 999px;
  background: #fff;
  color: #1d1d1b;
  font-size: 11px;
}

.hero-copy {
  position: relative;
  z-index: 3;
  grid-column: 1 / 8;
  grid-row: 1;
  max-width: 660px;
}

.hero-note {
  padding: clamp(30px, 3.4vw, 46px) clamp(26px, 3.4vw, 46px) clamp(28px, 3vw, 40px);
  rotate: -1.6deg;
}

.hero-note h1 {
  margin-bottom: 0.24em;
  font-size: clamp(3.5rem, 7.4vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.hero-note p {
  max-width: 34ch;
  color: var(--ink-2);
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  font-weight: 500;
  line-height: 1.42;
}

.s-bolt {
  top: -34px;
  right: -22px;
  width: clamp(58px, 6vw, 78px);
  rotate: 14deg;
}

.saved {
  position: absolute;
  left: calc(min(100%, 476px) + clamp(0px, 3.4vw, 52px) + 6px);
  bottom: 74px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 6em;
  line-height: 1.15;
  color: var(--you);
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  rotate: -5deg;
  transition: color 0.3s;
}

.saved .pen-arrow {
  order: 2;
  margin: 2px 0 0 -14px;
  scale: 1 -1;
}

.ticket {
  position: relative;
  width: min(100%, 476px);
  margin-top: 30px;
  margin-left: clamp(0px, 3.4vw, 52px);
  rotate: 1.1deg;
  filter: drop-shadow(0 4px 8px rgb(2 4 22 / 0.35)) drop-shadow(0 18px 32px rgb(2 4 22 / 0.4));
}

.stub {
  padding: 22px 26px 22px;
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  -webkit-mask:
    radial-gradient(circle 11px at 0 58%, #0000 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 11px at 100% 58%, #0000 98%, #000) right / 51% 100% no-repeat;
  mask:
    radial-gradient(circle 11px at 0 58%, #0000 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 11px at 100% 58%, #0000 98%, #000) right / 51% 100% no-repeat;
}

.ticket-label {
  display: block;
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.ticket-help {
  margin: 3px 0 15px;
  color: var(--ink-2);
  font-family: var(--f-ui);
  font-size: 14px;
  line-height: 1.45;
}

.ticket-row {
  display: flex;
  gap: 8px;
}

.code {
  flex: 1;
  min-width: 0;
  height: 50px;
  padding: 0 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface-2);
  font-family: var(--f-ui);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  caret-color: var(--you);
  transition: border-color 0.15s, background 0.15s;
}

.code::placeholder {
  color: #6b6b63;
  letter-spacing: 0.08em;
}

.code:hover {
  border-color: #a9a99f;
}

.code:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgb(11 107 203 / 0.18);
}

.code[aria-invalid='true'] {
  border-color: #c92a2a;
}

.go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 50px;
  padding: 0 18px 0 20px;
  border: 0;
  border-radius: 10px;
  background: #1d1d1b;
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.15s;
}

.go .ico {
  transition: translate 0.25s var(--ease-out);
}

.go:hover {
  background: #000;
}

.go:hover .ico {
  translate: 3px 0;
}

.go:active {
  translate: 0 1px;
}

.go[aria-busy='true'] {
  background: #57574f;
  cursor: progress;
}

.go.make {
  display: flex;
  justify-content: center;
  width: 100%;
  text-decoration: none;
}

.ticket-sub {
  display: block;
  margin: 20px 0 8px;
  padding-top: 16px;
  border-top: 1.5px dashed var(--line-strong);
  color: var(--ink-2);
  font-family: var(--f-ui);
  font-size: 14px;
  font-weight: 550;
}

.ticket-row.small .code {
  height: 42px;
  font-size: 15px;
}

.ticket-row.small .go {
  height: 42px;
  padding: 0 14px 0 16px;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
}

.ticket-row.small .go:hover {
  border-color: var(--ink);
  background: var(--surface);
}

.ticket-error {
  display: none;
  margin-top: 9px;
  color: #c92a2a;
  font-family: var(--f-ui);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
}

.ticket-error:not(:empty) {
  display: block;
}

.ticket-alt {
  margin-top: 14px;
  color: var(--ink-2);
  font-family: var(--f-ui);
  font-size: 14px;
}

.ticket-alt a {
  color: var(--ink);
  font-weight: 650;
}

.happening {
  position: relative;
  z-index: 2;
  grid-column: 7 / 13;
  grid-row: 1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: clamp(8px, 4vh, 44px);
}

.live-tile {
  position: relative;
  margin: 0;
  border-radius: 14px;
  background: #050611;
  box-shadow: var(--shadow-night);
}

.live-tile .game {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  image-rendering: pixelated;
}

.screen {
  grid-column: 1 / 7;
  outline: 1px solid rgb(255 255 255 / 0.1);
  outline-offset: -1px;
}

.live-chip {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px 5px 9px;
  border-radius: 8px;
  background: rgb(6 8 24 / 0.82);
  color: #fff;
  font-family: var(--f-ui);
  font-size: 13px;
  font-weight: 600;
}

.live-chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff6b6b;
  box-shadow: 0 0 0 3px rgb(255 107 107 / 0.25);
}

.s-fire {
  top: -46px;
  right: 24%;
  width: clamp(70px, 7vw, 96px);
  rotate: 11deg;
}

.voices {
  grid-column: 1 / 5;
  grid-row: 2;
  display: flex;
  gap: clamp(14px, 1.8vw, 24px);
  padding: 22px 0 0 6px;
}

.voice {
  position: relative;
  flex: 0 1 124px;
  min-width: 0;
  margin: 0;
}

.voice img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  background: #222220;
  box-shadow: 0 6px 18px rgb(2 4 22 / 0.45);
}

.voice::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 3px solid var(--c);
  border-radius: 13px;
  opacity: 0;
  pointer-events: none;
}

.voice.speaking::after {
  opacity: 1;
}

.pip {
  position: absolute;
  left: 12px;
  bottom: 50px;
  z-index: 1;
  width: clamp(84px, 19%, 124px);
}

@media (prefers-reduced-motion: no-preference) {
  .voice.speaking::after {
    animation: talk 2.4s steps(1, end) infinite;
  }
  .voice.speaking.slow::after {
    animation-duration: 3.1s;
    animation-delay: 0.7s;
  }
}

@keyframes talk {
  0%, 22%, 41%, 76% {
    opacity: 1;
  }
  18%, 34%, 58%, 92% {
    opacity: 0;
  }
}

.v-name {
  position: absolute;
  left: 6px;
  bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgb(6 8 24 / 0.78);
  color: #fff;
  font-family: var(--f-ui);
  font-size: 12px;
  font-weight: 600;
}

.v-name .ico {
  width: 13px;
  height: 13px;
  color: rgb(255 255 255 / 0.8);
}

.widget {
  position: relative;
  padding: 14px 16px 16px;
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  font-family: var(--f-ui);
}

.night .widget {
  box-shadow: var(--shadow-night);
}

.w-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.w-title {
  font-family: var(--f-display);
  font-size: 1.125rem;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.w-kind {
  flex: none;
  padding: 3px 8px;
  border-radius: 6px;
  background: color-mix(in oklab, var(--w) 14%, var(--surface));
  color: color-mix(in oklab, var(--w) 82%, var(--ink));
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.35;
  white-space: nowrap;
}

.wheel-widget {
  grid-column: 4 / 7;
  grid-row: 2 / 4;
  justify-self: end;
  width: min(100%, 292px);
  margin-top: -78px;
  rotate: 2.2deg;
}

.s-crown {
  top: -44px;
  left: -26px;
  width: 74px;
  rotate: -16deg;
  z-index: 2;
}

.wheel-wrap {
  position: relative;
  width: min(100%, 210px);
  margin: 12px auto 10px;
}

.wheel {
  width: 100%;
  height: auto;
  transform-origin: 50% 50%;
  transition: transform 3.6s cubic-bezier(0.12, 0.72, 0.14, 1);
}

.wheel text {
  fill: #10131f;
  font-family: var(--f-display);
  font-size: 15px;
  font-weight: 750;
}

.wheel-pin {
  position: absolute;
  top: -6px;
  left: 50%;
  width: 0;
  height: 0;
  margin-left: -10px;
  border-inline: 10px solid transparent;
  border-top: 16px solid var(--ink);
  filter: drop-shadow(0 2px 2px rgb(0 0 0 / 0.25));
}

.w-foot {
  display: flex;
  align-items: center;
  gap: 12px;
}

.spin,
.die-btn {
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  background: var(--ink);
  color: var(--surface);
  font-family: var(--f-display);
  font-size: 0.9375rem;
  font-weight: 700;
  transition: background 0.15s;
}

.spin:hover {
  background: #000;
}

.spin:disabled {
  background: #8b8b82;
  cursor: progress;
}

.wheel-result,
.die-out {
  font-family: var(--f-display);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.25;
}

.s-ghost {
  left: 41%;
  bottom: clamp(26px, 6vh, 70px);
  width: clamp(64px, 6.4vw, 92px);
  rotate: -9deg;
}

@media (prefers-reduced-motion: no-preference) {
  .s-ghost {
    animation: bob 5.5s ease-in-out infinite;
  }
}

@keyframes bob {
  50% {
    translate: 0 -12px;
    rotate: -4deg;
  }
}

.friends {
  position: absolute;
  inset: 0;
  z-index: 12;
  pointer-events: none;
}

/* ---------- Section heads ---------- */

.sec-head h2 {
  max-width: 15ch;
  font-size: clamp(2.375rem, 5.2vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.sec-head .lead {
  max-width: 50ch;
  margin-top: 0.9em;
  font-size: clamp(1.125rem, 1.45vw, 1.3125rem);
  font-weight: 500;
  line-height: 1.5;
}

.night .lead {
  color: var(--sky-ink-2);
}

.paper .lead {
  color: var(--ink-2);
}

/* ---------- Presence ---------- */

.presence {
  padding: var(--section) var(--gutter) calc(var(--section) * 0.9);
}

.specimens {
  position: relative;
  width: min(100%, 820px);
  height: 600px;
  margin: clamp(48px, 6vw, 72px) 0 0 auto;
  padding: 0;
  list-style: none;
}

.spec {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.spec-art {
  position: relative;
  flex: none;
}

.spec-art > .cursor.still {
  position: absolute;
  left: 8px;
  top: 6px;
  scale: 1.25;
  transform-origin: 0 0;
}

.spec-chat {
  left: 0;
  top: 0;
}
.spec-chat .spec-art {
  width: 296px;
  height: 100px;
}

.spec-status {
  right: 0;
  top: 0;
  flex-direction: column-reverse;
  align-items: center;
}
.spec-status .spec-art {
  width: 120px;
  height: 84px;
}

.spec-live {
  left: 34%;
  top: 120px;
  flex-direction: row;
  align-items: flex-end;
}

.spec-burst {
  left: 2%;
  top: 330px;
}
.spec-burst .spec-art {
  width: 190px;
  height: 118px;
}
.spec-burst .cursor.still {
  left: 26px;
  top: 72px;
}

.spec-follow {
  left: 44%;
  top: 404px;
}

.spec .pen {
  max-width: 17ch;
  color: var(--sky-pen);
  font-size: clamp(1.125rem, 1.4vw, 1.3rem);
  line-height: 1.25;
  rotate: -2deg;
}

.spec .pen::before,
.spec .pen[data-arrow='down']::after {
  content: '';
  display: block;
  width: 30px;
  height: 36px;
  margin: 0 0 6px 18px;
  background: currentColor;
  -webkit-mask: url(img/pen-up.svg) center / contain no-repeat;
  mask: url(img/pen-up.svg) center / contain no-repeat;
}

.spec .pen[data-arrow='left'] {
  position: relative;
  padding-left: 46px;
}
.spec .pen[data-arrow='left']::before {
  position: absolute;
  left: 4px;
  top: 50%;
  margin: -18px 0 0;
  rotate: -80deg;
}

.spec .pen[data-arrow='down']::before {
  display: none;
}
.spec .pen[data-arrow='down']::after {
  margin: 6px 0 0 40%;
  rotate: 170deg;
}

.spec-status .pen,
.spec-follow .pen {
  rotate: 1.5deg;
}

.burst-stage {
  overflow: visible;
}

.burst-rest i {
  position: absolute;
  left: var(--bx);
  top: var(--by);
  font-family: var(--emoji);
  font-size: var(--bs);
  font-style: normal;
  line-height: 1;
  rotate: var(--br);
}

@media (min-width: 1280px) {
  .presence .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 760px;
    column-gap: 48px;
    align-items: center;
  }
  .specimens {
    width: 100%;
    margin: 0;
  }
}

.follow-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 12px 6px 6px;
  border-radius: 12px;
  background: #fff;
  color: #1d1d1b;
  font-family: var(--f-ui);
  font-size: 14px;
  white-space: nowrap;
  box-shadow: var(--shadow-night);
}

.follow-chip .face {
  width: 28px;
  height: 28px;
  border: 2px solid var(--c);
}

.follow-chip .stop {
  padding-left: 9px;
  border-left: 1px solid #e2e2dc;
  color: #1971c2;
  font-weight: 650;
}

.cam-tile {
  position: relative;
  width: 260px;
  border-radius: 12px;
  background: #222220;
  box-shadow: var(--shadow-night);
}

.cam-feed {
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 120%, rgb(255 146 43 / 0.32), transparent 62%),
    #222220;
}

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

.cam-tile .live-chip {
  left: 8px;
  bottom: 8px;
  font-size: 12px;
}

.pin-chip {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px 3px 6px;
  border-radius: 7px;
  background: #fff;
  color: #1d1d1b;
  font-family: var(--f-ui);
  font-size: 11.5px;
  font-weight: 650;
}

.pin-chip .ico {
  width: 13px;
  height: 13px;
}

/* ---------- Make it yours ---------- */

.yours {
  position: relative;
  isolation: isolate;
  padding: var(--section) var(--gutter);
  color: var(--ink);
  background: var(--lk-color, #c8955c);
  transition: background-color 0.6s;
}

.look-ground .layer {
  position: absolute;
  inset: 0;
  background-color: var(--lk-color);
}

.look-ground .layer::before,
.look-ground .layer::after {
  content: '';
  position: absolute;
  inset: 0;
  background-repeat: repeat;
}

.look-ground .layer::before {
  background-image: var(--lk-tex, none);
  background-size: var(--lk-size, 512px);
  opacity: var(--lk-op, 1);
}

.look-ground .layer::after {
  background-image: var(--lk-par, none);
  background-size: 640px;
}

[data-look='cork'] {
  --lk-color: #c8955c;
  --lk-tex: url(img/looks/cork-board.jpg);
}
[data-look='chalk'] {
  --lk-color: #1f2b25;
  --lk-tex: url(img/looks/chalkboard.jpg);
}
[data-look='night'] {
  --lk-color: #0b1030;
  --lk-tex: url(img/looks/night-starfield.jpg);
  --lk-par: url(img/looks/stars-near.webp);
}
[data-look='graph'] {
  --lk-color: #13203a;
  --lk-tex: url(img/looks/graph-blueprint.jpg);
}
[data-look='kraft'] {
  --lk-color: #b78e64;
  --lk-tex: url(img/looks/kraft-paper.jpg);
}
[data-look='riso'] {
  --lk-color: #f4efe6;
  --lk-tex: url(img/looks/riso-dots.webp);
  --lk-size: 420px;
  --lk-op: 0.85;
}

.yours-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto 1fr;
  column-gap: clamp(16px, 2.4vw, 36px);
  row-gap: 28px;
}

.yours-note {
  grid-column: 1 / 6;
  grid-row: 1;
  align-self: start;
  padding: clamp(28px, 3vw, 40px);
  rotate: -1.2deg;
  box-shadow: var(--shadow-lift);
}

.yours-note h2 {
  font-size: clamp(2.375rem, 4.6vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.yours-note p {
  margin-top: 0.85em;
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 1.3vw, 1.2rem);
  font-weight: 500;
  line-height: 1.5;
}

.room {
  grid-column: 6 / 13;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  min-height: 600px;
  padding: 18px;
  border: 2px solid transparent;
  border-radius: 18px;
  transition: border-color 0.5s;
}

.frame-title {
  align-self: flex-start;
  margin-bottom: 14px;
  font-weight: 750;
  font-size: 1.25rem;
  line-height: 1.15;
  transition: color 0.5s;
}

[data-look='cork'] .room {
  border-color: rgb(80 48 18 / 0.18);
}
[data-look='cork'] .frame-title {
  padding: 5px 13px;
  border-radius: 3px;
  background: #f3ebdc;
  color: #2b1e10;
  rotate: -1.2deg;
  box-shadow: 0 1px 1px rgb(0 0 0 / 0.18), 0 8px 12px -8px rgb(40 22 0 / 0.55);
}
[data-look='chalk'] .room {
  border: 2px dashed rgb(255 255 255 / 0.34);
}
[data-look='chalk'] .frame-title {
  color: #f1f3f5;
  font-family: var(--f-hand);
  font-size: 1.85rem;
  font-weight: 700;
  text-shadow: 0 0 1px currentColor, 0 0 8px rgb(255 255 255 / 0.12);
}
[data-look='night'] .room {
  border-color: rgb(238 240 255 / 0.18);
}
[data-look='night'] .frame-title {
  color: #eef0ff;
  font-size: 1.4rem;
  text-shadow: 0 2px 10px rgb(2 4 22 / 0.7);
}
[data-look='graph'] .room {
  border-color: rgb(205 220 255 / 0.36);
}
[data-look='graph'] .frame-title {
  color: #dbe4ff;
}
[data-look='kraft'] .room {
  border-color: rgb(59 42 26 / 0.28);
}
[data-look='kraft'] .frame-title {
  color: #2b1e10;
  font-family: var(--f-hand);
  font-size: 1.6rem;
}
[data-look='riso'] .room {
  border-color: #1d1d1b;
}
[data-look='riso'] .frame-title {
  padding: 4px 12px;
  background: #1d1d1b;
  color: #ffd8e6;
}

.stage {
  position: relative;
  flex: 1;
  min-height: 460px;
  touch-action: pan-y;
}

.room .block {
  position: absolute;
  max-width: 230px;
  padding: 12px 15px;
  border-radius: 10px;
  background: #fff;
  color: #1d1d1b;
  font-family: var(--f-ui);
  font-size: 14.5px;
  line-height: 1.4;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.12), 0 6px 16px rgb(0 0 0 / 0.16);
}

.room .block b {
  display: block;
  margin-bottom: 2px;
  font-family: var(--f-display);
  font-size: 1.0625rem;
  font-weight: 750;
}

.b1 {
  left: 6%;
  top: 6%;
  rotate: -2deg;
}
.b2 {
  left: 12%;
  top: 31%;
  rotate: 1.5deg;
}
.b3 {
  left: 14%;
  top: 53%;
  rotate: -0.8deg;
}

.snap {
  position: absolute;
  left: 55%;
  top: 8%;
  z-index: 2;
  width: clamp(190px, 30%, 250px);
  margin: 0;
  padding: 9px 9px 30px;
  border-radius: 4px;
  background: #fff;
  rotate: 3deg;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.14), 0 10px 22px rgb(0 0 0 / 0.2);
}

.snap .game {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
  image-rendering: pixelated;
}

.tape-snap {
  top: -15px;
  left: 50%;
  width: 96px;
  translate: -50% 0;
  rotate: -4deg;
}

.gif-chip {
  position: absolute;
  left: 12px;
  bottom: 6px;
  padding: 1px 6px;
  border-radius: 5px;
  background: #1d1d1b;
  color: #fff;
  font-family: var(--f-ui);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.doodle {
  position: absolute;
  z-index: 4;
  fill: none;
  stroke: #e03131;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.d-arrow {
  left: 78%;
  top: 30%;
  width: 84px;
}

.d-star {
  left: 41%;
  top: 57%;
  width: 46px;
  rotate: 12deg;
}

.room-note {
  position: absolute;
  left: 80%;
  top: 44%;
  z-index: 4;
  max-width: 10ch;
  color: #1d1d1b;
  font-size: 1.2rem;
  line-height: 1.15;
  rotate: 4deg;
  pointer-events: none;
}

[data-look='chalk'] .room-note,
[data-look='night'] .room-note,
[data-look='graph'] .room-note {
  color: #f1f3f5;
}

[data-look='chalk'] .doodle,
[data-look='night'] .doodle,
[data-look='graph'] .doodle {
  stroke: #ff9f94;
}

.lock-badge {
  position: absolute;
  top: -9px;
  right: -9px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #1d1d1b;
  color: #fff;
}

.lock-badge .ico {
  width: 12px;
  height: 12px;
}

.placed {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 3;
  width: calc(clamp(64px, 6.6vw, 96px) * var(--s, 1));
  height: auto;
  rotate: var(--r, 0deg);
  filter: drop-shadow(0 2px 2px rgb(0 0 0 / 0.24)) drop-shadow(0 8px 12px rgb(0 0 0 / 0.2));
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
}

.placed.dragging {
  z-index: 6;
  scale: 1.08;
  filter: drop-shadow(0 6px 6px rgb(0 0 0 / 0.22)) drop-shadow(0 22px 26px rgb(0 0 0 / 0.26));
}

.stage-hint {
  position: absolute;
  right: 4%;
  bottom: 3%;
  max-width: 15ch;
  color: #fff;
  font-size: 1.35rem;
  text-align: right;
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.45), 0 0 12px rgb(0 0 0 / 0.25);
  rotate: -3deg;
  transition: opacity 0.4s;
}

[data-look='cork'] .stage-hint,
[data-look='kraft'] .stage-hint,
[data-look='riso'] .stage-hint {
  color: #1d1d1b;
  text-shadow: 0 0 6px #fff, 0 0 12px #fff;
}

.stage-hint.gone {
  opacity: 0;
}

.tray {
  grid-column: 1 / 6;
  grid-row: 2;
  align-self: start;
  display: grid;
  gap: 18px;
  padding: 18px 18px 20px;
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lift);
  font-family: var(--f-ui);
}

.tray-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.tray-group legend {
  margin-bottom: 9px;
  padding: 0;
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 750;
}

.looks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.look-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 5px 8px 5px 5px;
  border: 1.5px solid transparent;
  border-radius: 11px;
  background: none;
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
  transition: background 0.15s, border-color 0.15s;
}

.look-btn:hover {
  background: var(--surface-2);
}

.look-btn[aria-pressed='true'] {
  border-color: var(--ink);
  background: var(--surface-2);
}

.swatch {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--sw) center / 220% no-repeat;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.12);
}

.sheet {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
}

.stk {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: 4px;
  border: 0;
  border-radius: 10px;
  background: none;
  transition: background 0.15s;
}

.stk img {
  width: 100%;
  max-width: 48px;
  height: auto;
  transition: rotate 0.3s var(--ease-out), scale 0.3s var(--ease-out);
}

.stk:hover {
  background: var(--surface-2);
}

.stk:hover img {
  rotate: -8deg;
  scale: 1.1;
}

.stk:active img {
  scale: 0.92;
}

.you-group {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 14px;
}

.you-group legend {
  grid-column: 1 / -1;
}

.colours,
.shapes {
  display: flex;
  gap: 5px;
}

.col {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.14);
}

.col[aria-checked='true'] {
  box-shadow: 0 0 0 2px var(--ink);
}

.shape {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  background: none;
  --c: var(--you);
}

.shape svg {
  width: 17px;
  height: 17px;
  overflow: visible;
}

.shape use {
  fill: var(--you);
  stroke: #1d1d1b;
  stroke-width: 1;
}

.shape[aria-checked='true'] {
  border-color: var(--ink);
  background: var(--surface-2);
}

.status-field {
  display: grid;
  gap: 3px;
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}

.status-input {
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 0 10px;
  border: 1.5px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface-2);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  caret-color: var(--you);
}

.status-input:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--surface);
}

/* ---------- Things to do ---------- */

.paper {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  padding: var(--section) var(--gutter);
}

.night-board {
  display: grid;
  grid-auto-flow: row dense;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 28px);
  row-gap: 26px;
  margin-top: clamp(52px, 6vw, 84px);
  align-items: start;
}

.frame {
  position: relative;
  padding: 18px 20px 22px;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  background: var(--frame-bg);
}

.tier {
  grid-column: 1 / 8;
  grid-row: 1;
  display: grid;
  gap: 10px;
}

.tier .frame-title {
  margin-bottom: 4px;
  font-size: 1.3rem;
}

.tier-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 74px;
  padding: 8px;
  border-radius: 12px;
  background: var(--frame-bg);
}

.tier-label {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: var(--t);
  font-family: var(--f-hand);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1;
}

.tier-label::before {
  content: '';
  position: absolute;
  inset: 3px;
  background: currentColor;
  -webkit-mask: url(img/pen-box.svg) center / 100% 100% no-repeat;
  mask: url(img/pen-box.svg) center / 100% 100% no-repeat;
}

.tier .item {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 58px;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--surface);
  font-family: var(--f-ui);
  font-size: 15px;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.tier .ghost-slot {
  width: 96px;
  border: 1.5px dashed var(--line-strong);
  background: none;
  box-shadow: none;
}

.tier .lifted {
  position: absolute;
  left: 62%;
  top: 41%;
  z-index: 4;
  rotate: 5deg;
  box-shadow: var(--shadow-lift);
  outline: 2px solid var(--ann);
}

.tier .cursor.drag {
  position: absolute;
  left: calc(62% + 84px);
  top: calc(41% + 40px);
  z-index: 5;
}

.pen-ring {
  position: absolute;
  inset: -14px -20px -16px -18px;
  width: calc(100% + 38px);
  height: calc(100% + 30px);
  overflow: visible;
  fill: none;
  stroke: var(--red);
  stroke-width: 2.6;
  stroke-linecap: round;
  pointer-events: none;
}

.tier-note {
  position: absolute;
  top: 54px;
  right: clamp(14px, 4%, 48px);
  color: var(--red);
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  rotate: -5deg;
}

.watch {
  grid-column: 8 / 13;
  grid-row: 1;
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  font-family: var(--f-ui);
}

.watch-screen {
  position: relative;
  background: #050611;
}

.watch-screen .game {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  image-rendering: pixelated;
}

.watch figcaption {
  display: grid;
  gap: 8px;
  padding: 12px 14px 14px;
}

.watch-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-display);
  font-size: 1.0625rem;
  font-weight: 750;
}

.watch-title .ico {
  width: 14px;
  height: 14px;
  fill: var(--red);
  stroke: var(--red);
}

.watch-bar {
  height: 4px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}

.watch-fill {
  display: block;
  width: var(--p, 70%);
  height: 100%;
  background: var(--red);
  transition: width 1s linear;
}

.watch-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 550;
}

.watch-time {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

.rsvp {
  grid-column: 8 / 11;
  grid-row: 2;
  rotate: -1.5deg;
}

.rsvp-list,
.poll-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.rsvp-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.rsvp-k {
  width: 52px;
  padding: 2px 0;
  border-radius: 6px;
  font-weight: 650;
  text-align: center;
  font-size: 12px;
}

.rsvp-k.in {
  background: color-mix(in oklab, var(--green) 16%, var(--surface));
  color: color-mix(in oklab, var(--green) 80%, var(--ink));
}
.rsvp-k.maybe {
  background: color-mix(in oklab, #f59f00 20%, var(--surface));
  color: color-mix(in oklab, #f59f00 55%, var(--ink));
}
.rsvp-k.out {
  background: var(--surface-2);
  color: var(--ink-3);
}

.none {
  color: var(--ink-3);
}

.poll {
  grid-column: 10 / 13;
  grid-row: 2;
  margin-top: 64px;
  rotate: 1.8deg;
  z-index: 2;
}

.poll-list li {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 13.5px;
  overflow: hidden;
  isolation: isolate;
}

.poll-list li::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  z-index: -1;
  width: var(--p);
  background: color-mix(in oklab, var(--violet) 22%, var(--surface));
}

.poll-list b {
  font-variant-numeric: tabular-nums;
}

.countdown {
  grid-column: 1 / 5;
  grid-row: 2;
  margin: 22px 0 0 4%;
  rotate: -1.2deg;
  z-index: 2;
}

.count {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
}

.count span {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.count b {
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 2.25rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
}

.dice {
  grid-column: 5 / 8;
  grid-row: 2;
  margin-top: 40px;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
  align-items: center;
  rotate: 1deg;
}

.dice .w-head {
  grid-column: 1 / -1;
  margin-bottom: 12px;
}

.die-btn {
  height: auto;
  padding: 0;
  background: none;
}

.die {
  display: grid;
  grid-template: repeat(3, 1fr) / repeat(3, 1fr);
  place-items: center;
  width: 58px;
  height: 58px;
  padding: 8px;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 2px 0 var(--line-strong), var(--shadow);
  transition: rotate 0.5s var(--ease-out);
}

.die-btn:hover .die {
  rotate: -8deg;
}

.die i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink);
  visibility: hidden;
}

.die[data-n='1'] i:nth-child(5),
.die[data-n='2'] i:is(:nth-child(1), :nth-child(9)),
.die[data-n='3'] i:is(:nth-child(1), :nth-child(5), :nth-child(9)),
.die[data-n='4'] i:is(:nth-child(1), :nth-child(3), :nth-child(7), :nth-child(9)),
.die[data-n='5'] i:is(:nth-child(1), :nth-child(3), :nth-child(5), :nth-child(7), :nth-child(9)),
.die[data-n='6'] i:is(:nth-child(1), :nth-child(3), :nth-child(4), :nth-child(6), :nth-child(7), :nth-child(9)) {
  visibility: visible;
}

.die.rolling {
  animation: roll 0.6s var(--ease-out);
}

@keyframes roll {
  0% {
    rotate: 0deg;
    scale: 1;
  }
  40% {
    rotate: 200deg;
    scale: 1.12;
  }
  100% {
    rotate: 360deg;
    scale: 1;
  }
}

/* ---------- Touch it ---------- */

.touch {
  padding-top: 0;
}

.touch-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.4vw, 36px);
  align-items: center;
  padding-top: clamp(64px, 8vw, 120px);
  border-top: 1.5px solid var(--line);
}

.touch .sec-head {
  grid-column: 1 / 7;
}

.history {
  grid-column: 7 / 13;
  padding: 6px 6px 8px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  font-family: var(--f-ui);
}

.h-title {
  padding: 10px 12px 6px;
  font-family: var(--f-display);
  font-size: 1.0625rem;
  font-weight: 750;
}

.history ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.history li {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 12px;
  border-radius: 10px;
  font-size: 14.5px;
  transition: opacity 0.3s;
}

.history li + li {
  box-shadow: 0 -1px 0 var(--line);
}

.history li:hover {
  background: var(--surface-2);
}

.history .face {
  width: 30px;
  height: 30px;
  border-color: var(--surface);
}

.h-what {
  min-width: 0;
  line-height: 1.4;
}

.h-what i {
  font-style: normal;
  font-weight: 600;
}

.ico.inline {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 3px;
  color: var(--ink-3);
  vertical-align: -2px;
}

.h-when {
  color: var(--ink-3);
  font-size: 13px;
  white-space: nowrap;
}

.h-undo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s, border-color 0.15s;
}

.h-undo:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.h-undo .ico {
  width: 14px;
  height: 14px;
}

.history li.reverted .h-what {
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  color: var(--ink-3);
}

/* ---------- Finale ---------- */

.finale {
  padding: var(--section) var(--gutter) 0;
  overflow: clip;
}

.finale-grid {
  display: grid;
  justify-items: center;
  text-align: center;
  padding-bottom: clamp(96px, 12vw, 170px);
}

.finale .sec-head h2 {
  max-width: 12ch;
  margin-inline: auto;
  font-size: clamp(2.75rem, 7vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.finale .lead {
  margin-inline: auto;
}

.ticket.big {
  margin: clamp(44px, 5vw, 64px) 0 0;
  width: min(100%, 520px);
  rotate: -1.2deg;
  text-align: left;
}

.see-you {
  margin-top: 26px;
  color: var(--sky-pen);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  rotate: -3deg;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  width: min(100%, 1328px);
  margin-inline: auto;
  padding: 26px 0 calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid rgb(238 240 255 / 0.14);
  color: var(--sky-ink-2);
  font-family: var(--f-ui);
  font-size: 13px;
}

.foot img {
  width: 84px;
  height: auto;
}

.foot p:last-child {
  margin-left: auto;
}

/* ---------- Responsive ---------- */

@media (min-width: 1181px) and (max-width: 1439px) {
  .hero-copy {
    grid-column: 1 / 7;
  }
  .hero-note h1 {
    font-size: 6.4vw;
  }
  .saved {
    position: relative;
    left: auto;
    bottom: auto;
    flex-direction: row-reverse;
    align-items: flex-end;
    width: max-content;
    margin: 16px 4% -14px auto;
  }
  .saved .pen-arrow {
    order: 0;
    width: 52px;
    margin: 0 0 -30px 4px;
    rotate: -45deg;
  }
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 44px;
    min-height: 0;
  }
  .hero-copy {
    grid-column: 1;
    max-width: 640px;
  }
  .happening {
    grid-column: 1;
    grid-row: 2;
    margin-top: 6px;
    max-width: 640px;
    width: 100%;
    justify-self: end;
  }
  .s-ghost {
    left: auto;
    right: 6%;
    bottom: 34px;
  }

  .night-board {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .tier {
    grid-column: 1 / 7;
    grid-row: auto;
  }
  .watch,
  .countdown,
  .dice {
    grid-column: 1 / 4;
    grid-row: auto;
    margin: 0;
  }
  .rsvp,
  .poll {
    grid-column: 4 / 7;
    grid-row: auto;
    margin: 0;
  }
}

@media (max-width: 960px) {
  .yours-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .yours-note,
  .room,
  .tray {
    grid-column: 1;
    grid-row: auto;
  }
  .room {
    min-height: 760px;
  }

  .touch-grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 40px;
  }
  .touch .sec-head,
  .history {
    grid-column: 1;
  }
}

@media (max-width: 800px) {
  .specimens {
    display: grid;
    gap: 10px;
    width: 100%;
    max-width: 560px;
    height: auto;
    margin: 40px 0 0;
  }
  .spec,
  .spec-chat,
  .spec-status,
  .spec-live,
  .spec-burst,
  .spec-follow {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 124px;
  }
  .spec-art,
  .spec-chat .spec-art,
  .spec-status .spec-art,
  .spec-burst .spec-art {
    width: 100%;
    height: 112px;
  }
  .spec-live .spec-art,
  .spec-follow .spec-art {
    height: auto;
  }
  .spec-art > .cursor.still {
    top: 18px;
    scale: 1;
  }
  .spec-burst .cursor.still {
    left: 26px;
    top: 72px;
  }
  .spec .pen::before,
  .spec .pen[data-arrow='down']::after {
    display: none;
  }
  .spec .pen[data-arrow='left'] {
    padding-left: 0;
  }
  .spec-chat .tag .chat {
    max-width: 150px;
  }
  .cam-tile {
    width: 150px;
  }
}

@media (max-width: 640px) {
  .room-pill {
    top: 70px;
    left: var(--gutter);
    gap: 9px;
    padding: 4px 5px 4px 11px;
    font-size: 12.5px;
  }
  .room-pill .face {
    width: 24px;
    height: 24px;
  }
  .room-pill .faces .you-face {
    width: auto;
    margin-left: 3px;
    padding: 0 6px;
  }
  .hero {
    row-gap: 18px;
    padding-top: 124px;
  }
  .s-fire {
    top: auto;
    bottom: 26px;
    right: -10px;
    width: 60px;
  }
  .hero-note {
    rotate: -1deg;
  }
  .ticket {
    margin-left: 0;
    rotate: 0.6deg;
  }
  .tape-corner {
    right: -14px;
    width: 92px;
  }
  .ticket-row {
    flex-direction: column;
  }
  .code {
    flex: none;
  }
  .go {
    justify-content: center;
  }
  .saved {
    position: relative;
    left: auto;
    bottom: auto;
    flex-direction: row-reverse;
    align-items: flex-end;
    width: max-content;
    margin: 14px 2% -18px auto;
  }
  .saved .pen-arrow {
    order: 0;
    width: 52px;
    margin: 0 0 -30px 4px;
    rotate: -45deg;
  }
  .s-crown {
    display: none;
  }
  .hero .tag .chat {
    max-width: 104px;
  }
  .room .block {
    max-width: 56%;
  }
  .b1 {
    left: 4%;
    top: 5%;
  }
  .b2 {
    left: auto;
    right: 4%;
    top: 44%;
  }
  .b3 {
    left: 26%;
    top: 64%;
  }
  .stage {
    min-height: 700px;
  }
  .snap {
    left: 38%;
    top: 19%;
    width: 180px;
  }
  .p-made {
    --x: 4% !important;
    --y: 40% !important;
    --s: 1.1 !important;
  }
  .room-note {
    left: 4%;
    top: 53%;
  }
  .d-arrow,
  .p-heart,
  .p-sparkles {
    display: none;
  }
  .p-cassette {
    --x: 64% !important;
  }
  .d-star {
    left: 78%;
    top: 67%;
  }
  .p-cat {
    --y: 82% !important;
  }
  .p-mushroom {
    --x: 80% !important;
    --y: 80% !important;
  }
  .wheel-widget {
    grid-column: 2 / 7;
    margin-top: 18px;
  }
  .voices {
    grid-column: 1 / 7;
    grid-row: 1;
    padding-left: 4px;
    margin-bottom: 16px;
  }
  .voices .voice {
    flex: 1 1 0;
  }
  .happening .screen {
    grid-column: 1 / 7;
    grid-row: 2;
  }
  .wheel-widget {
    grid-row: 3;
  }


  .looks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .you-group {
    grid-template-columns: auto 1fr;
  }
  .status-field {
    grid-column: 1 / -1;
  }

  .night-board {
    grid-template-columns: minmax(0, 1fr);
  }
  .night-board > * {
    grid-column: 1 !important;
  }
  .tier .item {
    height: 46px;
    padding: 0 12px;
    font-size: 14px;
  }
  .tier-label {
    width: 46px;
    height: 46px;
    font-size: 1.7rem;
  }
  .tier-row {
    min-height: 60px;
  }
  .tier .lifted {
    left: 46%;
    top: 47%;
  }
  .tier .cursor.drag {
    left: calc(46% + 74px);
    top: calc(47% + 34px);
  }
  .tier-note {
    position: static;
    margin: -6px 0 2px 4px;
  }
  .tier .frame-title {
    margin-bottom: 0;
  }

  .history li {
    grid-template-columns: auto 1fr auto;
  }
  .h-when {
    display: none;
  }

  .foot p:last-child {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wheel {
    transition-duration: 0.6s;
  }
  .tag .chat {
    transition: opacity 0.2s;
    scale: 1;
  }
}
