
#startScreen {
  position: relative;
  isolation: isolate;
  height: 100vh;
  background-image: url('assets/start-bg.png');
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

#startLocalBtn,
#startOnlineBtn {
  position: absolute;
  left: 49%;
  top: 56%;
  transform: translate(-50%, -50%);
  transform-origin: center;
  will-change: transform;
  padding: 22px 70px;
  font-size: 32px;
  border-radius: 14px;
  border: 2px solid rgba(255, 215, 0, 0.6);
  cursor: pointer;
  background: rgba(0, 0, 0, 0.6);
  color: #FFD700;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: all 0.3s ease;
  font-weight: bold;
  letter-spacing: 2px;
  z-index: 3;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

#startLocalBtn::before,
#startLocalBtn::after,
#startOnlineBtn::before,
#startOnlineBtn::after {
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  #startLocalBtn:hover,
  #startOnlineBtn:hover {
    background: rgba(255, 215, 0, 0.15);
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.7);
  }
}


.start-actions {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 0.75rem;
  width: min(92vw, 420px);
}

@media (min-width: 701px) {
  .start-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: none;
  }

  #startLocalBtn,
  #startOnlineBtn {
    width: min(560px, 70vw);
    max-width: 560px;
    min-height: 78px;
    padding: 16px 28px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    direction: rtl;
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
    line-height: 1.2;
    font-size: clamp(24px, 2vw, 42px);
  }
}

#startOnlineBtn {
  left: 49%;
  top: calc(56% + 88px);
}

.online-modal-content {
  width: min(560px, 100%);
}

.online-mode-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.online-mode-actions > button,
.online-panel > button {
  flex: 1 1 180px;
}

.online-panel {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.online-feedback {
  margin-top: 0.55rem;
  font-weight: 700;
}

.online-feedback.is-error {
  color: #ff8b8b;
}

.online-feedback.is-success {
  color: #6ee7b7;
}

.online-feedback.is-info {
  color: #93c5fd;
}


.online-code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(255, 209, 102, 0.35);
  border-radius: 12px;
  background: rgba(255, 209, 102, 0.08);
}

.online-code-box .secondary-btn {
  min-width: 120px;
  white-space: nowrap;
}

.waiting-status {
  margin: 0;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: rgba(147, 197, 253, 0.12);
  border: 1px solid rgba(147, 197, 253, 0.3);
  font-weight: 700;
}

.waiting-status.is-connected {
  background: rgba(110, 231, 183, 0.12);
  border-color: rgba(110, 231, 183, 0.35);
  color: #6ee7b7;
}

.online-room-code {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: 0.18em;
  font-weight: 900;
  color: var(--accent);
  word-break: break-word;
}

:root {
  --bg-1: #060816;
  --bg-2: #160a2e;
  --bg-3: #062234;
  --panel: rgba(12, 18, 44, 0.66);
  --panel-2: rgba(25, 34, 77, 0.72);
  --stroke: rgba(148, 178, 255, 0.28);
  --text: #f6f8ff;
  --muted: #adc0eb;
  --accent: #ffd166;
  --accent-glow: #ffcb47;
  --ok: #21d39d;
  --danger: #ff527b;
  --neon-1: #52f5ff;
  --neon-2: #b86eff;
  --board-col-width: clamp(110px, 9.5vw, 160px);
  --layout-max: 1320px;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Cairo", "Noto Kufi Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: clamp(0.96rem, 0.24vw + 0.9rem, 1.06rem);
  background: linear-gradient(135deg, var(--bg-1), var(--bg-2), var(--bg-3));
  background-size: 220% 220%;
  animation: gradientShift 32s ease-in-out infinite;
  position: relative;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.15' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  z-index: -1;
}

.bg-animated,
.bg-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.bg-animated {
  z-index: -2;
}

.bg-particles::before,
.bg-particles::after {
  content: "";
  position: absolute;
  inset: -20%;
  background-image:
    radial-gradient(circle at 18% 30%, rgba(255, 255, 255, 0.22) 0 1px, transparent 1.5px),
    radial-gradient(circle at 65% 76%, rgba(255, 255, 255, 0.2) 0 1.5px, transparent 2px),
    radial-gradient(circle at 84% 24%, rgba(255, 209, 102, 0.22) 0 1px, transparent 2px),
    radial-gradient(circle at 39% 62%, rgba(82, 245, 255, 0.18) 0 1px, transparent 2px),
    radial-gradient(circle at 74% 45%, rgba(184, 110, 255, 0.16) 0 1px, transparent 2px);
  background-size: 240px 240px, 320px 320px, 260px 260px, 300px 300px, 280px 280px;
  animation: particlesFloat 38s linear infinite;
}

