#online-screen[hidden]{display:none!important}
#online-screen{position:fixed;inset:0;z-index:200;overflow:auto;background:#071521f5;padding:24px;display:grid;align-items:start;justify-items:center}
.online-card{width:min(860px,100%);background:#0c2232;border:1px solid #39596b;border-radius:16px;padding:24px;box-sizing:border-box;color:#eaf3f7}
.online-card h1{margin:0;font-size:28px}.online-card h2{font-size:20px;margin:14px 0}.online-card p{font-size:16px;line-height:1.5}
.online-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.online-card label{display:flex;flex-direction:column;gap:6px;font-size:16px;margin:12px 0}.online-card input,.online-card select{min-height:44px;max-width:100%;box-sizing:border-box;font-size:16px}.online-card button{min-height:44px;font-size:16px}.online-card .online-check{flex-direction:row;align-items:center}.online-check input{min-height:22px;width:22px;flex:none}.online-entry-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.online-seats{display:grid;gap:10px;margin:18px 0}.online-seat{border:1px solid #39596b;border-radius:10px;padding:12px;display:flex;flex-wrap:wrap;gap:8px;align-items:center}.online-seat>strong{flex:1;min-width:150px}.online-seat>span{font-size:14px}.online-seat-controls{display:flex;flex-wrap:wrap;align-items:end;gap:8px;width:100%}.online-seat-controls label{margin:0}.online-connection{color:#61d9d4}#online-error{color:#ffc39d;min-height:24px}.online-player-name{font-size:13px;overflow-wrap:anywhere}
.online-active #botstatus small{display:block;font-size:14px}.online-active #botstatus{border-color:#45878f}.online-active .save-controls{display:none!important}#online-phone-open{font-size:14px;padding:6px;min-height:44px}
@media(max-width:600px){#online-screen{padding:10px}.online-card{padding:16px}.online-entry-grid{grid-template-columns:1fr;gap:10px}.online-heading h1{font-size:22px}.online-heading{flex-wrap:wrap}.online-active #phone-status #botstatus{display:flex}}

.online-active #botstatus>div{display:flex;flex-wrap:wrap;align-items:center;gap:4px 16px}.online-active #botstatus .company-name{display:inline-flex;align-items:center;gap:4px}.online-active #botstatus .company-symbol{width:22px;height:22px}.online-active #botstatus strong,.online-active #botstatus span,.online-active #botstatus small{font-size:14px}.online-active #botstatus button{min-height:44px}
.desktop-play.online-active #players .player{padding:2px 9px;display:grid;grid-template-columns:1fr;line-height:1.1}.desktop-play.online-active #players .company-symbol{width:18px;height:18px}.desktop-play.online-active #players .online-player-name{display:block;font-size:11px;line-height:1.2}
.phone-play #phone-shell{min-width:0;max-width:100%}
#phone-top>img{width:clamp(90px,30vw,155px);min-width:0;flex-shrink:1}
#phone-top>label{min-width:0;flex:1;max-width:160px}
#phone-top #phone-view{width:100%;min-width:0}
#online-phone-open{flex:none}
.phone-play #phone-hud,.phone-play #phone-scroll{min-width:0}

.online-card [hidden]{display:none!important}.home-actions,.hub-tabs{display:flex;flex-wrap:wrap;gap:12px;margin:24px 0}.home-actions button{flex:1;min-width:170px;min-height:80px}.hub-tabs [aria-pressed="true"]{background:#286477;color:white}.my-games{display:grid;gap:12px;margin-top:16px}.my-games article{border:1px solid #39596b;border-radius:12px;padding:12px}.game-continue{display:grid;gap:8px;width:100%;text-align:left;padding:16px;white-space:normal;overflow-wrap:anywhere}.game-continue strong{font-size:20px}.async-deadline{color:#ffda91;font-variant-numeric:tabular-nums}.online-card input{width:100%}.online-check input{width:22px}.online-heading h1{overflow-wrap:anywhere;min-width:0}.online-heading{flex-wrap:wrap}

.home-intro{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:30px;align-items:center}.home-art{width:100%;height:auto;display:block;border:1px solid #bb945a;border-radius:16px;box-shadow:0 12px 28px #0005}.home-intro-copy{min-width:0}.home-intro-copy h1{margin-top:0}.home-learning{display:flex;align-items:center;flex-wrap:wrap;gap:14px;margin-top:24px}.home-learning #home-rulebook{min-height:44px;padding:10px 16px;border-color:#bd965f;background:#ffffff08;color:inherit;font-size:16px}.home-tutorial{font-size:14px;line-height:1.5;color:var(--soft-ink,#c7b9a4)}.home-actions{margin-bottom:0}.home-actions button{min-height:64px}
@media(max-width:700px){.home-intro{grid-template-columns:1fr;gap:20px}.home-art{max-height:230px;object-fit:cover}.home-learning{margin-top:16px}.home-actions{gap:10px}.home-actions button{min-width:140px;min-height:52px}}
#online-screen.welcome-screen{display:block;overflow:auto;padding:0;background:#f7e9d1 url(visuals/welcome/warm.webp) center top/cover fixed;color:#2d1728}
#online-screen.welcome-screen[hidden]{display:none}
.welcome-screen .online-card{width:100%;max-width:1586px;margin:auto;padding:32px clamp(26px,7vw,110px) 36px;background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;min-height:100dvh;box-sizing:border-box}
.welcome-screen .welcome-header{display:flex;justify-content:space-between;align-items:center;gap:20px;background:none;padding:0;border:0}.welcome-logo{width:320px;max-width:42%;height:auto;filter:drop-shadow(0 2px 3px #3c1c3233)}
.welcome-controls{display:flex;gap:16px;flex-wrap:wrap}.welcome-controls label{display:flex;gap:6px;align-items:center;font-size:13px;margin:0}.welcome-controls select{width:auto;background:#f9ecd9;color:#382330;border:1px solid #a87d40;border-radius:6px;min-height:36px;font-size:13px;padding:5px}
.welcome-copy{width:52%;max-width:690px;margin-top:48px}.welcome-copy h1{font-size:clamp(48px,6.4vw,96px);line-height:1.02;letter-spacing:-.035em;font-weight:500;margin:0 0 16px}.welcome-tagline{font-size:clamp(20px,2.2vw,32px);line-height:1.3;margin:0 0 26px}.welcome-status{background:#ecd2adbd;border:1px solid #d4b583;border-radius:12px;padding:20px 24px;color:inherit}.welcome-badge{display:inline-block;background:#d6aa61;color:#3c2918;padding:5px 12px;border-radius:5px;font:600 12px/1.4 system-ui;letter-spacing:.12em}.welcome-status p{font-size:17px;line-height:1.5;margin:12px 0 0}
.welcome-screen .home-actions{display:flex;gap:22px;margin:30px 0 20px}.welcome-screen .home-actions button{flex:1;min-width:0;min-height:146px;border:2px solid #b88a45;border-radius:18px;background:linear-gradient(145deg,#fff8e9f5,#e8cf9fe8);color:#301b29;box-shadow:inset 0 0 0 4px #f5dfb1,0 5px 0 #a17743,0 10px 15px #42281340;padding:14px 20px;display:flex;flex-direction:column;align-items:center;gap:8px;white-space:normal}.welcome-icon{font-size:32px;line-height:1;color:#a77733}.welcome-screen .home-actions strong{font-size:28px;line-height:1.2}.welcome-screen .home-actions small{font-size:15px;line-height:1.4;font-weight:400}.welcome-screen .home-actions button:hover{transform:translateY(-2px)}.welcome-screen .home-actions button:focus-visible,.welcome-screen button:focus-visible{outline:3px solid #986532;outline-offset:4px}.welcome-screen .home-learning{justify-content:center;margin:20px 0 0;gap:24px}.welcome-screen #home-rulebook{background:#fff5dfdf;color:inherit;border-color:#a87c3b;min-height:48px;padding:12px 28px}.welcome-screen .home-tutorial{color:inherit;background:#f5e6cecc;padding:12px 24px;border:1px solid #b8a189;border-radius:8px;opacity:.8}.welcome-screen #online-error:empty{display:none}
#online-screen.welcome-screen[data-welcome-theme=cosmos]{background-color:#1a1223;background-image:url(visuals/welcome/cosmos.webp);color:#fff1d8}.welcome-screen[data-welcome-theme=cosmos] .welcome-status{background:#211a2bd9;border-color:#8d7550}.welcome-screen[data-welcome-theme=cosmos] .home-actions button{background:linear-gradient(140deg,#302534ec,#181421ec);color:#fff1d8;box-shadow:inset 0 0 0 3px #9a784028,0 5px 0 #151019,0 10px 16px #0007}.welcome-screen[data-welcome-theme=cosmos] #home-local{background:linear-gradient(#f5d679,#c49a47);color:#251923}.welcome-screen[data-welcome-theme=cosmos] #home-rulebook,.welcome-screen[data-welcome-theme=cosmos] .home-tutorial{background:#211a2bdd;color:#fff1d8}.welcome-screen[data-welcome-theme=cosmos] .welcome-controls select{background:#241c30;color:#fff1d8}
@media(max-width:700px){#online-screen.welcome-screen{background-size:auto 100dvh;background-position:65% top;background-attachment:scroll}.welcome-screen .online-card{padding:22px 22px 30px;background:linear-gradient(#fff2d3d9,#fff2d3ed)!important}.welcome-screen[data-welcome-theme=cosmos] .online-card{background:linear-gradient(#15101eb8,#15101ef2)!important}.welcome-screen .welcome-header{align-items:start;flex-direction:column;gap:12px}.welcome-logo{width:260px;max-width:80%}.welcome-controls{gap:10px}.welcome-copy{width:100%;margin-top:34px}.welcome-copy h1{font-size:48px}.welcome-status{padding:16px}.welcome-status p{font-size:16px}.welcome-screen .home-actions{flex-direction:column;gap:14px;margin-top:22px}.welcome-screen .home-actions button{min-height:104px;padding:15px;display:grid;grid-template-columns:40px 1fr;gap:5px 12px;text-align:left}.welcome-icon{grid-row:1/3}.welcome-screen .home-actions strong{font-size:23px}.welcome-screen .home-actions small{grid-column:2}.welcome-screen .home-learning{align-items:stretch;flex-direction:column;gap:12px}.welcome-screen .home-tutorial{text-align:center}}
@media(prefers-reduced-motion:reduce){.welcome-screen .home-actions button:hover{transform:none}}
#online-screen.welcome-screen .welcome-header{height:auto!important;min-height:80px;position:relative;padding:0!important;align-items:center!important;z-index:auto}
#online-screen.welcome-screen .welcome-header::before,#online-screen.welcome-screen .welcome-header::after{content:none!important}
#online-screen.welcome-screen .home-actions{background:none!important;border:0;box-shadow:none;padding:0}
#online-screen.welcome-screen .welcome-tagline{font-size:clamp(20px,2.2vw,32px);line-height:1.3}
#online-screen.welcome-screen .welcome-status p{font-size:17px;line-height:1.5}
#online-screen.welcome-screen .welcome-controls{background:#fff4dcde;border:1px solid #b08a50;border-radius:9px;padding:8px 12px}
#online-screen.welcome-screen[data-welcome-theme=cosmos] .welcome-controls{background:#21172dd9;color:#fff1d8}
@media(max-width:700px){#online-screen.welcome-screen .welcome-header{align-items:start!important}#online-screen.welcome-screen .welcome-controls{max-width:100%}}
#online-screen.welcome-screen .welcome-tagline,#online-screen.welcome-screen .welcome-status p{color:inherit;font-weight:400}

/* Welcome controls keep a stable silhouette in every interaction state. */
#online-screen.welcome-screen .home-actions{overflow:visible!important}
#online-screen.welcome-screen .home-actions button,#online-screen.welcome-screen .home-actions button:hover:not(:disabled),#online-screen.welcome-screen .home-actions button:active:not(:disabled){transform:none!important;box-shadow:inset 0 0 0 4px #f5dfb1,0 5px 0 #a17743,0 10px 15px #42281340}
#online-screen.welcome-screen[data-welcome-theme=cosmos] .home-actions button,#online-screen.welcome-screen[data-welcome-theme=cosmos] .home-actions button:hover:not(:disabled),#online-screen.welcome-screen[data-welcome-theme=cosmos] .home-actions button:active:not(:disabled){box-shadow:inset 0 0 0 3px #9a784028,0 5px 0 #151019,0 10px 16px #0007}
#online-screen.welcome-screen .home-actions button:focus-visible{outline:2px solid #986532;outline-offset:-8px}
#online-screen.welcome-screen[data-welcome-theme=cosmos] .home-actions button:focus-visible{outline-color:#f2cf77}
/* Readable copy over detailed artwork; the original background remains intact. */
#online-screen.welcome-screen .welcome-copy{position:relative;isolation:isolate}
#online-screen.welcome-screen .welcome-copy::before{content:'';position:absolute;z-index:-1;inset:-24px -38px -24px -26px;background:#fff0d8;opacity:.93;border-radius:36px;filter:blur(22px);pointer-events:none}
#online-screen.welcome-screen .welcome-copy h1{overflow-wrap:anywhere;text-wrap:balance;color:#321b24}
#online-screen.welcome-screen[data-welcome-theme=cosmos] .welcome-copy::before{background:#17101f;opacity:.88}
#online-screen.welcome-screen[data-welcome-theme=cosmos] .welcome-copy h1{color:#fff1d8}
@media(max-width:700px){#online-screen.welcome-screen .welcome-copy::before{inset:-14px -10px;background:#fff0d8;filter:blur(14px)}}

#account-stats{min-width:0}#account-stats h3{font-size:16px;margin:0;overflow-wrap:anywhere}.stats-heading,.stats-game-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.stats-player{overflow-wrap:anywhere}.stats-totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.stats-totals>div,.stats-badge,.stats-recent>li{border:1px solid #ac8958;border-radius:10px;padding:12px;background:#ead7b31a}.stats-totals span,.stats-totals strong{display:block}.stats-totals strong{font-size:30px;line-height:1.4}.stats-streak{display:flex;gap:24px;flex-wrap:wrap}.stats-badges{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px}.stats-badge{display:flex;gap:12px;align-items:center}.stats-badge>.sw-symbol{width:38px;height:38px;flex:none}.stats-badge>div{min-width:0;flex:1}.stats-badge p{margin:4px 0;font-size:14px}.stats-badge progress{display:block;width:100%;height:14px;accent-color:#b78d44}.stats-recent{list-style:none;margin:0;padding:0;display:grid;gap:10px}.stats-recent p{margin:5px 0;font-size:14px}.stats-game-heading>strong{min-width:0;overflow-wrap:anywhere}.stats-outcome{flex:none;font-weight:bold}.stats-note{font-size:14px!important}#account-stats button{min-height:44px}#account-stats time{font-size:13px}
@media(max-width:600px){.stats-totals{grid-template-columns:repeat(2,minmax(0,1fr))}.stats-badges{grid-template-columns:1fr}.stats-streak{gap:0 18px}.stats-heading{flex-wrap:wrap}}

.stats-info{margin:14px 0;padding:12px 16px;border:1px solid #c8b9a6;border-radius:10px;background:#fffaf0}.stats-info h2{font-size:1.05em;margin:0 0 6px}.stats-info ul{margin:0;padding-left:20px}.stats-info li{margin:4px 0;font-size:.95em;line-height:1.4}
.notify-panel{margin:18px 0;padding:12px 16px;border:1px solid #c8b9a6;border-radius:10px;background:#fffaf0}
.notify-panel h2{font-size:1.05em;margin:0 0 6px}.notify-panel p{margin:6px 0}.notify-panel button{margin:4px 6px 4px 0}
.invite-setup fieldset,.invite-item,.invite-settings{border:1px solid #b08a58;border-radius:10px;padding:14px;margin:12px 0;min-width:0}.invite-seat{width:100%}.invite-seat input,.invite-setup input{width:100%}[data-results]{display:flex;flex-wrap:wrap;gap:6px}.invite-item button,.invite-settings button,.invite-setup button{min-height:44px}.invite-settings input[type=checkbox]{width:22px;height:22px;min-height:22px}.invite-item strong{overflow-wrap:anywhere}

/* Equal, immediately visible sign-in choices. */
.online-card .signin-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.online-card .signin-option{min-width:0;padding:16px;border:1px solid currentColor;border-radius:12px}
.online-card .signin-option h2{font-size:20px;margin:0 0 12px;overflow-wrap:anywhere}
.online-card .signin-option p{font-size:16px;line-height:1.45;overflow-wrap:anywhere}
.online-card .signin-option button{width:100%;white-space:normal}
.online-card .guest-signin{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:16px 0}
.online-card .guest-signin p{flex:1 1 240px;margin:0;line-height:1.45}
@media(max-width:600px){.online-card .signin-options{grid-template-columns:minmax(0,1fr);gap:12px}.online-card .signin-option{padding:12px}}
