:root {
  --accent: #00d0ff;
  --keyboard-inset: 0px;
  --keyboard-lift: 0px;
  --keyboard-panel-lift: 0px;
  --keyboard-shift: 0px;
  --panel-border: rgba(255, 255, 255, 0.12);
  --shadow-strong: 0 24px 80px rgba(0, 0, 0, 0.42);
  --stage-background: #050608;
  --text-primary: #f6f7fb;
  --text-secondary: rgba(246, 247, 251, 0.74);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

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

html {
  color-scheme: dark;
}

body {
  background: var(--stage-background);
  background-color: #050608;
  color: var(--text-primary);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  overflow: hidden;
  position: relative;
  transition:
    background 600ms cubic-bezier(0.22, 1, 0.36, 1),
    color 240ms ease;
}

body[data-phase="start"][data-start-view="menu"] {
  background: #0a0a1c;
}

body::before {
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 170, 110, 0.18) 0%, rgba(255, 170, 110, 0.08) 16%, rgba(255, 170, 110, 0) 42%),
    radial-gradient(circle at 84% 18%, rgba(92, 170, 255, 0.18) 0%, rgba(92, 170, 255, 0.08) 18%, rgba(92, 170, 255, 0) 44%),
    radial-gradient(circle at 52% 76%, rgba(37, 93, 166, 0.18) 0%, rgba(37, 93, 166, 0.08) 20%, rgba(37, 93, 166, 0) 52%),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.035) 0%,
      rgba(255, 255, 255, 0.01) 28%,
      rgba(255, 255, 255, 0) 62%
    );
  content: "";
  inset: -8%;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transform: rotate(-5deg) scale(1.08);
  transition: opacity 260ms ease;
  z-index: 0;
}

body::after {
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.03) 0.6px, transparent 0.85px),
    radial-gradient(rgba(0, 0, 0, 0.04) 0.55px, transparent 0.85px);
  background-position: 0 0, 11px 13px;
  background-size: 22px 22px, 26px 26px;
  content: "";
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 260ms ease;
  z-index: 0;
}

body[data-phase="start"][data-start-view="menu"]::before {
  opacity: 0;
}

body[data-phase="start"][data-start-view="menu"]::after {
  opacity: 0;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

body[data-phase]:not([data-phase="start"]) {
  background: var(--stage-background);
}

body[data-phase]:not([data-phase="start"])::before,
body[data-phase]:not([data-phase="start"])::after {
  opacity: 0;
}

body[data-phase="intro"]::before,
body[data-phase="memorize"]::before,
body[data-phase="intro"]::after,
body[data-phase="memorize"]::after {
  opacity: 0;
}

body[data-phase="result"][data-result-mode="pvp-summary"] {
  background: #050608;
}

body[data-phase="result"][data-result-mode="pvp-summary"]::before,
body[data-phase="result"][data-result-mode="pvp-summary"]::after {
  opacity: 0 !important;
}

.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding:
    calc(18px + env(safe-area-inset-top))
    calc(18px + env(safe-area-inset-right))
    calc(18px + env(safe-area-inset-bottom))
    calc(18px + env(safe-area-inset-left));
  position: relative;
  z-index: 1;
}

.top-bar {
  align-items: center;
  display: flex;
  justify-content: center;
  inset-inline: 0;
  min-height: 72px;
  pointer-events: none;
  position: absolute;
  top: 0;
  z-index: 6;
}

.timer-pill {
  background: none;
  border: 0;
  color: var(--text-primary);
  font-size: clamp(1.6rem, 3vw, 2.05rem);
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1;
  min-width: auto;
  padding: 0;
  text-align: center;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
}

.timer-pill {
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    color 240ms ease;
}

.timer-pill.is-hidden {
  opacity: 0;
  transform: translateY(-10px);
  visibility: hidden;
}

.screen-stack {
  align-items: center;
  display: flex;
  flex: 1;
  justify-content: center;
  position: relative;
}

.screen {
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transform: translateY(18px) scale(0.98);
  transition:
    opacity 340ms ease,
    transform 340ms ease;
}

.screen.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.screen-start,
.screen-focus,
.screen-pvp-wait,
.screen-picker,
.screen-result {
  align-items: center;
  display: flex;
  justify-content: center;
}

.start-screen-layout {
  align-items: center;
  display: flex;
  justify-content: center;
  position: relative;
  width: 100%;
}

.start-ad-panel {
  display: none;
}

.start-ad-slot {
  width: 100%;
}

.screen-result {
  align-items: center;
  flex-direction: column;
  gap: 18px;
  height: 100%;
  justify-content: flex-start;
  padding-block: clamp(8px, 2vh, 20px);
  width: 100%;
}

.app-shell[data-phase="result"][data-result-mode="team-summary"],
.app-shell[data-phase="result"][data-result-mode="pvp-summary"] {
  padding-top: env(safe-area-inset-top);
}

.app-shell[data-phase="result"][data-result-mode="team-summary"] .top-bar,
.app-shell[data-phase="result"][data-result-mode="pvp-summary"] .top-bar,
.app-shell[data-phase="pvp-wait"] .top-bar {
  height: 0;
  min-height: 0;
  overflow: hidden;
}

.screen-focus {
  align-items: flex-start;
  padding-top: clamp(28px, 7vh, 84px);
}

.screen-pvp-wait {
  padding-block: clamp(18px, 4vh, 44px);
}

.hero-panel {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: center;
}

@media (min-width: 1100px) {
  .screen-start {
    padding-inline: clamp(20px, 3vw, 40px);
  }

  .start-screen-layout {
    justify-content: center;
    width: 100%;
  }

  .start-screen-layout .hero-panel {
    margin-inline: auto;
  }

    .start-ad-panel {
      display: block;
      left: clamp(-72px, -3.6vw, -28px);
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      width: 300px;
    }

  .start-ad-slot {
    min-height: 600px;
    width: 300px;
  }

  .start-ad-slot > div {
    min-height: 600px;
    width: 100%;
  }
}

.hero-description {
  color: rgba(246, 247, 251, 0.78);
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.55;
  margin: -2px 0 8px;
  max-width: 34ch;
  text-wrap: balance;
}

.hero-actions {
  display: grid;
  gap: 14px;
  width: min(100%, 320px);
  justify-items: center;
}

.hero-play-cluster {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr auto 1fr;
  justify-items: center;
  width: min(100%, 320px);
}

.hero-kicker {
  color: rgba(255, 255, 255, 0.56);
  letter-spacing: 0.28em;
  margin: 0;
  text-transform: uppercase;
}

.hero-panel h1 {
  font-size: clamp(3.2rem, 13vw, 7rem);
  line-height: 0.95;
  margin: 0;
}

