/* Approved lobby: one championship row, then equal AI / together buttons. */
#lobby-stage #lobby-championship-slot{height:238px;display:grid;grid-template-columns:1fr;grid-template-rows:86px 130px;gap:22px}
#lobby-stage #show-tournament{grid-column:1;grid-row:1;display:block;width:924px;height:86px;padding:0;gap:0;border:0;border-radius:0;background:none;box-shadow:none}
#lobby-stage #show-tournament .championship-trophy{left:49px;top:11.5px;width:113px;height:61px}
#lobby-stage #show-tournament #lobby-championship{position:absolute;left:219px;top:7px;width:430px;height:65px;font-size:30px;line-height:65px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#lobby-stage #show-tournament #championship-countdown{position:absolute;left:718px;top:9px;width:120px;height:65px;font-size:28px;line-height:65px;text-align:center}
#lobby-stage #show-tournament .championship-chevron,#lobby-stage #show-tournament .championship-divider{display:block}
#lobby-mode-slot{display:grid;grid-row:2;grid-template-columns:1fr 1fr;gap:22px}
#lobby-stage #lobby-mode-slot>button{position:relative;grid-column:auto;display:flex;align-items:center;justify-content:center;gap:19px;width:451px;height:130px;min-height:0;padding:16px 32px 16px 15px;border:3px solid #c6b176;border-radius:26px;background:linear-gradient(#fff7dc,#e9dcb7);box-shadow:inset 0 3px #fff8,0 5px 8px #00160799;color:#285130;text-align:left}
#lobby-stage #lobby-mode-slot strong{font-size:38px;line-height:1.2;white-space:normal;font-weight:850}
#lobby-stage #lobby-mode-slot:lang(en) strong{font-size:34px}
#lobby-stage #lobby-mode-slot .together-entry-chevron{top:34px}
#lobby-stage #lobby-mode-slot .together-entry-pair{width:83px;height:87px}
#lobby-stage #lobby-mode-slot .together-entry-pair .stone{width:64px;height:64px;font-size:45px}
.ai-entry-mark{display:grid;place-items:center;flex:none;width:56px;height:56px;background:url('./assets/jangi-skins/reference/body.webp') center/contain no-repeat;color:#295e39;font-size:24px;font-weight:850;letter-spacing:-1px;text-shadow:0 1px #fff8}
#lobby-stage .ai-entry-mark{width:83px;height:83px;font-size:38px}
.ai-dialog{position:fixed;inset:var(--ncq-top) var(--ncq-right) var(--ncq-bottom) var(--ncq-left);margin:auto;width:min(420px,calc(100vw - var(--ncq-left) - var(--ncq-right) - 24px));height:min(560px,calc(100dvh - var(--ncq-top) - var(--ncq-bottom) - 24px));max-width:none;max-height:none;padding:18px;border:2px solid #c5af79;border-radius:20px;background:linear-gradient(140deg,#fff9ec,#ede0c5);color:#294b2f;font-family:'Jangi Noto Sans KR',sans-serif;box-shadow:0 12px 32px #00170b99;overflow:hidden}
.ai-dialog[open]{display:flex;flex-direction:column;gap:14px}
.ai-dialog::backdrop{background:#001b11bd}
.ai-dialog button{font:inherit;line-height:1.3;white-space:normal;min-height:44px}
.ai-dialog h2{font-size:21px;line-height:1.4;font-weight:850;margin:0}
.ai-dialog header{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:none}
.ai-dialog header form{display:block;margin:0}
.ai-dialog header button{width:44px;padding:0;border:1px solid #c5b38f;border-radius:50%;background:#fff7e5;color:#5a6e4d;font-size:26px}
.ai-selected{display:flex;align-items:center;justify-content:center;gap:12px;flex:none;padding:5px}
.ai-selected strong{font-size:22px;font-weight:850}
.ai-rank-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;flex:none}
.ai-rank-tabs button{padding:7px 3px;background:#e3d9bc;border:1px solid #c6b994;border-radius:9px;color:#697052;font-size:12px;font-weight:750}
.ai-rank-tabs button.selected{background:#3c6737;color:#fff5df;border-color:#3c6737}
#ai-rank-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(3,minmax(44px,1fr));gap:8px;flex:1;min-height:148px}
#ai-rank-grid button{padding:7px;border:1px solid #cfbf9c;border-radius:10px;background:#fffaf0;color:#546347;font-size:17px;font-weight:800;box-shadow:inset 0 1px #fff}
#ai-rank-grid button[aria-pressed=true]{background:#e8efda;border:2px solid #4b773f;color:#315e2c;box-shadow:inset 0 0 0 1px #fff8}
.ai-dialog .ai-primary{min-height:48px;flex:none;padding:10px;border:1px solid #c89929;border-radius:11px;background:linear-gradient(#ffe69c,#e4bb5e);color:#58431c;font-weight:850;box-shadow:inset 0 1px #fff7ce,0 2px 3px #a78b5b33}
.ai-dialog.ai-confirm{width:min(360px,calc(100vw - var(--ncq-left) - var(--ncq-right) - 28px));height:fit-content;max-height:calc(100dvh - var(--ncq-top) - var(--ncq-bottom) - 24px);padding:25px 18px 18px;text-align:center;gap:16px}
.ai-confirm p{margin:0;color:#697052;font-size:14px;line-height:1.65;word-break:keep-all}
.ai-confirm form{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:4px 0 0}
.ai-confirm form button{padding:9px;border:1px solid #bfb088;border-radius:11px;background:linear-gradient(#fff7df,#e4d9ba);color:#536547;font-size:14px;font-weight:800}
#ai-match-actions{display:flex;flex:none;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;max-width:560px;width:100%;margin-inline:auto}
#ai-match-actions button{min-height:44px;padding:9px 20px;border:1px solid #bbae83;border-radius:11px;background:linear-gradient(#fff5d9,#ded2b2);box-shadow:inset 0 1px #fff8,0 3px 4px #00190c66;color:#536143;font-size:15px;line-height:1.3;font-weight:850}
#ai-match-actions #ai-undo{min-width:156px}
#ai-undo-price{font-weight:850;color:#665126}
#ai-undo-error{color:#a13b2b;font-size:12px}
#ai-match-actions #ai-retry{font-size:12px;padding-inline:10px}
#ai-match-actions button:disabled{opacity:.45;box-shadow:none}
#ai-opponent-avatar{position:absolute;inset:0;display:grid;place-items:center;color:#315a36;font-size:22px;font-weight:850;letter-spacing:-1px}
body.in-ai-match #opponent-panel .match-avatar>svg{display:none}
@media(max-height:690px){.ai-dialog{padding:13px;gap:9px}.ai-dialog[open]{gap:9px}.ai-selected{padding:0}.ai-selected .ai-entry-mark{width:46px;height:46px;font-size:21px}.ai-dialog h2{font-size:19px}#ai-rank-grid{gap:6px}#ai-rank-grid button{font-size:16px}}
