:root {
  --bg-1: #0f1f2f;
  --bg-2: #173f4d;
  --surface: rgba(8, 24, 33, 0.7);
  --surface-border: rgba(255, 255, 255, 0.16);
  --text: #f2f8fa;
  --muted: #afc4ce;
  --accent: #00d2b4;
  --accent-2: #ffbc42;
  --danger: #ff4f4f;
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
}

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

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 0 0, rgba(0, 210, 180, 0.2) 0, transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(255, 188, 66, 0.2) 0, transparent 35%),
    linear-gradient(135deg, var(--bg-1), var(--bg-2));
  padding: 2rem 1rem 3rem;
}

.bg-shape {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.45;
}

.bg-shape-a {
  width: 20rem;
  height: 20rem;
  background: rgba(255, 188, 66, 0.55);
  top: -6rem;
  right: -5rem;
}

.bg-shape-b {
  width: 18rem;
  height: 18rem;
  background: rgba(0, 210, 180, 0.5);
  bottom: -6rem;
  left: -4rem;
}

.app {
  width: min(100%, 68rem);
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.session-screen {
  display: grid;
  gap: 1rem;
}

.session-screen:not(:has(.timers:not([hidden]))) {
  min-height: calc(100vh - 5rem);
  align-content: center;
}

.app__header h1 {
  margin: 0.25rem 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: 0.01em;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: var(--accent-2);
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.panel {
  border: 1px solid var(--surface-border);
  background: var(--surface);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.setup {
  padding: 1rem;
}

/* Settings Button */
.settings-btn {
  position: fixed;
  top: 0.9rem;
  right: 0.9rem;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.6rem;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  z-index: 35;
}

.settings-btn svg {
  transition: transform 0.15s ease;
}

.settings-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--text);
}

.settings-btn:hover svg {
  transform: rotate(30deg);
}

.settings-btn:active svg {
  transform: rotate(60deg);
}

.setup__form {
  display: grid;
  gap: 0.9rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field span {
  color: var(--muted);
  font-size: 0.9rem;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  padding: 0.75rem 0.85rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  font-size: 1rem;
  font-family: inherit;
}

.field textarea {
  resize: vertical;
  min-height: 5rem;
}

.field textarea::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid rgba(0, 210, 180, 0.45);
  outline-offset: 2px;
}

.timers {
  display: grid;
  gap: 1rem;
}

.timer-card {
  padding: 1.1rem;
}

.timer-card__meta h2 {
  margin: 0;
  font-size: 1.1rem;
}

.timer-card__meta p {
  margin: 0.15rem 0 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.timer-value {
  margin: 0;
  font-size: clamp(2.1rem, 8vw, 4rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.progress {
  margin-top: 0.85rem;
  border-radius: 999px;
  width: 100%;
  height: 0.65rem;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.progress__bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), #39f0c1);
  transition: width 180ms linear, background-color 180ms ease;
}

.session-controls-wrapper {
  display: grid;
  gap: 1rem;
  padding-bottom: 5rem;
}

.controls {
  padding: 1rem;
  display: grid;
  gap: 1rem;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.status-item {
  margin: 0;
  padding: 0.75rem;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 0.15rem;
}

.status-item span {
  color: var(--muted);
  font-size: 0.85rem;
}

.status-item strong {
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.controls__buttons {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 1.5rem;
  z-index: 25;
  display: flex;
  gap: 0.7rem;
  align-items: center;
  padding: 0;
  border: none;
  background: transparent;
  backdrop-filter: none;
  border-radius: 0;
  box-shadow: none;
  transition: transform 0.2s ease;
}

.controls__buttons:hover {
  transform: translateX(-50%) translateY(-2px);
}

.mobile-action-hint {
  display: none;
  margin: 0;
}

.people-adjust {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.06);
}

.people-adjust span {
  color: var(--muted);
  font-size: 0.9rem;
}

.people-adjust__buttons {
  display: flex;
  gap: 0.5rem;
}

.people-adjust__buttons .btn {
  min-width: 2.7rem;
  padding-inline: 0.8rem;
}

.btn {
  border: 0;
  border-radius: 0.8rem;
  padding: 0.78rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn--primary:disabled {
  background: rgba(255, 255, 255, 0.10);
  color: var(--muted);
}

.btn--primary {
  background: linear-gradient(120deg, var(--accent), #00b598);
  color: #042d29;
}

.btn--accent {
  background: linear-gradient(120deg, var(--accent-2), #ffd86b);
  color: #332200;
}

.btn--small {
  padding: 0.5rem 0.85rem;
  font-size: 0.85rem;
}

.btn--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.btn--quiet {
  opacity: 0.82;
}

.status-text {
  margin: 0;
  color: var(--muted);
  min-height: 1.3rem;
}

.timer-card.is-overdue .timer-value,
.timer-card.is-overdue .timer-card__meta p {
  color: var(--danger);
}

.timer-card.is-overdue .progress__bar {
  background: var(--danger);
}

.timer-card.is-warning .progress__bar {
  background: #ffd86b;
}

.timer-card.is-overdue.is-overdue-blink .progress__bar {
  animation: danger-blink 0.7s step-start infinite;
}

.timer-card.is-speaker-change {
  animation: speaker-card-pulse 420ms ease;
}

.farewell {
  padding: clamp(2rem, 6vw, 4rem);
  min-height: min(78vh, 36rem);
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 216, 107, 0.22), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(0, 210, 180, 0.28), transparent 45%),
    rgba(8, 24, 33, 0.74);
}

.farewell__content {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 0.9rem;
}

.farewell__content h2 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.1;
}

.farewell__content .btn:first-of-type {
  margin-top: 3.5rem;
}

.farewell__subtitle {
  margin: 0;
  color: var(--accent-2);
  font-size: clamp(1.1rem, 3.5vw, 1.6rem);
  letter-spacing: 0.02em;
}

@keyframes danger-blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0.25;
  }
}

@keyframes speaker-card-pulse {
  0% {
    transform: translateY(0);
    box-shadow: var(--shadow);
  }
  35% {
    transform: translateY(-2px);
    box-shadow: 0 26px 46px rgba(0, 0, 0, 0.32);
  }
  100% {
    transform: translateY(0);
    box-shadow: var(--shadow);
  }
}

@keyframes meta-pill-pulse {
  0% {
    border-color: rgba(255, 255, 255, 0.14);
    color: var(--muted);
  }
  45% {
    border-color: rgba(0, 210, 180, 0.55);
    color: var(--text);
  }
  100% {
    border-color: rgba(255, 255, 255, 0.14);
    color: var(--muted);
  }
}

/* Participants Section */
.participants-section {
  display: grid;
  gap: 1.2rem;
}

.participants-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.meta-pill {
  margin: 0;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--muted);
  font-size: 0.9rem;
}

.meta-pill.is-speaker-change {
  animation: meta-pill-pulse 420ms ease;
}

.participants-group {
  display: grid;
  gap: 0.5rem;
}

.participants-group__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
}

