:root {
  /* Bright Golden-Yellow Dominant Palette with Warm Orange Accents */
  --prussian-deep: #facc15;
  --prussian-dark: #fde047;
  --prussian-mid: #ea580c;
  --prussian-steel: #f97316;
  --seafoam-blue: #d97706;
  --seafoam-light: #9a3412;

  /* Warm Dark Text & Light Cream Surfaces */
  --parchment-light: #431407;
  --parchment-mid: #7c2d12;
  --parchment-dark: #9a3412;
  --ink-dark: #3b1103;

  /* Warm Gold, Amber & Orange Accents */
  --brass-bright: #ea580c;
  --brass-mid: #d97706;
  --brass-dark: #b45309;
  --brass-deep: #7c2d12;
  --copper-mid: #ea580c;
  --crimson-danger: #dc2626;

  /* Fonts */
  --font-title: 'Cinzel Decorative', 'Cinzel', Georgia, serif;
  --font-heading: 'Cinzel', Georgia, serif;
  --font-word: 'Playfair Display', Georgia, serif;
  --font-body: 'Crimson Pro', Georgia, serif;

  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

button,
input,
select,
textarea,
label {
  touch-action: manipulation;
}

html {
  overflow-x: hidden;
}

body {
  background-color: #fde047;
  color: #431407;
  font-family: var(--font-body);
  font-size: 18px;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
}

input,
textarea {
  user-select: text;
  -webkit-user-select: text;
}

/* ==========================================
   ARTISTIC BACKGROUND (BRIGHT GOLDEN YELLOW)
   ========================================== */
.art-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-scene-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.4s ease;
}

.vignette-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.25) 35%, rgba(245, 158, 11, 0.22) 100%);
  transition: background 0.4s ease;
}

body.urgency-high .vignette-overlay {
  background:
    radial-gradient(circle at 50% 45%, rgba(251, 146, 60, 0.25) 20%, rgba(234, 88, 12, 0.45) 100%);
}

body.urgency-critical .vignette-overlay {
  background:
    radial-gradient(circle at 50% 45%, rgba(239, 68, 68, 0.35) 25%, rgba(185, 28, 28, 0.65) 100%);
  animation: criticalPulseBg 0.35s infinite alternate;
}

@keyframes criticalPulseBg {
  from { opacity: 0.75; }
  to { opacity: 1; }
}

/* Screen shake when bomb explodes */
@keyframes screenShake {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  12% { transform: translate(-11px, -8px) rotate(-1.5deg); }
  25% { transform: translate(11px, 7px) rotate(1.5deg); }
  38% { transform: translate(-9px, 8px) rotate(-1deg); }
  50% { transform: translate(9px, -6px) rotate(1deg); }
  65% { transform: translate(-6px, 4px) rotate(-0.5deg); }
  80% { transform: translate(5px, -3px) rotate(0.3deg); }
}

body.shake-explosion {
  animation: screenShake 0.7s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* ==========================================
   TOP BAR / HEADER (LIGHT GOLDEN YELLOW)
   ========================================== */
.top-bar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px;
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
  border-bottom: 2px solid rgba(217, 119, 6, 0.65);
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.95) 0%, rgba(254, 240, 138, 0.92) 100%);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px rgba(180, 83, 9, 0.15);
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.08s ease;
}

.logo-group:active {
  transform: translateY(2px) scale(0.97);
}

.logo-gear-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fef08a, #fbbf24 58%, #d97706);
  border: 2px solid #ea580c;
  box-shadow: 0 2px 8px rgba(180, 83, 9, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.logo-titles {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.logo-group h1 {
  font-family: var(--font-title);
  font-size: 1.48rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, #9a3412 0%, #c2410c 50%, #7c2d12 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.85));
  line-height: 1.08;
}

.logo-tagline {
  font-family: var(--font-body);
  font-size: 0.96rem;
  font-weight: 700;
  color: #9a3412;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  background: linear-gradient(180deg, #fffbeb 0%, #fde047 100%);
  color: #7c2d12;
  border: 1.5px solid #d97706;
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  min-height: 38px;
  font-size: 0.92rem;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 3px 8px rgba(180, 83, 9, 0.22);
  transition: transform 0.08s ease, filter 0.15s ease, border-color 0.15s ease;
}

.icon-btn.sound-btn,
.icon-btn.fullscreen-btn {
  padding: 7px 11px;
}

.icon-btn:hover {
  filter: brightness(1.05);
  border-color: #ea580c;
}

.icon-btn:active {
  transform: translateY(2px) scale(0.96);
}

/* ==========================================
   MAIN CONTAINER & SCOREBOARD
   ========================================== */
.game-container {
  position: relative;
  z-index: 5;
  flex: 1;
  max-width: 840px;
  width: 100%;
  margin: 0 auto;
  padding: 12px 18px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

:fullscreen .game-panel,
:-webkit-full-screen .game-panel {
  flex: 0 1 auto;
}

.scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
}

.team-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.96) 0%, rgba(254, 240, 138, 0.94) 100%);
  border: 2px solid #d97706;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 6px 16px rgba(180, 83, 9, 0.22);
  transition: transform 0.25s ease;
}

