.spin-page {
  position: relative;
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #2f0d5b 0%, #4f1d7f 38%, #5b2d84 100%);
  font-family: var(--font-family);
  color: #fff;
  overflow-x: hidden;
}

.spin-page .toast-container {
  bottom: 5.5rem;
}

.spin-page::before,
.spin-page::after {
  content: "";
  position: fixed;
  right: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
  z-index: 0;
}

.spin-stage.is-game #btnOpenSettings {
  display: none !important;
}

.spin-page::before {
  top: 120px;
  right: -100px;
}

.spin-page::after {
  top: 520px;
  right: -160px;
  width: 500px;
  height: 500px;
}

.spin-shell {
  position: relative;
  z-index: 1;
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: visible;
  padding: 12px 20px 30px;
}

.spin-top-info {
  position: relative;
  width: min(1080px, 92vw);
  border-radius: 34px;
  border: 10px solid #ffffff;
  background: #ffffff;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.25);
  padding: 10px 18px;
  margin-bottom: 18px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.spin-top-info-title {
  color: #0f172a;
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0;
  line-height: 1;
  white-space: nowrap;
}

.spin-top-actions-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  margin-left: auto;
}

.spin-top-action,
.spin-share-btn {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  border: 0;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  background: transparent;
  cursor: pointer;
  color: #374151;
  font-size: var(--font-size-sm);
  font-weight: 600;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.spin-top-action:hover,
.spin-share-btn:hover {
  background: rgba(109, 40, 217, 0.08);
  color: #4c1d95;
}

.spin-top-action__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #475569;
  line-height: 1;
}

