:root{--g-ink: #eef1f7;--g-muted: #9aa3b8;--g-panel: #141830;--g-line: #2b3048;--g-gold: #ffd76a;--g-red: #e05a4a;--g-pixel: "Silkscreen", monospace;--g-text: "Rubik", system-ui, sans-serif}*{box-sizing:border-box;margin:0}html,body{height:100%;background:#070814;color:var(--g-ink);font-family:var(--g-text);overflow:hidden;overscroll-behavior:none}.game{position:fixed;inset:0;touch-action:none;user-select:none}.game-canvas{position:absolute;inset:0;display:block;image-rendering:pixelated}.game-hud{position:absolute;top:16px;left:16px;pointer-events:none;text-shadow:2px 2px 0 #070814}.game-name{font-family:var(--g-pixel);font-size:clamp(1rem,2.6vw,1.6rem);font-weight:700}.game-help{margin-top:4px;font-family:var(--g-pixel);font-size:.78rem;color:var(--g-muted)}.game-home{padding:8px 12px;border:2px solid var(--g-ink);color:var(--g-ink);font-family:var(--g-pixel);text-decoration:none}.game-classic{position:absolute;top:16px;right:16px;padding:8px 12px;border:2px solid var(--g-line);background:#10121fd9;color:var(--g-ink);font-family:var(--g-pixel);font-size:.95rem;text-decoration:none}.game-classic:hover{border-color:var(--g-ink)}.game-intro{position:absolute;left:50%;top:22%;transform:translate(-50%);text-align:center;font-family:var(--g-pixel);font-size:clamp(1rem,2.4vw,1.35rem);text-shadow:2px 2px 0 #070814;pointer-events:none;animation:g-blink 2.4s ease-in-out infinite;width:max-content;max-width:calc(100% - 32px)}.game-intro-small{margin-top:6px;font-size:.8em;color:var(--g-muted)}@keyframes g-blink{50%{opacity:.55}}.game-prompt{position:absolute;left:50%;bottom:32px;transform:translate(-50%);padding:10px 16px;border:2px solid var(--g-ink);background:#10121fe6;color:var(--g-ink);font-family:var(--g-pixel);font-size:.85rem;cursor:pointer;max-width:calc(100% - 24px);text-align:center}.game-prompt span{margin-left:6px;color:var(--g-gold)}.game-backdrop{position:absolute;inset:0;background:#07081459}.game-panel{touch-action:pan-y;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:min(560px,calc(100% - 32px));max-height:calc(100% - 48px);overflow-y:auto;scrollbar-width:thin;scrollbar-color:#3a3f5c transparent;padding:20px 20px 18px;border:9px solid transparent;border-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='27' height='27' shape-rendering='crispEdges'%3E%3Crect x='9' y='0' width='9' height='3' fill='%23eef1f7'/%3E%3Crect x='9' y='3' width='9' height='6' fill='%23141830'/%3E%3Crect x='9' y='24' width='9' height='3' fill='%23eef1f7'/%3E%3Crect x='9' y='18' width='9' height='6' fill='%23141830'/%3E%3Crect x='0' y='9' width='3' height='9' fill='%23eef1f7'/%3E%3Crect x='3' y='9' width='6' height='9' fill='%23141830'/%3E%3Crect x='24' y='9' width='3' height='9' fill='%23eef1f7'/%3E%3Crect x='18' y='9' width='6' height='9' fill='%23141830'/%3E%3Crect x='9' y='9' width='9' height='9' fill='%23141830'/%3E%3Crect x='6' y='3' width='3' height='3' fill='%23eef1f7'/%3E%3Crect x='3' y='6' width='3' height='3' fill='%23eef1f7'/%3E%3Crect x='6' y='6' width='3' height='3' fill='%23141830'/%3E%3Crect x='18' y='3' width='3' height='3' fill='%23eef1f7'/%3E%3Crect x='21' y='6' width='3' height='3' fill='%23eef1f7'/%3E%3Crect x='18' y='6' width='3' height='3' fill='%23141830'/%3E%3Crect x='6' y='21' width='3' height='3' fill='%23eef1f7'/%3E%3Crect x='3' y='18' width='3' height='3' fill='%23eef1f7'/%3E%3Crect x='6' y='18' width='3' height='3' fill='%23141830'/%3E%3Crect x='18' y='21' width='3' height='3' fill='%23eef1f7'/%3E%3Crect x='21' y='18' width='3' height='3' fill='%23eef1f7'/%3E%3Crect x='18' y='18' width='3' height='3' fill='%23141830'/%3E%3C/svg%3E") 9 fill;display:flex;flex-direction:column;gap:12px;line-height:1.6;user-select:text}.game-panel h2{font-family:var(--g-pixel);font-size:1.35rem;line-height:1.3;padding-right:36px}.game-panel p{color:#c9cfdc}.game-close{position:sticky;top:0;align-self:flex-end;margin-bottom:-46px;z-index:1;flex-shrink:0;background:var(--g-panel);width:34px;height:34px;border:2px solid var(--g-line);background:none;color:var(--g-ink);font-size:1rem;cursor:pointer}.game-close:hover{border-color:var(--g-ink)}.game-close:focus-visible{outline:2px solid var(--g-ink);outline-offset:2px}.game-back{align-self:flex-start;border:none;background:none;padding:0;color:var(--g-muted);font-family:var(--g-pixel);font-size:.95rem;cursor:pointer}.game-kicker{font-family:var(--g-pixel);font-size:.85rem;color:var(--g-red)!important;margin-bottom:-8px}.game-muted{color:var(--g-muted)!important;font-size:.92rem}.game-strong{font-weight:600;color:var(--g-ink)}.game-right{margin-left:auto}.game-row{display:flex;align-items:center;gap:12px}.game-logo{width:44px;height:44px;padding:6px;background:#fff;object-fit:contain;image-rendering:pixelated}.game-skills{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.game-skill{display:flex;align-items:center;gap:10px;padding:8px 10px;border:2px solid var(--g-line);font-weight:500}.game-skill-detail{display:block;font-size:.78rem;font-weight:400;color:var(--g-muted)}.game-skill img{width:20px;height:20px;object-fit:contain}.game-list{display:flex;flex-direction:column;gap:8px}.game-list>*{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:10px 12px;border:2px solid var(--g-line);background:none;color:inherit;font:inherit;text-align:left;text-decoration:none;cursor:pointer;overflow-wrap:anywhere}.game-list>*:hover{border-color:var(--g-ink)}.game-links a:hover,.game-links button:hover,.game-links button:focus-visible{border-color:var(--g-ink)}.game-photos{display:grid;grid-template-columns:1fr 1fr;gap:8px}.game-photos img{width:100%;aspect-ratio:4 / 3;object-fit:cover;border:2px solid var(--g-line)}.game-links{display:flex;flex-wrap:wrap;gap:8px}.game-links a,.game-links button{padding:8px 14px;background:var(--g-red);font-size:.85rem;cursor:pointer;border:2px solid var(--g-red);color:#fff;font-family:var(--g-pixel);text-decoration:none}@media(prefers-reduced-motion:reduce){.game-intro{animation:none}}.game-loader{position:absolute;inset:0;z-index:20;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;background:#070814;transition:opacity .6s ease}.game-loader.is-done{opacity:0;pointer-events:none}.game-loader-ship{animation:g-hover 1.6s ease-in-out infinite}.game-loader-flame{animation:g-flame .18s steps(2) infinite}@keyframes g-hover{50%{transform:translateY(-8px)}}@keyframes g-flame{50%{opacity:.2}}.game-loader-title{font-family:var(--g-pixel);font-size:clamp(1.5rem,4vw,2.2rem);font-weight:700}.game-loader-bar{display:flex;gap:4px;padding:6px;border:3px solid var(--g-ink)}.game-loader-bar span{width:10px;height:16px;background:#1c2034}.game-loader-bar span.is-on{background:var(--g-ink)}.game-loader-text{font-family:var(--g-pixel);font-size:1rem;color:var(--g-muted)}@media(max-width:420px){.game-loader-bar span{width:8px}}@media(prefers-reduced-motion:reduce){.game-loader,.game-loader-ship,.game-loader-flame{animation:none;transition:none}}.game-result{text-align:center;align-items:center}.game-result h2{padding-right:0;font-size:2.6rem}.game-result .game-links{justify-content:center}@media(max-width:400px){.game-classic{font-size:.8rem;padding:6px 8px}.game-hud{max-width:calc(100% - 170px)}}.game-abandon{border-color:#ff5b4a;left:16px;bottom:16px;transform:none}.pd{display:flex;flex-direction:column;align-items:stretch;width:100%}.pd-title{font-family:var(--g-pixel);font-size:clamp(1.1rem,4.2vw,1.6rem);padding:0 34px;text-align:center;color:var(--g-gold)!important;text-shadow:3px 3px 0 #3a2a10}.pd-sub{text-align:center;font-size:.85rem;color:var(--g-muted)!important;margin:4px 0 18px}.pd-steps{display:flex;align-items:flex-end;justify-content:center;gap:10px}.pd-step{position:relative;display:flex;flex-direction:column;align-items:center;width:33%;max-width:120px}.pd-ship{animation:g-hover 1.8s ease-in-out infinite}.pd-s2 .pd-ship{animation-delay:.3s}.pd-s3 .pd-ship{animation-delay:.6s}.pd-ship.is-ghost{opacity:.25;animation:none}.pd-name{font-family:var(--g-pixel);font-size:1.3rem;letter-spacing:.2em;margin:6px 0 0 .2em}.pd-s1 .pd-name{font-size:1.6rem;color:#fff3c4}.pd-time{font-family:var(--g-pixel);font-size:.85rem;color:var(--g-muted);margin-bottom:6px}.pd-block{width:100%;display:grid;place-items:center;font-family:var(--g-pixel);font-size:1.7rem;color:#10121f;box-shadow:inset -4px -4px #00000040,inset 4px 4px #ffffff40}.pd-s1 .pd-block{height:92px;background:#ffd76a}.pd-s2 .pd-block{height:66px;background:#d6dbe5}.pd-s3 .pd-block{height:46px;background:#e09a5a}.game-result-actions{justify-content:center;margin-bottom:4px}.pd-rank{margin-top:12px;text-align:center;color:#7dff8a!important;font-family:var(--g-pixel);font-size:.85rem}.pd-rest{list-style:none;padding:0;margin:14px 0 0;display:grid;grid-template-rows:repeat(4,auto);grid-auto-flow:column;grid-auto-columns:1fr;gap:6px}@media(max-width:480px){.pd-rest{grid-template-rows:none;grid-auto-flow:row}}.pd-rest li{display:flex;justify-content:space-between;align-items:center;padding:6px 10px;border:2px solid var(--g-line);font-family:var(--g-pixel);font-size:.85rem}.pd-rest li.is-empty{color:#5d6380}.pd-rank{color:var(--g-muted);margin-right:12px}.pd-step.is-you .pd-block,.pd-rest li.is-you{outline:3px solid #7dff8a;outline-offset:2px;animation:lb-you 1.2s ease-in-out infinite}.pd-you{margin-bottom:8px;padding:1px 6px;background:#7dff8a;color:#0b1a10;font-family:var(--g-pixel);font-size:.8rem}.pd-you-inline{position:static;margin-left:10px}@keyframes lb-you{50%{box-shadow:0 0 0 4px #7dff8a40}}.lb-congrats{font-family:var(--g-pixel);color:#7dff8a!important;text-align:center}.lb-cta{text-align:center}.game-lb-panel{width:min(520px,calc(100% - 24px))}.ne{display:flex;flex-direction:column;align-items:center;gap:12px;width:100%;outline:none}.ne-title{font-family:var(--g-pixel);font-size:1.4rem;color:#7dff8a!important;text-align:center}.ne-sub,.ne-hint{text-align:center}.ne-hint{font-size:.85rem;color:var(--g-muted)!important}.ne-slots{display:flex;gap:12px}.ne-slot{display:flex;flex-direction:column;align-items:center;gap:6px}.ne-slot button{border:2px solid var(--g-line);background:none;color:var(--g-ink);font-family:var(--g-pixel);cursor:pointer;width:64px;height:40px;font-size:1rem;touch-action:manipulation}.ne-slot .ne-letter{height:76px;font-size:2.6rem;font-weight:700;background:#0c0e1a}.ne-slot.is-active .ne-letter{border-color:#7dff8a;color:#7dff8a;animation:lb-you 1s ease-in-out infinite}.ne-slot button:hover{border-color:var(--g-ink)}.ne-error{color:#ff8a7a!important;text-align:center;font-size:.92rem}.game-links button:disabled{opacity:.5;cursor:default}@media(max-width:400px){.pd-name{font-size:1.05rem;letter-spacing:.12em}.pd-s1 .pd-name{font-size:1.25rem}.ne-slot button{width:56px}}@media(prefers-reduced-motion:reduce){.pd-ship,.pd-step.is-you .pd-block,.pd-rest li.is-you,.ne-slot.is-active .ne-letter{animation:none}}@media(max-width:480px){.game-panel h2{font-size:1.05rem}}.pd-compact .pd-sub{display:none}.pd-compact .pd-title{font-size:clamp(1rem,3.6vw,1.3rem)}.pd-compact .pd-steps{margin-top:8px}.pd-compact .pd-s1 .pd-block{height:56px}.pd-compact .pd-s2 .pd-block{height:40px}.pd-compact .pd-s3 .pd-block{height:30px}.pd-compact .pd-block{font-size:1.15rem}.tas-records{list-style:none;padding:0;margin-top:12px;display:grid;gap:2px}.tas-records li{display:grid;grid-template-columns:2.2em 1fr auto;gap:8px;padding:5px 8px;background:#ffffff08;font-family:var(--g-pixel);font-size:.95rem}.tas-records li.is-you{outline:2px solid var(--g-ink)}.tas-records li.is-empty,.tas-rank{color:var(--g-muted)}.tas-records li:nth-child(1) .tas-rank{color:#ffd76a}.tas-records li:nth-child(2) .tas-rank{color:#d6dbe5}.tas-records li:nth-child(3) .tas-rank{color:#e09a5a}.tas-time{font-variant-numeric:tabular-nums}.tas-rules h3{margin:18px 0 6px;font-family:var(--g-pixel);font-size:1rem}.tas-rules code{padding:1px 4px;background:#ffffff0f;font-size:.88em;color:var(--g-ink)}
