.px-game{max-width:1000px;min-width:0;margin:0 auto}
.px-game button{touch-action:manipulation}
.px-accessible{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
.px-game :is(button,input,select,textarea,summary){min-height:44px}
.px-game :is(input,select,textarea){font-size:16px}
.px-game .arcade-panel{padding:18px;border-radius:10px}
.px-topbar{display:contents}
.px-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.px-heading>div:first-child{min-width:0}
.px-heading h2{margin:3px 0 0;font-size:26px;line-height:1.3;overflow-wrap:break-word}
.px-heading h2>span{display:inline-block;margin-left:10px;font:11px/1.4 Inter,system-ui,sans-serif;color:var(--muted);vertical-align:middle;overflow-wrap:anywhere}
.px-eyebrow{color:var(--muted);font-size:10px;letter-spacing:.05em;text-transform:uppercase}
.px-heading-tools{display:flex;flex:none;align-items:center;gap:6px}
.px-heading-tools button{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:9px 11px;font-size:12px;white-space:nowrap}
.px-tool-icon,.px-heading-tools button>svg{width:18px;height:18px;flex:none}
.px-stats{display:flex;align-items:center;flex-wrap:wrap;gap:6px 18px;margin:0 0 12px;color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}
.px-stats>div{display:flex;align-items:baseline;gap:5px;min-width:0}
.px-stats strong{color:var(--text);font-size:13px;font-weight:500}
.px-stats span{white-space:nowrap}
.px-view-tabs{position:sticky;top:0;z-index:8;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;padding:5px;margin:0 0 14px;border:1px solid var(--line);border-radius:10px;background:var(--bg)}
.px-view-tabs button{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:46px;padding:8px 5px;border-color:transparent;background:transparent;color:var(--muted);font-size:12px;line-height:1.2}
.px-view-tabs button>svg,.px-view-icon{width:19px;height:19px;flex:none}
.px-view-tabs button:hover{background:var(--panel)}
.px-view-tabs button[aria-selected=true]{border-color:var(--line-strong);background:var(--panel);color:var(--text)}
.px-view-tabs button:focus-visible{position:relative;z-index:1;outline-offset:1px}
.px-view-panel{min-width:0;outline:none}
.px-observatory{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:start;gap:22px}
.px-map,.px-notebook{min-width:0}
.px-map h3{margin:0 0 6px}
.px-sky{display:block;width:100%;max-width:420px;height:auto;margin:0 auto;aspect-ratio:1}
.px-sector{cursor:pointer;outline:none}
.px-sector>path{fill:var(--panel-2);stroke:var(--line-strong);stroke-width:1}
.px-sector.px-visible>path{fill:var(--panel)}
.px-sector.px-selected>path{fill:color-mix(in srgb,var(--accent) 15%,var(--panel));stroke:var(--accent);stroke-width:2}
.px-sector:hover>path,.px-sector:focus-visible>path{stroke:var(--text);stroke-width:3}
.px-sector text{text-anchor:middle;pointer-events:none;fill:var(--text);font-family:Inter,system-ui,sans-serif}
.px-sector-number{font-size:12px;font-weight:500}
.px-sector-symbol{font-size:12px}
.px-sky-label,.px-sky-caption{text-anchor:middle;fill:var(--muted);font:11px Inter,system-ui,sans-serif}
.px-sky-caption{font-size:10px}
.px-legend{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px 8px;font-size:11px;line-height:1.3}
.px-legend>span{display:flex;align-items:center;gap:5px;min-width:0}
.px-legend b{font-weight:500;color:var(--muted)}
.px-legend .px-body-icon{width:20px;height:20px}
.px-map-help{font-size:11px;line-height:1.45;margin:7px 0 0}
.px-notebook{padding-left:22px;border-left:1px solid var(--line)}
.px-notebook-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px}
.px-notebook-heading h3{font-family:inherit;font-size:15px;font-weight:500;margin:0}
.px-notebook-heading p{font-size:11px;color:var(--muted);margin:2px 0 0}
.px-sector-step{display:flex;flex:none;gap:4px}
.px-sector-step button{display:grid;place-items:center;width:44px;min-width:44px;height:44px;padding:10px}
.px-sector-step svg{width:18px;height:18px}
.px-notebook>p{font-size:12px;line-height:1.45;margin:7px 0}
.px-marks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
.px-marks button{display:flex;align-items:center;gap:5px;min-width:0;min-height:46px;padding:7px 6px;font-size:11px;line-height:1.25;text-align:left}
.px-marks button>span{min-width:0}
.px-marks button>b{margin-left:auto;font-size:13px;font-weight:400}
.px-marks button[aria-pressed=false]{color:var(--muted);background:var(--panel-2)}
.px-marks button[aria-pressed=false] .px-body-icon{opacity:.45}
.px-marks button:disabled{opacity:.45}
.px-marks .px-body-icon{width:20px;height:20px}
.px-notes,.px-sheet{margin-top:9px;border-top:1px solid var(--line)}
.px-notes>summary,.px-sheet>summary{display:list-item;min-height:44px;padding:11px 0;cursor:pointer;font-size:12px;font-weight:500}
.px-notes .arcade-field{margin:0 0 10px}
.px-notes textarea{min-height:90px;resize:vertical}
.px-sheet-scroll{max-height:380px;max-width:100%;overflow:auto;border:1px solid var(--line);border-radius:6px;overscroll-behavior:contain}
.px-sheet table{border-collapse:collapse;width:100%;min-width:322px;text-align:center;font-size:12px}
.px-sheet th{padding:5px;font-weight:500;color:var(--muted)}
.px-sheet thead{position:sticky;top:0;z-index:1;background:var(--panel)}
.px-sheet td{padding:1px;border-top:1px solid var(--line)}
.px-sheet button{min-width:44px;min-height:44px;width:100%;padding:5px;border-color:transparent;background:transparent}
.px-sheet button[aria-pressed=false]{color:var(--muted);background:var(--panel-2)}
.px-sheet .px-current-row{background:color-mix(in srgb,var(--accent) 8%,transparent)}
.px-sheet-scroll:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.px-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;padding-bottom:12px;margin-bottom:14px;border-bottom:1px solid var(--line)}
.px-tabs button{min-width:0;padding:8px 4px;font-size:12px;line-height:1.25}
.px-tabs button[aria-pressed=true]{border-color:var(--text);background:var(--text);color:var(--panel)}
.px-action-form{max-width:760px}
.px-action-form>p{margin-bottom:14px;font-size:13px;line-height:1.6}
.px-action-form>.arcade-field{margin-bottom:12px}
.px-action-form .arcade-form{gap:12px}
.px-action-form .arcade-field{font-size:12px}
.px-action-form .arcade-actions,.px-setup .arcade-actions{margin-top:14px}
.px-action-form .arcade-actions>span{font-size:12px}
.px-wait{display:flex;flex-wrap:wrap;align-items:center;gap:10px;border-top:1px solid var(--line);margin-top:16px;padding-top:12px;font-size:12px}
.px-wait button{font-size:12px}
.px-research{display:grid;gap:10px}
.px-research>div{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid var(--line);padding-bottom:10px}
.px-research strong{font-size:13px;font-weight:500}
.px-research p{width:100%;margin:0;color:var(--muted);font-size:13px}
.px-research button{font-size:12px}
.px-evidence h3,.px-results h3{margin:0 0 10px}
.px-evidence summary,.px-rules summary,.px-records summary{cursor:pointer;min-height:44px;padding:11px 0;font-weight:500;font-size:13px}
.px-evidence details+details{border-top:1px solid var(--line)}
.px-evidence ul,.px-evidence p{font-size:13px;line-height:1.65;color:var(--muted)}
.px-evidence ul{padding-left:20px;margin-top:6px}
.px-evidence li{margin-bottom:8px}
.px-log{list-style:none;padding:0;margin:0;font-size:13px;line-height:1.65;overflow-wrap:anywhere}
.px-log li{padding:12px 0;border-bottom:1px solid var(--line)}
.px-log li:last-child{border-bottom:0;padding-bottom:0}
.px-log li>span{display:block;font-size:11px;color:var(--muted);margin-bottom:4px;font-variant-numeric:tabular-nums}
.px-rules+.px-records,.px-records+.px-records{margin-top:12px}
.px-rules-copy{color:var(--muted);font-size:13px;line-height:1.65}
.px-rules-copy ul{padding-left:20px}
.px-rules-copy li{margin-bottom:8px}
.px-rules-copy a{color:var(--text)}
.px-records li{padding:8px 0;font-size:13px}
.px-records>p{font-size:12px}
.px-code{grid-column:1/-1}
.px-code input{text-transform:uppercase}
.px-code>span{font-size:12px}
.px-setup{max-width:720px}
.px-setup .px-heading{margin-bottom:18px}
.px-end{margin-top:14px;text-align:right}
.px-end button{color:var(--muted);font-size:12px}
.px-result{margin-bottom:14px}
.px-result h3{margin-bottom:8px}
.px-final-score{font-size:34px;font-weight:400;font-family:var(--heading-font)}
.px-final-score>span{font:13px Inter,system-ui,sans-serif;color:var(--muted)}
.px-result dl{margin:14px 0}
.px-result dl>div{display:flex;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px solid var(--line);font-size:13px}
.px-result dd{margin:0;font-variant-numeric:tabular-nums}
.px-result p{font-size:12px}
.px-solution{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;font-size:12px;margin:14px 0}
.px-solution b{display:inline-block;min-width:22px}
.px-warning{color:var(--danger)}
.px-feedback{margin:0 0 10px;padding:9px 11px;border:1px solid var(--line-strong);border-radius:6px;background:var(--panel);font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.px-conference{margin:14px 0;padding:12px 0 0;border-top:1px solid var(--line)}
.px-conference h4{margin:0 0 6px;font-size:13px;font-weight:500}
.px-conference p{margin:0}

.px-action-result{width:calc(100% - 32px);max-width:480px;max-height:calc(100dvh - max(24px,env(safe-area-inset-top)) - max(24px,env(safe-area-inset-bottom)));margin:auto;padding:0;overflow:hidden;border:1px solid var(--line-strong);border-radius:14px;background:var(--panel);color:var(--text);font:14px/1.6 Inter,system-ui,sans-serif;box-shadow:0 20px 80px #302c2833}
.px-action-result[open]{display:flex;flex-direction:column}
.px-action-result::backdrop{background:#17242c80;backdrop-filter:blur(3px)}
.px-receipt-header{padding:20px 20px 12px;flex:none}
.px-receipt-header h2,.px-receipt-header h3{margin:0;font:400 22px/1.4 var(--heading-font)}
.px-receipt-header>span,.px-receipt-header>p{display:block;margin:4px 0 0;color:var(--muted);font-size:12px}
.px-receipt-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 20px 20px;overflow-wrap:anywhere}
.px-receipt-body>p{margin:0 0 12px}
.px-receipt-body>p:last-child{margin-bottom:0}
.px-receipt-body .px-receipt-time{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.px-receipt-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;flex:none;padding:12px 20px 16px;border-top:1px solid var(--line)}
.px-receipt-actions button{min-width:0;min-height:44px;padding:10px;font-size:13px}

body.px-focus-mode{overflow:hidden;padding-left:0!important}
body.px-focus-mode>.arcade-header{display:none}
body.px-focus-mode :is(#studio-main-navigation,.studio-nav-scrim){display:none!important}
#arcade-content.px-focus,#arcade-content:fullscreen{position:fixed;inset:0;z-index:1001;width:100%;max-width:none;height:100dvh;max-height:100dvh;margin:0;padding:0 max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;background:var(--bg);-webkit-overflow-scrolling:touch}
:is(#arcade-content.px-focus,#arcade-content:fullscreen) .px-topbar{display:block;position:sticky;top:0;z-index:10;padding-top:max(12px,env(safe-area-inset-top));padding-bottom:1px;background:var(--bg)}
:is(#arcade-content.px-focus,#arcade-content:fullscreen) .px-heading{position:static;min-height:52px;margin-bottom:5px;padding:0 0 8px;background:var(--bg)}
:is(#arcade-content.px-focus,#arcade-content:fullscreen) .px-view-tabs{position:relative}
body.px-focus-mode #arcade-status{z-index:1100;bottom:max(16px,env(safe-area-inset-bottom))}

@media(max-width:760px){
  body[data-arcade-game=planet-x] #arcade-content:not(.px-focus):not(:fullscreen){padding:12px 10px 22px}
  .px-game .arcade-panel{padding:12px;border-radius:9px}
  .px-heading{gap:7px;margin-bottom:6px;align-items:center}
  .px-heading h2{font-size:20px;line-height:1.25}
  .px-heading h2>span{margin:3px 0 0;display:block;font-size:10px}
  .px-eyebrow{font-size:9px;letter-spacing:.025em}
  .px-heading-tools{gap:4px}
  .px-heading-tools button{padding:9px 8px;font-size:11px}
  .px-heading-tools [data-px-action=new]{width:44px;min-width:44px;padding:10px}
  .px-heading-tools [data-px-action=new] .px-tool-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
  .px-stats{gap:5px 12px;margin-bottom:9px;font-size:11px}
  .px-stats strong{font-size:12px}
  .px-view-tabs{gap:3px;padding:4px;margin-bottom:10px;border-radius:9px}
  .px-view-tabs button{flex-direction:column;gap:4px;min-height:50px;padding:6px 2px;font-size:10px}
  .px-view-tabs button>svg,.px-view-icon{width:18px;height:18px}
  .px-observatory{grid-template-columns:minmax(0,1fr);gap:11px}
  .px-sky{width:min(100%,330px,43dvh)}
  .px-legend{max-width:390px;margin:0 auto;gap:4px 6px}
  .px-map-help{max-width:390px;margin:6px auto 0;font-size:10px;line-height:1.4}
  .px-notebook{border-left:0;padding-left:0;border-top:1px solid var(--line);padding-top:9px}
  .px-notebook-heading{margin-bottom:7px}
  .px-notebook-heading h3{font-size:14px}
  .px-notebook-heading p{font-size:10px}
  .px-marks button{min-height:46px;padding:6px;gap:4px}
  .px-notes,.px-sheet{margin-top:5px}
  .px-notes>summary,.px-sheet>summary{padding:11px 0}
  .px-tabs{gap:3px;margin-bottom:12px;padding-bottom:10px}
  .px-tabs button{font-size:11px;padding:7px 2px}
  .px-action-form .arcade-form,.px-setup .arcade-form{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .px-action-form .arcade-form>.arcade-field:first-child:nth-last-child(3){grid-column:1/-1}
  .px-action-form>p{margin-bottom:12px;font-size:12px;line-height:1.6}
  .px-action-form .arcade-actions>button{flex:1;font-size:13px}
  .px-action-form .arcade-actions>span{width:100%;font-size:11px}
  .px-wait{gap:8px;margin-top:12px;padding-top:10px;font-size:11px}
  .px-evidence summary,.px-rules summary,.px-records summary{font-size:12px}
  .px-solution{grid-template-columns:repeat(2,minmax(0,1fr));font-size:11px}
  .px-end{margin-top:10px}
  .px-action-result{width:calc(100% - 24px);border-radius:12px}
  .px-receipt-header{padding:17px 16px 10px}
  .px-receipt-header h2,.px-receipt-header h3{font-size:21px}
  .px-receipt-body{padding:0 16px 18px}
  .px-receipt-actions{padding:12px 16px 14px}
  #arcade-content.px-focus,#arcade-content:fullscreen{padding:0 max(10px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left))}
  :is(#arcade-content.px-focus,#arcade-content:fullscreen) .px-topbar{padding-top:max(8px,env(safe-area-inset-top))}
  :is(#arcade-content.px-focus,#arcade-content:fullscreen) .px-heading{min-height:48px;padding-bottom:7px}
}
@media(max-width:360px){
  .px-heading h2{font-size:18px}
  .px-heading-tools button{gap:4px;font-size:10px;padding:8px 6px}
  .px-heading-tools button>svg,.px-tool-icon{width:16px;height:16px}
  .px-stats{gap:4px 9px;font-size:10px}
  .px-view-tabs button{font-size:9px}
  .px-legend{font-size:10px}
  .px-marks button{font-size:10px;padding:6px 4px}
  .px-marks .px-body-icon{width:18px;height:18px}
}
@media(min-width:600px) and (max-height:540px) and (orientation:landscape){
  .px-observatory{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:16px}
  .px-sky{width:min(100%,300px)}
  .px-notebook{border-top:0;padding-top:0;border-left:1px solid var(--line);padding-left:16px}
  .px-heading h2>span{display:inline-block;margin:0 0 0 8px}
  .px-view-tabs button{flex-direction:row;min-height:44px;gap:5px}
}

.px-body{fill:none;stroke:var(--text);stroke-width:1.25;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.px-body-icon{width:24px;height:24px;flex:none;vertical-align:middle}
.px-body.px-excluded .px-glyph{opacity:.3}
.px-cross{stroke:#a56356;stroke-width:1.5}
.px-ring{stroke:#6a8572;stroke-width:1.4}
.px-confirmed .px-ring{stroke-width:2}
.px-space{fill:#192a34}
.px-orbit{fill:none;stroke:#c4d0cc;stroke-width:.5;opacity:.3}
.px-sun{fill:#f3d296}
.px-sun-glow{fill:#efbd6c;opacity:.15}
.px-orbiting{animation:px-orbit 60s linear infinite;transform-origin:0 0;fill:#a8c8ce}
.px-mercury{fill:#a89d90;animation-duration:19.05s;animation-direction:reverse}
.px-venus{fill:#d8bc8a;animation-duration:95.84s;animation-direction:reverse}
.px-earth{fill:#7da9c4;animation:none}
.px-earth-land{fill:none;stroke:#a6bb8b;stroke-width:1.7}
.px-mars{fill:#bf8069;animation-duration:128.1s}
.px-jupiter{fill:#d7b99a;animation-duration:65.52s}
.px-saturn{fill:#d8c698;animation-duration:62.11s}
.px-saturn-ring{fill:none;stroke:#d8c698;stroke-width:1}
.px-uranus{fill:#a7cacc;animation-duration:60.72s}
.px-neptune{fill:#7898bc;animation-duration:60.37s}
@keyframes px-orbit{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.px-orbiting{animation:none}}
