
:root {
  --bg-1: #dff2ff;
  --bg-2: #edf7ff;
  --ink: #17324d;
  --muted: #6c88a6;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-strong: rgba(255, 255, 255, 0.96);
  --line: rgba(23, 50, 77, 0.12);
  --shadow: 0 16px 34px rgba(66, 110, 150, 0.16);
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 16px;

  --easy: #ffffff;
  --medium: #d8dee7;
  --hard: #5f6774;

  --theme-air: #4ea8ff;
  --theme-pollution: #ff6b6b;
  --theme-health: #36c784;
  --theme-environment: #27c6b7;
  --theme-solutions: #ffb84d;
  --theme-choice: #9d7cff;

  --accent: #2f8cff;
  --accent-hover: #1874eb;
  --danger: #ef4444;
  --danger-hover: #dc2626;
  --pause: #ffd84d;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, #ffffff 0%, rgba(255,255,255,0.82) 22%, transparent 46%),
    linear-gradient(135deg, var(--bg-1), var(--bg-2));
}

body {
  min-height: 100vh;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  transition: transform 0.16s ease, filter 0.18s ease, background 0.18s ease;
}

button:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

input {
  width: 100%;
  padding: clamp(12px, 1.2vw, 14px) clamp(14px, 1.3vw, 16px);
  border-radius: 18px;
  border: 2px solid rgba(158, 201, 232, 0.34);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  outline: none;
  box-shadow: inset 0 -2px 0 rgba(199, 225, 245, 0.35);
}

input:focus {
  border-color: rgba(47, 140, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(47, 140, 255, 0.14);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.screen {
  display: none;
  height: 100vh;
  padding: 12px;
  overflow: hidden;
}

.screen.active {
  display: flex;
}

.hidden {
  display: none !important;
}

.menu-card,
.setup-card,
.card,
.modal-content,
.question-box {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(8px);
}

#menu-screen .menu-card {
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  width: auto;
  padding: 0;
}

#setup-screen .setup-card {
  background: rgba(255,255,255,0.88);
  border: 3px solid rgba(255,255,255,0.96);
  box-shadow: 0 18px 38px rgba(85, 137, 181, 0.16);
  backdrop-filter: blur(6px);
}

#menu-screen .menu-card {
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  width: auto;
  padding: 0;
}

#setup-screen {
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: auto;
  background:
    linear-gradient(rgba(255,255,255,0.06), rgba(255,255,255,0.06)),
    url("menu-bg.png") center center / cover no-repeat;
}

#menu-screen {
  justify-content: center;
  align-items: center;
}

.menu-card,
.setup-card {
  width: min(880px, calc(100vw - 40px));
  padding: clamp(18px, 2vw, 34px);
  text-align: center;
}

.menu-card h1 {
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  letter-spacing: 0.06em;
  margin-bottom: 22px;
}

.menu-actions,
.setup-actions,
.pause-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.primary-btn,
.secondary-btn,
.count-btn,
.option-btn,
.arrow-btn,
.danger-btn {
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: bold;
}