.participants-group__body {
  display: grid;
  gap: 0.5rem;
}

.inline-toggle {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.84rem;
  padding: 0.2rem 0.1rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.26);
  cursor: pointer;
}

.inline-toggle:hover {
  color: var(--text);
  border-bottom-color: rgba(255, 255, 255, 0.45);
}

.participants-group--attendance.is-collapsed {
  gap: 0.2rem;
}

.participants-group--queue {
  padding: 0.8rem;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.participants-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.participants-hint {
  margin: -0.1rem 0 0;
  color: rgba(175, 196, 206, 0.72);
  font-size: 0.82rem;
}

.chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 2.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border-radius: 2rem;
  font-size: 0.95rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.chip:disabled {
  cursor: default;
}

.chip--queue {
  background: linear-gradient(135deg, rgba(0, 210, 180, 0.24), rgba(0, 210, 180, 0.12));
  border: 1px solid rgba(0, 210, 180, 0.48);
  color: #d9fff7;
}

.chips-container--queue .chip--queue {
  padding: 0.6rem 1.05rem;
  font-weight: 600;
}

.chip--queue:hover {
  background: linear-gradient(135deg, rgba(0, 210, 180, 0.38), rgba(0, 210, 180, 0.2));
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 210, 180, 0.3);
}

