/* ===== TOKENS ===== */
:root {
  --bg: #0d0d1a;
  --bg2: #13132b;
  --card: #1a1a35;
  --card2: #22224a;
  --blue: #3b82f6;
  --red: #ef4444;
  --gold: #f59e0b;
  --green: #22c55e;
  --purple: #7c3aed;
  --text: #f0f0ff;
  --muted: #8888aa;
  --radius: 14px;
  --shadow: 0 8px 32px rgba(0, 0, 0, .45);
  --trans: .3s cubic-bezier(.4, 0, .2, 1);
}

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

html,
body {
  height: 100%;
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow: hidden
}

/* ===== SCREENS ===== */
.screen {
  position: fixed;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
  opacity: 0;
  transition: opacity var(--trans)
}

.screen.active {
  display: flex;
  opacity: 1
}

.screen.fade-in {
  animation: fadeIn .4s forwards
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(16px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

/* ===== BG CIRCLES ===== */
.bg-circles {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0
}

.bg-circle {
  position: absolute;
  border-radius: 50%;
  opacity: .12
}

.c1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--purple), transparent);
  top: -150px;
  left: -150px
}

.c2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--blue), transparent);
  bottom: -100px;
  right: -100px
}

.c3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--gold), transparent);
  top: 40%;
  left: 60%
}

/* ===== WELCOME ===== */
#screen-welcome {
  background: linear-gradient(135deg, #0d0d1a 0%, #1a0a2e 50%, #0a1a2e 100%)
}

.welcome-content {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  max-width: 600px;
  width: 100%
}

.school-badge {
  font-size: 3.5rem;
  animation: float 3s ease-in-out infinite
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-10px)
  }
}

.school-name {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.3rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  background: linear-gradient(135deg, #fff, var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center
}

.welcome-sub {
  color: var(--muted);
  font-size: 1rem
}

.game-title-block {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%
}

.game-title-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold));
  border-radius: 2px
}

.game-title-block .game-title-line:last-child {
  background: linear-gradient(90deg, var(--gold), transparent)
}

.game-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--gold);
  text-shadow: 0 0 30px rgba(245, 158, 11, .4);
  white-space: nowrap
}

.corner-btn {
  position: fixed;
  z-index: 100;
  padding: .55rem 1rem;
  border: 1px solid rgba(255, 255, 255, .15);
  background: rgba(255, 255, 255, .07);
  color: var(--text);
  border-radius: 50px;
  font-size: .85rem;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: var(--trans)
}

.corner-btn:hover {
  background: rgba(255, 255, 255, .15);
  transform: scale(1.05)
}

.top-left {
  top: 1rem;
  left: 1rem
}

.top-right {
  top: 1rem;
  right: 1rem
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 2rem;
  background: linear-gradient(135deg, var(--gold), #e08900);
  color: #000;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(245, 158, 11, .4);
  transition: var(--trans)
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(245, 158, 11, .55)
}

.btn-primary:disabled {
  opacity: .4;
  cursor: not-allowed;
  transform: none
}

.btn-xl {
  font-size: 1.15rem;
  padding: .9rem 2.5rem
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .2);
  color: var(--muted);
  padding: .6rem 1.4rem;
  border-radius: 50px;
  font-size: .9rem;
  cursor: pointer;
  transition: var(--trans)
}

.btn-ghost:hover {
  border-color: var(--text);
  color: var(--text)
}

.pulse {
  animation: pulse 2.5s ease-in-out infinite
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 4px 20px rgba(245, 158, 11, .4)
  }

  50% {
    box-shadow: 0 4px 36px rgba(245, 158, 11, .75)
  }
}

/* ===== SETUP ===== */
#screen-setup {
  background: var(--bg)
}

.setup-container {
  z-index: 1;
  width: 100%;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem
}

.setup-title {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  color: var(--gold)
}

.teams-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%
}

.team-card {
  flex: 1;
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  border: 2px solid transparent;
  transition: var(--trans)
}

.blue-team {
  border-color: rgba(59, 130, 246, .3)
}

.red-team {
  border-color: rgba(239, 68, 68, .3)
}

.team-card-icon {
  font-size: 2.5rem
}

.team-card label {
  font-size: .85rem;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em
}

