#phone-shell{display:none}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
body.phone-play{height:100dvh;overflow:hidden;padding:0;background:#040e18;font-size:16px;display:block}
.phone-play>header,.phone-play>#mobile-hud,.phone-play>#mobile-nav,.phone-play>#players,.phone-play>main,.phone-play>#desktop-toolbar{display:none!important}
.phone-play #phone-shell{display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;height:100dvh;max-width:1100px;margin:auto;padding:env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left);background:linear-gradient(150deg,#10283b,#030f1b 60%)}
.phone-play [hidden]{display:none!important}.phone-play button,.phone-play select,.phone-play summary{min-height:44px;font-size:14px;touch-action:manipulation}.phone-play button:hover{transform:none}
#phone-top{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 12px;border-bottom:1px solid #294454;height:54px}#phone-top>img{width:155px;height:42px;object-fit:contain}#phone-view{width:160px;min-width:0;padding:7px;background:#0b2538;border:1px solid #416273;border-radius:8px;color:#edf6f6}
#phone-hud{padding:5px 12px;background:#061827;border-bottom:1px solid #355664}.phone-hud-line{display:flex;justify-content:space-between;gap:6px;align-items:center;min-height:28px;font-weight:600}.phone-hud-line>span:first-child{display:flex;gap:5px;align-items:center;font-size:14px}.phone-hud-line img{width:25px;height:25px;object-fit:contain}.phone-hud-line>span:last-child{display:flex;gap:5px;align-items:center;white-space:nowrap}.phone-hud-line .sw-symbol{width:22px;height:22px}.phone-phase{font-size:13px;color:#b7d4e1}.phone-play #phone-hud .production-income{padding:3px 0;border:0;background:none;margin:0;line-height:1.3}.phone-play .income-heading{display:flex;justify-content:space-between;font-size:13px;gap:7px}.phone-play .income-pair,.phone-play .income-pair>span{display:inline-flex;align-items:center;gap:5px}.phone-play .income-heading .sw-symbol{width:19px;height:19px}.phone-play .income-choice,.phone-play .income-note{display:block;font-size:12px}
#phone-scroll{overflow:auto;overscroll-behavior:contain;min-height:0;scroll-padding-block:12px}#phone-scroll>.phone-pane{padding:12px;min-width:0}#phone-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:4px 6px calc(4px + env(safe-area-inset-bottom));gap:3px;border-top:1px solid #315461;background:#061522;margin:0;overflow:visible}#phone-tabs button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border:0;background:none;min-height:54px;padding:3px 1px;font-size:12px;white-space:nowrap}#phone-tabs button[aria-pressed=true]{color:#82fff6;background:#123a49}#phone-tabs .sw-symbol{width:23px;height:23px}
.phone-rivals{display:flex;gap:6px;justify-content:space-between;margin-bottom:8px}.phone-rivals>span{display:flex;flex-direction:column;align-items:center;font-size:12px}.phone-rivals img{width:30px;height:30px;object-fit:contain}.phone-hero-card{width:100%;padding:0;overflow:hidden;background:#0a2335;text-align:left;border:1px solid #406477}.phone-hero-art{height:145px;background-size:cover;background-position:center;display:flex;align-items:center;justify-content:center;background-color:#132b40}.phone-hero-art>.sw-symbol{width:70px;height:70px}.phone-hero-card>strong{display:block;font-size:20px;padding:8px 12px 0}.phone-hero-card>small{display:block;padding:6px 12px;color:#9fdde8;font-size:13px}.phone-owners{display:flex;flex-wrap:wrap;gap:6px;padding:5px 10px}.phone-owner{display:inline-flex;gap:4px;align-items:center;border:1px solid color-mix(in srgb,var(--p) 45%,transparent);border-radius:5px;padding:3px 5px;color:var(--p);font-size:12px;--piece-light:var(--p);--piece-mid:var(--p);--piece-dark:color-mix(in srgb,var(--p) 35%,#061321)}.phone-owner .sw-symbol{width:22px;height:22px}#phone-choose-planet{width:100%;margin:8px 0}
.phone-play #actionbar{position:static;display:grid;grid-template-columns:1fr 1fr;gap:7px;background:none;border:0;box-shadow:none;padding:0;margin:8px 0;backdrop-filter:none}.phone-play #actionbar button{grid-column:1/-1;display:flex;align-items:center;text-align:left;gap:9px;padding:10px;font-size:16px;min-height:62px;flex-wrap:wrap}.phone-play #actionbar button>.game-icon{display:block;width:32px;height:32px}.phone-play #actionbar .action-cost{margin-left:auto;font-size:14px}.phone-play #actionbar #supply,.phone-play #actionbar [data-action=pass]{grid-column:auto;font-size:14px}.phone-play #actionbar #supply .action-cost{width:100%;margin-left:0}.phone-action-reason{font-size:13px;flex-basis:100%;line-height:1.3}.phone-play #actionbar button:disabled{opacity:.65}
.phone-play #production,.phone-play #end,.phone-play #botstatus{background:#0c2637;border:1px solid #416170;border-radius:10px;padding:12px;margin:0 0 12px}.phone-play #production:empty,.phone-play #end:empty{display:none}.phone-play #botstatus button{flex:none}.phone-play #selected,.phone-play #research,.phone-play #civilization,.phone-play #trade,.phone-play #desktop-save,.phone-play #history,.phone-play #productionboard,.phone-play #guide,.phone-play #roundevents{display:block;background:#0a2233;border:1px solid #315162;border-radius:10px;padding:12px;margin:8px 0;min-width:0}.phone-play #research:empty{display:none}.phone-play #selected .worldportrait{height:160px}.phone-play #selected p,.phone-play #research p{font-size:14px}.phone-play #selected .eyebrow{display:none}.phone-play #selected button,.phone-play #research button{white-space:normal}.phone-play #phone-world-actions{width:100%;background:#1a5265;margin:8px 0}.phone-play #desktop-tools{display:flex;flex-wrap:wrap;margin:12px 0;width:100%;gap:8px}.phone-play #desktop-tools .guidance-toggle,.phone-play #desktop-tools .versionlink{display:flex;align-items:center;gap:7px}.phone-play #phone-options{display:none}.phone-play #desktop-tools input[type=checkbox]{width:22px;height:22px}.phone-play #desktop-tools label{font-size:14px}
.phone-map-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}.phone-map-heading h2{margin:0;font-size:20px}#phone-zoom{display:none;gap:6px}#phone-zoom button{width:44px;padding:2px}.phone-play[data-phone-view=star-map] #phone-zoom{display:flex}#phone-map{overflow:auto;min-width:0;overscroll-behavior:contain}.phone-play #worlds{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:0;padding:6px}.phone-play .world{min-width:0;padding:0;background:#0b2637;border-radius:10px;min-height:160px}.phone-play .world .art{height:140px;min-height:0;background-position:center;background-size:cover;position:relative;overflow:hidden}.phone-play .world .caption{padding:8px 6px;min-height:50px}.phone-play .world .caption>strong{display:block;font-size:14px}.phone-play .world .caption>small{font-size:12px}.phone-play .world .colony-sites{position:absolute;display:flex;justify-content:center;gap:8px;left:5%;right:5%;bottom:12%;}.phone-play .world .colony-site{flex:0 1 40%;min-width:0;font-size:11px;position:relative}.phone-play .world .colony-art{width:32px;height:32px}.phone-play .world .colony-site strong{font-size:10px;padding:1px 4px;line-height:1.2;white-space:nowrap}.phone-play .world .rover-markers{display:grid;grid-template-columns:repeat(var(--vehicle-cols,2),minmax(0,1fr));position:absolute;left:5%;right:5%;top:7%;gap:3px}.phone-play .world .rover-marker{min-width:0;padding:0;text-align:center;display:flex;flex-direction:column;align-items:center}.phone-play .world .rover-art,.phone-play .world .drone-art{width:25px;height:25px}.phone-play .world .rover-marker small{font-size:10px;padding:0 3px}.phone-play .world .installation-badge{position:absolute;right:0;top:-8px;padding:1px;min-height:0}.phone-play .world .installation-badge .sw-symbol{width:18px;height:18px}.phone-play .world .linktag{font-size:9px;bottom:0;left:5%;right:5%;padding:1px}.phone-play .world .deposit-tag{font-size:10px;top:auto;bottom:28%;padding:1px}.phone-play .world .empty-site{font-size:24px}.phone-play .world .trait-face{width:28px;height:30px}.phone-play .world .world-rolemarks{font-size:11px;flex-wrap:wrap}.phone-play .world .rolemark{padding:2px}
.phone-play[data-phone-view=tabletop] #phone-planets{background:linear-gradient(#03132155,#03132155),url(visuals/tabletop-v1.png) center/cover}.phone-play[data-phone-view=tabletop] .world{background:none;border:0;overflow:visible;text-align:center}.phone-play[data-phone-view=tabletop] .world .art{background:none!important;border-radius:50%;height:auto;aspect-ratio:1.15;overflow:visible}.phone-play[data-phone-view=tabletop] .world:not(.hidden) .art:before{content:'';position:absolute;inset:0;background-image:url(visuals/terrain-atlas-v1.png);background-size:500% 200%;background-position:var(--atlas-x) var(--atlas-y);filter:drop-shadow(0 5px 4px #0008)}.phone-play[data-phone-view=tabletop] .world.hidden .art{background:radial-gradient(#24465c,#081724)!important;border:1px solid #b29b65}.phone-play[data-phone-view=tabletop] .world .caption{padding:5px 0}.phone-play[data-phone-view=tabletop] .world .caption>small{display:none}
.phone-play[data-phone-view=star-map] #phone-planets{background:url(visuals/nebula-v1.png) center/cover}.phone-play[data-phone-view=star-map] #worlds{grid-template-columns:repeat(2,var(--map-size,160px));justify-content:space-around;min-width:calc(var(--map-size,160px)*2 + 32px);gap:20px}.phone-play[data-phone-view=star-map] .world{background:none;border:0;text-align:center;overflow:visible}.phone-play[data-phone-view=star-map] .world .art{height:var(--map-size,160px);border-radius:50%;box-shadow:inset -18px -10px 25px #0009,inset 8px 4px 12px #9de7fa44,0 0 14px #3aaec655}.phone-play[data-phone-view=star-map] .world.selected .art{outline:2px solid #76eaf8}.phone-play[data-phone-view=star-map] .world .caption>small{display:none}
.phone-play[data-phone-view=command] #worlds{grid-template-columns:1fr}.phone-play[data-phone-view=command] .world .art{height:180px}.phone-play[data-phone-view=command] .world .colony-art{width:42px;height:42px}.phone-play[data-phone-view=command] .world .rover-art,.phone-play[data-phone-view=command] .world .drone-art{width:32px;height:32px}.phone-play[data-phone-view=command] .world .colony-site strong{font-size:12px}.phone-play[data-phone-view=command] .world .caption>strong{font-size:18px}
#phone-owned{display:grid;gap:12px}#phone-owned button{padding:0;text-align:left;overflow:hidden}#phone-owned img{width:100%;height:120px;object-fit:cover}#phone-owned strong{display:block;padding:6px 10px}#phone-map-detail:empty{display:none}.phone-play #toast{bottom:90px;max-width:calc(100% - 24px);z-index:100}.phone-play dialog{max-width:calc(100vw - 20px);width:560px;max-height:calc(100dvh - 20px);overflow:auto;padding:20px}.phone-play dialog .close{min-width:44px;min-height:44px}.phone-play dialog input,.phone-play dialog select{min-height:44px;max-width:100%}.phone-play .tablewrap{overflow:auto}
@media(orientation:landscape) and (min-width:600px){
 .phone-play #phone-shell{grid-template-rows:44px auto minmax(0,1fr) 54px}.phone-play #phone-top{height:44px}.phone-play #phone-top>img{height:36px}.phone-play #phone-hud{display:grid;grid-template-columns:1fr 1fr;gap:2px 16px;padding:3px 12px}.phone-play .phone-hud-line{grid-row:1/3}.phone-play .phone-phase{grid-column:2}.phone-play #phone-hud .production-income{grid-column:2;padding:0}.phone-play #phone-tabs{padding-block:2px}.phone-play #phone-tabs button{flex-direction:row;gap:8px;min-height:46px;font-size:14px}.phone-play #phone-turn-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;align-items:start}.phone-play .phone-hero-art{height:150px}.phone-play #phone-hero{position:sticky;top:0}.phone-play #phone-map-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,.8fr);gap:14px;align-items:start}.phone-play[data-phone-view=mobile] #phone-map-grid{display:block}.phone-play #phone-map-detail{position:sticky;top:0;max-height:60dvh;overflow:auto}.phone-play #phone-world-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.phone-play #phone-owned{grid-template-columns:1fr 1fr}.phone-play[data-phone-view=command] #worlds{grid-template-columns:1fr 1fr}.phone-play[data-phone-view=command] .world .art{height:145px}.phone-play #phone-scroll>.phone-pane{padding:10px 16px}.phone-play #phone-planets .phone-map-heading{margin-bottom:4px}
}
@media(max-width:360px){#phone-top>img{width:125px}#phone-view{width:145px}.phone-hud-line .sw-symbol{width:19px;height:19px}.phone-hud-line>span:last-child{font-size:14px}#phone-tabs button{font-size:11px}.phone-play .world .colony-art{width:27px;height:27px}.phone-play #worlds{gap:8px}}
@media(prefers-reduced-motion:reduce){.phone-play *{transition:none!important;scroll-behavior:auto!important}}
.phone-play .phone-phase .company-symbol{width:16px;height:16px}.phone-play .phone-owner .company-symbol{display:none}.phone-play .phone-rivals .company-name{gap:2px}
.phone-play #selected .worldportrait{background-size:cover;background-position:center;border-radius:8px;border:1px solid #365464;width:100%;height:150px;aspect-ratio:auto}
.phone-play .world .colony-site.empty{min-height:0;width:24px;max-width:24px;height:24px;flex:none;border-radius:50%;padding:0;background:#082333aa}.phone-play .world .empty-site{font-size:18px}
.phone-play .world .colony-site .company-symbol{display:none}.phone-play #phone-company-native{display:none}.phone-disclosure{border-top:1px solid #325465;margin-top:8px;padding-top:4px}.phone-disclosure summary{display:flex;align-items:center;color:#abd9e7;cursor:pointer;font-size:14px}.phone-disclosure summary:after{content:'+';margin-left:auto}.phone-disclosure[open] summary:after{content:'−'}#phone-company-summary{padding:12px;border:1px solid #416574;border-radius:10px;background:#0d2738;margin-bottom:14px}#phone-company-summary h2{margin:0 0 10px}#phone-company-summary .stat{font-size:14px}
@media(orientation:landscape) and (min-width:600px){.phone-play #selected .worldportrait{height:110px}.phone-play #phone-map-detail{max-height:calc(100dvh - 184px)}}
@media(orientation:landscape) and (min-width:600px){.phone-play #phone-turn-grid>div{max-height:calc(100dvh - 166px);overflow:auto;overscroll-behavior:contain}.phone-play #phone-hero{position:static}.phone-play #phone-map{max-height:calc(100dvh - 200px)}.phone-play .phone-hero-art{height:110px}.phone-play #phone-world-grid>div{max-height:calc(100dvh - 225px);overflow:auto}}
.phone-play #phone-options-panel #productionboard,.phone-play #phone-options-panel #history{display:block!important}.phone-play .production-table{max-width:100%;overflow:auto}.phone-play #phone-options-panel .tradegrid{grid-template-columns:1fr 1fr}.phone-play #phone-options-panel input{min-width:0;max-width:100%;min-height:44px}.phone-play #phone-options-panel #desktop-save button{margin:3px 0}