.bg-particles::after {
  opacity: 0.55;
  transform: scale(1.12);
  animation-duration: 52s;
  animation-direction: reverse;
}

.app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  max-width: var(--layout-max);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: clamp(0.8rem, 1vw, 1.2rem);
  padding: clamp(0.7rem, 1.2vw, 1.15rem);
}

.sidebar,
.board-wrap,
.modal-content {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.sidebar {
  padding: clamp(0.75rem, 1vw, 1rem);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.sidebar h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.4rem, 1.1vw + 1.2rem, 1.9rem);
  line-height: 1.2;
  color: var(--accent);
  letter-spacing: 0.4px;
  text-shadow: 0 0 20px rgba(255, 209, 102, 0.3);
}

.error-banner {
  background: rgba(116, 24, 48, 0.8);
  border: 1px solid rgba(255, 135, 164, 0.5);
  color: #ffd9e2;
  border-radius: 10px;
  padding: 0.7rem;
  font-weight: 700;
}

.team-card,
.status-card {
  background: var(--panel-2);
  border: 1px solid rgba(146, 170, 255, 0.45);
  border-radius: 14px;
  padding: 0.8rem;
}

.team-card {
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), 0 0 0 1px rgba(82, 245, 255, 0.1);
}

.team-card::before {
  content: "";
  position: absolute;
  inset: -140% 15% auto;
  height: 300%;
  background: linear-gradient(90deg, transparent, rgba(82, 245, 255, 0.18), transparent);
  transform: rotate(20deg);
  animation: sheenSweep 6s linear infinite;
}

.team-card.active {
  border-color: rgba(255, 209, 102, 0.85);
  box-shadow:
    0 0 0 1px rgba(255, 209, 102, 0.8),
    0 0 18px rgba(255, 209, 102, 0.35),
    0 0 28px rgba(82, 245, 255, 0.2);
}

.team-card.active::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid transparent;
  background: linear-gradient(120deg, rgba(82, 245, 255, 0.3), rgba(184, 110, 255, 0.45), rgba(255, 209, 102, 0.4))
    border-box;
  mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: borderPulse 2.6s ease-in-out infinite;
}

.team-card h2,
.status-card p {
  margin: 0;
}

.score {
  margin: 0.45rem 0 0;
  font-size: clamp(1.5rem, 1.7vw, 2.1rem);
  font-weight: 900;
  color: #fdf4cf;
  text-shadow: 0 0 14px rgba(255, 209, 102, 0.35);
}

.score.score-pop {
  animation: scorePop 360ms ease-out;
}

.primary-btn,
.secondary-btn,
.success-btn,
.danger-btn,
.ghost-btn {
  border: none;
  border-radius: 11px;
  font-weight: 800;
  font-size: clamp(0.92rem, 0.5vw + 0.7rem, 1rem);
  line-height: 1.25;
  padding: 0.72rem 0.95rem;
  min-height: 44px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, opacity 0.18s ease;
  position: relative;
  overflow: hidden;
}

.primary-btn:active,
.secondary-btn:active,
.success-btn:active,
.danger-btn:active,
.ghost-btn:active {
  transform: translateY(1px) scale(0.98);
}