.name-input {
  width: 100%;
  padding: .65rem 1rem;
  background: var(--bg2);
  border: 1.5px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  color: var(--text);
  font-size: 1rem;
  font-family: 'Nunito', sans-serif;
  text-align: center;
  outline: none;
  transition: var(--trans)
}

.name-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .15)
}

.vs-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--card2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gold);
  flex-shrink: 0
}

.starter-box {
  width: 100%;
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.2rem
}

.starter-title {
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--muted)
}

.starter-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap
}

.starter-btn {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .75rem 1.5rem;
  border-radius: 50px;
  border: 2px solid transparent;
  background: var(--bg2);
  color: var(--text);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--trans)
}

.starter-btn.blue-btn {
  border-color: rgba(59, 130, 246, .3)
}

.starter-btn.blue-btn:hover,
.starter-btn.blue-btn.selected {
  background: rgba(59, 130, 246, .2);
  border-color: var(--blue);
  box-shadow: 0 0 16px rgba(59, 130, 246, .3)
}

.starter-btn.red-btn {
  border-color: rgba(239, 68, 68, .3)
}

.starter-btn.red-btn:hover,
.starter-btn.red-btn.selected {
  background: rgba(239, 68, 68, .2);
  border-color: var(--red);
  box-shadow: 0 0 16px rgba(239, 68, 68, .3)
}

/* ===== GAME HEADER ===== */
#screen-game {
  justify-content: flex-start;
  padding: 0;
  overflow-y: auto
}

.game-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  background: var(--card);
  border-bottom: 2px solid rgba(255, 255, 255, .07);
  padding: .75rem 1.5rem;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 10
}

.team-block {
  display: flex;
  flex-direction: column;
  gap: .2rem
}

.team-block-right {
  align-items: flex-end
}

.team-block-name {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted)
}

.team-block-score {
  font-family: 'Oswald', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  transition: color .3s
}

.team-block.active .team-block-name {
  color: var(--gold)
}

.team-block.active .team-block-score {
  color: var(--gold);
  text-shadow: 0 0 20px rgba(245, 158, 11, .5)
}

.center-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .1rem;
  position: relative
}

.acc-label {
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--muted)
}

.acc-value {
  font-family: 'Oswald', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 24px rgba(255, 255, 255, .3);
  transition: all .3s
}

.x2-badge {
  background: linear-gradient(135deg, var(--red), #c00);
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  padding: .15rem .5rem;
  border-radius: 6px;
  margin-top: .1rem
}

.hidden {
  display: none !important
}

/* ===== ACTIVE BANNER ===== */
.active-banner {
  width: 100%;
  text-align: center;
  padding: .4rem;
  font-weight: 700;
  font-size: .9rem;
  background: rgba(245, 158, 11, .1);
  border-bottom: 1px solid rgba(245, 158, 11, .2);
  color: var(--gold);
  transition: var(--trans)
}

/* ===== QUESTION ===== */
.question-row {
  width: 100%;
  max-width: 900px;
  margin: .75rem auto 0;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  gap: 1rem
}

.question-box {
  flex: 1;
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  box-shadow: var(--shadow)
}

.question-num {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: .4rem
}

.question-text {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.45rem);
  font-weight: 600;
  line-height: 1.4;
  color: #fff
}

/* ===== TIMER ===== */
.timer-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0
}

.timer-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg)
}

.timer-track {
  fill: none;
  stroke: rgba(255, 255, 255, .08);
  stroke-width: 7
}

.timer-ring {
  fill: none;
  stroke: var(--green);
  stroke-width: 7;
  stroke-linecap: round;
  transition: stroke-dashoffset .9s linear, stroke .3s
}

.timer-ring.warn {
  stroke: var(--gold)
}

.timer-ring.danger {
  stroke: var(--red)
}

.timer-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  font-weight: 700
}

@keyframes shake {

  0%,
  100% {
    transform: none
  }

  20%,
  60% {
    transform: translateX(-6px)
  }

  40%,
  80% {
    transform: translateX(6px)
  }
}

.shaking {
  animation: shake .4s ease
}

@keyframes flashRed {

  0%,
  100% {
    background: transparent
  }

  50% {
    background: rgba(239, 68, 68, .18)
  }
}

.flash-danger {
  animation: flashRed .5s ease
}

