.featured-mission { position:fixed; z-index:46; pointer-events:none; color:#eef8ff; font:600 13px/1.25 Inter,Arial,sans-serif; padding:8px 12px 9px; border:1.5px solid rgba(112,231,255,.38); background:linear-gradient(180deg,rgba(10,26,58,.92),rgba(5,13,32,.92)); box-sizing:border-box; border-radius:8px; box-shadow:0 0 0 1px rgba(255,255,255,.04) inset,0 6px 18px rgba(0,0,0,.35); }
.featured-mission span { display:block; color:#8fd8f2; font-size:11px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.featured-mission strong { display:block; margin:3px 0 2px; font-size:14px; font-weight:800; }
.featured-mission small { display:block; color:#b9d9ea; font-size:12px; font-weight:700; }
.trial-status { position:fixed; right:28px; top:90px; z-index:46; pointer-events:none; background:#081b30dd; border:1px solid #6dcee2; border-radius:6px; padding:8px 12px; color:#d4f9ff; font:12px Arial,sans-serif; }
.power-hint { position:fixed; z-index:47; pointer-events:none; width:250px; background:#071b32f5; border:1px solid #66c7df; border-radius:8px; padding:12px; color:#d5edf8; font:12px/1.5 Arial,sans-serif; box-shadow:0 5px 20px #0008; }
[hidden] { display:none!important; }
body[data-orbit-theme="aurora"] { background:radial-gradient(ellipse 22% 34% at 50% 56%,rgba(110,240,210,.09),transparent 100%),url('../assets/backgrounds/aurora.webp') center center/cover no-repeat,#02060c; }
body[data-orbit-theme="nebula"] { background:radial-gradient(ellipse 22% 34% at 50% 56%,rgba(255,120,220,.08),transparent 100%),url('../assets/backgrounds/nebula.webp') center center/cover no-repeat,#07030c; }
body[data-orbit-theme="ionTide"] { background:radial-gradient(ellipse 22% 34% at 50% 56%,rgba(110,240,235,.06),transparent 100%),url('../assets/backgrounds/ion-tide.webp') center center/cover no-repeat,#020a0c; }
body[data-orbit-theme="crimsonDrift"] { background:radial-gradient(ellipse 22% 34% at 50% 56%,rgba(255,110,90,.05),transparent 100%),url('../assets/backgrounds/crimson-drift.webp') center center/cover no-repeat,#0a0304; }
body[data-orbit-theme="starforgeCore"] { background:radial-gradient(ellipse 22% 34% at 50% 56%,rgba(255,205,110,.05),transparent 100%),url('../assets/backgrounds/starforge-core.webp') center center/cover no-repeat,#04030d; }
body[data-orbit-theme="solar"] { background:radial-gradient(ellipse 22% 34% at 50% 56%,rgba(255,190,110,.08),transparent 100%),url('../assets/backgrounds/solar.webp') center center/cover no-repeat,#05040c; }
body[data-orbit-theme="galacticCore"] { background:radial-gradient(ellipse 22% 34% at 50% 56%,rgba(201,162,255,.06),transparent 100%),url('../assets/backgrounds/galactic-core.webp') center center/cover no-repeat,#04040e; }
.orbit-progress { position:fixed; inset:0; z-index:90; display:grid; place-items:center; padding:24px; background:rgba(2,6,18,.87); backdrop-filter:blur(7px); color:#e7f6ff; font-family:Inter,Arial,sans-serif; }
.progress-window { width:min(100%,1000px); max-height:calc(100dvh - 48px); display:flex; flex-direction:column; border:1px solid #58b9dd; border-radius:18px; background:radial-gradient(ellipse at 90% 0%,#183454aa,transparent 60%),linear-gradient(140deg,#0b1d36,#071024); box-shadow:0 0 0 5px #0c203e,0 0 60px #43b9f022; overflow:hidden; }
.progress-window header { display:flex; justify-content:space-between; align-items:center; padding:22px 26px 16px; }
.progress-eyebrow { color:#7cd8ef; letter-spacing:3px; font-size:11px; font-weight:700; }
.progress-window h1 { margin:4px 0 0; font-size:30px; }
.progress-window h2 { margin:0 0 7px; font-size:21px; }
.progress-window h3 { margin:5px 0; font-size:16px; }
.progress-window p { color:#b8cedf; font-size:13px; line-height:1.55; margin:5px 0 10px; }
.progress-window button { font:700 13px Inter,Arial,sans-serif; color:#dff6ff; background:#122d4c; border:1px solid #437e9c; border-radius:8px; padding:11px 16px; cursor:pointer; }
.progress-window button:hover { border-color:#97e9ff; background:#1b4062; }
.progress-window button:focus-visible { outline:2px solid #ffe5a0; outline-offset:3px; }
.progress-window button:disabled { opacity:.5; cursor:default; }
.progress-window nav { display:flex; gap:8px; padding:0 26px 16px; border-bottom:1px solid #65c9ed25; }
.progress-window nav button { flex:1; background:#091a30; }
.progress-window nav button[aria-selected="true"] { background:#164565; border-color:#8fe8fb; color:#fff2b5; }
.progress-body { padding:20px 26px; overflow:auto; min-height:0; }
.progress-intro { display:flex; flex-wrap:wrap; align-items:baseline; gap:0 18px; margin-bottom:17px; }
.progress-intro h2 { flex-basis:100%; }
.progress-intro p { flex:1; }
.progress-intro b { color:#ffe8aa; font-size:13px; }
.mission-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.mission-card { display:flex; align-items:center; gap:14px; padding:15px; background:#08162bcc; border:1px solid #2a4969; border-radius:11px; }
.mission-card>div:last-child { flex:1; min-width:0; }
.mission-card.earned { border-color:#c1a156; background:linear-gradient(120deg,#5c462322,#0b2032); }
.mission-badge { width:58px; min-width:58px; height:68px; display:flex; flex-direction:column; align-items:center; justify-content:center; clip-path:polygon(50% 0,96% 24%,96% 77%,50% 100%,4% 77%,4% 24%); background:linear-gradient(140deg,#244564,#102136); color:#66829c; }
.mission-badge span { font-size:30px; line-height:1.05; }
.mission-badge small { font-size:10px; letter-spacing:2px; }
.earned .mission-badge { background:linear-gradient(140deg,#f2d78c,#94712c); color:#31250c; box-shadow:0 0 20px #ffd25a; }
.card-kicker { font-size:10px; text-transform:uppercase; letter-spacing:1px; color:#8fc3d6; }
.earned .card-kicker { color:#ffe39a; }
.mission-card p { font-size:12px; margin:4px 0 8px; }
.mission-track { height:4px; background:#1c314a; border-radius:8px; margin-bottom:6px; overflow:hidden; }
.mission-track i { display:block; height:100%; background:linear-gradient(90deg,#4adbd7,#97b8ff); }
.earned .mission-track i { background:#edcd7c; }
.mission-card small,.progress-note { color:#94b0c6; font-size:11px; }
.progress-note { margin-top:16px!important; }
.planet-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; }
.progress-window .planet-card { display:flex; flex-direction:column; align-items:center; gap:7px; padding:13px 8px; background:#0a1930; }
.planet-card img { width:72px; height:72px; object-fit:contain; }
.planet-card small { font-size:10px; color:#8fb2cb; }
.undiscovered img { filter:brightness(0) drop-shadow(0 0 1px #91bce1); opacity:.5; }
.progress-window .selected { border-color:#f2d28b; background:#15354e; }
.planet-detail { margin-top:18px; padding:14px 18px; border:1px solid #36617c; border-radius:10px; background:#091a31; }
.theme-layout { display:grid; grid-template-columns:180px 1fr; gap:20px; }
.theme-list { display:flex; flex-direction:column; gap:12px; }
.progress-window .theme-card { display:flex; flex-direction:column; align-items:flex-start; gap:6px; min-height:106px; border-left:3px solid var(--theme-accent); }
.theme-orbit { color:var(--theme-accent); font-size:26px; }
.theme-card small { font-size:11px; color:#abc7da; }
.theme-description { padding-top:15px; }
.theme-description h2 { margin-top:5px; }
.trial-explanation { color:#f3d69a!important; }
.trial-reason { display:block; font-size:11px; margin-top:9px; color:#99b4c9; }
.trial-choices { display:flex; gap:10px; }
.trial-choices button { flex:1; }
.theme-preview { --preview-bowl-height:224px; height:250px; position:relative; overflow:hidden; border:1px solid #3c6c90; border-radius:12px; background:url('../assets/backgrounds/classic.webp') center/100% 100% no-repeat,#03030c; }
.theme-preview[data-preview-theme="aurora"] { background:url('../assets/backgrounds/aurora.webp') center/100% 100% no-repeat,#02060c; }
.theme-preview[data-preview-theme="nebula"] { background:url('../assets/backgrounds/nebula.webp') center/100% 100% no-repeat,#07030c; }
[data-preview-theme="nebula"] .preview-halo { background:#ff7ad977; }
.theme-preview[data-preview-theme="ionTide"] { background:url('../assets/backgrounds/ion-tide.webp') center/100% 100% no-repeat,#020a0c; }
.theme-preview[data-preview-theme="crimsonDrift"] { background:url('../assets/backgrounds/crimson-drift.webp') center/100% 100% no-repeat,#0a0304; }
.theme-preview[data-preview-theme="starforgeCore"] { background:url('../assets/backgrounds/starforge-core.webp') center/100% 100% no-repeat,#04030d; }
[data-preview-theme="ionTide"] .preview-halo { background:#6ff2ee66; }
[data-preview-theme="crimsonDrift"] .preview-halo { background:#ff6b5e66; }
[data-preview-theme="starforgeCore"] .preview-halo { background:#ffcf6a66; }
.theme-preview[data-preview-theme="solar"] { background:url('../assets/backgrounds/solar.webp') center/100% 100% no-repeat,#05040c; }
.theme-preview[data-preview-theme="galacticCore"] { background:url('../assets/backgrounds/galactic-core.webp') center/100% 100% no-repeat,#04040e; }
[data-preview-theme="galacticCore"] .preview-halo { background:#c9a2ff66; }
.preview-stars { display:none; position:absolute; inset:0; background-image:radial-gradient(circle,#d9efff99 1px,transparent 1.7px),radial-gradient(circle,#ffdcb666 1px,transparent 1.8px); background-size:71px 61px,113px 97px; background-position:12px 23px,30px 4px; opacity:.4; }
.preview-bowl { position:absolute; height:var(--preview-bowl-height); left:50%; top:0; transform:translateX(-50%); }
.preview-halo { position:absolute; width:230px; height:45px; border-radius:50%; left:50%; bottom:46px; transform:translateX(-50%); background:#79b7ff44; filter:blur(10px); }
[data-preview-theme="aurora"] .preview-halo { background:#6afedc77; }
[data-preview-theme="solar"] .preview-halo { background:#ffb34b88; }
.preview-planet { position:absolute; object-fit:contain; }
.preview-earth { width:calc(var(--preview-bowl-height) * .295); height:calc(var(--preview-bowl-height) * .295); left:calc(50% - var(--preview-bowl-height) * .281); top:calc(var(--preview-bowl-height) * .268); }
.preview-mars { width:calc(var(--preview-bowl-height) * .228); height:calc(var(--preview-bowl-height) * .228); left:calc(50% + var(--preview-bowl-height) * .04); top:calc(var(--preview-bowl-height) * .357); }
.preview-moon { width:calc(var(--preview-bowl-height) * .174); height:calc(var(--preview-bowl-height) * .174); left:calc(50% + var(--preview-bowl-height) * .018); top:calc(var(--preview-bowl-height) * .134); }
.preview-caption { position:absolute; bottom:10px; left:12px; right:12px; text-align:center; color:#b8d1e6; font-size:10px; }
.progress-footer { padding:12px 26px; border-top:1px solid #456c8b55; color:#a6c1d4; font-size:12px; line-height:1.5; }
.progress-footer button { padding:5px 10px; margin-left:10px; }
@media (max-height:650px) { .orbit-progress { padding:12px; } .progress-window { max-height:calc(100dvh - 24px); } .progress-window header { padding:12px 22px; } .progress-window h1 { font-size:24px; } .progress-window nav { padding-bottom:10px; } .progress-body { padding:14px 22px; } .theme-preview { height:210px; --preview-bowl-height:192px; } }
@media (max-width:820px) { .mission-grid { grid-template-columns:1fr; } .planet-grid { grid-template-columns:repeat(3,1fr); } .theme-layout { grid-template-columns:145px 1fr; } }

/* Visual pass: Progress matches the calm sci-fi menus (smaller radius, less glow, gold primary). */
.progress-window { border-color:#3d86a8; border-radius:12px; box-shadow:0 0 0 1px #0c203e,0 18px 50px rgba(0,0,0,.45); }
.progress-window button { border-radius:6px; }
.progress-window [data-action="equip"]:not(:disabled), .progress-window [data-action="trial"]:not(:disabled) { color:#2b1600; background:linear-gradient(#ffd977,#e9a83a); border-color:#ffe29a; }
.progress-window [data-action="equip"]:not(:disabled):hover, .progress-window [data-action="trial"]:not(:disabled):hover { background:linear-gradient(#ffe39a,#f0b54c); }
.mission-card { border-radius:8px; }

/* ---- Daily Orbit (Progress → Daily Orbit) ---- */
.daily-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.daily-card { align-items:flex-start; }
.daily-badge span { font-size:15px; letter-spacing:1px; color:#ffd45e; }
.daily-badge small { font-size:9px; letter-spacing:1px; margin-top:4px; }
.earned .daily-badge span { color:#31250c; }
.daily-card h3 { margin:2px 0 2px; }
.daily-card p { margin:0 0 8px; color:#cfe6f5; }
.daily-card small { display:block; }
.daily-swap { display:block; margin-top:8px; font-size:12px; padding:5px 10px; }
.star-track-head { display:flex; align-items:center; justify-content:space-between; margin:16px 0 8px; }
.star-track-head h3 { margin:0; }
.star-track { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.bounty-card { display:flex; align-items:center; gap:14px; margin-top:12px; padding:12px 15px; border:1px solid #c1a156; border-radius:11px; background:linear-gradient(110deg,#5c46232e,#0b2032); }
.bounty-card>div { flex:1; min-width:0; }
.bounty-card h3 { margin:2px 0; }
.bounty-card p { margin:0; color:#cfe6f5; font-size:13px; }
.bounty-card small { white-space:nowrap; color:#ffe39a; }
.bounty-inf { font-size:34px; line-height:1; color:#ffd45e; text-shadow:0 0 12px #ffb52e; min-width:42px; text-align:center; }
.star-step { display:flex; flex-direction:column; gap:6px; padding:12px; background:#08162bcc; border:1px solid #2a4969; border-radius:11px; }
.star-step b { color:#ffd45e; font-size:15px; }
.star-step p { margin:2px 0 0; font-size:12px; color:#a9c7da; }
.star-step.earned { border-color:#c1a156; background:linear-gradient(120deg,#5c462322,#0b2032); }
.star-step button { font-size:12px; padding:5px 8px; }
@media (max-width:820px) { .daily-grid, .star-track { grid-template-columns:1fr; } }

/* Startup door intro: the DOM planet strip waits until the doors open. */
.viewport-progress__panel { transition:opacity .35s ease; }
body.is-door-intro .viewport-progress__panel { opacity:0; }

/* Top-right HUD row (Home, Sound; drawn in Phaser): transparent accessible DOM buttons on top. */
.hud-square-button { position:fixed; z-index:44; margin:0; padding:0; border:0; background:transparent; cursor:pointer; color:transparent; }
.hud-square-button:focus-visible { outline:2px solid #8cc4ff; outline-offset:2px; }

/* ---- Star Shop & Collection ---- */
.shop-chip { margin-top:10px; font-size:13px; padding:6px 12px; border:1px solid #c1a156; color:#ffe39a; background:#2a1f0a99; border-radius:999px; }
.shop-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.shop-card { background:#08162bcc; border:1px solid #2a4969; border-radius:11px; overflow:hidden; display:flex; flex-direction:column; }
.shop-card.owned { border-color:#c1a156; }
.shop-card.just-bought { box-shadow:0 0 0 2px #ffd45e66, 0 0 22px #ffd45e33; }
.shop-card .theme-preview { height:150px; --preview-bowl-height:132px; border:0; border-radius:0; }
.shop-card .preview-caption { display:none; }
.shop-info { padding:12px 14px 14px; display:flex; flex-direction:column; gap:4px; flex:1; }
.shop-info h3 { margin:0; }
.shop-info p { margin:0 0 8px; color:#cfe6f5; font-size:13px; }
.shop-actions { margin-top:auto; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.shop-price { color:#ffd45e; font-size:16px; }
.shop-owned { color:#ffe39a; font-size:13px; font-weight:700; }
.shop-confirm { display:flex; gap:8px; flex-wrap:wrap; }
.shop-buy { border-color:#c1a156 !important; color:#ffe9b0 !important; }
.collection-head { margin:4px 0 10px; font-size:15px; letter-spacing:1px; text-transform:uppercase; color:#9fd8f2; }
.collection-head:not(:first-child) { margin-top:20px; }
.progress-window .theme-card { min-height:58px; }
.skin-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.skin-card { display:flex; flex-direction:column; gap:6px; padding:12px; background:#08162bcc; border:1px solid #2a4969; border-radius:11px; }
.skin-card.owned { border-color:#3f6f99; }
.skin-card.equipped { border-color:#c1a156; }
.skin-card small { color:#abc7da; }
.skin-card button { font-size:12px; padding:5px 8px; }
@media (max-width:820px) { .shop-grid, .skin-grid { grid-template-columns:1fr; } }
.progress-window .theme-card small { text-align:left; line-height:1.3; }

/* ---- Cockpit frame around the whole Progress window (title, tabs and content) ----
   9-slice from assets/ui/cockpit-frame.webp (scripts/make-cockpit-frame.py): corners stay sharp at any
   size. Only .progress-body scrolls; the scrollbar sits inside the frame. */
.progress-window {
  border:40px solid transparent; border-radius:0;
  border-image:url('../assets/ui/cockpit-frame.webp') 96 fill / 40px stretch;
  background:none;
  box-shadow:0 22px 60px rgba(0,0,0,.55), inset 0 10px 18px rgba(0,0,0,.45), inset 0 -6px 14px rgba(0,0,0,.35);
  max-height:calc(100dvh - 32px); overflow:hidden;
}
.orbit-progress { padding:16px; }
.progress-window header { padding:2px 10px 12px; }
.progress-window nav { padding:0 10px 12px; }
.progress-body { padding:14px 10px 16px; scrollbar-color:#3d86a8 #071226; scrollbar-width:thin; }
.progress-body::-webkit-scrollbar { width:8px; }
.progress-body::-webkit-scrollbar-thumb { background:#3d86a8; border-radius:4px; }
.progress-body::-webkit-scrollbar-track { background:#071226; }
.progress-footer { padding:10px 10px 0; }
@media (max-height:650px) { .progress-window { border-width:28px; border-image-width:28px; } .progress-window header { padding:0 8px 8px; } }

/* ==== Your Orbit redesign: dark glass panels with chamfered corners (top-left and bottom-right), like
   the playfield HUD. Subtle blue edges; gold for stars and earned rewards. ==== */
.progress-window { --oc-edge:rgba(92,164,255,.34); --oc-gold:#ffd45e; }
.oc { --cut:12px; --edge:var(--oc-edge); --fill:linear-gradient(180deg,rgba(14,36,78,.74),rgba(4,12,32,.86)); position:relative; box-sizing:border-box;
  clip-path:polygon(var(--cut) 0,100% 0,100% calc(100% - var(--cut)),calc(100% - var(--cut)) 100%,0 100%,0 var(--cut));
  background:
    linear-gradient(135deg,transparent calc(var(--cut) * .707 - 1px),var(--edge) calc(var(--cut) * .707 - 1px) calc(var(--cut) * .707 + .5px),transparent calc(var(--cut) * .707 + .5px)) top left / calc(var(--cut) * 2) calc(var(--cut) * 2) no-repeat,
    linear-gradient(315deg,transparent calc(var(--cut) * .707 - 1px),var(--edge) calc(var(--cut) * .707 - 1px) calc(var(--cut) * .707 + .5px),transparent calc(var(--cut) * .707 + .5px)) bottom right / calc(var(--cut) * 2) calc(var(--cut) * 2) no-repeat,
    var(--fill);
  box-shadow:inset 0 0 0 1px var(--edge), inset 0 1px 0 rgba(170,215,255,.14); }
.progress-window h2, .progress-window h3 { overflow-wrap:anywhere; }
.progress-window button.primary { color:#2b1600; background:linear-gradient(#ffd977,#e9a83a); border-color:#ffe29a; }
.progress-window button.primary:hover { background:linear-gradient(#ffe39a,#f0b54c); }
.progress-body { padding-bottom:22px; }
.collection-head { margin:18px 0 10px !important; font-size:13px; }
.orbit-summary { display:flex; align-items:center; flex-wrap:wrap; gap:8px 22px; padding:10px 16px; margin-bottom:14px; font-size:13px; color:#b8d4e8; }
.orbit-summary b { color:#eef8ff; }
.orbit-summary .sum-stars b { color:var(--oc-gold); font-size:16px; }
.orbit-summary .sum-muted { color:#7f9db5; font-size:12px; margin-left:auto; }
.progress-window .orbit-summary .shop-chip { margin:0 0 0 auto; padding:6px 12px; }
.orbit-bar { height:8px; border-radius:2px; background:#030b1d; box-shadow:inset 0 0 0 1px rgba(76,198,255,.38); overflow:hidden; margin:8px 0 6px; }
.orbit-bar i { display:block; height:100%; background:linear-gradient(90deg,#2fb8e8,#6fe8ff); }
.orbit-bar.gold i { background:linear-gradient(90deg,#e9a83a,#ffd977); }
.daily-meta { display:flex; justify-content:space-between; align-items:baseline; gap:10px; font-size:12px; color:#a9c7da; }
.daily-meta b { color:var(--oc-gold); white-space:nowrap; }

/* Daily Orbit */
.daily-cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; align-items:stretch; }
.daily-card2 { display:flex; flex-direction:column; padding:14px 15px 13px; min-width:0; }
.daily-card2.done { --edge:rgba(255,212,94,.55); --fill:linear-gradient(180deg,rgba(60,46,18,.55),rgba(6,14,32,.9)); }
.daily-head { display:flex; align-items:center; gap:11px; min-width:0; }
.daily-head>div { min-width:0; }
.daily-head h3 { margin:2px 0 0; font-size:16px; line-height:1.2; }
.daily-card2 .card-kicker { color:#8fd8f2; }
.daily-card2.done .card-kicker { color:#ffe39a; }
.tier-insignia { flex:none; filter:drop-shadow(0 0 6px rgba(80,180,255,.25)); }
.tier-insignia.done { filter:drop-shadow(0 0 8px rgba(255,212,94,.45)); }
.progress-window .daily-goal { margin:10px 0 4px; font-size:13px; color:#d9ecf8; line-height:1.4; overflow-wrap:anywhere; }
.daily-goal span { color:#7fb3cc; font-size:10px; font-weight:800; letter-spacing:1px; text-transform:uppercase; margin-right:4px; }
.progress-window .daily-card2.done .daily-goal { color:#a9c0d0; }
.daily-foot { margin-top:auto; }
.daily-done { display:flex; align-items:center; gap:10px; padding-top:8px; }
.daily-done .check { width:28px; height:28px; display:grid; place-items:center; border-radius:50%; background:linear-gradient(#ffe39a,#e9a83a); color:#2b1600; font-weight:900; font-size:16px; box-shadow:0 0 12px rgba(255,200,80,.45); }
.daily-done b { color:var(--oc-gold); font-size:15px; }
.daily-note { display:block; color:#ffcf8a; font-size:11px; margin-top:4px; }
.progress-window .daily-swap { display:block; margin-top:9px; font-size:12px; padding:5px 10px; }
.bounty-strip { --edge:rgba(255,212,94,.45); display:flex; align-items:center; gap:12px; padding:9px 16px; margin-top:12px; font-size:13px; color:#d4e6f2; }
.bounty-strip b { color:var(--oc-gold); }
.bounty-sun { color:var(--oc-gold); font-size:20px; text-shadow:0 0 10px #ffb52e; }
.bounty-today { margin-left:auto; color:#ffe39a; white-space:nowrap; font-weight:700; }
.next-reward { display:flex; align-items:center; gap:16px; padding:12px 16px; margin-top:12px; }
.next-reward .next-info { flex:1; min-width:0; }
.next-reward h3 { margin:2px 0 0; }
.progress-window .next-reward p { margin:2px 0 0; }
.track-pips { display:flex; gap:7px; align-self:flex-end; padding:0 4px 6px 0; }
.track-pips i { width:10px; height:10px; transform:rotate(45deg); background:#0b1e3a; box-shadow:inset 0 0 0 1px #3f6f99; }
.track-pips i.got { background:var(--oc-gold); box-shadow:0 0 6px rgba(255,212,94,.6); }
.track-pips i.next { box-shadow:inset 0 0 0 1.5px var(--oc-gold); }

/* Thumbnails (backgrounds, skins, next reward) */
.progress-window .thumb-art { display:block; position:relative; flex:none; width:96px; height:58px; border:0; border-radius:3px; box-shadow:inset 0 0 0 1px rgba(120,180,255,.3); }
.thumb-art .thumb-bowl { position:absolute; left:50%; bottom:2px; height:88%; transform:translateX(-50%); }
.thumb-art.with-rim .thumb-bowl, .theme-preview.with-rim .preview-bowl { filter:drop-shadow(0 0 6px #ffc23a) drop-shadow(0 0 2px #ffe08a) !important; }
.thumb-art.with-rim:empty::after { content:""; position:absolute; left:50%; bottom:6px; width:60%; height:16px; transform:translateX(-50%); border-radius:50%; border:2px solid #ffd45e; box-shadow:0 0 10px #ffc23a; }
.progress-window .badge-art { display:grid; place-items:center; font-size:26px; color:#2b1600; background:linear-gradient(#ffe39a,#e9a83a); }

/* Milestones */
.goal-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.goal-card { display:flex; align-items:center; gap:14px; padding:12px 15px; min-width:0; }
.goal-info { flex:1; min-width:0; }
.goal-info h3 { margin:3px 0 0; }
.goal-reward { text-align:right; }
.goal-reward b { color:var(--oc-gold); }
.medal { flex:none; display:block; }
.medal.locked { filter:grayscale(.7) brightness(.78); opacity:.92; }
.medal.earned { filter:drop-shadow(0 0 8px rgba(255,212,94,.35)); }
.medal-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.medal-tile { --edge:rgba(255,212,94,.42); display:flex; flex-direction:column; align-items:center; text-align:center; gap:4px; padding:12px 8px 10px; min-width:0; }
.medal-tile strong { color:#ffe9b0; font-size:13px; overflow-wrap:anywhere; }
.medal-tile small { color:#93b2c6; font-size:11px; overflow-wrap:anywhere; }

/* Collection */
.showcase { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); gap:18px; padding:12px; align-items:start; }
.showcase .theme-preview { height:220px; --preview-bowl-height:196px; border:0; border-radius:3px; }
.showcase .preview-caption { display:none; }
.showcase-info { min-width:0; padding:4px 4px 0 0; }
.progress-window .showcase-info h2 { margin:4px 0 8px; font-size:22px; }
.status-pill { display:inline-block; padding:3px 10px; font-size:11px; font-weight:800; letter-spacing:1px; text-transform:uppercase; color:#a9c7da; border:1px solid #3f6f99; border-radius:999px; }
.status-pill.got { color:#2b1600; background:var(--oc-gold); border-color:#ffe29a; }
.showcase-action { margin:12px 0 4px; }
.showcase-action .orbit-bar { max-width:280px; }
.cos-progress { display:block; color:#a9c7da; font-size:12px; }
.showcase .trial-choices { margin-top:10px; }
.progress-window .showcase .trial-choices button { padding:8px 10px; font-size:12px; }
.cos-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(120px,1fr)); gap:10px; }
.progress-window .cos-thumb { display:flex; flex-direction:column; align-items:stretch; gap:5px; padding:7px 7px 8px; text-align:left; background:rgba(6,16,38,.75); border:1px solid #2a4969; border-radius:4px; min-width:0; }
.progress-window .cos-thumb .thumb-art { width:100%; height:62px; }
.cos-thumb strong { font-size:12px; color:#e7f6ff; overflow-wrap:anywhere; line-height:1.25; }
.cos-thumb small { font-size:11px; color:#93b2c6; }
.progress-window .cos-thumb.equipped { border-color:#c1a156; }
.cos-thumb.equipped small { color:#ffe39a; }
.progress-window .cos-thumb.selected { border-color:#8fe8fb; background:#123456; box-shadow:0 0 0 1px #8fe8fb inset; }
/* The background art is dark at thumbnail size: lift it so the themes are easy to tell apart. */
.progress-window .thumb-art[data-preview-theme] { background-size:cover; background-position:center; filter:brightness(1.75) saturate(1.35); }
.progress-window .cos-thumb.locked .thumb-art { filter:brightness(1.2) saturate(.75); }

/* Star Shop */
.shop-grid2 { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; align-items:stretch; }
.shop-card2 { display:flex; flex-direction:column; min-width:0; }
.shop-card2.owned { --edge:rgba(255,212,94,.5); }
.shop-card2.just-bought { --edge:#ffd45e; }
.shop-card2 .theme-preview { height:200px; --preview-bowl-height:118px; border:0; border-radius:0; }
.shop-card2 .preview-bowl { top:auto; bottom:6px; }
.shop-card2 .preview-earth, .shop-card2 .preview-mars, .shop-card2 .preview-moon { top:auto; }
.shop-card2 .preview-earth { bottom:calc(6px + var(--preview-bowl-height) * .43); }
.shop-card2 .preview-mars { bottom:calc(6px + var(--preview-bowl-height) * .41); }
.shop-card2 .preview-moon { bottom:calc(6px + var(--preview-bowl-height) * .69); }
.shop-card2 .preview-halo { bottom:10px; width:150px; }
.shop-card2 .preview-caption { display:none; }
.shop-body { display:flex; flex-direction:column; flex:1; padding:11px 14px 13px; min-width:0; }
.shop-body h3 { margin:2px 0 2px; }
.progress-window .shop-body p { margin:0 0 10px; font-size:12px; color:#bcd3e3; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; min-height:2.9em; }
.shop-foot { margin-top:auto; display:flex; align-items:center; gap:10px; flex-wrap:wrap; min-height:38px; }
.shop-foot .shop-price { font-size:17px; }
.shop-need { color:#ffcf8a; font-size:13px; font-weight:800; }
.progress-window .shop-buy { color:#2b1600 !important; background:linear-gradient(#ffd977,#e9a83a); border-color:#ffe29a !important; padding:8px 18px; }
.progress-window .shop-confirm button { padding:8px 12px; }
@media (max-width:820px) { .daily-cards, .goal-grid, .shop-grid2, .showcase { grid-template-columns:1fr; } .medal-grid { grid-template-columns:repeat(2,1fr); } }
@media (max-height:650px) { .showcase .theme-preview { height:190px; --preview-bowl-height:170px; } }
.goal-grid + .medal-grid.long-earned { margin-top:12px; }
