/* Arcade games: Slots (#slt-ui) and Keno (#kno-ui). Shared classes prefixed .arc-, plus .slt- and .kno- */
.arc-ui { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 14px 16px; overflow: auto; color: #f2efe6; background: radial-gradient(ellipse at 50% 30%, #2a1f3d 0%, #130f1d 70%); font-family: inherit; }
.arc-ui.hidden { display: none; }
.arc-status { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; font-size: 16px; padding: 8px 16px; background: rgba(0,0,0,.35); border-radius: 10px; }
.arc-status b { color: #ffd24a; }
.arc-main { display: flex; gap: 18px; align-items: flex-start; justify-content: center; flex-wrap: wrap; width: 100%; max-width: 1000px; }
.arc-msg { min-height: 30px; font-size: 22px; font-weight: 700; text-align: center; margin-top: 8px; }
.arc-msg.win { color: #ffd24a; }
.arc-msg.lose { color: #b9b4c4; }
.arc-pay { min-width: 210px; padding: 12px 14px; background: rgba(0,0,0,.35); border-radius: 10px; font-size: 14px; }
.arc-pay h4 { margin: 0 0 8px; font-size: 15px; }
.arc-pay small { display: block; margin-top: 6px; opacity: .7; }
.arc-payrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 3px 4px; border-radius: 6px; }
.arc-payrow.on { background: rgba(255,210,74,.28); }
.arc-payrow b { color: #ffd24a; }
.arc-bar { display: flex; gap: 16px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 10px 16px; background: rgba(0,0,0,.4); border-radius: 12px; }
.arc-group { display: flex; align-items: center; gap: 6px; }
.arc-label { opacity: .8; margin-right: 4px; }
.arc-val { min-width: 54px; text-align: center; font-size: 18px; color: #ffd24a; }
.arc-total { margin-top: 6px; text-align: center; }
.arc-btn { min-width: 40px; padding: 8px 12px; }
.arc-btn.on { outline: 2px solid #ffd24a; }
.arc-btn:disabled, .arc-go:disabled { opacity: .45; cursor: default; }
.arc-go { padding: 12px 34px; font-size: 18px; }
.slt-machine { padding: 10px; background: linear-gradient(#6b4a1c, #3a2808); border-radius: 16px; border: 3px solid #d7a93a; }
.slt-canvas { display: block; width: min(92vw, 480px); height: auto; aspect-ratio: 418 / 340; border-radius: 8px; }
.kno-boardwrap { width: min(94vw, 620px); }
.kno-board { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; }
.kno-cell { aspect-ratio: 1; padding: 0; font-size: clamp(11px, 2.4vw, 17px); font-weight: 700; color: #e8e4f4; background: #2d2644; border: 2px solid #4a4068; border-radius: 8px; cursor: pointer; }
.kno-cell:disabled { cursor: default; }
.kno-cell.pick { background: #3a6fd8; border-color: #9cc0ff; color: #fff; }
.kno-cell.drawn { background: #5a5470; color: #cfcade; border-color: #7a7498; }
.kno-cell.hit { background: #e8b92a; border-color: #fff1b0; color: #2a1b00; }
@media (max-width: 640px) { .kno-board { grid-template-columns: repeat(8, 1fr); } }

/* ---- fit the viewport and keep the 3D casino visible behind (table, players, room) */
.arc-ui { z-index: 9; background: none; overflow: hidden; pointer-events: none; gap: 6px; padding: 6px 10px; justify-content: flex-end; box-sizing: border-box; }
.arc-ui > * { pointer-events: auto; }
.arc-status { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); padding: 4px 14px; font-size: 14px; background: rgba(0,0,0,.6); white-space: nowrap; }
.arc-main { flex: 0 1 auto; min-height: 0; gap: 10px; align-items: center; flex-wrap: nowrap; max-width: 100%; pointer-events: none; }
.arc-main > * { pointer-events: auto; }
.arc-msg { position: absolute; top: 56px; left: 50%; transform: translateX(-50%); margin: 0; min-height: 0; padding: 2px 14px; border-radius: 12px; background: rgba(0,0,0,.55); font-size: clamp(14px, 2.6vh, 20px); pointer-events: none; }
.arc-msg:empty { display: none; }
.arc-pay { min-width: 0; padding: 6px 10px; font-size: 12px; background: rgba(0,0,0,.6); max-height: calc(100vh - 190px); overflow: auto; }
.arc-payrow { padding: 1px 4px; }
.arc-bar { gap: 6px 12px; padding: 5px 12px; background: rgba(4,30,18,.78); }
.arc-go { padding: clamp(6px, 1.4vh, 12px) 28px; }
.arc-btn { padding: clamp(4px, 1vh, 8px) 10px; }
.slt-machine { padding: 6px; }
.slt-canvas { width: auto; height: clamp(150px, calc(100vh - 200px), 420px); max-width: 60vw; }
.kno-boardwrap { width: min(94vw, 600px, calc((100vh - 190px) * 1.27)); }
.kno-board { gap: 3px; }
.kno-cell { background: rgba(45,38,68,.82); font-size: clamp(10px, 2vh, 16px); border-width: 1px; border-radius: 6px; }