.spin-top-action__icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.spin-stage {
  --spin-stage-main-bg: linear-gradient(135deg, #13377c 0%, #0f3479 55%, #102f69 100%);
  width: min(1080px, 92vw);
  min-height: clamp(520px, 72vh, 720px);
  border-radius: 38px;
  border: 12px solid #ffffff;
  background: radial-gradient(circle at 80% 12%, rgba(255,255,255,0.16) 0 1px, transparent 1px 6px),
              var(--spin-stage-main-bg);
  background-size: 8px 8px, auto;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 44px rgba(0,0,0,0.35);
}

.spin-stage.is-setup {
  --spin-stage-main-bg: linear-gradient(180deg, #7b1cd4 0%, #580a98 55%, #4d087f 100%);
}

.spin-stage.is-game {
  --spin-stage-main-bg: linear-gradient(135deg, rgba(88, 31, 134, 0.88) 0%, rgba(92, 45, 153, 0.82) 38%, rgba(91, 45, 132, 0.8) 100%);
}

.spin-stage:fullscreen,
.spin-stage:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

.spin-stage:fullscreen .spin-view,
.spin-stage:-webkit-full-screen .spin-view {
  padding: 92px 56px 28px;
}

.spin-stage:fullscreen .spin-view--setup,
.spin-stage:-webkit-full-screen .spin-view--setup {
  display: grid;
  align-content: center;
  justify-items: center;
  row-gap: 12px;
}

.spin-stage:fullscreen .spin-setup-card,
.spin-stage:-webkit-full-screen .spin-setup-card {
  margin-top: 0;
}

.spin-stage:fullscreen #spinnerSection,
.spin-stage:-webkit-full-screen #spinnerSection {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 86px 56px 30px;
  text-align: center;
}

.spin-stage:fullscreen .spinner-wheel-container,
.spin-stage:-webkit-full-screen .spinner-wheel-container {
  margin: 0 auto;
}

.spin-top-controls {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  z-index: 24;
  pointer-events: none;
}

.spin-top-left {
  display: flex;
  gap: 10px;
  pointer-events: auto;
  flex-direction: column;
}

.spin-top-right {
  display: flex;
  gap: 10px;
  pointer-events: auto;
  flex-direction: column;
}

.spin-icon-btn {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 3px solid rgba(104, 208, 255, 0.6);
  background: rgba(16, 49, 118, 0.72);
  color: #fff;
  font-size: 1.65rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.spin-icon-btn:hover {
  transform: translateY(-2px) scale(1.03);
  filter: brightness(1.12);
}

.spin-icon-btn--danger {
  border-color: rgba(255, 150, 150, 0.98);
  background: radial-gradient(circle at 30% 30%, #ff6d6d, #d62828);
  color: rgba(255,255,255,0.98);
}

.spin-icon-btn--utility {
  border-color: rgba(255, 182, 84, 0.95);
  background: radial-gradient(circle at 30% 30%, #ffb74d, #e56f0f);
  color: rgba(255,255,255,0.95);
}

#resetSpinnerBtn {
  border-color: rgba(255, 198, 112, 0.98);
  background: radial-gradient(circle at 30% 30%, #ff9f1c, #c94f00);
}

#btnFullscreen {
  border-color: rgba(255, 224, 112, 0.98);
  background: radial-gradient(circle at 30% 30%, #ffd54f, #d99a00);
}

.spin-icon-btn--sound {
  border-color: rgba(126, 216, 255, 0.9);
  background: radial-gradient(circle at 28% 26%, #31b7f0, #1f65b8);
  color: #ffffff;
}

.spin-icon-btn--sound.is-muted {
  border-color: rgba(170, 198, 236, 0.8);
  background: radial-gradient(circle at 28% 26%, #6c85b6, #3a4f7d);
  color: rgba(255, 255, 255, 0.95);
}

.spin-icon-btn--sound.is-muted::after {
  content: '';
  position: absolute;
  width: 34px;
  height: 3px;
  background: #ff7b7b;
  border-radius: 999px;
  transform: rotate(-38deg);
}

.spin-stage.is-setup #resetSpinnerBtn {
  display: none;
}

.spin-stage.is-game #resetSpinnerBtn {
  display: inline-flex;
}

.spin-view {
  width: 100%;
  min-height: 100%;
  padding: 94px 44px 30px;
}

.spin-view--setup {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.spin-title {
  margin: 0;
  color: #ffbe2f;
  text-shadow: 0 6px 0 rgba(0,0,0,0.3);
  font-size: clamp(2.8rem, 6.3vw, 5.2rem);
  line-height: 1;
  font-weight: 900;
}

.spin-symbols {
  margin-top: 10px;
  color: #1cc8ff;
  text-shadow: 0 8px 0 rgba(0,0,0,0.28);
  font-size: clamp(4rem, 9vw, 6.2rem);
  line-height: 0.95;
  font-weight: 900;
}

.spin-setup-card {
  margin: 12px auto 0;
  width: min(620px, 92vw);
  background: rgba(10, 39, 94, 0.45);
  border: 2px solid rgba(133, 212, 255, 0.45);
  border-radius: 18px;
  padding: 14px;
  display: grid;
  gap: 8px;
}

.spin-setup-card {
  --spin-grid-columns: 36px minmax(220px, 1fr) minmax(0, 1fr) minmax(0, 1fr) 90px;
}

.spin-setup-card.mode-random {
  --spin-grid-columns: 36px minmax(220px, 1fr) 90px;
}

.spin-setup-card .form-label {
  color: #dbefff;
  font-weight: 700;
  font-size: 0.98rem;
}

.spin-setup-card .form-group {
  margin-bottom: 0;
}

.spin-setup-card .form-control {
  width: 100%;
  border-radius: 12px;
  border: 2px solid rgba(157, 217, 255, 0.9);
  background: rgba(7, 27, 72, 0.85);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 10px 12px;
  outline: none;
}

.spin-setup-card textarea.form-control {
  min-height: 166px;
}

.spin-setup-card .form-control:focus {
  border-color: #8be0ff;
  box-shadow: 0 0 0 3px rgba(139, 224, 255, 0.18);
}

.spin-help {
  margin: 0;
  color: rgba(230, 243, 255, 0.82);
  font-size: 0.84rem;
}

.spin-color-toggle {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  color: #eff8ff;
  font-weight: 600;
}

.spin-color-mode-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.spin-color-mode-panel {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 2px solid rgba(157, 217, 255, 0.7);
  background: rgba(7, 27, 72, 0.85);
}

.spin-color-mode-panel__label {
  color: #dbefff;
  font-weight: 700;
  font-size: 0.92rem;
}

.spin-color-input--compact {
  min-height: 42px;
  padding: 4px 8px;
}

.spin-radio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.spin-radio input {
  appearance: none;
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid #31c8ff;
  background: #1a2f6f;
  box-shadow: 0 0 0 1px rgba(10, 27, 72, 0.65);
  display: inline-grid;
  place-content: center;
  margin: 0;
  cursor: pointer;
}

.spin-radio input::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c9f3ff;
  transform: scale(0);
  transition: transform 120ms ease-in-out;
}

.spin-radio input:checked::before {
  transform: scale(1);
}

.spin-editor-head {
  margin-top: 6px;
  display: grid;
  grid-template-columns: var(--spin-grid-columns);
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: #eef7ff;
  font-size: 0.92rem;
  font-weight: 700;
}

.spin-editor-head__idx,
.spin-editor-head__actions {
  text-align: center;
}

.spin-editor-head__color--wheel {
  text-align: left;
}

.spin-word-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spin-word-row {
  display: grid;
  grid-template-columns: var(--spin-grid-columns);
  align-items: center;
  gap: 8px;
}

.spin-setup-card.mode-random .spin-editor-head__color,
.spin-setup-card.mode-random .spin-color-input,
.spin-setup-card.mode-random .spin-text-color-input {
  display: none;
}

.spin-word-row__index {
  color: #d5ebff;
  font-weight: 700;
  text-align: right;
  padding-right: 4px;
}

.spin-word-input,
.spin-color-input,
.spin-text-color-input {
  width: 100%;
  border-radius: 10px;
  border: 2px solid rgba(157, 217, 255, 0.7);
  background: rgba(7, 27, 72, 0.85);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  padding: 9px 10px;
  outline: none;
}

.spin-word-input:focus,
.spin-color-input:focus,
.spin-text-color-input:focus {
  border-color: #8be0ff;
  box-shadow: 0 0 0 3px rgba(139, 224, 255, 0.18);
}

.spin-color-input,
.spin-text-color-input {
  min-height: 40px;
  cursor: pointer;
}

.spin-word-row.is-random .spin-color-input,
.spin-word-row.is-random .spin-text-color-input {
  opacity: 0.45;
  cursor: not-allowed;
}

.spin-word-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.spin-word-action {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: rgba(226, 242, 255, 0.85);
  font-size: 0.92rem;
  cursor: pointer;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.spin-word-action:hover {
  color: #ffffff;
  background: rgba(133, 212, 255, 0.18);
}

.spin-add-word {
  margin-top: 2px;
  justify-self: start;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 1.03rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  padding: 0;
}

.spin-add-word:hover {
  color: #c8ebff;
}

.spin-setup-start {
  margin-top: 24px;
  align-self: center;
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: auto;
  min-width: 280px;
  padding: 12px 34px;
  border-radius: 30px;
  border: 3px solid rgba(178, 255, 189, 0.95);
  color: #fff;
  background: linear-gradient(180deg, #2fca56 0%, #1f9f3e 100%);
  font-weight: 800;
  font-size: clamp(1.1rem, 1.8vw, 2rem);
  cursor: pointer;
  box-shadow: inset 0 -8px 0 rgba(0,0,0,0.18), 0 12px 24px rgba(14, 90, 35, 0.35);
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.spin-setup-start:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.spin-options-row {
  margin: 8px 0 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.spin-settings-panel.hidden {
  display: none;
}

/* Global settings overlay for spinner */
.spin-settings-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 16, 50, 0.72);
  z-index: 40;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 28px 28px;
  backdrop-filter: blur(2px);
}

.spin-settings-overlay.hidden {
  display: none;
}

.spin-settings-overlay__card {
  width: min(520px, 92%);
  max-height: calc(100% - 20px);
  overflow-y: auto;
  border-radius: 18px;
  border: 2px solid rgba(151, 216, 255, 0.45);
  background: rgba(6, 30, 78, 0.97);
  padding: 14px 16px 16px;
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.spin-icon-btn--settings {
  border-color: rgba(160, 100, 220, 0.9);
  background: radial-gradient(circle at 30% 30%, #7b2abf, #4a0e8f);
  color: #ffffff;
}

.spin-settings-overlay__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.spin-settings-overlay__title {
  color: #dbefff;
  font-size: 1.05rem;
  font-weight: 700;
}

.spin-settings-overlay__close {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: rgba(255,100,100,0.18);
  color: #ffaaaa;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.spin-settings-overlay__close:hover {
  background: rgba(255,100,100,0.36);
  color: #ffffff;
}

.spin-settings-group {
  display: grid;
  gap: 6px;
  color: rgba(236, 248, 255, 0.95);
}

.spin-settings-title {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: rgba(188, 227, 255, 0.85);
  font-weight: 700;
}

/* Activity title displayed above the editor card */
.spin-activity-title {
  width: min(960px, 96%);
  margin: -44px auto 6px auto;
  padding: 0;
  background: transparent;
  color: #ffffff;
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  line-height: 1;
  font-weight: 900;
  text-align: center;
  border: none;
  box-shadow: none;
  letter-spacing: 0.02em;
  text-shadow: 0 4px 8px rgba(0,0,0,0.35);
}

.spin-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(236, 248, 255, 0.95);
  cursor: pointer;
}

.spin-check input {
  accent-color: #4bbeff;
}

.spin-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(228, 243, 255, 0.95);
  font-size: 0.92rem;
  font-weight: 600;
}

.spin-check input {
  accent-color: #f58220;
}

.spin-view--game {
  text-align: center;
  padding-top: 108px;
}

.spinner-wheel-container {
  width: 430px;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
}

.spinner-needle {
  position: absolute;
  top: -26px;
  left: 50%;
  width: 56px;
  height: 64px;
  transform: translateX(-50%);
  transform-origin: 50% 15px;
  z-index: 3;
  pointer-events: none;
}

.spinner-needle::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 9px;
  transform: translateX(-50%);
  width: 50px;
  height: 43px;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  background: linear-gradient(180deg, #ffb548 0%, #ff8a00 100%);
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.36));
}

.spinner-needle::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(255, 210, 120, 0.95);
  background: radial-gradient(circle at 32% 32%, #ffe39a, #f59e0b);
  box-shadow: 0 0 10px rgba(255, 162, 41, 0.55);
}

.spinner-wheel-container.is-spinning .spinner-needle {
  animation: spinnerNeedleWobble 110ms ease-in-out infinite alternate;
}

@keyframes spinnerNeedleWobble {
  from {
    transform: translateX(-50%) rotate(-13deg);
  }
  to {
    transform: translateX(-50%) rotate(13deg);
  }
}

.spinner-canvas {
  width: 100%;
  height: auto;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 0 10px rgba(125, 198, 255, 0.46),
    0 0 22px rgba(72, 140, 255, 0.32),
    inset 0 0 10px rgba(205, 235, 255, 0.22);
  animation: spinnerGlowPulse 1.8s ease-in-out infinite;
}

@keyframes spinnerGlowPulse {
  0%,
  100% {
    box-shadow:
      0 0 7px rgba(125, 198, 255, 0.24),
      0 0 14px rgba(72, 140, 255, 0.17),
      inset 0 0 7px rgba(205, 235, 255, 0.12);
  }
  50% {
    box-shadow:
      0 0 14px rgba(125, 198, 255, 0.62),
      0 0 30px rgba(72, 140, 255, 0.38),
      inset 0 0 12px rgba(205, 235, 255, 0.28);
  }
}

.spinner-spin-btn {
  margin-top: var(--space-6);
  min-width: 230px;
  padding: 12px 34px;
  border-radius: 30px;
  border: 3px solid rgba(135, 206, 255, 0.9);
  background: linear-gradient(180deg, #3e62dc 0%, #2747bd 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: clamp(1.1rem, 1.8vw, 2rem);
  box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.18), 0 10px 20px rgba(10, 39, 108, 0.34);
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.spinner-spin-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.spinner-result {
  margin-top: var(--space-5);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-full);
  background: rgba(22, 163, 74, 0.2);
  border: 1px solid rgba(134, 239, 172, 0.35);
  color: #dcfce7;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semi);
}

.spin-game-actions {
  margin-top: var(--space-6);
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}

.spin-ranking-box {
  width: min(1080px, 92vw);
  margin-top: 18px;
  background: #ffffff;
  border-radius: 34px;
  border: 10px solid #ffffff;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.25);
  padding: 16px 18px 18px;
  color: #0f172a;
}

.spin-ranking-box.is-hidden {
  display: none;
}

.spin-ranking-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.spin-ranking-title {
  margin: 0;
  font-size: 1.95rem;
  font-weight: 700;
  color: #0f172a;
}

.spin-ranking-reset {
  border: 1px solid #94a3b8;
  background: #ffffff;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
}

.spin-ranking-reset:hover {
  background: #f8fafc;
  color: #0f172a;
}

.spin-ranking-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 4px;
  overflow: hidden;
}

.spin-ranking-table thead th {
  background: #2093d6;
  color: #ffffff;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 6px 10px;
}

.spin-ranking-table tbody td {
  padding: 5px 10px;
  font-size: 0.95rem;
  color: #111827;
  border-bottom: 1px solid #e5e7eb;
}

.spin-ranking-table tbody tr:nth-child(even) {
  background: #f3f4f6;
}

.spin-ranking-table tbody tr:nth-child(odd) {
  background: #ffffff;
}

.spin-ranking-col-pos {
  width: 72px;
}

.spin-ranking-col-actions {
  width: 48px;
}

.spin-ranking-delete {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: rgba(71, 85, 105, 0.85);
  font-size: 0.9rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.spin-ranking-delete:hover {
  color: #0f172a;
  background: #e2e8f0;
}

@media (max-width: 1024px) {
  .spin-top-info {
    width: min(980px, 94vw);
  }

  .spin-top-actions-row {
    gap: 10px;
  }

  .spin-editor-head,
  .spin-word-row {
    grid-template-columns: var(--spin-grid-columns);
  }

  .spin-setup-card {
    --spin-grid-columns: 30px minmax(170px, 1fr) minmax(100px, 1fr) 84px;
  }

  .spin-setup-card.mode-random {
    --spin-grid-columns: 30px minmax(170px, 1fr) 84px;
  }

  .spin-ranking-box {
    width: min(980px, 94vw);
  }
}

@media (max-width: 768px) {
  .spin-shell {
    padding: 10px 12px 22px;
  }

  .spin-top-info {
    border-width: 8px;
    border-radius: 24px;
    padding: 8px 10px;
  }

  .spin-top-info-title {
    font-size: 1.15rem;
  }

  .spin-top-actions-row {
    display: none;
  }

  .spin-stage {
    border-width: 8px;
    border-radius: 26px;
    min-height: 620px;
  }

  .spin-view {
    padding: 84px 16px 22px;
  }

  .spin-title {
    font-size: clamp(2.1rem, 9vw, 3rem);
  }

  .spin-symbols {
    font-size: clamp(3.2rem, 16vw, 4.4rem);
  }

  .spin-setup-card {
    width: min(92vw, 500px);
    padding: 12px;
    --spin-grid-columns: 28px minmax(90px, 1fr) minmax(90px, 1fr) 78px;
  }

  .spin-setup-card.mode-random {
    --spin-grid-columns: 28px minmax(130px, 1fr) 78px;
  }

  .spin-editor-head,
  .spin-word-row {
    grid-template-columns: var(--spin-grid-columns);
    gap: 6px;
  }

  .spin-word-row__index {
    font-size: 1rem;
  }

  .spin-word-input,
  .spin-color-input {
    font-size: 0.9rem;
    padding: 8px;
  }

  .spin-color-input {
    min-height: 34px;
  }

  .spin-word-action {
    font-size: 0.9rem;
  }

  .spin-add-word {
    font-size: 1.03rem;
  }

  .spin-setup-start {
    min-width: 240px;
    padding: 10px 26px;
  }

  .spinner-wheel-container {
    width: min(330px, 86vw);
  }

  .spin-ranking-box {
    width: 100%;
    padding: 12px;
    overflow-x: auto;
  }

  .spin-ranking-title {
    font-size: 1.55rem;
  }

  .spin-ranking-table {
    min-width: 680px;
  }

  .spin-ranking-table thead th,
  .spin-ranking-table tbody td {
    font-size: 0.82rem;
    padding: 5px 6px;
  }
}

.spin-setup-card input:disabled,
.spin-setup-card textarea:disabled,
.spin-setup-card select:disabled {
  background: #202733;
  border-color: #111827;
  color: #6b7280;
  cursor: not-allowed;
  opacity: 1;
}

.spin-setup-card input[type="color"]:disabled {
  filter: grayscale(1) brightness(0.55);
}

.spin-setup-card button:disabled,
#btnOpenSettings:disabled {
  background: #202733;
  border-color: #111827;
  color: #6b7280;
  cursor: not-allowed;
  opacity: 1;
  filter: none;
}

.spin-setup-card label:has(input:disabled) {
  color: #6b7280;
  cursor: not-allowed;
}
