/* Module "bomber" (2.97.0, src/modules/bomber): the match card in the room chat and the game's own page (public/bomber/).
   Pages only get this file when the module is on (src/routes/pages.js); the game page links it itself. */

/* Pixel font, delivered locally (SIL OFL 1.1, public/fonts/PressStart2P-OFL.txt) */
@font-face { font-family: "Press Start 2P"; src: url("/fonts/PressStart2P-Regular.ttf") format("truetype"); font-display: swap; }

.msg.bomber-msg { display: block; margin-left: -8px; }
.bomber-card { border-left: 2px solid #e8433a; background: linear-gradient(90deg, rgba(232, 67, 58, .12), rgba(8, 5, 13, .2) 80%); padding: 8px 10px; }
.bomber-head { display: flex; flex-direction: column; gap: 3px; margin-bottom: 6px; }
.bomber-px { font: 11px/1.6 "Press Start 2P", var(--data); color: #ff7a5c; text-shadow: 2px 2px 0 #3a0a00; letter-spacing: .06em; }
.bomber-by { font: .66rem/1.2 var(--data); color: var(--ui-dim); }
.bomber-body { display: flex; flex-direction: column; gap: 6px; font: .76rem/1.45 var(--data); color: var(--ui-text); }
.bomber-line { margin: 0; overflow-wrap: anywhere; }
.bomber-count { color: #ff7a5c; }
.bomber-dot { display: inline-block; width: .7em; height: .7em; border-radius: 50%; margin-right: 6px; vertical-align: -.05em; box-shadow: 0 0 0 1px rgba(0, 0, 0, .5); }
.bomber-players, .bomber-score { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.bomber-score { list-style: decimal inside; }
.bomber-players li { display: flex; justify-content: space-between; gap: 8px; }
.bomber-players li b { color: #ffd84c; font-weight: 400; letter-spacing: .1em; }
.bomber-score li { display: list-item; }
.bomber-score li b { float: right; font-weight: 400; }
.bomber-players li.me span { color: var(--k-gold); }
.bomber-score li.win { color: #ff7a5c; }
.bomber-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.bomber-actions:empty { display: none; }
.bomber-bets { display: flex; flex-direction: column; gap: 4px; padding-top: 4px; border-top: 1px solid var(--k-line-soft); }
.bomber-bet { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.bomber-bet select, .bomber-bet input { font: .72rem var(--data); background: rgba(8, 5, 13, .6); color: var(--ui-text); border: 1px solid var(--k-line-soft); border-radius: 3px; padding: 3px 5px; min-width: 0; }
.bomber-bet input { width: 6em; }

/* The game's page: dark, the field centred and as big as the window allows */
.bomber-page { margin: 0; height: 100vh; overflow: hidden; background: radial-gradient(circle at 50% 40%, #1c0d14, #050308 75%); color: #ddd; font: 13px/1.4 system-ui, sans-serif;
  display: flex; flex-direction: column; align-items: center; }
.bomber-page #field { display: block; outline: none; image-rendering: pixelated; box-shadow: 0 0 0 2px #2a1520, 0 10px 40px rgba(0, 0, 0, .6); }
.bomber-hud { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; padding: 6px 8px; min-height: 26px; }
.bomber-chip { --c: #888; padding: 3px 8px; border-radius: 12px; border: 1px solid var(--c); background: color-mix(in srgb, var(--c) 18%, transparent); font-weight: 600; white-space: nowrap; }
.bomber-chip.me { box-shadow: 0 0 0 1px #ffd84c; }
.bomber-chip.dead { opacity: .4; text-decoration: line-through; }
.bomber-stars i { font-style: normal; color: rgba(255, 255, 255, .22); }
.bomber-stars i.won { color: #ffd84c; text-shadow: 0 0 4px rgba(255, 216, 76, .6); }
.bomber-info { color: #bbb; white-space: nowrap; }
.bomber-help { color: #888; font-size: 12px; padding: 4px 8px; text-align: center; display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: center; }
.bomber-help [hidden] { display: none; }
.bomber-credit { color: #777; font-size: 11px; }
.bomber-wait { position: fixed; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; padding: 16px; background: radial-gradient(circle at 50% 40%, #2a0d0a, #000 70%); }
.bomber-wait[hidden] { display: none; }
.bomber-wait b { font: 18px/1.6 "Press Start 2P", monospace; color: #ff7a5c; text-shadow: 3px 3px 0 #3a0a00; }
.bomber-result { display: grid; gap: 2px; font: 14px/1.5 monospace; }
.bomber-result[hidden] { display: none; }
.bomber-close { font: inherit; padding: 6px 14px; border-radius: 4px; border: 1px solid #e8433a; background: transparent; color: #ff7a5c; cursor: pointer; }
.bomber-close[hidden] { display: none; }