.chip--queue:active {
  transform: translateY(0);
}

.chip--active {
  background: linear-gradient(135deg, var(--accent-2), #ffd86b);
  color: #332200;
  border: none;
  box-shadow: 0 4px 16px rgba(255, 188, 66, 0.35);
}

.chip--completed {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
  text-decoration: line-through;
  cursor: default;
  opacity: 0.82;
}

#speakerCard {
  border-color: rgba(0, 210, 180, 0.3);
}

.chip--daily-current {
  box-shadow: 0 0 0 1px rgba(0, 210, 180, 0.6);
}

.chip--daily-completed {
  text-decoration: line-through;
  opacity: 0.45;
}

.participants-group--done .participants-label {
  color: rgba(175, 196, 206, 0.6);
}

.chips-empty-hint {
  margin: 0;
  color: rgba(175, 196, 206, 0.82);
  font-size: 0.88rem;
}

.participants-group--done:empty,
.participants-group--done:has(.chips-container:empty) {
  display: none;
}

/* Waiting state - no speaker selected yet */
.speaker-waiting {
  color: var(--muted);
  font-style: italic;
}

.status-text {
  margin-top: 0.15rem;
}

@media (min-width: 48rem) {
  .setup__form {
    grid-template-columns: auto 1fr auto;
    align-items: end;
  }

  .field--names {
    grid-column: 1 / -1;
  }

  .timers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .participants-section {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    grid-template-areas:
      "meta attendance"
      "queue attendance"
      "done attendance";
    align-items: start;
  }

  .participants-meta {
    grid-area: meta;
  }

  .participants-group--queue {
    grid-area: queue;
  }

  .participants-group--done {
    grid-area: done;
  }

  .participants-group--attendance {
    grid-area: attendance;
    align-self: stretch;
  }
}

@media (max-width: 39rem) {
  .chips-container {
    justify-content: center;
  }
}

