.friend-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}
.friend-actions .entry-button{margin:0;min-width:0;padding:16px 13px;gap:5px}
.friend-actions .entry-button strong{font-size:19px;white-space:nowrap}
.friend-actions .entry-button small{font-size:10px;line-height:1.4}
.friend-actions .entry-button:last-child{background:#e3efd9;border-color:#bdcfae;box-shadow:0 3px 0 #bdcfae}
.room-page{padding:30px 0 40px;max-width:1100px;width:100%;margin:auto}
.room-heading{margin:0 0 24px}
.room-heading .back-link{margin-bottom:14px;min-height:26px}
.room-heading h1{font-size:37px;letter-spacing:-1.2px;line-height:1.1}
.room-heading p{font-size:13px;line-height:1.7;color:var(--muted);margin-top:9px}
.host-form{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start}
.room-card{background:var(--paper);border:1px solid var(--line);border-radius:20px;padding:25px;min-width:0}
.room-card h2{font-size:22px;letter-spacing:-.5px;margin-bottom:14px}
.room-card h3{font-size:17px;margin:22px 0 10px}
.room-card>p{font-size:12px;line-height:1.7;color:var(--muted);margin:0 0 15px}
.room-field{display:flex;flex-direction:column;gap:7px;margin:14px 0;font-size:12px;font-weight:600;min-width:0}
.room-field input,.room-field select{border:1px solid #d4dec9;background:#fffdf8;border-radius:10px;min-height:46px;width:100%;padding:10px 12px;font-size:14px;min-width:0}
.room-field small{font-size:10px;line-height:1.6;color:var(--muted);font-weight:400}
.room-two{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.seat-allocation{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.seat-allocation .room-field input{font-size:22px;text-align:center;padding:9px 4px}
.seat-allocation .room-field>span{font-size:11px}
.room-note{padding:11px 13px;background:#eef3e2;border:1px solid #e0e7d2;border-radius:11px;font-size:11px;line-height:1.7;color:#607254;margin-top:14px}
.g-coin{display:inline-grid;place-items:center;background:#edcb72;border:1px solid #c8a74e;color:#75591c;border-radius:50%;width:22px;height:22px;font:700 13px Outfit;vertical-align:middle;margin-right:5px}
.gold-card{grid-column:1/-1}
.gold-card>.room-two{max-width:500px}
.prize-preview{background:#fff3cd;border:1px solid #ead8a2;border-radius:14px;padding:16px;margin-top:18px}
.prize-preview>strong{font-family:Outfit;font-size:30px;display:block}
.prize-preview>span{font-size:11px;color:#8e7948;display:block;margin-top:3px}
.prize-preview p{font-size:12px;line-height:1.7;margin:13px 0 5px}
.prize-preview small{font-size:10px;color:#8a7b54}
.pro-teaser{border:1px dashed #d1bc80;background:#fffaf0;padding:13px;width:100%;display:flex;justify-content:space-between;align-items:center;gap:10px;border-radius:11px;font-size:12px;margin-top:15px}
.pro-teaser span{font-size:9px;border-radius:5px;background:#f1e3b9;padding:5px;white-space:nowrap}
.room-submit{grid-column:1/-1;display:grid;gap:12px;justify-items:center;padding:8px 0}
.room-submit>.button{min-width:280px;min-height:48px}
.room-submit>small{font-size:10px;color:var(--muted);line-height:1.6;text-align:center}
.room-error{font-size:12px;line-height:1.6;color:#9b5345;background:#fae9de;border-radius:10px;padding:11px 13px;width:100%;margin:12px 0}
.join-page{max-width:570px}
.join-tabs{display:grid;grid-template-columns:1fr 1fr;gap:5px;background:#edf0e0;border-radius:11px;padding:4px;margin:22px 0 18px}
.join-tabs button{background:transparent;border-radius:8px;padding:11px 7px;font-size:12px;min-height:42px}
.join-tabs button[aria-pressed=true]{background:#fffdf6;box-shadow:0 2px 3px #1c3e2412;font-weight:700}
#join-code{text-align:center;letter-spacing:10px;font-family:Outfit;font-size:29px!important;padding:11px}
.room-wide{width:100%;margin-top:13px;min-height:46px}
.room-caption{font-size:11px!important;line-height:1.7;color:var(--muted);margin:15px 0 0!important;text-align:center}
.time-range{background:#f2f3e7;border-radius:13px;padding:14px;margin:15px 0}
.time-range>strong{font-size:12px}.time-range>span{float:right;font-size:11px;color:var(--muted)}
.time-range label{display:flex;align-items:center;gap:10px;font-size:11px;color:var(--muted);margin-top:12px}
.time-range input[type=range]{flex:1;accent-color:#5b9a6d;min-width:0;height:32px}
.invite-summary{padding-bottom:14px;border-bottom:1px solid var(--line);margin-bottom:20px}
.invite-summary>span,.invitation-card>span{font-size:9px;letter-spacing:1.6px;font-weight:700;color:#74906b}
.invite-summary h2{margin-top:10px;font-size:25px}
.invite-summary p{font-size:12px;color:var(--muted);line-height:1.7}
.lobby-page{max-width:920px}.lobby-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:20px 0}
.invitation-card{text-align:center;background:#f4f8e9}
.join-code-display{font-family:Outfit;font-size:49px;font-weight:700;letter-spacing:10px;margin:12px 0 16px}
.invitation-card .button{display:flex;margin:auto;max-width:330px;width:100%}
.invitation-card>small{display:block;overflow-wrap:anywhere;font-size:10px;color:#78866a;line-height:1.6;margin-top:13px}
.lobby-title{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:8px}
.lobby-title h2{font-size:19px;margin:0}.lobby-title>span{font-size:11px;background:#edf1e0;padding:6px 9px;border-radius:8px}
.lobby-person{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #eceee2;min-width:0}
.lobby-person>svg{width:42px;height:42px;flex-shrink:0}.lobby-person>div:nth-child(2){min-width:0;flex:1}
.lobby-person strong{display:block;font-size:12px;overflow-wrap:anywhere}
.source-label{display:inline-block;margin-top:5px;font-size:9px;border-radius:5px;background:#e9f0df;padding:4px 6px;color:#617854}
.source-random{background:#f7dfca;color:#976e4d}.source-bot{background:#eae1f2;color:#7b668d}
.approval-buttons{display:flex;gap:5px}.approval-buttons button{background:#a5d8ad;border:1px solid #81b68b;padding:9px 11px;border-radius:8px;font-size:11px;min-height:38px}.approval-buttons button:last-child{background:#f7e8df;border-color:#e2c9bd}
.person-state{font-size:10px;color:#7b8d6f}.waiting-wave{text-align:center;padding:20px 12px}.waiting-wave p{font-size:12px;line-height:1.7;color:var(--muted);margin-top:15px}
.online-settings{padding:15px;border:1px solid #e4d29e;background:#fff6dc;border-radius:14px;margin:18px 0}
.online-settings h3{font-size:19px;margin-bottom:8px}.online-settings>p{font-size:12px;line-height:1.7;color:#83734d}.online-settings h4{font-size:13px;margin-top:20px}
.online-code-line{display:flex;gap:10px;align-items:center;margin:14px 0;font-size:12px}.online-code-line strong{font-family:Outfit;font-size:23px;letter-spacing:3px}.online-code-line button{margin-left:auto}
.online-settings>small{display:block;font-size:9px;color:#8f805a;margin-top:14px}.rebuy-counter{font-size:11px;margin-top:16px;color:#80734d}
.rebuy-request{display:flex;flex-wrap:wrap;gap:7px;align-items:center;margin:12px 0;font-size:11px}.rebuy-request span{width:100%}.rebuy-request button{background:#e4edce;border:1px solid #c8d5ad;border-radius:7px;padding:8px;min-height:36px;font-size:10px}
.gold-settlement{font-weight:700;color:#917017!important;margin-top:13px}
.online-between{display:flex;align-items:center;justify-content:space-between;gap:10px}.online-between>.button{font-size:13px;margin:0;min-height:44px}.online-between>span{font-size:10px;color:var(--muted)}
html[data-layout=phone] .friend-actions{margin-top:12px;gap:8px}
html[data-layout=phone] .friend-actions .entry-button{padding:12px 10px;min-height:62px;gap:3px}
html[data-layout=phone] .friend-actions .entry-button strong{font-size:17px}
html[data-layout=phone] .friend-actions .entry-button small{font-size:8px}
html[data-layout=phone] .friend-actions .entry-button .arrow{font-size:17px}
html[data-layout=phone] .online-resume{font-size:10px;min-height:33px;margin-top:9px}
html[data-layout=phone] .online-shell>.room-page{overflow-y:auto;overscroll-behavior:contain;padding:20px 1px 26px;flex:1;min-height:0;scrollbar-width:thin}
html[data-layout=phone] .room-heading{margin-bottom:18px}.room-heading .back-link{min-height:30px}
html[data-layout=phone] .room-heading h1{font-size:29px;letter-spacing:-.9px}
html[data-layout=phone] .room-heading p{font-size:12px}
html[data-layout=phone] .host-form{display:flex;flex-direction:column;gap:15px}
html[data-layout=phone] .room-card{padding:19px;border-radius:17px;width:100%}
html[data-layout=phone] .room-card h2{font-size:21px}
html[data-layout=phone] .room-field{font-size:11px;margin:12px 0}
html[data-layout=phone] .room-field input,html[data-layout=phone] .room-field select{min-height:44px;padding:10px}
html[data-layout=phone] .room-two{gap:10px}
html[data-layout=phone] .seat-allocation{gap:8px}
html[data-layout=phone] .seat-allocation .room-field>span{font-size:10px}
html[data-layout=phone] .seat-allocation .room-field small{font-size:8px}
html[data-layout=phone] .room-submit{width:100%;padding:10px 0}
html[data-layout=phone] .room-submit>.button{min-width:0;width:100%}
html[data-layout=phone] .lobby-columns{grid-template-columns:1fr;gap:15px;margin:15px 0}
html[data-layout=phone] .join-code-display{font-size:42px;letter-spacing:8px}
html[data-layout=phone] .lobby-person strong{font-size:12px}
html[data-layout=phone] .online-between{flex-direction:row;gap:7px}
html[data-layout=phone] .online-between>.button{font-size:12px;padding:10px 8px;min-height:44px}
html[data-layout=phone] body[data-players="8"] .seat:not(.hero-seat) .seat-avatar svg,
html[data-layout=phone] body[data-players="9"] .seat:not(.hero-seat) .seat-avatar svg{width:31px;height:31px}
html[data-layout=phone] body[data-players="8"] .seat:not(.hero-seat),
html[data-layout=phone] body[data-players="9"] .seat:not(.hero-seat){width:65px}
html[data-layout=phone] body[data-players="8"] .seat-name,
html[data-layout=phone] body[data-players="9"] .seat-name{font-size:8px}
html[data-layout=phone] body[data-players="8"] .seat-action,
html[data-layout=phone] body[data-players="9"] .seat-action{font-size:7px}
.podium-gold{display:block;margin-top:8px;font-family:Outfit;font-size:22px;color:#94711d}.gold-results{margin:24px 0;text-align:left;gap:14px}.gold-results strong{color:#94711d;font-size:16px}
body[data-online=true] .speed-control,body[data-online=true] .sheet-pace{display:none}.turn-countdown{margin-left:auto;font-size:11px;font-weight:700;background:#d9eacb;padding:3px 7px;border-radius:6px;flex-shrink:0}

.simple-host{max-width:620px}.simple-host .host-form{display:block}.simple-host .room-card h2{margin-top:22px;font-size:19px}.host-choices{display:flex;gap:8px}.host-choices button{flex:1;min-height:50px;border:1px solid #ccd9c4;border-radius:12px;background:#faf9ef;color:#234c39;font:600 14px Outfit;padding:10px 6px;touch-action:manipulation}.host-choices button[aria-pressed=true]{background:#b4dfb5;border:2px solid #6f9d76}.host-extra,.host-custom{margin-top:18px;border-top:1px solid #dee4d5;padding-top:14px}.host-extra summary,.host-custom summary{cursor:pointer;min-height:44px;display:list-item;padding:10px 0;font-weight:600;font-size:13px}.host-extra p,.host-extra small{font-size:12px;color:var(--muted)}.host-gold-toggle{display:flex;align-items:center;gap:12px;padding:16px 0;font-weight:600;font-size:14px}.host-gold-toggle input{width:22px;height:22px;flex-shrink:0}.host-gold-toggle small{display:block;font-size:11px;font-weight:400;margin-top:5px;color:var(--muted)}.host-seat-summary{margin-top:12px!important}#nickname-dice{background:#eef2df;border:0;border-radius:10px;font-size:29px;min-width:44px;min-height:44px;color:#244d39;flex-shrink:0;cursor:pointer}.input-wrap input{min-width:0}.simple-host .room-submit .button{width:100%;min-width:0}.simple-host .room-submit{margin-top:16px}html[data-layout=phone] .simple-host .host-form{display:block}html[data-layout=phone] .simple-host{padding-top:12px}html[data-layout=phone] .simple-host .room-heading{margin-bottom:15px}html[data-layout=phone] .host-choices button{font-size:13px}

/* Hosting is a document form, not a fixed game board. Keep scrolling and hit
   testing in the browser's main scrollport, including while the keyboard is up. */
html[data-layout=phone]:has(.online-shell) body{overflow-y:auto;overscroll-behavior-y:auto}
html[data-layout=phone] #app:has(>.online-shell){height:auto;min-height:var(--app-height,100svh)}
html[data-layout=phone] .online-shell{height:auto;min-height:var(--app-height,100svh);overflow:visible}
html[data-layout=phone] .online-shell>.room-page{overflow:visible;flex:none;min-height:auto;margin:0 auto;touch-action:pan-y}
.host-extra summary,.host-custom summary,.simple-host button{touch-action:manipulation}
