/* Online start page: cards on top of the LAN join card, over the 3D
   flight. Only active with the class `rtr-online` (set by portal.js), so the
   LAN page is unchanged. */
.rtr-online #join-form,
.rtr-online #join-msg,
.rtr-online #sandbox-btn,
.rtr-online #saved-card { display: none !important; }
#portal { margin-top: 4px; }
#portal-body { display: flex; flex-direction: column; gap: 10px; }
.portal-row { display: flex; gap: 10px; justify-content: center; }
.portal-row input { flex: 1; min-width: 0; }
.portal-row .ghost { flex: 0 0 auto; }
.portal-note { font-size: 12.5px; }
.portal-hello { color: var(--muted); margin-bottom: 4px; }
.portal-title { font-family: var(--serif); font-size: 22px; margin-bottom: 2px; }
.portal-trap { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
#portal-msg.ok { color: var(--gold2); }
.portal-progress { height: 4px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; }
.portal-progress > div { height: 100%; width: 0; background: var(--gold); transition: width .3s; }
.portal-mode { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 16px; text-align: left; }
.portal-mode b { font-size: 15px; }
.portal-mode span { color: var(--muted); font-size: 12.5px; }
.portal-mode:not(:disabled):hover b { color: var(--gold2); }
.portal-mode .pm-free { font-size: 11.5px; color: var(--green); }
.portal-mode .pm-free:empty { display: none; }
.portal-mode .pm-free.full { color: #ffb4b6; }
.portal-link { align-self: center; font-size: 12.5px; padding: 4px 10px; color: var(--muted); }
.portal-list { display: flex; flex-direction: column; gap: 6px; max-height: 38vh; overflow-y: auto; text-align: left; }
.portal-game { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "t s" "w s"; gap: 0 12px; padding: 9px 12px; text-align: left; }
.portal-game .pg-title { grid-area: t; font-weight: 600; }
.portal-game .pg-who { grid-area: w; font-size: 12.5px; }
.portal-game .pg-state { grid-area: s; align-self: center; font-size: 12px; color: var(--green); }
.portal-game.playing .pg-state { color: var(--gold2); }
.portal-empty { padding: 14px 0; text-align: center; }
.portal-pin { text-align: center; letter-spacing: 10px; font-size: 20px; max-width: 150px; }
.portal-loader { margin: 8px auto; }
#portal-leave { white-space: nowrap; }
/* report flags next to other players' names (lobby, in-game player list) */
.rtr-online .report-btn { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; padding: 0; border: none; border-radius: 5px; background: transparent; color: var(--muted); font-size: 12px; line-height: 1; cursor: pointer; opacity: .55; flex: 0 0 auto; }
.rtr-online .report-btn:hover, .rtr-online .report-btn:focus-visible { opacity: 1; color: #ffb4b6; background: rgba(255,255,255,.06); }
.rtr-online .slot-name .report-btn { opacity: .7; }
.rtr-online .pl .nm .report-btn { float: right; width: 16px; height: 16px; font-size: 11px; margin-left: 4px; }
/* the contact / report form */
#modal-contact .contact-card { width: min(560px, 94vw); }
#modal-contact .modal-body { display: flex; flex-direction: column; gap: 10px; text-align: left; }
#modal-contact label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); }
#modal-contact textarea { min-height: 140px; resize: vertical; font: inherit; color: var(--text); background: rgba(0,0,0,.25); border: 1px solid var(--line2); border-radius: 10px; padding: 9px 11px; }
#modal-contact select, #modal-contact input { color: var(--text); }
#modal-contact .contact-about { font-size: 12.5px; color: var(--gold2); }
#modal-contact .contact-count { align-self: flex-end; font-size: 11.5px; color: var(--muted); margin-top: -6px; }
#modal-contact .contact-msg { min-height: 18px; font-size: 13px; color: #ffb4b6; }
#modal-contact .contact-msg.ok { color: var(--green); }
#modal-contact .contact-note { font-size: 11.5px; color: var(--muted); }
/* the privacy policy opened from the form shows above it */
.rtr-online #modal-privacy { z-index: 60; }
/* the admin's announcement above the cards */
#portal-news { margin: 0 0 12px; padding: 10px 14px; border: 1px solid rgba(232,176,75,.55); border-radius: 10px; background: rgba(232,176,75,.10); text-align: left; }
#portal-news .news-title { font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; font-weight: 650; color: var(--gold2); margin-bottom: 3px; }
#portal-news .news-text { font-size: 13.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
