:root {
  color-scheme: dark;
  font-family: "Avenir Next", "Arial Rounded MT Bold", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ink: #ffffff;
  --blue: #667cff;
  --blue-deep: #5366ec;
  --lilac: #b9a0f7;
  --white: rgba(255, 255, 255, 0.96);
  --white-soft: rgba(255, 255, 255, 0.74);
  --white-faint: rgba(255, 255, 255, 0.24);
  --glass: rgba(255, 255, 255, 0.16);
  --glass-strong: rgba(255, 255, 255, 0.23);
  --glass-border: rgba(255, 255, 255, 0.42);
  --green: #23e755;
  --red: #ff252c;
  --purple: #715dff;
  --radius: 30px;
  --pill: 999px;
  --display: "Avenir Next", "Arial Rounded MT Bold", Inter, ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: #596cf4;
}

body {
  min-height: 100svh;
  overflow-x: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #f6ff74;
  outline-offset: 3px;
}

#app {
  min-height: 100svh;
}

.app-shell {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 88% -5%, rgba(255, 211, 251, 0.72), transparent 35%),
    radial-gradient(ellipse at 0% 96%, rgba(221, 193, 255, 0.54), transparent 38%),
    radial-gradient(ellipse at 100% 50%, rgba(93, 122, 255, 0.64), transparent 42%),
    linear-gradient(160deg, #a999f0 0%, #6883ff 46%, #8b81ee 100%);
}

.app-shell::before,
.app-shell::after {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  content: "";
  pointer-events: none;
  filter: blur(30px);
}

.app-shell::before {
  top: 8%;
  left: -20%;
  width: 66%;
  height: 28%;
  background: rgba(255, 255, 255, 0.12);
  transform: rotate(-20deg);
}

.app-shell::after {
  right: -22%;
  bottom: 2%;
  width: 74%;
  height: 26%;
  background: rgba(255, 255, 255, 0.14);
  transform: rotate(18deg);
}

.ambient {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

.ambient-cloud-a,
.ambient-cloud-b {
  width: 210px;
  height: 82px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  filter: blur(8px);
}

.ambient-cloud-a {
  top: 21%;
  right: -90px;
  transform: rotate(-13deg);
}

.ambient-cloud-b {
  bottom: 17%;
  left: -100px;
  transform: rotate(10deg);
}

.floating-sticker {
  position: absolute;
  z-index: 1;
  width: 42px;
  height: 42px;
  object-fit: contain;
  opacity: 0.72;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 7px 6px rgba(35, 33, 112, 0.15));
  animation: float-sticker 8s ease-in-out infinite alternate;
}

.sticker-1 { top: 17%; left: 15%; transform: rotate(-15deg); }
.sticker-2 { top: 31%; right: 13%; width: 34px; transform: rotate(18deg); animation-delay: -1s; }
.sticker-3 { top: 49%; left: 8%; width: 31px; transform: rotate(12deg); animation-delay: -3s; }
.sticker-4 { top: 63%; right: 9%; width: 48px; transform: rotate(-22deg); animation-delay: -4s; }
.sticker-5 { top: 76%; left: 17%; width: 36px; transform: rotate(22deg); animation-delay: -2s; }
.sticker-6 { top: 84%; right: 21%; width: 31px; transform: rotate(-13deg); animation-delay: -5s; }
.sticker-7 { top: 40%; right: 39%; width: 27px; transform: rotate(9deg); animation-delay: -6s; }
.sticker-8 { top: 12%; right: 36%; width: 36px; transform: rotate(-8deg); animation-delay: -7s; }

@keyframes float-sticker {
  from { margin-top: -6px; }
  to { margin-top: 8px; }
}

.stage {
  position: relative;
  z-index: 2;
  width: min(100%, 450px);
  min-height: 100svh;
  margin: 0 auto;
  padding: max(env(safe-area-inset-top), clamp(34px, 10vh, 96px)) 17px max(24px, env(safe-area-inset-bottom));
}

