@font-face{font-family:Barlow;src:url('/display.ttf') format('truetype');font-style:normal;font-weight:700;font-display:swap}
:root{--paper:#f4f0e5;--ink:#182632;--orange:#d96d42;--rule:#7d897d;--muted:#51605e;--line:#9ca394;--surface:#f5f0e5;--error:#8e341e;font-family:Arial,Helvetica,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed}a{color:inherit;text-underline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--orange);outline-offset:4px}button:disabled{opacity:.48}button[hidden],a[hidden]{display:none}.shell{max-width:1490px;margin:auto;padding:8px 24px 20px}.masthead{min-height:81px;border-bottom:2px solid var(--rule);display:flex;align-items:center;justify-content:space-between;padding:0 19px 8px}.wordmark{font-family:Barlow,'Arial Narrow',sans-serif;font-weight:700;font-size:72px;line-height:1;letter-spacing:1px;text-decoration:none}.masthead nav{display:flex;align-items:center;gap:48px;font-size:22px;font-weight:700}.masthead nav a{text-decoration:none}.text-button{border:0;padding:0;background:none;color:var(--ink);font-weight:700}.masthead .text-button{font-size:22px}.text-button:hover,a:hover{text-decoration:underline}.play-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:24px;margin:26px 0 0;min-height:810px}.play-area{position:relative;padding:12px 0 68px 19px;isolation:isolate}.play-area:before{content:'';position:absolute;inset:-2% -2% 0 -2%;background:url('/lunar-paper.png') center center/100% 100% no-repeat;z-index:-1;pointer-events:none}h1,h2,h3,p{margin:0}h1{font:700 clamp(40px,4.15vw,62px)/1.06 Barlow,'Arial Narrow',sans-serif;letter-spacing:-.4px}.intro{font-size:23px;line-height:1.5;margin-top:8px;max-width:900px}.round-strip{display:flex;align-items:center;min-height:49px;border:1px solid var(--rule);border-radius:7px;margin-top:35px;background:var(--surface);font-size:20px;line-height:1.25}.round-strip strong{font:700 27px/1 Barlow,sans-serif;white-space:nowrap;align-self:stretch;display:flex;align-items:center;border-right:1px solid var(--rule);padding:10px 25px;letter-spacing:.3px}.round-strip span{padding:10px 25px}.round-strip b{text-transform:uppercase}.station-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:28px}.station{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:239px;padding:16px 10px 17px;background:var(--surface);border:1.5px solid var(--rule);border-radius:10px;color:var(--ink);transition:border-color .15s,transform .15s,background .15s}.station:disabled{opacity:1}.station.available:hover{border-color:var(--orange);transform:translateY(-2px)}.station.available:focus-visible{outline-offset:2px}.station.available{border-color:var(--orange)}.station-icon{width:74px;height:74px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;margin-bottom:5px}.station h2{font:700 30px/1.1 Barlow,sans-serif;text-transform:uppercase;margin-top:0}.station .effect{font-size:20px;line-height:1.35;margin-top:8px;min-height:27px}.station .capacity{font-size:18px;line-height:1.4;margin-top:4px}.station .action-hint{display:block;margin-top:10px;border-radius:5px;background:var(--orange);color:white;padding:6px 20px;font-weight:700;font-size:17px;min-height:32px}.station .action-hint.quiet{background:transparent;color:var(--muted);font-size:13px;font-weight:400;padding:6px 0}.berth-dots{display:inline-flex;gap:4px;vertical-align:middle;margin-left:8px}.berth-dot{width:9px;height:9px;border-radius:50%;background:currentColor}.match-toolbar{display:flex;align-items:center;gap:20px;font-size:14px;line-height:1.5;padding:16px 0 0;color:var(--muted);flex-wrap:wrap}.match-toolbar .text-button{font-size:14px}.crew-rail{border-left:1px solid var(--rule);padding:9px 0 30px 20px}.crew-rail h2{font:700 43px/1.05 Barlow,sans-serif;text-transform:uppercase}.crew-list{border:1px solid var(--rule);border-radius:8px;margin-top:20px;overflow:hidden;background:var(--paper)}.crew-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 16px;font-size:21px;line-height:1.25;min-height:51px}.crew-row+.crew-row{border-top:1px solid var(--rule)}.crew-row small{font-weight:400;font-size:16px}.crew-row b{font-size:24px}.crew-row.active{background:#ece2ce}.crew-row.winner{background:#e5e9dc}.crew-name{min-width:0;overflow-wrap:anywhere}.crew-row .swatch{display:inline-block;width:8px;height:8px;vertical-align:middle;border-radius:50%;margin:0 8px 2px 0}.resources{display:flex;justify-content:space-between;gap:10px;align-items:center;border:1px solid var(--rule);background:#f2e6cc;border-radius:7px;margin-top:29px;padding:15px 14px;font-size:22px;line-height:1.4}.resources span{font-size:17px}.crew-rail h3{font-size:26px;line-height:1.25;margin-top:29px;overflow-wrap:anywhere}.turn-help{font-size:14px;line-height:1.4;color:var(--muted);min-height:35px;margin:10px 0 13px}.primary,.dark{border:1px solid #bf5730;border-radius:6px;background:var(--orange);color:white;padding:11px 19px;font-size:18px;font-weight:700;line-height:1.1;min-height:43px;transition:filter .15s}.primary:hover:not(:disabled),.dark:hover:not(:disabled){filter:brightness(.92)}.dark{background:var(--ink);border-color:var(--ink)}.wide{width:100%;font-size:21px;padding:15px}.log-section{margin-top:28px;border-top:1px solid var(--rule);padding-top:18px}.log-section h2{font-size:38px}.flight-log{margin:17px 0 0;padding:9px 13px;list-style:none;border:1px solid var(--rule);border-radius:8px;background:var(--paper);max-height:202px;overflow:auto;font-size:15px;line-height:1.5;min-height:75px}.flight-log li+li{border-top:1px solid #d3d4c6;margin-top:7px;padding-top:7px}.flight-log strong{font-weight:700}.flight-log .auto{font-size:12px;color:var(--muted)}.notice{font-size:14px;line-height:1.5;color:var(--error);margin-top:14px;min-height:20px}.lobby{display:flex;gap:18px;align-items:center;justify-content:center;flex-wrap:wrap;min-height:77px;padding:22px 18px 4px;border-top:2px solid var(--rule)}.lobby-field{display:flex;align-items:center;gap:12px}.lobby label{font-weight:700;font-size:17px;white-space:nowrap}input,select{border:1px solid var(--rule);border-radius:6px;background:var(--paper);color:var(--ink);padding:8px 10px;min-height:38px;font-size:18px}input{width:165px;min-width:0}select{padding:8px 10px}#matchCode{text-transform:uppercase;width:155px}.code-field{padding-left:22px;border-left:1px solid var(--rule)}dialog{width:min(630px,calc(100% - 32px));max-height:calc(100dvh - 50px);padding:32px;border:1px solid var(--rule);border-radius:12px;background:var(--paper);color:var(--ink)}dialog::backdrop{background:#1826328c}dialog h2{font:700 42px/1.1 Barlow,sans-serif;margin-bottom:20px}dialog p,dialog li{font-size:17px;line-height:1.6}dialog p+p{margin-top:16px}.close-button{float:right;background:none;border:0;color:var(--ink);font-size:30px;padding:0 0 10px 15px;line-height:1}.rules-list{padding-left:22px}.rules-list li{margin:10px 0}.small-note{font-size:13px!important;color:var(--muted)}.api-page{max-width:880px;margin:30px auto;padding:0 24px 60px;line-height:1.65}.api-page h1{font-size:52px}.api-page h2{font:700 32px Barlow,sans-serif;margin-top:30px}.api-page p{margin:15px 0}.api-page pre{background:#e9e4d7;padding:16px;overflow:auto;border-radius:6px;font:14px/1.6 Consolas,monospace}.api-page table{border-collapse:collapse;width:100%;font-size:15px}.api-page td,.api-page th{border-bottom:1px solid var(--rule);padding:10px;text-align:left;vertical-align:top}.api-page code{font-family:Consolas,monospace;font-size:.92em}.api-page .wordmark{font-size:50px}
.crew-color-p0{color:#d2643c}.crew-color-p1{color:#2d7871}.crew-color-p2{color:#6961a0}.crew-color-p3{color:#a67825}.berth-dot.crew-color-p0{background:#d2643c}.berth-dot.crew-color-p1{background:#2d7871}.berth-dot.crew-color-p2{background:#6961a0}.berth-dot.crew-color-p3{background:#a67825}
@media(min-width:1450px){.play-layout{grid-template-columns:minmax(0,1fr) 365px}.station{min-height:256px}.play-layout{min-height:838px}.station h2{font-size:32px}}
@media(max-width:1150px){.shell{padding:10px 20px 20px}.masthead{padding-inline:0}.play-layout{grid-template-columns:minmax(0,1fr) 275px;gap:18px;min-height:740px}.play-area{padding-left:0}.crew-rail{padding-left:18px}h1{font-size:50px}.intro{font-size:20px}.station-grid{gap:12px}.station{min-height:217px}.station h2{font-size:27px}.station .effect{font-size:16px}.station .capacity{font-size:16px}.station-icon{width:62px;height:62px}.round-strip{font-size:16px}.round-strip strong{padding:10px 15px;font-size:24px}.round-strip span{padding:10px 15px}.crew-rail h2{font-size:35px}.crew-row{font-size:18px;padding:10px}.resources{font-size:20px;padding:12px 10px;gap:5px}.resources span{font-size:14px}.crew-rail h3{font-size:23px}.lobby{gap:14px}.lobby label{font-size:15px}.lobby input{width:140px}.lobby .code-field{padding-left:0;border-left:0}.primary,.dark{font-size:16px}}
@media(max-width:850px){.masthead{min-height:65px}.wordmark{font-size:58px}.masthead nav{gap:25px}.masthead nav,.masthead .text-button{font-size:17px}.play-layout{grid-template-columns:minmax(0,1fr) 235px;gap:16px;margin-top:22px;min-height:720px}.crew-rail{padding-left:14px}h1{font-size:43px}.intro{font-size:17px}.station-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:20px}.station{min-height:179px;padding:12px 8px}.station-icon{width:45px;height:45px;margin-bottom:4px}.station h2{font-size:25px}.station .effect{font-size:14px;min-height:20px;margin-top:5px}.station .capacity{font-size:14px}.station .action-hint{margin-top:5px;padding:4px 9px;font-size:14px;min-height:25px}.station .action-hint.quiet{font-size:12px}.round-strip{margin-top:22px;min-height:47px;align-items:stretch;font-size:13px}.round-strip strong{font-size:20px;padding:9px}.round-strip span{padding:8px 10px}.resources{flex-wrap:wrap;gap:8px;justify-content:flex-start;font-size:20px}.resources span{font-size:15px}.crew-rail h2{font-size:32px}.crew-row{font-size:16px}.crew-row b{font-size:20px}.crew-row small{font-size:13px}.crew-rail h3{font-size:20px}.turn-help{font-size:13px}.wide{font-size:17px}.play-area{padding-bottom:55px}.lobby{justify-content:flex-start;padding-inline:0}}
@media(max-width:620px){.shell{padding:9px 16px 20px}.masthead{padding-bottom:10px;min-height:59px}.wordmark{font-size:43px;letter-spacing:.5px}.masthead nav{gap:18px}.masthead nav,.masthead .text-button{font-size:14px}.play-layout{display:flex;flex-direction:column;min-height:0;margin-top:20px;gap:0}.play-area{padding:0 0 58px}.play-area:before{background-size:auto 100%;background-position:right top}h1{font-size:42px;max-width:340px}.intro{font-size:16px;line-height:1.5;max-width:355px}.round-strip{margin-top:22px;font-size:13px}.round-strip strong{font-size:20px;padding:8px 11px}.round-strip span{padding:9px 10px}.station-grid{gap:11px;margin-top:19px}.station{min-height:181px}.station h2{font-size:26px}.station-icon{width:48px;height:48px}.station .effect{font-size:14px}.station .capacity{font-size:14px}.match-toolbar{gap:13px;font-size:13px;padding-top:14px}.crew-rail{border-left:0;border-top:1px solid var(--rule);padding:21px 0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:18px}.crew-rail>h2{grid-column:1/-1}.crew-list{grid-row:2/5;grid-column:1;align-self:start;margin-top:14px}.resources{grid-column:2;margin-top:14px;gap:6px;font-size:19px;padding:8px 10px}.resources span{font-size:13px}.crew-rail h3{grid-column:2;margin-top:12px;font-size:18px}.turn-help{grid-column:2;margin:5px 0 10px;min-height:0;font-size:12px}.wide{grid-column:2;padding:10px 5px;font-size:15px}.log-section{grid-column:1/-1;margin-top:22px;padding-top:15px}.log-section h2{font-size:31px}.flight-log{max-height:140px;font-size:14px;min-height:60px;margin-top:12px}.notice{grid-column:1/-1;margin-top:8px;min-height:0}.crew-row{font-size:15px;padding:10px 9px}.crew-row small{font-size:12px}.lobby{gap:12px;padding-top:20px}.lobby-field{gap:8px}.lobby input{width:130px;font-size:16px}.lobby label{font-size:14px}.lobby select{font-size:16px}.lobby .code-field{flex:1}#matchCode{flex:1;width:110px}.lobby .primary,.lobby .dark{font-size:15px;padding:11px 13px}.lobby #startButton{flex:1}dialog{padding:25px}dialog h2{font-size:35px}dialog p,dialog li{font-size:15px}.api-page{padding-inline:18px}.api-page table{font-size:13px}.api-page td,.api-page th{padding:7px}.api-page h1{font-size:42px}}
@media(min-width:851px) and (max-height:850px){.shell{padding-top:8px;padding-bottom:12px}.masthead{min-height:62px;padding-bottom:7px}.wordmark{font-size:55px}.masthead nav,.masthead .text-button{font-size:18px}.play-layout{margin-top:17px;min-height:0;gap:22px}.play-area{padding-top:4px;padding-bottom:35px}h1{font-size:46px}.intro{font-size:18px;margin-top:6px}.round-strip{margin-top:20px;min-height:42px;font-size:16px}.round-strip strong{font-size:24px;padding:8px 18px}.round-strip span{padding:8px 18px}.station-grid{margin-top:18px;gap:12px}.station{min-height:174px;padding:8px}.station-icon{width:46px;height:46px;margin-bottom:2px}.station h2{font-size:27px}.station .effect{font-size:16px;margin-top:5px;min-height:22px}.station .capacity{font-size:14px;margin-top:2px}.station .action-hint{font-size:14px;min-height:27px;padding:4px 12px;margin-top:6px}.station .action-hint.quiet{font-size:12px;padding:4px 0}.match-toolbar{padding-top:10px;font-size:13px}.crew-rail{padding-top:1px;padding-bottom:15px}.crew-rail h2{font-size:35px}.crew-list{margin-top:14px}.crew-row{min-height:42px;padding:9px 13px;font-size:18px}.crew-row b{font-size:21px}.resources{margin-top:18px;padding:10px 12px;font-size:20px}.resources span{font-size:15px}.crew-rail h3{margin-top:20px;font-size:23px}.turn-help{font-size:13px;margin:7px 0 10px;min-height:32px}.wide{padding:12px;font-size:18px}.log-section{margin-top:20px;padding-top:13px}.log-section h2{font-size:31px}.flight-log{margin-top:12px;max-height:110px;min-height:60px;font-size:13px}.notice{font-size:12px;margin-top:9px;min-height:0}.lobby{min-height:64px;padding:15px 0 0;gap:14px}.lobby label{font-size:15px}.lobby input{width:145px;font-size:16px;min-height:36px}.lobby select{font-size:16px;min-height:36px}.lobby .primary,.lobby .dark{font-size:16px;padding:10px 14px;min-height:38px}.code-field{padding-left:16px}#matchCode{width:135px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;scroll-behavior:auto!important}}