.team-card.team-1 {
  border-color: #f59e0b;
}

.team-card.team-2 {
  border-color: #ea580c;
}

.brass-corner {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fbbf24, #b45309);
}

.brass-corner.tl { top: 5px; left: 6px; }
.brass-corner.tr { top: 5px; right: 6px; }
.brass-corner.bl { bottom: 5px; left: 6px; }
.brass-corner.br { bottom: 5px; right: 6px; }

.team-card.score-bump {
  transform: scale(1.06);
}

.team-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
}

.team-name-input {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #7c2d12;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  width: 100%;
  max-width: 170px;
  padding: 2px 6px;
  transition: border-color 0.2s, background 0.2s;
}

.team-name-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.7);
  border-color: #ea580c;
}

.edit-hint {
  font-size: 0.8rem;
  color: #b45309;
  opacity: 0.85;
  pointer-events: none;
}

.score-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.score-value {
  font-family: var(--font-word);
  font-size: 2.1rem;
  font-weight: 900;
  min-width: 40px;
  text-align: center;
  line-height: 1;
  color: #9a3412;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}

.team-1 .score-value {
  color: #b45309;
}

.team-2 .score-value {
  color: #c2410c;
}

.score-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid #c2410c;
  background: radial-gradient(circle at 30% 30%, #fb923c, #ea580c);
  color: #fffbeb;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(180, 83, 9, 0.35);
  transition: filter 0.15s, transform 0.1s;
}

.score-btn:hover {
  filter: brightness(1.1);
  border-color: #9a3412;
}

.score-btn:active {
  transform: scale(0.9);
}

.vs-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fef08a, #f59e0b 65%, #c2410c);
  border: 2px solid #ea580c;
  box-shadow: 0 4px 12px rgba(180, 83, 9, 0.35);
}

.vs-badge strong {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: #431407;
}

/* ==========================================
   GAME PANELS (BRIGHT GOLDEN YELLOW FRAMES)
   ========================================== */
.game-panel {
  display: none;
  position: relative;
  flex-direction: column;
  flex: 1;
  background:
    linear-gradient(180deg, rgba(255, 251, 235, 0.96) 0%, rgba(254, 240, 138, 0.93) 55%, rgba(253, 224, 71, 0.90) 100%);
  border: 2.5px solid #d97706;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow:
    inset 0 0 24px rgba(245, 158, 11, 0.18),
    inset 0 0 0 2px rgba(255, 255, 255, 0.65),
    0 14px 36px -10px rgba(180, 83, 9, 0.35);
  justify-content: space-between;
  gap: 18px;
  backdrop-filter: blur(8px);
}

.game-panel.active {
  display: flex;
}

/* Setup Screen */
.hero-bomb {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero-steampunk-emblem {
  width: 240px;
  height: 240px;
  margin-bottom: 2px;
}

.emblem-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.setup-heading {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  color: #9a3412;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.subtitle {
  color: #7c2d12;
  font-size: 1.08rem;
  line-height: 1.45;
  max-width: 560px;
  margin: 0 auto;
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 14px;
}

.setting-box {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(254, 249, 195, 0.92) 100%);
  border: 1.5px solid #f59e0b;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 3px 10px rgba(180, 83, 9, 0.12);
}

.setting-box label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #9a3412;
}

.custom-select {
  background: #fffbeb;
  color: #431407;
  border: 1.5px solid #d97706;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
}

.custom-select:focus {
  outline: none;
  border-color: #ea580c;
}

