/* v3.3.2 — schedule editing, crew corner, arcade picker, Saucer Siege. Poster look: outlined dark cards. */
.card-dark,.crew-tile,.arcade-card,.quote-card,.crew-card,.orbit-card,.mp-plan,.crew-update,.crew-empty,.fg-board,.fg-new,.arcade-section{border:2px solid #c4b5fd55;border-radius:24px;background:linear-gradient(135deg,#1a2444,#121a30);color:#fff}
/* Calendar tools + plan dialogs */
.plan-tools{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0 4px}
.plan-tools .primary,.plan-tools .secondary{flex:1 1 140px;min-height:48px;border-radius:16px}
.plan-dialog form,#schedule-dialog form{display:grid;gap:12px}
.plan-format,.plan-dates{border:0;padding:0;margin:0;display:flex;gap:8px;flex-wrap:wrap}
.plan-format legend,.plan-dates legend{font-size:12px;color:#c9c4e2;margin-bottom:6px;width:100%}
.plan-format label{flex:1}
.plan-format input{position:absolute;opacity:0}
.plan-format span{display:grid;place-items:center;min-height:44px;border-radius:14px;border:1.5px solid #c4b5fd66;color:#d6d1ee}
.plan-format input:checked+span{background:#2b2350;border-color:#a7f3d0;color:#a7f3d0}
.plan-dates label{flex:1 1 100%}
.sr-label{font-size:0}
.form-error{color:#F7AAC8;font-size:12px;min-height:1em;margin:0}
.dialog-close{position:absolute;top:10px;right:10px;width:44px;height:44px;border-radius:50%;border:1.5px solid #ffffff2e;background:#141c33;color:#fff;font-size:20px}
#schedule-dialog,#modal{position:fixed;max-height:88vh;overflow:auto}
.mp-list{display:grid;gap:12px;margin-top:10px}
.mp-plan{padding:14px;display:grid;gap:8px}
.mp-plan.confirmed{border-color:#a7f3d066}.mp-plan.maybe{border-color:#e7bb8066}
.mp-plan h3{margin:0;font-size:15px}
.mp-dates{display:flex;gap:8px;flex-wrap:wrap}
.mp-dates .plan-date-choice{min-height:44px;padding:6px 12px;font-size:12px}
.mp-plan .actions{display:flex;gap:10px}
.danger{color:#F7AAC8!important;border-color:#F7AAC866!important}
.owner-key{margin-top:14px;padding:14px;border-radius:18px;border:1.5px dashed #c4b5fd66}
.owner-key h3{margin:0 0 4px;font-size:14px}
.owner-key form{display:flex!important;gap:8px;align-items:end}
.owner-key label{flex:1}
/* Update notice */
.crew-update{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;width:100%;text-align:left;padding:14px 16px;margin:6px 0 16px;border-color:#a7f3d088}
.crew-update small{display:block;font-size:11px;color:#a7f3d0;letter-spacing:.6px}
.crew-update b{display:block;font-size:15px;font-weight:400;margin:2px 0}
.crew-update span span{font-size:12px;color:#c9c4e2}
.crew-update svg{width:20px;height:20px;color:#a7f3d0}
.crew-update-dot{width:12px;height:12px;border-radius:50%;background:#a7f3d0;box-shadow:0 0 0 6px #a7f3d022}
/* Home crew tiles */
.crew-tiles{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.crew-tile{position:relative;overflow:hidden;min-height:112px;padding:14px;text-align:left;display:flex;flex-direction:column;justify-content:flex-end}
.crew-tile img{position:absolute;right:-8px;top:-6px;width:70px;height:70px;object-fit:contain;opacity:.95}
.crew-tile small{font-size:11px;color:#9fb3c8;letter-spacing:.6px}
.crew-tile b{font-size:17px;font-weight:400}
.crew-quote-teaser{display:block;width:100%;text-align:left;margin-top:12px;padding:14px 16px;border-radius:20px;border:1.5px dashed #c4b5fd66;background:transparent;color:#fff;font-size:14px;line-height:1.5}
.crew-quote-teaser small{display:block;margin-top:6px;color:#a7f3d0;font-size:12px}
/* Crew corner screen */
.crew-intro{position:relative;padding-top:8px}
.crew-intro img{position:absolute;right:0;top:0;width:76px}
.crew-tabs{margin:16px 0 8px}
.crew-sync{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#c9c4e2;margin-bottom:8px}
.crew-sync .text svg{width:14px;height:14px;vertical-align:-2px}
.crew-actions{display:flex;gap:10px;margin:6px 0 14px}
.crew-actions .primary{min-height:48px;border-radius:16px;display:inline-flex;align-items:center;gap:8px;padding:0 18px}
.crew-actions svg{width:18px;height:18px}
.crew-empty{padding:22px;text-align:center;display:grid;gap:8px;justify-items:center}
.crew-empty img{width:84px}
.crew-empty.small-empty{border-style:dashed}
.photo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.photo-cell{aspect-ratio:1;border-radius:14px;overflow:hidden;border:1.5px solid #ffffff22;padding:0;background:#141c33}
.photo-cell img{width:100%;height:100%;object-fit:cover;display:block}
.photo-cell.broken{background:#141c33 url('identity/sticker-8.webp') center/50% no-repeat}
.photo-cell.broken img{opacity:0}
.photo-view img{width:100%;max-height:62vh;object-fit:contain;border-radius:16px;background:#000}
.photo-meta{display:grid;gap:4px;margin:10px 0;font-size:12px;color:#c9c4e2}
.photo-meta b{font-size:14px;color:#fff;font-weight:400}
.photo-view .actions{display:flex;gap:8px;flex-wrap:wrap}
.photo-view .actions svg,.icon-button svg{width:18px;height:18px}
.photo-preview{width:100%;max-height:40vh;object-fit:contain;border-radius:14px;margin:8px 0}
.quote-wall{display:grid;gap:12px}
.quote-card{padding:18px;border-color:hsl(var(--q) 70% 75% / .45)}
.quote-card p{margin:0;font-size:16px;line-height:1.5}
.quote-foot{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px;color:#a7f3d0;font-size:13px}
.quote-play{display:inline-flex;gap:6px;align-items:center}
.quote-play svg{width:14px;height:14px}
.quote-by{display:flex;justify-content:space-between;align-items:center;margin-top:8px;color:#9fb3c8;font-size:11px}
.icon-button{width:44px;height:44px;border-radius:14px;border:1.5px solid #ffffff2e;background:#141c33;color:#fff;display:grid;place-items:center;flex:none}
.crew-cards{display:grid;gap:12px}
.crew-card{display:grid;grid-template-columns:auto 1fr auto;gap:14px;padding:14px;align-items:start}
.crew-card.is-me{border-color:#a7f3d077}
.crew-photo,.crew-initial{width:64px;height:64px;border-radius:18px;object-fit:cover;border:1.5px solid #ffffff2e}
.crew-initial{display:grid;place-items:center;background:#2b2350;font-size:26px;color:#a7f3d0}
.crew-copy h3{margin:0 0 6px;font-size:16px;font-weight:400}
.crew-copy h3 small{color:#a7f3d0;font-size:11px}
.crew-copy p{margin:8px 0 0;font-size:13px;line-height:1.45}
.crew-copy p small{display:block;font-size:11px;color:#9fb3c8}
/* Timeline: one orbit line, one card */
.orbit-line{position:relative;display:flex;justify-content:space-between;gap:4px;margin:12px 0 14px;padding:0 4px}
.orbit-line:before{content:'';position:absolute;left:22px;right:22px;top:21px;height:2px;background:linear-gradient(90deg,#a7f3d0,#c4b5fd,#f9a8d4);opacity:.6}
.orbit-stop{position:relative;flex:1;min-width:0;display:grid;justify-items:center;gap:6px;background:none;border:0;color:#c9c4e2;padding:6px 0}
.orbit-stop .orbit-dot{width:16px;height:16px;border-radius:50%;background:#121a30;border:2px solid #c4b5fd;margin-top:6px}
.orbit-stop.past .orbit-dot{background:#c4b5fd}
.orbit-stop.active .orbit-dot{width:24px;height:24px;margin-top:2px;background:#a7f3d0;border-color:#fff;box-shadow:0 0 0 6px #a7f3d033}
.orbit-stop small{font-size:11px}
.orbit-stop.active small{color:#fff}
.orbit-card{padding:16px;display:grid;gap:12px}
.orbit-card-head{display:grid;grid-template-columns:72px 1fr;gap:12px;align-items:center}
.orbit-card-head img{width:72px;height:72px;border-radius:18px;object-fit:cover;border:1.5px solid #ffffff2e}
.orbit-card-head h2{margin:4px 0;font-size:19px}
.orbit-fact{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:start;padding:10px 0;border-top:1px solid #ffffff14}
.orbit-fact .orbit-dot{width:10px;height:10px;border-radius:50%;background:#a7f3d0;margin-top:5px}
.orbit-fact.milestone .orbit-dot{background:#f9a8d4}
.orbit-fact small{display:block;font-size:11px;color:#9fb3c8}
.orbit-fact b{font-weight:400;font-size:14px}
.orbit-fact p{margin:4px 0 0;font-size:12px;color:#d6d1ee}
.orbit-fact img{margin-top:8px;width:100%;max-height:180px;object-fit:cover;border-radius:12px}
.orbit-nav{display:flex;justify-content:space-between;gap:8px}
.orbit-nav button{min-height:44px;border-radius:14px;display:inline-flex;align-items:center;gap:6px;padding:0 14px}
.orbit-nav svg{width:18px;height:18px}
/* Arcade picker */
.arcade-cards{display:grid;gap:12px;margin:14px 0}
.arcade-card{position:relative;overflow:hidden;display:grid;grid-template-columns:96px 1fr;gap:12px;align-items:center;padding:14px;text-align:left;background:linear-gradient(90deg,#121a30ee,#121a30aa),var(--card-bg) center/cover;min-height:120px}
.arcade-card img{width:96px;height:96px;object-fit:contain;filter:drop-shadow(0 6px 14px #0008)}
.arcade-copy b{display:block;font-size:18px;font-weight:400}
.arcade-copy small{display:block;font-size:12px;color:#d6d1ee;margin:4px 0 8px}
.arcade-stats{display:flex;flex-wrap:wrap;gap:6px 12px;font-size:11px;color:#9fb3c8}
.arcade-stats b{display:inline;font-size:12px;color:#a7f3d0}
.arcade-siege{border-color:#f9a8d466}
.arcade-section{padding:16px;margin:12px 0;display:grid;gap:10px}
.arcade-section h2{margin:0;font-size:17px}
.arcade-board{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.arcade-board li{display:grid;grid-template-columns:28px 1fr auto;gap:8px;align-items:center;padding:8px 10px;border-radius:12px;background:#141c33}
.arcade-board li.me{outline:1.5px solid #a7f3d0}
.arcade-board .rank{font-size:12px;color:#9fb3c8}
.arcade-board b{font-weight:400;font-size:13px}
.arcade-board .pts{color:#a7f3d0;font-size:13px}
.skin-row{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.skin{display:grid;justify-items:center;gap:2px;padding:8px 4px;border-radius:16px;border:1.5px solid #ffffff22;background:#141c33;color:#fff}
.skin img{width:46px;height:36px;object-fit:contain}
.skin span{font-size:11px}.skin small{font-size:11px;color:#9fb3c8}
.skin.active{border-color:#a7f3d0;background:#16283a}
.skin:disabled{opacity:.45}
/* Game start screens */
.fg-daily-btn{display:grid;gap:2px;width:100%;min-height:52px;margin-top:10px;border-radius:18px;border:2px solid #FFCD8088;background:#2a2216;color:#FFE0A5;text-align:center;padding:8px}
.fg-daily-btn small{font-size:11px;color:#d6c5a6}
.fg-new{padding:12px 14px;margin:12px 0;display:grid;gap:4px;font-size:12px;border-color:#a7f3d066}
.fg-new b{font-weight:400;color:#a7f3d0}
.fg-board{padding:12px 14px;margin:12px 0}
.fg-board h3{margin:0;font-size:14px}
.siege-hero{background:linear-gradient(90deg,#121a30ee,#121a3099),url('identity/S2_Background.webp') center/cover!important}
.siege-rules{list-style:none;padding:0;margin:12px 0;display:grid;gap:8px;font-size:12px;color:#d6d1ee}
.siege-rules li{padding:10px 12px;border-radius:14px;background:#141c33;border:1px solid #ffffff1a}
.siege-rules b{font-weight:400;color:#a7f3d0}
/* Narrow phones: keep the app name clear of the three header buttons. */
@media (max-width:400px){.brand-name{font-size:14px!important}.brand small{font-size:10px!important;letter-spacing:.3px!important}.brand-image{width:40px!important;height:40px!important}.header-tools{gap:4px!important}.header-icon,.header-refresh{width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important}}