.primary-btn,
.count-btn {
  background: linear-gradient(180deg, #58b8ff, #2f7df5);
  color: white;
  border: 3px solid rgba(255,255,255,0.92);
  box-shadow:
    0 8px 18px rgba(79, 143, 200, 0.18),
    inset 0 -3px 0 rgba(23, 86, 173, 0.22);
}

.primary-btn,
.secondary-btn {
  min-height: 56px;
  padding: 12px 22px;
  border-radius: 18px;
  font-weight: 900;
}

.secondary-btn,
.arrow-btn,
.option-btn {
  background: rgba(220, 234, 247, 0.92);
  color: var(--ink);
  border: 3px solid rgba(255,255,255,0.92);
  box-shadow:
    0 8px 16px rgba(116, 170, 212, 0.10),
    inset 0 -2px 0 rgba(170, 203, 228, 0.30);
}

.arrow-btn {
  min-width: 58px;
  min-height: 58px;
  border-radius: 18px;
  font-weight: 900;
  flex-shrink: 0;
}

.danger-btn {
  background: linear-gradient(135deg, #ff6f6f, #ef4444);
  color: white;
}

.player-count-panel {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.count-grid,
.answers-grid,
.theme-grid {
  display: grid;
  gap: 12px;
}

.count-grid {
  grid-template-columns: repeat(2, minmax(140px, 1fr));
}

.players-setup-list {
  display: grid;
  gap: 18px;
  margin: 28px 0;
}

.player-setup-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(10px, 1.2vw, 16px);
  align-items: center;
  padding: clamp(14px, 1.6vw, 18px);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 3px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 18px rgba(116, 170, 212, 0.10);
}

.color-picker {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1vw, 12px);
  flex-wrap: nowrap;
}

.color-preview {
  min-width: clamp(110px, 12vw, 152px);
  text-align: center;
  padding: 12px 16px;
  border-radius: 999px;
  color: #10243b;
  font-weight: 900;
  border: 3px solid rgba(255,255,255,0.94);
  box-shadow: 0 8px 16px rgba(116, 170, 212, 0.12);
}

.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 12px;
  width: 100%;
  height: calc(100vh - 24px);
  align-items: stretch;
}

.card {
  padding: 12px;
}

.board-panel {
  min-height: 0;
  padding: 10px;
  display: flex;
  flex-direction: column;
}

.board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.board-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
}

.turn-indicator {
  margin: 0;
  font-weight: 700;
  color: var(--accent-hover);
}

.board {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 0;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.78), rgba(255,255,255,0.60));
  border: 1px solid rgba(148, 163, 184, 0.22);
  overflow: hidden;
}

.board::before {
  content: "";
  position: absolute;
  inset: 0;
  display: none;
}

.board-cell {
  position: absolute;
  border-radius: 8px;
  padding: 4px 8px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.10);
  overflow: hidden;
  text-align: center;
}

.board-cell::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 6px;
  height: 10px;
  border-radius: 999px;
  opacity: 0.95;
}

.board-cell.easy {
  background: linear-gradient(180deg, #ffffff, #f3f4f6);
  color: #0f172a;
}

.board-cell.medium {
  background: linear-gradient(180deg, #9aa4b2, #7f8a99);
  color: #10243b;
}

.board-cell.hard {
  background: linear-gradient(180deg, #2f3846, #1f2733);
  color: #ffffff;
}

.board-cell.theme-air::after { background: var(--theme-air); }
.board-cell.theme-pollution::after { background: var(--theme-pollution); }
.board-cell.theme-health::after { background: var(--theme-health); }
.board-cell.theme-environment::after { background: var(--theme-environment); }
.board-cell.theme-solutions::after { background: var(--theme-solutions); }
.board-cell.theme-choice::after { background: var(--theme-choice); }

.board-cell.active-cell {
  transform: scale(1.06);
  box-shadow: 0 0 0 5px rgba(47, 140, 255, 0.22), 0 12px 24px rgba(47, 140, 255, 0.20);
}

.cell-number {
  display: none;
}

.cell-theme {
  font-size: clamp(0.78rem, 1vw, 0.96rem);
  line-height: 1;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pawn-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pawn {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 8px 16px rgba(0,0,0,0.25);
  transform: translate(-50%, -50%);
  transition: left 0.32s ease, top 0.32s ease;
}

.sidebar {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 10px;
  min-height: 0;
  align-content: start;
}

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

.sidebar-head h1 {
  margin-bottom: 2px;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1;
  color: rgba(23, 50, 77, 0.20);
  letter-spacing: 0.03em;
}

.sidebar-subtitle {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
}

.pause-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffe57f, var(--pause));
  color: #5f4700;
  font-size: 1rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(255, 216, 77, 0.40);
  position: relative;
  z-index: 1300;
  flex-shrink: 0;
}

.players-status {
  display: grid;
  gap: 10px;
}

.player-status-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid transparent;
}

.player-status-item.current {
  border-color: rgba(47, 140, 255, 0.65);
  background: rgba(47, 140, 255, 0.12);
  box-shadow: 0 0 0 4px rgba(47, 140, 255, 0.08);
}

.player-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid white;
}

