/* cu-arcade2 (18g): Snake + Jake Blocks screens (games-ui.js), on top of the .pl-ov layout. 18h: + top 10 (.ag-lb). tetrisbtn/drop: Blocks pad = Drop (hard) only. tetrisswipe: Drop centered; whole overlay is the swipe surface. tetriswide: Drop = full-width bar. tetrisdrop2: Drop fills entire bottom dark band edge-to-edge (no pad gaps). */
.ag-ov { background: radial-gradient(120% 80% at 50% 0%, #121a46 0%, #05070f 60%); }
.ag-blocks { touch-action: none; overscroll-behavior: none; } /* tetrisswipe: whole screen swipes, no pull-to-refresh */
.ag-blocks .ag-stage, .ag-blocks .ag-top { touch-action: none; }
.ag-top { gap: 8px; }
.ag-t { flex: 1 1 auto; min-width: 0; font-size: 14px; font-weight: 900; letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-snake .ag-t { color: #3dff8b; text-shadow: 0 0 10px rgba(61,255,139,.5); } .ag-blocks .ag-t { color: #29d3ff; text-shadow: 0 0 10px rgba(41,211,255,.5); }
.ag-sc { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; min-width: 52px; padding: 2px 8px; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.ag-sc small { font-size: 8px; letter-spacing: .1em; color: rgba(255,255,255,.55); font-weight: 800; }
.ag-sc i { font-style: normal; font-size: 16px; font-weight: 900; font-variant-numeric: tabular-nums; }
.ag-best i { color: #ffd23f; }
.ag-stage { display: flex; align-items: center; justify-content: center; }
.ag-cv { position: static; display: block; border-radius: 6px; box-shadow: 0 0 0 2px rgba(255,255,255,.06), 0 10px 40px rgba(0,0,0,.6); touch-action: none; }
.ag-msg { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(84%, 320px); padding: 16px 16px 14px; border-radius: 18px; text-align: center;
  background: rgba(7,10,28,.92); border: 1px solid rgba(255,255,255,.16); box-shadow: 0 12px 40px rgba(0,0,0,.6); font-size: 13px; color: rgba(255,255,255,.85); }
.ag-msg[hidden] { display: none; }
/* 18h: online top 10 inside the start / game-over box */
.ag-msg { max-height: calc(100% - 12px); overflow-y: auto; box-sizing: border-box; -webkit-overflow-scrolling: touch; }
.ag-lb { margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.1); text-align: left; }
.ag-lb-h { font-size: 12px; font-weight: 900; letter-spacing: .08em; color: #ffd23f; text-align: center; margin-bottom: 4px; }
.ag-lb ol { list-style: none; margin: 0; padding: 0; }
.ag-lb li { display: flex; align-items: center; gap: 8px; padding: 3px 8px; border-radius: 8px; font-size: 12.5px; line-height: 1.35; }
.ag-lb li:nth-child(odd) { background: rgba(255,255,255,.035); }
.ag-lb li i { flex: 0 0 26px; font-style: normal; font-weight: 900; color: rgba(255,255,255,.6); text-align: center; font-variant-numeric: tabular-nums; }
.ag-lb li span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; font-weight: 700; }
.ag-lb li span { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; line-height: 1.2; }   /* namefit */
.ag-lb li b { display: inline; margin: 0; font-size: 12.5px; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; }
.ag-lb li.me { background: rgba(255,210,63,.16); box-shadow: inset 0 0 0 1px rgba(255,210,63,.55); }
.ag-lb li.me span, .ag-lb li.me b { color: #ffd23f; }
.ag-lb li.sep { justify-content: center; background: none; color: rgba(255,255,255,.4); padding: 0; }
.ag-lb-st, .ag-lb-ok { text-align: center; font-size: 12px; color: rgba(255,255,255,.65); margin: 6px 0 0 !important; }
.ag-lb-ok { color: #3dff8b; font-weight: 800; }
.ag-ov .ag-msg .ag-lb-in { display: block; width: 100%; margin-top: 8px; padding: 9px 12px; font-size: 13.5px; background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.3); }
.ag-msg b { display: block; font-size: 18px; font-weight: 900; color: #fff; margin-bottom: 4px; }
.ag-msg p { margin: 6px 0; } .ag-msg .ag-big { font-size: 34px; font-weight: 900; color: #fff; margin: 2px 0; } .ag-msg .ag-hs { color: #ffd23f; font-weight: 800; }
.ag-msg button { margin-top: 8px; padding: 10px 22px; border-radius: 12px; border: 0; font-size: 15px; font-weight: 900; cursor: pointer; color: #04140b; background: #3dff8b; }
.ag-blocks .ag-msg button { background: #29d3ff; color: #031018; }
.ag-pad { flex: 0 0 auto; display: grid; grid-template-columns: repeat(3, 64px); grid-template-rows: 52px 52px; gap: 6px; justify-content: center; padding: 8px 10px 12px; background: #0b0f20; border-top: 1px solid rgba(255,255,255,.08); }
.ag-pad[hidden] { display: none; }
.ag-pad button { border-radius: 14px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.07); color: #fff; font-size: 20px; font-weight: 900; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; }
.ag-pad button:active { background: rgba(61,255,139,.25); border-color: #3dff8b; }
.ag-pad [data-k=up] { grid-column: 2; grid-row: 1; } .ag-pad [data-k=left] { grid-column: 1; grid-row: 2; } .ag-pad [data-k=down] { grid-column: 2; grid-row: 2; } .ag-pad [data-k=right] { grid-column: 3; grid-row: 2; }
.ag-pad-b { display: flex; justify-content: stretch; align-items: stretch; grid-template-columns: none; grid-template-rows: none; max-width: none; width: 100%; margin: 0; box-sizing: border-box; padding: 0; gap: 0; touch-action: none; border-top: 0; position: relative; min-height: 64px; } /* tetrisdrop2: no gaps — button is the whole dark band */
.ag-pad-b [data-k] { grid-row: auto !important; grid-column: auto !important; }
.ag-pad-b [data-k=hard] { position: absolute; inset: 0; flex: none; width: 100%; height: 100%; min-width: 0; min-height: 0; margin: 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px)); border-radius: 0; border-width: 1px 0 0; font-size: 18px; letter-spacing: .04em; background: rgba(41,211,255,.18); border-color: rgba(41,211,255,.65); box-shadow: 0 0 18px rgba(41,211,255,.18); box-sizing: border-box; } /* tetrisdrop2: absolute fill of pad */
.ag-pad-b button:active { background: rgba(41,211,255,.32); border-color: #29d3ff; }
/* 18i: Jake Pop */
.ag-pop .ag-t { color: #ff3fb4; text-shadow: 0 0 10px rgba(255,63,180,.5); }
.ag-pop .ag-msg button { background: #ff3fb4; color: #1a0410; }
.ag-pad-p { grid-template-columns: 1fr 1.6fr 1fr; grid-template-rows: 58px; max-width: 420px; width: 100%; margin: 0 auto; box-sizing: border-box; }
.ag-pad-p [data-k] { grid-row: 1 !important; grid-column: auto !important; }
.ag-pad-p [data-k=fire] { background: rgba(255,63,180,.2); border-color: rgba(255,63,180,.7); font-size: 17px; letter-spacing: .04em; }
.ag-pad-p button:active { background: rgba(255,63,180,.32); border-color: #ff3fb4; }
/* 18j: Jake vs Zombies (two sticks) */
.ag-zombie .ag-t { color: #ff9f1c; text-shadow: 0 0 10px rgba(255,159,28,.5); }
.ag-zombie .ag-msg button { background: #ff9f1c; color: #1a0d00; }
.ag-pad-z { display: flex; align-items: center; justify-content: space-between; gap: 8px; max-width: 460px; width: 100%; margin: 0 auto; box-sizing: border-box; padding: 8px 16px 14px; }
.ag-stick { position: relative; flex: 0 0 auto; width: 104px; height: 104px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.08) 0%, rgba(255,255,255,.03) 70%); border: 1.5px solid rgba(255,159,28,.55); touch-action: none; user-select: none; -webkit-user-select: none; }
.ag-stick.ag-aim { border-color: rgba(255,210,63,.6); }
.ag-stick i { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(255,159,28,.35); border: 2px solid #ff9f1c; box-shadow: 0 0 14px rgba(255,159,28,.45); pointer-events: none; }
.ag-stick.ag-aim i { background: rgba(255,210,63,.3); border-color: #ffd23f; box-shadow: 0 0 14px rgba(255,210,63,.45); }
.ag-stick.on i { background: rgba(255,159,28,.6); }
.ag-stick span { position: absolute; left: 0; right: 0; bottom: -2px; text-align: center; font-size: 9px; font-weight: 900; letter-spacing: .12em; color: rgba(255,255,255,.55); pointer-events: none; }
.ag-zhint { flex: 1 1 auto; margin: 0; text-align: center; font-size: 10.5px; line-height: 1.35; color: rgba(255,255,255,.55); }
/* 18q: Jake Pinball */
.ag-pinball .ag-t { color: #ffd23f; text-shadow: 0 0 10px rgba(255,210,63,.55); }
.ag-pinball .ag-msg button { background: #ffd23f; color: #1a1200; }
.ag-pad-pb { grid-template-columns: 1fr .9fr 1fr; grid-template-rows: 64px; max-width: 460px; width: 100%; margin: 0 auto; box-sizing: border-box; gap: 8px; }
.ag-pad-pb [data-k] { grid-row: 1 !important; grid-column: auto !important; font-size: 17px; letter-spacing: .03em; }
.ag-pad-pb [data-k=pbl], .ag-pad-pb [data-k=pbr] { background: rgba(255,63,180,.18); border: 2px solid rgba(255,63,180,.75); box-shadow: 0 3px 0 #140a24; }
.ag-pad-pb [data-k=pbgo] { background: rgba(255,210,63,.18); border: 2px solid rgba(255,210,63,.8); color: #ffd23f; font-size: 14px; box-shadow: 0 3px 0 #140a24; }
.ag-pad-pb button:active { background: rgba(255,210,63,.4); border-color: #ffd23f; transform: translateY(2px); box-shadow: none; }

/* jb1v1 (2 Nov 2026): Jake Blocks live battle lobby + opponent mini-board */
.ag-btn-pvp { display: block; width: 100%; margin-top: 8px !important; background: linear-gradient(180deg,#3dffc8,#29d3ff) !important; color: #031018 !important; }
.ag-btn-ch { background: linear-gradient(180deg,#ffd23f,#ff9a3d) !important; color: #1a1000 !important; }
.ag-pvp-note { font-size: 11px; color: rgba(255,255,255,.55); margin-top: 8px !important; line-height: 1.35; }
.ag-opp { position: absolute; right: 8px; top: 8px; z-index: 3; width: 78px; padding: 4px; border-radius: 10px; background: rgba(7,10,28,.88); border: 1px solid rgba(41,211,255,.45); box-shadow: 0 6px 18px rgba(0,0,0,.45); text-align: center; pointer-events: none; }
.ag-opp[hidden] { display: none; }
.ag-opp-cv { display: block; width: 70px; height: 140px; margin: 0 auto; border-radius: 4px; background: #070a1c; }
.ag-opp-n { display: block; margin-top: 3px; font-size: 10px; font-weight: 800; color: #29d3ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-opp-junk { display: block; margin-top: 2px; font-size: 10px; font-weight: 900; color: #ff3f5e; animation: agJunk 0.9s ease; }
.ag-opp-junk[hidden] { display: none; }
@keyframes agJunk { 0% { transform: scale(1.3); opacity: 1; } 100% { transform: scale(1); opacity: .85; } }
.ag-chal-box { margin-top: 8px; text-align: left; }
.ag-chal { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 6px 0; font-size: 12px; }
.ag-chal button { margin-top: 0 !important; padding: 6px 10px !important; font-size: 12px !important; }
.ag-blocks .ag-stage { position: relative; }