@media (max-width: 48rem) {
  .settings-btn {
    top: 0.75rem;
    right: 0.75rem;
    width: 2.05rem;
    height: 2.05rem;
  }

  .settings-btn svg {
    width: 18px;
    height: 18px;
  }

  .session-controls-wrapper {
    padding-bottom: 0;
  }

  #sessionControls:not([hidden]) {
    padding-bottom: 5.5rem;
  }

  #sessionControls:not([hidden]) .controls__buttons {
    left: 0;
    right: 0;
    bottom: 0;
    transform: none;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    padding: 0.65rem 1rem max(0.65rem, env(safe-area-inset-bottom));
    background: rgba(8, 24, 33, 0.95);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: stretch;
    gap: 0.3rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  }

  #sessionControls:not([hidden]) .controls__buttons:hover {
    transform: none;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  }

  .mobile-action-hint {
    display: block;
    font-size: 0.74rem;
    line-height: 1.1;
    color: var(--muted);
    text-align: center;
    min-height: 0.85rem;
  }

  .controls__buttons .btn {
    width: 100%;
    padding-block: 0.62rem;
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .progress__bar,
  .chip,
  .settings-btn svg {
    transition: none !important;
  }

  .timer-card.is-speaker-change,
  .meta-pill.is-speaker-change,
  .timer-card.is-overdue.is-overdue-blink .progress__bar {
    animation: none !important;
  }
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal {
  width: min(100%, 28rem);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem 0.5rem;
}

.modal__header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.modal__close {
  width: 2rem;
  height: 2rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  border-radius: 0.5rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.modal__close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.modal__body {
  padding: 0.5rem 1rem 1rem;
}

.modal__footer {
  padding: 0 1rem 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

#settingsWheelButton {
  margin-right: auto;
}

/* Crew List (Settings Modal) */
.crew-list {
  max-height: 16rem;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: none;
  border-radius: 0.75rem 0.75rem 0 0;
}

.crew-list:empty {
  display: none;
}

.crew-list:empty + .crew-list__input-row {
  border-radius: 0.75rem;
}

.crew-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.95rem;
  color: var(--text);
}

.crew-list__item:last-child {
  border-bottom: none;
}

.crew-list__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crew-list__remove {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 0.4rem;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.crew-list__remove:hover {
  background: rgba(255, 79, 79, 0.18);
  color: var(--danger);
}

.crew-list__input-row {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.35rem 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0 0 0.75rem 0.75rem;
}

.crew-list__input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  padding: 0.4rem 0;
  outline: none;
}

.crew-list__input::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

.crew-list__add-btn {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 0.5rem;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.crew-list__add-btn:hover {
  background: rgba(0, 210, 180, 0.18);
  color: var(--accent);
}

/* Setup Crew Chips */
.chips-container--setup {
  min-height: 2.8rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.75rem;
}

.chip--present,
.chip--absent {
  transition: transform 0.15s ease, background 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}

.chip--present {
  background: linear-gradient(135deg, rgba(255, 188, 66, 0.24), rgba(255, 188, 66, 0.12));
  border: 1px solid rgba(255, 188, 66, 0.5);
  color: #ffe9bf;
}

.chip--present:hover {
  background: linear-gradient(135deg, rgba(255, 188, 66, 0.38), rgba(255, 188, 66, 0.2));
}

.chip--absent {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  opacity: 0.5;
}

.chip--absent:hover {
  opacity: 0.7;
}

.crew-empty-hint {
  margin: 0;
  padding: 0.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.inline-link {
  background: none;
  border: none;
  color: var(--accent);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  padding: 0;
}

.inline-link:hover {
  color: var(--text);
}

/* Sprint Banner */
.sprint-banner {
  padding: 0.85rem 1rem;
  border: 1px solid rgba(0, 210, 180, 0.2);
  background: rgba(0, 210, 180, 0.06);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
}

.sprint-banner__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.sprint-banner__label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
}

.sprint-banner__days {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(0, 210, 180, 0.12);
  border: 1px solid rgba(0, 210, 180, 0.25);
}

.sprint-banner__days--warning {
  color: var(--accent-2);
  background: rgba(255, 188, 66, 0.14);
  border-color: rgba(255, 188, 66, 0.35);
}

.sprint-banner__days--urgent {
  color: var(--danger);
  background: rgba(255, 79, 79, 0.14);
  border-color: rgba(255, 79, 79, 0.35);
}

.sprint-banner__days--ended {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.sprint-banner__goal {
  margin: 0 0 0.6rem;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.4;
}

.sprint-banner__progress {
  height: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.sprint-banner__progress-bar {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #39f0c1);
  transition: width 0.3s ease;
}

.sprint-banner__progress-bar--warning {
  background: linear-gradient(90deg, var(--accent-2), #ffd86b);
}

.sprint-banner__progress-bar--ended {
  background: var(--muted);
}

/* Sprint Settings Section */
.modal__body--sprint {
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sprint-settings {
  display: grid;
  gap: 0.7rem;
}

.sprint-settings__dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

/* Wheel Modal */
.wheel-modal {
  width: min(100%, 24rem);
}

.wheel-modal__body {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding: 1rem;
}

.wheel-wrapper {
  position: relative;
  width: 100%;
  max-width: 300px;
}

.wheel-pointer {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 22px solid var(--accent-2);
  z-index: 2;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.wheel-container {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
}

#wheelCanvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.wheel-spin-btn {
  width: 100%;
  max-width: 16rem;
  padding: 0.85rem 1.2rem;
  font-size: 1rem;
}

.wheel-result {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-2);
}

/* Responsive adjustments for setup form with crew chips */
@media (min-width: 48rem) {
  .field--crew {
    grid-column: 1 / -1;
  }
}