.screen {
  display: flex;
  min-height: calc(100svh - 40px);
  flex-direction: column;
}

.screen-header {
  display: grid;
  min-height: 62px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}

.header-side {
  display: flex;
  min-width: 0;
  align-items: center;
}

.header-right {
  justify-content: flex-end;
}

.header-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
}

.brand-logo-image {
  display: block;
  width: min(48vw, 190px);
  max-height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 7px 0 rgba(18, 16, 58, 0.38)) drop-shadow(0 10px 10px rgba(47, 40, 151, 0.28));
}

.wordmark {
  display: block;
  color: #f8fbff;
  font-family: var(--display);
  font-size: clamp(33px, 10vw, 52px);
  font-weight: 1000;
  letter-spacing: -3px;
  line-height: 0.8;
  text-shadow: 0 4px 0 #1d1d42, 0 7px 9px rgba(26, 19, 97, 0.45);
  transform: skew(-7deg);
}

.header-profile {
  gap: 8px;
}

.flag-button,
.eyes-pill,
.pill,
.round-pill,
.question-badge,
.waiting-pill,
.gossip-category {
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.flag-button {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  font-size: 26px;
  background: rgba(255, 255, 255, 0.14);
}

.eyes-pill {
  display: inline-flex;
  min-width: 82px;
  height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  color: #fff;
  font-size: 22px;
}

.eyes-pill strong {
  font-size: 20px;
  font-weight: 900;
}

.pill {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: #fff;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.round-pill {
  min-height: 42px;
  padding: 0 25px;
  font-size: 15px;
  letter-spacing: 1.9px;
}

.icon-button {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 31px;
  font-weight: 300;
  line-height: 1;
  transition: background 160ms ease, transform 160ms ease;
}

.icon-button:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: scale(1.04);
}