.players-panel,
.dice-panel {
  text-align: center;
  overflow: hidden;
  min-height: 0;
}

.dice {
  width: 78px;
  height: 78px;
  margin: 6px auto 8px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  font-size: 2.4rem;
  background: linear-gradient(180deg, #ffffff, #eef6ff);
  border: 1px solid rgba(23, 50, 77, 0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 8px 14px rgba(80, 120, 160, 0.14);
}

.dice.rolling {
  animation: roll 0.75s linear infinite;
}

@keyframes roll {
  0% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(90deg) scale(1.04); }
  50% { transform: rotate(180deg) scale(0.96); }
  75% { transform: rotate(270deg) scale(1.04); }
  100% { transform: rotate(360deg) scale(1); }
}

.modal,
.question-modal {
  position: fixed;
  inset: 0;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal {
  background: rgba(7, 22, 39, 0.58);
  z-index: 1400;
}

.question-modal {
  background: rgba(7, 22, 39, 0.66);
  z-index: 1200;
}

.modal-content {
  width: min(560px, 100%);
  padding: 28px;
  text-align: center;
}

.pause-content {
  width: min(420px, 100%);
}

.question-box {
  width: min(760px, calc(100vw - 28px));
  max-height: min(86vh, 900px);
  overflow: auto;
  padding: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,249,255,0.98));
}

.question-box h3 {
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  margin-bottom: 18px;
}

.question-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}

.tag {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  background: rgba(47, 140, 255, 0.10);
  color: var(--accent-hover);
}

.answers-grid,
.theme-grid {
  margin-top: 14px;
}

.option-btn {
  text-align: left;
  width: 100%;
  padding: 14px 16px;
  background: rgba(47, 140, 255, 0.08);
  border: 1px solid rgba(47, 140, 255, 0.08);
}

.option-btn:hover {
  background: rgba(47, 140, 255, 0.15);
}

.question-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 18px;
}

.feedback {
  margin-top: 16px;
  padding: 13px 14px;
  border-radius: 16px;
  font-weight: 800;
}

.feedback.correct {
  background: rgba(54, 199, 132, 0.12);
  color: #148050;
}

.feedback.wrong {
  background: rgba(255, 107, 107, 0.12);
  color: #b23232;
}

.winner-banner {
  text-align: center;
  padding: 20px;
  border-radius: 20px;
  background: rgba(54, 199, 132, 0.14);
  color: #0f7a4a;
}

  @media (max-width: 1180px) and (orientation: landscape) {
  .game-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .board {
    height: min(78vh, 720px);
  }
}

@media (orientation: portrait) {
  #game-screen {
    visibility: hidden;
  }

  #landscape-lock {
    display: flex !important;
  }
}