.primary-button,
.secondary-button {
  border-radius: 999px;
  padding: 16px 28px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.primary-button {
  background: linear-gradient(135deg, #ff8f4d, #ffd24d);
  box-shadow: 0 20px 40px rgba(255, 143, 77, 0.3);
  color: #111111;
  font-weight: 700;
}

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

.hero-play-button {
  align-items: center;
  background: linear-gradient(135deg, #ffb454 0%, #ffe56f 100%);
  box-shadow:
    0 20px 44px rgba(255, 202, 79, 0.34),
    0 0 0 1px rgba(255, 244, 188, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  display: inline-flex;
  height: clamp(72px, 15vw, 104px);
  justify-content: center;
  isolation: isolate;
  margin-block: 10px 22px;
  padding: 0;
  position: relative;
  width: clamp(72px, 15vw, 104px);
}

.hero-circle-button {
  align-items: center;
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  min-width: 0;
  padding: 0;
}

.hero-side-button {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)),
    rgba(10, 14, 20, 0.7);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
  color: rgba(246, 247, 251, 0.96);
  height: clamp(58px, 12vw, 74px);
  position: relative;
  width: clamp(58px, 12vw, 74px);
}

.hero-side-button:hover {
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.28);
}

.hero-side-button.is-muted {
  background:
    linear-gradient(180deg, rgba(186, 68, 90, 0.28), rgba(112, 22, 39, 0.16)),
    rgba(24, 10, 14, 0.82);
  box-shadow:
    0 18px 38px rgba(82, 12, 28, 0.32),
    inset 0 1px 0 rgba(255, 205, 214, 0.12);
  color: rgba(255, 206, 214, 0.98);
}

.hero-telegram-button {
  background:
    linear-gradient(180deg, rgba(110, 166, 210, 0.2), rgba(73, 121, 158, 0.08)),
    rgba(13, 22, 35, 0.78);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(128, 184, 226, 0.14),
    inset 0 1px 0 rgba(205, 233, 255, 0.08);
  color: rgba(215, 235, 249, 0.92);
  height: clamp(54px, 11.2vw, 68px);
  margin-top: 22px;
  text-decoration: none;
  width: clamp(54px, 11.2vw, 68px);
}

.hero-play-cluster .hero-telegram-button {
  margin-top: 0;
}

.hero-telegram-button:hover {
  box-shadow:
    0 22px 42px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(128, 184, 226, 0.18),
    inset 0 1px 0 rgba(218, 239, 255, 0.12);
}

.hero-telegram-icon {
  display: block;
  height: clamp(27px, 5.3vw, 32px);
  transform: translateX(-1px);
  width: clamp(27px, 5.3vw, 32px);
}

.hero-seo-links {
  margin-top: 4px;
}

.hero-seo-link {
  color: rgba(246, 247, 251, 0.72);
  font-size: 0.97rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(246, 247, 251, 0.28);
  text-underline-offset: 0.22em;
  transition:
    color 180ms ease,
    text-decoration-color 180ms ease;
}

.hero-seo-link:hover {
  color: rgba(246, 247, 251, 0.96);
  text-decoration-color: rgba(246, 247, 251, 0.6);
}

.hero-side-icon {
  display: block;
  height: clamp(24px, 5vw, 30px);
  width: clamp(24px, 5vw, 30px);
}

.hero-question-icon {
  height: clamp(28px, 6vw, 36px);
  width: clamp(28px, 6vw, 36px);
}

.hero-question-mark {
  display: block;
  font-size: clamp(24px, 5vw, 30px);
  font-weight: 600;
  line-height: 1;
  transform: translateY(-1px);
}

.hero-audio-icon {
  position: absolute;
}

.hero-audio-icon-on {
  transform: translateX(1px);
}

.hero-audio-icon-off {
  filter: drop-shadow(0 0 10px rgba(255, 95, 120, 0.14));
  transform: scale(1.06);
}

.hero-play-icon {
  display: block;
  height: clamp(58px, 12vw, 84px);
  margin-left: 6px;
  width: clamp(58px, 12vw, 84px);
}

.hero-play-button::before {
  background: radial-gradient(circle, rgba(255, 213, 74, 0.28) 0%, rgba(255, 213, 74, 0) 68%);
  border-radius: 50%;
  content: "";
  inset: -18px;
  opacity: 0.92;
  pointer-events: none;
  position: absolute;
  z-index: -1;
  animation: hero-play-pulse 2.8s ease-in-out infinite;
}

.hero-play-button:hover {
  box-shadow:
    0 24px 52px rgba(255, 202, 79, 0.4),
    0 0 0 1px rgba(255, 244, 188, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.46);
}

@keyframes hero-play-pulse {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(0.96);
  }

  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

.focus-text {
  font-size: clamp(2.1rem, 7.4vw, 4.1rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  max-width: 11ch;
  opacity: 0;
  text-align: center;
  transform: translateY(18px) scale(0.985);
  transition:
    opacity 280ms ease,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.focus-text.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.picker-card,
.result-panel {
  backdrop-filter: blur(24px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(7, 10, 14, 0.68);
  border: 1px solid var(--panel-border);
  border-radius: 32px;
  box-shadow: var(--shadow-strong);
  padding: 24px;
  width: min(720px, 100%);
}

.picker-card {
  display: grid;
  gap: 24px;
  width: min(980px, 100%);
}

.pvp-wait-panel {
  backdrop-filter: blur(24px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(7, 10, 14, 0.72);
  border: 1px solid var(--panel-border);
  border-radius: 32px;
  box-shadow: var(--shadow-strong);
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: 28px 24px;
  text-align: center;
  width: min(560px, 100%);
}

.pvp-wait-invite-flow,
.pvp-wait-generic {
  display: grid;
  gap: 16px;
  width: 100%;
}

.pvp-wait-invite-title {
  font-size: clamp(1.8rem, 5.1vw, 2.75rem);
  letter-spacing: -0.06em;
  margin: 0 0 4px;
  text-align: center;
}

.pvp-wait-invite-flow[hidden],
.pvp-wait-generic[hidden] {
  display: none !important;
}

.pvp-wait-step-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 26px;
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 22px 20px;
  text-align: center;
  width: 100%;
}

.pvp-wait-step-card-primary {
  gap: 14px;
}

.pvp-wait-step-eyebrow,
.pvp-wait-step-copy-note,
.pvp-wait-step-title,
.pvp-wait-loading,
.pvp-wait-step-detail,
.pvp-wait-cancel-hint {
  margin: 0;
}

.pvp-wait-step-eyebrow {
  color: rgba(246, 247, 251, 0.52);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pvp-wait-step-copy-note {
  color: var(--text-primary);
  line-height: 1.55;
  margin-inline: auto;
  max-width: 32ch;
  text-align: center;
}

.pvp-wait-link-input {
  font-size: 0.94rem;
  text-align: left;
}

.pvp-wait-copy-button,
.pvp-wait-cancel-primary {
  width: min(100%, 320px);
}

.pvp-wait-step-title {
  font-size: clamp(1.7rem, 4.8vw, 2.45rem);
  letter-spacing: -0.06em;
}

.pvp-wait-loading {
  align-items: baseline;
  color: var(--text-primary);
  display: inline-flex;
  font-size: clamp(1.2rem, 3.8vw, 1.85rem);
  font-weight: 600;
  gap: 0.02em;
  justify-content: center;
  letter-spacing: -0.04em;
}

.pvp-wait-loading-text {
  animation: pvp-wait-wave 2.2s ease-in-out infinite;
}

.pvp-wait-loading-dots {
  display: inline-flex;
  min-width: 1.1em;
}

.pvp-wait-loading-dots span {
  animation: pvp-wait-dot 1.3s ease-in-out infinite;
  opacity: 0.22;
}

.pvp-wait-loading-dots span:nth-child(2) {
  animation-delay: 0.18s;
}

.pvp-wait-loading-dots span:nth-child(3) {
  animation-delay: 0.36s;
}

.pvp-wait-step-detail {
  color: var(--text-secondary);
  line-height: 1.55;
  margin-inline: auto;
  max-width: 35ch;
  text-align: center;
}

.pvp-wait-cancel-hint {
  color: rgba(246, 247, 251, 0.42);
  font-size: 0.74rem;
  line-height: 1.45;
  margin-inline: auto;
  max-width: 34ch;
  text-align: center;
}

.pvp-wait-kicker,
.pvp-wait-title,
.pvp-wait-message,
.pvp-wait-progress {
  margin: 0;
}

.pvp-wait-kicker {
  color: rgba(246, 247, 251, 0.52);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pvp-wait-title {
  font-size: clamp(1.8rem, 4.8vw, 2.8rem);
  letter-spacing: -0.05em;
}

.pvp-wait-message {
  color: var(--text-secondary);
  line-height: 1.5;
  margin-inline: auto;
  max-width: 28ch;
  text-align: center;
}

.pvp-wait-progress {
  color: rgba(246, 247, 251, 0.66);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  text-align: center;
}

.pvp-wait-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  width: 100%;
}

.pvp-wait-actions[hidden] {
  display: none;
}

@keyframes pvp-wait-wave {
  0%,
  100% {
    opacity: 0.76;
    transform: translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateY(-1px);
  }
}

@keyframes pvp-wait-dot {
  0%,
  100% {
    opacity: 0.16;
  }

  50% {
    opacity: 1;
  }
}

.picker-preview {
  display: grid;
  gap: 16px;
  justify-items: center;
  width: 100%;
}

.preview-square {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  aspect-ratio: 19 / 13;
  height: auto;
  max-width: 608px;
  width: min(100%, 608px);
}

.slider-stack {
  display: grid;
  gap: 18px;
}

.picker-actions {
  display: flex;
  justify-content: center;
}

.slider-row {
  display: grid;
  gap: 0;
}

input[type="range"] {
  appearance: none;
  background: transparent;
  height: 30px;
  width: 100%;
}

input[type="range"]::-webkit-slider-runnable-track {
  border-radius: 999px;
  height: 14px;
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  background: #ffffff;
  border: 2px solid rgba(17, 17, 17, 0.4);
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  height: 24px;
  margin-top: -5px;
  width: 24px;
}

input[type="range"]::-moz-range-track {
  border-radius: 999px;
  height: 14px;
}

input[type="range"]::-moz-range-thumb {
  background: #ffffff;
  border: 2px solid rgba(17, 17, 17, 0.4);
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  height: 24px;
  width: 24px;
}

.result-panel {
  align-self: center;
  display: grid;
  justify-items: center;
  gap: 22px;
  align-content: start;
  flex: 1 1 auto;
  margin-inline: auto;
  max-height: calc(100svh - 150px - env(safe-area-inset-bottom));
  min-height: 0;
  overflow: auto;
  padding-bottom: 28px;
  scrollbar-gutter: stable both-edges;
  text-align: center;
  width: min(560px, 100%);
}

.result-panel {
  scrollbar-color: rgba(142, 153, 172, 0.72) rgba(255, 255, 255, 0.05);
  scrollbar-width: thin;
}

.result-panel::-webkit-scrollbar {
  width: 12px;
}

.result-panel::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
}

.result-panel::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(156, 166, 184, 0.92), rgba(104, 117, 139, 0.88));
  border: 2px solid rgba(7, 10, 14, 0.82);
  border-radius: 999px;
}

.screen-result[data-result-mode="team-summary"],
.screen-result[data-result-mode="pvp-summary"] {
  align-items: center;
  padding-block: 22px 0;
}

.screen-result[data-result-mode="team-leaderboard"] {
  align-items: center;
  padding-block: 22px 0;
}

.screen-result[data-result-mode="team-summary"] .result-panel {
  align-content: start;
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin-inline: auto;
  max-height: calc(100svh - 154px - env(safe-area-inset-bottom));
  min-height: 0;
  padding-top: calc(28px + env(safe-area-inset-top));
  padding-bottom: 22px;
  width: min(100%, 1040px);
}

.screen-result[data-result-mode="pvp-summary"] .result-panel {
  align-content: start;
  flex: 0 0 auto;
  justify-content: center;
  justify-items: center;
  margin-inline: auto;
  max-height: calc(100svh - 188px - env(safe-area-inset-bottom));
  min-height: 0;
  padding-top: calc(18px + env(safe-area-inset-top));
  padding-bottom: 10px;
  width: min(100%, 900px);
}

.screen-result[data-result-mode="daily-summary"] .result-panel {
  align-content: start;
  justify-content: center;
  justify-items: center;
  margin-inline: auto;
  max-height: calc(100svh - 154px - env(safe-area-inset-bottom));
  min-height: 0;
  padding-left: 24px;
  padding-right: 24px;
  padding-top: calc(24px + env(safe-area-inset-top));
  padding-bottom: 24px;
  width: min(100%, 980px);
}

.screen-result[data-result-mode="team-leaderboard"] .result-panel {
  align-content: center;
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-inline: auto;
  max-height: calc(100svh - 154px - env(safe-area-inset-bottom));
  min-height: 0;
  padding-top: calc(28px + env(safe-area-inset-top));
  padding-bottom: 22px;
  width: min(100%, 1040px);
}

.screen-result[data-result-mode="team-summary"] .team-result-board,
.screen-result[data-result-mode="team-leaderboard"] .team-result-board {
  gap: 18px;
  padding: 24px;
  width: min(90%, 860px);
  max-width: min(90%, 860px);
  min-width: min(90%, 860px);
}

.screen-result:not([data-result-mode="team-summary"]):not([data-result-mode="daily-summary"]):not([data-result-mode="pvp-summary"]):not([data-result-mode="team-leaderboard"]) .result-panel {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.screen-result:not([data-result-mode="team-summary"]):not([data-result-mode="daily-summary"]):not([data-result-mode="pvp-summary"]):not([data-result-mode="team-leaderboard"]) .result-title {
  align-items: center;
  display: grid;
  justify-items: center;
  min-height: clamp(104px, 16vh, 152px);
  text-align: center;
  width: min(100%, 18ch);
}

.screen-result:not([data-result-mode="team-summary"]):not([data-result-mode="daily-summary"]):not([data-result-mode="pvp-summary"]) .result-compare-square {
  --result-square-size: clamp(360px, 34vw, 420px);
}

.screen-result[data-result-mode="team-summary"] .result-compare-square,
.screen-result[data-result-mode="pvp-summary"] .result-compare-square {
  display: none !important;
}

.screen-result[data-result-mode="pvp-summary"] .result-title {
  display: none;
}

.result-title {
  color: var(--text-primary);
  font-size: clamp(1.4rem, 3.8vw, 2.15rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  margin: 0;
  max-width: 18ch;
  text-wrap: balance;
}

.result-title[hidden] {
  display: none !important;
}

.result-compare-square {
  --result-square-size: min(100%, 420px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 34px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  display: block;
  flex-shrink: 0;
  isolation: isolate;
  max-width: var(--result-square-size);
  min-width: var(--result-square-size);
  overflow: hidden;
  position: relative;
  width: var(--result-square-size);
}

.result-compare-square[hidden] {
  display: none !important;
}

.result-half {
  inset-inline: 0;
  position: absolute;
  width: 100%;
}

.result-half::before,
.result-half::after {
  color: var(--result-label-color, rgba(255, 255, 255, 0.86));
  position: absolute;
  text-shadow: var(--result-label-shadow, 0 6px 18px rgba(0, 0, 0, 0.24));
}

.result-half::before {
  content: attr(data-role-label);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.15;
  max-width: 42%;
  opacity: 0.84;
  right: 18px;
  text-align: right;
}

.result-half::after {
  content: attr(data-label);
  font-size: 0.82rem;
  font-weight: 500;
  left: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-half-target {
  inset-block-start: 0;
  height: 50%;
}

.result-half-target::before,
.result-half-target::after {
  top: 16px;
}

.result-half-selected {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  bottom: 0;
  height: 50%;
}

.result-half-selected::before,
.result-half-selected::after {
  bottom: 16px;
}

.result-score-pill {
  align-items: center;
  backdrop-filter: blur(20px);
  background: rgba(7, 10, 14, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
  display: inline-flex;
  justify-content: center;
  left: 50%;
  min-width: 220px;
  padding: 16px 28px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.result-score-pill strong {
  color: var(--text-primary);
  display: inline-flex;
  font-size: clamp(1.45rem, 4.2vw, 2.35rem);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  gap: 0.02em;
  align-items: flex-end;
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.team-series-summary {
  display: grid;
  gap: 18px;
  justify-items: center;
  width: min(100%, 520px);
}

.daily-summary {
  display: grid;
  gap: 26px;
  justify-items: center;
  margin-inline: auto;
  text-align: center;
  width: min(100%, 520px);
}

.daily-summary-meta {
  display: grid;
  gap: 12px;
  justify-self: center;
  justify-items: center;
  margin-inline: auto;
  text-align: center;
  width: 100%;
}

.daily-summary-kicker,
.daily-summary-place,
.daily-summary-note {
  margin: 0;
}

.daily-summary-kicker {
  backdrop-filter: blur(18px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(8, 12, 18, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 14px 34px rgba(0, 0, 0, 0.18);
  color: rgba(246, 247, 251, 0.62);
  display: inline-flex;
  font-size: clamp(0.9rem, 1.8vw, 0.98rem);
  gap: 10px;
  justify-content: center;
  letter-spacing: 0;
  line-height: 1.45;
  margin-inline: auto;
  max-width: 46ch;
  align-items: flex-start;
  padding: 14px 18px;
  text-transform: none;
}

#daily-summary-kicker {
  font-kerning: normal;
  font-variant: normal;
  letter-spacing: normal !important;
  text-align: center;
  text-transform: none !important;
  white-space: normal;
}

.daily-summary-kicker-icon {
  color: rgba(246, 247, 251, 0.78);
  flex: 0 0 auto;
  height: 18px;
  margin-top: 1px;
  width: 18px;
}

.daily-summary-kicker-label {
  display: block;
  text-align: left;
}

.daily-summary-place {
  font-size: clamp(1.88rem, 5.6vw, 3.4rem);
  letter-spacing: -0.07em;
  margin-top: 18px;
  margin-bottom: 12px;
  line-height: 0.94;
}

.place-title {
  align-items: baseline;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.08em 0.18em;
  justify-content: center;
  margin-inline: auto;
  text-align: center;
  width: min(100%, 14ch);
}

.place-title-prefix {
  color: var(--text-primary);
  display: inline-flex;
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1;
}

.place-title-rank {
  color: var(--text-primary);
  display: inline-flex;
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1;
  padding-bottom: 0.02em;
}

.screen-result[data-result-mode="team-summary"] .result-title.place-title,
.screen-result[data-result-mode="team-leaderboard"] .result-title.place-title {
  font-size: clamp(2.2rem, 5.9vw, 4.05rem);
  max-width: min(100%, 16ch);
}

.daily-summary-place.place-title {
  font-size: clamp(2.15rem, 6vw, 3.8rem);
  max-width: min(100%, 16ch);
}

.place-title-rank.is-rank-1,
.place-title-rank.is-rank-2,
.place-title-rank.is-rank-3 {
  -webkit-background-clip: text;
  background-clip: text;
  background-repeat: no-repeat;
  background-size: 220% 100%;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: place-rank-shimmer 6.6s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
  will-change: background-position;
}

.place-title-rank.is-rank-1 {
  background-image: linear-gradient(
    104deg,
    #fff8d6 0%,
    #ffe48d 18%,
    #fff4c8 34%,
    #f3c74d 50%,
    #fff8d6 66%,
    #d89d2a 82%,
    #fff2b8 100%
  );
  filter: drop-shadow(0 0 12px rgba(255, 214, 92, 0.3));
}

.place-title-rank.is-rank-2 {
  background-image: linear-gradient(
    104deg,
    #ffffff 0%,
    #e4e9ef 18%,
    #fafcff 34%,
    #c3ccd7 50%,
    #ffffff 66%,
    #9da7b5 82%,
    #eef3f7 100%
  );
  filter: drop-shadow(0 0 12px rgba(223, 232, 244, 0.24));
}

.place-title-rank.is-rank-3 {
  background-image: linear-gradient(
    104deg,
    #ffd9c1 0%,
    #ebb083 18%,
    #ffe3d0 34%,
    #cc7e48 50%,
    #ffd9c1 66%,
    #9b5e39 82%,
    #f0b78f 100%
  );
  filter: drop-shadow(0 0 12px rgba(217, 137, 84, 0.24));
}

@keyframes place-rank-shimmer {
  0% {
    background-position: 18% 50%;
  }

  100% {
    background-position: 82% 50%;
  }
}

.daily-summary-note {
  backdrop-filter: blur(18px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(8, 12, 18, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 28px rgba(0, 0, 0, 0.16);
  color: var(--text-secondary);
  display: inline-flex;
  font-variant-numeric: tabular-nums;
  justify-content: center;
  max-width: min(100%, 420px);
  padding: 12px 16px;
  text-align: center;
}

.pvp-summary {
  align-content: center;
  display: grid;
  gap: 14px;
  justify-content: center;
  justify-items: center;
  width: min(100%, 720px);
}

.pvp-outcome {
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
}

.pvp-outcome-title,
.pvp-outcome-note {
  margin: 0;
}

.pvp-outcome-title {
  font-size: clamp(2rem, 6vw, 4rem);
  letter-spacing: -0.08em;
}

.pvp-outcome-note {
  color: var(--text-secondary);
  max-width: 26ch;
}

.pvp-result-list {
  display: grid;
  gap: 12px;
  width: min(100%, 720px);
}

.pvp-player-row {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(7, 10, 14, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  display: grid;
  gap: 12px;
  padding: 14px 18px;
  width: 100%;
}

.pvp-player-row.is-current {
  border-color: rgba(255, 220, 84, 0.32);
  box-shadow: 0 18px 40px rgba(255, 220, 84, 0.08);
}

.pvp-player-heading {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.pvp-player-name {
  font-size: clamp(1.15rem, 2.6vw, 1.8rem);
  letter-spacing: -0.05em;
  margin: 0;
}

.pvp-player-score {
  color: rgba(246, 247, 251, 0.92);
  font-size: clamp(1rem, 2.2vw, 1.34rem);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.pvp-player-score.is-waiting {
  color: rgba(246, 247, 251, 0.5);
  font-size: 0.94rem;
}

.pvp-player-attempts {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(var(--attempt-count, 5), minmax(0, 1fr));
}

.team-series-summary[hidden],
.daily-summary[hidden],
.team-result-board[hidden],
.daily-result-board[hidden],
.team-next-button[hidden],
.team-progress-indicator[hidden],
.result-actions[hidden] {
  display: none !important;
}

.result-action-button[hidden] {
  display: none !important;
}

.team-summary-score-pill {
  align-items: center;
  backdrop-filter: blur(20px);
  background: rgba(7, 10, 14, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
  display: inline-flex;
  justify-content: center;
  min-width: 220px;
  padding: 16px 28px;
}

.team-summary-score-pill strong {
  align-items: flex-end;
  color: var(--text-primary);
  display: inline-flex;
  font-size: clamp(1.45rem, 4.2vw, 2.35rem);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  gap: 0.02em;
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.team-summary-attempts,
.team-result-attempts {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(var(--attempt-count, 5), minmax(0, 1fr));
  width: 100%;
}

.daily-summary .team-summary-score-pill,
.daily-summary .team-summary-attempts {
  justify-self: center;
  margin-inline: auto;
}

.daily-summary .team-summary-attempts {
  margin-top: 2px;
}

.daily-summary .team-summary-score-pill {
  margin-top: 10px;
  margin-bottom: 14px;
}

.team-attempt-tile {
  aspect-ratio: 1;
  align-items: center;
  background:
    linear-gradient(
      135deg,
      var(--attempt-target, rgba(255, 255, 255, 0.12)) 0 50%,
      var(--attempt-selected, rgba(255, 255, 255, 0.08)) 50% 100%
    );
  display: block;
  display: grid;
  justify-items: center;
  overflow: hidden;
  position: relative;
}

.team-attempt-tile::before {
  content: none;
}

.team-attempt-score {
  align-items: center;
  background: var(--attempt-score-badge-bg, rgba(7, 10, 14, 0.38));
  border: 1px solid var(--attempt-score-badge-border, rgba(246, 247, 251, 0.1));
  color: var(--attempt-score-color, rgba(246, 247, 251, 0.58));
  display: inline-flex;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  justify-content: center;
  letter-spacing: -0.04em;
  line-height: 1;
  min-width: 3.2em;
  padding: 0.34em 0.5em 0.38em;
  pointer-events: none;
  position: relative;
  border-radius: 11px;
  box-shadow: var(--attempt-score-badge-shadow, 0 10px 24px rgba(0, 0, 0, 0.22));
  text-shadow: var(--attempt-score-shadow, 0 1px 10px rgba(0, 0, 0, 0.2));
  z-index: 1;
}

.team-attempt-tile-summary {
  border-radius: 18px;
}

.team-attempt-tile-summary .team-attempt-score {
  font-size: clamp(0.76rem, 1.8vw, 0.96rem);
  min-width: 3.55em;
  padding: 0.38em 0.58em 0.42em;
}

.team-attempt-tile-compact {
  border-radius: 13px;
}

.team-attempt-tile-compact .team-attempt-score {
  border-radius: 9px;
  font-size: clamp(0.54rem, 1.08vw, 0.7rem);
  min-width: 3.55em;
  padding: 0.38em 0.56em 0.42em;
}

.screen-result[data-result-mode="team-leaderboard"] .team-attempt-tile-compact .team-attempt-score {
  border-radius: 14px;
  font-size: clamp(1.22rem, 2.08vw, 1.52rem);
  min-width: 5.95em;
  padding: 0.72em 1.22em 0.76em;
}

.team-attempt-tile.is-empty {
  background: rgba(255, 255, 255, 0.03);
}

.team-attempt-tile.is-empty::before {
  background: rgba(255, 255, 255, 0.08);
}

.team-next-button {
  align-items: center;
  background: linear-gradient(135deg, #ffd54a, #ffea71);
  border-radius: 22px;
  box-shadow: 0 22px 44px rgba(255, 208, 72, 0.26);
  color: #111111;
  display: inline-flex;
  height: 82px;
  justify-content: center;
  margin-top: 10px;
  padding: 0;
  position: relative;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
  width: 82px;
  z-index: 3;
}

.team-next-button:hover {
  transform: translateY(-2px);
}

.team-next-button:focus-visible {
  outline: 0;
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.12),
    0 22px 44px rgba(255, 208, 72, 0.26);
}

.team-next-icon {
  display: block;
  height: 36px;
  width: 36px;
}

.team-progress-indicator {
  bottom: calc(16px + env(safe-area-inset-bottom));
  color: rgba(246, 247, 251, 0.36);
  font-size: 1.06rem;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  left: 50%;
  letter-spacing: 0.08em;
  pointer-events: none;
  position: fixed;
  text-transform: uppercase;
  transform: translateX(-50%);
  z-index: 6;
}

.score-main {
  color: var(--text-primary);
  font-size: 1em;
}

.score-fraction {
  color: rgba(246, 247, 251, 0.72);
  font-size: 0.62em;
  line-height: 1;
  padding-bottom: 0.1em;
}

.secondary-button {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  justify-self: center;
}

.secondary-button-soft {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.team-entry-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(8, 12, 18, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  display: grid;
  gap: 12px;
  padding: 20px;
  text-align: center;
  width: min(100%, 420px);
  display: none;
}

.team-entry-card.is-visible {
  display: grid;
  margin-top: 18px;
}

.team-entry-kicker,
.team-entry-title,
.team-entry-note,
.team-entry-error {
  margin: 0;
}

.team-entry-kicker {
  color: rgba(246, 247, 251, 0.56);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.team-entry-title {
  font-size: clamp(1.55rem, 5vw, 2.3rem);
  letter-spacing: -0.05em;
}

.team-entry-note {
  color: var(--text-secondary);
  line-height: 1.45;
}

.team-entry-form {
  display: grid;
  gap: 12px;
}

.team-entry-button-secondary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(9, 12, 18, 0.74);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
  color: rgba(246, 247, 251, 0.92);
  font-weight: 500;
}

#pvp-entry-decline-button,
#pvp-rematch-decline-button,
#pvp-wait-cancel-button,
#pvp-wait-rematch-cancel-button {
  background: linear-gradient(135deg, #8f2435, #d3485d);
  border: 1px solid rgba(255, 158, 170, 0.26);
  box-shadow: 0 18px 36px rgba(160, 34, 58, 0.22);
  color: #fff6f7;
}

#pvp-entry-decline-button:hover,
#pvp-rematch-decline-button:hover,
#pvp-wait-cancel-button:hover,
#pvp-wait-rematch-cancel-button:hover {
  background: linear-gradient(135deg, #a72b3f, #e2596f);
  box-shadow: 0 22px 42px rgba(181, 39, 67, 0.28);
}

.pvp-wait-copy-button,
.team-create-copy-button,
.team-copy-button {
  background: linear-gradient(135deg, #ffbf4b, #ffe170);
  border: 1px solid rgba(255, 230, 153, 0.44);
  box-shadow: 0 18px 36px rgba(255, 191, 75, 0.2);
  color: #1b1404;
  font-weight: 700;
}

.pvp-wait-copy-button:hover,
.team-create-copy-button:hover,
.team-copy-button:hover {
  background: linear-gradient(135deg, #ffc857, #ffea7d);
  box-shadow: 0 22px 42px rgba(255, 191, 75, 0.26);
}

.nickname-field-label {
  color: rgba(246, 247, 251, 0.78);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.35;
  margin: 0;
  text-align: center;
}

#pvp-create-form .nickname-field-label {
  color: #f6f7fb;
  font-size: clamp(1.02rem, 2.35vw, 1.18rem);
  font-weight: 600;
}

#daily-create-form {
  order: 1;
}

#daily-create-form .nickname-field-label {
  color: #f6f7fb;
  font-size: clamp(1.04rem, 2.45vw, 1.2rem);
  font-weight: 600;
  line-height: 1.38;
  margin: 8px 0 10px;
}

.team-invite-panel {
  display: grid;
  gap: 10px;
}

.team-invite-row {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.team-invite-input {
  font-size: 0.94rem;
  text-align: left;
}

.team-copy-button {
  min-width: 170px;
  width: auto;
}

.team-entry-input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: var(--text-primary);
  outline: none;
  padding: 15px 18px;
  text-align: center;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.team-entry-input::placeholder {
  color: rgba(246, 247, 251, 0.38);
}

.team-entry-input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 208, 255, 0.36);
  box-shadow: 0 0 0 4px rgba(0, 208, 255, 0.12);
}

.team-entry-button {
  align-items: center;
  box-sizing: border-box;
  display: inline-flex;
  justify-content: center;
  line-height: 1.1;
  min-height: 68px;
  width: 100%;
}

#pvp-entry-card {
  gap: 14px;
  padding-top: 22px;
}

#pvp-entry-kicker {
  color: rgba(246, 247, 251, 0.48);
  font-size: 0.78rem;
}

#pvp-entry-title {
  color: rgba(246, 247, 251, 0.76);
  font-size: clamp(1.12rem, 3.5vw, 1.46rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  animation: pvpEntryTitlePulse 2.4s ease-in-out infinite;
}

#pvp-entry-note {
  color: var(--text-primary);
  font-size: clamp(1.18rem, 3.8vw, 1.42rem);
  font-weight: 700;
  line-height: 1.34;
  margin-inline: auto;
  max-width: 90%;
  text-wrap: balance;
  width: 90%;
}

#pvp-entry-card .nickname-field-label {
  display: none;
}

@keyframes pvpEntryTitlePulse {
  0%,
  100% {
    opacity: 0.46;
  }

  50% {
    opacity: 1;
  }
}

.team-entry-error {
  color: #ffb3b3;
  line-height: 1.4;
}

.team-create-modal {
  align-items: center;
  display: grid;
  inset: 0;
  justify-items: center;
  padding:
    calc(18px + env(safe-area-inset-top))
    calc(18px + env(safe-area-inset-right))
    calc(18px + env(safe-area-inset-bottom))
    calc(18px + env(safe-area-inset-left));
  position: fixed;
  z-index: 35;
}

.team-create-modal[hidden] {
  display: none;
}

.team-create-modal-backdrop {
  background: rgba(1, 4, 8, 0.76);
  inset: 0;
  opacity: 0;
  padding: 0;
  position: absolute;
  transition: opacity 220ms ease;
  width: 100%;
}

.team-create-dialog {
  backdrop-filter: blur(28px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
    rgba(5, 9, 13, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.46);
  display: grid;
  gap: 14px;
  grid-template-rows: minmax(0, 1fr) auto;
  max-height: min(84svh, 920px);
  max-width: 520px;
  opacity: 0;
  overscroll-behavior: contain;
  overflow: visible;
  padding: 24px;
  position: relative;
  transform: translateY(18px) scale(0.98);
  transition:
    opacity 260ms ease,
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
  width: min(100%, 520px);
}

.team-create-scroll-area {
  display: grid;
  gap: 18px;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding-bottom: 6px;
  padding-right: 10px;
  scrollbar-color: rgba(142, 153, 172, 0.72) rgba(255, 255, 255, 0.05);
  scrollbar-width: thin;
  width: 100%;
}

.team-create-scroll-area::-webkit-scrollbar {
  width: 12px;
}

.team-create-scroll-area::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
}

.team-create-scroll-area::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(156, 166, 184, 0.92), rgba(104, 117, 139, 0.88));
  border: 2px solid rgba(7, 10, 14, 0.82);
  border-radius: 999px;
}

.team-create-footer {
  display: grid;
  gap: 10px;
  margin-top: 2px;
  width: 100%;
}

.audio-settings-dialog,
.faq-dialog {
  gap: 18px;
  max-height: min(84svh, 920px);
  width: min(100%, 560px);
}

.faq-dialog {
  overflow: visible;
  padding-top: 30px;
}

.audio-settings-header {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}

.audio-settings-list,
.faq-list {
  display: grid;
  gap: 12px;
}

.faq-scroll-area {
  display: grid;
  gap: 18px;
  max-height: min(calc(84svh - 46px), 840px);
  overflow: auto;
  padding-right: 10px;
  scrollbar-color: rgba(142, 153, 172, 0.72) rgba(255, 255, 255, 0.05);
  scrollbar-width: thin;
  width: 100%;
}

.faq-scroll-area::-webkit-scrollbar {
  width: 12px;
}

.faq-scroll-area::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
}

.faq-scroll-area::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(156, 166, 184, 0.92), rgba(104, 117, 139, 0.88));
  border: 2px solid rgba(7, 10, 14, 0.82);
  border-radius: 999px;
}

.faq-header {
  gap: 10px;
}

.faq-intro {
  color: var(--text-primary);
  line-height: 1.6;
  margin: 0;
  text-align: left;
  width: 100%;
}

.faq-section-title {
  color: var(--text-primary);
  font-size: clamp(1.18rem, 3vw, 1.42rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 4px 0 0;
  text-align: left;
  width: 100%;
}

.audio-settings-row,
.faq-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(8, 12, 18, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  display: grid;
  gap: 10px;
  padding: 14px 16px;
}

.audio-settings-row-top {
  align-items: center;
  color: var(--text-primary);
  display: flex;
  font-size: 0.98rem;
  font-weight: 600;
  gap: 12px;
  justify-content: space-between;
}

.audio-settings-value {
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.audio-settings-row input[type="range"] {
  width: 100%;
}

.faq-question,
.faq-answer {
  margin: 0;
}

.faq-question {
  color: var(--text-primary);
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.faq-answer {
  color: var(--text-secondary);
  line-height: 1.5;
}

.team-manager-dialog {
  gap: 18px;
  max-height: min(84svh, 920px);
  overflow: visible;
  width: min(100%, 620px);
}

.team-manager-scroll-area {
  box-sizing: border-box;
  display: grid;
  gap: 18px;
  max-height: min(calc(84svh - 12px), 900px);
  overflow: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding-top: 18px;
  padding-bottom: 28px;
  padding-right: 10px;
  scrollbar-color: rgba(142, 153, 172, 0.72) rgba(255, 255, 255, 0.05);
  scrollbar-width: thin;
  width: 100%;
}

.team-manager-scroll-area::-webkit-scrollbar {
  width: 12px;
}

.team-manager-scroll-area::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
}

.team-manager-scroll-area::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(156, 166, 184, 0.92), rgba(104, 117, 139, 0.88));
  border: 2px solid rgba(7, 10, 14, 0.82);
  border-radius: 999px;
}

.team-manager-close-button-outside {
  position: absolute;
  right: -56px;
  top: -2px;
  z-index: 2;
}

.team-manager-auth,
.team-manager-panel {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.team-manager-auth-note {
  color: var(--text-primary);
  font-size: clamp(0.92rem, 2.15vw, 1.12rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.24;
  margin: 0;
  justify-self: center;
  margin-inline: auto;
  max-width: min(88%, 34rem);
  text-align: center;
  text-wrap: balance;
  width: 88%;
}

.team-manager-heading {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}

.team-manager-title {
  font-size: clamp(1.9rem, 4.8vw, 2.55rem);
  letter-spacing: -0.06em;
  margin: 0;
}

.team-manager-section {
  display: grid;
  gap: 12px;
}

.team-manager-section-title {
  font-size: clamp(1.34rem, 4.2vw, 1.62rem);
  letter-spacing: -0.04em;
  margin: 22px 0 6px;
}

.team-manager-section + .team-manager-section .team-manager-section-title {
  margin-top: 30px;
}

.team-manager-list {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.team-manager-show-all-button {
  align-self: center;
  background: none;
  border: 0;
  color: rgba(246, 247, 251, 0.74);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 2px auto 0;
  padding: 4px 10px;
  text-align: center;
  transition:
    color 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.team-manager-show-all-button:hover {
  color: var(--text-primary);
  transform: translateY(-1px);
}

.team-manager-show-all-button:focus-visible {
  border-radius: 999px;
  outline: 2px solid rgba(255, 210, 77, 0.5);
  outline-offset: 2px;
}

.team-manager-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(8, 12, 18, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  box-sizing: border-box;
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  width: 100%;
}

.team-manager-card-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.team-manager-card-top {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-width: 0;
}

.team-manager-card-title {
  color: var(--text-primary);
  font-size: 1.04rem;
  letter-spacing: -0.03em;
  min-width: 0;
  overflow-wrap: anywhere;
}

.team-manager-card-count,
.team-manager-card-meta,
.team-manager-card-subtitle,
.team-manager-empty {
  color: var(--text-secondary);
}

.team-manager-card-count {
  font-size: 0.84rem;
}

.team-manager-card-meta,
.team-manager-card-subtitle,
.team-manager-empty {
  line-height: 1.45;
  margin: 0;
}

.team-manager-card-subtitle {
  font-size: 0.92rem;
}

.team-manager-empty {
  text-align: center;
}

.team-manager-card-actions {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.team-manager-card-action-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  width: 100%;
}

.team-manager-card-button {
  min-width: 0;
  width: 100%;
}

.team-manager-card-icon-button {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 72px;
  height: 72px;
  justify-content: center;
  line-height: 0;
  padding: 0;
  width: 72px;
}

.team-manager-card-icon-button svg {
  display: block;
  height: 28px;
  width: 28px;
}

.team-manager-card-delete-button {
  background:
    linear-gradient(180deg, rgba(255, 118, 118, 0.16), rgba(255, 118, 118, 0.06)),
    rgba(42, 8, 10, 0.72);
  border-color: rgba(255, 120, 120, 0.34);
  color: #ffd8d8;
}

.team-manager-card-delete-button:hover {
  background:
    linear-gradient(180deg, rgba(255, 118, 118, 0.2), rgba(255, 118, 118, 0.08)),
    rgba(54, 10, 12, 0.78);
}

.team-manager-card-actions .team-copy-button {
  min-width: 0;
  width: 100%;
}

.team-manager-empty {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 16px 18px;
  text-align: center;
}

.team-create-modal.is-open .team-create-modal-backdrop {
  opacity: 1;
}

.team-create-modal.is-open .team-create-dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.team-create-close-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--text-primary);
  display: inline-flex;
  font-size: 1.2rem;
  height: 40px;
  justify-content: center;
  justify-self: end;
  padding: 0;
  width: 40px;
}

.team-create-close-button-outside {
  position: absolute;
  right: -60px;
  top: -2px;
  z-index: 3;
}

.faq-close-button-outside {
  position: absolute;
  right: -60px;
  top: -2px;
  z-index: 2;
}

.team-create-form {
  display: grid;
  gap: 18px;
}

.team-create-question {
  display: grid;
  gap: 14px;
}

.team-create-question + .team-create-question {
  margin-top: 8px;
}

.team-create-question-title,
.team-create-custom-title {
  color: var(--text-primary);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.42;
  margin: 0;
}

.team-create-question + .team-create-question .team-create-question-title {
  margin-top: 6px;
}

.team-create-question-subtitle {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.4;
}

.team-create-choice-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.team-create-choice-grid-rounds {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.team-create-choice-button {
  align-items: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(8, 12, 18, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  color: var(--text-primary);
  display: grid;
  gap: 4px;
  justify-items: center;
  min-height: 56px;
  padding: 12px 14px;
  text-align: center;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.team-create-choice-button:hover {
  transform: translateY(-1px);
}

.team-create-choice-button.is-selected {
  background:
    linear-gradient(180deg, rgba(255, 214, 92, 0.18), rgba(255, 214, 92, 0.08)),
    rgba(8, 12, 18, 0.82);
  border-color: rgba(255, 214, 92, 0.42);
  box-shadow: 0 12px 28px rgba(255, 208, 72, 0.14);
}

.team-create-choice-button-wide {
  align-items: start;
  justify-items: start;
  min-height: 92px;
  text-align: left;
}

.team-create-choice-label {
  color: var(--text-primary);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.3;
}

.team-create-choice-note {
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.38;
}

.team-create-custom-colors-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(8, 12, 18, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  display: grid;
  gap: 14px;
  padding: 16px;
}

.team-create-custom-colors-section[hidden] {
  display: none;
}

.team-create-custom-header {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.team-create-custom-title {
  font-size: 1.04rem;
}

.team-create-custom-preview {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  color: var(--team-create-preview-text, #f6f7fb);
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 700;
  height: 60px;
  justify-content: center;
  letter-spacing: -0.03em;
  min-width: 140px;
  padding: 0 14px;
  text-shadow: var(--team-create-preview-shadow, none);
}

.team-create-input-hex {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.team-create-slider-stack {
  gap: 14px;
}

.team-create-slider-row {
  gap: 6px;
}

.team-create-slider-label {
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
}

.team-create-colors-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.team-create-color-chip {
  align-items: start;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(8, 12, 18, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  display: grid;
  gap: 6px;
  min-height: 88px;
  overflow: hidden;
  padding: 10px 12px 12px;
  position: relative;
  text-align: left;
}

.team-create-color-chip::before {
  background: var(--team-chip-color, #3f4d68);
  content: "";
  display: block;
  height: 38px;
  margin: -10px -12px 0;
}

.team-create-color-chip.is-selected {
  border-color: rgba(0, 208, 255, 0.42);
  box-shadow: 0 14px 28px rgba(0, 208, 255, 0.12);
}

.team-create-color-chip-index {
  color: var(--text-primary);
  font-size: 0.84rem;
  font-weight: 700;
  margin-top: 2px;
}

.team-create-color-chip-hex {
  color: var(--text-secondary);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.daily-create-info {
  margin-bottom: 0;
  margin-top: 12px;
  max-width: 100%;
  order: 3;
  width: 100%;
}

#daily-create-error {
  order: 2;
}

.team-create-dialog .daily-create-info .daily-summary-kicker-label {
  text-align: left;
}

.team-create-input,
.team-create-link {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  color: var(--text-primary);
  outline: none;
  padding: 15px 18px;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
  width: 100%;
}

.team-create-input {
  text-align: center;
}

.team-create-link {
  font-size: 0.94rem;
  text-align: left;
}

.team-create-input::placeholder {
  color: rgba(246, 247, 251, 0.38);
}

.team-create-input:focus,
.team-create-link:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 208, 255, 0.36);
  box-shadow: 0 0 0 4px rgba(0, 208, 255, 0.12);
}

.team-create-submit,
.team-create-copy-button {
  width: 100%;
}

#team-manager-new-button {
  background: linear-gradient(135deg, #3d96ff, #64d9ff);
  border: 1px solid rgba(141, 227, 255, 0.46);
  box-shadow: 0 16px 28px rgba(61, 150, 255, 0.18);
  color: #07111b;
  isolation: isolate;
  position: relative;
}

#team-manager-new-button:hover {
  box-shadow: 0 18px 30px rgba(61, 150, 255, 0.2);
}

#team-manager-new-button::after {
  background: radial-gradient(
    circle at 50% 40%,
    rgba(120, 215, 255, 0.34) 0%,
    rgba(61, 150, 255, 0.18) 42%,
    rgba(61, 150, 255, 0.08) 58%,
    rgba(61, 150, 255, 0) 76%
  );
  border-radius: 999px;
  content: "";
  inset: -18px -28px -30px;
  filter: blur(18px);
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

.team-create-error {
  color: #ffb3b3;
  line-height: 1.4;
  margin: 0;
  text-align: center;
}

.team-create-invite {
  display: grid;
  gap: 12px;
}

.secondary-button-accent {
  background: linear-gradient(135deg, rgba(0, 208, 255, 0.24), rgba(64, 132, 255, 0.18));
  border: 1px solid rgba(101, 213, 255, 0.32);
}

.result-actions {
  align-self: center;
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: 74px 98px 74px;
  justify-content: center;
  margin-inline: auto;
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
  position: relative;
  z-index: 4;
  width: 100%;
}

.result-actions[data-mode="team-summary"] {
  grid-template-columns: 74px 98px 74px;
}

.result-actions[data-mode="daily-summary"] {
  grid-template-columns: 74px 74px;
}

.result-actions[data-mode="team-leaderboard"] {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: center;
}

.result-actions[data-mode="team-leaderboard"] #main-menu-button {
  order: 2;
}

.result-actions[data-mode="team-leaderboard"] #team-leaderboard-back-button {
  order: 1;
}

.result-action-button {
  align-items: center;
  appearance: none;
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: var(--text-primary);
  display: inline-flex;
  height: 74px;
  justify-content: center;
  padding: 0;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
  width: 74px;
}

#main-menu-button,
#team-leaderboard-back-button,
#restart-button,
#share-result-button {
  border-radius: 999px !important;
  font-size: 0 !important;
  line-height: 0 !important;
  min-width: 0;
}

#main-menu-button svg,
#team-leaderboard-back-button svg,
#restart-button svg,
#share-result-button svg {
  display: block;
}

.result-action-button:hover {
  transform: translateY(-2px) scale(1.02);
}

.result-action-button:focus-visible {
  outline: 0;
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.12),
    0 18px 38px rgba(0, 0, 0, 0.26);
}

.result-action-button-side {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)),
    rgba(10, 14, 20, 0.7);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
}

.result-action-button-primary {
  background: linear-gradient(135deg, #ffd54a, #ffea71);
  border-color: rgba(255, 230, 122, 0.78);
  box-shadow: 0 22px 44px rgba(255, 208, 72, 0.28);
  color: #111111;
  height: 98px;
  width: 98px;
}

.result-action-icon {
  display: block;
  height: 30px;
  width: 30px;
}

.result-action-icon-primary {
  height: 38px;
  width: 38px;
}

.team-result-board,
.daily-result-board {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  display: none;
  gap: 16px;
  padding: 20px;
  text-align: left;
  width: min(100%, 760px);
}

.team-result-board {
  justify-items: stretch;
  width: min(100%, 1000px);
}

.team-result-board.is-visible,
.daily-result-board.is-visible {
  display: grid;
}

.daily-result-board {
  justify-items: center;
  text-align: center;
  width: min(100%, 1000px);
}

.daily-result-board .team-result-list {
  justify-items: center;
  width: 100%;
}

.daily-result-board .team-result-row {
  justify-items: center;
  text-align: center;
  width: 100%;
}

.daily-result-board .team-result-heading {
  justify-content: center;
  width: 100%;
}

.daily-result-board .team-result-row-body {
  grid-template-columns: 1fr;
  justify-items: center;
  width: 100%;
}

.daily-result-board .team-result-attempts {
  justify-self: center;
}

.daily-result-board .team-result-score {
  align-items: center;
  backdrop-filter: blur(16px);
  background: var(--daily-score-pill-bg, rgba(9, 13, 18, 0.62));
  border: 1px solid var(--daily-score-pill-border, rgba(255, 255, 255, 0.14));
  border-radius: 999px;
  box-shadow: var(--daily-score-pill-shadow, 0 12px 28px rgba(0, 0, 0, 0.24));
  display: inline-flex;
  justify-content: center;
  justify-self: center;
  line-height: 1;
  min-width: 6.3rem;
  padding: 0.6rem 0.9rem;
  text-align: center;
}

.app-shell[data-result-mode="pvp-summary"][data-pvp-outcome="win"] {
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 220, 84, 0.16), transparent 32%),
    radial-gradient(circle at 82% 20%, rgba(79, 213, 255, 0.18), transparent 34%),
    var(--stage-background);
}

.app-shell[data-result-mode="pvp-summary"][data-pvp-outcome="lose"] {
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 82, 82, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(68, 9, 9, 0.22), rgba(18, 3, 3, 0.2)),
    var(--stage-background);
}

.confetti-layer {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: fixed;
  z-index: 4;
}

.confetti-layer[hidden] {
  display: none;
}

.confetti-piece {
  animation: confetti-fall var(--confetti-duration, 3s) linear 3 both;
  animation-delay: var(--confetti-delay, 0s);
  background: var(--confetti-color, #ffd54a);
  border-radius: 6px;
  height: 18px;
  left: var(--confetti-left, 50%);
  opacity: 0.92;
  position: absolute;
  top: -8%;
  transform: rotate(var(--confetti-rotate, 0deg));
  width: 12px;
}

@keyframes confetti-fall {
  0% {
    opacity: 0;
    transform: translate3d(0, -10vh, 0) rotate(0deg);
  }
  10% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(-20px, 170vh, 0) rotate(540deg);
  }
}

.team-result-kicker {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0;
  text-align: center;
}

.team-result-board .team-result-kicker {
  font-size: clamp(1.18rem, 2.85vw, 1.52rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.18;
}

.team-result-kicker.team-manager-section-title {
  font-size: clamp(1.62rem, 4.8vw, 2rem);
  line-height: 1.08;
  margin: 30px 0 12px;
}

.team-manager-section:first-of-type .team-result-kicker.team-manager-section-title {
  margin-top: 40px;
}

.team-manager-section + .team-manager-section .team-result-kicker.team-manager-section-title {
  margin-top: 42px;
}

.daily-result-board .team-result-kicker {
  font-size: clamp(1.3rem, 3vw, 1.62rem);
  line-height: 1.16;
}

.daily-result-kicker-line,
.daily-result-kicker-subline {
  display: block;
}

.daily-result-kicker-line {
  font-size: clamp(1.26rem, 2.8vw, 1.5rem);
}

.daily-result-kicker-subline {
  color: rgba(246, 247, 251, 0.66);
  font-size: 0.92rem;
  font-weight: 500;
  margin-top: 4px;
}

.team-result-list {
  display: grid;
  gap: 12px;
  width: 100%;
}

.team-result-row {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  display: grid;
  gap: 14px;
  overflow: hidden;
  padding: 14px;
  position: relative;
  width: 100%;
}

.team-result-row.is-current {
  background: rgba(0, 208, 255, 0.11);
  border-color: rgba(0, 208, 255, 0.22);
}

.team-result-heading {
  align-items: center;
  display: flex;
  gap: 10px;
}

.team-result-rank {
  color: rgba(246, 247, 251, 0.56);
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
  min-width: auto;
}

.team-result-name {
  color: var(--text-primary);
  font-size: clamp(1.02rem, 3.4vw, 1.26rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.team-result-current-badge {
  align-items: center;
  background: rgba(0, 208, 255, 0.14);
  border: 1px solid rgba(0, 208, 255, 0.26);
  border-radius: 999px;
  color: rgba(210, 247, 255, 0.94);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  padding: 0.42rem 0.62rem;
  white-space: nowrap;
}

.daily-gap-row {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 2px 0 0;
  text-align: center;
}

.daily-gap-dot {
  background: rgba(246, 247, 251, 0.38);
  border-radius: 999px;
  display: block;
  height: 6px;
  width: 6px;
}

.team-result-row-body {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  width: 100%;
}

.team-result-score {
  color: var(--text-primary);
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  justify-self: end;
  text-align: right;
}

.team-result-score.is-waiting {
  color: rgba(246, 247, 251, 0.44);
  font-size: 0.9rem;
  font-weight: 500;
}

.daily-result-board .team-result-row {
  --daily-score-pill-bg: rgba(9, 13, 18, 0.6);
  --daily-score-pill-border: rgba(255, 255, 255, 0.14);
  --daily-score-pill-shadow: 0 14px 30px rgba(0, 0, 0, 0.26);
}

.daily-result-board .team-result-row::before {
  content: "";
  inset: -30% auto -30% -40%;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transform: translateX(-220%) rotate(18deg);
  transition: opacity 220ms ease;
  width: 38%;
}

.daily-result-board .team-result-row.is-rank-1 {
  background:
    linear-gradient(135deg, rgba(248, 215, 123, 0.24), rgba(166, 118, 38, 0.16)),
    rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 220, 121, 0.34);
  box-shadow:
    0 20px 44px rgba(255, 204, 74, 0.12),
    inset 0 1px 0 rgba(255, 247, 201, 0.16);
  --daily-score-pill-bg: linear-gradient(135deg, rgba(101, 73, 15, 0.76), rgba(42, 30, 8, 0.7));
  --daily-score-pill-border: rgba(255, 221, 135, 0.34);
  --daily-score-pill-shadow: 0 14px 32px rgba(120, 84, 20, 0.26);
}

.daily-result-board .team-result-row.is-rank-1::before {
  animation: leaderboard-sheen 6.2s ease-in-out infinite;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 247, 210, 0.3) 45%,
    rgba(255, 255, 255, 0) 100%
  );
  opacity: 1;
}

.daily-result-board .team-result-row.is-rank-2 {
  background:
    linear-gradient(135deg, rgba(214, 222, 235, 0.22), rgba(102, 115, 132, 0.16)),
    rgba(255, 255, 255, 0.04);
  border-color: rgba(211, 223, 240, 0.28);
  box-shadow:
    0 18px 40px rgba(135, 145, 163, 0.12),
    inset 0 1px 0 rgba(245, 249, 255, 0.12);
  --daily-score-pill-bg: linear-gradient(135deg, rgba(66, 77, 95, 0.76), rgba(28, 34, 44, 0.7));
  --daily-score-pill-border: rgba(220, 230, 244, 0.24);
  --daily-score-pill-shadow: 0 14px 32px rgba(49, 57, 69, 0.24);
}

.daily-result-board .team-result-row.is-rank-2::before {
  animation: leaderboard-sheen 7.2s ease-in-out infinite;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(241, 245, 252, 0.22) 45%,
    rgba(255, 255, 255, 0) 100%
  );
  opacity: 1;
}

.daily-result-board .team-result-row.is-rank-3 {
  background:
    linear-gradient(135deg, rgba(185, 122, 83, 0.24), rgba(104, 60, 33, 0.16)),
    rgba(255, 255, 255, 0.04);
  border-color: rgba(206, 142, 102, 0.28);
  box-shadow:
    0 18px 40px rgba(144, 85, 50, 0.14),
    inset 0 1px 0 rgba(244, 206, 178, 0.1);
  --daily-score-pill-bg: linear-gradient(135deg, rgba(88, 46, 24, 0.76), rgba(42, 20, 8, 0.7));
  --daily-score-pill-border: rgba(219, 156, 118, 0.24);
  --daily-score-pill-shadow: 0 14px 32px rgba(74, 38, 19, 0.24);
}

.daily-result-board .team-result-row.is-rank-3::before {
  animation: leaderboard-sheen 8.1s ease-in-out infinite;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 227, 209, 0.18) 45%,
    rgba(255, 255, 255, 0) 100%
  );
  opacity: 1;
}

.daily-result-board .team-result-row.is-user-spot,
.daily-result-board .team-result-row.is-current:not(.is-rank-1):not(.is-rank-2):not(.is-rank-3) {
  background:
    linear-gradient(135deg, rgba(92, 209, 255, 0.2), rgba(43, 115, 220, 0.14)),
    rgba(255, 255, 255, 0.04);
  border-color: rgba(111, 211, 255, 0.28);
  box-shadow:
    0 18px 40px rgba(51, 146, 235, 0.14),
    inset 0 1px 0 rgba(208, 243, 255, 0.1);
  --daily-score-pill-bg: linear-gradient(135deg, rgba(31, 82, 132, 0.76), rgba(11, 32, 68, 0.72));
  --daily-score-pill-border: rgba(130, 221, 255, 0.26);
  --daily-score-pill-shadow: 0 14px 32px rgba(21, 71, 122, 0.24);
}

@keyframes leaderboard-sheen {
  0%,
  18% {
    opacity: 0;
    transform: translateX(-240%) rotate(18deg);
  }

  24% {
    opacity: 1;
    transform: translateX(-240%) rotate(18deg);
  }

  68% {
    opacity: 1;
    transform: translateX(420%) rotate(18deg);
  }

  69%,
  100% {
    opacity: 0;
    transform: translateX(420%) rotate(18deg);
  }
}

.confirm-button {
  align-items: center;
  background: linear-gradient(135deg, #42f58d, #caff66);
  border-radius: 999px;
  box-shadow: 0 18px 42px rgba(66, 245, 141, 0.28);
  color: #0f1412;
  display: inline-flex;
  font-size: 1.8rem;
  font-weight: 700;
  height: 68px;
  justify-content: center;
  width: 68px;
}

.confirm-button:hover {
  transform: translateY(-2px);
}

.share-modal {
  align-items: center;
  display: grid;
  inset: 0;
  justify-items: center;
  padding:
    calc(18px + env(safe-area-inset-top))
    calc(18px + env(safe-area-inset-right))
    calc(18px + env(safe-area-inset-bottom))
    calc(18px + env(safe-area-inset-left));
  position: fixed;
  z-index: 30;
}

.share-modal[hidden] {
  display: none;
}

.share-modal-backdrop {
  background: rgba(1, 4, 8, 0.74);
  inset: 0;
  opacity: 0;
  padding: 0;
  position: absolute;
  transition: opacity 220ms ease;
  width: 100%;
}

.share-dialog {
  backdrop-filter: blur(28px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
    rgba(5, 9, 13, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 32px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.46);
  display: grid;
  gap: 18px;
  max-height: 100%;
  max-width: 560px;
  opacity: 0;
  overflow: auto;
  padding: 68px 24px 24px;
  position: relative;
  transform: translateY(18px) scale(0.98);
  transition:
    opacity 260ms ease,
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
  width: min(100%, 560px);
}

.share-modal.is-open .share-modal-backdrop {
  opacity: 1;
}

.share-modal.is-open .share-dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.share-close-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: var(--text-primary);
  display: inline-flex;
  font-size: 1.35rem;
  height: 42px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: absolute;
  right: 18px;
  top: 18px;
  width: 42px;
  z-index: 2;
}

.share-modal-note {
  color: rgba(246, 247, 251, 0.82);
  font-size: 1rem;
  line-height: 1.45;
  margin: 0;
  text-align: center;
  text-wrap: balance;
}

.share-dialog-copy {
  display: grid;
  gap: 8px;
  text-align: center;
}

.share-eyebrow,
.share-description,
.share-status {
  margin: 0;
}

.share-eyebrow {
  color: var(--text-primary);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.share-description {
  color: var(--text-secondary);
  line-height: 1.45;
}

.share-preview-frame {
  align-items: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)),
    rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  display: flex;
  justify-content: center;
  min-height: 300px;
  overflow: hidden;
  padding: 14px;
}

.share-preview-image {
  border-radius: 20px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.34);
  display: block;
  max-height: 62svh;
  max-width: 100%;
  object-fit: contain;
}

.share-action-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

.share-action-button {
  background: linear-gradient(135deg, #2d7dff, #48b7ff);
  border: 1px solid rgba(115, 201, 255, 0.52);
  border-radius: 18px;
  box-shadow: 0 18px 36px rgba(46, 131, 255, 0.22);
  color: #f8fbff;
  padding: 15px 18px;
  width: 100%;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.share-action-button:hover {
  background: linear-gradient(135deg, #3686ff, #5bc0ff);
  border-color: rgba(147, 218, 255, 0.7);
  box-shadow: 0 22px 42px rgba(46, 131, 255, 0.28);
  transform: translateY(-1px);
}

.share-close-button:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.share-action-button:disabled,
.share-close-button:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.share-status {
  color: var(--text-secondary);
  line-height: 1.45;
  min-height: 2.9em;
  text-align: center;
}

.share-status.is-error {
  color: #ffb3b3;
}

.pvp-rematch-dialog {
  display: grid;
  gap: 18px;
}

.pvp-rematch-title,
.pvp-rematch-note {
  margin: 0;
  text-align: center;
}

.pvp-rematch-title {
  font-size: clamp(1.35rem, 4vw, 1.9rem);
  letter-spacing: -0.04em;
}

.pvp-rematch-note {
  color: var(--text-secondary);
  line-height: 1.5;
}

.pvp-rematch-actions {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 901px) {
  .screen-result[data-result-mode="team-leaderboard"] .team-result-attempts .team-attempt-score {
    border-radius: 14px;
    font-size: clamp(1rem, 1.12vw, 1.18rem);
    min-width: 4.7em;
    padding: 0.5em 0.8em 0.54em;
  }
}
