/* GREED RUN - menus, HUD and touch controls. The arena itself is drawn on the canvas. */
:root {
  --bg: #070c22; --panel: #101a42; --panel2: #16224f; --line: #2c3c7a; --ink: #070b1f;
  --text: #eef1ff; --muted: #9aa6d6; --gold: #ffcc33; --gold2: #ffe28a; --green: #3ddc84; --red: #ff4d5e; --amber: #ffb547; --cyan: #5fd8ff;
  --r: 16px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: Rubik, system-ui, -apple-system, 'Segoe UI', sans-serif; overflow: hidden; overscroll-behavior: none; }
body { position: fixed; inset: 0; touch-action: none; user-select: none; -webkit-user-select: none; }
button, input { font: inherit; color: inherit; }
a { color: var(--gold2); }
#app { position: fixed; inset: 0; }
#cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* screens */
.screen { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; padding: max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); overflow-y: auto; -webkit-overflow-scrolling: touch; touch-action: pan-y; z-index: 5; }
.screen.show { display: flex; }
.screen:not(.hud):not(.title-screen) { background: rgba(4, 7, 22, .78); backdrop-filter: blur(3px); }
.screen.overlay { z-index: 20; }
.panel { position: relative; width: min(560px, 100%); margin: auto; background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 2px solid var(--line); border-radius: 22px; padding: 22px 22px 18px; box-shadow: 0 0 0 4px var(--ink), 0 18px 50px rgba(0, 0, 0, .6); }
.panel.narrow { width: min(420px, 100%); }
.panel.wide { width: min(820px, 100%); }
h2 { font-family: Bungee, Rubik, sans-serif; font-weight: 400; margin: 0 0 10px; font-size: clamp(1.3rem, 3.6vw, 1.8rem); letter-spacing: .02em; color: var(--gold); text-shadow: 0 3px 0 var(--ink); }
h3 { margin: 14px 0 6px; font-size: 1rem; color: var(--gold2); }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.center { text-align: center; }
.field { display: block; margin: 12px 0 6px; font-weight: 800; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.err { color: #ff8a94; font-weight: 700; min-height: 1.2em; margin: 8px 0 0; }
.row { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 16px; }
.row.left { justify-content: flex-start; }
.row.tight { margin-top: 6px; gap: 6px; }
input[type=text], input:not([type]), #codeIn, #nameIn { width: 100%; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--line); background: #0a1233; font-weight: 800; font-size: 1.05rem; outline: none; }
input:focus { border-color: var(--gold); }
#codeIn { text-transform: uppercase; letter-spacing: .3em; font-family: Bungee, Rubik, sans-serif; font-size: 1.4rem; text-align: center; }
.join-row { display: flex; gap: 10px; }
.join-row input { flex: 1; min-width: 0; }
input[type=range] { width: 100%; accent-color: var(--gold); }
.check { display: flex; gap: 10px; align-items: center; margin: 12px 0; font-weight: 700; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--gold); }

.btn { border: 0; border-radius: 14px; padding: 12px 18px; font-weight: 900; letter-spacing: .02em; cursor: pointer; background: #24336e; box-shadow: 0 4px 0 var(--ink), inset 0 0 0 2px #3a4f9c; transition: transform .06s; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink), inset 0 0 0 2px #3a4f9c; }
.btn.primary { background: linear-gradient(180deg, #ffe066, #ffbe1f); color: #2a1a00; box-shadow: 0 4px 0 #8a5a00, 0 0 0 2px var(--ink); }
.btn.primary:active { box-shadow: 0 1px 0 #8a5a00, 0 0 0 2px var(--ink); }
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 2px var(--line); }
.btn.small { padding: 8px 12px; font-size: .88rem; }
.btn.big { padding: 14px 26px; font-size: 1.1rem; }
.btn.on { background: var(--green); color: #032312; box-shadow: 0 4px 0 #0b5a2c, 0 0 0 2px var(--ink); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 0; background: rgba(16, 26, 66, .9); box-shadow: inset 0 0 0 2px var(--line); font-size: 1.3rem; cursor: pointer; }

.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button { flex: 1; min-width: 54px; border: 0; padding: 10px 8px; border-radius: 12px; background: #0b1436; box-shadow: inset 0 0 0 2px var(--line); font-weight: 900; cursor: pointer; }
.seg button.on { background: var(--gold); color: #261800; box-shadow: inset 0 0 0 2px #fff3c0; }
.seg.small button { padding: 7px 6px; font-size: .88rem; }

/* title */
.title-screen { background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 200, 60, .16), transparent 60%), linear-gradient(180deg, rgba(7, 12, 34, .55), rgba(7, 12, 34, .88)); align-items: flex-start; }
.title-wrap { width: min(640px, 100%); margin: auto; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px 0 18px; }
.logo { margin: 6px 0 0; font-family: Bungee, Rubik, sans-serif; font-weight: 400; line-height: .9; text-align: center; font-size: clamp(3rem, 12vw, 6.4rem); display: flex; flex-direction: column; align-items: center; }
.logo span { background: linear-gradient(180deg, #fff5c4 0%, #ffd23a 45%, #f39a00 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 5px 0 #6b3a00) drop-shadow(0 0 2px var(--ink)) drop-shadow(0 10px 24px rgba(255, 180, 30, .35)); }
.logo .l2 { font-size: .78em; letter-spacing: .28em; margin-left: .28em; }
.tagline { margin: 2px 0 0; text-align: center; font-weight: 800; color: #dfe5ff; font-size: clamp(.92rem, 2.4vw, 1.08rem); text-shadow: 0 2px 0 var(--ink); }
.title-art.xp-anchor { display: block; width: 0; height: 0; }
.gold-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px 7px 10px; border-radius: 999px; border: 2px solid #8a6a10; background: rgba(20, 16, 4, .7); color: var(--gold); font-weight: 900; font-size: 1.05rem; cursor: pointer; }
.gold-pill .pill-sub { color: #cdb46a; font-weight: 700; font-size: .85rem; }
.coin-ico { width: 22px; height: 22px; border-radius: 50%; background: url(/play/assets/dca-coin-48.png) center / contain no-repeat; }
.name-row { display: flex; align-items: center; gap: 10px; width: min(420px, 100%); }
.name-row label { font-weight: 800; color: var(--muted); font-size: .85rem; white-space: nowrap; }
.name-row input { padding: 9px 12px; font-size: 1rem; }
.menu { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mbtn { display: flex; align-items: center; gap: 12px; text-align: left; border: 0; border-radius: 16px; padding: 12px 14px; background: rgba(16, 26, 66, .92); box-shadow: inset 0 0 0 2px var(--line), 0 4px 0 var(--ink); cursor: pointer; min-height: 64px; }
.mbtn:hover, .mbtn:focus-visible { box-shadow: inset 0 0 0 2px var(--gold), 0 4px 0 var(--ink); outline: none; }
.mbtn:active { transform: translateY(2px); }
.mbtn .mi { font-size: 1.6rem; width: 36px; text-align: center; flex: none; }
.mbtn .mt { display: flex; flex-direction: column; min-width: 0; }
.mbtn b { font-size: 1.02rem; }
.mbtn small { color: var(--muted); font-weight: 600; font-size: .8rem; }
.mbtn.big { grid-column: 1 / -1; min-height: 76px; }
.mbtn.gold { background: linear-gradient(180deg, #ffe066, #ffb81a); color: #2a1a00; box-shadow: 0 0 0 2px var(--ink), 0 5px 0 #8a5a00; }
.mbtn.gold small { color: #5a3c00; }
.mbtn.gold b { font-family: Bungee, Rubik, sans-serif; font-weight: 400; font-size: 1.35rem; letter-spacing: .03em; }
.acct { font-size: .88rem; text-align: center; padding: 8px 14px; border-radius: 12px; background: rgba(16, 26, 66, .8); border: 1px solid var(--line); }
.acct b { color: var(--gold2); }
.foot { margin: 2px 0 0; font-size: .85rem; color: var(--muted); }

/* lobby */
.lobby-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.lobby-head h2 { margin: 0; }
.code { font-family: Bungee, Rubik, sans-serif; color: #fff; background: #0a1233; border: 2px solid var(--gold); border-radius: 10px; padding: 2px 10px; letter-spacing: .14em; }
.plist { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.plist li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: #0b1436; border: 1px solid var(--line); }
.plist .sw { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: .8rem; color: var(--ink); font-weight: 900; box-shadow: 0 0 0 2px var(--ink); }
.plist .nm { flex: 1; font-weight: 800; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag { font-size: .7rem; font-weight: 900; letter-spacing: .06em; padding: 3px 7px; border-radius: 6px; background: #24336e; text-transform: uppercase; white-space: nowrap; }
.tag.host { background: var(--gold); color: #261800; }
.tag.bot { background: #5a3ad8; }
.tag.ready { background: var(--green); color: #032312; }
.tag.wait { background: #3a466e; color: #c8d0f0; }
.tag.gone { background: #6e2a33; }
.tag.you { background: #fff; color: var(--ink); }
.xbtn { border: 0; background: #3a1d2a; color: #ffb3bd; border-radius: 8px; padding: 4px 8px; font-weight: 900; cursor: pointer; }
.friend-list { display: grid; gap: 6px; max-height: 160px; overflow: auto; }
.friend-list .fr { display: flex; align-items: center; gap: 8px; padding: 6px 8px; background: #0b1436; border-radius: 10px; }
.friend-list .fr span { flex: 1; font-weight: 700; }

/* practice */
.kinds { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.kinds button { border: 0; border-radius: 12px; padding: 8px 10px; text-align: left; background: #0b1436; box-shadow: inset 0 0 0 2px var(--line); cursor: pointer; font-weight: 800; }
.kinds button small { display: block; color: var(--muted); font-weight: 600; font-size: .75rem; }
.kinds button .k { color: var(--gold2); }

/* look */
.look-grid { display: grid; grid-template-columns: 300px 1fr; gap: 18px; align-items: start; }
.look-prev { background: radial-gradient(circle at 50% 60%, #1e3380, #0a1233 70%); border-radius: 18px; border: 2px solid var(--line); display: grid; place-items: center; }
.look-prev canvas { width: 100%; max-width: 300px; height: auto; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatches button { width: 42px; height: 42px; border-radius: 50%; border: 0; box-shadow: 0 0 0 2px var(--ink); cursor: pointer; font-weight: 900; color: var(--ink); font-size: 1rem; }
.swatches button.on { box-shadow: 0 0 0 2px var(--ink), 0 0 0 5px #fff; }
.swatches button:disabled { opacity: .3; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { border: 0; border-radius: 999px; padding: 7px 12px; background: #0b1436; box-shadow: inset 0 0 0 2px var(--line); font-weight: 800; font-size: .86rem; cursor: pointer; }
.chips button.on { background: var(--gold); color: #261800; box-shadow: none; }
.chips button.locked { opacity: .55; }
.chips button.locked::before { content: '🔒 '; }

/* how */
.hint-big { font-weight: 900; font-size: clamp(1rem, 2.6vw, 1.2rem); background: rgba(255, 204, 51, .1); border: 2px solid rgba(255, 204, 51, .4); border-radius: 14px; padding: 10px 14px; margin: 4px 0 12px; }
.how-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.hc { background: #0b1436; border: 1px solid var(--line); border-radius: 14px; padding: 8px; display: flex; flex-direction: column; gap: 4px; font-size: .84rem; color: var(--muted); }
.hc canvas { width: 100%; height: auto; border-radius: 10px; background: #13235a; }
.hc b { color: var(--gold); font-family: Bungee, Rubik, sans-serif; font-weight: 400; font-size: 1rem; }
.more summary { cursor: pointer; font-weight: 800; margin-top: 12px; color: var(--gold2); }
.rules { padding-left: 1.1rem; color: #cfd6f5; font-size: .9rem; line-height: 1.45; }

/* HUD */
.hud { display: none; pointer-events: none; padding: 0; align-items: stretch; justify-content: stretch; }
.hud.show { display: block; }
.topbar { position: absolute; top: max(6px, env(safe-area-inset-top)); left: max(8px, env(safe-area-inset-left)); right: max(8px, env(safe-area-inset-right)); display: flex; gap: 6px; align-items: stretch; justify-content: center; pointer-events: none; }
.topbar > * { pointer-events: auto; }
#bMenu { position: absolute; left: 0; top: 0; height: 40px; width: 40px; }
.hpill { display: flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 12px; background: rgba(9, 15, 44, .9); border: 2px solid var(--line); box-shadow: 0 3px 0 var(--ink); min-height: 40px; white-space: nowrap; }
.hpill .lbl { font-size: .62rem; font-weight: 900; letter-spacing: .12em; color: var(--muted); }
.hpill b { font-family: Bungee, Rubik, sans-serif; font-weight: 400; font-size: 1.15rem; }
.hpill.time b { min-width: 3.1em; text-align: center; }
.hpill.time.final { border-color: var(--red); animation: throb 1s infinite; }
.hpill.time.final b { color: #ff8a94; }
.hpill.bank b { color: var(--gold); }
.hpill.carry .arrow { color: var(--muted); font-weight: 900; }
.hpill.carry #hValue { color: var(--green); }
.hpill.carry .bonus { font-size: .7rem; font-weight: 900; color: #032312; background: var(--green); border-radius: 6px; padding: 1px 5px; }
.hpill.carry .bonus:empty { display: none; }
.hpill.carry.full { border-color: var(--gold); }
.hpill.dash .meter { display: block; width: 70px; height: 12px; border-radius: 6px; background: #1a2350; overflow: hidden; box-shadow: inset 0 0 0 2px var(--ink); }
.hpill.dash .meter i { display: block; height: 100%; width: 100%; background: var(--cyan); border-radius: 6px; transition: background .1s; }
.hpill.dash.ready { border-color: var(--cyan); }
.hpill.dash.ready .meter i { background: linear-gradient(90deg, #5fd8ff, #b6f1ff); }
.hpill.bankinfo b { font-size: .95rem; color: var(--green); }
.hpill.bankinfo .sub { font-size: .78rem; font-weight: 800; color: var(--amber); }
.board { position: absolute; right: max(8px, env(safe-area-inset-right)); top: calc(max(6px, env(safe-area-inset-top)) + 50px); list-style: none; margin: 0; padding: 6px; background: rgba(9, 15, 44, .82); border: 2px solid var(--line); border-radius: 12px; font-size: .8rem; font-weight: 800; min-width: 140px; }
.board li { display: flex; align-items: center; gap: 6px; padding: 2px 4px; border-radius: 6px; }
.board li.me { background: rgba(255, 255, 255, .12); }
.board .d { width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--ink); flex: none; font-size: .55rem; display: grid; place-items: center; color: var(--ink); }
.board .n { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 92px; }
.board .s { color: var(--gold); font-family: Bungee, Rubik, sans-serif; font-weight: 400; }
.board .c { color: var(--muted); font-size: .7rem; }
.banner { position: absolute; left: 50%; top: 22%; transform: translate(-50%, -50%) scale(.9); padding: 10px 22px; border-radius: 14px; background: rgba(9, 15, 44, .92); border: 2px solid var(--gold); font-family: Bungee, Rubik, sans-serif; font-size: clamp(1rem, 3vw, 1.5rem); color: var(--gold); opacity: 0; transition: opacity .2s, transform .2s; text-align: center; white-space: nowrap; box-shadow: 0 4px 0 var(--ink); }
.banner.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.banner.green { border-color: var(--green); color: var(--green); }
.banner.red { border-color: var(--red); color: #ff8a94; }
.bigmsg { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); font-family: Bungee, Rubik, sans-serif; font-size: clamp(3rem, 14vw, 8rem); color: var(--gold); text-shadow: 0 6px 0 #6b3a00, 0 0 30px rgba(255, 200, 60, .5); opacity: 0; transition: opacity .15s; pointer-events: none; }
.bigmsg.show { opacity: 1; animation: pop .45s ease-out; }
.toasts { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.toasts div { background: rgba(9, 15, 44, .92); border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px; font-weight: 800; font-size: .88rem; animation: fadeup 2.6s forwards; white-space: nowrap; }
.conn { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); background: rgba(40, 10, 16, .95); border: 2px solid var(--red); border-radius: 14px; padding: 12px 20px; font-weight: 900; pointer-events: auto; }

/* touch controls */
.touch { position: absolute; inset: 0; display: none; pointer-events: auto; touch-action: none; }
.touch.on { display: block; }
.stick { position: absolute; left: max(28px, env(safe-area-inset-left)); bottom: max(28px, env(safe-area-inset-bottom)); width: 130px; height: 130px; border-radius: 50%; background: rgba(255, 255, 255, .06); border: 2px solid rgba(255, 255, 255, .18); pointer-events: none; transition: opacity .2s; }
.stick i { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: rgba(255, 255, 255, .22); border: 2px solid rgba(255, 255, 255, .45); }
.stick.idle { opacity: .55; }
.dashbtn { position: absolute; right: max(26px, env(safe-area-inset-right)); bottom: max(26px, env(safe-area-inset-bottom)); width: 112px; height: 112px; border-radius: 50%; border: 0; background: conic-gradient(var(--cyan) calc(var(--p, 1) * 360deg), rgba(30, 44, 100, .85) 0); box-shadow: 0 0 0 4px var(--ink), 0 6px 0 var(--ink); font-family: Bungee, Rubik, sans-serif; font-size: 1.05rem; color: var(--ink); touch-action: none; }
.dashbtn span { position: absolute; inset: 9px; border-radius: 50%; display: grid; place-items: center; background: #9eeaff; }
.dashbtn.cool span { background: #2a3770; color: #8b97c7; }
.dashbtn.down span { background: #fff; }

/* results */
.rtable { display: grid; gap: 6px; margin-top: 8px; }
.rrow { display: grid; grid-template-columns: 34px 1fr repeat(4, 64px); gap: 6px; align-items: center; padding: 8px 10px; border-radius: 12px; background: #0b1436; border: 1px solid var(--line); }
.rrow.head { background: transparent; border: 0; font-size: .66rem; letter-spacing: .1em; font-weight: 900; color: var(--muted); padding-top: 0; padding-bottom: 0; }
.rrow.me { border-color: #fff; }
.rrow.win { background: linear-gradient(90deg, rgba(255, 204, 51, .22), #0b1436 70%); border-color: var(--gold); }
.rrow .pl { font-family: Bungee, Rubik, sans-serif; font-size: 1.2rem; color: var(--gold); text-align: center; }
.rrow .who { display: flex; flex-direction: column; min-width: 0; }
.rrow .who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rrow .aw { font-size: .74rem; font-weight: 800; color: var(--amber); }
.rrow .aw small { color: var(--muted); font-weight: 600; }
.rrow .num { text-align: center; font-weight: 900; }
.rrow .num.score { font-family: Bungee, Rubik, sans-serif; font-weight: 400; color: var(--gold); font-size: 1.1rem; }
.rrow .num.lost { color: #ff8a94; }
.gold-line { font-weight: 900; color: var(--gold); margin: 12px 0 0; min-height: 1.2em; }

/* rotate + modal */
.rotate { position: fixed; inset: 0; z-index: 50; background: #070c22; display: grid; place-items: center; text-align: center; padding: 20px; }
.rotate[hidden] { display: none; }
.rotate > div { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.rotate b { font-family: Bungee, Rubik, sans-serif; font-weight: 400; font-size: 1.4rem; color: var(--gold); }
.rotate span { color: var(--muted); }
.phone-ico { width: 54px; height: 90px; border: 4px solid var(--gold); border-radius: 10px; animation: turn 1.8s ease-in-out infinite; }
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(4, 7, 22, .8); display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal p { font-weight: 700; font-size: 1.02rem; line-height: 1.4; margin: 0; }

@keyframes throb { 50% { box-shadow: 0 3px 0 var(--ink), 0 0 16px rgba(255, 77, 94, .7); } }
@keyframes pop { 0% { transform: translate(-50%, -50%) scale(1.6); } 100% { transform: translate(-50%, -50%) scale(1); } }
@keyframes fadeup { 0% { opacity: 0; transform: translateY(8px); } 10%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes turn { 0%, 20% { transform: rotate(0); } 50%, 80% { transform: rotate(-90deg); } 100% { transform: rotate(0); } }

/* small landscape phones */
@media (max-height: 500px) {
  .hpill { min-height: 34px; padding: 2px 8px; }
  .hpill b { font-size: .98rem; }
  .hpill .lbl { font-size: .55rem; }
  .hpill.dash .meter { width: 46px; }
  #bMenu { width: 34px; height: 34px; font-size: 1.05rem; }
  .board { font-size: .66rem; min-width: 0; top: calc(max(6px, env(safe-area-inset-top)) + 40px); padding: 3px; opacity: .88; }
  .board .n { max-width: 58px; }
  .board .c { display: none; }
  .stick { width: 110px; height: 110px; left: max(18px, env(safe-area-inset-left)); bottom: 14px; }
  .dashbtn { width: 92px; height: 92px; bottom: 14px; right: max(18px, env(safe-area-inset-right)); font-size: .9rem; }
  .menu { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .mbtn { min-height: 52px; padding: 8px 10px; }
  .mbtn small { display: none; }
  .mbtn.big { min-height: 56px; }
  .logo { font-size: 3rem; flex-direction: row; gap: .3em; }
  .logo .l2 { font-size: 1em; letter-spacing: .02em; margin-left: 0; }
  .panel { padding: 14px 16px 12px; }
  .rrow { padding: 5px 8px; }
}
@media (max-width: 760px) {
  .look-grid { grid-template-columns: 1fr; }
  .look-prev canvas { max-width: 220px; }
  .how-cards { grid-template-columns: 1fr 1fr; }
  .rrow { grid-template-columns: 28px 1fr repeat(4, 46px); font-size: .86rem; }
}
@media (max-width: 560px) {
  .menu { grid-template-columns: 1fr; }
  .hpill.bankinfo .sub, .hpill .lbl { display: none; }
}
@media (max-width: 700px) and (max-height: 500px) {
  .hpill.bankinfo { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bigmsg.show, .toasts div, .hpill.time.final, .phone-ico { animation: none; }
}

/* arena picker */
.maps { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin-bottom: 6px; }
.maps.small { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.maps button { position: relative; padding: 4px 4px 6px; border-radius: 12px; border: 2px solid #2a3a7a; background: #0d1638; color: #dfe6ff; font: 700 12px/1.2 Rubik, sans-serif; cursor: pointer; text-align: center; }
.maps button canvas { display: block; width: 100%; height: auto; border-radius: 8px; margin-bottom: 3px; }
.maps button.on { border-color: #ffcc33; box-shadow: 0 0 0 2px rgba(255,204,51,.35); }
.maps button.rand { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 72px; font-size: 13px; }
.maps button.rand span { font: 900 26px/1 Bungee, Rubik, sans-serif; color: #ffcc33; }
.lobby-map { display: flex; gap: 10px; align-items: center; margin: 6px 0 10px; }
.lobby-map canvas { width: 132px; height: auto; border-radius: 10px; border: 2px solid #2a3a7a; flex: none; }
.lobby-map b { display: block; font: 900 15px/1.2 Bungee, Rubik, sans-serif; color: #ffcc33; }
.lobby-map small { display: block; margin-top: 2px; }