.avatar {
  position: relative;
  display: inline-grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  background: var(--avatar-color, #765eff);
  box-shadow:
    inset 0 0 0 2px rgba(43, 48, 130, 0.22),
    inset 0 7px 8px rgba(255, 255, 255, 0.48),
    0 5px 9px rgba(40, 36, 122, 0.24);
  color: #fff;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 900;
}

.avatar::after {
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.avatar img {
  position: absolute;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-fallback {
  position: relative;
  z-index: 0;
}

.preview-avatar {
  width: 53px;
  height: 53px;
}

.avatar.large {
  width: clamp(112px, 30vw, 148px);
  height: clamp(112px, 30vw, 148px);
  border-width: 5px;
  font-size: 24px;
}

.avatar.xlarge {
  width: clamp(132px, 39vw, 186px);
  height: clamp(132px, 39vw, 186px);
  border-width: 6px;
  font-size: 31px;
}

.result-answer-avatar.yes {
  background: linear-gradient(145deg, #85ff39, #0dbf37);
}

.result-answer-avatar.no {
  background: linear-gradient(145deg, #ff6a57, #e80024);
}

.glass {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  background: var(--glass);
  box-shadow:
    0 22px 50px rgba(47, 41, 147, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.glass-panel {
  padding: 24px 20px;
}

.home-intro {
  padding: 25px 4px 22px;
  text-align: center;
}

.home-intro h1,
.modes-heading h1,
.lobby-heading h1,
.special-heading h1,
.connecting-card h1,
.countdown-stage h1,
.phase-error h1,
.end-card h1 {
  margin: 7px 0 8px;
  color: #fff;
  font-family: var(--display);
  font-size: clamp(29px, 8.2vw, 42px);
  font-weight: 950;
  letter-spacing: -1.2px;
  line-height: 1.03;
  text-shadow: 0 5px 12px rgba(45, 40, 145, 0.18);
}

.home-intro p,
.modes-heading p,
.lobby-heading p,
.special-heading p,
.connecting-card p,
.countdown-stage p,
.phase-error p,
.end-card p {
  margin: 0 auto;
  max-width: 340px;
  color: var(--white-soft);
  font-size: 15px;
  line-height: 1.42;
}

.home-kicker,
.input-label,
.footer-label,
.room-code-label,
.pack-select-label,
.character-note {
  color: rgba(255, 255, 255, 0.76);
  font-family: var(--display);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.home-actions {
  display: grid;
  gap: 18px;
}

.join-panel,
.create-panel {
  position: relative;
  overflow: hidden;
}

.panel-copy {
  position: relative;
  z-index: 2;
  text-align: center;
}

.panel-copy h2 {
  margin: 0 0 11px;
  font-family: var(--display);
  font-size: 31px;
  font-weight: 950;
  letter-spacing: -0.8px;
}

.panel-copy p {
  margin: 0 auto;
  max-width: 315px;
  color: var(--white-soft);
  font-size: 16px;
  line-height: 1.45;
}

.join-panel form,
.create-panel form {
  position: relative;
  z-index: 2;
  margin-top: 22px;
}

.pin-slots {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 7px;
  margin-bottom: 17px;
}

.pin-slots input {
  width: 100%;
  height: 67px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-radius: 20px;
  outline: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  text-align: center;
  transition: border-color 160ms ease, background 160ms ease;
}

.pin-slots input:focus {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

.input-label {
  display: block;
  margin: 0 0 8px;
}

.input,
.special-form select,
.pack-select {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 16px;
  outline: 0;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  padding: 0 15px;
}

.input::placeholder {
  color: rgba(255, 255, 255, 0.52);
}

.input:focus,
.special-form select:focus,
.pack-select:focus {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

.visually-hidden,
.file-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  white-space: nowrap !important;
}

.profile-upload {
  display: flex;
  min-height: 67px;
  align-items: center;
  gap: 10px;
  margin: 15px 0;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
}

.profile-upload-copy {
  min-width: 0;
  flex: 1;
}

.profile-upload-copy .input-label {
  margin: 0 0 3px;
}

.profile-upload-copy p {
  overflow: hidden;
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  line-height: 1.22;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-button {
  display: inline-flex;
  min-height: 35px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--pill);
  padding: 0 13px;
  color: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
}

.primary-button,
.secondary-button,
.danger-button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  border-radius: var(--pill);
  padding: 0 21px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 1.7px;
  line-height: 1;
  text-transform: uppercase;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.primary-button {
  background: linear-gradient(180deg, #fff 0%, #e9ecff 100%);
  color: #637bff;
  box-shadow:
    0 8px 0 rgba(49, 45, 138, 0.2),
    inset 0 2px 0 #fff,
    inset 0 -4px 8px rgba(86, 103, 220, 0.13);
}

.secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.43);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.primary-button:hover,
.secondary-button:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
}

.primary-button:active,
.secondary-button:active {
  transform: translateY(2px);
}

.full-width {
  width: 100%;
}

.profile-upload + .primary-button {
  margin-top: 2px;
}

.collage {
  position: relative;
  height: 190px;
  margin: 7px -16px -2px;
}

.collage-item {
  position: absolute;
  width: 78px;
  height: 78px;
  object-fit: contain;
  filter: drop-shadow(0 9px 6px rgba(32, 27, 116, 0.2));
  animation: collage-float 7s ease-in-out infinite alternate;
}

.collage-item-1 { top: 14px; left: 6%; width: 76px; transform: rotate(-15deg); }
.collage-item-2 { top: 4px; left: 36%; width: 88px; transform: rotate(8deg); animation-delay: -2s; }
.collage-item-3 { top: 0; right: 5%; width: 90px; transform: rotate(16deg); animation-delay: -3s; }
.collage-item-4 { top: 67px; left: 16%; width: 85px; transform: rotate(-5deg); animation-delay: -1s; }
.collage-item-5 { top: 72px; left: 54%; width: 72px; transform: rotate(14deg); animation-delay: -4s; }
.collage-item-6 { top: 82px; right: 3%; width: 81px; transform: rotate(-15deg); animation-delay: -5s; }
.collage-item-7 { top: 112px; left: 2%; width: 68px; transform: rotate(10deg); animation-delay: -2s; }
.collage-item-8 { top: 114px; left: 31%; width: 80px; transform: rotate(-10deg); animation-delay: -6s; }
.collage-item-9 { top: 124px; right: 19%; width: 71px; transform: rotate(8deg); animation-delay: -3s; }
.collage-item-10 { top: 128px; right: 0; width: 65px; transform: rotate(-8deg); animation-delay: -1s; }
.collage-item-11 { top: 43px; left: 73%; width: 58px; transform: rotate(10deg); animation-delay: -4s; }
.collage-item-12 { top: 39px; left: 0; width: 60px; transform: rotate(-20deg); animation-delay: -5s; }

.collage-emoji {
  position: absolute;
  font-size: 68px;
  filter: drop-shadow(0 9px 6px rgba(32, 27, 116, 0.2));
}

@keyframes collage-float {
  from { margin-top: -5px; }
  to { margin-top: 7px; }
}

.small-note {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.home-note {
  margin-top: 20px;
}

.status-banner {
  margin-top: 15px;
  border: 1px solid rgba(255, 222, 222, 0.55);
  border-radius: 15px;
  background: rgba(190, 37, 93, 0.27);
  padding: 12px 14px;
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

.modes-heading,
.lobby-heading,
.special-heading {
  padding: 21px 3px 17px;
  text-align: center;
}

.modes-heading h1,
.lobby-heading h1,
.special-heading h1 {
  margin-top: 8px;
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.mode-card {
  position: relative;
  display: flex;
  min-height: 220px;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.37);
  border-radius: 27px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.23), 0 14px 28px rgba(48, 40, 140, 0.12);
  color: #fff;
  padding: 15px 8px 14px;
  text-align: center;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.mode-card::before {
  position: absolute;
  top: -58px;
  left: 50%;
  width: 155px;
  height: 115px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--mode-accent) 38%, transparent);
  content: "";
  filter: blur(22px);
  transform: translateX(-50%);
}

.mode-card.is-selected {
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.16), inset 0 1px 0 #fff, 0 16px 30px rgba(48, 40, 140, 0.19);
  transform: translateY(-2px);
}

.mode-lock {
  position: absolute;
  z-index: 3;
  top: 9px;
  right: 10px;
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.26);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.mode-art {
  position: relative;
  display: grid;
  width: 86px;
  height: 67px;
  place-items: center;
}

.mode-sticker {
  width: 63px;
  height: 63px;
  object-fit: contain;
  filter: drop-shadow(0 7px 5px rgba(38, 30, 135, 0.23));
}

.mode-icon {
  font-size: 49px;
  filter: drop-shadow(0 7px 5px rgba(38, 30, 135, 0.23));
}

.mode-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 180px;
  height: 79px;
  object-fit: contain;
  filter: drop-shadow(0 5px 2px rgba(38, 30, 135, 0.28));
}

.mode-fallback-logo {
  position: relative;
  z-index: 1;
  min-height: 71px;
  color: #fff;
  font-family: var(--display);
  font-size: 23px;
  font-weight: 1000;
  letter-spacing: -1px;
  line-height: 0.86;
  text-shadow: 0 4px 0 color-mix(in srgb, var(--mode-accent) 70%, #322891);
}

.mode-tagline {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.mode-selection-footer {
  display: grid;
  gap: 15px;
  margin-top: 16px;
  padding: 17px;
}

.mode-selection-footer > div {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  column-gap: 9px;
}

.mode-selection-footer strong {
  font-family: var(--display);
  font-size: 18px;
}

.mode-selection-footer > div > span:last-child {
  grid-column: 2;
  color: var(--white-soft);
  font-size: 12px;
}

.connecting-screen {
  justify-content: center;
}

.connecting-card {
  margin-top: auto;
  margin-bottom: auto;
  padding: 42px 24px;
  text-align: center;
}

.loading-orbit {
  width: 58px;
  height: 58px;
  margin: 0 auto 22px;
  border: 5px solid rgba(255, 255, 255, 0.28);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.lobby-heading {
  text-align: left;
}

.lobby-heading p {
  margin-left: 0;
}

.lobby-mode-summary {
  display: flex;
  min-height: 84px;
  align-items: center;
  gap: 13px;
  margin-bottom: 13px;
  padding: 8px 15px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.1);
}

.lobby-mode-logo {
  display: grid;
  width: 107px;
  height: 70px;
  flex: 0 0 auto;
  place-items: center;
}

.lobby-mode-logo .mode-logo {
  height: 63px;
}

.lobby-mode-summary > div:last-child {
  display: grid;
  gap: 3px;
}

.lobby-mode-summary strong {
  font-size: 16px;
  font-weight: 950;
}

.lobby-mode-summary > div:last-child > span:last-child {
  color: var(--white-soft);
  font-size: 12px;
}

.room-code {
  padding: 21px 20px 18px;
  text-align: center;
}

.room-code-value {
  display: block;
  margin: 7px 0 3px;
  color: #fff;
  font-family: var(--display);
  font-size: clamp(39px, 12vw, 58px);
  font-weight: 1000;
  letter-spacing: 8px;
  line-height: 1;
  text-shadow: 0 6px 0 rgba(50, 48, 144, 0.22);
}

.room-code-help {
  margin: 0;
  color: var(--white-soft);
  font-size: 12px;
}

.pack-select-label {
  display: block;
  margin: 17px 0 0;
}

.pack-select {
  display: block;
  margin-top: 7px;
  color: #fff;
}

.pack-select option,
.special-form select option {
  color: #282665;
}

.roster {
  margin-top: 18px;
}

.roster-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
  color: rgba(255, 255, 255, 0.86);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.roster-heading span:last-child {
  display: grid;
  min-width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.player-list {
  display: grid;
  gap: 8px;
}

.player-chip {
  display: flex;
  min-height: 65px;
  align-items: center;
  gap: 11px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.27);
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.1);
}

.player-chip-copy {
  min-width: 0;
  flex: 1;
}

.player-chip-name {
  overflow: hidden;
  font-size: 15px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-chip-status {
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
}

.host-tag {
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: var(--pill);
  padding: 6px 8px;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1px;
}

.lobby-footer,
.screen-footer {
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding-top: 19px;
}

.bot-link {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  text-align: left;
}

.round-row {
  display: flex;
  justify-content: center;
  margin: 17px 0 9px;
}

.stage-screen {
  position: relative;
}

.question-stage,
.result-stage {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 7px 0 18px;
}

.question-badge {
  display: inline-flex;
  min-height: 39px;
  align-items: center;
  gap: 8px;
  padding: 0 17px;
  color: #617aff;
  background: rgba(255, 255, 255, 0.88);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 1.6px;
}

.badge-asset {
  width: 23px;
  height: 23px;
  object-fit: contain;
}

.question-target {
  display: inline-flex;
  min-height: 47px;
  align-items: center;
  gap: 7px;
  margin: 16px 0 -3px;
  border: 2px solid rgba(255, 255, 255, 0.63);
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.15);
  padding: 0 11px 0 6px;
  font-size: 16px;
  font-weight: 950;
}

.question-target .avatar {
  width: 35px;
  height: 35px;
  border-width: 2px;
  font-size: 10px;
}

.question-prompt {
  max-width: 430px;
  margin: 18px 0 0;
  color: #fff;
  font-family: var(--display);
  font-size: clamp(29px, 8vw, 46px);
  font-weight: 950;
  letter-spacing: -1.4px;
  line-height: 1.04;
  text-align: center;
  text-wrap: balance;
  text-shadow: 0 6px 12px rgba(48, 46, 153, 0.19);
}

.question-timer {
  min-height: 88px;
  margin: 17px 0 3px;
}

.timer-wrap {
  position: relative;
  display: grid;
  width: 80px;
  height: 80px;
  place-items: center;
}

.timer-ring {
  position: relative;
  display: grid;
  width: 75px;
  height: 75px;
  place-items: center;
  border: 4px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  background: conic-gradient(#fff calc(var(--progress) * 1turn), rgba(255, 255, 255, 0.18) 0);
  box-shadow: 0 4px 8px rgba(45, 38, 138, 0.12), inset 0 0 0 4px rgba(107, 113, 244, 0.65);
}

.timer-ring::after {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: #7d83ee;
  content: "";
}

.timer-value {
  position: relative;
  z-index: 1;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 950;
}

.timer-asset {
  position: absolute;
  z-index: 2;
  width: 80px;
  height: 80px;
  object-fit: contain;
  opacity: 0.9;
}

.choices {
  width: 100%;
}

.choices-yn {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 8px;
  margin-top: 12px;
}

.answer-button,
.candidate-button {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: center;
  transition: opacity 160ms ease, transform 160ms ease, filter 160ms ease;
}

.answer-button:hover:not(:disabled),
.candidate-button:hover:not(:disabled) {
  transform: translateY(-5px);
}

.answer-button.is-picked,
.candidate-button.is-picked {
  filter: brightness(1.11) saturate(1.14);
  transform: translateY(-6px) scale(1.03);
}

.answer-button.is-dimmed,
.candidate-button.is-dimmed {
  opacity: 0.34;
}

.answer-asset {
  width: clamp(140px, 39vw, 184px);
  height: clamp(140px, 39vw, 184px);
  object-fit: contain;
  filter: drop-shadow(0 14px 9px rgba(36, 28, 111, 0.28));
}

.answer-disc {
  display: grid;
  width: clamp(135px, 38vw, 180px);
  height: clamp(135px, 38vw, 180px);
  place-items: center;
  border: 7px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  color: #fff;
  font-size: 92px;
  font-weight: 300;
  line-height: 1;
  box-shadow: inset 0 7px 15px rgba(255, 255, 255, 0.54), 0 15px 10px rgba(35, 28, 112, 0.25);
}

.answer-disc-yes {
  background: radial-gradient(circle at 35% 28%, #b0ff91 0, #53e93a 30%, #11b838 72%, #00862a 100%);
  text-shadow: 0 5px 0 rgba(0, 100, 32, 0.28);
}

.answer-disc-no {
  background: radial-gradient(circle at 35% 28%, #ff9183 0, #ff3d3e 32%, #ed0b21 72%, #a70028 100%);
  text-shadow: 0 5px 0 rgba(130, 0, 20, 0.28);
}

.choice-name {
  display: block;
  margin-top: 10px;
  color: #fff;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 950;
  line-height: 1.05;
  text-shadow: 0 4px 6px rgba(43, 38, 132, 0.2);
}

.candidate-button {
  position: relative;
  padding: 6px 4px 11px;
}

.choices-players {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 11px;
  margin-top: 13px;
}

.choices-players.choices-count-3,
.choices-players.choices-count-4 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choices-players.choices-count-3 .avatar.large,
.choices-players.choices-count-4 .avatar.large {
  width: clamp(82px, 25vw, 116px);
  height: clamp(82px, 25vw, 116px);
  border-width: 4px;
}

.choice-meta {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.63);
  font-size: 11px;
}

.vs-mark {
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--display);
  font-size: 33px;
  font-weight: 950;
}

.waiting-pill {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 10px;
  padding: 0 19px;
  color: #fff;
  text-align: center;
}

.waiting-pill strong {
  font-size: 13px;
}

.waiting-pill span {
  color: var(--white-soft);
  font-size: 12px;
}

.result-stage {
  justify-content: flex-start;
  padding-top: 10px;
}

.result-question {
  max-width: 370px;
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--display);
  font-size: clamp(21px, 6vw, 31px);
  font-weight: 950;
  line-height: 1.08;
  text-align: center;
}

.reveal-hero {
  display: grid;
  justify-items: center;
  margin: 19px 0 13px;
}

.reveal-hero .avatar {
  margin-bottom: 7px;
}

.reveal-hero strong {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 950;
}

.reveal-percent {
  color: #fff;
  font-family: var(--display);
  font-size: clamp(42px, 14vw, 65px);
  font-weight: 1000;
  line-height: 0.95;
  text-shadow: 0 6px 0 rgba(50, 44, 145, 0.18);
}

.results-panel {
  width: 100%;
  margin-top: 4px;
  padding: 12px 1px;
}

.binary-result {
  padding: 6px 3px;
}

.binary-labels,
.binary-percentages {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 950;
}

.binary-percentages {
  margin-top: 8px;
  font-size: 21px;
}

.binary-track,
.duel-result-bar {
  display: flex;
  height: 50px;
  overflow: hidden;
  margin-top: 8px;
  border: 4px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 4px 8px rgba(47, 37, 145, 0.22), 0 7px 7px rgba(42, 35, 130, 0.18);
}

.binary-fill {
  min-width: 0;
  height: 100%;
  transition: width 400ms ease;
}

.binary-fill-yes {
  background: linear-gradient(180deg, #69ff2a 0%, #0ec238 64%, #0b9c2d 100%);
}

.binary-fill-no {
  background: linear-gradient(180deg, #ff6c7a 0%, #f71845 64%, #c50e32 100%);
}

.duel-result-players {
  display: grid;
  grid-template-columns: 1fr 50px 1fr;
  align-items: center;
  gap: 4px;
}

.duel-result-player {
  display: grid;
  justify-items: center;
  gap: 7px;
}

.duel-result-player strong {
  max-width: 140px;
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.duel-result-bar {
  position: relative;
  height: 46px;
}

.duel-result-fill {
  height: 100%;
  transition: width 400ms ease;
}

.duel-result-fill.left {
  background: linear-gradient(180deg, #f5ecff, #9f96ff 65%, #6c63ea);
}

.duel-result-fill.right {
  background: linear-gradient(180deg, #ffdff5, #c38cf5 65%, #8a55dd);
}

.all-results {
  display: grid;
  gap: 14px;
}

.all-result-row {
  display: grid;
  gap: 6px;
}

.all-result-head {
  display: grid;
  grid-template-columns: 39px 1fr auto;
  align-items: center;
  gap: 8px;
}

.all-result-head strong {
  overflow: hidden;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.all-result-head > span {
  font-size: 20px;
  font-weight: 950;
}

.result-track {
  position: relative;
  height: 35px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.54);
  border-radius: var(--pill);
  background: linear-gradient(90deg, rgba(234, 247, 255, 0.75), rgba(231, 196, 242, 0.42));
  box-shadow: inset 0 -5px 8px rgba(92, 45, 204, 0.23), 0 5px 5px rgba(40, 34, 132, 0.15);
}

.result-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(180deg, #f9ffff 0%, #c3eeff 45%, #7f56ec 100%);
}

.result-track.winner .result-fill {
  background: linear-gradient(180deg, #fff 0%, #d9eaff 42%, #54d5ff 100%);
}

.result-track-asset {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  opacity: 0.32;
  pointer-events: none;
}

.countdown-screen {
  text-align: center;
}

.countdown-stage {
  display: grid;
  flex: 1;
  align-content: center;
  justify-items: center;
}

.countdown-disc {
  display: grid;
  width: 170px;
  height: 170px;
  place-items: center;
  border: 8px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.44), rgba(117, 110, 240, 0.42));
  box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.11), inset 0 8px 15px rgba(255, 255, 255, 0.22);
  font-family: var(--display);
  font-size: 84px;
  font-weight: 1000;
}

.phase-error,
.aborted-card {
  margin: auto 0;
  padding: 36px 25px;
  text-align: center;
}

.phase-name {
  display: inline-block;
  margin-top: 17px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.16);
  padding: 7px 12px;
  color: var(--white-soft);
  font-size: 11px;
}

.special-screen {
  padding-bottom: 18px;
}

.special-mark {
  display: grid;
  width: 68px;
  height: 68px;
  margin: 20px auto 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.15);
  font-size: 38px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.special-heading {
  padding-top: 14px;
}

.special-form {
  display: grid;
  gap: 15px;
  padding: 20px;
}

.special-form label {
  display: grid;
  gap: 7px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 800;
}

.target-grid {
  display: grid;
  gap: 9px;
}

.special-form select {
  min-height: 44px;
  color: #fff;
  padding: 0 11px;
}

.special-wait {
  margin-top: 17px;
  padding: 36px 20px;
  text-align: center;
}

.special-wait .loading-orbit {
  width: 44px;
  height: 44px;
  margin-bottom: 15px;
}

.special-wait h2 {
  margin: 0 0 6px;
  font-size: 23px;
}

.special-wait p {
  margin: 0;
  color: var(--white-soft);
  font-size: 13px;
}

.gossip-card,
.blank-winner,
.leaderboard-card {
  margin-top: 17px;
  padding: 25px 20px;
  text-align: center;
}

.gossip-category {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 13px;
  color: #fff;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 1.8px;
}

.gossip-card p,
.blank-winner p {
  margin: 21px 0;
  font-family: var(--display);
  font-size: 27px;
  font-weight: 950;
  line-height: 1.12;
}

.gossip-person {
  display: inline-flex;
  min-height: 41px;
  align-items: center;
  gap: 7px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.15);
  padding: 4px 11px 4px 5px;
  font-size: 13px;
}

.gossip-person .avatar {
  width: 31px;
  height: 31px;
  border-width: 2px;
  font-size: 9px;
}

.gossip-author {
  display: block;
  margin-top: 15px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
}

.blank-prompt {
  display: flex;
  min-height: 105px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  padding: 18px 12px;
  color: #fff;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 950;
  line-height: 1.1;
  text-align: center;
}

.blank-prompt input {
  min-width: 130px;
  max-width: 100%;
  border: 0;
  border-bottom: 3px solid #fff;
  outline: 0;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  text-align: center;
}

.blank-prompt input::placeholder {
  color: rgba(255, 255, 255, 0.46);
}

.character-note {
  text-align: center;
}

.blank-answers {
  display: grid;
  gap: 11px;
  margin-top: 17px;
}

.blank-answer {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 18px 16px;
  text-align: left;
  transition: transform 160ms ease, background 160ms ease;
}

.blank-answer:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.blank-answer-text {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.15;
}

.blank-answer-author {
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
}

.blank-answer.is-dimmed {
  opacity: 0.5;
}

.blank-winner p {
  font-size: 31px;
}

.leaderboard-card {
  display: grid;
  gap: 9px;
  text-align: left;
}

.leader-row {
  display: grid;
  grid-template-columns: 24px 45px 1fr auto;
  align-items: center;
  gap: 9px;
  min-height: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 8px;
}

.leader-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.leader-rank {
  color: rgba(255, 255, 255, 0.64);
  font-size: 17px;
  font-weight: 900;
  text-align: center;
}

.leader-score {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 950;
}

.end-card {
  margin: auto 0;
  padding: 35px 22px;
  text-align: center;
}

.winner-badge {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.88);
  padding: 0 13px;
  color: #697dff;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 1.6px;
}

.award-list {
  display: grid;
  gap: 8px;
  margin-top: 23px;
}

.award {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  padding: 11px 12px;
  font-size: 13px;
}

.award strong {
  font-weight: 900;
}

@media (min-width: 700px) {
  .stage {
    width: min(100%, 470px);
    padding-right: 20px;
    padding-left: 20px;
  }

  .app-shell {
    box-shadow: 0 0 90px rgba(43, 38, 142, 0.35);
  }
}

@media (max-height: 700px) {
  .stage {
    padding-top: 34px;
  }

  .home-intro {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .home-intro h1 {
    font-size: 29px;
  }

  .mode-card {
    min-height: 185px;
  }

  .question-prompt {
    font-size: 28px;
  }

  .answer-asset,
  .answer-disc {
    width: 125px;
    height: 125px;
  }
}