/* ===== ANSWER CARDS ===== */
.answers-grid {
  width: 100%;
  max-width: 900px;
  margin: .75rem auto 0;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .7rem
}

@media(max-width:600px) {
  .answers-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .answers-grid .answer-card:last-child {
    grid-column: 1/-1
  }
}

.answer-card {
  perspective: 600px;
  height: 90px;
  cursor: default
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(.4, 0, .2, 1)
}

.answer-card.revealed .card-inner {
  transform: rotateY(180deg)
}

.card-front,
.card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: .25rem;
  padding: .5rem
}

.card-front {
  background: linear-gradient(135deg, var(--card2), var(--card));
  border: 1.5px solid rgba(255, 255, 255, .1);
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, .2)
}

.card-back {
  background: linear-gradient(135deg, #1a3a1a, #142e14);
  border: 1.5px solid rgba(34, 197, 94, .3);
  transform: rotateY(180deg)
}

.card-back .c-text {
  font-weight: 800;
  font-size: .85rem;
  text-align: center;
  color: #fff;
  line-height: 1.2
}

.card-back .c-pts {
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green)
}

/* ===== WRONG SLOTS ===== */
.wrong-row {
  display: flex;
  gap: .75rem;
  justify-content: center;
  margin: .6rem 0;
  padding: 0 1rem
}

.wrong-slot {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 2px solid rgba(239, 68, 68, .2);
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: transparent;
  transition: var(--trans);
  font-weight: 900
}

.wrong-slot.lit {
  color: var(--red);
  background: rgba(239, 68, 68, .15);
  border-color: var(--red);
  box-shadow: 0 0 16px rgba(239, 68, 68, .35)
}

@keyframes wrongPop {
  0% {
    transform: scale(0.3) rotate(-30deg);
    opacity: 0
  }

  60% {
    transform: scale(1.3) rotate(5deg)
  }

  100% {
    transform: scale(1) rotate(0);
    opacity: 1
  }
}

.wrong-slot.lit {
  animation: wrongPop .4s ease forwards
}

/* ===== CONTROL PANEL ===== */
.control-panel {
  width: 100%;
  max-width: 900px;
  margin: .6rem auto 1rem;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: .6rem
}

.input-row {
  display: flex;
  gap: .5rem
}

.answer-input {
  flex: 1;
  padding: .75rem 1rem;
  background: var(--card2);
  border: 1.5px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  color: var(--text);
  font-size: 1rem;
  font-family: 'Nunito', sans-serif;
  outline: none;
  transition: var(--trans)
}

.answer-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .15)
}