/* 4 Timer Buttons under Urværkets tid */
.timer-choice-group {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.timer-choice-btn {
  background: linear-gradient(180deg, #fffbeb 0%, #fef08a 100%);
  color: #7c2d12;
  border: 1.5px solid #f59e0b;
  border-radius: 8px;
  padding: 10px 6px;
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 2px 6px rgba(180, 83, 9, 0.18);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.08s ease;
}

.timer-choice-btn:hover {
  border-color: #ea580c;
  color: #431407;
}

.timer-choice-btn:active {
  transform: translateY(2px) scale(0.96);
}

.timer-choice-btn.active {
  background: linear-gradient(180deg, #fb923c 0%, #ea580c 55%, #c2410c 100%);
  color: #fffbeb;
  border-color: #9a3412;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.45),
    0 3px 10px rgba(194, 65, 12, 0.4);
}

/* Primary Warm Orange CTA Button */
.primary-cta-btn {
  background: linear-gradient(180deg, #fb923c 0%, #ea580c 52%, #c2410c 100%);
  color: #fffbeb;
  border: 2px solid #9a3412;
  border-radius: var(--radius-md);
  padding: 16px 24px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.45),
    0 8px 20px -4px rgba(194, 65, 12, 0.45);
  transition: transform 0.08s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.primary-cta-btn:hover {
  filter: brightness(1.06);
}

.primary-cta-btn:active {
  transform: translateY(3px) scale(0.98);
}

/* ==========================================
   ACTIVE PLAY SCREEN & STEAMPUNK BOMB
   ========================================== */
.active-round-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 251, 235, 0.92);
  padding: 9px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid #f59e0b;
}

.bomb-status {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bomb-icon-wrapper {
  position: relative;
  font-size: 1.8rem;
  line-height: 1;
  transition: transform 0.1s ease;
}

.bomb-icon-wrapper.beep-pulse {
  transform: scale(1.25) rotate(20deg);
}

.spark-character {
  position: absolute;
  top: -5px;
  right: -7px;
  font-size: 1rem;
}

.tempo-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 20px;
}

.tempo-bars span {
  width: 6px;
  background: rgba(180, 83, 9, 0.2);
  border-radius: 2px;
  transition: background 0.3s;
}

.tempo-bars span:nth-child(1) { height: 30%; }
.tempo-bars span:nth-child(2) { height: 48%; }
.tempo-bars span:nth-child(3) { height: 65%; }
.tempo-bars span:nth-child(4) { height: 82%; }
.tempo-bars span:nth-child(5) { height: 100%; }

.tempo-bars.level-1 span:nth-child(-n+1) { background: #eab308; }
.tempo-bars.level-2 span:nth-child(-n+2) { background: #f59e0b; }
.tempo-bars.level-3 span:nth-child(-n+3) { background: #fb923c; }
.tempo-bars.level-4 span:nth-child(-n+4) { background: #ea580c; }
.tempo-bars.level-5 span:nth-child(-n+5) { background: #dc2626; box-shadow: 0 0 8px #dc2626; }

.tempo-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  color: #7c2d12;
  letter-spacing: 0.03em;
}

.round-controls {
  display: flex;
  gap: 8px;
}

.small-control-btn {
  background: linear-gradient(180deg, #fffbeb 0%, #fde047 100%);
  color: #7c2d12;
  border: 1.5px solid #d97706;
  border-radius: 8px;
  padding: 6px 12px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s, transform 0.08s ease;
}

.small-control-btn:hover {
  filter: brightness(1.06);
}

.small-control-btn:active {
  transform: translateY(2px) scale(0.96);
}

.small-control-btn.danger:hover {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #ef4444;
}

/* ==========================================
   THE STEAMPUNK CLOCKWORK BOMB
   ========================================== */
.word-card-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 4px 0;
}

.steampunk-bomb {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 460px;
  padding: 6px 16px 12px;
  transition: transform 0.1s ease;
}

.steampunk-bomb.beep-pulse {
  transform: scale(1.032);
}

/* Background SVG Cogwheels & Copper Coils */
.steampunk-gears-svg {
  position: absolute;
  inset: -6px 0 0 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.7));
}

@keyframes spinCW {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spinCCW {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

.gear-spin-main {
  animation: spinCW 28s linear infinite;
}

.gear-spin-cw {
  animation: spinCW 10s linear infinite;
}

.gear-spin-ccw {
  animation: spinCCW 10s linear infinite;
}

body.urgency-high .gear-spin-main {
  animation-duration: 10s;
}
body.urgency-high .gear-spin-cw,
body.urgency-high .gear-spin-ccw {
  animation-duration: 4s;
}

body.urgency-critical .gear-spin-main {
  animation-duration: 4s;
}
body.urgency-critical .gear-spin-cw,
body.urgency-critical .gear-spin-ccw {
  animation-duration: 1.6s;
}

body.untimed-round .gear-spin-main,
body.untimed-round .gear-spin-cw,
body.untimed-round .gear-spin-ccw {
  animation-play-state: paused;
}

/* Steam Puffs on Left & Right */
.steam-puff {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 251, 235, 0.6) 0%, rgba(253, 224, 71, 0.25) 55%, transparent 75%);
  filter: blur(4px);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  animation: steamRise 2.6s ease-out infinite;
}

.left-steam {
  left: 24px;
  bottom: 115px;
}

.right-steam {
  right: 24px;
  bottom: 115px;
  animation-delay: 1.3s;
}

body.urgency-high .steam-puff {
  animation-duration: 1.3s;
}

body.urgency-critical .steam-puff {
  animation-duration: 0.65s;
}

body.untimed-round .steam-puff,
body.untimed-round .fuse-spark-cluster,
body.untimed-round .spark-character {
  display: none;
}

@keyframes steamRise {
  0% {
    transform: translateY(10px) scale(0.5);
    opacity: 0;
  }
  35% {
    opacity: 0.75;
  }
  100% {
    transform: translateY(-55px) scale(1.7);
    opacity: 0;
  }
}

/* Top Manometer & Fuse Assembly */
.bomb-top-assembly {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: -14px;
  position: relative;
  z-index: 4;
}

.bomb-fuse-wrap {
  position: relative;
  width: 140px;
  height: 54px;
  margin-bottom: -10px;
}

.fuse-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.6));
}

.fuse-spark-cluster {
  position: absolute;
  left: 106px;
  top: 11px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: sparkJitter 0.15s infinite alternate;
}

.spark-core {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, #fef08a 45%, #ea580c 85%, transparent 100%);
  box-shadow:
    0 0 12px 4px #fbbf24,
    0 0 24px 8px rgba(234, 88, 12, 0.85);
}

.spark-ray {
  position: absolute;
  background: #fde047;
  border-radius: 999px;
}

.spark-ray.r1 { width: 28px; height: 3px; transform: rotate(18deg); }
.spark-ray.r2 { width: 28px; height: 3px; transform: rotate(108deg); }
.spark-ray.r3 { width: 20px; height: 2.5px; transform: rotate(63deg); }
.spark-ray.r4 { width: 20px; height: 2.5px; transform: rotate(-27deg); }

@keyframes sparkJitter {
  0% { transform: scale(0.88) rotate(-14deg); }
  100% { transform: scale(1.2) rotate(18deg); }
}

.steampunk-neck {
  width: 96px;
  height: 36px;
  background: linear-gradient(90deg, #b45309 0%, #fbbf24 30%, #fffbeb 50%, #f59e0b 80%, #9a3412 100%);
  border: 2.5px solid #7c2d12;
  border-radius: 10px 10px 4px 4px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(124, 45, 18, 0.3);
}

.pressure-gauge {
  width: 34px;
  height: 34px;
  margin-top: -14px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 60%, #fef08a 100%);
  border: 3.5px solid #b45309;
  box-shadow: 0 2px 6px rgba(124, 45, 18, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gauge-face {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.gauge-needle {
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: 2.5px;
  height: 11px;
  background: #b91c1c;
  transform-origin: bottom center;
  transform: translateX(-50%) rotate(-55deg);
  border-radius: 2px;
  transition: transform 0.25s ease;
}

.bomb-cap-rim {
  position: absolute;
  bottom: -4px;
  left: -7px;
  right: -7px;
  height: 8px;
  background: linear-gradient(90deg, #b45309 0%, #fffbeb 45%, #d97706 100%);
  border: 2px solid #7c2d12;
  border-radius: 999px;
}

/* Round Steampunk Golden-Yellow & Warm Orange Bomb Sphere */
.bomb-sphere {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1 / 0.94;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 24%, #fffbeb 0%, #fde047 28%, #fbbf24 62%, #ea580c 100%);
  border: 5px solid #d97706;
  outline: 2.5px solid #9a3412;
  box-shadow:
    inset -16px -20px 36px rgba(154, 52, 18, 0.45),
    inset 8px 10px 24px rgba(255, 255, 255, 0.75),
    0 16px 36px rgba(180, 83, 9, 0.28);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px 26px 26px;
  gap: 6px;
  overflow: hidden;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.bomb-brass-band {
  position: absolute;
  left: -8px;
  right: -8px;
  top: 50%;
  height: 22px;
  transform: translateY(-50%);
  background: linear-gradient(180deg, #fffbeb 0%, #fbbf24 50%, #d97706 100%);
  border-top: 2px solid #9a3412;
  border-bottom: 2px solid #9a3412;
  box-shadow: 0 3px 10px rgba(124, 45, 18, 0.3);
  z-index: 0;
}

.bomb-shine {
  position: absolute;
  top: 9%;
  left: 14%;
  width: 64px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.7) 0%, transparent 75%);
  transform: rotate(-26deg);
  pointer-events: none;
  z-index: 1;
}

/* Mini Steampunk Dials above the Screen */
.mini-dials-row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
}

.mini-dial {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fffbeb;
  border: 2.5px solid #b45309;
  box-shadow: inset 0 1px 3px rgba(124, 45, 18, 0.25), 0 2px 4px rgba(124, 45, 18, 0.25);
  position: relative;
}

.mini-dial.center-dial {
  width: 24px;
  height: 24px;
}

.mini-hand {
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: 2px;
  height: 6px;
  background: #7c2d12;
  transform-origin: bottom center;
}

.mini-hand.h1 { transform: translateX(-50%) rotate(35deg); }
.mini-hand.h2 { transform: translateX(-50%) rotate(-40deg); background: #dc2626; }
.mini-hand.h3 { transform: translateX(-50%) rotate(110deg); }

/* Mounted Steampunk Parchment & Brass Porthole Screen (With Picture + Word) */
.word-card.bomb-screen {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 220px;
  background:
    radial-gradient(circle at 50% 45%, #ffffff 0%, #fffbeb 68%, #fef08a 100%);
  border: 6px solid #d97706;
  outline: 2.5px solid #9a3412;
  border-radius: 26px;
  padding: 10px 18px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  box-shadow:
    inset 0 3px 12px rgba(217, 119, 6, 0.2),
    inset 0 0 0 2px rgba(255, 255, 255, 0.9),
    0 8px 18px rgba(124, 45, 18, 0.28);
  overflow: hidden;
  transition: transform 0.18s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

body.urgency-high .word-card.bomb-screen {
  background:
    radial-gradient(circle at 50% 45%, #ffffff 0%, #fef08a 72%, #fde047 100%);
  border-color: #ea580c;
  box-shadow:
    inset 0 3px 14px rgba(234, 88, 12, 0.25),
    0 0 24px rgba(245, 158, 11, 0.55);
}

body.urgency-critical .word-card.bomb-screen {
  background:
    radial-gradient(circle at 50% 45%, #fff5f5 0%, #fecaca 72%, #f87171 100%);
  border-color: #ef4444;
  box-shadow:
    inset 0 3px 16px rgba(127, 29, 29, 0.4),
    0 0 32px rgba(239, 68, 68, 0.7);
}

/* Brass Rivets on the Screen Bezel */
.screen-rivets span {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fffbeb, #b45309);
  border: 1px solid #7c2d12;
}

.screen-rivets span:nth-child(1) { top: 7px; left: 9px; }
.screen-rivets span:nth-child(2) { top: 7px; right: 9px; }
.screen-rivets span:nth-child(3) { bottom: 7px; left: 9px; }
.screen-rivets span:nth-child(4) { bottom: 7px; right: 9px; }
.screen-rivets span:nth-child(5) { top: 50%; left: 6px; transform: translateY(-50%); }
.screen-rivets span:nth-child(6) { top: 50%; right: 6px; transform: translateY(-50%); }

.word-card.card-flip {
  animation: wordPop 0.22s ease-out;
}

@keyframes wordPop {
  0% { transform: scale(0.92); opacity: 0.6; }
  70% { transform: scale(1.03); opacity: 1; }
  100% { transform: scale(1); }
}

.word-category-badge {
  display: none;
}

/* Picture Container on Bomb Screen */
.picture-stage {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 0;
}

.word-illustration {
  width: 134px;
  height: 134px;
  max-height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(67, 20, 7, 0.22));
  user-select: none;
  -webkit-user-drag: none;
}

.the-word {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  font-family: var(--font-word);
  font-size: 1.75rem;
  font-weight: 900;
  color: #431407;
  line-height: 1.1;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 30px;
}

body.urgency-critical .the-word {
  color: #450a0a;
}

.screen-ornament {
  display: none;
}

.pass-instruction {
  font-size: 0.98rem;
  color: #7c2d12;
  text-align: center;
  max-width: 460px;
}

/* ==========================================
   PLAY ACTION BUTTONS
   ========================================== */
.play-actions {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
}

.secondary-action-btn {
  background: linear-gradient(180deg, #fffbeb 0%, #fde047 100%);
  color: #7c2d12;
  border: 1.5px solid #d97706;
  border-radius: var(--radius-md);
  padding: 14px 20px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(180, 83, 9, 0.2);
  transition: filter 0.15s, transform 0.1s;
}

.secondary-action-btn:hover {
  filter: brightness(1.04);
  border-color: #ea580c;
}

.secondary-action-btn:active {
  transform: translateY(2px) scale(0.97);
}

.next-word-btn {
  width: 100%;
  background: linear-gradient(180deg, #fb923c 0%, #ea580c 52%, #c2410c 100%);
  color: #fffbeb;
  border: 2px solid #9a3412;
  border-radius: var(--radius-md);
  padding: 18px 24px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.45),
    0 8px 22px -4px rgba(194, 65, 12, 0.45);
  transition: transform 0.08s ease, filter 0.12s ease;
}

.next-word-btn:hover {
  filter: brightness(1.06);
}

.next-word-btn:active {
  transform: translateY(3px) scale(0.98);
}

.next-main {
  font-family: var(--font-heading);
  font-size: 1.38rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 2px rgba(67, 20, 7, 0.45);
}

.next-sub {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  color: #fef08a;
}

/* ==========================================
   EXPLOSION SCREEN
   ========================================== */
.explosion-visual {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.explosion-burst-stage {
  position: relative;
  width: 100%;
  max-width: 390px;
  height: 175px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2px;
}

.explosion-shockwave {
  position: absolute;
  width: 160px;
  height: 95px;
  border-radius: 50%;
  border: 4px solid rgba(234, 88, 12, 0.75);
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.65);
  pointer-events: none;
  opacity: 0;
}

body.exploded-state .explosion-shockwave.ring-1 {
  animation: shockwaveBlast 1.25s cubic-bezier(0.16, 1, 0.3, 1) 8 forwards;
}

body.exploded-state .explosion-shockwave.ring-2 {
  animation: shockwaveBlast 1.25s cubic-bezier(0.16, 1, 0.3, 1) 0.45s 7 forwards;
}

@keyframes shockwaveBlast {
  0% {
    transform: scale(0.35);
    opacity: 0.95;
    border-width: 6px;
  }
  100% {
    transform: scale(2.35);
    opacity: 0;
    border-width: 1px;
  }
}

.explosion-starburst-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 8px 20px rgba(180, 83, 9, 0.35));
  animation: boomPop 0.48s cubic-bezier(0.18, 0.89, 0.32, 1.32);
}

.blast-poly-outer {
  transform-origin: 210px 115px;
  animation: blastOuterPulse 0.25s ease-in-out 40 alternate;
}

.blast-poly-mid {
  transform-origin: 210px 115px;
  animation: blastMidPulse 0.2s ease-in-out 50 alternate;
}

.blast-poly-core {
  transform-origin: 210px 115px;
  animation: blastCoreFlash 0.16s ease-in-out 62 alternate;
}

.blast-smoke-clouds {
  transform-origin: 210px 115px;
  animation: smokeBillow 1s ease-in-out 10 alternate;
}

.blast-sparks {
  transform-origin: 210px 115px;
  animation: sparksScatter 0.5s ease-out 20 alternate;
}

body.explosion-settled .explosion-shockwave,
body.explosion-settled .blast-poly-outer,
body.explosion-settled .blast-poly-mid,
body.explosion-settled .blast-poly-core,
body.explosion-settled .blast-smoke-clouds,
body.explosion-settled .blast-sparks,
body.explosion-settled .boom-badge {
  animation: none !important;
}

@keyframes blastOuterPulse {
  0% { transform: scale(0.96) rotate(-2deg); }
  100% { transform: scale(1.05) rotate(2deg); }
}

@keyframes blastMidPulse {
  0% { transform: scale(1.04) rotate(2.5deg); }
  100% { transform: scale(0.94) rotate(-2.5deg); }
}

@keyframes blastCoreFlash {
  0% { transform: scale(0.92); opacity: 0.85; }
  100% { transform: scale(1.1); opacity: 1; }
}

@keyframes smokeBillow {
  0% { transform: scale(0.95); opacity: 0.75; }
  100% { transform: scale(1.08); opacity: 0.95; }
}

@keyframes sparksScatter {
  0% { transform: scale(0.88); opacity: 0.8; }
  100% { transform: scale(1.14); opacity: 1; }
}

.boom-badge {
  position: relative;
  z-index: 3;
  font-family: var(--font-title);
  font-size: clamp(1.95rem, 6vw, 2.85rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #fffbeb;
  text-shadow:
    0 2px 0 #7c2d12,
    0 -2px 0 #7c2d12,
    2px 0 0 #7c2d12,
    -2px 0 0 #7c2d12,
    0 5px 14px rgba(124, 45, 18, 0.75),
    0 0 20px rgba(254, 240, 138, 0.85);
  padding: 6px 16px;
  display: inline-block;
  animation: boomPop 0.42s cubic-bezier(0.18, 0.89, 0.32, 1.32), boomTextJitter 0.25s ease-in-out 40 alternate;
}

@keyframes boomPop {
  0% { transform: scale(0.25); opacity: 0; }
  75% { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes boomTextJitter {
  0% { transform: scale(0.98) rotate(-1deg); }
  100% { transform: scale(1.03) rotate(1deg); }
}

.explosion-visual h2 {
  font-family: var(--font-heading);
  color: #9a3412;
}

.last-word-reveal {
  color: #7c2d12;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.exploded-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: radial-gradient(circle at 50% 45%, #ffffff 0%, #fffbeb 65%, #fef08a 100%);
  border: 2.5px solid #d97706;
  border-radius: 14px;
  padding: 6px 14px;
  box-shadow: 0 4px 12px rgba(180, 83, 9, 0.22);
}

.exploded-illustration {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.last-word-reveal strong {
  font-family: var(--font-word);
  color: #431407;
  font-size: 1.35rem;
}

.award-point-box {
  background: rgba(255, 251, 235, 0.92);
  border: 2px solid #f59e0b;
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 6px 18px rgba(180, 83, 9, 0.14);
}

.award-point-box h3 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #9a3412;
  background: linear-gradient(180deg, #ea580c 0%, #c2410c 55%, #7c2d12 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.award-subtext {
  color: #7c2d12;
  font-size: 1rem;
  margin-top: -6px;
}

.award-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.award-btn {
  border: 2px solid #9a3412;
  border-radius: var(--radius-md);
  padding: 16px 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: #fffbeb;
  box-shadow: 0 4px 12px rgba(194, 65, 12, 0.28);
  transition: transform 0.08s ease, filter 0.15s ease;
}

.award-btn.team-1-btn {
  background: linear-gradient(180deg, #fb923c 0%, #ea580c 100%);
  border-color: #9a3412;
}

.award-btn.team-2-btn {
  background: linear-gradient(180deg, #f59e0b 0%, #c2410c 100%);
  border-color: #9a3412;
}

.award-btn:hover {
  filter: brightness(1.08);
}

.award-btn:active {
  transform: translateY(2px) scale(0.97);
}

.award-trophy {
  background: rgba(67, 20, 7, 0.22);
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: #fef08a;
}

.award-btn strong {
  font-family: var(--font-heading);
  font-size: 1.28rem;
}

.award-btn small {
  font-size: 0.88rem;
  color: #fffbeb;
}

.text-link-btn {
  background: transparent;
  border: none;
  color: #9a3412;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  align-self: center;
  padding: 4px 8px;
}

.post-explosion-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
}

.point-awarded-msg {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: #9a3412;
}

.next-round-btn-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ==========================================
   MODALS
   ========================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(124, 45, 18, 0.45);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-overlay[hidden] {
  display: none !important;
}

.modal-card {
  background: linear-gradient(180deg, #fffbeb 0%, #fef08a 100%);
  border: 2.5px solid #d97706;
  border-radius: var(--radius-lg);
  max-width: 550px;
  width: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 90dvh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(124, 45, 18, 0.35);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1.5px solid rgba(217, 119, 6, 0.35);
  padding-bottom: 10px;
}

.modal-header h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: #9a3412;
}

.close-modal-btn {
  background: transparent;
  border: none;
  color: #7c2d12;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 4px 8px;
}

.rules-list {
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  line-height: 1.5;
  color: #431407;
  font-size: 1.02rem;
}

.rules-list ul {
  padding-left: 20px;
  margin-top: 6px;
  color: #7c2d12;
}

.modal-desc {
  color: #7c2d12;
  font-size: 1rem;
  line-height: 1.45;
}

#customWordsInput {
  width: 100%;
  background: #fffbeb;
  color: #431407;
  border: 1.5px solid #d97706;
  border-radius: var(--radius-sm);
  padding: 12px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  resize: vertical;
}

.custom-words-status {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  color: #9a3412;
}

.modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.modal-actions > button {
  flex: 1;
  min-width: 160px;
}

/* ==========================================
   RESPONSIVE LAYOUT: COMPUTER, IPAD & MOBIL
   ========================================== */

/* iPad Landscape & Laptops with compact height (<= 850px tall) */
@media (max-height: 850px) and (min-width: 681px) {
  .top-bar {
    padding: 6px 20px;
  }

  .logo-gear-badge {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  .logo-group h1 {
    font-size: 1.3rem;
  }

  .logo-tagline {
    font-size: 0.86rem;
  }

  .game-container {
    padding: 8px 18px 10px;
    gap: 8px;
  }

  .team-card {
    padding: 5px 12px;
    gap: 2px;
  }

  .score-value {
    font-size: 1.65rem;
  }

  .score-btn {
    width: 30px;
    height: 30px;
    font-size: 1.05rem;
  }

  .vs-badge {
    width: 40px;
    height: 40px;
  }

  .game-panel {
    padding: 12px 20px;
    gap: 8px;
  }

  .hero-bomb {
    gap: 4px;
  }

  .hero-steampunk-emblem {
    width: 156px;
    height: 156px;
    margin-bottom: 0;
  }

  .setup-heading {
    font-size: 1.25rem;
  }

  .subtitle {
    font-size: 0.96rem;
  }

  .setting-box {
    padding: 9px 12px;
    gap: 6px;
  }

  .primary-cta-btn {
    padding: 12px 20px;
    font-size: 1.12rem;
  }

  .active-round-header {
    padding: 6px 14px;
  }

  .word-card-container {
    gap: 6px;
    padding: 0;
  }

  .steampunk-bomb {
    max-width: 380px;
    padding: 0 12px 4px;
  }

  .bomb-fuse-wrap {
    width: 116px;
    height: 42px;
    margin-bottom: -10px;
  }

  .fuse-spark-cluster {
    left: 88px;
    top: 8px;
  }

  .steampunk-neck {
    width: 82px;
    height: 30px;
  }

  .bomb-sphere {
    max-width: 325px;
    aspect-ratio: 1 / 0.85;
    padding: 12px 20px 14px;
    gap: 4px;
  }

  .word-card.bomb-screen {
    height: 168px;
    padding: 6px 14px;
  }

  .word-illustration {
    width: 100px;
    height: 100px;
  }

  .pass-instruction {
    font-size: 0.9rem;
  }

  .next-word-btn {
    padding: 12px 20px;
  }

  .next-main {
    font-size: 1.2rem;
  }

  .explosion-burst-stage {
    height: 132px;
  }

  .award-point-box {
    padding: 12px 16px;
    gap: 10px;
  }

  .award-btn {
    padding: 10px 12px;
  }
}

/* Tablets & Mobile Phones (<= 680px) */
@media (max-width: 680px) {
  .settings-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .timer-choice-group {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }

  .logo-tagline {
    font-size: 0.8rem;
  }

  .top-bar {
    padding: 8px 10px;
    flex-wrap: wrap;
    gap: 6px;
  }

  .logo-group h1 {
    font-size: 1.15rem;
  }

  .top-actions {
    gap: 5px;
  }

  .icon-btn {
    padding: 5px 9px;
    font-size: 0.78rem;
    min-height: 32px;
  }

  .game-container {
    padding: 8px 10px 12px;
    gap: 8px;
  }

  .game-panel {
    padding: 12px 12px;
    gap: 10px;
  }

  .active-round-header {
    padding: 6px 10px;
    flex-wrap: wrap;
    gap: 6px;
  }

  .play-actions {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .next-word-btn {
    padding: 13px 14px;
  }

  .award-buttons {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
}

/* Mobile Phones (<= 480px) */
@media (max-width: 480px) {
  .top-bar {
    justify-content: center;
    padding: 6px 8px;
    gap: 4px;
  }

  .logo-group {
    width: 100%;
    justify-content: center;
    gap: 8px;
  }

  .logo-gear-badge {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .logo-group h1 {
    font-size: 1.08rem;
  }

  .logo-tagline {
    font-size: 0.75rem;
  }

  .top-actions {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
  }

  .icon-btn {
    padding: 4px 8px;
    font-size: 0.74rem;
    min-height: 28px;
  }

  .scoreboard {
    gap: 6px;
  }

  .team-card {
    padding: 5px 6px;
    gap: 2px;
  }

  .team-name-input {
    font-size: 1rem;
    padding: 1px 4px;
  }

  .edit-hint {
    display: none;
  }

  .score-controls {
    gap: 8px;
  }

  .score-value {
    font-size: 1.45rem;
    min-width: 26px;
  }

  .score-btn {
    width: 26px;
    height: 26px;
    font-size: 0.95rem;
  }

  .vs-badge {
    width: 32px;
    height: 32px;
  }

  .vs-badge strong {
    font-size: 0.72rem;
  }

  .hero-bomb {
    gap: 4px;
  }

  .hero-steampunk-emblem {
    width: 120px;
    height: 120px;
  }

  .setup-heading {
    font-size: 1.08rem;
  }

  .subtitle {
    font-size: 0.88rem;
    line-height: 1.3;
  }

  .setting-box {
    padding: 8px 10px;
    gap: 6px;
  }

  .custom-select {
    padding: 7px 10px;
    font-size: 1rem;
  }

  .timer-choice-btn {
    padding: 7px 4px;
    font-size: 0.76rem;
  }

  .primary-cta-btn {
    padding: 12px 16px;
    font-size: 1.05rem;
  }

  /* Proportionally scaled Steampunk Bomb on Mobile Phones */
  .word-card-container {
    gap: 6px;
    padding: 0;
  }

  .steampunk-bomb {
    max-width: 320px;
    padding: 0 4px 4px;
  }

  .bomb-fuse-wrap {
    width: 102px;
    height: 38px;
    margin-bottom: -8px;
  }

  .fuse-spark-cluster {
    left: 76px;
    top: 7px;
  }

  .steampunk-neck {
    width: 74px;
    height: 28px;
  }

  .bomb-sphere {
    max-width: 295px;
    aspect-ratio: auto;
    min-height: 220px;
    border-radius: 46%;
    padding: 12px 14px 14px;
    gap: 4px;
  }

  .word-card.bomb-screen {
    height: 166px;
    border-width: 4.5px;
    border-radius: 18px;
    padding: 6px 10px;
  }

  .word-illustration {
    width: 96px;
    height: 96px;
  }

  .pass-instruction {
    font-size: 0.82rem;
    line-height: 1.25;
  }

  .next-word-btn {
    padding: 12px 14px;
  }

  .next-main {
    font-size: 1.1rem;
  }

  .next-sub {
    font-size: 0.82rem;
  }

  .explosion-burst-stage {
    height: 120px;
  }

  .award-point-box {
    padding: 12px 10px;
    gap: 8px;
  }

  .award-point-box h3 {
    font-size: 1.2rem;
  }

  .award-btn {
    padding: 10px 8px;
  }

  .award-btn strong {
    font-size: 1.05rem;
  }

  .award-btn small {
    font-size: 0.76rem;
  }
}

/* Compact Mobile Phones (e.g. iPhone SE 375x667) */
@media (max-width: 480px) and (max-height: 720px) {
  .game-container {
    padding: 4px 8px 8px;
    gap: 6px;
  }

  .game-panel {
    padding: 8px 10px;
    gap: 6px;
  }

  .hero-steampunk-emblem {
    width: 82px;
    height: 82px;
  }

  .subtitle {
    font-size: 0.82rem;
    line-height: 1.2;
  }

  .setting-box {
    padding: 6px 8px;
    gap: 4px;
  }

  .primary-cta-btn {
    padding: 10px 14px;
    font-size: 0.98rem;
  }

  .bomb-fuse-wrap {
    width: 88px;
    height: 30px;
    margin-bottom: -8px;
  }

  .steampunk-neck {
    width: 66px;
    height: 24px;
  }

  .bomb-sphere {
    max-width: 268px;
    min-height: 188px;
    padding: 10px 12px 12px;
  }

  .word-card.bomb-screen {
    height: 144px;
    padding: 4px 8px;
  }

  .word-illustration {
    width: 82px;
    height: 82px;
  }

  .pass-instruction {
    font-size: 0.76rem;
  }

  .next-word-btn {
    padding: 10px 12px;
  }

  .explosion-burst-stage {
    height: 98px;
  }

  .award-point-box {
    padding: 8px;
    gap: 6px;
  }

  .award-btn {
    padding: 8px 6px;
  }
}



