/* Pigeon Dome: the Awan Ventures look (pixel sky, drifting clouds, Haskoy, navy ink, Courier labels,
   stepped-corner tiles) around a full-screen canvas. */
:root{--ink:#183f62;--muted:#406684;--rule:#5284ac33;--sun:#ffd575;--step:polygon(8px 0,calc(100% - 8px) 0,calc(100% - 8px) 8px,100% 8px,100% calc(100% - 8px),calc(100% - 8px) calc(100% - 8px),calc(100% - 8px) 100%,8px 100%,8px calc(100% - 8px),0 calc(100% - 8px),0 8px,8px 8px);--step4:polygon(4px 0,calc(100% - 4px) 0,calc(100% - 4px) 4px,100% 4px,100% calc(100% - 4px),calc(100% - 4px) calc(100% - 4px),calc(100% - 4px) 100%,4px 100%,4px calc(100% - 4px),0 calc(100% - 4px),0 4px,4px 4px)}
html,body{margin:0;height:100%;overflow:hidden;overscroll-behavior:none;position:fixed;inset:0;width:100%;background:#d8edff;color:var(--ink);font-family:Haskoy,Arial,sans-serif;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;touch-action:none}
[hidden]{display:none!important}
.sky{position:fixed;inset:0;overflow:hidden;background:linear-gradient(180deg,#93c6f3 0%,#bddffe 50%,#e9f5ff 100%);pointer-events:none}
.pixel-sun{position:absolute;width:80px;height:80px;top:9%;left:calc(50% + 260px)}
.cloud{position:absolute;width:240px;height:96px;--drift:38px;animation:cloud-drift 22s ease-in-out infinite alternate}
.cloud-a{top:16%;right:calc(50% + 225px);animation-delay:-5.5s}
.cloud-b{top:40%;left:calc(50% + 285px);width:300px;height:120px;--drift:-46px;animation-duration:28s;animation-delay:-11s}
.cloud-c{top:62%;right:calc(50% + 305px);width:330px;height:132px;opacity:.8;--drift:54px;animation-duration:32s;animation-delay:-20s}
.sky.paused .cloud{animation-play-state:paused}
@keyframes cloud-drift{from{transform:translateX(calc(var(--drift) * -.5))}to{transform:translateX(var(--drift))}}
@media(max-width:700px){.pixel-sun{width:48px;height:48px;left:auto;right:20px;top:64px}.cloud-a{right:auto;left:-142px;top:120px;width:192px;height:77px;--drift:18px}.cloud-b{left:auto;right:-150px;top:320px;width:220px;height:88px;--drift:-18px}.cloud-c{right:auto;left:-152px;top:auto;bottom:34%;width:224px;height:90px;--drift:24px}}
#canvas{position:fixed;inset:0;width:100%;height:100%;display:block;cursor:crosshair;touch-action:none}

.label{margin:0;font:11px/1 'Courier New',monospace;letter-spacing:1.6px;text-transform:uppercase;color:var(--ink);font-variant-numeric:tabular-nums}
.hud{position:fixed;inset:0;pointer-events:none}
.btns{position:absolute;top:max(12px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right));display:flex;gap:8px;pointer-events:auto}
.tile{appearance:none;border:0;width:40px;height:40px;display:grid;place-items:center;background:#fff;color:var(--ink);clip-path:var(--step4);cursor:pointer;padding:0}
.tile svg{width:20px;height:20px;fill:currentColor}
.tile:focus-visible{outline:none;background:var(--sun)}
.flock,.score{position:absolute;bottom:max(16px,env(safe-area-inset-bottom))}
.flock{left:max(18px,env(safe-area-inset-left))}
.score{right:max(18px,env(safe-area-inset-right));display:flex;gap:10px;align-items:baseline}
.combo{color:#ab6d13;font-weight:700}

.banner{position:fixed;left:0;right:0;top:21%;text-align:center;pointer-events:none;padding:0 24px;animation:banner 2.6s ease both}
.banner .label{color:var(--muted)}
.banner-t{margin:10px 0 6px;font-size:30px;font-weight:600;letter-spacing:-.9px;line-height:1.15}
.banner-b{margin:0 auto;max-width:300px;font-size:15px;color:var(--muted);line-height:1.4}
.banner-b:empty{display:none}
@keyframes banner{0%{opacity:0;transform:translateY(8px)}12%,78%{opacity:1;transform:none}100%{opacity:0}}

.overlay{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;padding:16px;background:#d8edff8c;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);z-index:10;text-align:center;overflow:auto;touch-action:auto}
.card{width:100%;max-width:340px;background:#fff;clip-path:var(--step);padding:30px 24px 26px;display:flex;flex-direction:column;align-items:center;gap:10px;margin:auto}
.card.wide{max-width:560px}
.card p{margin:0}
.logo-tile{width:64px;height:64px;display:grid;place-items:center;background:#e9f5ff;clip-path:var(--step);margin-bottom:6px}
.logo-tile img{display:block}
h1,h2{margin:0;font-weight:600;letter-spacing:-.9px;line-height:1.15}
h1{font-size:30px}h2{font-size:26px}
.intro{font-size:15px;color:var(--muted);line-height:1.45}
.how{list-style:none;margin:6px 0;padding:0;width:100%;text-align:left;font-size:14px;line-height:1.4}
.how li{padding:9px 0;border-top:1px solid var(--rule)}
.how li:last-child{border-bottom:1px solid var(--rule)}
.how b{font-weight:600}
.cta,.ghost{appearance:none;border:0;font:600 15px Haskoy,Arial,sans-serif;padding:14px 22px;cursor:pointer;clip-path:var(--step4);min-height:48px}
.cta{background:var(--ink);color:#fff;width:100%;margin-top:6px}
.ghost{background:#e9f5ff;color:var(--ink);white-space:nowrap}
.cta:hover{background:#244f78}.cta:focus-visible,.ghost:focus-visible,.choice:focus-visible{outline:3px solid var(--sun);outline-offset:2px}
.row{display:flex;gap:8px;width:100%}.row .cta{margin-top:0}
.small{font-size:12px;color:var(--muted);line-height:1.5}
.choices{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;width:100%;margin-top:6px}
.choice{appearance:none;border:0;background:#e9f5ff;color:var(--ink);font:inherit;clip-path:var(--step4);padding:16px 12px 14px;display:flex;flex-direction:column;align-items:center;gap:6px;cursor:pointer;text-align:center}
.choice:hover{background:#d8edff}
.choice svg{width:40px;height:40px}
.choice b{font-size:15px;font-weight:600;line-height:1.2}
.choice span{font-size:13px;color:var(--muted);line-height:1.35}
.choice small{font:10px 'Courier New',monospace;letter-spacing:1.2px;text-transform:uppercase;color:var(--muted);margin-top:auto}
@media(max-width:520px){.choices{grid-template-columns:1fr}.choice{display:grid;grid-template-columns:44px 1fr;text-align:left;column-gap:12px;row-gap:2px;padding:12px}.choice svg{grid-row:span 3}}
/* The pick screen sits at the top and leaves the cloud clear, so the turret slots under it can be tapped. */
.overlay.choose{align-items:flex-start;background:#d8edff59;-webkit-backdrop-filter:none;backdrop-filter:none;padding-bottom:96px}
.overlay.choose .card{margin:0 auto}
.overlay.choose h2{font-size:24px}
.slots{position:fixed;inset:0;pointer-events:none;z-index:11}
.slot{position:absolute;transform:translate(-50%,-50%);pointer-events:auto;appearance:none;border:0;width:46px;height:46px;padding:0;display:grid;place-items:center;background:#fff;color:var(--ink);clip-path:var(--step4);cursor:pointer;font:700 11px/1 'Courier New',monospace;letter-spacing:1px;text-transform:uppercase;animation:slot 1.6s ease-in-out infinite}
.slot.empty{background:#e9f5ffe6;font:600 24px/1 Haskoy,Arial,sans-serif}
.slot.on{background:var(--sun);animation:none}
.slot:focus-visible{outline:none;background:var(--sun)}
@keyframes slot{50%{transform:translate(-50%,calc(-50% - 4px))}}
@media(max-height:560px){.overlay.choose .card{padding:16px 18px;gap:6px}.choice{padding:10px}.choice svg{width:32px;height:32px}.choice span{font-size:12px}}
.big{font-size:48px;font-weight:600;letter-spacing:-1.5px;line-height:1}
.newbest{color:#ab6d13}
.stats{display:grid;grid-template-columns:1fr 1fr;gap:0;width:100%;margin:6px 0}
.stats div{padding:9px 0;border-top:1px solid var(--rule)}
.stats dt{font:10px 'Courier New',monospace;letter-spacing:1.2px;text-transform:uppercase;color:var(--muted)}
.stats dd{margin:3px 0 0;font-size:18px;font-weight:600}
.debug{position:fixed;left:8px;top:8px;margin:0;font:11px/1.4 'Courier New',monospace;background:#ffffffcc;padding:6px;pointer-events:none;z-index:20}
@media(prefers-reduced-motion:reduce){.cloud{animation:none}.banner{animation:none}.slot{animation:none}}
