.approved-lobby{width:min(100%,680px);min-height:100svh;margin:auto;padding:12px 4%;display:flex;flex-direction:column;gap:12px;background:repeating-linear-gradient(3deg,#0000 0 28px,#3b170c15 29px 30px),linear-gradient(110deg,#a85223,#743516,#a95524);color:#491d0c;font-family:Arial,sans-serif}.approved-lobby header{display:flex;gap:12px;align-items:center}.approved-lobby h1{flex:1;text-align:center;font:900 clamp(20px,4vw,30px) Arial;padding:15px 6px;background:#fff5e4;border:3px solid #ffa629;border-radius:25px;box-shadow:inset 0 0 0 2px white,0 3px 3px #4b150b66}.gold-panel{background:linear-gradient(115deg,#fffdf4,#fff1dc);border:3px solid #f5ab2a;border-radius:23px;box-shadow:inset 0 0 0 2px white,0 4px 4px #37120777}.lobby-invite{padding:16px 10px;display:flex;align-items:center;gap:12px;flex-wrap:wrap;position:relative}.lobby-invite strong{display:flex;align-items:center;gap:6px;font-size:18px;margin-top:10px}.lobby-invite b{font-size:24px}.lobby-invite small{font-weight:800}.lobby-invite button,.approved-lobby header button{background:#fff9ed;border:2px solid #ecaa38;box-shadow:inset 0 0 0 1px white,0 2px 3px #0005;border-radius:17px;padding:7px;font-weight:800}.lobby-share{display:flex;align-items:center;gap:7px;margin-left:auto}.lobby-share span{font-weight:800;font-size:13px;max-width:64px}.lobby-share button{width:44px;height:44px;min-height:0;padding:0;background:none;border:0}.lobby-share svg{width:100%;height:100%}#lobby-settings{width:100%;font-size:13px;min-height:30px}.lobby-wood{background:linear-gradient(#9b441a,#743013);color:#fff9e7;text-shadow:0 2px 2px #33120a;border:2px solid #ffb938;border-radius:20px;padding:10px;text-align:center;font:900 21px Arial;margin:0}.lobby-members{display:grid;gap:10px}.lobby-player{padding:9px;display:flex;align-items:center;gap:10px;min-height:94px}.lobby-avatar{width:75px;height:75px;flex:none;border:2px solid #d29c2e;border-radius:50%;overflow:hidden;background:#fff0d3;display:grid;place-items:center}.lobby-avatar svg,.lobby-avatar img{width:100%;height:100%;object-fit:contain}.lobby-avatar>span{font-size:45px}.lobby-person{display:flex;flex-direction:column;gap:6px;flex:1;min-width:0}.lobby-person strong{font-size:22px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lobby-person small{font-size:12px}.host-label{background:#ffe05e;border:1px solid #e5a91e;padding:3px 6px;border-radius:15px;width:fit-content;font-weight:800}.lobby-color{display:flex;align-items:center;font-size:13px;background:#fff3d8;border:1px solid #e1a642;border-radius:20px;padding-right:7px}.lobby-color svg{width:36px;height:48px}.lobby-ready{width:31px;height:31px;display:grid;place-items:center;background:linear-gradient(#00ca70,#007534);border:2px solid #ffcb44;border-radius:50%;color:white;font-size:25px;font-weight:900}.lobby-own{padding:10px}.lobby-own h2{text-align:center;font-size:20px;margin-bottom:8px}.lobby-own>div{display:flex;gap:8px}.lobby-own span{flex:1;display:flex;flex-direction:column;align-items:center;font-size:12px;opacity:.5;border:2px solid transparent;border-radius:15px;padding:4px}.lobby-own svg{width:45px;height:45px}.lobby-own .selected{opacity:1;background:#fff0aa;border-color:#e9b031}.approved-lobby footer{text-align:center;display:grid;gap:9px}.lobby-green{background:linear-gradient(#00d678,#00833e);border:3px solid #ffd342;box-shadow:inset 0 0 0 2px #fff3be,0 4px 4px #33150877;border-radius:28px;color:white;font:900 22px Arial;min-height:52px;padding:10px;text-shadow:0 2px 1px #073818}.lobby-green:disabled{opacity:1;background:#4e7962;color:#f1e9d9;filter:none}.approved-lobby footer p{color:#fff3df;font-size:13px}.host-settings h2{text-align:center}.host-modes{display:flex;gap:10px;margin:16px 0 22px}.host-modes button{flex:1;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;background:#fff7e8;border:2px solid #e9ae35;border-radius:20px;color:#49230f;gap:5px}.host-modes button[aria-pressed=true]{background:linear-gradient(#04cc71,#078b45);color:white}.host-modes svg{width:44px;height:55px}.host-modes b{width:100%;font-size:20px}.host-teams{display:flex;gap:10px;margin:18px 0 24px}.host-teams>.gold-panel{width:50%;padding:9px}.host-teams h3{text-align:center;margin:0 0 12px;font-size:17px}.host-teams .gold-panel>div{display:flex;align-items:center;justify-content:space-between;gap:5px;min-height:60px;font-size:13px}.host-teams svg{width:25px;height:35px;flex:none}.host-teams .lobby-avatar{width:35px;height:35px}.host-teams span[data-user-text]{overflow:hidden;text-overflow:ellipsis;max-width:75px}.host-fill{padding:14px;display:flex;align-items:center;gap:10px;font-weight:800;font-size:14px}.host-fill input{margin-left:auto;flex:none}.host-settings #host-save{width:100%;margin-top:22px}.host-settings #host-message{color:#a33316}.approved-lobby button:focus-visible,.host-settings button:focus-visible{outline:3px solid #64efff;outline-offset:3px}@media(max-width:390px){.approved-lobby{padding:8px 3%;gap:8px}.lobby-avatar{width:58px;height:58px}.lobby-person strong{font-size:18px}.lobby-player{min-height:78px;gap:6px}.lobby-color b{display:none}.lobby-invite{padding:10px}.lobby-invite strong{font-size:15px}.lobby-invite b{font-size:21px}.lobby-share span{display:none}.lobby-own svg{width:35px;height:35px}.lobby-own span{font-size:10px}.lobby-green{font-size:19px;min-height:46px}.host-teams .lobby-avatar{display:none}}@media(min-width:900px) and (orientation:landscape){.approved-lobby{max-width:900px}.lobby-members{grid-template-columns:1fr 1fr}.lobby-own svg{height:35px}.lobby-own span{flex-direction:row;justify-content:center}.host-settings{max-width:650px}}

/* Match the phone stage used by the main screens in every match setup mode. */
body:has(.mode-screen),body:has(.online-screen),body:has(.players-screen){background:#4c2916;overflow:hidden}
body:has(.mode-screen) #app,body:has(.online-screen) #app,body:has(.players-screen) #app{height:100svh;display:grid;place-items:center;padding:0}
.screen.mode-screen,.screen.online-screen,.screen.players-screen{width:min(100vw,calc(100svh * 736 / 1426));height:min(100svh,calc(100vw * 1426 / 736));min-height:0;max-width:none;margin:0;padding:18px 16px;box-sizing:border-box;overflow-x:hidden;overflow-y:auto;background:radial-gradient(ellipse at 25% 5%,#fff5df,#f6eddf);container-type:inline-size}
.screen.online-screen .paper{padding:16px}.screen.online-screen .color-choice{min-height:68px}.screen.online-screen .color-choice svg{height:35px}.screen.online-screen h1{font-size:25px}
.screen.players-screen .player-row{min-width:0}.screen.players-screen:has(.player-row:nth-child(4)) form{display:flex;flex-direction:column}

.friends-mode-screen,.matchmaking-screen{background:linear-gradient(#60321666,#7b3b1799),url('assets/fondo.png') center/cover!important;color:#fff4db;font-family:'Trebuchet MS',Arial,sans-serif}
.friends-mode-screen h1,.matchmaking-screen h1{color:#fff4db;text-shadow:0 2px 2px #3f1709;text-align:center;font-weight:900}
.friend-mode-choice{display:flex;flex-direction:column;align-items:center;gap:12px;width:100%;margin:22px 0;padding:25px 12px;border:3px solid #eebd44;border-radius:25px;background:linear-gradient(130deg,#fffaf0,#f1dbaf);color:#64310e;box-shadow:inset 0 0 0 1px #fff5c2,0 4px 0 #935514}
.friend-mode-choice>span{font-size:45px}.friend-mode-choice strong{font-size:22px}.friend-mode-choice small{font-size:14px}
.matchmaking-screen{display:flex;flex-direction:column;align-items:center;gap:14px;padding:18px!important}.matchmaking-screen>#search-back{align-self:flex-start;flex-shrink:0}
.search-logo{width:55%;height:155px;object-fit:contain;flex-shrink:0}.matchmaking-screen h1{font-size:26px;margin:0}
.search-stake{display:flex;justify-content:space-between;gap:15px;align-items:center;width:100%;background:linear-gradient(#fff7df,#efd5a4);border:2px solid #e9b945;border-radius:17px;color:#6c3613;padding:12px;font-weight:900}.search-stake>span{display:flex;align-items:center;gap:7px}.search-stake img{width:28px;height:28px;object-fit:contain}
.search-versus{display:grid;grid-template-columns:1fr 42px 1fr;align-items:center;gap:5px;width:100%;margin:20px 0}.search-person{text-align:center;display:flex;flex-direction:column;align-items:center;gap:10px;min-width:0}.search-person strong{font-size:19px;max-width:100%;overflow:hidden;text-overflow:ellipsis}.search-person small{font-size:12px;color:#ffdf9b}
.search-avatar{width:100%;max-width:145px;aspect-ratio:1;overflow:hidden;background:#fff0ce;border:3px solid #f0bc44;border-radius:50%;box-shadow:0 0 12px #fdd56b88,0 4px 4px #29110788}.search-avatar svg{width:108%;height:108%;margin:-4%;display:block}.search-vs{font-size:29px;color:#ffdf72;text-shadow:0 2px 3px #402009}
.search-clock{font-size:30px;font-weight:900;letter-spacing:2px;background:#fff3d1;color:#62310e;border:2px solid #d9a640;border-radius:16px;padding:8px 24px}
#search-status{text-align:center;font-weight:900;font-size:20px;color:#ffe7a2;min-height:26px;margin:5px 0}.search-explanation{text-align:center;font-size:13px;line-height:1.6;color:#fff2d4;margin:0}.matchmaking-screen .lobby-green{width:100%;margin-top:auto;min-height:58px;font-size:20px}.matchmaking-screen .lobby-green:disabled{opacity:.7}
@media(max-height:740px){.search-logo{height:100px}.search-versus{margin:7px 0}.matchmaking-screen{gap:10px}.search-avatar{max-width:115px}}

.matchmaking-screen{position:relative;isolation:isolate;background:#71401f!important;gap:10px}
.matchmaking-screen:before{content:'';position:absolute;inset:-14px;background:linear-gradient(#67321055,#4b250c99),url('assets/fondo.png') center/cover;filter:blur(9px);z-index:-1;pointer-events:none}
.search-duel-badge{display:flex;align-items:center;justify-content:center;gap:13px;padding:9px 25px;border:2px solid #efbf4f;border-radius:19px;background:linear-gradient(#904719,#542409);box-shadow:inset 0 0 0 1px #ffe096,0 3px 5px #33170666;font-size:24px;color:#ffd866;text-shadow:0 2px 2px #291005}
.search-bets{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;width:100%;margin-top:6px}.search-bets button{display:flex;align-items:center;justify-content:center;gap:3px;min-width:0;min-height:45px;padding:7px 3px;border:2px solid #dbad43;border-radius:14px;background:linear-gradient(#fff8df,#edd09d);color:#64310e;font-size:17px;font-weight:900;box-shadow:inset 0 0 0 1px #fff2c5}
.search-bets button img{width:20px;height:20px;object-fit:contain}.search-bets button[aria-pressed=true]{background:linear-gradient(#20db7b,#008b3d);color:white;text-shadow:0 1px 2px #004e26;border-color:#ffda73}.search-bets button:disabled{opacity:.8}
.search-prize{margin:2px 0 0;font-size:14px;text-align:center;color:#fff2cf}.search-prize b{color:#ffdc72}
.mystery-avatar{display:grid;place-items:center;width:100%;height:100%;font-size:94px;font-weight:900;color:#f8d15b;background:radial-gradient(at 40% 20%,#a77739,#48250f);text-shadow:0 4px 0 #613713,0 0 15px #ffcb4066}
#search-rival-name:empty{display:none}#search-rival-type{font-size:15px;font-weight:900}.search-avatar.is-searching svg{filter:blur(7px);opacity:.78;animation:rival-carousel .1s linear infinite}
@keyframes rival-carousel{from{transform:translateY(-5px)}to{transform:translateY(5px)}}
.matchmaking-screen #search-back{background:linear-gradient(150deg,#1cde7c,#00a04a 50%,#006c2c);color:white;border:2px solid #ebba43;border-radius:17px;box-shadow:inset 0 1px 0 #acffc3,0 3px 0 #9a611b;text-shadow:0 1px 2px #004c25;font-weight:900;min-height:40px;padding:9px 18px}
.matchmaking-screen .search-logo{height:130px}.matchmaking-screen .search-versus{margin:10px 0}.matchmaking-screen .search-clock{font-size:27px}.matchmaking-screen #search-status{font-size:18px}
@media(max-height:740px){.matchmaking-screen .search-logo{height:90px}.matchmaking-screen .search-versus{margin:4px 0}.search-duel-badge{padding:6px 20px;font-size:21px}.search-bets button{min-height:40px}}

.matchmaking-screen:before{inset:0}

.matchmaking-screen .search-duel-badge.illustrated-duel{width:70%;aspect-ratio:1140/410;padding:0;border:0;background:none;box-shadow:none;display:block;flex-shrink:0}
.illustrated-duel>svg{display:block;width:100%;height:100%}
.search-bet-title{position:relative;width:72%;aspect-ratio:795/140;flex-shrink:0;margin-top:-10px}.search-bet-title svg{position:absolute;inset:0;width:100%;height:100%}.search-bet-title span{position:absolute;inset:0;display:grid;place-items:center;font-family:Georgia,serif;font-weight:900;color:#492609;font-size:17px;padding-bottom:2px}
.matchmaking-screen .search-bets{gap:5px;margin-top:-3px;flex-shrink:0}.matchmaking-screen .search-bets button{position:relative;aspect-ratio:465/200;min-height:0;padding:0;border:0;background:transparent!important;box-shadow:none;display:block;overflow:visible;border-radius:19px}
.search-bets .bet-frame{position:absolute;inset:0;display:block;width:100%;height:100%}.bet-selected-fill{display:none}.search-bets [aria-pressed=true] .bet-selected-fill{display:block}
.search-bets .bet-amount{position:absolute;left:36%;right:9%;top:0;height:100%;display:grid;place-items:center;font:900 17px/1 Georgia,serif;color:#482509;padding-bottom:1px}.search-bets [aria-pressed=true] .bet-amount{color:#fff;text-shadow:0 1px 2px #005328;padding-right:8px}
.search-bets .bet-check{display:none;position:absolute;right:7%;top:34%;width:13px;height:13px;line-height:13px;text-align:center;font:bold 10px Arial;background:#087635;color:#fff4bb;border:1px solid #f9d674;border-radius:50%;box-shadow:0 1px 2px #53330b66}.search-bets [aria-pressed=true] .bet-check{display:block}
.matchmaking-screen .search-logo{height:90px}.matchmaking-screen{gap:7px}.matchmaking-screen .search-versus{margin:7px 0}.matchmaking-screen .search-avatar{max-width:133px}.matchmaking-screen h1{font-size:24px}.matchmaking-screen .search-clock{font-size:25px;padding:7px 21px}
@media(max-height:740px){.matchmaking-screen .search-logo{height:65px}.matchmaking-screen .search-duel-badge.illustrated-duel{width:57%}.search-bet-title{width:65%}.search-bet-title span{font-size:15px}.matchmaking-screen .search-avatar{max-width:105px}}

.search-bets .bet-amount{font-family:'Trebuchet MS',Arial,sans-serif;font-weight:900;font-size:17px}
.search-bets [aria-pressed=true] .bet-amount{padding-right:0}
.matchmaking-screen #search-status:empty{display:none}
.matchmaking-screen #search-start{margin-top:13px;min-height:61px;flex-shrink:0;border:3px solid #f1bd3e;border-radius:23px;background:linear-gradient(155deg,#37ed94 0%,#0bc76b 25%,#009949 62%,#006d32 100%);box-shadow:inset 0 2px 0 #b0ffd1,inset 0 0 0 1px #fff0a8,0 4px 0 #9a5d12,0 7px 12px #3d1a0c55;color:#fff;font:900 22px/1 'Trebuchet MS',Arial,sans-serif;letter-spacing:.6px;text-shadow:0 2px 2px #004c28}
.matchmaking-screen #search-start:hover:not(:disabled){filter:brightness(1.07)}
.matchmaking-screen #search-start:active:not(:disabled){transform:translateY(2px);box-shadow:inset 0 2px 0 #b0ffd1,inset 0 0 0 1px #fff0a8,0 2px 0 #9a5d12}

/* Keep both duel portraits identical in size and aligned regardless of labels. */
.matchmaking-screen .search-versus{align-items:start}
.matchmaking-screen .search-person{display:grid;grid-template-rows:auto 24px 20px;justify-items:center;align-content:start;gap:8px}
.matchmaking-screen .search-avatar{position:relative;width:133px;height:133px;max-width:100%;aspect-ratio:1;box-sizing:border-box;padding:0;background:#e9d6ae;border:3px solid #f0bc44;display:grid;place-items:center}
.matchmaking-screen .search-avatar>svg{position:absolute;left:50%;top:50%;width:115%;height:115%;max-width:none;margin:0;transform:translate(-50%,-50%);display:block}
.matchmaking-screen .search-person strong{margin:0;line-height:24px}
.matchmaking-screen #search-rival-name:empty{display:block;height:24px;grid-row:2}
.matchmaking-screen .search-person small{margin:0;line-height:20px;grid-row:3}
.matchmaking-screen .search-vs{align-self:start;margin-top:49px}
.matchmaking-screen .mystery-avatar{position:absolute;inset:0;border-radius:50%}
.matchmaking-screen .search-avatar.is-searching svg{animation:rival-carousel-centered .1s linear infinite}
@keyframes rival-carousel-centered{from{transform:translate(-50%,calc(-50% - 5px))}to{transform:translate(-50%,calc(-50% + 5px))}}
@media(max-height:740px){.matchmaking-screen .search-avatar{width:105px;height:105px}.matchmaking-screen .search-vs{margin-top:35px}}

.screen.robot-mode-screen{position:relative;isolation:isolate;justify-content:flex-start;gap:14px;background:#74401f;color:#fff4d6;font-family:'Trebuchet MS',Arial,sans-serif}
.robot-mode-screen:before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(#67321055,#4b250c99),url('assets/fondo.png') center/cover;filter:blur(9px);pointer-events:none}
.robot-mode-screen .setup-head{display:flex;justify-content:space-between;align-items:center;margin:0;min-height:42px;flex-shrink:0}
.robot-mode-screen .setup-head button{min-height:40px;padding:9px 18px;background:linear-gradient(150deg,#20de7f,#009744 65%,#006d30);border:2px solid #eebe4d;border-radius:17px;color:white;font-weight:900;text-shadow:0 1px 2px #005025;box-shadow:inset 0 1px 0 #b5ffd1,0 3px 0 #9b631c}
.robot-mode-screen .setup-head button[data-dialog]{padding:0;width:42px;border-radius:50%;font-size:24px}
.robot-mode-brand{height:100px;display:flex;justify-content:center;flex-shrink:0}.robot-mode-brand img{width:58%;height:100%;object-fit:contain}
.robot-mode-portrait{width:140px;height:140px;align-self:center;border:3px solid #f0c24f;border-radius:50%;background:#f1ddb9;overflow:hidden;box-shadow:0 0 18px #f9ce6070,0 5px 8px #2a130b66;flex-shrink:0}.robot-mode-portrait svg{display:block;width:112%;height:112%;margin:-6%}
.screen.robot-mode-screen .paper{background:transparent;border:0;box-shadow:none;padding:0;display:flex;flex-direction:column;gap:14px;width:100%}
.robot-mode-screen .paper h2{text-align:center;color:#fff1cf;font-size:28px;font-weight:900;letter-spacing:.6px;text-shadow:0 2px 3px #4d210c;margin:0}
.screen.robot-mode-screen .mode-question{position:relative;width:80%;aspect-ratio:795/140;align-self:center;margin:0;font:900 18px Georgia,serif;color:#522909;display:grid;place-items:center}
.robot-mode-screen .mode-question svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.robot-mode-screen .mode-question span{position:relative;padding-bottom:2px}
.robot-mode-screen .player-options{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:0}
.robot-mode-screen .player-options button{min-height:102px;padding:12px 4px;border:3px solid #e7b43e;border-radius:21px;background:linear-gradient(#fff7e1,#efd4a3);color:#60310f;font-size:13px;font-weight:900;box-shadow:inset 0 0 0 1px #fff2bc,0 4px 0 #9a621e}
.robot-mode-screen .player-options strong{font:900 38px/1.2 'Trebuchet MS',Arial,sans-serif;display:block;margin-bottom:5px}
.robot-mode-screen .player-options button.selected{background:linear-gradient(155deg,#28e38a,#00a251 55%,#006b30);color:white;text-shadow:0 2px 2px #00522a;border-color:#ffda74;box-shadow:inset 0 1px 0 #abffc9,0 4px 0 #99611d}
.screen.robot-mode-screen .team-option{display:flex;justify-content:space-between;flex-direction:row-reverse;gap:10px;padding:16px 14px;margin:7px 0;background:linear-gradient(#fff5dd,#eed5a8);border:2px solid #deb04a;border-radius:17px;color:#683712;font-size:15px;font-weight:900}
.screen.robot-mode-screen .primary{margin:12px 0 0;width:100%;min-height:61px;border:3px solid #f1bd3e;border-radius:23px;background:linear-gradient(155deg,#37ed94,#0bc76b 25%,#009949 62%,#006d32);box-shadow:inset 0 2px 0 #b0ffd1,inset 0 0 0 1px #fff0a8,0 4px 0 #9a5d12,0 7px 12px #3d1a0c55;color:#fff;font:900 22px 'Trebuchet MS',Arial,sans-serif;letter-spacing:.6px;text-shadow:0 2px 2px #004c28}.robot-mode-screen .primary:disabled{opacity:.55}
@media(max-height:740px){.screen.robot-mode-screen{gap:9px}.robot-mode-brand{height:75px}.robot-mode-portrait{width:105px;height:105px}.screen.robot-mode-screen .paper{gap:10px}.robot-mode-screen .player-options button{min-height:88px}.screen.robot-mode-screen .team-option{padding:12px}.screen.robot-mode-screen .primary{min-height:53px;margin-top:7px}}

.robot-mode-screen .search-bet-title{width:80%;margin:1px auto -5px;align-self:center}.robot-mode-screen .search-bets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin:0;width:100%}
.robot-mode-screen .search-bets button{position:relative;aspect-ratio:465/200;min-height:0;padding:0;border:0;background:transparent!important;box-shadow:none;border-radius:19px;display:block;overflow:visible}
.robot-mode-screen .search-bets [aria-pressed=true] .bet-amount{padding-right:0}.robot-stake-summary{font-size:13px;text-align:center;color:#fff1cb;margin:0}
.robot-mode-screen .robot-mode-brand{height:75px}.robot-mode-screen .robot-mode-portrait{width:95px;height:95px}.screen.robot-mode-screen{gap:10px}.screen.robot-mode-screen .paper{gap:10px}.robot-mode-screen .player-options button{min-height:85px}.screen.robot-mode-screen .team-option{padding:12px 14px;margin:4px 0}.screen.robot-mode-screen .primary{margin-top:8px}
@media(max-height:740px){.robot-mode-screen .robot-mode-brand{height:55px}.robot-mode-screen .robot-mode-portrait{width:70px;height:70px}.screen.robot-mode-screen{gap:7px}.screen.robot-mode-screen .paper{gap:7px}.robot-mode-screen .player-options button{min-height:71px}.robot-mode-screen .player-options strong{font-size:29px}}

.screen.robot-mode-screen .paper .robot-stake-summary{color:#fff1cb;margin:0;font-size:13px;line-height:1.4}

/* Robot configuration fits on one phone screen, including the player's color. */
.screen.robot-mode-screen{gap:7px;padding-top:12px;padding-bottom:16px}.robot-mode-screen .robot-mode-brand{height:55px}.robot-mode-screen .robot-mode-portrait{width:70px;height:70px}.screen.robot-mode-screen .paper{gap:7px}.robot-mode-screen .paper h2{font-size:24px}
.screen.robot-mode-screen .mode-question{width:72%;font-size:16px}.robot-mode-screen .player-options button{min-height:64px;padding:7px 4px;border-radius:17px}.robot-mode-screen .player-options strong{font-size:29px;margin-bottom:1px}.robot-mode-screen .player-options button{font-size:11px}
.robot-mode-screen .search-bet-title{width:72%}.robot-mode-screen .search-bet-title span{font-size:16px}.robot-mode-screen .search-bets{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.robot-mode-screen .search-bets .bet-amount{font-size:19px}
.robot-own-color{background:linear-gradient(#fff7e3,#efd6ac);border:2px solid #e4b54c;border-radius:18px;padding:9px 10px;color:#633111}.robot-own-color h3{font-size:14px;font-weight:900;margin:0 0 6px;text-align:center}.robot-own-color .color-picker{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:0}.robot-own-color .color-choice{min-height:63px;padding:5px 2px;border:2px solid #deb65b;border-radius:12px;background:#fff5df}.robot-own-color .color-choice svg{width:28px;height:33px;display:block;margin:auto}.robot-own-color .color-choice span{font-size:10px;margin:2px 0 0;display:block}.robot-own-color .color-choice[aria-pressed=true]{background:linear-gradient(#22d57b,#008d40);color:white;border-color:#ffdc75}.robot-own-color .color-choice i{display:none}
.robot-start-error:empty{display:none}.screen.robot-mode-screen .paper .robot-start-error{margin:0;color:#ffe7a2;font-size:13px;text-align:center}.screen.robot-mode-screen .team-option{margin:1px 0;padding:10px 12px;font-size:13px}.screen.robot-mode-screen .primary{min-height:53px;margin-top:5px;font-size:21px}
@media(max-height:740px){.robot-mode-screen .robot-mode-brand{height:40px}.robot-mode-screen .robot-mode-portrait{width:50px;height:50px}.screen.robot-mode-screen{gap:5px;padding-top:9px}.screen.robot-mode-screen .paper{gap:5px}.robot-mode-screen .player-options button{min-height:55px}.robot-mode-screen .search-bet-title{width:64%}.robot-own-color .color-choice{min-height:54px}.robot-own-color .color-choice svg{height:28px}.screen.robot-mode-screen .primary{min-height:47px}}

.screen.robot-mode-screen .team-option{width:max-content;max-width:100%;align-self:center;gap:14px;padding:8px 12px;font-size:12px;border-radius:14px}

.robot-mode-screen .player-options>button:only-child{grid-column:2}

.robot-mode-screen .search-bet-title{margin-top:12px}

.robot-mode-screen .robot-own-color{margin-top:12px;padding:0;background:transparent;border:0;box-shadow:none}
.robot-mode-screen .robot-own-color h3{color:#fff1d1;text-shadow:0 1px 2px #4a210d;margin-bottom:9px}

.screen.robot-mode-screen .team-option{margin-top:5px;margin-bottom:0}
.robot-mode-screen .search-bet-title{margin-top:19px}

.search-color-note{margin:4px 0 0;text-align:center;font-size:13px;line-height:1.4;color:#fff1d2;max-width:90%}

/* Friend modes remain on one screen, with compact tabs and their form beneath. */
.screen.friends-config-screen{position:relative;isolation:isolate;background:#71401f;color:#fff4d7;justify-content:flex-start;gap:13px;font-family:'Trebuchet MS',Arial,sans-serif}
.friends-config-screen:before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(#67321055,#4b250c99),url('assets/fondo.png') center/cover;filter:blur(9px);pointer-events:none}
.friends-config-screen .setup-head{margin:0;flex-shrink:0}.friends-config-screen h1,.friends-config-heading{color:#fff2d2;text-align:center;text-shadow:0 2px 3px #3d190b;font-size:27px;margin:10px 0 14px}
.friends-config-tabs{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 17px;flex-shrink:0}
.friends-config-tabs button{display:grid;grid-template-columns:30px 1fr;grid-template-rows:auto auto;align-items:center;gap:3px 7px;padding:12px 8px;min-height:74px;border:2px solid #e6b44d;border-radius:18px;background:linear-gradient(#fff9e7,#edd3a4);color:#633310;box-shadow:inset 0 0 0 1px #fff3cb,0 3px 0 #955b1d;margin:0;min-width:0}
.friends-config-tabs button>span{grid-row:1/3;font-size:27px}.friends-config-tabs strong{font-size:14px;white-space:nowrap}.friends-config-tabs small{font-size:11px;opacity:.85}.friends-config-tabs button[aria-selected=true]{background:linear-gradient(145deg,#20da7c,#009c48 60%,#006c30);color:white;border-color:#ffd974;text-shadow:0 1px 2px #005327;box-shadow:inset 0 1px 0 #a8ffc8,0 3px 0 #955b1d}
.screen.friends-config-screen .paper{width:100%;background:linear-gradient(120deg,#fff8e8,#f0d9b2);border:2px solid #e5b64d;border-radius:23px;color:#5a2b10;padding:17px;box-shadow:inset 0 0 0 1px #fff1c3,0 3px 7px #3d1c0d44}
.friends-config-screen .paper h2{font-size:23px;margin:0 0 10px;color:#633310;text-align:center}.friends-config-screen .player-options button{min-height:80px}.friends-config-screen .room-tabs{background:#e7c795;color:#6b3817;border-radius:15px;padding:4px}.friends-config-screen .room-tabs button{font-size:14px}
.friends-config-screen>#online-back,.friends-config-screen .setup-head>button{background:linear-gradient(#1fdc7a,#008739);color:white;border:2px solid #efbd4d;border-radius:16px;box-shadow:inset 0 1px 0 #a9ffca,0 3px 0 #965c1b;text-shadow:0 1px 2px #004c28;font-weight:900}

.screen.friends-config-screen{display:flex;flex-direction:column;gap:12px}
.friends-config-screen>.setup-head{height:44px;min-height:44px;margin:0}
.friends-config-screen>#online-back{height:44px;min-height:44px;align-self:flex-start;flex-shrink:0}
.friends-config-screen>h1{margin:4px 0 10px;font-size:27px;line-height:1.2;font-weight:900;flex-shrink:0}
.friends-config-screen>.friends-config-tabs{margin:0 0 4px}
.friends-config-screen>.paper,.friends-config-screen>.room-tabs{flex-shrink:0}

.friends-config-screen>.friends-config-heading{display:block;width:90%;height:112px;align-self:center;margin:0 0 8px;font-size:0;flex-shrink:0}
.friends-config-heading img{display:block;width:100%;height:100%;object-fit:contain}
@media(max-height:740px){.friends-config-screen>.friends-config-heading{height:88px}}

.friends-config-tabs button,.friends-config-tabs button[aria-selected=true]{position:relative;display:block;aspect-ratio:1017/420;min-height:0;border:0;padding:0;background:transparent;box-shadow:none;border-radius:17px;overflow:hidden}
.friends-tab-art{position:absolute;inset:0;width:100%;height:100%;display:block}.friends-tab-fill{display:none}.friends-config-tabs button[aria-selected=true] .friends-tab-fill{display:block}
.friends-config-tabs button>.friends-tab-copy{position:absolute;left:42%;right:7%;top:0;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;font-size:inherit;grid-row:auto;padding-top:2px}
.friends-tab-copy strong{font-family:'Trebuchet MS',Arial,sans-serif;font-size:13px;font-weight:900;white-space:nowrap}.friends-tab-copy small{font-family:'Trebuchet MS',Arial,sans-serif;font-size:10px;opacity:1}.friends-config-tabs button[aria-selected=true] .friends-tab-copy{color:white;text-shadow:0 1px 2px #005226}

.friends-config-tabs .friends-tab-copy strong{font-family:Arial,sans-serif;font-size:15px;font-weight:900}
.friends-config-tabs .friends-tab-copy small{font-family:Arial,sans-serif;font-size:12px;font-weight:700}
.friends-config-tabs button>.friends-tab-copy{left:39%;right:5%;gap:6px}
@media(max-width:390px){.friends-config-tabs .friends-tab-copy strong{font-size:12px}.friends-config-tabs .friends-tab-copy small{font-size:10px}}

.friends-config-tabs [data-friends-tab=local] .friends-tab-copy{left:39%;right:7%}
.friends-config-tabs [data-friends-tab=local] .friends-tab-copy strong{font-size:14px}
@media(max-width:390px){.friends-config-tabs [data-friends-tab=local] .friends-tab-copy strong{font-size:11px}}

.friends-config-screen .room-tabs button[aria-selected=true]{background:linear-gradient(145deg,#1edc7c,#009947 62%,#006b30);color:#fff;text-shadow:0 1px 2px #005228;border:2px solid #efc357;box-shadow:inset 0 1px 0 #a3ffc4,0 2px 2px #70400d44}

/* Private rooms use the same centered phone stage and polished game palette. */
body:has(.approved-lobby){background:#4c2916;overflow:hidden}body:has(.approved-lobby) #app{height:100svh;display:grid;place-items:center;padding:0}
.approved-lobby{width:min(100vw,calc(100svh * 736 / 1426));height:min(100svh,calc(100vw * 1426 / 736));min-height:0;max-width:none;box-sizing:border-box;margin:0;padding:16px;gap:13px;position:relative;isolation:isolate;background:#74401f;overflow-x:hidden;overflow-y:auto;font-family:'Trebuchet MS',Arial,sans-serif;container-type:inline-size}
.approved-lobby:before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(#63300855,#3f1d0c99),url('assets/fondo.png') center/cover;filter:blur(9px);pointer-events:none}
.approved-lobby header{display:grid;grid-template-columns:78px minmax(0,1fr);gap:12px;align-items:center;flex-shrink:0}
.approved-lobby header #leave-lobby{width:78px;padding:10px 5px;min-height:41px;border:2px solid #edbc4c;border-radius:16px;background:linear-gradient(#20d87a,#00883b);box-shadow:inset 0 1px 0 #b2ffce,0 3px 0 #8c541a;color:white;font-size:14px;text-shadow:0 1px 2px #004e25}
.approved-lobby h1{min-width:0;margin:0;padding:11px 9px;border:2px solid #e9b648;border-radius:18px;background:linear-gradient(120deg,#92501f,#57260e);color:#fff1c9;font-size:20px;line-height:1.2;box-shadow:inset 0 0 0 1px #ffde83,0 3px 5px #32100655;text-shadow:0 2px 2px #351207}
.approved-lobby h1>span{display:block;font-size:18px;letter-spacing:.5px}.approved-lobby h1>small{display:block;font-size:13px;margin-top:4px;color:#ffda8e;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.approved-lobby .gold-panel{border:2px solid #e9ba50;border-radius:20px;background:linear-gradient(120deg,#fff9e8,#f1dbb4);box-shadow:inset 0 0 0 1px #fff3ca,0 3px 6px #3c1b0b44}
.approved-lobby .lobby-invite{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:15px;flex-shrink:0}.lobby-invite>div:first-child{min-width:0}.approved-lobby .lobby-invite small{display:block;font-size:12px;color:#83512c}.approved-lobby .lobby-invite strong{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px;font-size:13px}.approved-lobby .lobby-invite strong b{font-size:26px;letter-spacing:2px;color:#6b330e}
.approved-lobby #copy-code{width:34px;min-height:34px;height:34px;padding:0;border:2px solid #e6b249;border-radius:11px;flex:none;font-size:18px;background:#fff6df}
.approved-lobby .lobby-share{display:grid;grid-template-columns:38px 38px;gap:7px;align-items:center}.approved-lobby .lobby-share>span{grid-column:1/-1;font-size:11px;text-align:center;display:block;margin:0}.approved-lobby .lobby-share button{width:38px;height:38px;min-height:0;border:0;padding:0;background:none;box-shadow:none}.approved-lobby .lobby-share svg{width:100%;height:100%;display:block}
.approved-lobby #lobby-settings{grid-column:1/-1;width:100%;min-height:35px;padding:6px;font-size:13px;border:1px solid #d5a147;box-shadow:none;background:#fff1d1;border-radius:12px}
.approved-lobby .lobby-wood{margin:0;border:2px solid #e0ad45;border-radius:15px;background:linear-gradient(#8e471b,#5c290f);padding:10px;text-align:center;color:#fff0c3;font-size:18px;text-shadow:0 2px 2px #341409;flex-shrink:0}
.approved-lobby .lobby-members{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;overflow-y:auto;min-height:0;flex:0 1 auto;padding-bottom:4px}
.approved-lobby .lobby-player{display:grid;grid-template-columns:64px minmax(0,1fr) 49px 22px;gap:9px;align-items:center;min-height:94px;padding:10px;box-sizing:border-box;width:100%;max-width:100%}
.approved-lobby .lobby-avatar{width:64px;height:64px;overflow:hidden;border-radius:50%;border:1px solid #e4b142;background:#eed6a8;display:grid;place-items:center;flex:none}.approved-lobby .lobby-avatar>svg{width:112%;height:112%;display:block;max-width:none}.approved-lobby .lobby-avatar>span{font-size:32px;opacity:.45}
.approved-lobby .lobby-person{display:flex;flex-direction:column;gap:4px;align-items:flex-start;min-width:0}.approved-lobby .lobby-person strong{font-size:18px;line-height:1.2;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.approved-lobby .lobby-person small{font-size:11px;color:#6d5537}.approved-lobby .host-label{padding:3px 8px;background:#fce397;border:1px solid #d4a448;border-radius:8px;line-height:1;font-weight:900}
.approved-lobby .lobby-color{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:4px;border:1px solid #dfb351;border-radius:12px;background:#fff1d4;width:49px}.approved-lobby .lobby-color svg{width:25px;height:31px}.approved-lobby .lobby-color b{font-size:9px;display:block}.approved-lobby .lobby-ready{width:22px;height:22px;min-width:0;border-radius:50%;background:linear-gradient(#22dc77,#008738);border:1px solid #ffd775;color:white;font:900 14px/20px Arial;text-align:center}
.approved-lobby .lobby-own{display:flex;justify-content:center;align-items:center;gap:12px;padding:8px 12px;align-self:center;width:max-content;max-width:100%;flex-shrink:0}.approved-lobby .lobby-own>span{font-size:13px;font-weight:900}.approved-lobby .lobby-own-badge{display:flex;align-items:center;gap:6px}.approved-lobby .lobby-own-badge svg{width:22px;height:29px}.approved-lobby .lobby-own-badge strong{font-size:13px}
.approved-lobby footer{display:grid;gap:12px;flex-shrink:0;margin-top:auto;padding-top:3px}.approved-lobby footer .lobby-green{width:100%;min-height:53px;font-size:18px;border:3px solid #efbd49;border-radius:21px;background:linear-gradient(145deg,#24e183,#009b48 60%,#006b2d);box-shadow:inset 0 1px 0 #b0ffd0,inset 0 0 0 1px #ffe79f,0 3px 0 #995e1c}.approved-lobby footer #invite-friends{background:linear-gradient(#fff8df,#efd4a5);color:#66310e;text-shadow:none;box-shadow:inset 0 0 0 1px #fff1c1,0 3px 0 #995e1c;font-size:17px}.approved-lobby footer .lobby-green:disabled{opacity:.55}.approved-lobby #lobby-message:empty{display:none}.approved-lobby footer p{margin:0;font-size:12px}
@media(max-height:740px){.approved-lobby{padding:12px;gap:9px}.approved-lobby .lobby-player{min-height:78px;grid-template-columns:52px minmax(0,1fr) 42px 20px;gap:7px;padding:8px}.approved-lobby .lobby-avatar{width:52px;height:52px}.approved-lobby .lobby-color{width:42px}.approved-lobby .lobby-person strong{font-size:16px}.approved-lobby footer .lobby-green{min-height:47px}}

.approved-lobby #start-online{margin:0;width:100%;min-height:53px;border:3px solid #efbd49;border-radius:21px;background:linear-gradient(145deg,#24e183,#009b48 60%,#006b2d);box-shadow:inset 0 1px 0 #b0ffd0,inset 0 0 0 1px #ffe79f,0 3px 0 #995e1c;color:white;font:900 18px 'Trebuchet MS',Arial,sans-serif}
.approved-lobby #start-online:disabled{opacity:.55}
body:has(.approved-lobby) .room-chat{position:fixed;top:auto;bottom:16svh;right:max(18px,calc(50vw - 100svh * 736 / 1426 / 2 + 18px))}
body:has(.approved-lobby) .chat-launch{border:2px solid #e9b749;background:#fff2d4;color:#633211;border-radius:15px;font-weight:900}

.approved-lobby header{display:flex;justify-content:flex-start;min-height:41px}
.approved-lobby #copy-code{width:36px;height:36px;min-height:0;border:0;border-radius:0;padding:0;background:transparent;box-shadow:none;overflow:visible}.approved-lobby #copy-code svg{width:100%;height:100%;display:block}
.approved-lobby .lobby-share{grid-template-columns:42px 42px;gap:7px}.approved-lobby .lobby-share>span{white-space:nowrap;font-size:12px;font-weight:900;text-align:center;line-height:1.2;margin-bottom:2px}
.approved-lobby .lobby-share button{width:42px;height:42px;border:0;background:transparent;padding:0;box-shadow:none;overflow:visible}
.approved-lobby .lobby-share button[data-social-share=all]{border:2px solid #ffcf51;border-radius:11px;background:linear-gradient(#269fed,#0069b7);box-shadow:inset 0 0 0 1px white,0 2px 2px #63370855;display:grid;place-items:center}
.approved-lobby .lobby-share button[data-social-share=all] svg{width:65%;height:65%;fill:none;stroke:white;stroke-width:2.7;stroke-linecap:round;stroke-linejoin:round}

.approved-lobby .lobby-color{margin:0;min-height:0;box-shadow:none;color:#60300f;cursor:pointer}.approved-lobby .lobby-color:disabled{opacity:1;cursor:default}.approved-lobby [data-lobby-color]{border:2px solid #dfa837;box-shadow:0 2px 0 #bf8b3033}.approved-lobby [data-lobby-color]:hover{background:#ffebb7}
.approved-lobby .lobby-waiting{text-align:center;color:#ffedc0;font-weight:900;font-size:17px;margin:12px 0;line-height:1.4}
dialog:has(.lobby-color-dialog){width:min(90vw,410px);border:3px solid #e9ba4d;border-radius:25px;background:linear-gradient(#fff7e2,#efd7ac);padding:22px;color:#65300f;box-shadow:inset 0 0 0 1px #fff0bf,0 9px 30px #27120780}.lobby-color-dialog h2{text-align:center;margin:0;font-size:25px}.lobby-color-dialog>p{text-align:center;font-size:14px}.lobby-color-dialog .color-picker{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin:17px 0}.lobby-color-dialog .color-choice{padding:8px 2px;min-height:83px;border:2px solid #ddb04c;border-radius:14px;background:#fff4d7}.lobby-color-dialog .color-choice svg{width:30px;height:42px;display:block;margin:auto}.lobby-color-dialog .color-choice span{font-size:11px;display:block}.lobby-color-dialog .color-choice[aria-pressed=true]{background:linear-gradient(#26dc83,#008f41);color:white;border-color:#ffc958}.lobby-color-dialog .color-choice:disabled{opacity:.3}.lobby-color-dialog .lobby-green{width:100%;font-size:18px}.lobby-color-dialog #lobby-color-error:empty{display:none}

.approved-lobby{padding-top:10px;gap:10px}.approved-lobby header{min-height:36px}.approved-lobby header #leave-lobby{min-height:36px;padding:8px 5px}
.approved-lobby .lobby-name-line{display:flex;align-items:center;gap:7px;width:100%;min-width:0}.approved-lobby .lobby-name-line strong{flex:0 1 auto;min-width:0}.approved-lobby .lobby-name-line .host-label{flex:none;font-size:9px;padding:3px 5px;white-space:nowrap}.approved-lobby .lobby-person .lobby-level{color:#855212;font-size:12px;font-weight:700}
.approved-lobby .lobby-player{min-height:86px;padding:8px 10px}.approved-lobby .lobby-members{gap:9px}

.approved-lobby .lobby-modes{margin:2px 0 4px;flex:none;gap:12px}.approved-lobby .lobby-modes button{min-height:78px;padding:6px;box-shadow:inset 0 0 0 1px #fff4bc,0 3px 3px #32140755;gap:0 4px}.approved-lobby .lobby-modes svg{width:26px;height:34px}.approved-lobby .lobby-modes b{font:900 17px Arial}.approved-lobby .lobby-modes button:disabled{opacity:1}.approved-lobby .lobby-members{flex:none;overflow:visible}dialog:has(.host-settings){width:min(92vw,420px);max-height:90svh;overflow:auto;border:3px solid #eab442;border-radius:25px;padding:18px;background:linear-gradient(#fff8e8,#efd7ac);color:#55290e;box-shadow:inset 0 0 0 1px #fff6c8,0 12px 35px #24100699}.host-settings .host-partner{display:grid;gap:8px;margin-top:18px;font:700 13px Arial}.host-settings select{width:100%;padding:10px;border:2px solid #dfac42;border-radius:12px;background:#fffaf0;color:#562d12;font:700 15px Arial}.host-settings .host-teams{margin:15px 0;gap:10px}.host-settings .host-teams>.gold-panel{min-width:0;border-width:2px;border-radius:19px}.host-settings .host-fill{font-size:12px;padding:12px 9px;border-width:2px;border-radius:17px}.host-settings .host-fill input{width:22px;height:22px;accent-color:#009b4e}.host-settings #host-save{font-size:17px;margin-top:10px}.host-settings #host-close{width:100%;margin-top:10px;background:#fff8e7;border:2px solid #e4ad36;border-radius:20px;color:#65330f;font:800 14px Arial;padding:10px}.team-empty{width:35px;height:35px;border:1px solid #deb35b;border-radius:50%;display:grid;place-items:center;background:#f8e9c8;font-weight:900}.host-settings #host-message:empty{display:none}

.approved-lobby .lobby-add-robot{align-self:center;flex:none;min-height:40px;padding:8px 22px;border:2px solid #f2bf4d;border-radius:18px;background:linear-gradient(#fff9e8,#efd4a0);color:#63330f;box-shadow:inset 0 0 0 1px #fff3bd,0 3px 3px #38130866;font:800 14px Arial}.approved-lobby .lobby-minimum{margin:0;text-align:center;color:#fff3d6;font:900 14px/1.4 Arial}

.approved-lobby .lobby-remove-robot{width:fit-content;min-height:0;padding:3px 9px;border:1px solid #ce7136;border-radius:9px;background:#fff4df;color:#a03b1c;font:800 11px Arial;box-shadow:none}

.host-settings .host-teams .lobby-avatar{width:48px;height:48px;border-width:2px;flex:none}.host-settings .host-teams .lobby-avatar svg{width:112%;height:112%;max-width:none}.host-settings .host-teams .gold-panel>div{min-height:67px;gap:5px}.host-settings .host-teams span[data-user-text]{flex:1;min-width:0;font-size:12px;text-align:center}.host-settings .host-teams .team-empty{width:48px;height:48px;flex:none}

.host-settings .host-teams span[data-user-text]{font:800 14px Arial;max-width:none;overflow-wrap:anywhere}.host-settings .host-fill{font:800 13px Arial;line-height:1.35;gap:8px}.host-settings .host-fill input{margin-left:auto;flex:none}

.friends-config-screen .friends-room-intro{text-align:center;margin:-5px 0 16px;padding-bottom:15px;border-bottom:1px solid #ddb461}.friends-room-intro img{display:block;width:100%;height:155px;object-fit:contain;margin:auto}.friends-config-screen .friends-room-intro h2{font:900 23px/1.12 Arial;margin:7px 0 10px;color:#51250d}.friends-room-intro p,.friends-join-intro p{font:400 14px/1.4 Arial;margin:0 auto 9px;max-width:340px;color:#653719}.friends-room-intro small{font:400 12px/1.4 Arial;color:#673b20}.friends-config-screen #create-options>.field-title{text-align:center;font:800 16px Arial;margin-bottom:9px}.friends-config-screen #create-room,.friends-config-screen #join-room{background:linear-gradient(#15db7b,#009849 60%,#007338);color:#fff;border:3px solid #f4bc37;border-radius:25px;box-shadow:inset 0 0 0 2px #fff2a7,0 4px 0 #78411566,0 5px 8px #58301344;font:900 19px Arial;text-shadow:0 2px 1px #00572a;min-height:53px}.friends-config-screen #resume-room{border:2px solid #e4ac37;background:linear-gradient(#fffdf1,#f2dcad);border-radius:23px;box-shadow:inset 0 0 0 1px #fff8d5,0 3px 3px #78411544;font:800 14px Arial;color:#5f3015;min-height:45px}.friends-config-screen .color-choice{border:2px solid #edbd4b;border-radius:17px;box-shadow:inset 0 0 0 1px #fff8d6,0 2px 2px #9b692326}.friends-config-screen .friends-join-intro{text-align:center;padding:8px 0 15px}.friends-config-screen .friends-join-intro h2{font:900 22px Arial}@media(max-height:760px){.friends-room-intro img{height:125px}.friends-config-screen .friends-room-intro h2{font-size:21px}.friends-room-intro p{font-size:13px}}

.screen.online-screen.friends-config-screen{gap:9px;padding-top:12px}.online-screen.friends-config-screen .friends-config-heading{height:80px;min-height:80px;margin:0}.online-screen.friends-config-screen .friends-config-heading img{height:80px;object-fit:contain}.online-screen.friends-config-screen>.paper{margin-top:0;padding:12px 16px}.online-screen .friends-room-intro img{height:130px}.online-screen .friends-room-intro{margin-bottom:12px;padding-bottom:11px}.online-screen.friends-config-screen .friends-room-intro h2{font-size:22px;margin:3px 0 8px}.online-screen .friends-room-intro p{font-size:13px;margin-bottom:6px}.online-screen .friends-room-intro small{font-size:11px}.online-screen.friends-config-screen .room-help{margin-top:10px}.online-screen.friends-config-screen .friends-config-tabs{margin:0}.online-screen.friends-config-screen #online-form-error:empty{display:none}

.online-screen .friends-original-art{display:block;width:100%;height:150px;margin:auto;border-radius:14px;overflow:hidden}.online-screen .friends-room-intro{background:#fff1d7;border-radius:15px;padding:0 0 11px}.online-screen .friends-room-intro h2,.online-screen .friends-room-intro p,.online-screen .friends-room-intro small{padding-left:7px;padding-right:7px}

.online-screen .friends-room-intro{background:transparent}.online-screen .friends-room-intro .friends-room-characters{width:100%;height:150px;object-fit:contain;margin:0 auto 6px}

.online-screen .friends-room-intro .friends-room-characters{height:170px;object-fit:contain;max-width:100%}

.screen.online-screen.friends-config-screen{padding:8px 16px;gap:6px}.online-screen.friends-config-screen #online-back{display:flex;align-items:center;justify-content:center;align-self:flex-start;width:88px;height:34px;min-height:34px;padding:0;line-height:1;font:800 13px Arial;text-align:center}.online-screen.friends-config-screen .friends-config-heading{height:66px;min-height:66px;margin:0}.online-screen.friends-config-screen .friends-config-heading img{height:66px}.online-screen.friends-config-screen .friends-config-tabs{min-height:0}.online-screen.friends-config-screen .room-tabs{margin:0;padding:3px}.online-screen.friends-config-screen .room-tabs button{min-height:38px;padding:6px}.online-screen.friends-config-screen>.paper{margin:0;padding:10px 15px}.online-screen .friends-room-intro .friends-room-characters{height:148px;margin-bottom:3px}.online-screen.friends-config-screen .friends-room-intro h2{font-size:21px;margin:0 0 7px}.online-screen .friends-room-intro{margin-bottom:9px;padding-bottom:8px}.online-screen .friends-room-intro p{line-height:1.3;margin-bottom:5px}.online-screen.friends-config-screen #create-options>.field-title{margin-bottom:6px}.online-screen.friends-config-screen .color-choice{min-height:64px;padding:5px}.online-screen.friends-config-screen #create-room{margin-top:12px;min-height:48px;padding:7px}.online-screen.friends-config-screen #resume-room{margin-top:9px;min-height:39px;padding:7px}.online-screen.friends-config-screen .room-help{margin-top:7px;font-size:11px}

.online-screen.friends-config-screen .friends-config-heading{height:76px;min-height:76px;transform:translateY(-3px);margin-top:-3px}.online-screen.friends-config-screen .friends-config-heading img{height:76px;width:96%;max-width:100%;object-fit:contain}.online-screen.friends-config-screen .room-tabs button{min-height:44px;padding:8px 6px}.online-screen.friends-config-screen #create-room,.online-screen.friends-config-screen #join-room{min-height:54px;padding:10px 7px}.online-screen.friends-config-screen #resume-room{min-height:45px;padding:10px 7px}

.online-screen.friends-config-screen .friends-config-heading{height:86px;min-height:86px}.online-screen.friends-config-screen .friends-config-heading img{height:86px;width:100%}.online-screen.friends-config-screen .room-tabs button{min-height:49px;font:800 16px Arial;padding:10px 6px}.online-screen.friends-config-screen #create-room,.online-screen.friends-config-screen #join-room{min-height:59px;padding:12px 7px}.online-screen.friends-config-screen #resume-room{min-height:50px;padding:12px 7px}

.online-screen.friends-config-screen .friends-join-intro{padding:0 0 15px;margin-bottom:15px;border-bottom:1px solid #dcb469;text-align:center}.friends-join-intro img{display:block;width:100%;height:190px;object-fit:contain;margin:0 auto 8px}.online-screen.friends-config-screen .friends-join-intro h2{font:900 23px Arial;margin:0 0 9px;color:#51250d}.friends-config-screen .join-code-label{display:grid;gap:9px;text-align:center;font:800 16px Arial}.friends-config-screen #room-code{width:100%;height:57px;min-height:57px;border:2px solid #e6b13b;border-radius:17px;background:linear-gradient(#fffdf4,#fff3d8);box-shadow:inset 0 1px 3px #ab762527,0 2px 2px #70400d20;color:#61320e;text-align:center;font:800 25px Arial;letter-spacing:5px;padding:9px 12px}.friends-config-screen #room-code:focus{outline:2px solid #00b760;outline-offset:2px}.friends-config-screen #join-color{text-align:center;color:#754311;font:700 13px Arial;margin:12px 0}.online-screen.friends-config-screen #join-room{width:100%;margin-top:13px;font:900 19px Arial}.online-screen.friends-config-screen #join-room:disabled{background:linear-gradient(#73ab72,#487842);color:#fff5d9;opacity:.7}

.online-screen.friends-config-screen:has(#join-options:not([hidden])) #room-code{height:47px;min-height:47px;padding:6px 10px}.online-screen.friends-config-screen:has(#join-options:not([hidden])) #join-room{min-height:48px;padding:8px 7px;margin-top:8px}.online-screen.friends-config-screen:has(#join-options:not([hidden])) #resume-room{min-height:42px;padding:8px 7px;margin-top:7px}.online-screen.friends-config-screen .friends-join-intro{padding-bottom:11px;margin-bottom:11px}.online-screen.friends-config-screen:has(#join-options:not([hidden])) .join-code-label{gap:6px}.online-screen.friends-config-screen:has(#join-options:not([hidden])) #join-color:empty{display:none}

.matchmaking-screen .search-cream-panel{width:100%;display:flex;flex-direction:column;align-items:center;gap:10px;padding:15px 12px;border:3px solid #e9b33f;border-radius:28px;background:linear-gradient(120deg,#fff9e8,#f0dbb6);box-shadow:inset 0 0 0 2px #fff2bd,0 5px 8px #35170b66;color:#653514;flex-shrink:0}.search-cream-panel .search-prize,.search-cream-panel .search-prize b,.search-cream-panel .search-person strong,.search-cream-panel .search-person small,.search-cream-panel .search-color-note{color:#663415}.search-cream-panel .search-versus{position:relative;border-top:1px solid #d6b37b;border-bottom:1px solid #d6b37b;padding:14px 0;margin:4px 0 0}.search-cream-panel .search-vs{color:#c39327;text-shadow:0 1px 1px #fff4c2}.search-cream-panel .search-clock{position:relative;background:linear-gradient(#fffdf1,#f3ddb0);border:3px solid #e6b13c;border-radius:21px;box-shadow:inset 0 0 0 1px #fff5c3,0 3px 4px #8b5f2c44;padding:8px 26px;line-height:1}.search-cream-panel .search-clock:before,.search-cream-panel .search-clock:after{content:'❧';position:absolute;top:50%;transform:translateY(-50%);color:#d5a135;font-size:25px;text-shadow:0 1px #fff3a0}.search-cream-panel .search-clock:before{left:-13px}.search-cream-panel .search-clock:after{right:-13px;transform:translateY(-50%) rotate(180deg)}.search-cream-panel #search-status{color:#724418}.search-cream-panel #search-start{border:3px solid #edbc42;box-shadow:inset 0 0 0 2px #fff0b5,0 4px 0 #b57b2855,0 5px 7px #71411c44;background:linear-gradient(#12df80,#009649 65%,#007b36);border-radius:25px;margin-top:0;min-height:55px;text-shadow:0 2px 1px #00562b}.matchmaking-screen .search-logo{height:85px}.matchmaking-screen .search-cream-panel .search-avatar{width:115px;height:115px}.search-cream-panel .search-color-note{margin:2px 0;text-align:center;font-size:12px}.search-cream-panel #search-status:empty{display:none}

.search-cream-panel .search-clock{width:165px;height:56px;padding:0;background:none;border:0;box-shadow:none;display:grid;place-items:center}.search-cream-panel .search-clock:before,.search-cream-panel .search-clock:after{display:none}.search-clock>svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.search-clock>span{position:relative;z-index:1;font:900 28px Arial;letter-spacing:1px}.search-cream-panel #search-start{position:relative;padding:0;border:0;background:transparent;box-shadow:none;height:62px;min-height:62px;display:grid;place-items:center}.search-cream-panel #search-start>svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.search-cream-panel #search-start>span{position:relative;z-index:1;color:#fff7d8;font:900 22px Georgia;text-shadow:0 2px 2px #004322}

.matchmaking-screen .online-players-title{width:70%;height:85px;object-fit:contain}

.matchmaking-screen .online-players-title{width:88%;height:115px;object-fit:contain}

.matchmaking-screen .online-players-title{width:96.8%;height:126.5px;object-fit:contain}

.screen.matchmaking-screen{padding-top:8px!important;gap:7px}.matchmaking-screen .online-players-title{width:106.48%;max-width:none;height:139.15px;object-fit:contain;margin-top:-4px}.matchmaking-screen .search-cream-panel{gap:8px;padding-top:12px}

.matchmaking-screen .search-cream-panel .illustrated-duel{transform:translateY(-5px);margin-bottom:7px}

.matchmaking-screen .online-players-title{width:112%;height:149px;max-width:none}.matchmaking-screen .search-cream-panel .illustrated-duel{width:65%;max-width:250px;transform:translateY(-5px);margin-bottom:7px}

.screen.robot-mode-screen .paper{width:100%;padding:15px 12px;border:3px solid #e9b33f;border-radius:28px;background:linear-gradient(120deg,#fff9e8,#f0dbb6);box-shadow:inset 0 0 0 2px #fff2bd,0 5px 8px #35170b66;gap:10px;color:#653514}.screen.robot-mode-screen .paper h2{color:#663415;text-shadow:none;margin:0;font-size:24px}.screen.robot-mode-screen .paper .robot-stake-summary{color:#663415}.screen.robot-mode-screen .robot-own-color h3{color:#663415;text-shadow:none}.screen.robot-mode-screen .search-bet-title{margin-top:5px;padding-top:14px;border-top:1px solid #d6b37b;box-sizing:content-box}.screen.robot-mode-screen .robot-own-color{margin-top:5px;padding-top:14px;border-top:1px solid #d6b37b;width:100%;border-radius:0}.screen.robot-mode-screen .team-option{margin:2px 0;padding:8px 12px}.screen.robot-mode-screen .paper #play{position:relative;padding:0;border:0;background:transparent;box-shadow:none;height:62px;min-height:62px;display:grid;place-items:center;width:100%;margin:4px 0 0}.robot-play-art{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.screen.robot-mode-screen .paper #play>span{position:relative;z-index:1;color:#fff7d8;font:900 23px Georgia;text-shadow:0 2px 2px #004322}.screen.robot-mode-screen .paper #play:disabled{opacity:.6}.screen.robot-mode-screen .robot-mode-brand{height:40px}.screen.robot-mode-screen .robot-mode-portrait{width:60px;height:60px}.screen.robot-mode-screen .paper .robot-start-error{color:#a2391c}

.screen.robot-mode-screen .search-bet-title{padding-top:0;border-top:0;box-sizing:border-box;margin-top:15px}.screen.robot-mode-screen .search-bet-title svg{overflow:hidden}.screen.robot-mode-screen .team-option:after{display:none}.screen.robot-mode-screen .search-bet-title:before{content:"";position:absolute;top:-10px;left:-19%;width:138%;height:1px;background:#d6b37b}

.screen.robot-mode-screen .robot-header-art{width:68%;height:135px;object-fit:contain;display:block;align-self:center;flex:none}.screen.robot-mode-screen .search-bet-title:before{display:none}.screen.robot-mode-screen .search-bet-title{margin-top:0;padding:0;border:0}.robot-section-divider{height:1px;background:#d6b37b;width:100%;margin:4px 0}.screen.robot-mode-screen .paper{padding-top:14px}

.screen.robot-mode-screen .robot-header-art{width:78%;height:155px}.screen.robot-mode-screen .mode-question svg,.screen.robot-mode-screen .search-bet-title svg{overflow:hidden}.screen.robot-mode-screen .robot-own-color .color-choice span{font-size:12px;font-weight:800}

.screen.robot-mode-screen .robot-header-art{width:84%;height:167px}.screen.robot-mode-screen .mode-question>span,.screen.robot-mode-screen .search-bet-title>span{top:0;height:100%;display:flex;align-items:center;justify-content:center;transform:translateY(-2px);line-height:1;padding:0}

.screen.robot-mode-screen .mode-question>span,.screen.robot-mode-screen .search-bet-title>span{transform:translateY(-5px)}

.matchmaking-screen .online-players-title{width:118%;height:149px;max-width:none;transform:scale(1.05);margin-bottom:-10px}.matchmaking-screen .search-cream-panel{margin-top:-3px}.matchmaking-screen .search-cream-panel .illustrated-duel{width:60%;max-width:230px}

.friends-config-screen .friends-config-heading{height:102px;min-height:102px}.friends-config-screen .friends-config-heading img{height:102px;width:100%;object-fit:contain}.online-screen.friends-config-screen .friends-config-heading{height:102px;min-height:102px}.online-screen.friends-config-screen .friends-config-heading img{height:102px;width:100%}

.online-screen.friends-config-screen .friends-join-intro{border-bottom:0;padding-bottom:0;margin-bottom:5px}.friends-join-intro img{margin-bottom:0}.friends-join-copy{text-align:center;margin:10px 0 8px}.friends-config-screen .friends-join-copy h2{font:900 22px Arial;margin:0 0 7px;color:#51250d}.friends-join-copy p{font:400 13px/1.35 Arial;margin:0;color:#653719}.friends-config-screen #room-code::placeholder{font:700 16px Arial;letter-spacing:0;color:#936c43;opacity:1}.online-screen.friends-config-screen:has(#join-options:not([hidden])) #join-room{margin-top:5px}.online-screen.friends-config-screen:has(#join-options:not([hidden])) #resume-room{margin-top:6px}

.local-inline-players{margin:12px 0 5px;border-top:1px solid #d6b37b;padding-top:10px}.local-inline-players h3{text-align:center;font:800 14px Arial;margin:0 0 8px}.local-participant{padding:8px;background:#fff8e8;border:1px solid #ddbb78;border-radius:15px;margin-bottom:7px}.local-participant-info{display:grid;grid-template-columns:1fr 90px;gap:7px}.local-participant-info input,.local-participant-info select{width:100%;min-width:0;padding:7px;border:1px solid #d8af62;border-radius:9px;background:#fffdf7;color:#623415;font:700 13px Arial}.local-participant .color-picker{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin:5px 0 0}.local-participant .color-choice{min-height:44px;padding:3px;border:1px solid #d8b057;border-radius:9px;background:#fff4d8}.local-participant .color-choice svg{height:24px;width:24px}.local-participant .color-choice span{font-size:10px}.local-participant .color-choice[aria-pressed=true]{background:#00a856;color:white}.local-participant .color-choice i{display:none}#local-name-error:empty{display:none}.friends-config-screen.mode-screen .player-options button{min-height:57px}.friends-config-screen.mode-screen .team-option{padding:7px;margin:9px 0}.friends-config-screen.mode-screen .paper>h2{font-size:20px}

.screen.mode-screen.friends-config-screen{padding:8px 16px;gap:7px}.screen.mode-screen.friends-config-screen .friends-config-heading,.screen.mode-screen.friends-config-screen .friends-config-heading img{height:72px;min-height:72px;margin:0}.screen.mode-screen.friends-config-screen .paper{padding:12px}.screen.mode-screen.friends-config-screen .player-options{margin:7px 0;gap:7px}.screen.mode-screen.friends-config-screen .player-options button{height:51px;min-height:51px;padding:5px}.screen.mode-screen.friends-config-screen .player-options strong{font-size:24px}.screen.mode-screen.friends-config-screen .mode-question{margin:5px 0;font-size:13px}.screen.mode-screen.friends-config-screen .local-participant{padding:5px;margin-bottom:5px}.screen.mode-screen.friends-config-screen .local-participant .color-choice{min-height:36px;padding:2px}.screen.mode-screen.friends-config-screen .local-participant .color-choice svg{height:21px}.screen.mode-screen.friends-config-screen #play{min-height:47px;margin-top:8px}.screen.mode-screen.friends-config-screen .player-options button[aria-pressed=true]{background:linear-gradient(#1dd77c,#008641);color:white;border:2px solid #eebd49}

.screen.mode-screen.friends-config-screen{padding-top:3px;gap:4px}.screen.mode-screen.friends-config-screen .friends-config-heading,.screen.mode-screen.friends-config-screen .friends-config-heading img{height:63px;min-height:63px}.screen.mode-screen.friends-config-screen .friends-config-heading{margin-top:-4px}.screen.mode-screen.friends-config-screen .friends-config-tabs{margin:0}.screen.mode-screen.friends-config-screen .paper{margin-top:0;padding:10px 12px}.screen.mode-screen.friends-config-screen .player-options button{height:43px;min-height:43px;padding:3px;font-size:10px}.screen.mode-screen.friends-config-screen .player-options strong{font-size:22px;line-height:1}.local-participant-info input[readonly]{background:#f4e6cc;color:#6e4a26;cursor:default}.local-participant-info select:disabled{opacity:.65}

.matchmaking-screen .search-bet-title>span{transform:translateY(-4px)}

/* Keep the full matchmaking flow within the usable phone viewport. */
.screen.online-screen.matchmaking-screen{height:100svh;height:100dvh;max-height:100dvh;min-height:0;box-sizing:border-box;padding: max(8px,env(safe-area-inset-top)) 16px max(12px,env(safe-area-inset-bottom))!important;gap:6px;overflow-y:auto}
.matchmaking-screen #search-back{min-height:36px;padding:6px 14px}
.matchmaking-screen .online-players-title{width:95%;height:clamp(60px,12svh,105px);margin:0;transform:none;flex-shrink:0}
.matchmaking-screen .search-cream-panel{flex:1 0 auto;min-height:0;gap:clamp(3px,.7svh,7px);padding:8px 12px 12px;margin:0}
.matchmaking-screen .search-cream-panel .illustrated-duel{width:56%;max-width:210px;margin:0;transform:none}
.matchmaking-screen .search-bet-title{width:65%;max-width:260px;flex-shrink:0}
.matchmaking-screen .search-prize{font-size:13px;line-height:1.25;margin:0}
.matchmaking-screen .search-cream-panel .search-versus{padding:8px 0;margin:0}
.matchmaking-screen .search-cream-panel .search-avatar{width:clamp(65px,12svh,105px);height:clamp(65px,12svh,105px)}
.matchmaking-screen .search-person{grid-template-rows:auto 22px 18px;gap:3px}
.matchmaking-screen .search-person strong{font-size:17px;line-height:22px}
.matchmaking-screen .search-person small{font-size:12px;line-height:18px}
.matchmaking-screen .search-vs{margin-top:clamp(18px,4svh,38px)}
.matchmaking-screen .search-cream-panel .search-clock{padding:0;flex-shrink:0}
.matchmaking-screen .search-color-note{font-size:11px;line-height:1.3;margin:0}
.matchmaking-screen #search-status{font-size:14px;min-height:0;margin:0}
.matchmaking-screen .search-cream-panel #search-start{flex-shrink:0;margin-top:auto;min-height:48px}

/* Size the bet heading against its own frame, including on iPhone. */
.matchmaking-screen .search-bet-title{container-type:inline-size}
.matchmaking-screen .search-bet-title>span{inset:0 9%;padding:0;white-space:nowrap;font-size:7cqw;line-height:1;transform:translateY(-1px);letter-spacing:0;display:flex;align-items:center;justify-content:center}

/* Phone setup screens: reserve height for actions before decorative artwork. */
.screen.online-screen.friends-config-screen,.screen.robot-mode-screen{box-sizing:border-box;height:100svh;height:100dvh;min-height:0;max-height:100dvh;padding:max(8px,env(safe-area-inset-top)) 16px max(12px,env(safe-area-inset-bottom));gap:5px;overflow-y:auto}
.online-screen.friends-config-screen>.paper,.screen.robot-mode-screen>.paper{flex:1 0 auto;min-height:0;margin:0;padding:10px 12px}
.online-screen.friends-config-screen .friends-config-heading,.online-screen.friends-config-screen .friends-config-heading img{height:clamp(44px,7svh,63px);min-height:0;margin:0;transform:none}
.online-screen.friends-config-screen .friends-config-tabs{flex-shrink:0;margin:0;gap:8px}
.online-screen.friends-config-screen .friends-config-tabs button{min-height:52px;padding:4px}
.online-screen.friends-config-screen .room-tabs{flex-shrink:0;margin:0;padding:3px}
.online-screen.friends-config-screen .room-tabs button{min-height:38px;padding:6px;font-size:15px}
.online-screen.friends-config-screen .friends-room-intro{margin-bottom:5px;padding-bottom:4px}
.online-screen.friends-config-screen .friends-room-intro .friends-room-characters{height:clamp(64px,11svh,100px);margin:0 auto 3px}
.online-screen.friends-config-screen .friends-room-intro h2{font-size:19px;line-height:1.1;margin:0 0 5px}
.online-screen.friends-config-screen .friends-room-intro p{font-size:13px;line-height:1.25;margin:0 0 4px}
.online-screen.friends-config-screen .friends-room-intro small{font-size:11px}
.online-screen.friends-config-screen .field-title{font-size:15px;margin:5px 0}
.online-screen.friends-config-screen .color-choice{min-height:54px;padding:3px}
.online-screen.friends-config-screen .color-choice svg{height:28px}
.online-screen.friends-config-screen #create-room,.online-screen.friends-config-screen #join-room{min-height:48px;margin-top:8px;padding:7px;font-size:18px}
.online-screen.friends-config-screen .room-help{margin-top:5px;font-size:11px}
.online-screen.friends-config-screen #online-form-error:empty{display:none}
.online-screen.friends-config-screen .friends-join-intro{padding:0;margin:0}
.online-screen.friends-config-screen .friends-join-intro img{height:clamp(80px,16svh,150px)}
.screen.robot-mode-screen .setup-head{min-height:36px;flex-shrink:0}
.screen.robot-mode-screen .setup-head button{min-height:36px;padding:5px 14px}
.screen.robot-mode-screen .robot-header-art{height:clamp(70px,13svh,115px);width:78%;flex-shrink:0}
.screen.robot-mode-screen .mode-question{margin:3px 0}
.screen.robot-mode-screen .player-options{gap:8px;margin:6px 0}
.screen.robot-mode-screen .player-options button{min-height:58px;height:58px;padding:5px}
.screen.robot-mode-screen .player-options strong{font-size:26px}
.screen.robot-mode-screen .team-option{margin:5px 0;padding:6px 10px}
.screen.robot-mode-screen .search-bet-title{margin:5px 0}
.screen.robot-mode-screen .robot-own-color{margin-top:5px;padding-top:7px}
.screen.robot-mode-screen .color-choice{min-height:54px;padding:3px}
.screen.robot-mode-screen .color-choice svg{height:28px}
.screen.robot-mode-screen .paper #play{height:50px;min-height:50px;margin:6px 0 0}
.screen.robot-mode-screen .robot-start-error:empty{display:none}

/* Configuration panels end after their content instead of filling the viewport. */
.screen.matchmaking-screen .search-cream-panel,
.screen.online-screen.friends-config-screen>.paper,
.screen.robot-mode-screen>.paper{flex:0 0 auto;height:auto;min-height:0;margin-bottom:8px}
.screen.matchmaking-screen .search-cream-panel #search-start{margin-top:12px;margin-bottom:0}

.friends-room-bets{padding:6px 0 9px;margin:6px 0 9px;border-bottom:1px solid #d6b37b;text-align:center}
.friends-room-bets .search-bet-title{position:relative;width:80%;height:34px;margin:0 auto 8px;display:grid;place-items:center}
.friends-room-bets .search-bet-title svg{position:absolute;inset:0;width:100%;height:100%}
.friends-room-bets .search-bet-title span{position:relative;color:#63330e;font:bold 15px Georgia}
.friends-room-bets .search-bets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.friends-room-bets [data-friend-stake]{display:flex;align-items:center;justify-content:center;gap:5px;padding:5px 3px;min-height:39px;border:2px solid #c78d24;border-radius:22px;background:linear-gradient(#fffdf3,#edcf8d);box-shadow:inset 0 0 0 1px #fff8cc,0 2px 1px #9d641d66;color:#593016;font:bold 18px Arial}
.friends-room-bets [data-friend-stake] img{width:23px;height:23px;object-fit:contain}
.friends-room-bets [aria-pressed="true"]{background:linear-gradient(#12d67a,#008443);color:white;border-color:#dda72c}
.friends-room-bets .friends-stake-note{font:12px Arial;color:#63330e;margin:9px 0 0}

.approved-lobby .lobby-stake-title{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;margin:0;padding:10px;border:2px solid #e6ae36;border-radius:18px;background:linear-gradient(#fff8df,#edcd8f);color:#62310e;font:900 21px Arial;text-align:center}
.lobby-stake-title img{width:30px;height:30px;object-fit:contain}.lobby-stake-title small{flex-basis:100%;font:13px Arial}

.approved-lobby .lobby-top-row{position:relative;display:flex;align-items:center;min-height:40px;gap:8px;flex:0 0 auto}
.approved-lobby .lobby-top-row #leave-lobby{position:relative;z-index:1;flex:none}
.approved-lobby .lobby-stake-compact{position:absolute;left:90px;right:12px;display:flex;align-items:center;justify-content:center;gap:5px;color:#fff2cd;font:700 14px/1.2 Arial;text-shadow:0 1px 2px #51250d;white-space:nowrap}
.lobby-stake-compact img{width:19px;height:19px;object-fit:contain}

.approved-lobby .lobby-top-row{min-height:44px}
.approved-lobby .lobby-stake-compact{top:0;bottom:0}
.approved-lobby .lobby-stake-badge{display:block;width:clamp(155px,51cqw,225px);max-width:100%;height:44px;overflow:visible}

/* Center every stake badge on the complete lobby header. */
.approved-lobby .lobby-top-row .lobby-stake-compact{left:0;right:0;justify-content:center;pointer-events:none}

.approved-lobby .lobby-invite-robot-row{display:flex;align-items:stretch;justify-content:center;gap:12px;width:100%;margin:8px 0;flex:none}
.approved-lobby .lobby-invite-robot-row #add-lobby-robot,.approved-lobby .lobby-invite-robot-row #invite-friends{flex:1 1 0;min-width:0;width:auto;margin:0;align-self:stretch;min-height:44px;padding:8px 7px;font:800 14px Arial}

/* Shared variant controls */
.variant-picker{box-sizing:border-box;margin:12px 0;padding:12px;border:2px solid #e9aa24;border-radius:18px;background:#fff5de;color:#64310d;text-align:center;flex-shrink:0}
.variant-picker>strong{display:block;font:900 14px Arial;margin-bottom:8px}
.variant-picker>div{display:flex;gap:8px}.variant-picker button{flex:1;min-width:0;min-height:42px;padding:8px;border:2px solid #e8a922;border-radius:14px;background:#fffaf0;color:#63320e;font:800 15px Arial;cursor:pointer}
.variant-picker button[aria-pressed="true"]{background:#00ae59;color:white;box-shadow:inset 0 0 0 1px #fff7b5}.variant-picker button:disabled{cursor:default;opacity:.8}
.variant-rules{font:700 12px/1.45 Arial;margin:9px 0 0}.approved-lobby>.variant-picker{width:100%;margin:0}
.quick-target{margin:4px 12px;text-align:center;color:#fff5d3;font:700 13px/1.4 Arial}.quick-guide{flex-shrink:0}

/* Raise the versus artwork and following panel together; retain all sizes. */
.screen.online-screen.matchmaking-screen{position:relative;top:0}
.screen.matchmaking-screen .online-players-title{margin-top:-24px}
/* Raise VS robots artwork and the following controls without resizing. */
.screen.robot-mode-screen .robot-header-art{margin-top:-40px!important}

/* Raise the entire robot configuration panel, including the quick variant. */
.screen.robot-mode-screen>.paper{margin-top:-32px!important}
/* Raise Friends title, tabs and following content together without resizing. */
.screen.friends-config-screen .friends-config-heading{margin-top:-32px!important}
/* Center the private-room introduction across the available panel width. */
.screen.online-screen.friends-config-screen .friends-room-intro p{display:block;width:100%;max-width:none;box-sizing:border-box;margin-left:auto;margin-right:auto;text-align:center;text-wrap:balance}
/* Raise the private-room stakes and all following controls together. */
.screen.online-screen.friends-config-screen .friends-room-bets{margin-top:-10px}
/* Slightly shorter variant card in the Friends configuration. */
.screen.friends-config-screen .variant-picker{padding-top:8px;padding-bottom:8px}
/* Navigation stays above artwork raised toward the top of the screen. */
.screen>.setup-head,.screen>#online-back,.screen>#search-back{position:relative;z-index:10}
.screen .setup-head button,.screen>#online-back,.screen>#search-back{pointer-events:auto;touch-action:manipulation}
.robot-header-art,.online-players-title,.friends-config-heading,.friends-config-heading img{pointer-events:none}
/* Simplified VS robots proposal: clear sections and one primary action. */
.screen.robot-mode-screen.robot-clean{gap:8px;padding-top:8px;overflow-y:auto}
.screen.robot-clean .robot-header-art{margin-top:-16px!important;margin-bottom:0;width:76%;height:clamp(90px,14svh,120px)}
.screen.robot-clean>.paper{margin-top:0!important;padding:16px 18px;gap:10px;border-radius:26px}
.screen.robot-clean .mode-question,.screen.robot-clean .search-bet-title{position:static;display:block;width:100%;height:auto;min-height:0;margin:0;padding:0;border:0;aspect-ratio:auto;background:none;box-shadow:none;color:#60310f;text-align:left;font:900 22px/1.2 'Trebuchet MS',Arial;transform:none}
.screen.robot-clean .search-bet-title:before,.screen.robot-clean .search-bet-title:after{display:none}
.screen.robot-clean .player-options{gap:8px;margin:0}
.screen.robot-clean .player-options button{height:74px;min-height:74px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:8px 4px;border:1px solid #d6bd96;border-radius:18px;background:linear-gradient(#fff9ec,#efdfbf);box-shadow:0 2px 3px #79491620;font:800 16px Arial;color:#643513}
.screen.robot-clean .player-options button[aria-pressed="true"]{background:linear-gradient(#0ac168,#007c3c);color:#fff7df;border:2px solid #e8b23d;box-shadow:inset 0 0 0 1px #fff3b8,0 2px 4px #55300730}
.robot-option-icons{display:flex;gap:3px;align-items:center;justify-content:center}.robot-option-icons svg{width:23px;height:25px}
.screen.robot-clean .team-option{margin:0;padding:9px 0;background:none;border:0;border-radius:0;box-shadow:none;color:#79583a;font:700 14px Arial}
.screen.robot-clean .team-option:before,.screen.robot-clean .team-option:after{display:none}
.screen.robot-clean .robot-section-divider{margin:0;height:1px;background:#d7bf99}
.screen.robot-clean .search-bets{gap:8px;margin:0;width:100%}
.screen.robot-clean .search-bets button{border:1px solid #d6bd96;border-radius:17px;height:48px;min-height:48px;background:linear-gradient(#fff9ec,#efdfbf)!important;box-shadow:0 2px 3px #79491620;display:flex;align-items:center;justify-content:center;gap:9px}
.screen.robot-clean .search-bets .bet-frame{display:none}
.screen.robot-clean .search-bets button:before{content:'🪙';font-size:25px}
.screen.robot-clean .search-bets button[aria-pressed="true"]{background:linear-gradient(#0ac168,#007c3c)!important;border:2px solid #e8b23d;box-shadow:inset 0 0 0 1px #fff3b8}
.screen.robot-clean .search-bets .bet-amount{position:static;display:block;inset:auto;transform:none;font:900 21px Arial;color:#643513;text-shadow:none}
.screen.robot-clean .search-bets button[aria-pressed="true"] .bet-amount{color:#fff7df}
.screen.robot-clean .robot-stake-summary{margin:0!important;text-align:center;font:700 12px/1.3 Arial!important;color:#79583a!important}
.screen.robot-clean .robot-own-color{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0;padding:10px 0;border-top:1px solid #d7bf99;border-bottom:1px solid #d7bf99}
.screen.robot-clean .robot-own-color h3{font:900 20px Arial;margin:0;white-space:nowrap;text-align:left}
.screen.robot-clean .color-picker{display:flex;gap:8px;flex:1;justify-content:flex-end}
.screen.robot-clean .color-choice{position:relative;display:grid;place-items:center;width:44px;min-width:0;height:54px;min-height:54px;padding:2px;border:2px solid transparent;border-radius:50%;background:transparent!important;box-shadow:none!important;flex:0 1 44px}
.screen.robot-clean .color-choice[aria-pressed="true"]{border-color:#dca125;background:#fff9e8!important}
.screen.robot-clean .color-choice svg{height:46px;width:38px}.screen.robot-clean .color-choice span,.screen.robot-clean .color-choice i{display:none}
.screen.robot-clean .variant-picker{width:100%;border:0;border-radius:0;padding:0;margin:0;background:none;box-shadow:none}
.screen.robot-clean .variant-picker>strong{display:flex;align-items:center;justify-content:space-between;margin:0 0 10px;font:900 20px Arial;text-align:left}
.screen.robot-clean .variant-picker .variant-info{flex:none;min-height:30px;height:30px;width:30px;padding:0;border:0;background:none;box-shadow:none;border-radius:50%;color:#9c7b50;font:700 27px Arial}
.screen.robot-clean .variant-picker>div{gap:8px}
.screen.robot-clean .variant-picker>div button{height:48px;min-height:48px;border:1px solid #d6bd96;border-radius:17px;background:linear-gradient(#fff9ec,#efdfbf);font-size:17px}
.screen.robot-clean .variant-picker>div button[aria-pressed="true"]{background:linear-gradient(#0ac168,#007c3c);border:2px solid #e8b23d;box-shadow:inset 0 0 0 1px #fff3b8}
.screen.robot-clean .variant-rules{display:none}
.screen.robot-clean .paper #play{height:64px;min-height:64px;margin:4px 0 0;border:3px solid #efbf4d;border-radius:26px;background:linear-gradient(#16d77e,#008c45 65%,#006f33);box-shadow:inset 0 0 0 2px #fff0b5,0 3px 5px #59301340}
.screen.robot-clean .robot-play-art{display:none}.screen.robot-clean .paper #play>span{font:900 30px 'Trebuchet MS',Arial;letter-spacing:1px}
.robot-rules-dialog{padding:8px;text-align:center}.robot-rules-dialog p{font:700 16px/1.6 Arial;color:#643513}
/* Use the game's shared coin artwork in robot stakes. */
.screen.robot-clean .search-bets button:before{content:none}
.screen.robot-clean .search-bets .robot-bet-coin{position:static;display:block;flex:0 0 30px;width:30px;height:30px;object-fit:contain;margin:0;transform:none}
/* Center each coin and amount as one balanced group. */
.screen.robot-clean .search-bets button{display:flex;align-items:center;justify-content:center;gap:8px;padding:0 10px;box-sizing:border-box}
.screen.robot-clean .search-bets .robot-bet-coin{flex:0 0 26px;width:26px;height:26px;align-self:center}
.screen.robot-clean .search-bets .bet-amount{height:auto;min-height:0;line-height:1;align-self:center;padding:0!important;margin:0;flex:0 0 auto}
/* Keep the selected mode description visible in the simplified robot screen. */
.screen.robot-clean .variant-rules{display:block;margin:9px 0 0;text-align:center;font:700 12px/1.45 Arial;color:#64310d}
/* Friends setup follows the left-aligned headings and pawn row from Robots. */
.screen.online-screen.friends-config-screen .friends-own-color{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;margin:0 0 10px;border-bottom:1px solid #d7bf99}
.screen.online-screen.friends-config-screen .friends-own-color .field-title{font:900 20px Arial;color:#643513;text-align:left;white-space:nowrap;margin:0}
.screen.online-screen.friends-config-screen .friends-own-color .color-picker{display:flex;gap:8px;flex:1;justify-content:flex-end}
.screen.online-screen.friends-config-screen .friends-own-color .color-choice{position:relative;display:grid;place-items:center;width:44px;min-width:0;height:54px;min-height:54px;padding:2px;border:2px solid transparent;border-radius:50%;background:transparent!important;box-shadow:none!important;flex:0 1 44px}
.screen.online-screen.friends-config-screen .friends-own-color .color-choice[aria-pressed="true"]{border-color:#dca125;background:#fff9e8!important}
.screen.online-screen.friends-config-screen .friends-own-color .color-choice svg{height:46px;width:38px}
.screen.online-screen.friends-config-screen .friends-own-color .color-choice span,.screen.online-screen.friends-config-screen .friends-own-color .color-choice i{display:none}
.screen.friends-config-screen .variant-picker{border:0;border-radius:0;background:none;box-shadow:none;padding:0;margin:0 0 12px}
.screen.friends-config-screen .variant-picker>strong{font:900 20px Arial;color:#643513;text-align:left;margin:0 0 10px}
.screen.friends-config-screen .variant-picker>div{gap:8px}
.screen.friends-config-screen .variant-picker>div button{height:48px;min-height:48px;border:1px solid #d6bd96;border-radius:17px;background:linear-gradient(#fff9ec,#efdfbf);font-size:17px}
.screen.friends-config-screen .variant-picker>div button[aria-pressed="true"]{background:linear-gradient(#0ac168,#007c3c);border:2px solid #e8b23d;box-shadow:inset 0 0 0 1px #fff3b8;color:#fff7df}
/* Slightly narrower pawn selector in Friends. */
.screen.online-screen.friends-config-screen .friends-own-color .color-picker{flex:0 1 auto;gap:5px}
.screen.online-screen.friends-config-screen .friends-own-color .color-choice{width:38px;flex-basis:38px}
/* Center pawn artwork independently of the narrower button content box. */
.screen.online-screen.friends-config-screen .friends-own-color .color-choice{box-sizing:border-box;flex-shrink:0}
.screen.online-screen.friends-config-screen .friends-own-color .color-choice svg{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);margin:0;max-width:none;display:block}
/* Slightly larger versus characters and a higher duel badge. */
.screen.matchmaking-screen .online-players-title{transform:scale(1.12);transform-origin:center center}
.screen.matchmaking-screen .search-cream-panel .illustrated-duel{transform:translateY(-10px);margin-bottom:-10px}
/* Restore breathing room below the raised 1 VS 1 badge. */
.screen.matchmaking-screen .search-cream-panel .illustrated-duel{margin-bottom:0}
/* Enlarge robot header artwork without changing the panel position. */
.screen.robot-mode-screen.robot-clean .robot-header-art{transform:scale(1.12);transform-origin:center center}
#resume-room[hidden]{display:none!important}
/* Returning-player notice; match the game's cream, emerald and gold palette. */
.resume-home-dialog{padding:0;width:min(90vw,420px);max-height:90dvh;overflow:auto;border:3px solid #dfaa35;border-radius:30px;background:linear-gradient(125deg,#fff9e8,#f1dcb3);box-shadow:inset 0 0 0 2px #fff2b7,0 12px 40px #2b120b80;color:#60310f}
.resume-home-dialog::backdrop{background:#241206a8;backdrop-filter:blur(2px)}
.resume-home-card{padding:22px 20px;display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;font-family:'Trebuchet MS',Arial}
.resume-home-art{display:flex;align-items:center;justify-content:center;gap:3px;height:90px;pointer-events:none}.resume-home-art>svg{width:70px;height:80px}.resume-home-art>span{font:900 64px Georgia;color:#d99a17}
.resume-home-card h2{margin:0;font:900 28px/1.12 'Trebuchet MS',Arial;color:#60310f;text-shadow:0 1px #fff6cf}
.resume-home-card>p{margin:0;font:700 15px/1.4 Arial}
.resume-home-mode{padding:7px 12px;border:1px solid #dfbb75;border-radius:20px;background:#f8e5bd;font:700 13px/1.4 Arial}
.resume-home-pawns{display:flex;gap:5px}.resume-home-pawns svg{width:34px;height:40px}
.resume-home-card>button{width:100%;min-height:50px;border:2px solid #dfaa35;border-radius:24px;font:900 16px Arial;padding:12px;cursor:pointer}
.resume-home-primary{background:linear-gradient(#19d77a,#008e44 70%,#006f32);color:#fff9df;box-shadow:inset 0 0 0 1px #ffefac,0 3px 0 #9d641a;text-shadow:0 1px #006025}
.resume-home-later{background:linear-gradient(#fffbed,#efd7ad);color:#643413;box-shadow:inset 0 0 0 1px #fff5ca}
.resume-home-card button:disabled{opacity:.6;cursor:wait}.resume-home-card .resume-home-error{font-size:13px;color:#8c2e17}.resume-home-error:empty{display:none}
.resume-home-card button[hidden]{display:none!important}
@media(max-height:650px){.resume-home-card{padding:16px;gap:9px}.resume-home-art{height:60px}.resume-home-art>svg{height:58px;width:50px}.resume-home-art>span{font-size:45px}.resume-home-card h2{font-size:24px}.resume-home-pawns svg{height:30px}}
/* Approved illustrated resume panel with real labels and hit targets. */
.resume-home-dialog.illustrated-resume{width:min(94vw,460px,calc(90dvh * .859));max-width:94vw;max-height:90dvh;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible;padding:0}
.illustrated-resume .resume-home-card{position:relative;box-sizing:border-box;width:100%;aspect-ratio:1168/1360;padding:0;display:block;background:url('assets/resume-dialog-approved.png') center/100% 100% no-repeat;container-type:inline-size}
.illustrated-resume .resume-home-art,.illustrated-resume .resume-home-pawns{display:none}
.illustrated-resume .resume-home-card h2{position:absolute;left:9%;top:31%;width:82%;height:14%;display:flex;align-items:center;justify-content:center;margin:0;font:900 clamp(20px,7.2cqw,34px)/1.05 'Trebuchet MS',Arial;color:#5b2a0c;text-shadow:0 1px #fff6d4;text-wrap:balance}
.illustrated-resume .resume-home-card>p#resume-home-description{position:absolute;left:8%;top:44%;width:84%;height:5%;display:flex;align-items:center;justify-content:center;font:700 clamp(11px,3.7cqw,17px)/1.2 'Trebuchet MS',Arial;margin:0;color:#633314}
.illustrated-resume .resume-home-mode{position:absolute;left:25%;top:49.1%;width:50%;height:7%;box-sizing:border-box;display:flex;align-items:center;justify-content:center;padding:0 2%;border:0;border-radius:0;background:none;font:800 clamp(9px,2.9cqw,13px)/1.15 'Trebuchet MS',Arial;color:#693716;text-wrap:balance}
.illustrated-resume .resume-home-card>button{position:absolute;left:7%;width:86%;min-height:0;padding:0 3%;display:flex;align-items:center;justify-content:center;border:0;border-radius:999px;background:transparent;box-shadow:none;cursor:pointer}
.illustrated-resume .resume-home-primary{top:70.1%;height:11.5%;color:#fff8df;text-shadow:0 2px 2px #00451e;font:900 clamp(13px,4.7cqw,22px)/1.1 'Trebuchet MS',Arial}
.illustrated-resume .resume-home-later{top:84.8%;height:9.5%;color:#663315;font:900 clamp(14px,4.6cqw,21px)/1 'Trebuchet MS',Arial}
.illustrated-resume .resume-home-card>button:focus-visible{outline:3px solid #65cfff;outline-offset:2px}
.illustrated-resume .resume-home-card .resume-home-error{position:absolute;left:9%;top:94.6%;width:82%;font:700 clamp(8px,2.5cqw,11px)/1.1 Arial;text-align:center;margin:0}
/* Keep every live label centered on its illustrated area. */
.illustrated-resume .resume-home-card h2,
.illustrated-resume .resume-home-card>p#resume-home-description,
.illustrated-resume .resume-home-mode,
.illustrated-resume .resume-home-card>button{box-sizing:border-box;text-align:center;text-indent:0;letter-spacing:normal;display:flex;align-items:center;justify-content:center}
.illustrated-resume .resume-home-card h2{left:10%;width:80%;top:31%;height:14%;padding:0 1%;text-wrap:balance}
.illustrated-resume .resume-home-card>p#resume-home-description{left:8%;width:84%;top:44%;height:5%;padding:0;text-wrap:balance}
.illustrated-resume .resume-home-mode{left:24.7%;width:50.6%;top:49.2%;height:6.9%;padding:0 3%;text-wrap:balance}
.illustrated-resume .resume-home-card>.resume-home-primary{left:7.1%;width:85.8%;top:70.3%;height:11.2%;padding:0 4%}
.illustrated-resume .resume-home-card>.resume-home-later{left:7.7%;width:84.6%;top:85%;height:9.3%;padding:0 4%}
/* Scale the complete illustrated notice down proportionally. */
.resume-home-dialog.illustrated-resume{width:min(84vw,390px,calc(80dvh * .859))}
/* Align the labels to the visual centers of the illustrated button faces. */
.illustrated-resume .resume-home-card>.resume-home-primary{left:7.1%;width:85.8%;top:69%;height:11.2%;padding:0;line-height:1;text-align:center;align-items:center;justify-content:center}
.illustrated-resume .resume-home-card>.resume-home-later{left:7.7%;width:84.6%;top:83.5%;height:9.3%;padding:0;line-height:1;text-align:center;align-items:center;justify-content:center}
.settings-legal{width:100%;margin:12px 0;color:#643413}.settings-legal h3{text-align:left;font:800 16px Arial;margin:0 0 8px}.settings-legal>button{width:100%;display:flex;justify-content:space-between;align-items:center;padding:12px;border:1px solid #d8b674;border-radius:12px;background:#fff6e3;color:#643413;font:700 14px Arial;margin:6px 0}.settings-legal>a{display:block;text-align:center;color:#6b431e;font:700 13px Arial;padding:8px}
.legal-document-dialog{width:min(92vw,560px);max-height:88dvh;padding:0;border:2px solid #dba32f;border-radius:22px;background:#fff7e6;color:#553016;overflow:hidden;box-sizing:border-box}.legal-document-dialog::backdrop{background:#241308aa}.legal-document-dialog>header{padding:14px 18px;border-bottom:1px solid #ddc294;background:#f7e7c6}.legal-document-dialog h2{font:900 22px Arial;margin:12px 0 0}.legal-document-dialog [data-legal-close]{border:1px solid #d9a83d;border-radius:18px;padding:8px 14px;background:#008d45;color:white;font:800 14px Arial}.legal-document-dialog article{max-height:calc(88dvh - 115px);overflow-y:auto;padding:16px 20px;box-sizing:border-box;overscroll-behavior:contain}.legal-document-dialog h3{font:800 16px/1.4 Arial;margin:20px 0 7px}.legal-document-dialog p{font:400 14px/1.65 Arial;margin:0 0 12px;text-align:left}.legal-document-dialog a{color:#07633b;overflow-wrap:anywhere}.legal-document-dialog .legal-review{font-size:12px;color:#806145}
/* Smaller legal documents, with comfortable scrolling. */
.legal-document-dialog{width:min(86vw,440px);max-height:76dvh;border-radius:18px}
.legal-document-dialog>header{padding:10px 14px}
.legal-document-dialog h2{font-size:18px;margin-top:8px}
.legal-document-dialog [data-legal-close]{font-size:12px;padding:6px 12px}
.legal-document-dialog article{max-height:calc(76dvh - 94px);padding:12px 16px}
.legal-document-dialog h3{font-size:14px;margin:16px 0 6px}
.legal-document-dialog p{font-size:12px;line-height:1.55;margin-bottom:10px}
.legal-document-dialog .legal-review{font-size:10px}
