.forest-lobby-flow [hidden]{display:none!important}
.forest-lobby-flow .masthead{display:grid;grid-template-columns:1fr auto 1fr;gap:16px}
.forest-lobby-flow .home-link{justify-self:start;text-decoration:none;border:1px solid var(--line,#cfbc94);border-radius:10px;padding:10px 16px;color:var(--green,#285b46);min-height:44px;display:flex;align-items:center}
.forest-lobby-flow .brand{justify-self:center}.forest-lobby-flow .header-actions{justify-self:end;min-width:0}
#header-student{max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#save-status{display:none}
#player-name{display:inline-block;max-width:150px;overflow:hidden;text-overflow:ellipsis;vertical-align:bottom;white-space:nowrap}
.challenge-level{margin-left:auto;color:var(--green,#285b46);font-size:14px}
#lobby-dialog{width:min(760px,calc(100vw - 28px));max-height:90dvh;padding:28px;overflow:auto}
.lobby-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.lobby-heading h2{margin:0;font-size:30px}
#lobby-greeting{font-size:18px;margin:20px 0 16px}.mode-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.mode-cards button{display:flex;flex-direction:column;align-items:center;gap:8px;padding:18px 10px;background:#fffbf0;border:1px solid #cfbc94;min-width:0}
.mode-cards img{height:100px;width:100px;object-fit:contain}.mode-cards strong{font-size:20px;color:#285b46}.mode-cards span{font-size:14px;line-height:1.5}
#resume-challenge{margin-top:20px;width:100%}
#challenge-choices fieldset{border:0;padding:0;display:grid;gap:12px;margin:20px 0}#challenge-choices legend{margin-bottom:12px}
#challenge-choices label{display:flex;gap:14px;align-items:center;padding:16px;border:1px solid #cfbc94;border-radius:12px;cursor:pointer}#challenge-choices label:has(:checked){background:#e5ecd9;border-color:#285b46}#challenge-choices input{accent-color:#285b46;width:20px;height:20px}#challenge-choices label span{margin-left:auto;color:#285b46}
#daily-star-note{font-size:14px;color:#6d5b43;line-height:1.7;margin-top:20px}
#lobby-dialog .chess-account{display:flex;border:0;border-radius:0;background:transparent;padding:0;margin:18px 0 0;font:inherit}
#lobby-dialog .chess-account>a,#lobby-dialog [data-student],#lobby-dialog [data-star],#lobby-dialog [data-switch]{display:none!important}
#lobby-dialog .chess-account form{width:100%;align-items:end}#lobby-dialog .chess-account input{width:200px}#lobby-dialog .chess-account details{order:3;border-top:1px solid #cfbc94;padding-top:14px;margin-top:8px}#lobby-dialog .chess-account p{line-height:1.7}
#lobby-account{display:contents}#lobby-dialog{display:none}#lobby-dialog[open]{display:flex;flex-direction:column}.lobby-heading{order:0}#mode-choices,#challenge-choices{order:1}#daily-star-note{order:2}#lobby-dialog .chess-account{order:3}.lobby-home{order:4;align-self:flex-start;margin-top:16px;padding:10px 0;min-height:44px;color:var(--green,#285b46);text-decoration:underline;text-underline-offset:4px}
#account-notice{font-size:14px;color:#285b46}
@media(max-width:680px){.forest-lobby-flow .masthead{gap:8px;padding:12px;height:auto;min-height:72px;grid-template-columns:1fr auto 1fr}.forest-lobby-flow .home-link{font-size:13px;padding:8px}.forest-lobby-flow .brand{font-size:18px;gap:5px}.forest-lobby-flow .brand svg{width:24px}.forest-lobby-flow .brand-sub{display:none}.forest-lobby-flow .header-actions{gap:5px}#header-student{max-width:65px;font-size:12px}#lobby-dialog{padding:20px}.lobby-heading h2{font-size:24px}.mode-cards{grid-template-columns:1fr}.mode-cards button{display:grid;grid-template-columns:64px 1fr;text-align:left;gap:4px 12px;padding:12px}.mode-cards img{width:64px;height:64px;grid-row:span 2}.mode-cards strong{font-size:19px}.mode-cards span{font-size:14px}.challenge-level{font-size:12px;max-width:110px;text-align:right}#player-name{max-width:95px}}
@media(max-width:360px){#header-student{display:none}.forest-lobby-flow .brand{font-size:16px}.forest-lobby-flow .brand svg{display:none}}

/* A prominent invitation area ahead of the existing computer/learning modes. */
.peer-invite{padding:20px;margin-bottom:20px;background:#e5ecd9;border:1px solid #94a780;border-radius:12px;color:#234d3f}
.peer-invite-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.peer-invite-heading h3{font-family:Story,serif;font-size:28px;font-weight:400}.peer-invite-heading p{font-size:14px;margin:4px 0 0!important}.peer-invite-art{display:flex;flex-shrink:0}.peer-invite-art img{width:54px;height:70px;object-fit:contain}
.peer-invite-options{display:grid;grid-template-columns:1fr 1fr;gap:16px}.peer-invite-options a{display:flex;align-items:center;justify-content:center;min-height:48px;padding:12px 8px;border:1px solid #234d3f;border-radius:10px;background:#234d3f;color:#fff9e9;font-size:16px;font-weight:600;text-align:center}.peer-invite-options>div+div a{background:#fffbf0;color:#234d3f}.peer-invite-options a:hover{background:#1b4433;color:#fff9e9}.peer-invite-options p{font-size:13px;line-height:1.6;margin:8px 0 0!important}.peer-invite-note{font-size:12px;line-height:1.7;margin:16px 0 0!important;color:#3d5438}.peer-invite-note strong{display:block;margin-top:4px;font-weight:600}
@media(max-width:680px){.peer-invite{padding:16px;margin-bottom:16px}.peer-invite-heading{margin-bottom:12px}.peer-invite-heading h3{font-size:25px}.peer-invite-art img{width:36px;height:52px}.peer-invite-options{gap:10px}.peer-invite-options a{font-size:14px;padding:10px 6px}.peer-invite-heading p{font-size:13px}}