.btn-submit {
  padding: .75rem 1.2rem;
  background: linear-gradient(135deg, var(--green), #16a34a);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 800;
  font-size: .95rem;
  cursor: pointer;
  transition: var(--trans);
  white-space: nowrap
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(34, 197, 94, .4)
}

.btn-wrong-action {
  padding: .75rem 1.2rem;
  background: linear-gradient(135deg, var(--red), #b91c1c);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 800;
  font-size: .95rem;
  cursor: pointer;
  transition: var(--trans);
  white-space: nowrap
}

.btn-wrong-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(239, 68, 68, .4)
}

.action-row {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap
}

.btn-x2 {
  padding: .6rem 1.2rem;
  background: var(--card2);
  border: 1.5px solid rgba(239, 68, 68, .3);
  color: var(--text);
  border-radius: 50px;
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
  transition: var(--trans)
}

.btn-x2.active {
  background: rgba(239, 68, 68, .2);
  border-color: var(--red);
  color: var(--red);
  box-shadow: 0 0 16px rgba(239, 68, 68, .3)
}

.btn-x2:hover {
  border-color: var(--red)
}

.btn-show-rem {
  padding: .6rem 1.2rem;
  background: var(--card2);
  border: 1.5px solid rgba(59, 130, 246, .3);
  color: var(--blue);
  border-radius: 50px;
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
  transition: var(--trans)
}

.btn-show-rem:hover {
  background: rgba(59, 130, 246, .15)
}

.btn-next-q {
  padding: .6rem 1.4rem;
  background: linear-gradient(135deg, var(--purple), #5b21b6);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-weight: 800;
  font-size: .9rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(124, 58, 237, .3);
  transition: var(--trans)
}

.btn-next-q:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(124, 58, 237, .45)
}

.btn-end-game-manual {
  padding: .6rem 1.4rem;
  background: linear-gradient(135deg, var(--red), #b91c1c);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-weight: 800;
  font-size: .9rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(239, 68, 68, .3);
  transition: var(--trans);
  white-space: nowrap;
}

.btn-end-game-manual:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(239, 68, 68, .45);
}


/* ===== MODALS ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .7);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn .25s ease
}

.modal-box {
  background: var(--card);
  border-radius: 20px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .6);
  border: 1px solid rgba(255, 255, 255, .1);
  overflow: hidden
}

.modal-wide {
  max-width: 600px
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, .08)
}

.modal-head h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem;
  font-weight: 600
}

.close-btn {
  background: rgba(255, 255, 255, .08);
  border: none;
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--trans)
}

.close-btn:hover {
  background: rgba(255, 255, 255, .18)
}

.modal-body {
  padding: 1.2rem 1.5rem;
  max-height: 65vh;
  overflow-y: auto
}

.modal-foot {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  justify-content: flex-end
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .6rem 0;
  gap: 1rem
}

.setting-label {
  font-weight: 700;
  color: var(--text)
}

.toggle-switch {
  position: relative;
  width: 52px;
  height: 28px;
  flex-shrink: 0
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--card2);
  border-radius: 28px;
  cursor: pointer;
  transition: var(--trans)
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 4px;
  top: 4px;
  background: #fff;
  border-radius: 50%;
  transition: var(--trans)
}

input:checked+.toggle-slider {
  background: var(--gold)
}

input:checked+.toggle-slider::before {
  transform: translateX(24px)
}

.num-input {
  padding: .5rem .75rem;
  background: var(--bg2);
  border: 1.5px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  color: var(--text);
  font-size: 1rem;
  width: 90px;
  text-align: center;
  outline: none
}

.num-input:focus {
  border-color: var(--gold)
}

.rules-body h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  margin-bottom: .8rem;
  color: var(--gold)
}

.rule-section {
  margin-bottom: 1rem
}

.rule-section h4 {
  font-size: .9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--blue);
  margin-bottom: .4rem
}

.rule-section ol,
.rule-section ul {
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .3rem
}

.rule-section li {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.5
}

.rule-section strong {
  color: var(--text)
}

.pick-prompt {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.05rem;
  font-weight: 700
}

/* ===== FULL OVERLAYS ===== */
.full-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .85);
  backdrop-filter: blur(8px)
}

.timesup-box {
  text-align: center;
  animation: zoomIn .35s ease
}

@keyframes zoomIn {
  from {
    transform: scale(.4);
    opacity: 0
  }

  to {
    transform: scale(1);
    opacity: 1
  }
}

.timesup-icon {
  font-size: 5rem;
  margin-bottom: .5rem
}

.timesup-text {
  font-family: 'Oswald', sans-serif;
  font-size: 4rem;
  font-weight: 700;
  color: var(--red);
  text-shadow: 0 0 40px rgba(239, 68, 68, .7)
}

.steal-ov {
  background: rgba(0, 0, 30, .9)
}

.steal-box {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  animation: zoomIn .4s ease
}

.steal-icon {
  font-size: 5rem
}

.steal-title {
  font-family: 'Oswald', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  text-shadow: 0 0 30px rgba(245, 158, 11, .6)
}

.steal-team {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--blue)
}

.steal-sub {
  color: var(--muted);
  font-size: 1.1rem
}

/* ===== GAME OVER ===== */
#screen-gameover {
  background: linear-gradient(135deg, #0d0d1a, #1a0a2e)
}

.gameover-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  z-index: 1;
  max-width: 700px;
  width: 100%
}

.trophy {
  font-size: 5rem;
  animation: float 3s ease-in-out infinite
}

.gameover-title {
  font-family: 'Oswald', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold)
}

.final-scores-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%
}

.final-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  min-width: 160px;
  border: 2px solid transparent;
  transition: var(--trans)
}

.final-card.winner-card {
  border-color: var(--gold);
  box-shadow: 0 0 30px rgba(245, 158, 11, .3)
}

.final-icon {
  font-size: 2rem
}

.final-name {
  font-weight: 800;
  font-size: 1.1rem
}

.final-score {
  font-family: 'Oswald', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--gold)
}

.final-label {
  color: var(--muted);
  font-size: .85rem
}

