/* Word Bomb / Bom Kata: its own look, a bomb-defusing control panel.
   Straight steel panels with rivets instead of tilted paper labels, condensed stencil
   capitals instead of Poppins, LED digits for time and counts, hazard yellow + alarm red.
   Everything here is scoped to the Word Bomb lobby/stage (TV) or game screens (phone). */

/* ---------- shared panel pieces ---------- */
:is(.wall, .stage)[data-theme="bomb"] .label,
body.play[data-game="bomb"] .game-view .label {
  transform: none !important;
  background:
    radial-gradient(circle at 10px 10px, #6B7090 3px, transparent 4px),
    radial-gradient(circle at calc(100% - 10px) 10px, #6B7090 3px, transparent 4px),
    radial-gradient(circle at 10px calc(100% - 10px), #6B7090 3px, transparent 4px),
    radial-gradient(circle at calc(100% - 10px) calc(100% - 10px), #6B7090 3px, transparent 4px),
    linear-gradient(180deg, var(--steel), var(--steel-dark));
  color: var(--paper);
  border: 3px solid #0E0F16;
  border-radius: 10px;
  box-shadow: 0 6px 0 #0E0F16, inset 0 1px 0 rgba(255, 255, 255, .12);
}
:is(.wall, .stage)[data-theme="bomb"] .label .label-sub,
body.play[data-game="bomb"] .game-view .label .label-sub { color: #B9B4D0; }
:is(.wall, .stage)[data-theme="bomb"] .label.hazard,
body.play[data-game="bomb"] .game-view .label.hazard { border: 8px solid transparent; border-image: var(--hazard) 8; border-radius: 0; }

/* Stencil capitals for headings and words; the rainbow letters become one hazard yellow. */
.stage[data-theme="bomb"] :is(h1, h2, .cat, .stage-sub, .stage-note, .pname, .dw, .boom-word, .cast-name, .rank, .row-name, .label-title, .how-n, .cat-line, .starts),
.wall[data-theme="bomb"] :is(.tagline, .label-title, .count, .curator-says),
body.play[data-game="bomb"] .game-view :is(h1, .cat, .p-cap, .look, .wait-line, .gain, .jw, .label-title, .starts) {
  font-family: var(--font-stencil); font-weight: 400; letter-spacing: .04em; text-transform: uppercase;
}
:is(.stage, .wall)[data-theme="bomb"] .rainbow span, body.play[data-game="bomb"] .rainbow span { color: var(--accent) !important; }
.stage[data-theme="bomb"] .bubble-black,
body.play[data-game="bomb"] .game-view .bubble-black { background: none; border: 0; box-shadow: none; padding: 0; }
.stage[data-theme="bomb"] .bubble-black::after,
body.play[data-game="bomb"] .game-view .bubble-black::after { display: none; }
.stage[data-theme="bomb"] .stage-bubble h1 { font-size: 132px; line-height: .9; text-shadow: 0 6px 0 #0E0F16; }
.stage[data-theme="bomb"] .stage-bubble.small h1 { font-size: 96px; }
.stage[data-theme="bomb"] .vote-bubble h2 { font-size: 96px; line-height: .9; text-shadow: 0 5px 0 #0E0F16; }

/* LED digits */
.led { font-family: var(--font-led); color: var(--led-red); text-shadow: 0 0 14px rgba(255, 75, 62, .75); letter-spacing: .06em; }
.led-box { margin-top: 18px; background: #0B0C12; border: 4px solid #3A3F58; border-radius: 12px; padding: 10px 22px; text-align: center; box-shadow: inset 0 0 20px #000, 0 6px 0 #0E0F16; }
.led-box .led { font-size: 92px; line-height: 1; }
.stage[data-theme="bomb"] .stage-timer { font-family: var(--font-led); font-size: 46px; color: var(--led-red); text-shadow: 0 0 12px rgba(255, 75, 62, .7); background: #0B0C12; border: 3px solid #3A3F58; border-radius: 10px; padding: 6px 16px; min-width: 0; }

/* Siren pulse in the last 10 seconds */
.stage[data-theme="bomb"].hot::before, body.play[data-game="bomb"] .game-view.hot::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  box-shadow: inset 0 0 160px 40px rgba(230, 57, 70, .55); animation: siren .8s ease-in-out infinite;
}
body.play[data-game="bomb"] .game-view.hot::before { position: fixed; }
@keyframes siren { 50% { box-shadow: inset 0 0 60px 10px rgba(230, 57, 70, .15); } }
.stage[data-theme="bomb"].hot .led { animation: blink .5s steps(2) infinite; }
@keyframes blink { 50% { opacity: .35; } }

/* Big buttons: hazard yellow, square corners */
.stage[data-theme="bomb"] .btn-start, .wall[data-theme="bomb"] .btn-start,
body.play[data-game="bomb"] .game-view .btn-big {
  font-family: var(--font-stencil); font-weight: 400; letter-spacing: .06em; text-transform: uppercase;
  border-radius: 6px; border: 4px solid #0E0F16; box-shadow: 0 6px 0 #0E0F16;
}
.stage[data-theme="bomb"] .btn-start { font-size: 44px; padding: 8px 40px; }
.wall[data-theme="bomb"] .btn-start { font-size: 40px; }

/* ---------- TV ---------- */
.stage[data-theme="bomb"] .round-tag { font-family: var(--font-stencil); font-weight: 400; font-size: 30px; letter-spacing: .06em; background: var(--accent); color: #0E0F16; border: 3px solid #0E0F16; border-radius: 4px; }
.stage[data-theme="bomb"] .stage-sub { font-size: 44px; color: var(--paper); }
.stage[data-theme="bomb"] .stage-note { font-size: 34px; color: var(--accent); }
.stage[data-theme="bomb"] .help-id { font-family: var(--font); text-transform: none; letter-spacing: 0; }

.stage[data-theme="bomb"] .intro-head { flex-direction: column; gap: 6px; }
.stage[data-theme="bomb"] .intro-bomb { width: 170px; }
.stage[data-theme="bomb"] .how-step { color: var(--paper); font-size: 26px; padding: 34px 26px 24px; }
.stage[data-theme="bomb"] .how-n { font-size: 64px; color: var(--accent); }

.stage[data-theme="bomb"] .type-top { gap: 70px; align-items: center; }
.stage[data-theme="bomb"] .cat-card { padding: 20px 50px 24px; }
.stage[data-theme="bomb"] .cat-card .cat { font-size: 104px; line-height: .95; color: #fff; }
.stage[data-theme="bomb"] .cat-card .cat-id { font-size: 28px; color: #B9B4D0; }
.stage[data-theme="bomb"] .cat-card .word-meta { color: var(--accent); font-family: var(--font-stencil); font-size: 26px; font-weight: 400; letter-spacing: .2em; }
.stage[data-theme="bomb"] .starts { font-size: 40px; color: var(--accent); }
.stage[data-theme="bomb"] .letter { width: 140px; height: 140px; font-family: var(--font-stencil); font-weight: 400; font-size: 110px; padding-top: 8px; background: radial-gradient(circle at 35% 30%, #FF6B6B, #C81E2B 70%); border: 6px solid #0E0F16; box-shadow: 0 8px 0 #0E0F16, inset 0 -6px 0 rgba(0, 0, 0, .25); }
.stage[data-theme="bomb"] .bomb-side { display: flex; flex-direction: column; align-items: center; }
.stage[data-theme="bomb"] .fuse { display: none; }

/* players as detonator modules with an LED count */
.stage[data-theme="bomb"] .cast { width: 150px; background: linear-gradient(180deg, var(--steel), var(--steel-dark)); border: 3px solid #0E0F16; border-radius: 10px; padding: 10px 8px 8px; box-shadow: 0 5px 0 #0E0F16; opacity: 1; }
.stage[data-theme="bomb"] .cast .av { width: 90px; height: 90px; }
.stage[data-theme="bomb"] .cast-name { color: var(--paper); font-size: 26px; background: none; }
.stage[data-theme="bomb"] .count-badge { position: static; display: block; margin: 6px auto 0; width: max-content; min-width: 0; height: auto; padding: 4px 12px; border-radius: 6px; background: #0B0C12; border: 2px solid #3A3F58; font-family: var(--font-led); font-size: 26px; color: var(--led-green); text-shadow: 0 0 10px rgba(91, 227, 125, .7); }
.stage[data-theme="bomb"] .cast .tick { right: -10px; top: -10px; }

/* Sidang Kata: suspicious words on yellow caution tape */
.stage[data-theme="bomb"] .judge-head .gavel { width: 140px; }
.stage[data-theme="bomb"] .stage-sub.small { font-size: 34px; }
.stage[data-theme="bomb"] .dword { background: var(--accent) !important; color: #0E0F16 !important; border: 0 !important; border-radius: 0 !important; padding: 18px 34px !important; box-shadow: 0 6px 0 #0E0F16 !important; position: relative; }
.stage[data-theme="bomb"] .dword::before, .stage[data-theme="bomb"] .dword::after { content: ''; position: absolute; left: 0; right: 0; height: 8px; background: var(--hazard); }
.stage[data-theme="bomb"] .dword::before { top: 0; }
.stage[data-theme="bomb"] .dword::after { bottom: 0; }
.stage[data-theme="bomb"] .dword:nth-child(odd) { transform: rotate(-2deg) !important; }
.stage[data-theme="bomb"] .dword:nth-child(even) { transform: rotate(1.5deg) !important; }
.stage[data-theme="bomb"] .dword .dw { font-size: 56px; line-height: 1; }
.stage[data-theme="bomb"] .dword .dby { font-family: var(--font-stencil); font-style: normal; font-size: 22px; letter-spacing: .1em; opacity: .75; text-transform: uppercase; }

/* Results: a damage report */
.stage[data-theme="bomb"] .boom-banner { width: 100%; justify-content: center; transform: none; background: var(--brand); border: 4px solid #0E0F16; border-radius: 0; box-shadow: 0 8px 0 #0E0F16; padding: 6px 30px; }
.stage[data-theme="bomb"] .boom-word { font-size: 96px; color: var(--accent); text-shadow: 0 5px 0 #0E0F16; }
.stage[data-theme="bomb"] .boom-who { font-family: var(--font-stencil); font-weight: 400; font-size: 36px; letter-spacing: .05em; text-transform: uppercase; }
.stage[data-theme="bomb"] .cat-line { font-size: 36px; color: var(--accent); }
.stage[data-theme="bomb"] .pcard { color: var(--paper); }
.stage[data-theme="bomb"] .pcard.boomed { background: linear-gradient(180deg, #5A2430, #3A1820) !important; }
.stage[data-theme="bomb"] .pname { font-size: 34px; }
.stage[data-theme="bomb"] .pgain { font-family: var(--font-led); font-size: 22px; color: var(--led-green); text-shadow: 0 0 8px rgba(91, 227, 125, .6); }
.stage[data-theme="bomb"] .chip { font-family: var(--font-stencil); font-weight: 400; letter-spacing: .05em; text-transform: uppercase; border-radius: 4px; border-color: #0E0F16; font-size: 22px; }
.stage[data-theme="bomb"] .chip.pair { background: #E6E3F2; }
.stage[data-theme="bomb"] .chip.many { background: #9A97AE; }
.stage[data-theme="bomb"] .chip.bad, .stage[data-theme="bomb"] .chip.spell { background: #F6D4D7; color: #7A1F28; }

/* Scores and final */
.stage[data-theme="bomb"] .row { color: var(--paper); font-family: var(--font-stencil); font-weight: 400; font-size: 40px; letter-spacing: .04em; }
.stage[data-theme="bomb"] .row.top { background: linear-gradient(180deg, #4A4220, #2E2A16) !important; }
.stage[data-theme="bomb"] .rank { color: var(--accent); }
.stage[data-theme="bomb"] .row-gain { font-family: var(--font-led); font-size: 24px; color: var(--led-green); }
.stage[data-theme="bomb"] .row-score { font-family: var(--font-led); font-size: 26px; color: var(--led-red); }
.stage[data-theme="bomb"] .winner-plate .label-title { font-size: 44px; }

/* ---------- Lobby ---------- */
.wall[data-theme="bomb"] .tagline { font-size: 34px; color: var(--accent); }
.wall[data-theme="bomb"] .count { font-size: 40px; }
.wall[data-theme="bomb"] .join-plate .label-title { font-size: 34px; }
.wall[data-theme="bomb"] .join-plate .code { font-family: var(--font-led); font-size: 52px; color: var(--led-red); text-shadow: 0 0 12px rgba(255, 75, 62, .6); letter-spacing: .04em; }
.wall[data-theme="bomb"] .join-plate .cap, .wall[data-theme="bomb"] .join-plate .how { color: var(--paper); }
.wall[data-theme="bomb"] .qr-frame.plain { border: 10px solid transparent; border-image: var(--hazard) 10; border-radius: 0; background: #fff; box-shadow: 0 8px 0 #0E0F16; }
.wall[data-theme="bomb"] .felt-portrait { background: linear-gradient(180deg, var(--steel), var(--steel-dark)); border-color: #0E0F16; border-radius: 10px; }
.wall[data-theme="bomb"] .curator-says { background: var(--accent); color: #0E0F16; border-color: #0E0F16; font-size: 30px; line-height: 1.05; }
.wall[data-theme="bomb"] .curator-says::after { background: var(--accent); border-color: #0E0F16; left: 50%; margin-left: -15px; bottom: -19px; }
.wall[data-theme="bomb"] .next-show .label-sub b { color: var(--accent); }
.wall[data-theme="bomb"] .set-cap { color: var(--accent); }
.wall[data-theme="bomb"] .pills { border-color: #0E0F16; background: #0B0C12; }
.wall[data-theme="bomb"] .pills button { color: var(--paper); }
.wall[data-theme="bomb"] .pills button[aria-pressed="true"] { background: var(--accent); color: #0E0F16; }
.wall[data-theme="bomb"] .btn-share { background: var(--accent); }

/* ---------- Phone ---------- */
body.play[data-game="bomb"] .game-view > * { position: relative; z-index: 1; }
body.play[data-game="bomb"] .game-view .cat-card { width: 100%; max-width: 420px; padding: 10px 16px 14px; }
body.play[data-game="bomb"] .game-view .cat-card .cat { font-size: 40px; line-height: .95; color: #fff; }
body.play[data-game="bomb"] .game-view .cat-card .cat-id { color: #B9B4D0; }
body.play[data-game="bomb"] .game-view .cat-card .word-meta { color: var(--accent); font-family: var(--font-stencil); font-weight: 400; letter-spacing: .2em; font-size: 15px; }
body.play[data-game="bomb"] .game-view .starts { font-size: 20px; color: var(--accent); }
body.play[data-game="bomb"] .game-view .letter { width: 64px; height: 64px; font-family: var(--font-stencil); font-weight: 400; font-size: 52px; padding-top: 4px; background: radial-gradient(circle at 35% 30%, #FF6B6B, #C81E2B 70%); border: 4px solid #0E0F16; }
body.play[data-game="bomb"] .p-led-row { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 420px; }
body.play[data-game="bomb"] .p-led-row .p-timer { flex: 1; border-color: #0E0F16; background: #0B0C12; }
.led.small { font-size: 26px; background: #0B0C12; border: 2px solid #3A3F58; border-radius: 6px; padding: 4px 10px; }
body.play[data-game="bomb"] .word-in { background: var(--accent); border: 4px solid #0E0F16; border-radius: 6px; font-family: var(--font-stencil); font-weight: 400; font-size: 30px; letter-spacing: .05em; text-transform: uppercase; }
body.play[data-game="bomb"] .word-in::placeholder { color: rgba(14, 15, 22, .45); }
body.play[data-game="bomb"] .btn-add { background: var(--brand); color: #fff; border: 4px solid #0E0F16; border-radius: 6px; font-family: var(--font-stencil); font-weight: 400; font-size: 26px; letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 5px 0 #0E0F16; }
body.play[data-game="bomb"] .chip { font-family: var(--font-stencil); font-weight: 400; font-size: 20px; letter-spacing: .05em; text-transform: uppercase; border-radius: 4px; border-color: #0E0F16; }
body.play[data-game="bomb"] .judge-btn { background: linear-gradient(180deg, var(--steel), var(--steel-dark)); color: #fff; border: 3px solid #0E0F16; border-radius: 8px; }
body.play[data-game="bomb"] .judge-btn .jw { font-size: 26px; }
body.play[data-game="bomb"] .judge-btn .jv { font-family: var(--font-stencil); font-size: 18px; color: var(--led-green); text-shadow: 0 0 8px rgba(91, 227, 125, .6); }
body.play[data-game="bomb"] .judge-btn.bad { background: linear-gradient(180deg, #5A2430, #3A1820); }
body.play[data-game="bomb"] .judge-btn.bad .jv { color: var(--led-red); text-shadow: 0 0 8px rgba(255, 75, 62, .6); }
body.play[data-game="bomb"] .game-view .you-bubble h1 { font-size: 56px; text-shadow: 0 4px 0 #0E0F16; }
body.play[data-game="bomb"] .game-view .gain { font-size: 44px; }
body.play[data-game="bomb"] .game-view .boom-banner.small { font-family: var(--font-stencil); font-weight: 400; font-size: 56px; background: var(--brand); color: var(--accent); border-radius: 0; border: 3px solid #0E0F16; transform: none; }
body.play[data-game="bomb"] .game-view .total { color: var(--paper); }
.stage[data-theme="bomb"] .chip, body.play[data-game="bomb"] .chip { color: #0E0F16; }
.stage[data-theme="bomb"] .chip.bad, .stage[data-theme="bomb"] .chip.spell { color: #7A1F28; }
.stage[data-theme="bomb"] .row-name, .stage[data-theme="bomb"] .row .label-title { color: var(--paper); }
.stage[data-theme="bomb"] .intro-head + .stage-sub + .how + .stage-note { margin-top: -6px; }