@media (max-width: 760px) and (orientation: landscape) {
  .screen {
    padding: 14px;
  }

  .menu-card,
  .setup-card,
  .card,
  .modal-content,
  .question-box {
    padding: 18px;
    border-radius: 20px;
  }

  .player-setup-item {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .count-grid {
    grid-template-columns: 1fr;
  }

  .board {
    min-height: 420px;
    height: 72vh;
  }

  .pawn {
    width: 18px;
    height: 18px;
  }

  .color-preview {
    min-width: 100px;
  }

  .sidebar-head h1 {
    font-size: 1.9rem;
  }

  .pause-btn {
    width: 42px;
    height: 42px;
  }
}

.cell-number {
  display: none;
}

.cell-theme {
  font-size: clamp(0.72rem, 0.9vw, 0.88rem);
  line-height: 1;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.landscape-lock {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(241, 245, 249, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.landscape-lock-box {
  max-width: 420px;
  text-align: center;
  background: white;
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.14);
}

.landscape-lock.hidden {
  display: none !important;
}

#spiral-path-layer {
  z-index: 0;
}

.pawn-layer {
  z-index: 3;
}

.board-cell {
  z-index: 2;
}

.player-status-item {
  min-width: 0;
}

.player-status-item strong,
.player-status-item div {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dice-panel .primary-btn {
  width: 100%;
  max-width: 132px;
  margin-top: 8px;
  padding: 10px 14px;
}

.dice-panel h2,
.players-panel h2 {
  margin-bottom: 10px;
}

#dice-result {
  margin: 4px 0 0;
  font-size: 0.95rem;
}

.board-cell.easy-step-0 { background: linear-gradient(180deg, #ffffff, #f8fbff); color: #10243b; }
.board-cell.easy-step-1 { background: linear-gradient(180deg, #f2f6fb, #e6edf6); color: #10243b; }
.board-cell.easy-step-2 { background: linear-gradient(180deg, #e4ebf3, #d6e0eb); color: #10243b; }
.board-cell.easy-step-3 { background: linear-gradient(180deg, #d6e0eb, #c2cfdd); color: #10243b; }
.board-cell.easy-step-4 { background: linear-gradient(180deg, #c2cfdd, #a9bacb); color: #10243b; }
.board-cell.easy-step-5 { background: linear-gradient(180deg, #a9bacb, #8ea2b8); color: #10243b; }

.board-cell.easy-step-0,
.board-cell.easy-step-1 {
  border-color: rgba(47, 140, 255, 0.22);
}

.board-cell.easy-step-2,
.board-cell.easy-step-3 {
  border-color: rgba(23, 50, 77, 0.18);
}

.board-cell.easy-step-4,
.board-cell.easy-step-5 {
  border-color: rgba(23, 50, 77, 0.26);
}

.board-cell.finish-cell {
  background: linear-gradient(180deg, #ffe58f, #f4c542) !important;
  color: #5a4300 !important;
  border: 1px solid rgba(180, 130, 0, 0.28);
  box-shadow: 0 0 0 2px rgba(255, 214, 77, 0.22), 0 4px 12px rgba(180, 130, 0, 0.18);
}

.board-cell.finish-cell::after {
  background: #fff3bf !important;
}

/* ===== MENU INICIAL NOVO ===== */

.menu-screen {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,0.08), rgba(255,255,255,0.08)),
    url("menu-bg.png") center center / cover no-repeat;
}

.menu-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.06) 0%,
      rgba(255,255,255,0.02) 35%,
      rgba(255,255,255,0.10) 100%
    );
  pointer-events: none;
}

.menu-center {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 860px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 20px;
}

.menu-title-wrap {
  text-align: center;
  margin-bottom: 6px;
}

.game-title {
  margin: 0;
  font-size: clamp(3.2rem, 7vw, 6.2rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  font-weight: 900;
  color: #ffd84d;
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", "Verdana", sans-serif;
  -webkit-text-stroke: 4px #4f8fc8;
  text-shadow:
    0 2px 0 #fff3a6,
    0 6px 0 rgba(79, 143, 200, 0.35),
    0 10px 22px rgba(0, 0, 0, 0.12);
}

.game-title {
  filter: saturate(1.05);
}

.menu-subtitle {
  margin-top: 10px;
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(79, 143, 200, 0.18);
}

.menu-main-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.menu-big-btn {
  min-width: 220px;
  padding: 18px 30px;
  border-radius: 22px;
  background: rgba(255,255,255,0.86);
  color: #29527b;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  border: 4px solid #ffffff;
  box-shadow:
    0 10px 24px rgba(67, 130, 181, 0.20),
    inset 0 -4px 0 rgba(107, 168, 214, 0.22);
  backdrop-filter: blur(4px);
}

.menu-big-btn:hover {
  transform: translateY(-2px) scale(1.02);
  background: #ffffff;
}

.among-panel {
  width: min(560px, 100%);
  padding: 24px;
  border-radius: 24px;
  background: rgba(255,255,255,0.82);
  border: 3px solid rgba(255,255,255,0.92);
  box-shadow: 0 14px 34px rgba(84, 140, 186, 0.16);
}

.among-panel h2 {
  margin-bottom: 16px;
  color: #29527b;
  font-size: 1.3rem;
}

.count-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 12px;
}

.count-btn {
  background: rgba(255,255,255,0.96);
  color: #29527b;
  border: 2px solid rgba(118, 177, 220, 0.30);
  box-shadow: 0 4px 12px rgba(118, 177, 220, 0.10);
}

.count-btn:hover {
  background: #ffffff;
}

.menu-floating {
  position: absolute;
  z-index: 1;
  font-size: clamp(2.6rem, 6vw, 5rem);
  opacity: 0.35;
  user-select: none;
  pointer-events: none;
  animation: floatCloud 5s ease-in-out infinite;
}

.menu-floating-left {
  left: 7%;
  top: 22%;
}

.menu-floating-right {
  right: 8%;
  bottom: 20%;
  animation-delay: 1.5s;
}

@keyframes floatCloud {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ajuste do about modal para combinar melhor */
.modal-content {
  background: rgba(255,255,255,0.96);
  color: #264d72;
}

/* mobile */
@media (max-width: 760px) and (orientation: landscape) {
  .menu-center {
    gap: 16px;
    padding: 12px;
  }

  .menu-big-btn {
    min-width: 180px;
    padding: 14px 22px;
    border-radius: 18px;
    font-size: 1.2rem;
  }

  .among-panel {
    padding: 16px;
  }
}

.menu-title-wrap {
  transform: translateZ(0);
}

.game-title,
.menu-big-btn {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}

/* ===== SETUP COM CARA DE MENU DE JOGO ===== */

#setup-screen .setup-card h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  font-weight: 900;
  color: #ffd84d;
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", "Verdana", sans-serif;
  -webkit-text-stroke: 3px #4f8fc8;
  text-shadow:
    0 2px 0 #fff3a6,
    0 5px 0 rgba(79, 143, 200, 0.28),
    0 10px 20px rgba(0, 0, 0, 0.10);
}

#setup-screen .setup-card > p {
  font-size: 1.08rem;
  font-weight: 800;
  color: #4e7399;
  margin-bottom: 22px;
}

.player-setup-item label strong {
  display: inline-block;
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  line-height: 1.05;
  font-weight: 900;
  color: #ffd84d;
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", "Verdana", sans-serif;
  -webkit-text-stroke: 1.5px #4f8fc8;
  text-shadow:
    0 1px 0 #fff3a6,
    0 3px 0 rgba(79, 143, 200, 0.20);
  margin-bottom: 8px;
}

#setup-screen::before,
#setup-screen::after {
  content: "☁";
  position: absolute;
  z-index: 0;
  font-size: clamp(2.8rem, 6vw, 5rem);
  color: rgba(92, 145, 187, 0.35);
  user-select: none;
  pointer-events: none;
  animation: floatCloud 5s ease-in-out infinite;
}

#setup-screen::before {
  left: 7%;
  top: 16%;
}

#setup-screen::after {
  right: 8%;
  bottom: 14%;
  animation-delay: 1.3s;
}

#setup-screen .setup-card {
  position: relative;
  z-index: 1;
}

@media (max-width: 980px) {
  .setup-card {
    width: min(92vw, 820px);
  }

  .player-setup-item {
    grid-template-columns: 1fr;
  }

  .color-picker {
    justify-content: center;
  }

  .player-setup-item label {
    text-align: center;
  }
}

@media (max-width: 680px) {
  #setup-screen .setup-card h2 {
    font-size: clamp(1.8rem, 7vw, 2.6rem);
    -webkit-text-stroke: 1.5px #4f8fc8;
  }

  #setup-screen .setup-card > p {
    font-size: 0.98rem;
  }

  .color-preview {
    min-width: 120px;
  }

  .arrow-btn {
    min-width: 52px;
    min-height: 52px;
  }

  .primary-btn,
  .secondary-btn {
    width: 100%;
    max-width: 220px;
  }
}