@font-face{font-family:Exo;src:url('/exo2.ttf') format('truetype');font-weight:100 900;font-display:swap}
:root{color-scheme:dark;font-family:Exo,Arial,sans-serif;color:#f0eee3;background:#090f17}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{display:flex;flex-direction:column}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:#f0eee3;background:#101f2a;border:1px solid #47606d;padding:9px 15px;min-height:40px}button:hover{border-color:#f4b264}button:focus-visible,a:focus-visible{outline:2px solid #f4b264;outline-offset:3px}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.topbar{display:flex;justify-content:space-between;align-items:center;gap:18px;min-height:60px;padding:8px 22px;border-bottom:1px solid #47606d55}.topbar>a{font-size:14px;letter-spacing:.04em;white-space:nowrap}.topbar>a:first-letter{color:#f4b264}.topbar>div{display:flex;gap:8px}.topbar button{font-size:11px}.preview-label{color:#f4b264;font-size:9px;letter-spacing:.15em}#game-stage{position:relative;flex:1;min-height:0;width:100%;background:#090f17;overflow:hidden}#canvas{display:block;width:100%;height:100%;outline:none;touch-action:none}#loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;text-align:center;background:#090f17 url('/first_signal.webp') center/cover no-repeat;overflow:auto}.loading-shade{position:absolute;inset:0;background:linear-gradient(#090f17a8,#090f1766 45%,#090f17d9);pointer-events:none}.loading-content{position:relative;padding:30px 22px;max-width:980px;width:100%;text-shadow:0 2px 20px #0009}.eyebrow{color:#f4b264;letter-spacing:.22em;font-size:11px}h1{font-size:clamp(46px,9vw,120px);letter-spacing:-.045em;line-height:1.1;margin:12px 0;font-weight:900}.tagline{font-size:12px;letter-spacing:.14em}#start-button{margin:24px 0 8px;background:#f4b264;border-color:#f4b264;color:#111b22;font-weight:700;min-height:55px;padding:15px 32px;letter-spacing:.07em;font-size:14px}#start-button span{margin-left:25px;font-size:20px}.loading-note{font-size:13px;line-height:1.7;color:#d1dde1;margin-top:22px}.download-note{font-size:11px;color:#a5bdc6;line-height:1.7}#progress-area{margin:30px auto 0;max-width:380px}progress{width:100%;height:5px;accent-color:#f4b264;border:0;background:#47606d}progress::-webkit-progress-bar{background:#47606d}progress::-webkit-progress-value{background:#f4b264}#status{font-size:13px;color:#f0eee3}#failure{background:#2a171ddd;border:1px solid #e58e7c;padding:15px;white-space:pre-wrap;font-size:14px;line-height:1.6}#retry-button{margin:10px}footer{display:flex;justify-content:space-between;gap:20px;align-items:center;min-height:35px;padding:8px 22px;font-size:9px;color:#a5bdc6;border-top:1px solid #47606d55}footer b{color:#f4b264;margin:0 10px}#portrait-hint{display:none;position:absolute;inset:0;z-index:4;background:#090f17ed;align-items:center;justify-content:center;flex-direction:column;text-align:center}#portrait-hint>span{font-size:65px;color:#f4b264}#portrait-hint p{font-size:24px;line-height:1.5}#portrait-hint small{font-size:14px;color:#a5bdc6}dialog{width:min(570px,calc(100vw - 30px));max-height:calc(100svh - 30px);background:#101f2a;border:1px solid #47606d;color:#f0eee3;padding:25px;line-height:1.7}dialog::backdrop{background:#030810dd}.help-heading{display:flex;justify-content:space-between;align-items:center;gap:15px}.help-heading h2{font-size:23px;line-height:1.2;margin:0}.help-heading button{font-size:20px;flex-shrink:0}dl{display:grid;grid-template-columns:70px 1fr;gap:14px;margin:25px 0}dt{color:#f4b264;font-weight:600}dd{margin:0;color:#c1d1d8;font-size:14px}dialog>p{font-size:12px;color:#a5bdc6}.help-note{border-top:1px solid #47606d66;padding-top:15px}kbd{font:inherit;color:#f0eee3;border:1px solid #47606d;padding:0 4px}#game-stage:fullscreen{width:100vw;height:100vh}#game-stage:-webkit-full-screen{width:100vw;height:100vh}@media(max-width:760px){.topbar{padding:6px 12px;min-height:48px;gap:10px}.topbar>a{font-size:12px}.preview-label{display:none}.topbar button{min-height:34px;font-size:10px;padding:7px 10px}footer{min-height:26px;padding:5px 12px;font-size:8px;justify-content:center}footer>span:first-child{display:none}.loading-content{padding:18px}.eyebrow{font-size:9px}.tagline{font-size:9px}#start-button{margin:14px 0 0;min-height:45px;font-size:12px;padding:10px 25px}.loading-note{font-size:11px;margin-top:13px}.download-note{font-size:9px}#progress-area{margin-top:18px}}@media(max-height:550px){.topbar{min-height:40px}.topbar button{min-height:30px;padding:5px 12px}.loading-content{padding:12px}h1{font-size:clamp(40px,7vw,72px);margin:5px 0}.eyebrow{margin:4px 0}.loading-note{margin:9px 0;font-size:11px}.download-note{margin:7px 0;font-size:10px}#start-button{margin:10px 0 0;min-height:42px;padding:8px 24px}.tagline{font-size:10px}footer{min-height:26px;padding:5px 12px}#progress-area{margin-top:14px}}@media(orientation:portrait) and (max-width:760px){body.game-running #portrait-hint{display:flex}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}

#android-offer {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px 8px 8px;
  border: 1px solid #47606d;
  background: #101f2af5;
}
#android-offer img { display: block; image-rendering: pixelated; }
#android-store-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; }
#android-store-link:hover { text-decoration: underline; }
#android-store-link .offer-arrow { color: #f4b264; }
@media (max-height: 550px), (max-width: 760px), (pointer: coarse) {
  #android-offer { padding: 0 12px; }
  #android-offer img { display: none; }
}

#android-start-link {
  display: block;
  width: fit-content;
  margin: 4px auto;
  padding: 10px 14px;
  border: 1px solid #8aa5af;
  background: #101f2a;
  font-size: 14px;
  text-shadow: none;
}
#android-start-link:hover { text-decoration: underline; }
.offer-action { max-width: 225px; }
#android-offer-detail { font-size: 15px; line-height: 1.4; margin: 0 0 4px; }
#game-stage.relay-offer { --offer-width: 202px; }
#game-stage.relay-offer #canvas { width: calc(100% - var(--offer-width)); }
#game-stage.relay-offer #android-offer {
  top: 0; right: 0; bottom: 0; width: var(--offer-width);
  flex-direction: column; justify-content: center;
  padding: 14px; text-align: center;
}
@media (max-width: 760px), (max-height: 550px), (pointer: coarse) {
  #game-stage.relay-offer { --offer-height: 50px; }
  #game-stage.relay-offer #canvas { width: 100%; height: calc(100% - var(--offer-height)); }
  #game-stage.relay-offer #android-offer {
    top: auto; left: 0; width: 100%; height: var(--offer-height); padding: 0 12px;
  }
  #game-stage.relay-offer .offer-action { display: flex; gap: 14px; align-items: center; max-width: none; }
  #game-stage.relay-offer #android-offer-detail { font-size: 12px; margin: 0; }
  #game-stage.relay-offer #android-store-link { font-size: 13px; flex-shrink: 0; }
}