.final-vs {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--muted)
}

.winner-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--green);
  text-shadow: 0 0 20px rgba(34, 197, 94, .4)
}

/* ===== RESPONSIVE ===== */
@media(max-width:600px) {
  .game-header {
    padding: .5rem .75rem;
    gap: .5rem
  }

  .team-block-score {
    font-size: 1.6rem
  }

  .acc-value {
    font-size: 2rem
  }

  .question-row {
    padding: 0 .5rem
  }

  .answers-grid {
    padding: 0 .5rem
  }

  .control-panel {
    padding: 0 .5rem
  }

  .teams-row {
    flex-direction: column
  }

  .vs-circle {
    display: none
  }

  .game-title {
    font-size: 1.4rem
  }

  .school-name {
    font-size: 1.1rem
  }

  .action-row {
    flex-direction: column
  }

  .btn-x2,
  .btn-show-rem,
  .btn-next-q,
  .btn-end-game-manual {
    width: 100%;
    justify-content: center;
    border-radius: 12px
  }
}

/* ===== ROUND SUMMARY OVERLAY ===== */
.round-summary-box {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  background: var(--card);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  max-width: 520px;
  width: 90%;
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 32px 80px rgba(0, 0, 0, .7);
  animation: zoomIn .4s ease;
}

.rs-trophy {
  font-size: 3.5rem;
  animation: float 3s ease-in-out infinite
}

.round-summary-title {
  font-family: 'Oswald', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold)
}

.round-winner-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green);
  background: rgba(34, 197, 94, .1);
  padding: .5rem 1.2rem;
  border-radius: 50px;
  border: 1px solid rgba(34, 197, 94, .25)
}

.round-scores {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%
}

.round-score-card {
  flex: 1;
  min-width: 130px;
  background: var(--bg2);
  border-radius: 16px;
  padding: 1.2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  border: 2px solid transparent;
  transition: var(--trans);
}

.round-score-card.leading {
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(245, 158, 11, .3)
}

.rs-icon {
  font-size: 1.8rem
}

.rs-name {
  font-weight: 800;
  font-size: .95rem;
  color: var(--text)
}

.rs-score {
  font-family: 'Oswald', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1
}

.rs-label {
  font-size: .75rem;
  color: var(--muted)
}

.rs-divider {
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  color: var(--muted);
  font-weight: 700
}

/* ===== CLICKABLE CARD (tur bitti sonrası) ===== */
.answer-card.clickable-reveal {
  cursor: pointer
}

.answer-card.clickable-reveal .card-front:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, .2), rgba(245, 158, 11, .08));
  border-color: rgba(245, 158, 11, .5)
}

.answer-card.clickable-reveal .card-front {
  transition: background .2s, border-color .2s
}

/* ===== X2 HEADER BUTTON ===== */
.btn-x2-header {
  margin-top: .3rem;
  padding: .3rem .9rem;
  background: linear-gradient(135deg, rgba(239, 68, 68, .15), rgba(239, 68, 68, .05));
  border: 1.5px solid rgba(239, 68, 68, .4);
  color: var(--red);
  border-radius: 50px;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
  transition: var(--trans);
  letter-spacing: .05em;
}

.btn-x2-header:hover {
  background: rgba(239, 68, 68, .25);
  border-color: var(--red);
  box-shadow: 0 0 12px rgba(239, 68, 68, .35)
}

.btn-x2-header.active {
  background: linear-gradient(135deg, var(--red), #b91c1c);
  color: #fff;
  border-color: var(--red);
  box-shadow: 0 0 20px rgba(239, 68, 68, .5);
  animation: pulse-red 1.5s ease-in-out infinite;
}

@keyframes pulse-red {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(239, 68, 68, .5)
  }

  50% {
    box-shadow: 0 0 32px rgba(239, 68, 68, .8)
  }
}

/* ===== SITE FOOTER ===== */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  text-align: center;
  padding: .3rem 1rem;
  font-size: .7rem;
  color: rgba(136, 136, 170, .55);
  pointer-events: none;
  letter-spacing: .02em;
}

.footer-link {
  color: rgba(245, 158, 11, .6);
  text-decoration: none;
  font-weight: 700;
  pointer-events: all;
  transition: color .2s;
}

.footer-link:hover {
  color: var(--gold);
}