/* Bomb Relay: charcoal, warm paper and one restrained brass accent.
   Everything is scoped to this game; other Hub cards keep their own theme. */
.br-page, body.bomb-card-page {
  --bg: #171a19; --surface: #202422; --surface-2: #282d29;
  --border: #343b35; --border-2: #51594f; --border-3: #51594f;
  --text: #eeeae2; --text-hi: #f8f5ef; --text-2: #dedad1;
  --text-dim: #bcbfb5; --text-muted: #a5aba1;
  --accent: #c6a77d; --accent-text: #dec29d;
  --btn-face: #30362f; --btn-face-hi: #3b433a;
  --br-paper: #f1ede4; --br-ink: #303730; --br-brass: #c6a77d;
  --br-line: #41483e; --br-muted: #b6b9ad; --br-danger: #d69b88;
  --br-charcoal: #252b28; --br-shell-edge: #8b927f;
  --br-fire-red: #cd3f35; --br-fire-deep: #922d29;
  --br-fire-hot: #e96746; --br-fire-core: #f0b983;
  background: var(--bg); color: var(--text);
  font-family: 'Segoe UI', 'Microsoft JhengHei', system-ui, sans-serif;
}
.br-page .topbar { gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.br-page .header { margin-bottom: 26px; }
.br-page .header h1 { color: var(--text-hi); font-size: clamp(2.15rem, 5vw, 3.25rem); font-weight: 550; line-height: 1.2; letter-spacing: -.045em; }
.br-header .br-kicker { margin-bottom: 12px; }
.br-subtitle { color: var(--br-muted); font-size: .76rem; margin-top: 13px; letter-spacing: .13em; line-height: 1.6; }
.br-playing .topbar { margin-bottom: 12px; }
.br-playing .header { margin-bottom: 20px; }
.br-playing .header h1 { font-size: clamp(1.65rem, 3vw, 2.15rem); }
.br-playing .br-header .br-kicker, .br-playing .br-subtitle { display: none; }
.br-shell { width: 100%; max-width: 1080px; position: relative; z-index: 1; }
.br-panel { background: var(--surface); border: 1px solid var(--br-line); border-radius: 18px; padding: 30px; margin-bottom: 18px; }
.br-setup, .br-demo { display: grid; gap: 24px; }
#br-setup-needed { display: grid; gap: 16px; }
.br-kicker { color: var(--br-muted); font-size: .69rem; font-weight: 600; letter-spacing: .12em; line-height: 1.5; text-transform: uppercase; }
.br-soft { color: var(--br-muted); font-size: .88rem; line-height: 1.6; }
.br-center { text-align: center; }
.br-feedback { color: #e2bf96; font-size: .9rem; line-height: 1.6; margin: 10px 0; }
.br-feedback:empty, #br-sound-status:empty { display: none; }
.br-intro { font-size: 1.13rem; line-height: 1.75; color: var(--text); text-align: center; text-wrap: balance; max-width: 54ch; margin: 0 auto; }
.br-settings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.br-field { display: grid; gap: 9px; min-width: 0; color: #d3d7cb; font-size: .83rem; text-align: left; }
.br-field select, .br-field input[type="number"] { width: 100%; min-width: 0; min-height: 48px; font: inherit; font-size: 16px; background: #181d19; color: var(--text); border: 1px solid #535c50; border-radius: 8px; padding: 11px 12px; color-scheme: dark; }
.br-max-field { max-width: 360px; }
.br-timing-options, .br-manage-timing { display: grid; gap: 9px; min-width: 0; }
.br-check { display: flex; align-items: center; gap: 11px; min-height: 44px; color: var(--text); font-size: .9rem; line-height: 1.5; }
.br-check input { width: 19px; height: 19px; flex: 0 0 auto; accent-color: var(--br-brass); }
.br-check input:focus-visible { outline: 2px solid #e4c59a; outline-offset: 4px; }
.br-timing-range { color: var(--text); font-size: .88rem; line-height: 1.6; overflow-wrap: anywhere; }
.br-ready-range { max-width: 38ch; text-wrap: balance; }
.br-zone .br-ready-range { font-size: .8rem; }
#br-timing-note:empty, #br-manage-timing-note:empty { display: none; }
.br-manage-timing { padding: 20px 0; margin-bottom: 16px; border-top: 1px solid var(--br-line); border-bottom: 1px solid var(--br-line); }
.br-manage-timing h3 { color: var(--text); font-size: .98rem; font-weight: 500; margin-bottom: 5px; }
.br-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; font: inherit; font-size: .92rem; font-weight: 600; line-height: 1.4; border: 1px solid #59624f; border-radius: 9px; padding: 11px 18px; color: var(--text); background: var(--btn-face); cursor: pointer; text-decoration: none; text-align: center; transition: background .15s, border-color .15s; }
.br-button:hover:not(:disabled) { background: var(--btn-face-hi); border-color: #8f9a83; }
.br-button.br-primary, .br-button.br-pass { background: var(--br-brass); border-color: var(--br-brass); color: #20251f; box-shadow: 0 3px 8px #0002; }
.br-button.br-primary:hover:not(:disabled), .br-button.br-pass:hover:not(:disabled) { background: #d5b88f; border-color: #d5b88f; }
.br-button:disabled { opacity: .45; cursor: default; }
.br-button:focus-visible, .br-field select:focus-visible, .br-field input:focus-visible, .br-rules summary:focus-visible, .br-library summary:focus-visible { outline: 2px solid #e4c59a; outline-offset: 4px; }
.br-small { min-height: 40px; font-size: .8rem; padding: 8px 13px; }
.br-stop { border-color: #806554; color: #e5b6a3; }
.br-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.br-setup-actions .br-primary { flex: 1; min-height: 52px; font-size: 1rem; }
.br-session-actions { justify-content: center; margin: 20px 0; }
.br-session-actions .br-primary { min-width: 170px; }
.br-bottom-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 16px 0; }
.br-setup-hero { display: grid; justify-items: center; gap: 12px; padding: 5px 0 4px; }
.br-setup-emblem { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; border: 1px solid #7b755f; color: var(--br-brass); background: #262c24; }
.br-setup-emblem .br-object { width: 52px; height: 52px; }

/* Paper is the visual focus. Player identities share a neutral tone. */
.br-stage { position: relative; background: var(--surface); border: 1px solid var(--br-line); border-radius: 20px; padding: 22px; overflow: hidden; }
.br-strip { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
.br-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 0; color: #c2c7ba; font-size: .72rem; font-weight: 500; letter-spacing: .075em; line-height: 1.5; white-space: nowrap; }
.br-strip .br-pill + .br-pill { border-left: 1px solid #59614e; padding-left: 16px; }
.br-main { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.br-scene { display: grid; min-width: 0; }
.br-scene-title { text-align: left; min-width: 0; padding: clamp(24px, 3.4vw, 42px); background: var(--br-paper); color: var(--br-ink); border: 1px solid #fff9; border-radius: 13px; box-shadow: 0 8px 24px #0002; display: flex; flex-direction: column; justify-content: center; }
.br-scene-title .br-kicker { color: #686c5f; }
.br-scene-title h2 { color: var(--br-ink); font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.9rem, 3.6vw, 2.85rem); font-weight: 400; line-height: 1.21; letter-spacing: -.035em; margin-top: 18px; overflow-wrap: anywhere; text-wrap: balance; }
.br-zh { color: #686c5f; font-size: .97rem; line-height: 1.65; margin-top: 19px; }
.br-focus { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; min-height: 300px; padding: 26px 16px; border-radius: 13px; background: #252b24; border: 1px solid #47503f; }
.br-who { color: #f0e7d8; font-size: clamp(2.1rem, 4.4vw, 3.2rem); font-weight: 500; line-height: 1.15; letter-spacing: -.035em; overflow-wrap: anywhere; max-width: 100%; }
.br-hint { color: #d4d8ca; font-size: 1rem; font-weight: 400; line-height: 1.6; max-width: 30ch; }
.br-next { margin-top: 8px; padding: 9px 0 0; border-top: 1px solid #68705d; color: #dfc9a6; font-weight: 500; font-size: .91rem; }
.br-bounce { margin-top: 7px; padding: 10px 12px; border-radius: 8px; background: #33372c; border-left: 2px solid var(--br-brass); color: #ead7bc; font-weight: 400; font-size: .88rem; line-height: 1.6; }
.br-phase-ticking .br-focus { border-color: #887b5e; }
.br-phase-boom .br-focus, .br-phase-discussion .br-focus { border-color: #854941; background: #2e2322; }
.br-bomb { width: 128px; height: 128px; margin-bottom: 2px; flex-shrink: 0; }
.br-object { position: relative; display: inline-block; width: 100%; height: 100%; vertical-align: middle; isolation: isolate; }
.br-object span, .br-fire span { position: absolute; display: block; box-sizing: border-box; }
.br-object-shadow { left: 17%; top: 88%; width: 67%; height: 7%; border-radius: 50%; background: #252b2830; filter: blur(2px); }
.br-object-shell { left: 14%; top: 31%; width: 69%; height: 64%; border-radius: 48% 50% 46% 49%; background: linear-gradient(140deg, #707664 0%, #414b40 27%, var(--br-charcoal) 74%); box-shadow: inset 0 0 0 1.5px var(--br-shell-edge), inset -4px -5px 9px #252b28a6; transform: rotate(-8deg); transform-origin: 50% 80%; z-index: 2; }
.br-object-shell::before { content: ''; position: absolute; left: 17%; top: 15%; width: 34%; height: 26%; border-radius: 50%; background: linear-gradient(135deg, #f2eadc47, transparent); transform: rotate(-28deg); }
.br-object-shell::after { content: ''; position: absolute; left: 20%; top: 60%; width: 58%; height: 1%; border-radius: 50%; background: #b6a07570; transform: rotate(-9deg); }
.br-object-lid { left: 44%; top: 26%; width: 23%; height: 13%; border-radius: 18% 18% 28% 28%; background: linear-gradient(110deg, #d2be96, #b6a075); box-shadow: inset 0 -2px 0 #766747; transform: rotate(14deg); z-index: 3; }
.br-object-fuse { left: 56%; top: 10%; width: 24%; height: 25%; border-top: 2px solid #b7ab90; border-left: 2px solid #b7ab90; border-radius: 78% 0 0 0; transform: rotate(17deg); transform-origin: 0 100%; z-index: 1; }
.br-object-spark { left: 76%; top: 4%; width: 16%; height: 18%; background: var(--br-fire-red); clip-path: polygon(50% 0, 60% 38%, 100% 50%, 60% 61%, 50% 100%, 39% 62%, 0 50%, 38% 40%); transform: rotate(11deg); z-index: 4; opacity: 0; }
.br-object-spark::after { content: ''; position: absolute; left: 41%; top: 41%; width: 18%; height: 18%; background: var(--br-fire-core); border-radius: 50%; }
.br-bomb.is-live .br-object-shell { animation: br-live 2.8s ease-in-out infinite; }
.br-bomb.is-live .br-object-spark { opacity: 1; animation: br-spark 1.4s ease-in-out infinite; }
.br-bomb.is-paused { opacity: .55; }
.br-burst { position: relative; width: 128px; height: 150px; }
.br-burst strong { position: absolute; left: 0; right: 0; bottom: 0; color: #edc2ac; font-family: Georgia, 'Times New Roman', serif; font-size: 1.25rem; font-weight: 400; letter-spacing: .1em; }
.br-fire { position: absolute; left: 0; top: 0; width: 128px; height: 128px; isolation: isolate; }
.br-fire::before { content: ''; position: absolute; left: 9%; top: 12%; width: 83%; height: 80%; border-radius: 50%; background: radial-gradient(ellipse, #e967468c 0%, #cd3f3552 37%, transparent 70%); }
.br-fire::after { content: ''; position: absolute; left: 4%; top: 13%; width: 88%; height: 79%; border: 1px solid #cd3f356b; border-radius: 50%; transform: rotate(-18deg); }
.br-flame { left: 25%; top: 19%; width: 56%; height: 71%; clip-path: polygon(44% 0, 60% 29%, 68% 12%, 77% 43%, 94% 28%, 85% 62%, 100% 79%, 74% 92%, 50% 100%, 22% 88%, 0 68%, 17% 49%, 9% 29%, 32% 42%, 35% 19%); background: linear-gradient(165deg, var(--br-fire-hot), var(--br-fire-red) 45%, var(--br-fire-deep)); transform-origin: 50% 82%; }
.br-flame:nth-child(1) { left: 14%; top: 28%; width: 71%; height: 63%; transform: rotate(-22deg); background: var(--br-fire-deep); }
.br-flame:nth-child(2) { transform: rotate(8deg); }
.br-flame:nth-child(3) { left: 31%; top: 30%; width: 43%; height: 58%; transform: rotate(-4deg); background: var(--br-fire-hot); }
.br-flame:nth-child(4) { left: 39%; top: 46%; width: 28%; height: 40%; transform: rotate(6deg); background: linear-gradient(165deg, var(--br-fire-core), var(--br-fire-hot)); }
.br-flame:nth-child(5) { left: 9%; top: 25%; width: 7%; height: 11%; transform: rotate(-25deg); clip-path: polygon(50% 0, 100% 60%, 40% 100%, 0 35%); background: var(--br-fire-red); }
.br-flame:nth-child(6) { left: 84%; top: 18%; width: 6%; height: 10%; transform: rotate(29deg); clip-path: polygon(50% 0, 100% 60%, 40% 100%, 0 35%); background: var(--br-fire-hot); }
.br-exploding .br-fire, .br-zone-boom .br-fire { animation: br-impact .8s cubic-bezier(.2,.7,.3,1) both; }
.br-exploding .br-fire::after, .br-zone-boom .br-fire::after { animation: br-wave .8s ease-out both; }
.br-static .br-fire, .br-static .br-fire::after { animation: none; }

.br-seats { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin: 20px 0 0; padding: 0; }
.br-seat { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 5px 8px; min-width: 0; padding: 13px 14px; border-radius: 9px; background: #262c25; border: 1px solid #47503e; }
.br-seat-name { color: #e6e7dd; font-weight: 500; font-size: .94rem; overflow-wrap: anywhere; line-height: 1.4; }
.br-seat-name em, .br-rank-name em { font-style: normal; font-size: .65rem; margin-left: 5px; color: #c3c8b7; font-weight: 400; vertical-align: middle; }
.br-seat-count { color: #b9c1ae; font-size: .78rem; font-weight: 400; }
.br-seat.is-holder { border-color: #b7a07a; background: #373a2d; box-shadow: inset 2px 0 0 var(--br-brass); }
.br-seat.is-next { border-color: #747e64; }
.br-seat.is-out { opacity: .5; }
.br-seat.is-boom { border-color: #a37e64; background: #343026; }
.br-seat-bomb { display: none; }
.br-thumbs { display: flex; align-items: center; grid-column: 1 / -1; }
.br-taken-card { display: grid; place-items: center; width: 23px; height: 29px; color: #555f4a; border-radius: 3px; background: #ded8ca; border: 1px solid #aaac95; margin-right: -5px; }
.br-taken-card .br-object { width: 20px; height: 20px; }
.br-thumbs-more { margin-left: 10px; color: var(--br-muted); font-size: .72rem; font-weight: 400; }
.br-final { text-align: center; display: grid; gap: 18px; padding: 14px 0; }
.br-final-title { color: #ede6d8; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 400; letter-spacing: -.03em; }
.br-ranks { list-style: none; padding: 0; margin: 6px auto 0; display: grid; gap: 9px; width: 100%; max-width: 640px; }
.br-rank { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; grid-template-areas: 'n name count' 'n cards cards'; gap: 6px 14px; align-items: center; text-align: left; padding: 16px 18px; border-radius: 10px; background: #272e25; border: 1px solid #48503f; }
.br-rank.is-winner { background: #34382a; border-color: #ac9670; }
.br-rank.is-me { outline: 1px solid #9caa87; outline-offset: 2px; }
.br-rank-n { grid-area: n; font-family: Georgia, 'Times New Roman', serif; font-size: 1.4rem; font-weight: 400; color: #c7c4ad; text-align: center; }
.br-rank-name { grid-area: name; color: #eee9df; font-weight: 500; font-size: 1.05rem; overflow-wrap: anywhere; }
.br-rank-count { grid-area: count; color: #c9ccbc; font-size: .88rem; font-weight: 500; }
.br-rank .br-thumbs, .br-rank-none { grid-area: cards; }
.br-rank-none { color: #b3bba5; font-size: .83rem; font-weight: 400; }
.br-rank .br-taken-card { width: 26px; height: 32px; margin-right: -5px; }
.br-rules { padding: 10px 0 12px; }
.br-rules summary, .br-library > summary { color: #b8bfb0; padding: 10px 0; cursor: pointer; line-height: 1.5; font-size: .86rem; }
.br-rules ol { margin: 8px 0 0 1.3em; display: grid; gap: 11px; color: #b8bfb0; font-size: .88rem; line-height: 1.75; max-width: 74ch; }
.br-demo-link { display: inline-block; margin-top: 6px; }
.br-library { margin-top: 32px; padding-top: 12px; border-top: 1px solid var(--br-line); }
.br-library-controls { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; margin: 16px 0 20px; }
.br-library-controls .br-field { max-width: 280px; }
.br-library-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.br-library-card { margin: 0; display: grid; align-content: start; gap: 12px; padding: 20px; background: #252c23; border: 1px solid #46503d; border-radius: 10px; min-width: 0; }
.br-library-card strong { color: #ebe8dd; font-family: Georgia, 'Times New Roman', serif; font-size: 1.12rem; font-weight: 400; line-height: 1.45; }
.br-library-card > span { color: #b5bca9; font-size: .83rem; line-height: 1.6; }
.br-dialog { width: calc(100% - 32px); max-width: 560px; max-height: calc(100dvh - 40px); margin: auto; padding: 28px; border: 1px solid #727960; border-radius: 16px; color: var(--text); background: #242b22; }
.br-dialog::backdrop { background: #0f1412ba; backdrop-filter: blur(4px); }
.br-dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.br-dialog h2 { font-size: 1.2rem; font-weight: 500; letter-spacing: -.02em; }
.br-roster { display: grid; gap: 3px; margin: 16px 0 24px; }
.br-roster-row { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 13px 0; border-bottom: 1px solid #46503b; }
.br-roster-row > div { min-width: 0; display: grid; gap: 4px; }
.br-roster-row strong { color: #e5e6d8; overflow-wrap: anywhere; font-size: 1rem; font-weight: 500; }
.br-roster-row .br-button { flex-shrink: 0; font-size: .84rem; }

/* Original player-card page: override its shared inline identity colour only here. */
body.bomb-card-page { padding: 56px 12px 24px; justify-content: flex-start; }
.br-page #i18n-toggle, body.bomb-card-page #i18n-toggle { --accent: #c6a77d; background: #262d24; border-color: #59624c; box-shadow: none; }
body.bomb-card-page #i18n-toggle { position: absolute; }
.br-page #i18n-toggle button, body.bomb-card-page #i18n-toggle button { color: #b8c0ac; }
.br-page #i18n-toggle button.active, body.bomb-card-page #i18n-toggle button.active { color: #252b21; box-shadow: none; }
.secret-card.br-card { max-width: 420px; width: 100%; gap: 10px; padding: 16px 14px; border: 1px solid #515b46; border-radius: 18px; background: #20281e; box-shadow: 0 8px 32px #0002; animation: none; display: flex; flex-direction: column; align-items: stretch; text-align: left; }
.br-card .name-banner { align-self: flex-start; color: #e5e9da !important; border-color: transparent !important; background: transparent !important; box-shadow: none !important; padding: 0 0 7px; margin: 0; border-width: 0; border-radius: 0; font-size: 1rem; font-weight: 500; line-height: 1.4; letter-spacing: 0; }
.br-card .name-banner::before { display: none; }
.br-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; padding-bottom: 3px; }
.br-card-brand { color: #c2c8b5; font-size: .64rem; letter-spacing: .12em; }
.br-card .br-pill { font-size: .68rem; color: #b7bfab; }
.br-card-scene { display: grid; min-width: 0; }
.br-card .br-scene-title { padding: 19px 16px; border-radius: 10px; }
.br-card .br-scene-title .br-kicker { font-size: .64rem; letter-spacing: .09em; }
.br-scene-title.is-compact { text-align: left; }
.br-scene-title.is-compact h2 { font-size: 1.43rem; margin-top: 10px; line-height: 1.25; letter-spacing: -.025em; }
.br-card .br-zh { font-size: .87rem; line-height: 1.5; margin-top: 12px; }
.br-zone { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 17px 12px; border-radius: 10px; background: #2b3326; border: 1px solid #4d5a41; text-align: center; }
.br-zone h3 { color: #ebe8dc; font-size: 1.14rem; font-weight: 500; line-height: 1.35; }
.br-zone p { color: #c4ccba; font-size: .9rem; line-height: 1.55; }
.br-zone-line { font-weight: 500; font-size: .98rem !important; }
.br-zone .br-bomb { width: 48px; height: 48px; }
.br-zone-hot .br-hot-head { display: flex; align-items: center; justify-content: center; gap: 10px; text-align: left; }
.br-zone-hot .br-hot-head .br-bomb { width: 25px; height: 25px; flex-shrink: 0; margin: 0; }
.br-huge { width: 100%; min-height: 56px; font-size: 1.1rem; font-weight: 600; border-radius: 8px; margin-top: 3px; }
.br-zone-hot { background: #343b29; border: 1px solid #a4916b; }
.br-zone-hot h3 { color: #f1e4ce; }
.br-zone-next { border-color: #77856b; background: #2b3626; }
.br-zone-next h3 { color: #d8e1c7; font-size: 1.05rem; }
.br-zone-start { border-color: #8b805f; background: #303729; }
.br-zone-boom { background: #383428; border-color: #92775e; }
.br-zone-boom.is-you { border-color: #c29b7b; }
.br-zone-boom .br-burst { width: 96px; height: 116px; }
.br-zone-boom .br-fire { width: 96px; height: 96px; }
.br-zone-boom .br-burst strong { font-size: 1.1rem; }
.br-challenge { display: grid; gap: 6px; }
.br-bounce-btn { border-color: #6e7359; color: #d6d9c1; background: #303a29; }
.br-mine { display: grid; justify-items: start; gap: 8px; padding: 4px 0; }
.br-card .br-seats { margin-top: 2px; gap: 7px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.br-card .br-seat { padding: 10px 9px; border-radius: 7px; }
.br-card .br-seat-name { font-size: .83rem; }
.br-card .br-seat-count { font-size: .69rem; }
.br-card .br-seat .br-thumbs { display: none; }
.br-card-tools { display: flex; justify-content: center; padding-top: 2px; }
.br-card.is-holder { border-color: #b4a17c; }
.br-card.is-next { border-color: #7d8c6c; }
.br-card.is-start { border-color: #978969; }
.br-card.is-boom { border-color: #bc9173; }
.br-card .br-final { padding: 6px 0; }
.br-card .br-rank { padding: 12px 10px; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 5px 9px; }
.br-demo-phone { max-width: 420px; margin: 0 auto; }
.br-page [hidden], .br-card [hidden] { display: none !important; }

/* Animation communicates a live bomb, never its remaining time. */
@keyframes br-live { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(-5deg); } }
@keyframes br-spark { 0%, 100% { opacity: .68; transform: rotate(11deg) scale(.88); } 50% { opacity: 1; transform: rotate(11deg) scale(1); } }
@keyframes br-impact { 0% { opacity: .35; scale: .45; } 35% { opacity: 1; scale: 1.08; } 70% { opacity: .92; scale: 1; } 100% { opacity: .72; scale: .97; } }
@keyframes br-wave { 0% { opacity: .65; scale: .6; } 100% { opacity: 0; scale: 1.18; } }
@media (max-width: 820px) {
  .br-main { grid-template-columns: 1fr; gap: 16px; }
  .br-focus { min-height: 0; }
  .br-stage .br-focus { padding: 20px 16px; }
  .br-stage .br-focus .br-bomb { width: 72px; height: 72px; }
  .br-stage .br-who { font-size: 2rem; }
  .br-stage .br-hint { font-size: .94rem; max-width: none; }
}
@media (max-width: 560px) {
  .br-page { padding-inline: 16px; }
  .br-page .topbar { margin-bottom: 18px; }
  .br-playing .header { margin-bottom: 16px; }
  .br-panel { padding: 24px 18px; }
  .br-stage { padding: 16px; border-radius: 15px; }
  .br-stage .br-strip { margin-bottom: 16px; }
  .br-stage .br-scene-title { padding: 25px 21px; }
  .br-stage .br-scene-title h2 { font-size: 1.9rem; }
  .br-settings { grid-template-columns: 1fr; gap: 16px; }
  .br-seat { padding: 12px 10px; }
  .br-seats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .br-session-actions .br-button { flex: 1 1 calc(50% - 5px); min-width: 0; }
  .br-session-actions { position: sticky; bottom: max(8px, env(safe-area-inset-bottom)); z-index: 3; padding: 8px; border: 1px solid #677153; border-radius: 11px; background: #252e21f5; box-shadow: 0 4px 16px #0003; }
  .br-dialog { padding: 21px; }
}
@media (max-width: 380px) {
  .br-card { padding: 14px 12px; }
  .br-scene-title.is-compact h2 { font-size: 1.32rem; }
  .br-card .br-scene-title { padding: 17px 14px; }
  .br-zone-hot h3 { font-size: 1.03rem; }
  .br-huge { font-size: 1.02rem; }
}
@media (max-width: 560px) and (max-height: 650px) {
  .br-session-actions { position: static; }
}
/* Results use normal document flow so every rank and collected card can be read. */
#br-game:has(.br-phase-finished) .br-session-actions { position: static; }
@media (prefers-reduced-motion: reduce) {
  .br-page *, .br-page *::before, .br-page *::after, .br-card *, .br-card *::before, .br-card *::after { animation: none !important; transition: none !important; }
}

/* Approved artwork. The prompt stays on paper; only the game surrounds change. */
body.br-page[data-br-edition="halloween"],
body.bomb-card-page:has(.br-card.br-edition-halloween) {
  --bg: #17121a; --surface: #211923; --surface-2: #2a202d;
  --border: #3a2d3c; --br-line: #443443; --br-muted: #c1b0bc;
  --btn-face: #35293a; --btn-face-hi: #433149;
  --accent: #dd9b62; --br-brass: #dd9b62;
  background: radial-gradient(ellipse at 85% 0, #57304d21, transparent 45%), #17121a;
}
.br-stage.br-edition-halloween, .secret-card.br-card.br-edition-halloween {
  --br-brass: #dd9b62; --br-muted: #c1b0bc; --br-line: #443443;
  --btn-face: #35293a; --btn-face-hi: #433149;
  background: #211923; border-color: #564052;
}
.br-edition-halloween .br-focus, .br-edition-halloween .br-zone,
.br-edition-halloween .br-seat { background: #2b202d; border-color: #524054; }
.br-edition-halloween .br-zone-hot, .br-edition-halloween .br-zone-start,
.br-edition-halloween .br-seat.is-holder { background: #3b2936; border-color: #b37d5b; }
.br-edition-halloween .br-zone-next, .br-edition-halloween .br-seat.is-next { background: #332637; border-color: #8d718d; }
.br-edition-halloween .br-zone-boom { background: #3e272d; border-color: #b67d65; }
.br-edition-halloween .br-seat-name, .br-edition-halloween .br-zone h3 { color: #f3e9e1; }
.br-edition-halloween .br-seat-count, .br-edition-halloween .br-zone p { color: #d1c1cb; }
.br-edition-halloween .br-button:not(.br-primary):not(.br-pass):not(.br-stop),
body.br-page[data-br-edition="halloween"] .br-button:not(.br-primary):not(.br-pass):not(.br-stop) { border-color: #75627a; color: #eadce9; }
.br-edition-halloween .br-bounce-btn { background: #34263a; border-color: #75627a; color: #eadce9; }
.br-edition-halloween .br-field select,
body.br-page[data-br-edition="halloween"] .br-field select { background: #241a28; border-color: #6e566d; }
.br-hero-art { position: relative; isolation: isolate; flex-shrink: 0; display: block; width: 154px; height: 154px; }
.br-setup-emblem:has([data-br-hero]) { width: 154px; height: 154px; border: 0; border-radius: 0; background: transparent; }
.br-hero-monster { position: absolute; inset: 0; display: block; transform-origin: 50% 88%; animation: br-art-idle 3.6s ease-in-out infinite; }
.br-hero-crop { display: block; position: absolute; background-repeat: no-repeat; overflow: hidden; }
.br-hero-classic, .br-hero-burst { position: absolute; inset: 0; display: block; background-repeat: no-repeat; background-position: center; }
.br-hero-classic { background-size: contain; transform-origin: 50% 75%; animation: br-art-classic .85s ease-in-out infinite; }
.br-hero-burst { display: none; background-size: 300% 200%; }
.br-hero-art[data-br-edition="classic"] .br-hero-monster,
.br-hero-art[data-br-edition="halloween"] .br-hero-classic,
.br-hero-art[data-br-edition="halloween"] .br-hero-burst { display: none; }
.br-hero-art[data-br-expression="warning"] .br-hero-monster,
.br-hero-art[data-br-expression="rage"] .br-hero-monster { animation: none; transform: none; }
.br-hero-art[data-br-edition="classic"][data-br-expression="angry"] .br-hero-classic,
.br-hero-art[data-br-edition="classic"][data-br-expression="burst"] .br-hero-classic,
.br-hero-art[data-br-edition="classic"][data-br-expression="spent"] .br-hero-classic { display: none; }
.br-hero-art[data-br-edition="classic"][data-br-expression="angry"] .br-hero-burst { display: block; background-position: 50% 0%; animation: br-art-angry .16s ease-in-out infinite; }
.br-hero-art[data-br-edition="classic"][data-br-expression="burst"] .br-hero-burst { display: block; animation: br-art-burst .85s step-end 1 forwards, br-art-smoke .85s linear 1 forwards; }
.br-hero-art[data-br-edition="classic"][data-br-expression="spent"] .br-hero-burst { display: block; background-position: 100% 100%; opacity: 0; }
.br-hero-art[data-br-paused="true"] *, .br-chase[data-br-paused="true"] * { animation-play-state: paused; }
.br-card-art { display: flex; align-items: center; justify-content: center; margin: -3px 0 0; }
.br-card .br-hero-art { width: 154px; height: 154px; }
.br-chase { width: 100%; max-width: 420px; margin: 0 auto 12px; }
.br-chase-caption { color: var(--br-muted); font-size: .75rem; line-height: 1.5; margin: 0 3px 6px; overflow-wrap: anywhere; }
.br-chase-lane { height: 90px; position: relative; overflow: hidden; isolation: isolate; border: 1px solid #4b3548; border-radius: 12px; background: #251b28; contain: paint; }
.br-chase-ground { position: absolute; inset: auto 8% 11px; height: 1px; background: linear-gradient(90deg, transparent, #60444e 14%, #60444e 86%, transparent); }
.br-run-actor { position: absolute; bottom: 11px; width: 76px; height: 76px; isolation: isolate; }
.br-run-monster { left: calc(50% - 81px); }
.br-run-avatar { left: calc(50% + 5px); }
.br-run-paint { display: block; position: absolute; overflow: hidden; background-repeat: no-repeat; pointer-events: none; user-select: none; }
.br-run-upper { z-index: 3; transform: none; animation: none; }
.br-run-leg, .br-run-knee { position: absolute; width: 0; height: 0; transform-origin: 0 0; }
.br-run-leg { animation: br-run-thigh .48s linear infinite; }
.br-run-leg-back { z-index: 1; animation-delay: -.24s; }
.br-run-leg-front { z-index: 4; }
.br-run-knee { animation: br-run-knee .48s linear infinite; }
.br-run-leg-back .br-run-knee { animation-delay: -.24s; }
.br-run-shadow { position: absolute; z-index: 0; left: 21px; right: 21px; bottom: -1px; height: 5px; border-radius: 50%; background: #0000003d; }
.br-card-appearance { border-top: 1px solid var(--br-line); padding-top: 2px; }
.br-card-appearance summary { min-height: 44px; padding: 12px 2px; color: var(--br-muted); font-size: .8rem; cursor: pointer; }
.br-avatar-picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 1px 0 13px; }
.br-avatar-choice { min-width: 0; min-height: 72px; display: flex; align-items: center; flex-direction: column; gap: 3px; padding: 7px 2px; border: 1px solid #585247; border-radius: 10px; background: #292922; color: #d8d2c6; font: inherit; font-size: .75rem; cursor: pointer; }
.br-avatar-choice[aria-pressed="true"] { border-color: var(--br-brass); background: #3b3027; color: #fff1df; }
.br-avatar-choice:disabled { opacity: .5; cursor: default; }
.br-avatar-art { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; }
.br-avatar-art > span { display: block; flex-shrink: 0; overflow: hidden; background-repeat: no-repeat; }
.br-card-monster { gap: 7px; margin-bottom: 9px; }
.br-card-appearance .br-soft { font-size: .75rem; }
.br-avatar-choice:focus-visible, .br-card-appearance summary:focus-visible { outline: 2px solid #e4c59a; outline-offset: 3px; }
.br-edition-halloween .br-avatar-choice { background: #2a202d; border-color: #594455; }
.br-edition-halloween .br-avatar-choice[aria-pressed="true"] { background: #412b39; border-color: #dd9b62; }
@keyframes br-art-idle { 0%,100% { transform: rotate(-1.5deg); } 50% { transform: rotate(1.5deg); } }
@keyframes br-art-classic { 0%,100% { transform: rotate(-.35deg); } 50% { transform: rotate(.35deg); } }
@keyframes br-art-angry { 0%,100% { transform: rotate(-1deg); } 50% { transform: rotate(1deg) translateY(-.5px); } }
@keyframes br-art-burst { 0% { background-position: 100% 0%; } 20% { background-position: 0% 100%; } 55% { background-position: 50% 100%; } 78%,100% { background-position: 100% 100%; } }
@keyframes br-art-smoke { 0%,65% { opacity: 1; } 100% { opacity: 0; } }
@keyframes br-run-thigh { 0%,100% { transform: rotate(-34deg); } 18% { transform: rotate(0deg); } 36% { transform: rotate(38deg); } 52% { transform: rotate(26deg); } 68% { transform: rotate(-52deg); } 84% { transform: rotate(-50deg); } }
@keyframes br-run-knee { 0%,100% { transform: rotate(22deg); } 18% { transform: rotate(10deg); } 36% { transform: rotate(30deg); } 52% { transform: rotate(108deg); } 68% { transform: rotate(116deg); } 84% { transform: rotate(58deg); } }
@media (max-width: 380px), (max-width: 500px) and (max-height: 700px) {
  /* Scale only the decorative art, leaving the prompt and 56px pass target. */
  .br-card-art { height: 60px; }
  .br-card .br-hero-art { transform: scale(.38961); transform-origin: center; }
}
@media (max-width: 820px) {
  .br-stage .br-hero-art { margin-block: -41px; transform: scale(.46753); transform-origin: center; }
}
@media (prefers-reduced-motion: reduce) {
  .br-hero-art *, .br-chase * { animation: none !important; transition: none !important; }
  .br-run-leg-front { transform: rotate(-30deg); }
  .br-run-leg-back { transform: rotate(28deg); }
  .br-run-leg-front .br-run-knee { transform: rotate(25deg); }
  .br-run-leg-back .br-run-knee { transform: rotate(95deg); }
  .br-hero-art[data-br-edition="classic"][data-br-expression="burst"] .br-hero-burst { background-position: 0% 100%; opacity: 1; }
}
