:root {
  --fn: 'Inter', system-ui, sans-serif; --ft: 'Pixelify Sans', 'Inter', sans-serif;
  --bg: #0b080d; --panel: #130f15; --panel2: #1a151d; --line: #2c2431; --text: #efe6d6; --muted: #9a8f99;
  --gold: #ffd23f; --gold2: #e0a020; --green: #3ddc84; --red: #ff5c5c; --cyan: #38d8f0; --pink: #ff6bd5;
}
* { box-sizing: border-box; }
html, body { font-variant-numeric: tabular-nums; margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: 'Inter', system-ui, sans-serif; font-size: 14px; overflow: hidden; }
button { font-family: inherit; cursor: pointer; }
.hidden { display: none !important; }
.mono, .num { font-family: var(--fn); font-weight: 700; }

/* ticker */
#ticker { height: 24px; display: flex; align-items: center; background: #050306; border-bottom: 1px solid var(--line); overflow: hidden; font-size: 12px; }
.live-dot { background: #0f2a18; color: var(--green); font-family: var(--fn); font-weight: 700; padding: 0 8px; height: 100%; display: flex; align-items: center; border-right: 1px solid var(--line); flex-shrink: 0; }
.live-dot::before { content: ''; width: 7px; height: 7px; background: var(--green); border-radius: 50%; margin-right: 6px; box-shadow: 0 0 6px var(--green); }
.track { flex: 1; overflow: hidden; white-space: nowrap; }
.track-inner { display: inline-block; padding-left: 100%; animation: marquee 70s linear infinite; }
.track-inner span { margin-right: 36px; color: var(--muted); }
.track-inner b { color: var(--gold); font-family: var(--fn); font-weight: 700; }
.track-inner .w { color: var(--green); } .track-inner .l { color: var(--red); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* header */
header { height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 12px; background: #0e0a10; border-bottom: 1px solid var(--line); }
.logo { font-family: var(--fn); font-weight: 700; font-weight: 700; font-size: 26px; color: var(--gold); letter-spacing: 1px; text-shadow: 2px 2px 0 #7a2a00, 0 0 12px rgba(255, 180, 40, .35); white-space: nowrap; }
.badge { font-family: var(--fn); font-weight: 700; font-size: 10px; color: var(--gold); border: 1px solid #6a4a10; background: #2a1c06; padding: 3px 7px; }
.tagline { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spacer { flex: 1; }
.xlink { color: var(--text); text-decoration: none; font-size: 16px; padding: 4px 8px; border: 1px solid var(--line); }
.btn-wallet { background: #0d1c22; color: var(--cyan); border: 1px solid #1f5566; padding: 7px 12px; font-size: 13px; white-space: nowrap; }
.btn-wallet:hover { background: #12303a; }
.pill { border: 1px solid var(--line); background: var(--panel); padding: 6px 10px; font-size: 12px; white-space: nowrap; color: var(--muted); }
.pill b { color: var(--text); font-family: var(--fn); font-weight: 700; }
.pill.live b { color: var(--green); }
.pill.gold { border-color: #6a4a10; color: var(--gold); background: #1e1606; }
.pill.gold b { color: var(--gold); }

main { display: flex; height: calc(100% - 72px); }
.rail { width: 62px; background: #0e0a10; border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; padding: 10px 0; gap: 8px; }
.rail button { width: 50px; padding: 7px 0; background: var(--panel); border: 1px solid var(--line); color: var(--text); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.rail button i { font-style: normal; font-size: 16px; font-family: var(--fn); font-weight: 700; }
.rail button span { font-size: 10px; font-family: var(--fn); font-weight: 700; }
.rail button:hover { border-color: var(--gold2); }
.rail button.get { background: var(--gold); color: #1a1000; border-color: var(--gold); }
.rail-gap { flex: 1; }

.stage { flex: 1; position: relative; min-width: 0; background: #07040a; }
#floor { display: block; width: 100%; height: 100%; image-rendering: pixelated; cursor: pointer; }
.stage-hint { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); background: rgba(10, 6, 12, .82); border: 1px solid var(--line); padding: 6px 12px; font-size: 12px; color: var(--muted); pointer-events: none; white-space: nowrap; }

/* panel */
.panel { width: 360px; background: var(--panel); border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.tabs { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--line); }
.tabs button { flex: 1; background: var(--panel2); border: 1px solid var(--line); color: var(--muted); padding: 7px 2px; font-size: 12px; font-family: var(--fn); font-weight: 700; }
.tabs button.on { background: var(--gold); color: #1a1000; border-color: var(--gold); }
.panel-body { flex: 1; overflow-y: auto; padding: 10px; }
.panel-body::-webkit-scrollbar { width: 8px; } .panel-body::-webkit-scrollbar-thumb { background: #2c2431; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.tile { background: var(--panel2); border: 1px solid var(--line); padding: 8px; }
.tile .k { font-size: 11px; color: var(--muted); }
.tile .v { font-family: var(--fn); font-weight: 700; font-size: 15px; color: var(--gold); margin-top: 2px; }
.tile .s { font-size: 11px; color: var(--muted); }
.v.pos { color: var(--green) !important; } .v.neg { color: var(--red) !important; }
h3 { font-family: var(--fn); font-weight: 700; font-size: 13px; margin: 14px 0 8px; color: var(--text); display: flex; align-items: center; gap: 6px; font-weight: 400; }
h3 small { font-family: 'Inter'; color: var(--muted); font-size: 11px; }
.muted { color: var(--muted); } .small { font-size: 12px; }
.link { color: var(--cyan); cursor: pointer; text-decoration: underline; background: none; border: 0; padding: 0; font-size: 13px; }

.feed { display: flex; flex-direction: column; gap: 6px; }
.ev { display: grid; grid-template-columns: 54px 1fr; gap: 8px; font-size: 12.5px; line-height: 1.35; padding: 6px 0; border-bottom: 1px solid #1f1923; }
.ev .tag { font-family: var(--fn); font-weight: 700; font-size: 9px; padding: 3px 0; text-align: center; height: fit-content; border: 1px solid; }
.tag.win { color: var(--green); border-color: #1d5a35; background: #0b1f13; }
.tag.loss { color: var(--red); border-color: #5a1d1d; background: #1f0b0b; }
.tag.fees { color: var(--gold); border-color: #6a4a10; background: #1e1606; }
.tag.bet { color: var(--cyan); border-color: #1f5566; background: #0b1a1f; }
.tag.wait, .tag.push { color: var(--muted); border-color: var(--line); background: #151116; }
.tag.jp { color: #fff; border-color: var(--gold); background: #6a4a10; }
.ev .t { color: var(--muted); font-size: 11px; }
.ev b { font-family: var(--fn); font-weight: 700; color: var(--gold); cursor: pointer; }
.amt.pos { color: var(--green); } .amt.neg { color: var(--red); }

.alist .row { display: grid; grid-template-columns: 34px 1fr auto; gap: 8px; align-items: center; padding: 6px; border: 1px solid transparent; cursor: pointer; }
.alist .row:hover { background: var(--panel2); border-color: var(--line); }
.alist .row canvas { width: 34px; height: 46px; image-rendering: pixelated; }
.alist .tk { font-family: var(--fn); font-weight: 700; color: var(--gold); }
.alist .st { font-size: 11px; color: var(--muted); }
.alist .val { text-align: right; font-family: var(--fn); font-weight: 700; font-size: 12px; }
.rank { font-family: var(--fn); font-weight: 700; color: var(--muted); width: 18px; display: inline-block; }

/* agent card */
.ahead { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: center; margin: 6px 0 10px; }
.ahead canvas { width: 64px; height: 86px; image-rendering: pixelated; background: radial-gradient(circle at 50% 70%, #3a2410, #140d0a); border: 1px solid var(--line); }
.ahead .tk { font-family: var(--fn); font-weight: 700; font-size: 22px; color: var(--gold); line-height: 1; }
.ahead .nm { color: var(--text); font-size: 13px; margin-top: 4px; }
.status { font-size: 12px; margin-top: 3px; display: flex; align-items: center; gap: 5px; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.status.paused::before { background: var(--gold2); } .status.broke::before { background: var(--red); }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0; }
.chip { font-size: 11px; font-family: var(--fn); font-weight: 700; border: 1px solid var(--line); background: var(--panel2); padding: 4px 7px; color: var(--text); }
button.chip:hover { border-color: var(--gold2); }
.chip.on { background: var(--gold); color: #1a1000; border-color: var(--gold); }
.tierbar { height: 8px; background: #0b080d; border: 1px solid var(--line); margin-top: 6px; position: relative; }
.tierbar div { height: 100%; background: linear-gradient(90deg, var(--gold2), var(--gold)); }
.tiers { display: flex; justify-content: space-between; margin-top: 6px; }
.tiers span { font-size: 9px; font-family: var(--fn); font-weight: 700; color: var(--muted); text-align: center; flex: 1; }
.tiers span.on { color: var(--gold); }
.log .ev { grid-template-columns: 54px 1fr; }

.btn { background: var(--panel2); border: 1px solid var(--line); color: var(--text); padding: 9px 12px; font-size: 13px; }
.btn:hover { border-color: var(--gold2); }
.btn.gold { background: var(--gold); color: #1a1000; border-color: var(--gold); font-family: var(--fn); font-weight: 700; }
.btn.gold:hover { filter: brightness(1.08); }
.btn.cyan { background: #0d1c22; color: var(--cyan); border-color: #1f5566; }
.btn.red { background: #220c0c; color: var(--red); border-color: #5a1d1d; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.gamebtns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.gamebtns .btn { text-align: left; display: flex; gap: 8px; align-items: center; }
.gamebtns .btn i { font-style: normal; font-size: 16px; width: 18px; text-align: center; color: var(--gold); }
.seg { display: flex; border: 1px solid var(--line); }
.seg button { flex: 1; background: var(--panel2); border: 0; color: var(--muted); padding: 8px; font-family: var(--fn); font-weight: 700; font-size: 12px; }
.seg button.on { background: var(--gold); color: #1a1000; }
.note { font-size: 12px; color: var(--muted); background: #100c12; border: 1px dashed var(--line); padding: 8px; line-height: 1.45; }
.note.test { border-color: #6a4a10; color: #d9c08a; }

/* launch form */
.form label { display: block; font-size: 12px; color: var(--muted); margin: 10px 0 4px; }
.form input[type=text], .form select { width: 100%; background: #0b080d; border: 1px solid var(--line); color: var(--text); padding: 9px; font-family: inherit; font-size: 14px; }
.form input:focus, .form select:focus { outline: 1px solid var(--gold2); }
.swatches { display: flex; flex-wrap: wrap; gap: 4px; }
.sw { width: 22px; height: 22px; border: 2px solid #000; cursor: pointer; }
.sw.on { outline: 2px solid var(--gold); }
.preview { display: flex; gap: 12px; align-items: center; }
.preview canvas { width: 108px; height: 156px; image-rendering: pixelated; background: radial-gradient(circle at 50% 75%, #4a1020, #140a0e); border: 1px solid var(--line); }
.styles { display: grid; gap: 6px; }
.styleopt { border: 1px solid var(--line); background: var(--panel2); padding: 8px; cursor: pointer; text-align: left; color: var(--text); }
.styleopt.on { border-color: var(--gold); background: #1e1606; }
.styleopt b { font-family: var(--fn); font-weight: 700; color: var(--gold); }
.styleopt div { font-size: 12px; color: var(--muted); margin-top: 3px; }

/* modal */
.modal { position: fixed; inset: 0; background: rgba(4, 2, 6, .72); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.modal-box { width: 100%; max-width: 640px; max-height: 92vh; overflow-y: auto; background: #120d14; border: 2px solid #3a2a12; box-shadow: 0 0 0 2px #000, 0 0 40px rgba(255, 180, 40, .15); padding: 16px; position: relative; }
.mhead { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.mhead h2 { font-family: var(--fn); font-weight: 700; font-size: 20px; color: var(--gold); margin: 0; font-weight: 400; }
.mhead .bal { margin-left: auto; font-size: 13px; color: var(--muted); }
.mhead .bal b { color: var(--green); font-family: var(--fn); font-weight: 700; }
.mclose { background: none; border: 1px solid var(--line); color: var(--text); width: 30px; height: 30px; font-size: 16px; }
.how ol { padding-left: 18px; line-height: 1.6; }
.how li { margin-bottom: 6px; }
.how b { color: var(--gold); }

#toast { position: fixed; left: 50%; top: 84px; transform: translateX(-50%); z-index: 99; display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
#toast div { background: #160f18; border: 1px solid var(--gold2); padding: 9px 14px; font-size: 13px; animation: deal .25s; max-width: 90vw; }
#toast div.err { border-color: var(--red); color: #ffc9c9; }

@media (max-width: 900px) {
  html, body { overflow: auto; }
  main { flex-direction: column; height: auto; }
  .rail { width: 100%; flex-direction: row; justify-content: center; padding: 6px; }
  .rail-gap { display: none; }
  .stage { height: 62vh; flex: none; }
  .panel { width: 100%; border-left: 0; border-top: 1px solid var(--line); }
  .panel-body { overflow: visible; }
  .tagline, .pill:not(.gold) { display: none; }
  .logo { font-size: 18px; }
  .stage-hint { display: none; }
  .rl-wrap { grid-template-columns: 1fr; justify-items: center; }
}

/* =================== GAME SCREENS =================== */
.modal-box.wide { max-width: 1120px; width: 96vw; padding: 0; background: #0e0a11; border: 2px solid #4a3414; max-height: 96vh; }
.gs { display: flex; flex-direction: column; min-height: 0; }
.gs-top { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: linear-gradient(#1d1521, #140f17); border-bottom: 1px solid #2c2431; }
.gs-title { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.gs-ico { width: 42px; height: 42px; display: grid; place-items: center; background: #2a1c06; border: 2px solid var(--gold2); color: var(--gold); font: 800 22px var(--fn); box-shadow: 0 3px 0 #000; }
.gs-title h2 { margin: 0; font: 700 24px var(--fn); color: var(--gold); line-height: 1; text-shadow: 2px 2px 0 #5a2a00; }
.gs-title small { color: var(--muted); font-size: 12.5px; }
.gs-me { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; background: #0f0b12; border: 1px solid #2c2431; }
.gs-me img { width: 30px; height: 43px; image-rendering: pixelated; background: #2a1a10; }
.gs-me b { font: 700 14px var(--fn); color: var(--gold); display: block; }
.gs-me small { color: var(--muted); font-size: 11.5px; }
.gs-stat { text-align: right; min-width: 104px; padding: 4px 12px; background: #0f0b12; border: 1px solid #2c2431; }
.gs-stat small { display: block; color: var(--muted); font-size: 11.5px; }
.gs-stat b { font: 700 19px var(--fn); color: var(--green); }
.gs-stat b.neg { color: var(--red); } .gs-stat b.pos { color: var(--green); }
#gsSess { color: var(--text); }
.gs-stat b.flash { animation: flash .6s; }
@keyframes flash { 0% { color: #fff; text-shadow: 0 0 12px #fff; } }
.gs-icon { width: 40px; height: 40px; background: #1a141d; border: 1px solid #3a2f40; color: var(--text); font: 800 16px var(--fn); }
.gs-icon:hover { border-color: var(--gold2); color: var(--gold); }
.gs-sub { display: flex; align-items: center; gap: 12px; padding: 8px 16px; background: #120e15; border-bottom: 1px solid #221b26; font-size: 12.5px; color: #b8aab5; }
.gs-sub > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-hist { margin-left: auto; display: flex; gap: 4px; align-items: center; overflow: hidden; }
.gs-hist em { font-style: normal; color: var(--muted); margin-right: 4px; }
.hn { font: 700 11px var(--fn); padding: 3px 6px; background: #1c171f; border: 1px solid #2c2431; color: var(--muted); }
.hn.w { color: var(--green); border-color: #1d5a35; background: #0b1f13; } .hn.l { color: var(--red); border-color: #4a1d1d; background: #1c0c0c; }
.rn { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 700 11px var(--fn); color: #fff; border: 2px solid #e9e2c8; }
.rn.red { background: #b01c2c; } .rn.black { background: #16161c; } .rn.green { background: #14a052; }
.rn:first-of-type { width: 30px; height: 30px; border-color: var(--gold); }
.gs-stage { position: relative; padding: 18px; background: radial-gradient(ellipse at 50% 0%, #241a1a, #0e0a11 70%); overflow: auto; }
.gs-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; background: #150f18; border-top: 1px solid #2c2431; flex-wrap: wrap; }
.gs-keys { padding: 6px 16px 8px; font-size: 11.5px; color: #7d7280; background: #150f18; text-align: right; }

/* chips */
.pchip { width: 46px; height: 46px; border-radius: 50%; background: var(--c); border: 4px dashed var(--e); display: flex; align-items: center; justify-content: center;
  font: 800 9px var(--fn); color: var(--t); box-shadow: inset 0 0 0 3px var(--c), inset 0 0 0 5px rgba(255,255,255,.28), 0 3px 0 rgba(0,0,0,.6); }
.chipbtn { background: none; border: 0; padding: 0; transition: transform .1s; border-radius: 50%; }
.chipbtn:hover:not(:disabled) { transform: translateY(-4px); }
.chipbtn:active:not(:disabled) { transform: translateY(1px); }
.chipbtn:disabled { opacity: .35; cursor: not-allowed; }
.chipbtn.sel.on { transform: translateY(-6px); box-shadow: 0 0 0 3px #fff, 0 0 16px rgba(255,255,255,.5); }
.stack { position: relative; width: 46px; height: 52px; }
.schip { position: absolute; left: 0; width: 46px; height: 16px; border-radius: 50%; background: var(--c); border: 3px dashed var(--e); box-shadow: 0 2px 0 rgba(0,0,0,.55); }

/* bet control */
.betctl { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.betnow { min-width: 130px; padding: 6px 12px; background: #0b080d; border: 2px solid #3a2a12; }
.betnow small { display: block; font-size: 11.5px; color: var(--muted); }
.betnow b { font: 700 22px var(--fn); color: var(--gold); }
.betnow span { font-size: 12px; color: var(--muted); margin-left: 4px; }
.chiprow { display: flex; gap: 7px; padding-top: 6px; }
.betops { display: flex; gap: 4px; }
.betops button { background: #1c161f; border: 1px solid #3a2f40; color: var(--text); padding: 8px 11px; font-size: 13px; font-weight: 600; }
.betops button:hover:not(:disabled) { border-color: var(--gold2); color: var(--gold); }
.betops button:disabled { opacity: .35; }

/* buttons */
.bigbtn { min-width: 156px; height: 64px; background: linear-gradient(#ffe46a, #e9a820); border: 3px solid #1a1000; color: #1a1000; box-shadow: 0 6px 0 #7a4a00, 0 8px 16px rgba(0,0,0,.5); display: flex; flex-direction: column; align-items: center; justify-content: center; transition: transform .06s, box-shadow .06s; }
.bigbtn b { font: 700 24px var(--fn); line-height: 1; }
.bigbtn small { font-size: 11px; opacity: .7; margin-top: 3px; text-transform: uppercase; letter-spacing: 1px; }
.bigbtn:hover:not(:disabled) { filter: brightness(1.07); }
.bigbtn:active:not(:disabled), .bigbtn.pressed { transform: translateY(4px); box-shadow: 0 2px 0 #7a4a00; }
.bigbtn:disabled { background: #3a3236; color: #7a6f75; box-shadow: 0 6px 0 #1a1418; cursor: not-allowed; }
.acts { display: flex; gap: 8px; align-items: center; }
.act { min-width: 98px; height: 58px; background: #1c161f; border: 2px solid var(--gold2); color: var(--text); box-shadow: 0 4px 0 #000; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.act b { font: 700 16px var(--fn); color: var(--gold); }
.act small { font-size: 10.5px; color: var(--muted); }
.act:hover:not(:disabled) { background: #2a2018; }
.act:active:not(:disabled), .act.pressed { transform: translateY(3px); box-shadow: 0 1px 0 #000; }
.act:disabled { border-color: #2c2431; box-shadow: none; opacity: .4; cursor: not-allowed; }

/* banner */
.banner { position: absolute; left: 50%; top: 26px; transform: translate(-50%, 0) scale(.6); opacity: 0; pointer-events: none; z-index: 20; padding: 14px 34px; text-align: center; border: 3px solid #000; box-shadow: 0 6px 0 #000, 0 0 40px rgba(0,0,0,.6); transition: transform .25s cubic-bezier(.2,1.6,.4,1), opacity .2s; min-width: 260px; }
.banner.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.banner b { display: block; font: 700 28px var(--fn); line-height: 1.05; }
.banner small { display: block; font: 700 15px var(--fn); margin-top: 4px; }
.gs-dice .banner, .gs-roulette .banner { top: auto; bottom: 30px; }
.gs-blackjack .banner { left: auto; right: 6%; top: auto; bottom: 26%; transform: scale(.6); min-width: 220px; }
.gs-blackjack .banner.show { transform: none; }
.banner.win { background: linear-gradient(#2fd27a, #13894a); color: #fff; text-shadow: 2px 2px 0 #0a4a24; }
.banner.big { background: linear-gradient(#ffe46a, #e9a820); color: #2a1400; animation: shake .5s .2s; box-shadow: 0 6px 0 #000, 0 0 60px rgba(255,210,63,.8); }
.banner.loss { background: linear-gradient(#3a1418, #22090c); color: #ff8080; border-color: #5a1d1d; }
.banner.push { background: #2a2430; color: #ddd; }
@keyframes shake { 25% { rotate: -2deg; } 75% { rotate: 2deg; } }

/* felt */
.felt { background: radial-gradient(ellipse at 50% 30%, #1d9a5c, #0c6038 55%, #073f26); border: 10px solid #5a2d0c; box-shadow: inset 0 0 0 3px #9a6a2a, inset 0 0 70px rgba(0,0,0,.55), 0 8px 0 #2a1404; border-radius: 14px; position: relative; }

/* playing cards */
.pcard { width: 84px; height: 118px; background: linear-gradient(160deg, #fffdf6, #f1ead8); border: 2px solid #1a1a1a; border-radius: 8px; position: relative; color: #16161c; box-shadow: 0 4px 0 rgba(0,0,0,.35), 0 6px 14px rgba(0,0,0,.3); animation: dealIn .34s cubic-bezier(.2,.9,.3,1.1) both; flex-shrink: 0; }
.pcard.red { color: #c4162a; }
.pcard.still { animation: none; }
.pcard.flip { animation: flipIn .4s ease-out both; }
@keyframes dealIn { from { transform: translate(260px, -180px) rotate(-14deg); opacity: 0; } }
@keyframes flipIn { from { transform: rotateY(90deg); } }
.ci { position: absolute; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.ci b { font: 700 19px var(--fn); } .ci i { font-style: normal; font-size: 16px; }
.ci.tl { top: 6px; left: 6px; } .ci.br { bottom: 6px; right: 6px; transform: rotate(180deg); }
.cc { position: absolute; inset: 0; display: grid; place-items: center; font-size: 44px; }
.cc.big { font-size: 62px; }
.cface { position: absolute; inset: 24px 18px; border: 2px solid currentColor; border-radius: 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: repeating-linear-gradient(45deg, rgba(0,0,0,.035) 0 4px, transparent 4px 8px); }
.cface b { font: 700 30px var(--fn); line-height: 1; } .cface i { font-style: normal; font-size: 22px; }
.pcard.back { background: #b8202f; }
.pcard.back .bk { position: absolute; inset: 6px; border: 2px solid #f6e7c8; border-radius: 4px; background: repeating-linear-gradient(45deg, #b8202f 0 6px, #8a1020 6px 12px), #b8202f; box-shadow: inset 0 0 0 3px #b8202f, inset 0 0 0 5px #e0b048; }
.placeholder { color: rgba(255,255,255,.55); font-size: 14px; align-self: center; }

/* ---- blackjack ---- */
.bj-table { min-height: 470px; padding: 14px 20px 26px; border-radius: 16px 16px 320px 320px / 16px 16px 120px 120px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.dealer { display: flex; flex-direction: column; align-items: center; margin-top: -4px; }
.dealer img { width: 42px; height: 60px; image-rendering: pixelated; filter: drop-shadow(0 3px 0 rgba(0,0,0,.4)); }
.dealer span { font: 700 11px var(--fn); color: #d8f5e2; background: rgba(0,0,0,.35); padding: 2px 8px; margin-top: 2px; }
.shoe { position: absolute; top: 22px; right: 34px; width: 70px; height: 92px; }
.shoe i { position: absolute; width: 54px; height: 76px; background: #b8202f; border: 2px solid #1a1a1a; border-radius: 6px; box-shadow: inset 0 0 0 4px #b8202f, inset 0 0 0 6px #e0b048; }
.shoe i:nth-child(1) { left: 0; top: 0; } .shoe i:nth-child(2) { left: 5px; top: 4px; } .shoe i:nth-child(3) { left: 10px; top: 8px; background: #4a2a10; }
.hand { display: flex; align-items: center; gap: 14px; }
.hand .cards { display: flex; gap: 8px; min-height: 122px; align-items: center; }
.total { font: 700 18px var(--fn); min-width: 54px; text-align: center; padding: 6px 10px; background: #08301c; color: #fff; border: 2px solid #d9b44a; border-radius: 22px; opacity: 0; transform: scale(.7); transition: .2s; }
.total.show { opacity: 1; transform: none; }
.total.bust { background: #5a1418; border-color: #ff6b6b; }
.total.bj { background: #e9a820; color: #1a1000; }
.arc { text-align: center; padding: 6px 0; border-top: 2px solid rgba(217,180,74,.55); border-bottom: 2px solid rgba(217,180,74,.55); width: 64%; border-radius: 50%/30%; }
.arc span { display: block; font: 700 15px var(--fn); color: #f0d27a; letter-spacing: 2px; }
.arc small { color: #bfe8cf; font-size: 12px; }
.betspot { position: absolute; left: 7%; bottom: 22%; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.betspot .ring { width: 86px; height: 86px; border-radius: 50%; border: 3px dashed rgba(255,255,255,.55); display: grid; place-items: center; background: rgba(0,0,0,.12); }
.betspot small { font: 700 12px var(--fn); color: #fff; background: rgba(0,0,0,.4); padding: 2px 8px; }

/* ---- slots ---- */
.slot-wrap { display: grid; grid-template-columns: 1fr 250px; gap: 18px; align-items: start; }
.cab { background: linear-gradient(#b0182c, #6a0c18 70%, #4a0810); border: 4px solid #e0b048; border-radius: 18px 18px 8px 8px; padding: 14px; box-shadow: 0 8px 0 #2a0408, inset 0 0 0 3px #7a1020; }
.cab-marquee { display: flex; align-items: center; gap: 12px; background: #1a0a10; border: 3px solid #e0b048; padding: 8px 12px; border-radius: 10px; }
.cab-marquee span { font: 700 30px var(--fn); color: #ffe46a; text-shadow: 0 0 10px #ff9a20, 2px 2px 0 #7a2a00; letter-spacing: 3px; white-space: nowrap; }
.bulbs { flex: 1; height: 12px; background: radial-gradient(circle, #ffe27a 3.5px, transparent 4.5px) 0 0 / 16px 12px; animation: bulbs .6s steps(2) infinite; }
@keyframes bulbs { 50% { background-position: 8px 0; filter: hue-rotate(160deg); } }
.cab-jp { margin: 10px auto; width: fit-content; min-width: 60%; text-align: center; background: #0a0606; border: 2px solid #5a3a12; padding: 6px 18px; }
.cab-jp small { display: block; font-size: 11px; color: #c99a5a; letter-spacing: 1px; }
.cab-jp b { font: 700 28px var(--fn); color: #ffb020; text-shadow: 0 0 10px rgba(255,176,32,.7); }
.reelwin { position: relative; display: flex; gap: 10px; background: #08060c; padding: 12px; border: 4px solid #e0b048; border-radius: 10px; box-shadow: inset 0 0 30px #000; }
.reel { flex: 1; height: 240px; overflow: hidden; position: relative; border: 3px solid #000; border-radius: 6px; background: linear-gradient(#b8b0a0, #fffaf0 28%, #fffaf0 72%, #b8b0a0); }
.reel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.45), transparent 30%, transparent 70%, rgba(0,0,0,.45)); pointer-events: none; }
.strip { will-change: transform; }
.cell { height: 80px; display: grid; place-items: center; }
.cell img { width: 62px; height: 62px; image-rendering: pixelated; filter: drop-shadow(0 3px 0 rgba(0,0,0,.25)); }
.reel.win { box-shadow: 0 0 0 3px #ffd23f, 0 0 26px #ffd23f; animation: glow .5s 4 alternate; }
@keyframes glow { to { box-shadow: 0 0 0 3px #fff, 0 0 40px #ffd23f; } }
.payline { position: absolute; left: 6px; right: 6px; top: 50%; height: 3px; margin-top: -1px; background: rgba(255,50,70,.85); z-index: 3; box-shadow: 0 0 8px rgba(255,50,70,.8); pointer-events: none; }
.pl-arrow { position: absolute; top: 50%; transform: translateY(-50%); color: #ff3a4a; font-size: 18px; z-index: 4; }
.pl-arrow.l { left: -14px; } .pl-arrow.r { right: -14px; }
.leds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.led { background: #070506; border: 2px solid #3a2a12; padding: 6px 10px; text-align: center; }
.led small { display: block; font-size: 10.5px; color: #a08a6a; letter-spacing: 1px; }
.led b { font: 700 20px var(--fn); color: #ff6a3a; text-shadow: 0 0 8px rgba(255,90,40,.6); }
.led.win b { color: #5aff8a; text-shadow: 0 0 8px rgba(90,255,140,.6); }
.paytable { background: #120d15; border: 2px solid #2c2431; padding: 12px; }
.paytable h4 { margin: 0 0 8px; font: 700 14px var(--fn); color: var(--gold); }
.pt-row { display: flex; align-items: center; gap: 3px; padding: 5px 6px; border-bottom: 1px solid #221b26; font-size: 12.5px; color: var(--muted); }
.pt-row img { width: 24px; height: 24px; image-rendering: pixelated; }
.pt-row span { margin-left: 4px; }
.pt-row b { margin-left: auto; font: 700 15px var(--fn); color: var(--gold); }
.pt-row.hit { background: #ffd23f; color: #1a1000; animation: blink2 .4s 5; } .pt-row.hit b { color: #1a1000; }
@keyframes blink2 { 50% { background: #fff3b0; } }
.pt-jp { margin-top: 10px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.pt-jp img { width: 18px; height: 18px; image-rendering: pixelated; vertical-align: middle; }
.pt-jp b { color: var(--gold); }

/* ---- video poker ---- */
.vp { background: linear-gradient(#10208a, #08104a); border: 4px solid #e0b048; border-radius: 12px; padding: 14px 18px 16px; box-shadow: 0 8px 0 #040820, inset 0 0 0 3px #2a3aaa; }
.vp-pay { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px 18px; background: #050a3a; border: 2px solid #3a4acc; padding: 8px 12px; }
.vp-row { display: flex; gap: 8px; align-items: center; padding: 3px 6px; font: 700 13px var(--fn); color: #ffe46a; }
.vp-row span { flex: 1; } .vp-row b { color: #fff; } .vp-row em { font-style: normal; color: #8ea0ff; font-size: 11px; min-width: 52px; text-align: right; }
.vp-row.hit { background: #ffd23f; color: #0a1040; animation: blink2 .4s 6; } .vp-row.hit b, .vp-row.hit em { color: #0a1040; }
.vp-cards { display: flex; justify-content: center; gap: 14px; margin: 22px 0 6px; }
.vp-slot { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.vp .pcard { width: 100px; height: 140px; cursor: pointer; transition: transform .12s; }
.vp .pcard .ci b { font-size: 22px; } .vp .cc { font-size: 52px; } .vp .cc.big { font-size: 72px; }
.vp-slot.held .pcard { transform: translateY(-10px); box-shadow: 0 0 0 4px #ffd23f, 0 10px 20px rgba(0,0,0,.4); }
.hold { width: 100px; padding: 7px 0; background: #18288a; border: 2px solid #6a7aff; color: #c8d0ff; font: 700 14px var(--fn); box-shadow: 0 3px 0 #040820; }
.hold small { font-size: 10px; opacity: .7; }
.hold.on { background: #ffd23f; color: #0a1040; border-color: #fff; }
.hold:disabled { opacity: .4; cursor: default; }
.vp-msg { text-align: center; font: 700 14px var(--fn); color: #fff; margin: 8px 0 0; min-height: 20px; }
.vp .leds .led { background: #030620; border-color: #3a4acc; }

/* ---- roulette ---- */
.rl { display: grid; grid-template-columns: 290px 1fr; gap: 22px; align-items: center; padding: 18px; }
.rl-left { display: flex; flex-direction: column; align-items: center; gap: 10px; }
#wheel { width: 280px; height: 280px; filter: drop-shadow(0 8px 10px rgba(0,0,0,.5)); }
.rl-num { min-height: 64px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.rl-num b { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font: 700 24px var(--fn); color: #fff; border: 3px solid #ffd23f; box-shadow: 0 0 20px rgba(255,210,63,.6); animation: pop .4s; }
.rl-num b.red { background: #b01c2c; } .rl-num b.black { background: #16161c; } .rl-num b.green { background: #14a052; }
.rl-num small { font: 700 12px var(--fn); color: #e7f7ec; }
@keyframes pop { from { transform: scale(.3); } }
.rboard { display: grid; grid-template-columns: 46px repeat(12, 1fr) 48px; grid-template-rows: repeat(3, 48px) 42px 42px; gap: 3px; }
.rc { position: relative; border: 2px solid rgba(240,232,205,.85); background: rgba(0,0,0,.16); color: #fff; font: 700 15px var(--fn); padding: 0; min-width: 0; transition: filter .1s, box-shadow .1s; }
.rc.red { background: #b01c2c; } .rc.black { background: #17171d; } .rc.green { background: #14a052; }
.rc.out { font-size: 13px; } .rc.out.red, .rc.out.black { font-size: 18px; }
.rc:hover { filter: brightness(1.25); box-shadow: inset 0 0 0 2px #ffd23f; }
.rc.cover { box-shadow: inset 0 0 0 3px #ffd23f; filter: brightness(1.2); }
.rc.winner { animation: win3 .5s 6 alternate; z-index: 2; }
@keyframes win3 { to { box-shadow: 0 0 0 3px #ffd23f, 0 0 22px #ffd23f; filter: brightness(1.5); } }
.rc.won { box-shadow: inset 0 0 0 3px #5aff8a; }
.pc { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 32px; height: 32px; border-radius: 50%; background: var(--c); border: 3px dashed var(--e); color: var(--t); font: 800 8px var(--fn); display: grid; place-items: center; box-shadow: 0 3px 0 rgba(0,0,0,.6); z-index: 3; animation: pop .2s; pointer-events: none; }
.rl-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; font-size: 12px; color: #d4eedd; }
.rl-legend b { color: #ffd23f; font-family: var(--fn); font-weight: 700; }

/* ---- dice ---- */
.dc { background: radial-gradient(ellipse at 50% 30%, #2f6ac8, #163c86 55%, #0b2252); padding: 22px 34px 26px; text-align: center; }
.dc-roll { font: 700 86px var(--fn); color: #fff; text-shadow: 0 5px 0 #000; line-height: 1; }
.dc-roll.rolling { color: #cfd9ff; } .dc-roll.win { color: #5aff8a; animation: pop .3s; } .dc-roll.loss { color: #ff6b6b; animation: pop .3s; }
.dc-sub { margin: 8px 0 18px; color: #d8e4ff; font-size: 15px; }
.dc-sub b { font-family: var(--fn); font-weight: 700; color: #fff; } .dc-sub b.pos { color: #5aff8a; } .dc-sub b.neg { color: #ff8080; }
.dc-track { position: relative; height: 26px; background: #c0303a; border: 3px solid #000; border-radius: 4px; box-shadow: 0 4px 0 rgba(0,0,0,.4); }
.dc-win { position: absolute; left: 0; top: 0; bottom: 0; background: #22b45a; transition: width .15s; }
.dc-marker { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); opacity: 0; transition: left .35s cubic-bezier(.2,1.4,.4,1), opacity .2s; }
.dc-marker.show { opacity: 1; }
.dc-marker i { display: block; width: 0; height: 0; border-left: 10px solid transparent; border-right: 10px solid transparent; border-top: 16px solid #fff; filter: drop-shadow(0 2px 0 #000); }
.dc-ticks { position: absolute; top: 30px; left: 0; right: 0; display: flex; justify-content: space-between; font: 700 11px var(--fn); color: #b8c8ff; }
.dc-slider { width: 100%; margin: 34px 0 10px; accent-color: #ffd23f; height: 22px; }
.dc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.dc-stats div { background: rgba(0,0,0,.28); border: 2px solid rgba(255,255,255,.15); padding: 8px; }
.dc-stats small { display: block; font-size: 12px; color: #b8c8ff; }
.dc-stats b { font: 700 20px var(--fn); color: #fff; }
.dc-presets { display: flex; gap: 6px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }
.dc-presets button { background: rgba(0,0,0,.3); border: 2px solid rgba(255,255,255,.2); color: #fff; padding: 6px 12px; font: 700 14px var(--fn); }
.dc-presets button small { display: block; font: 500 10px Inter; color: #b8c8ff; }
.dc-presets button.on, .dc-presets button:hover { border-color: #ffd23f; color: #ffd23f; }

@media (max-width: 900px) {
  .gs-top { flex-wrap: wrap; } .gs-me { display: none; }
  .slot-wrap, .rl { grid-template-columns: 1fr; justify-items: center; }
  .pcard { width: 62px; height: 88px; } .cc { font-size: 32px; } .cface { inset: 18px 12px; } .cface b { font-size: 20px; }
  .vp .pcard { width: 58px; height: 84px; } .hold { width: 58px; font-size: 11px; }
  .vp-pay { grid-template-columns: 1fr; }
  .dc-stats { grid-template-columns: repeat(2, 1fr); }
  .rboard { grid-template-columns: 30px repeat(12, 1fr) 32px; font-size: 11px; }
  .rc { font-size: 11px; }
}

/* readability pass: pixel font only for big titles */
.logo { font-family: var(--ft); font-weight: 700; letter-spacing: 0; }
.gs-title h2, .banner b, .cab-marquee span, .bigbtn b, .mhead h2 { font-family: var(--ft) !important; font-weight: 700 !important; letter-spacing: .5px; }
.bigbtn b { font-size: 26px; }
.gs-title h2 { font-size: 26px; }
.banner b { font-size: 30px; }
.ci b { font-family: var(--fn); font-weight: 800; font-size: 20px; letter-spacing: -1px; }
.ci.br { transform: none; }
.cface b { font-family: var(--fn); font-weight: 800; font-size: 32px; }
.pchip { font-family: var(--fn); font-weight: 800; font-size: 10px; letter-spacing: -.3px; }
.pc { font-family: var(--fn); font-weight: 800; font-size: 9px; }
.gs-stat b, .betnow b, .led b, .cab-jp b { letter-spacing: .3px; }
.tag, .tabs button, .chip, .rail button span, .badge, .live-dot, .seg button, .hn { letter-spacing: .3px; }
.tabs button { font-size: 13px; }
.ev .tag { font-size: 10px; }
.act b { font-size: 17px; }
.hold { font-size: 15px; }
.vp-row { font-size: 14px; }
.rc { font-size: 16px; }
.total { font-size: 20px; }
.pc { left: auto; top: -9px; right: -7px; transform: none; width: 26px; height: 26px; border-width: 2px; font-size: 8px; }
.tabs button { font-size: 12px; white-space: nowrap; padding: 7px 0; }

/* =================== CHROME REDESIGN: visible, rounded =================== */
:root { --ft: 'Press Start 2P', monospace; --r: 12px; --r-sm: 8px; --panel: #17121b; --panel2: #201927; --line: #33293b; }
.logo, .gs-title h2, .banner b, .cab-marquee span, .bigbtn b, .mhead h2 { font-family: var(--ft) !important; font-weight: 400 !important; letter-spacing: 0; text-transform: uppercase; }
.logo { font-size: 17px; text-shadow: 2px 2px 0 #7a2a00, 0 0 14px rgba(255,180,40,.4); }
.gs-title h2 { font-size: 17px; line-height: 1.3; }
.bigbtn b { font-size: 17px; }
.banner b { font-size: 21px; line-height: 1.3; }
.banner small { font-family: var(--fn); font-weight: 800; font-size: 17px; }
.cab-marquee span { font-size: 22px; }

/* header */
header { height: 54px; gap: 12px; background: linear-gradient(#16101a, #100b13); }
.badge { border-radius: 999px; padding: 4px 10px; }
.pill, .xlink, .btn-wallet { border-radius: 999px; }
.pill { padding: 7px 14px; font-size: 12.5px; }
.btn-wallet { padding: 8px 16px; font-weight: 600; }
main { height: calc(100% - 78px); }

/* left rail: big, bright, rounded */
.rail { width: 96px; padding: 14px 10px; gap: 12px; background: linear-gradient(180deg, #1d1522, #140f18); border-right: 2px solid #4a3414; box-shadow: 4px 0 18px rgba(0,0,0,.45); z-index: 2; }
.rail-group { width: 100%; display: flex; flex-direction: column; gap: 6px; padding: 6px; background: #0f0b12; border: 1px solid var(--line); border-radius: 16px; }
.rail button { width: 100%; padding: 10px 0 9px; gap: 5px; background: #221a28; border: 1px solid #3a2f43; border-radius: var(--r); color: #f3e9d8; transition: background .12s, border-color .12s, transform .08s; }
.rail button i { font-size: 20px; font-family: var(--fn); font-weight: 800; color: var(--gold); line-height: 1; }
.rail button span { font-family: var(--fn); font-size: 12px; font-weight: 700; letter-spacing: 0; }
.rail button:hover { background: #2e2236; border-color: var(--gold2); transform: translateY(-1px); }
.rail button.on { background: linear-gradient(#3a2a0c, #2a1e08); border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset, 0 0 14px rgba(255,210,63,.25); }
.rail button.on span { color: var(--gold); }
.rail button.get { padding: 14px 0 12px; background: linear-gradient(#ffe46a, #e9a820); color: #1a1000; border: 2px solid #1a1000; box-shadow: 0 4px 0 #7a4a00, 0 0 22px rgba(255,200,40,.35); animation: getpulse 2.4s ease-in-out infinite; }
.rail button.get i { color: #1a1000; font-size: 24px; }
.rail button.get span { font-size: 12.5px; font-weight: 800; }
.rail button.get:hover { filter: brightness(1.06); }
.rail button.get.on { box-shadow: 0 4px 0 #7a4a00, 0 0 0 3px #fff; }
@keyframes getpulse { 50% { box-shadow: 0 4px 0 #7a4a00, 0 0 34px rgba(255,200,40,.6); } }
.rail-group.zoom { flex-direction: column; }
.rail-group.zoom button { padding: 6px 0; } .rail-group.zoom button i { font-size: 22px; }

/* right panel */
.panel { width: 380px; background: var(--panel); border-left: 2px solid #4a3414; box-shadow: -4px 0 18px rgba(0,0,0,.45); }
.tabs { gap: 4px; padding: 10px; background: #120e15; }
.tabs { border-bottom: 1px solid var(--line); }
.tabs button { border-radius: 999px; font-family: var(--fn); font-weight: 700; font-size: 12.5px; letter-spacing: 0; padding: 9px 0; background: #221a28; border-color: #3a2f43; color: #cfc3cf; }
.tabs button:hover { color: #fff; border-color: var(--gold2); }
.tabs button.on { background: var(--gold); color: #1a1000; border-color: var(--gold); box-shadow: 0 3px 0 #7a4a00; }
.panel-body { padding: 12px; }
.tile { background: var(--panel2); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; }
.tile .k { font-size: 12px; color: #a99ca8; font-weight: 500; }
.tile .v { font-size: 18px; margin-top: 3px; }
.tile .s { font-size: 11.5px; color: #8d808c; margin-top: 2px; }
.grid2, .grid3 { gap: 8px; }
.note { border-radius: var(--r); background: #1a1420; border: 1px dashed #4a3a52; color: #b9adb8; font-size: 12.5px; }
.note.test { border-color: #6a4a10; background: #1e1608; }
h3 { font-family: var(--fn); font-weight: 800; font-size: 14px; color: #fff; margin: 18px 0 10px; }
h3 small { font-weight: 500; }
.link { font-weight: 600; text-decoration: none; padding: 6px 12px; background: #221a28; border: 1px solid #3a2f43; border-radius: 999px; color: var(--cyan); }
.link:hover { border-color: var(--cyan); }

/* agent header card */
.ahead { padding: 12px; background: linear-gradient(135deg, #2a1e0c, #1a1420 60%); border: 1px solid #5a4218; border-radius: 14px; margin: 10px 0 10px; grid-template-columns: 70px 1fr; }
.ahead img { border-radius: 10px !important; width: 64px !important; height: 86px !important; }
.ahead .tk { font-family: var(--fn); font-weight: 800; font-size: 24px; letter-spacing: -.5px; }
.ahead .nm { font-size: 13.5px; font-weight: 600; }
.status { font-size: 12.5px; font-weight: 600; color: #d8f5e2; }
.chips { gap: 6px; margin: 8px 0; }
.chip { border-radius: 999px; font-family: var(--fn); font-weight: 700; font-size: 11.5px; padding: 5px 10px; background: #221a28; border-color: #3a2f43; letter-spacing: 0; }
button.chip:hover { border-color: var(--gold); color: var(--gold); }
.chip.on { box-shadow: 0 2px 0 #7a4a00; }
.tierbar { height: 10px; border-radius: 999px; overflow: hidden; margin-top: 8px; }
.tierbar div { border-radius: 999px; }
.tiers span { font-family: var(--fn); font-weight: 700; font-size: 10.5px; }

/* feed + lists */
.feed { gap: 6px; }
.ev { grid-template-columns: 58px 1fr; padding: 9px 10px; border: 1px solid #2a2230; border-radius: var(--r); background: #1b1520; font-size: 13px; line-height: 1.45; }
.ev .tag { border-radius: 999px; font-family: var(--fn); font-weight: 800; font-size: 10px; padding: 4px 0; letter-spacing: .3px; }
.ev b { font-family: var(--fn); font-weight: 800; }
.ev .t { font-size: 11.5px; }
.alist { display: flex; flex-direction: column; gap: 4px; }
.alist .row { border-radius: var(--r); background: #1b1520; border: 1px solid #2a2230; padding: 7px 10px; grid-template-columns: 30px 1fr auto; }
.alist .row:hover { background: #251d2b; border-color: var(--gold2); }
.alist .row img { width: 26px; height: 37px; border-radius: 6px; background: #2a1a10; }
.alist .tk { font-family: var(--fn); font-weight: 800; font-size: 14px; }
.alist .st { font-size: 12px; }
.alist .val { font-family: var(--fn); font-weight: 800; font-size: 13px; }

/* buttons in panel */
.btn { border-radius: 10px; font-weight: 600; }
.btn.gold { font-family: var(--fn); font-weight: 800; box-shadow: 0 3px 0 #7a4a00; }
.gamebtns .btn { border-radius: 10px; background: #221a28; border-color: #3a2f43; padding: 10px 12px; }
.gamebtns .btn:hover { border-color: var(--gold); background: #2a2030; }
.seg { border-radius: 999px; overflow: hidden; border-color: #3a2f43; }
.seg button { font-family: var(--fn); font-weight: 700; font-size: 12.5px; letter-spacing: 0; text-transform: capitalize; }
.styleopt { border-radius: var(--r); }
.styleopt b { font-family: var(--fn); font-weight: 800; }
.form input[type=text], .form select { border-radius: 10px; }
.sw { border-radius: 6px; }
.preview canvas { border-radius: 12px; }

/* stage hint + toasts */
.stage-hint { border-radius: 999px; padding: 8px 16px; font-size: 12.5px; color: #cfc3cf; background: rgba(16,11,19,.88); border-color: #3a2f43; }
#toast div { border-radius: 12px; font-weight: 500; }
.modal-box { border-radius: 16px; }
.modal-box.wide { border-radius: 18px; overflow: hidden; }
.gs-me, .gs-stat, .gs-icon, .betnow, .betops button, .act, .hn { border-radius: 10px; }
.gs-ico { border-radius: 12px; }
.bigbtn { border-radius: 14px; }
.felt { border-radius: 18px; }
#ticker { height: 24px; }

@media (max-width: 900px) {
  .rail { width: 100%; flex-direction: row; padding: 8px; box-shadow: none; border-right: 0; border-bottom: 2px solid #4a3414; }
  .rail-group { flex-direction: row; width: auto; }
  .rail button { width: 64px; }
  .rail-group.zoom { display: none; }
  .panel { width: 100%; border-left: 0; }
}

/* ===== mainnet additions ===== */
.lnk { color: var(--cyan); text-decoration: none; font-size: 12px; font-weight: 600; }
.lnk:hover { text-decoration: underline; }
a.chip { text-decoration: none; color: var(--text); }
.fair code, .rev code { display: block; font: 500 11px ui-monospace, Menlo, Consolas, monospace; color: #d9cbe0; background: #0f0b12; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; margin: 4px 0 6px; word-break: break-all; }
.fair .s b { color: var(--gold); }
.fairrow { display: flex; gap: 6px; margin-top: 6px; }
.fairrow input { flex: 1; min-width: 0; background: #0b080d; border: 1px solid var(--line); border-radius: 10px; color: var(--text); padding: 8px; font: inherit; font-size: 12.5px; }
.fairrow .btn { white-space: nowrap; padding: 8px 10px; font-size: 12.5px; }
.rev { margin-top: 4px; }
.steps { display: flex; gap: 6px; margin: 4px 0 10px; }
.step { flex: 1; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: #1b1520; border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--muted); }
.step b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #2a2230; color: var(--text); font-size: 12px; }
.step.on { border-color: var(--gold); color: var(--text); } .step.on b { background: var(--gold); color: #1a1000; }
.step.done { border-color: #1d5a35; color: var(--green); } .step.done b { background: var(--green); color: #04140a; }
.spinner { width: 34px; height: 34px; margin: 6px auto 10px; border: 4px solid #3a2f43; border-top-color: var(--gold); border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.gs-lim { margin-left: 14px; white-space: nowrap; color: #b8aab5; }
.gs-lim b { color: var(--gold); font-weight: 700; }
.preview canvas { width: 132px !important; height: 132px !important; border-radius: 14px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.rail button.get.on span, .rail button.get span { color: #1a1000; }
.imgseg { margin-bottom: 2px; }
.prevwrap { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.prevwrap small { font-size: 11px; color: var(--muted); }
#prevChar { width: 54px !important; height: 78px !important; image-rendering: pixelated; background: radial-gradient(circle at 50% 70%, #3a2410, #140d0a); border-radius: 10px; border: 1px solid var(--line); }
.preview { align-items: flex-start; }
.prevwrap[hidden] { display: none; }
.preview { flex-wrap: wrap; }
.preview > div:last-child { flex: 1 1 100% !important; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { width: 36px; height: 36px; filter: drop-shadow(0 2px 6px rgba(255,60,60,.35)); }
.gate-logo { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 4px 0 14px; }
.gate-logo img { width: 96px; height: 96px; filter: drop-shadow(0 6px 18px rgba(255,60,60,.35)); }
.gate-logo b { font: 400 20px var(--ft); color: var(--gold); text-shadow: 2px 2px 0 #7a2a00; }
/* chat */
.chatlist { display: flex; flex-direction: column; gap: 6px; max-height: calc(100vh - 330px); min-height: 200px; overflow-y: auto; padding-right: 4px; }
.msg { display: grid; grid-template-columns: 26px 1fr; gap: 8px; padding: 8px 10px; background: #1b1520; border: 1px solid #2a2230; border-radius: 12px; }
.msg.me { background: #241c0c; border-color: #5a4218; }
.msg img, .msg .noav { width: 22px; height: 32px; border-radius: 5px; background: #2a1a10; image-rendering: pixelated; }
.msg .mh { display: flex; gap: 8px; align-items: baseline; }
.msg .mh b { color: var(--gold); font-weight: 800; cursor: pointer; }
.msg .mh .t { font-size: 11px; color: var(--muted); }
.msg .mt { font-size: 13.5px; line-height: 1.4; word-break: break-word; margin-top: 2px; }
.composer { display: flex; gap: 6px; margin-top: 10px; }
.composer input { flex: 1; min-width: 0; background: #0b080d; border: 1px solid var(--line); border-radius: 10px; color: var(--text); padding: 10px; font: inherit; }
.composer input:focus { outline: 1px solid var(--gold2); }
.unread { font-style: normal; margin-left: 4px; background: var(--red); color: #fff; border-radius: 999px; font-size: 10px; font-weight: 800; padding: 1px 6px; }
.rail button { position: relative; }
.rail .unread { position: absolute; top: 4px; right: 4px; margin: 0; }
.tabs button { font-size: 11.5px; }
.chatlist { height: calc(100vh - 330px); min-height: 220px; }
.ca-chip { display: flex; align-items: center; gap: 8px; border: 1px solid #6a4a10; background: #1e1606; color: var(--text); border-radius: 999px; padding: 7px 14px; font: 600 12.5px var(--fn); white-space: nowrap; }
.ca-chip b { color: var(--gold); font-weight: 800; }
.ca-chip:not(:disabled):hover { border-color: var(--gold); }
.ca-chip:disabled { cursor: default; opacity: .85; }
.ca-chip:disabled span { color: var(--muted); font-style: italic; }
