:root { --cream: #fff4e2; --ink: #2a1c14; --panel: rgba(38, 24, 16, .74); --line: rgba(255, 236, 205, .16); --red: #e8433a; --orange: #f08a2a; --yellow: #f4c430; --teal: #25b3a7;
  --font: "Trebuchet MS", "Segoe UI", system-ui, sans-serif; --heavy: "Arial Black", "Segoe UI Black", "Trebuchet MS", sans-serif }
* { box-sizing: border-box; margin: 0 }
html, body { height: 100%; overflow: hidden; background: #e9d9c2; color: var(--cream); font: 14px/1.35 var(--font) }
button { font: inherit; cursor: pointer; border: 0; color: inherit; background: none }
#game, #game canvas { position: fixed; inset: 0; display: block }
.hidden { display: none !important }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #5fe07a; box-shadow: 0 0 8px #5fe07a; margin-right: 6px; vertical-align: 1px }
.dot.red { background: #ff4a3a; box-shadow: 0 0 8px #ff4a3a; animation: blink 1.4s infinite }
@keyframes blink { 50% { opacity: .35 } }

/* ---------- landing ---------- */
#landing { position: fixed; inset: 0; pointer-events: none; display: grid; grid-template-columns: minmax(330px, 420px) 1fr 270px; grid-template-rows: auto 1fr; gap: 0 24px; padding: 0 22px 22px;
  background: linear-gradient(90deg, rgba(30, 18, 10, .55) 0, rgba(30, 18, 10, .15) 32%, rgba(0, 0, 0, 0) 50%) }
#landing > * { pointer-events: auto }
nav.top { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; height: 58px; padding: 0 4px; text-shadow: 0 1px 3px rgba(0, 0, 0, .45) }
.brand { font: 900 22px var(--heavy); letter-spacing: 1px; color: #fff; text-decoration: none; display: flex; align-items: center; gap: 9px }
.pillicon { width: 30px; height: 14px; border-radius: 8px; background: linear-gradient(90deg, #fff 50%, var(--red) 50%); box-shadow: 0 0 0 2px #2a1c14 inset, 0 2px 5px rgba(0, 0, 0, .3); transform: rotate(-25deg) }
.links { display: flex; gap: 4px; margin-left: 12px; flex: 1; flex-wrap: wrap }
.links button, .links a { padding: 7px 11px; border-radius: 9px; font-weight: 700; color: #fff; text-decoration: none; font-size: 13px }
.links button:hover, .links a:hover { background: rgba(255, 255, 255, .14) }
.online { font-weight: 800; background: var(--panel); padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; letter-spacing: .5px }
.hero { grid-column: 1; align-self: center; display: flex; flex-direction: column; gap: 6px }
.hero h1 { font: 900 64px/0.95 var(--heavy); letter-spacing: 1px; color: #fff; text-shadow: 0 4px 0 var(--red), 0 8px 18px rgba(0, 0, 0, .35); -webkit-text-stroke: 2px #2a1c14 }
.hero .line { font: 900 30px/1.02 var(--heavy); color: #fff; text-shadow: 0 2px 6px rgba(0, 0, 0, .4); margin-top: 6px }
.hero .line em { font-style: normal; color: var(--yellow) }
.hero .sub { color: #fff; font-weight: 700; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); margin-bottom: 8px }
.setup { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 9px; backdrop-filter: blur(6px); box-shadow: 0 10px 30px rgba(0, 0, 0, .25) }
.setup label { display: flex; flex-direction: column; gap: 5px; font-size: 11px; font-weight: 800; letter-spacing: 1px; color: #e9cfa8 }
.setup input { background: rgba(255, 244, 226, .95); color: var(--ink); border: 0; border-radius: 10px; padding: 9px 11px; font: 700 15px var(--font); outline: 2px solid transparent }
.setup input:focus { outline-color: var(--orange) }
.row { display: grid; grid-template-columns: 62px 1fr; align-items: center; gap: 8px }
.row > span { font-size: 11px; font-weight: 800; letter-spacing: 1px; color: #e9cfa8 }
.chips { display: flex; flex-wrap: wrap; gap: 5px }
.chip { padding: 6px 10px; border-radius: 9px; background: rgba(255, 244, 226, .1); border: 1px solid var(--line); font-weight: 800; font-size: 12px; color: #fff }
.chip.on { background: var(--cream); color: var(--ink); border-color: var(--cream) }
.chip.off { opacity: .4; cursor: not-allowed }
.chip small { font-size: 9px; letter-spacing: .5px; margin-left: 4px; opacity: .8 }
.swatches { display: flex; flex-wrap: wrap; gap: 6px }
.sw { width: 24px; height: 24px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); box-shadow: 0 1px 3px rgba(0, 0, 0, .35) }
.sw.pill { width: 30px; border-radius: 12px }
.sw.on { border-color: #fff; transform: scale(1.12); box-shadow: 0 0 0 2px var(--orange) }
.playrow { display: flex; align-items: center; gap: 10px; margin-top: 2px }
#preview { width: 64px; height: 64px; border-radius: 14px; background: radial-gradient(circle at 50% 40%, #ffe9c6, #e9b98a) }
#play { flex: 1; height: 56px; border-radius: 15px; background: linear-gradient(180deg, #ff6a4a, var(--red)); font: 900 26px var(--heavy); letter-spacing: 2px; color: #fff; box-shadow: 0 5px 0 #a3241c, 0 10px 18px rgba(0, 0, 0, .25); text-shadow: 0 2px 0 rgba(0, 0, 0, .25) }
#play:hover { filter: brightness(1.07) } #play:active { transform: translateY(3px); box-shadow: 0 2px 0 #a3241c }
.live { grid-column: 3; align-self: start; margin-top: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; backdrop-filter: blur(6px) }
.livehead { font-weight: 900; letter-spacing: 1px; display: flex; align-items: center }
.livehead span { margin-left: auto; font: 900 18px var(--heavy) }
.livemap { font-size: 11px; font-weight: 800; letter-spacing: 1px; color: #e9cfa8; margin: 2px 0 8px }
/* the district on a small canvas (landing panel + HUD corner): same drawing, two sizes */
.map, .minimap canvas { display: block; width: 100%; height: auto; border-radius: 11px; border: 1px solid var(--line); background: rgba(28, 17, 10, .66) }
.minimap { position: absolute; left: 16px; bottom: 46px; width: 150px }
.livevent { min-height: 15px; margin: 7px 0 5px; text-align: center; font: 900 11px var(--heavy); letter-spacing: 1px }
.livevent b { color: var(--yellow); margin-right: 6px }
.livevent span, .livevent .soon { color: #ffd9a0; font-weight: 800; letter-spacing: .5px }
.livevent.on b { text-shadow: 0 0 12px rgba(244, 196, 48, .55); animation: evpulse 1.1s ease-in-out infinite }
@keyframes evpulse { 50% { opacity: .72 } }
.holdstrip { display: none; gap: 4px; margin-top: 6px }
.holdstrip b { flex: 1; display: flex; align-items: center; justify-content: center; gap: 4px; min-width: 0; padding: 3px 2px; border-radius: 6px; border: 1px solid rgba(255, 236, 205, .18); background: rgba(255, 244, 226, .06); font: 800 8.5px var(--font); letter-spacing: .4px; color: #f4e6cc; white-space: nowrap; overflow: hidden }
.holdstrip b i { width: 7px; height: 7px; border-radius: 50%; flex: none }
.holdstrip b.cur { background: rgba(255, 244, 226, .14); color: #fff }
.live ol, .board { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 3px }
.live li, .board li { display: grid; grid-template-columns: 18px 1fr auto; gap: 6px; align-items: center; font-weight: 800; font-size: 13px }
.live li i, .board li i { font-style: normal; opacity: .65; font-size: 11px }
.tagbot { font-size: 8.5px; letter-spacing: .5px; background: rgba(255, 255, 255, .18); border-radius: 4px; padding: 1px 4px; margin-left: 5px; vertical-align: 1px; font-weight: 800 }
.note { font-size: 10.5px; color: #e9cfa8; margin-top: 8px; line-height: 1.3 }
#watch { width: 100%; margin-top: 10px; padding: 8px; border-radius: 10px; background: rgba(255, 244, 226, .12); border: 1px solid var(--line); font-weight: 900; font-size: 12px; letter-spacing: 1px }
body.watching #landing > *:not(nav) { display: none } body.watching #landing { background: none }

/* ---------- HUD ---------- */
#hud { position: fixed; inset: 0; pointer-events: none; text-shadow: 0 1px 3px rgba(0, 0, 0, .55) }
.clock { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); text-align: center }
.clock b { display: block; font: 900 30px var(--heavy); color: #fff }
.clock span { font-size: 11px; font-weight: 800; letter-spacing: 1.5px; color: #fff5dd }
.event { position: absolute; top: 74px; left: 50%; transform: translateX(-50%); text-align: center; font: 900 15px var(--heavy); letter-spacing: 1.5px; opacity: 0; transition: opacity .3s; white-space: nowrap }
.event b { color: var(--yellow); -webkit-text-stroke: 1px #2a1c14; text-shadow: 0 2px 0 rgba(42, 28, 20, .6) }
.event span { font-size: 10.5px; font-weight: 800; letter-spacing: 1px; color: #ffd9a0; margin-left: 8px }
.event.on { opacity: 1; transition: none }
.event.on b { animation: evpulse 1.1s ease-in-out infinite }
.event.wait { opacity: .55 } .event.wait span { color: #e9cfa8 }
.holdstrip.hud { display: none; position: absolute; top: 104px; left: 50%; transform: translateX(-50%); width: min(430px, 60vw); padding: 3px; border-radius: 9px; background: rgba(28, 17, 10, .5); border: 1px solid var(--line) }
.holdstrip.hud b { font-size: 9px }
.board { position: absolute; top: 14px; left: 16px; width: 190px; background: rgba(38, 24, 16, .45); border-radius: 12px; padding: 8px 10px }
.board li.me { color: var(--yellow) }
.cross { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; transform: translate(-50%, -50%) }
.cross i { position: absolute; background: #fff; box-shadow: 0 0 2px rgba(0, 0, 0, .8); border-radius: 2px }
.cross i:nth-child(1) { left: 10px; top: 0; width: 2px; height: 7px } .cross i:nth-child(2) { left: 10px; bottom: 0; width: 2px; height: 7px }
.cross i:nth-child(3) { top: 10px; left: 0; height: 2px; width: 7px } .cross i:nth-child(4) { top: 10px; right: 0; height: 2px; width: 7px }
.hitmark { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; transform: translate(-50%, -50%) rotate(45deg); opacity: 0; transition: opacity .12s }
.hitmark::before, .hitmark::after { content: ''; position: absolute; background: #fff; left: 14px; top: 0; width: 2px; height: 30px; box-shadow: 0 0 3px #000 }
.hitmark::after { transform: rotate(90deg) } .hitmark.on { opacity: 1; transition: none } .hitmark.kill::before, .hitmark.kill::after { background: var(--red) }
.hp { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); text-align: center; width: 200px }
.hp b { font: 900 32px var(--heavy); color: #fff } .hp span { font-weight: 800; margin-left: 4px; font-size: 12px }
.bar { height: 8px; border-radius: 6px; background: rgba(0, 0, 0, .35); overflow: hidden; margin-top: 3px } .bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #ff6a4a, #ffd166); transition: width .15s }
.ammo { position: absolute; bottom: 20px; right: 24px; text-align: right }
.ammo b { font: 900 34px var(--heavy); color: #fff } .ammo span { font-weight: 800; opacity: .8; margin-left: 3px } .ammo em { display: block; font-style: normal; font-size: 11px; letter-spacing: 1.5px; font-weight: 800 }
.reload { height: 4px; width: 120px; margin: 5px 0 0 auto; background: rgba(0, 0, 0, .3); border-radius: 3px; overflow: hidden; visibility: hidden } .reload.on { visibility: visible } .reload i { display: block; height: 100%; width: 0; background: var(--teal) }
.esc { position: absolute; bottom: 22px; left: 22px; font-size: 11px; font-weight: 900; letter-spacing: 1.5px; opacity: .75 }
.toast { position: absolute; top: 33%; left: 50%; transform: translateX(-50%); font: 900 20px var(--heavy); color: #fff; opacity: 0; transition: opacity .25s }
.toast.on { opacity: 1; transition: none }
.pickup { position: absolute; top: 27%; left: 50%; transform: translateX(-50%); font: 900 24px var(--heavy); color: #7cff8a; -webkit-text-stroke: 1px #2a1c14; text-shadow: 0 3px 0 rgba(42, 28, 20, .55); opacity: 0; transition: opacity .25s; pointer-events: none }
.pickup.on { opacity: 1; transition: none }
.vignette { position: absolute; inset: 0; box-shadow: inset 0 0 140px rgba(232, 40, 30, .7); opacity: 0; transition: opacity .35s }
.center { position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%); text-align: center }
.center h2 { font: 900 64px var(--heavy); color: #fff; -webkit-text-stroke: 2px #2a1c14; text-shadow: 0 5px 0 var(--red) }
.center p { font: 900 18px var(--heavy); letter-spacing: 3px; color: #fff }
.center .num { font: 900 110px var(--heavy); color: var(--yellow); -webkit-text-stroke: 3px #2a1c14; text-shadow: 0 6px 0 #a3241c; animation: pop .45s ease-out }
@keyframes pop { from { transform: scale(1.6); opacity: 0 } to { transform: scale(1); opacity: 1 } }
#dead { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(circle, rgba(232, 67, 58, .0) 30%, rgba(120, 20, 10, .45)); pointer-events: none; text-shadow: 0 3px 8px rgba(0, 0, 0, .5) }
#dead b { font: 900 76px var(--heavy); color: #fff; -webkit-text-stroke: 2px #2a1c14; text-shadow: 0 6px 0 var(--red) } #dead span { font-weight: 800; font-size: 16px; margin-top: 4px } #dead em { font: 900 22px var(--heavy); font-style: normal; color: var(--yellow); margin-top: 14px }
#dead b span { font: inherit; margin: 0; color: #ffd24a; display: block }
#dead .guns button b { font: 900 12px var(--heavy); color: #fff; -webkit-text-stroke: 0; text-shadow: none; display: block } #dead .guns button span { font-size: 9.5px; font-weight: 700; margin: 0 }
#results { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: rgba(30, 18, 10, .55); backdrop-filter: blur(3px) }
#results h2 { font: 900 60px var(--heavy); color: #fff; -webkit-text-stroke: 2px #2a1c14; text-shadow: 0 5px 0 var(--red) }
#podium { list-style: none; padding: 0; display: flex; gap: 14px; align-items: flex-end }
#podium li { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; min-width: 150px; text-align: center }
#podium li b { display: block; font: 900 15px var(--heavy); color: var(--yellow); letter-spacing: 1px } #podium li strong { display: block; font: 900 22px var(--heavy); margin: 4px 0 } #podium li span { font-weight: 800 }
#podium li.first { padding: 22px 26px; border-color: var(--yellow) } #podium li.me { box-shadow: 0 0 0 3px var(--orange) }
#results p { font: 900 18px var(--heavy); letter-spacing: 2px } #results .next { font-size: 12px; opacity: .8; letter-spacing: 2px }
#menu, #modal { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(30, 18, 10, .5); backdrop-filter: blur(4px); z-index: 5 }
.card { background: #2c1d14; border: 1px solid var(--line); border-radius: 20px; padding: 22px; min-width: 300px; max-width: 520px; display: flex; flex-direction: column; gap: 12px; position: relative; box-shadow: 0 20px 50px rgba(0, 0, 0, .4) }
.card h3 { font: 900 26px var(--heavy); letter-spacing: 1px } .card label { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 800; font-size: 12px; letter-spacing: 1px }
.card button { padding: 12px; border-radius: 12px; background: var(--red); font: 900 16px var(--heavy); letter-spacing: 1px } .card button.ghost { background: rgba(255, 255, 255, .1) }
.card .x { position: absolute; right: 12px; top: 10px; background: none; padding: 4px 8px; font-size: 16px }
#modalBody h3 { margin-bottom: 4px } #modalBody p { color: #f0dcc0; font-size: 14px; line-height: 1.5 } #modalBody ol { padding-left: 0; list-style: none; display: grid; gap: 10px }
#modalBody li b { display: block; font: 900 15px var(--heavy); color: var(--yellow); letter-spacing: 1px } #modalBody kbd { background: rgba(255, 255, 255, .12); border-radius: 5px; padding: 1px 6px; font: 800 12px var(--font) }

/* ---------- armory ---------- */
#modalCard.wide { width: min(880px, 96vw); max-width: none; max-height: 94vh; overflow-y: auto; padding: 18px }
.arm { display: flex; flex-direction: column; gap: 10px }
.armhead { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap }
.armhead span { font-weight: 800; font-size: 13px; color: var(--yellow); letter-spacing: .5px }
.armsoon { min-height: 16px; font-size: 12px; font-weight: 800; color: #ffd9a0 }
.armgrid { display: grid; grid-template-columns: 238px minmax(240px, 1fr) 210px; gap: 12px; align-items: stretch }
.armguns { display: flex; flex-direction: column; gap: 6px }
.gunrow { display: grid; grid-template-columns: 16px 1fr auto; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 11px; background: rgba(255, 244, 226, .07); border: 1px solid var(--line); text-align: left; font-weight: 800; font-size: 12px; white-space: nowrap; letter-spacing: .5px }
.gunrow i { width: 14px; height: 7px; border-radius: 5px; background: linear-gradient(90deg, var(--cream) 55%, var(--red) 55%); transform: rotate(-22deg) }
.gunrow.sel { background: var(--cream); color: var(--ink); border-color: var(--cream) }
.gunrow span { font-size: 9px; letter-spacing: .5px; opacity: .55 }
.armprev { position: relative; border-radius: 14px; background: radial-gradient(circle at 50% 38%, #3b2a1e, #241812 72%); border: 1px solid var(--line); overflow: hidden; touch-action: none }
.armprev canvas { display: block; width: 100%; height: auto }
.armprev em { position: absolute; left: 10px; bottom: 7px; font: 800 9.5px var(--font); letter-spacing: 1.5px; font-style: normal; color: #e9cfa8; opacity: .8 }
.arminfo { display: flex; flex-direction: column; gap: 7px; background: rgba(255, 244, 226, .06); border: 1px solid var(--line); border-radius: 14px; padding: 12px }
.arminfo h4 { font: 900 22px var(--heavy); letter-spacing: .5px }
.arminfo p { font-size: 12.5px; color: #f0dcc0; line-height: 1.4 }
.tier { align-self: flex-start; font: 900 10px var(--heavy); letter-spacing: 1.5px; border: 1.5px solid; border-radius: 7px; padding: 2.5px 8px; font-style: normal }
.armbtn { margin-top: auto; padding: 10px; border-radius: 11px; background: var(--yellow); color: var(--ink); font: 900 14px var(--heavy); letter-spacing: 1px }
.armbtn.on { background: rgba(255, 244, 226, .14); color: var(--yellow) }
.lock { display: flex; flex-direction: column; gap: 5px; margin-top: auto; background: rgba(0, 0, 0, .28); border: 1px dashed rgba(255, 236, 205, .3); border-radius: 11px; padding: 9px 10px }
.lock b { font: 900 11.5px var(--heavy); letter-spacing: 1px; color: #ffb84a }
.lock span { font-size: 11px; color: #e9cfa8; line-height: 1.35 }
.armnote { font-size: 10.5px !important; font-weight: 800; letter-spacing: .6px; color: #e9cfa8 !important; opacity: .85 }
.armfin { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 7px }
.fincard { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 6px 7px; border-radius: 12px; background: rgba(255, 244, 226, .06); border: 1.5px solid rgba(255, 236, 205, .14) }
.fincard:hover { background: rgba(255, 244, 226, .12) }
.fincard.sel { border-color: var(--tc); background: rgba(255, 244, 226, .13); box-shadow: 0 0 0 1px var(--tc) inset }
.fincard.mine::after { content: '✓'; position: absolute; right: 6px; top: 4px; font: 900 10px var(--font); color: var(--tc) }
.fincard .swb { width: 30px; height: 20px; border-radius: 7px; border: 1.5px solid rgba(255, 255, 255, .3); box-shadow: 0 1px 3px rgba(0, 0, 0, .4) }
.fincard b { font: 800 11px var(--font); letter-spacing: .3px }
.fincard .tr { font: 900 8px var(--heavy); letter-spacing: 1px }
.fincard .lk { font: 900 8px var(--heavy); letter-spacing: .8px; color: #ffb84a; opacity: .85 }
@media (max-width: 980px) { #landing { grid-template-columns: 1fr; overflow-y: auto } .live { grid-column: 1; margin-bottom: 20px } .links { display: none } .hero h1 { font-size: 48px } }
@media (max-width: 640px) {
  #modalCard.wide { padding: 12px }
  .armgrid { grid-template-columns: 1fr; gap: 8px }
  .armguns { flex-direction: row; overflow-x: auto; max-height: none; padding-bottom: 4px }
  .gunrow { min-width: 128px }
  .armprev canvas { max-height: 46vh } .arminfo { padding: 10px }
  .armfin { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 6px }
}

.ts { font-style: normal; font: 900 15px var(--heavy); padding: 1px 9px; border-radius: 7px; margin: 0 5px; color: #fff } .ts.red { background: #e8433a } .ts.blue { background: #3a7be8 }
.tdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px }
.zonetag { position: fixed; left: 0; top: 0; pointer-events: none; text-align: center; text-shadow: 0 1px 3px rgba(0,0,0,.7); z-index: 2 }
.zonetag b { display: block; font: 900 14px var(--heavy); letter-spacing: 1.5px } .zonetag span { font-size: 11px; font-weight: 800; color: #fff }

/* ---------- BATCH B: top bar, lobby panel, ticker, esc menu, death card ---------- */
/* setup: modes as little picture cards, pill/band side by side */
.block { display: flex; flex-direction: column; gap: 5px }
.block > span { font-size: 11px; font-weight: 800; letter-spacing: 1px; color: #e9cfa8 }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px }
.modecards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px }
.modecards .chip { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 4px 7px; border-radius: 12px; background: rgba(255, 244, 226, .08); text-align: center; line-height: 1.1 }
.modecards .chip small { margin: 0 }
.modecards .chip em { font-style: normal; font-size: 9px; font-weight: 800; color: #e9cfa8; letter-spacing: .5px }
/* nav: brand tile + CA / X chips */
.brand .logo { width: 30px; height: 30px; border-radius: 9px; object-fit: cover; box-shadow: 0 0 0 2px #2a1c14 inset, 0 2px 6px rgba(0, 0, 0, .35); display: block }
.sidechips { display: flex; align-items: center; gap: 8px; margin-left: auto }
.chip.ca, .chip.x { padding: 7px 12px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-weight: 900; font-size: 12px; letter-spacing: .5px; color: #fff; text-decoration: none; white-space: nowrap }
.chip.ca.soon { color: #ffd9a0; cursor: help }
.chip.ca:not(.soon):hover, .chip.x:hover { background: rgba(255, 244, 226, .18) }
.chip.ca.copied { color: #7cff8a }
/* the gun row: each blaster chip carries its own little pill-shaped icon in the gun's tint */
.chips .chip.gun { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; font-size: 11px }
.chips .chip.gun i { width: 15px; height: 8px; border-radius: 5px; flex: none; transform: rotate(-22deg); box-shadow: 0 0 0 1.5px #2a1c14 inset }
.modecards .chip b { font: 900 12.5px var(--heavy); letter-spacing: .5px }
/* the landing grid gains a bottom ticker row */
#landing { grid-template-rows: auto 1fr auto }
.ticker { grid-column: 1 / -1; align-self: end; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 7px 14px; font-size: 11.5px; font-weight: 800; letter-spacing: .6px; color: #e9cfa8; backdrop-filter: blur(6px) }
.ticker b { color: #fff; font-weight: 900 } .ticker i { font-style: normal; opacity: .5 }
.ticker span { margin-left: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
/* lobby right panel: 12-seat grid + top of the week */
.seatgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-bottom: 10px }
.seat { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 3px 5px; border-radius: 10px; background: rgba(255, 244, 226, .06); border: 1px solid rgba(255, 236, 205, .1); min-width: 0 }
.seat b { font-size: 9.5px; font-weight: 800; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: .2px }
.seat b .tagbot { margin: 0 0 0 3px }
.seat span { font: 900 12px var(--heavy); color: var(--yellow) }
.seat .av { position: relative; width: 26px; height: 13px; border-radius: 7px; background: linear-gradient(90deg, #f7f4ee 50%, var(--c, #e8433a) 50%); transform: rotate(-22deg); box-shadow: 0 1px 3px rgba(0, 0, 0, .4), 0 0 0 1.5px #2a1c14 inset }
.seat .av::after { content: ''; position: absolute; right: 3px; top: -2px; width: 4px; height: 17px; border-radius: 2px; background: var(--b, #f4c430) }
.seat.me { border-color: var(--orange); background: rgba(240, 138, 42, .14) }
.seat.t1, .seat.t2, .seat.t3 { border-color: var(--yellow); box-shadow: 0 0 0 1px rgba(244, 196, 48, .45) }
.seat.empty { opacity: .45; border-style: dashed }
.seat.empty span { color: #e9cfa8; font-size: 10px }
.week h4 { display: flex; align-items: baseline; justify-content: space-between; font: 900 11px var(--heavy); letter-spacing: 1.2px; color: #e9cfa8; margin-bottom: 5px }
.linkish { font: 800 9.5px var(--font); letter-spacing: .6px; color: var(--yellow); background: none; padding: 2px 4px; border-radius: 6px }
.linkish:hover { background: rgba(255, 244, 226, .12) }
#weekBoard { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 2px }
#weekBoard li { display: grid; grid-template-columns: 16px 1fr auto; gap: 6px; align-items: center; font-size: 11.5px; font-weight: 800; padding: 3px 6px; border-radius: 7px; background: rgba(255, 244, 226, .05) }
#weekBoard li i { font-style: normal; opacity: .6; font-size: 10px }
#weekBoard li b { color: var(--yellow) }
#weekBoard li.t1 { background: rgba(244, 196, 48, .16) } #weekBoard li.t1 b, #weekBoard li.t2 b, #weekBoard li.t3 b { color: var(--yellow) }
#weekBoard li.none { display: block; grid-template-columns: none; font-size: 10.5px; font-weight: 700; color: #e9cfa8; background: none; line-height: 1.35 }
/* in-game HUD brand strip (top-left corner; the match board sits under it) */
.hudtop { position: absolute; top: 12px; right: 16px; display: flex; align-items: center; gap: 8px; background: rgba(38, 24, 16, .5); border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px 5px 6px; text-shadow: 0 1px 3px rgba(0, 0, 0, .55) }
.hudtop img { width: 22px; height: 22px; border-radius: 7px; object-fit: cover }
.hudtop b { font: 900 12px var(--heavy); letter-spacing: .8px; color: #fff }
.hudtop .hton { font-size: 10.5px; font-weight: 800; color: #e9cfa8 } .hudtop .hton em { font-style: normal; color: #fff }
.chip.ca.sm, .chip.x.sm { padding: 3px 9px; font-size: 10.5px; background: rgba(255, 244, 226, .1); border: 0 }
.board { top: 14px } /* the brand strip lives top-right, so the match board keeps its corner */
.killfeed { position: absolute; top: 52px; right: 16px; display: flex; flex-direction: column; gap: 4px; align-items: flex-end }
.killfeed div { font-size: 11px; font-weight: 800; background: rgba(38, 24, 16, .55); border: 1px solid var(--line); border-radius: 8px; padding: 3px 9px; animation: feedin .18s ease-out }
.killfeed div b { color: var(--yellow) } .killfeed div em { font-style: normal; color: #ffb0a0 }
.killfeed div i { font-style: normal; font-weight: 700; color: #e9cfa8; opacity: .8; margin-left: 6px }
@keyframes feedin { from { transform: translateX(14px); opacity: 0 } to { transform: none; opacity: 1 } }
/* death screen: a proper card */
#dead { pointer-events: auto }
.deadcard { display: flex; flex-direction: column; align-items: center; gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 20px 26px 18px; backdrop-filter: blur(6px); box-shadow: 0 20px 50px rgba(0, 0, 0, .4); max-width: min(560px, 94vw) }
.deadcard b { font: 900 30px var(--heavy); color: #fff; text-shadow: 0 3px 0 var(--red) }
.deadcard > span { font-weight: 800; font-size: 13.5px; color: #f0dcc0 }
.deadcard em { font: 900 20px var(--heavy); font-style: normal; color: var(--yellow); margin-top: 4px }
.nextlife { display: flex; flex-direction: column; gap: 7px; margin-top: 10px; width: 100% }
.nextlife > span { font: 900 10px var(--heavy); letter-spacing: 1.4px; color: #e9cfa8; text-align: center }
.guns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center }
.guns button { flex: 1 1 150px; max-width: 172px; display: flex; flex-direction: column; gap: 2px; align-items: center; min-width: 150px; padding: 9px 10px; border-radius: 12px; background: rgba(255, 244, 226, .08); border: 1px solid var(--line); color: #fff; text-align: center }
.guns button:hover, .guns button.on { border-color: var(--yellow); background: rgba(244, 196, 48, .14) }
.guns button b { font: 900 12px var(--heavy); letter-spacing: .5px }
.guns button span { font-size: 9.5px; font-weight: 700; color: #e9cfa8; line-height: 1.25 }
#dead .ghost { margin-top: 10px }
/* ESC menu card */
#menu .card { width: min(370px, 94vw); padding: 20px }
.card h3 small { font: 900 11px var(--heavy); letter-spacing: 1px; color: #e9cfa8; margin-left: 8px; vertical-align: 2px }
.card label.sol { flex-direction: column; align-items: stretch; gap: 5px }
.card label.sol small { font-weight: 700; letter-spacing: .3px; color: #e9cfa8 }
#solAddr { background: rgba(255, 244, 226, .95); color: var(--ink); border: 0; border-radius: 10px; padding: 9px 11px; font: 700 13px var(--font); outline: 2px solid transparent; width: 100% }
#solAddr:focus { outline-color: var(--orange) }
#solAddr.ok { outline-color: #3fb85a } #solAddr.bad { outline-color: var(--red) }
.card .warn { font-size: 10.5px; font-weight: 700; color: #ffb84a; line-height: 1.35; margin-top: -6px }
.card .opts { display: flex; flex-direction: column; gap: 7px; background: rgba(255, 244, 226, .05); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px }
.card .ck { display: flex; align-items: center; gap: 9px; justify-content: flex-start; font-weight: 700; font-size: 12.5px; letter-spacing: 0; cursor: pointer }
.card .ck input { width: 15px; height: 15px; accent-color: var(--orange) }
.card .ck.soon { opacity: .55; cursor: not-allowed }
.card .ck small { font: 900 8.5px var(--heavy); letter-spacing: 1px; color: #ffd9a0; margin-left: auto }
.card .guest { font-size: 11px; font-weight: 700; color: #e9cfa8; text-align: center; margin-top: -4px }
#menu #resume { background: var(--yellow); color: var(--ink); box-shadow: 0 4px 0 #b78f1a }
#menu #resume:active { transform: translateY(3px); box-shadow: 0 1px 0 #b78f1a }
/* leaderboard modal */
.lbhead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px }
.lbhead small { font-weight: 800; font-size: 11px; letter-spacing: .8px; color: #e9cfa8 }
#modalBody ol.lb { padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; margin: 6px 0 2px }
#modalBody ol.lb li { display: grid; grid-template-columns: 34px 1fr auto auto; gap: 8px; align-items: center; padding: 7px 10px; border-radius: 10px; background: rgba(255, 244, 226, .06); font-weight: 800; font-size: 13px }
#modalBody ol.lb li i { font-style: normal; font: 900 12px var(--heavy); opacity: .6 }
#modalBody ol.lb li b { color: var(--yellow) }
#modalBody ol.lb li span { font-size: 10.5px; font-weight: 700; color: #e9cfa8 }
#modalBody ol.lb li.top { background: rgba(244, 196, 48, .14) }
#modalBody ol.lb li.lbempty { display: block }
#modalBody .lbempty { color: #f0dcc0; font-size: 13px; line-height: 1.5 }
@media (max-width: 980px) { .hudtop { top: 8px; right: 8px; padding: 4px 8px 4px 5px } .killfeed { top: 46px; right: 8px } .ticker span { margin-left: 0; width: 100% } }
@media (max-width: 640px) {
  .sidechips { gap: 5px } .chip.ca, .chip.x { padding: 6px 9px; font-size: 10.5px }
  .seatgrid { grid-template-columns: repeat(4, 1fr) }
  .modecards .chip em { display: none }
  .deadcard { padding: 16px 14px 14px } .guns button { min-width: 138px; flex-basis: 138px; padding: 8px 8px }
  #menu .card { padding: 16px }
}

/* ---------- prizes: plate on the results screen + the WITHDRAW / REWARDS cards ---------- */
.prize { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 13px 28px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(6px) }
.prize.won { border-color: var(--yellow); background: rgba(244, 196, 48, .13); box-shadow: 0 0 26px rgba(244, 196, 48, .2) }
.prize b { font: 900 26px var(--heavy); letter-spacing: 1px; color: var(--yellow); text-shadow: 0 2px 0 rgba(0, 0, 0, .35) }
.prize span { font-size: 11.5px; font-weight: 700; color: #f0dcc0; text-align: center; max-width: 460px }
.prize.paused b { color: #ffd9a0 }
#withdrawBtn { margin-top: 2px; padding: 11px 28px; border-radius: 12px; background: linear-gradient(180deg, #ffd75e, var(--yellow)); font: 900 15px var(--heavy); letter-spacing: 1px; color: var(--ink); box-shadow: 0 4px 0 #b78f1a }
#withdrawBtn:active { transform: translateY(3px); box-shadow: 0 1px 0 #b78f1a }
.ticker .linkish { margin-left: 6px; font-size: 10px }
#modalBody a { color: var(--yellow) }
#modalBody .wstats, #modalBody .rnums { display: flex; gap: 8px; flex-wrap: wrap }
#modalBody .wstats span, #modalBody .rnums span { flex: 1 1 auto; background: rgba(255, 244, 226, .06); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 10.5px; font-weight: 800; letter-spacing: .8px; color: #e9cfa8 }
#modalBody .wstats b, #modalBody .rnums b { display: block; font: 900 17px var(--heavy); letter-spacing: .5px; color: #fff; margin-top: 2px }
#modalBody label.sol { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 5px }
#modalBody label.sol small { font-weight: 700; letter-spacing: .3px; color: #e9cfa8 }
#modalBody input { background: rgba(255, 244, 226, .95); color: var(--ink); border: 0; border-radius: 10px; padding: 10px 11px; font: 700 14px var(--font); outline: 2px solid transparent; width: 100% }
#modalBody input:focus { outline-color: var(--orange) }
#modalBody input.ok { outline-color: #3fb85a } #modalBody input.bad { outline-color: var(--red) }
#modalBody .wnote { font-size: 11.5px; font-weight: 700; color: #e9cfa8; line-height: 1.45 }
#modalBody .wmsg { min-height: 16px; font: 900 12px var(--heavy); letter-spacing: .5px }
#modalBody .wmsg.bad { color: #ff8f7a } #modalBody .wmsg.ok { color: #7cff8a }
#modalBody ol.whist { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 4px }
#modalBody ol.whist li { display: grid; grid-template-columns: 42px auto 1fr; gap: 8px; align-items: center; padding: 7px 10px; border-radius: 10px; background: rgba(255, 244, 226, .06); font-size: 12px; font-weight: 800 }
#modalBody ol.whist li b { color: var(--yellow) }
#modalBody ol.whist li em { font-style: normal; text-align: right; font-size: 10.5px; letter-spacing: .5px; color: #e9cfa8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
#modalBody ol.whist li.paid em { color: #7cff8a } #modalBody ol.whist li.rejected em { color: #ff8f7a }
#modalBody ol.whist li.pending { background: rgba(244, 196, 48, .1); border: 1px solid rgba(244, 196, 48, .4) }
.rstat { padding: 9px 12px; border-radius: 10px; font: 900 13px var(--heavy); letter-spacing: 1px; text-align: center }
.rstat.off { background: rgba(244, 196, 48, .1); border: 1px dashed rgba(244, 196, 48, .45); color: #ffd9a0 }
.rstat.on { background: rgba(124, 255, 138, .12); border: 1px solid rgba(124, 255, 138, .4); color: #a9ffb4 }
#modalBody ol.rrules { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px }
#modalBody ol.rrules li { display: grid; grid-template-columns: 92px 1fr; gap: 8px; align-items: start; padding: 8px 10px; border-radius: 10px; background: rgba(255, 244, 226, .06); font-size: 12px }
#modalBody ol.rrules li b { font: 900 11px var(--heavy); letter-spacing: .8px; color: var(--yellow); padding-top: 2px }
#modalBody ol.rrules li span { font-weight: 700; color: #f0dcc0; line-height: 1.4 }
@media (max-width: 640px) { .prize { padding: 10px 14px; max-width: 94vw } .prize b { font-size: 20px } #podium { flex-wrap: wrap; justify-content: center } }


/* in-game top bar and kill feed: bigger and easier to read (user request 19.10) */
.hudtop { top: 14px; right: 18px; gap: 12px; padding: 8px 16px 8px 9px; background: rgba(28, 18, 12, .82); border: 1.5px solid rgba(255, 244, 226, .35); box-shadow: 0 4px 14px rgba(0, 0, 0, .45) }
.hudtop img { width: 40px; height: 40px; border-radius: 10px }
.hudtop b { font-size: 20px; letter-spacing: 1px }
.hudtop .hton { font-size: 15px } .hudtop .hton .dot { width: 11px; height: 11px }
.hudtop .chip { font-size: 15px; padding: 7px 14px; min-height: 0; line-height: 1.1 }
.hudtop .chip.x { font-size: 18px; padding: 6px 13px }
.killfeed { top: 78px; right: 18px; gap: 6px }
.killfeed div { font-size: 17px; padding: 7px 14px; border-radius: 11px; background: rgba(28, 18, 12, .82); border: 1.5px solid rgba(255, 244, 226, .35); box-shadow: 0 3px 10px rgba(0, 0, 0, .4) }
.killfeed div i { font-size: 14px; opacity: .95 }
@media (max-width: 980px) { .hudtop { top: 8px; right: 8px; gap: 8px; padding: 5px 10px 5px 6px } .hudtop img { width: 28px; height: 28px } .hudtop b { font-size: 14px } .hudtop .hton, .hudtop .chip { font-size: 12px } .killfeed { top: 56px; right: 8px } .killfeed div { font-size: 13px; padding: 5px 10px } }