.primary-btn {
  background: linear-gradient(135deg, #ffe07a, #ffc13d);
  color: #2b1800;
  box-shadow: 0 8px 20px rgba(255, 203, 71, 0.35);
}

.secondary-btn {
  background: linear-gradient(135deg, #4d71d1, #3657b4);
  color: #fff;
}

.success-btn {
  background: linear-gradient(135deg, #25e9ad, #18bf89);
  color: #04281a;
}

.danger-btn {
  background: linear-gradient(135deg, #ff6a8c, #ed3f67);
  color: #fff;
}

#otherTeamBtn {
  background: linear-gradient(135deg, #ff9800, #f57c00);
  color: #fff;
}

.ghost-btn {
  background: rgba(86, 109, 183, 0.15);
  color: #d4e2ff;
  border: 1px solid rgba(112, 140, 220, 0.6);
  align-self: flex-start;
}

.primary-btn:hover,
.secondary-btn:hover,
.success-btn:hover,
.danger-btn:hover,
.ghost-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

#otherTeamBtn:hover {
  background: linear-gradient(135deg, #f57c00, #ef6c00);
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.35);
  box-shadow: none;
}

.board-wrap {
  padding: 0.9rem;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable both-edges;
}

.board {
  display: grid;
  grid-template-columns: repeat(6, minmax(var(--board-col-width), 1fr));
  gap: clamp(0.42rem, 0.8vw, 0.6rem);
  grid-auto-rows: minmax(96px, auto);
  min-width: fit-content;
}

.board-cell {
  min-height: 96px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow-wrap: anywhere;
  word-break: break-word;
  border-radius: 12px;
  border: 1px solid rgba(113, 139, 220, 0.5);
  padding: 0.55rem;
}

.category {
  background: linear-gradient(150deg, rgba(54, 88, 170, 0.5), rgba(25, 42, 95, 0.5));
  color: #f0f5ff;
  font-size: clamp(0.9rem, 0.8vw + 0.72rem, 1.05rem);
  font-weight: 900;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tile {
  background: linear-gradient(145deg, rgba(39, 60, 131, 0.5), rgba(13, 22, 57, 0.62));
  color: var(--accent);
  font-size: clamp(1.3rem, 1.2vw + 0.95rem, 1.6rem);
  font-weight: 900;
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 16px rgba(5, 10, 28, 0.4);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease, opacity 0.22s ease;
  position: relative;
}

.tile:hover:not(:disabled) {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px rgba(255, 209, 102, 0.55), 0 0 18px rgba(255, 209, 102, 0.25),
    0 12px 20px rgba(5, 10, 28, 0.45);
}

.tile.tile-pulse {
  animation: tilePulse 360ms ease-out;
}

.tile.used,
.tile:disabled {
  background: linear-gradient(145deg, rgba(18, 27, 57, 0.82), rgba(12, 18, 37, 0.82));
  color: #8691b5;
  filter: saturate(0.15);
  opacity: 0.74;
}

.tile.used:not(.missing)::after {
  content: "✓";
  position: absolute;
  inset-inline-end: 8px;
  inset-block-end: 6px;
  font-size: 0.85rem;
  font-weight: 900;
  color: #b9ffd9;
}

.tile.missing {
  color: #ffb7b7;
  font-size: 0.95rem;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 20, 0.66);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.24s ease;
  z-index: 5;
}

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

.modal.is-closing {
  opacity: 0;
}

.modal.hidden,
.hidden {
  display: none !important;
}

.modal-content {
  width: min(920px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  transform: scale(0.92) translateY(10px);
  opacity: 0;
}

.modal.is-open .modal-content {
  animation: modalIn 280ms ease-out forwards;
}

.modal.is-closing .modal-content {
  animation: modalOut 220ms ease-in forwards;
}

#questionText {
  margin: 0;
  line-height: 1.9;
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  text-align: center;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.question-timer {
  align-self: flex-end;
  padding: 0.28rem 0.6rem;
  border-radius: 10px;
  border: 1px solid rgba(112, 140, 220, 0.58);
  background: rgba(20, 36, 79, 0.58);
  font-weight: 900;
  letter-spacing: 0.5px;
}

.question-timer.timer-red {
  color: var(--danger);
}

.question-media {
  display: grid;
  gap: 0.6rem;
}

#questionImage {
  max-width: min(100%, 760px);
  width: 100%;
  max-height: min(50vh, 420px);
  object-fit: contain;
  margin-inline: auto;
  border-radius: 16px;
  border: 1px solid rgba(148, 178, 255, 0.45);
  box-shadow: 0 14px 34px rgba(1, 7, 24, 0.5);
}

#questionAudio {
  width: 100%;
  max-width: min(100%, 760px);
  margin-inline: auto;
}

.answer {
  margin: 0;
  background: rgba(20, 36, 79, 0.72);
  border: 1px solid rgba(93, 128, 220, 0.62);
  border-radius: 12px;
  padding: 0.8rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.answer.reveal-anim {
  animation: answerSlideIn 320ms ease-out;
}

.choices-box {
  background: rgba(20, 36, 79, 0.72);
  border: 1px solid rgba(93, 128, 220, 0.62);
  border-radius: 12px;
  padding: 0.75rem;
}

.choices-box h3 {
  margin: 0 0 0.55rem;
}

.choices-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.choice-item {
  background: rgba(35, 58, 123, 0.75);
  border: 1px solid rgba(96, 134, 234, 0.8);
  border-radius: 8px;
  padding: 0.55rem;
}


.hint-box {
  background: rgba(20, 36, 79, 0.72);
  border: 1px solid rgba(93, 128, 220, 0.62);
  border-radius: 12px;
  padding: 0.75rem;
}

.hint-box h3 {
  margin: 0 0 0.55rem;
}

.hint-text {
  margin: 0;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.category-modal-content {
  width: min(640px, 100%);
}

.category-team-inputs {
  display: grid;
  gap: 0.2rem;
  margin-bottom: 0.6rem;
}

.category-counter {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.category-list {
  display: grid;
  gap: 0.5rem;
  max-height: 50vh;
  overflow-y: auto;
  padding-inline-end: 0.2rem;
}

.category-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(20, 36, 79, 0.72);
  border: 1px solid rgba(93, 128, 220, 0.62);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
}

.category-option input {
  accent-color: var(--accent);
}


.team-name-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.83rem;
  color: var(--muted);
}

.team-name-input {
  width: 100%;
  border: 1px solid rgba(112, 140, 220, 0.6);
  background: rgba(12, 20, 48, 0.62);
  color: var(--text);
  border-radius: 9px;
  padding: 0.45rem 0.6rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.team-name-input:focus {
  outline: none;
  border-color: rgba(255, 209, 102, 0.7);
  box-shadow: 0 0 0 2px rgba(255, 209, 102, 0.2);
}

.score-adjustments {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.55rem;
}

.adjust-btn {
  flex: 1;
  font-size: 0.84rem;
  padding: 0.52rem 0.5rem;
  min-height: 44px;
}

.click-pop {
  animation: clickPop 240ms ease-out;
}

.podium-content {
  width: min(760px, 100%);
  text-align: center;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.podium-subtitle {
  margin: 0;
  color: var(--muted);
}

.podium-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 1rem;
  margin-top: 0.5rem;
}

.podium-column {
  background: rgba(20, 36, 79, 0.72);
  border: 1px solid rgba(93, 128, 220, 0.62);
  border-radius: 14px;
  padding: 0.75rem;
  display: grid;
  gap: 0.35rem;
}

.podium-label {
  margin: 0;
  font-weight: 900;
}

.podium-team-name,
.podium-score {
  margin: 0;
  font-weight: 800;
}

.podium-score {
  color: #fdf4cf;
}

.podium-step {
  border-radius: 10px;
  margin-top: 0.4rem;
}

.podium-column.winner .podium-step {
  height: 130px;
  background: linear-gradient(180deg, #ffd166, #d29a1e);
}

.podium-column.loser .podium-step {
  height: 88px;
  background: linear-gradient(180deg, #8fa8ff, #5f79d8);
}

.podium-column.tie .podium-step {
  height: 108px;
  background: linear-gradient(180deg, #7cc9ff, #5f79d8);
}

@keyframes clickPop {
  0% { transform: scale(1); }
  50% { transform: scale(0.92); }
  100% { transform: scale(1); }
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes particlesFloat {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(2.4%, -3.4%, 0);
  }
}

@keyframes tilePulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes modalIn {
  from {
    transform: scale(0.92) translateY(10px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

@keyframes modalOut {
  from {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
  to {
    transform: scale(0.95) translateY(8px);
    opacity: 0;
  }
}

@keyframes answerSlideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scorePop {
  0% {
    transform: scale(0.85);
  }
  60% {
    transform: scale(1.14);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes borderPulse {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}

@keyframes sheenSweep {
  from {
    transform: rotate(20deg) translateX(-45%);
  }
  to {
    transform: rotate(20deg) translateX(75%);
  }
}

@media (max-width: 900px) {
  .app {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  main {
    min-width: 0;
  }

  .sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    align-items: start;
  }

  .sidebar h1,
  .error-banner,
  .status-card,
  #newGameBtn {
    grid-column: 1 / -1;
  }

  .team-card {
    padding: 0.68rem;
  }

  .score {
    margin-top: 0.25rem;
  }

  .status-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.35rem;
    align-items: center;
    padding: 0.65rem 0.75rem;
  }

  .status-card p {
    font-size: clamp(0.9rem, 1.8vw, 1rem);
  }

  .board-wrap {
    padding: 0.7rem;
  }

  .board {
    --board-col-width: clamp(130px, 31vw, 160px);
    grid-auto-rows: minmax(78px, auto);
  }

  .board-cell {
    min-height: 78px;
    padding: 0.45rem;
  }

  .category {
    line-height: 1.25;
  }

  .modal-content {
    padding: 0.9rem;
  }

  .modal-actions {
    position: sticky;
    bottom: 0;
    background: linear-gradient(to top, rgba(12, 18, 44, 0.95), rgba(12, 18, 44, 0.78));
    padding-top: 0.4rem;
  }
}

@media (max-width: 768px) {
  .app {
    padding: 0.55rem;
    gap: 0.7rem;
  }

  .sidebar {
    gap: 0.5rem;
  }

  .team-name-input {
    min-height: 40px;
  }

  .modal {
    padding: 0.55rem;
  }

  .modal-actions {
    flex-direction: column;
  }

  .modal-actions > button {
    width: 100%;
  }

  .choices-list,
  .podium-board {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  body {
    background-size: cover;
  }
}
