.game-layout{display:grid;grid-template-areas:"top" "play" "bottom";gap:1rem;width:100%;margin:1.25rem auto 2rem;touch-action:manipulation}.game-top,.game-play,.game-bottom{width:100%;max-width:560px;min-width:0;margin-block:0;margin-inline:auto}.game-top{grid-area:top;display:flex;flex-direction:column;gap:.75rem}.game-play{grid-area:play;display:flex;flex-direction:column;gap:.35rem}.game-bottom{grid-area:bottom;display:flex;flex-direction:column;gap:.75rem}.game-top>section,.game-play>section,.game-bottom>section{margin-block:0}@media(min-width:900px){.game-layout{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);grid-template-areas:"play top" "play bottom";gap:1.5rem 2rem;align-items:start}.game-top,.game-bottom{max-width:none;margin-inline:0}.game-play{max-width:560px;margin-inline:0}}.game-layout.game-layout--single{grid-template-columns:minmax(0,1fr);grid-template-areas:"top" "play" "bottom";gap:1rem}.game-layout.game-layout--single .game-top,.game-layout.game-layout--single .game-play,.game-layout.game-layout--single .game-bottom{max-width:560px;margin-inline:auto}@media(min-width:900px){.game-layout.game-layout--single{max-width:800px;margin-inline:auto}.game-layout.game-layout--single .game-top,.game-layout.game-layout--single .game-play,.game-layout.game-layout--single .game-bottom{max-width:none}}.game-sound-controls{display:flex;gap:.4rem;width:100%}.game-mute{flex:1 1 0;display:inline-flex;align-items:center;justify-content:center;gap:.35rem;min-width:0;margin:0;padding-block:.5rem;font-size:clamp(.76rem,3vw,.86rem)}.game-mute.is-muted{color:var(--pico-muted-color, var(--muted-color))}.game-tabs{display:flex;gap:.4rem;width:100%}.game-tab{flex:1 1 0;min-width:0;margin:0;padding-block:.55rem;font-size:clamp(.78rem,3.2vw,.92rem);font-weight:700;border-radius:var(--pico-border-radius, var(--border-radius, .25rem));background:#f1f5f9;border:1px solid #cbd5e1;color:#1f2937;box-shadow:none}.game-tab.is-active{background:var(--pico-primary-background, var(--primary, #1095c1));border-color:var(--pico-primary-background, var(--primary, #1095c1));color:#fff}.g1-layout{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;--g1-width: min(100%, var(--g1-max-width, 540px), calc((100dvh - 320px)*.75) );--g1-width: min(100%, var(--g1-max-width, 540px), calc((100svh - 320px)*.75) );max-width:1100px}@media(max-width:899px){.g1-layout{--g1-width: min(100%, var(--g1-max-width, 540px))}}.page-game1 .back-nav{margin-bottom:.75rem}.page-game1 .hero-header{padding:.75rem 0}.page-game1 .hero-header h1{margin-bottom:.35rem;font-size:clamp(1.35rem,4vw,1.7rem);line-height:1.25}.page-game1 .hero-header .tag{padding:.12rem .45rem;font-size:.65rem}.page-game1 .hero-header p{margin-bottom:0;font-size:clamp(.78rem,2.8vw,.9rem);line-height:1.5}@media(max-width:600px){.page-game1 .back-nav{margin-bottom:.4rem}.page-game1 .hero-header{padding:.35rem 0 .5rem}.page-game1 .hero-header p{display:none}}.g1-scoreboard{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.35rem;width:100%;max-width:var(--g1-width);margin-inline:auto}.g1-score-box{min-width:0;padding:.45rem .3rem;text-align:center;background:var(--pico-card-background-color);border:1px solid var(--pico-card-border-color, var(--pico-muted-border-color));border-radius:var(--pico-border-radius);box-shadow:var(--pico-card-box-shadow)}.g1-label{display:block;font-size:clamp(.58rem,2.4vw,.66rem);letter-spacing:.06em;color:var(--pico-muted-color)}.g1-value{display:block;overflow:hidden;font-size:clamp(.95rem,4vw,1.25rem);font-weight:700;line-height:1.25;color:var(--pico-color);text-overflow:ellipsis;white-space:nowrap;font-variant-numeric:tabular-nums}.g1-lives{color:#ef4444;letter-spacing:.02em}.g1-meta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.25rem .5rem;width:100%;max-width:var(--g1-width);margin-inline:auto;font-size:clamp(.68rem,2.7vw,.78rem);color:var(--pico-muted-color)}.g1-best{font-variant-numeric:tabular-nums;white-space:nowrap}.g1-badge{padding:.1rem .4rem;font-size:.65rem;font-weight:700;color:#0f172a;background:#fbbf24;border-radius:999px}.g1-stage{width:var(--g1-width);-webkit-tap-highlight-color:transparent;max-width:none;aspect-ratio:3 / 4;margin-inline:auto;overflow:hidden;background:#0d1117;border:2px solid var(--pico-muted-border-color);border-radius:calc(var(--pico-border-radius) * 1.3);box-shadow:0 10px 30px #0206174d}#gameCanvas{display:block;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;width:100%;height:100%;aspect-ratio:3 / 4;vertical-align:middle;touch-action:none}#gameCanvas:focus{outline:none}#gameCanvas:focus-visible{outline:2px solid #38bdf8;outline-offset:-2px}@media(hover:hover)and (pointer:fine){#gameCanvas{cursor:none}}.g1-overlay{position:absolute;inset:0;z-index:12;display:flex;align-items:center;justify-content:center;padding:6%;background:#020617b3;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.g1-start-card,.g1-pause-card{width:100%;max-width:300px;padding:clamp(.9rem,4vw,1.2rem);text-align:center;color:#f8fafc;background:#0f172af0;border:1px solid rgba(148,163,184,.35);border-radius:calc(var(--pico-border-radius) * 1.2);box-shadow:0 14px 34px #0006}.g1-start-card h2{margin:.1rem 0 .15rem;font-size:clamp(1.05rem,4.4vw,1.3rem);color:#f8fafc;white-space:nowrap}.g1-kicker{margin:0;font-size:clamp(.62rem,2.6vw,.72rem);font-weight:700;letter-spacing:.16em;color:#38bdf8}.g1-start-date{margin:0 0 .4rem;font-size:clamp(.8rem,3.4vw,.95rem);font-weight:700;color:#fbbf24}.g1-start-route{display:inline-block;margin:0 0 .45rem;padding:.12rem .65rem;font-size:clamp(.7rem,2.8vw,.8rem);font-weight:700;color:#bae6fd;background:#38bdf829;border:1px solid rgba(56,189,248,.55);border-radius:999px}.g1-start-lead{margin:0 0 .8rem;font-size:clamp(.72rem,3vw,.84rem);line-height:1.55;color:#cbd5e1}.g1-start-card small{display:block;margin-top:.5rem;font-size:.65rem;color:#94a3b8}.g1-start-button{width:100%;-webkit-tap-highlight-color:transparent;touch-action:manipulation;min-height:44px;margin:0;font-weight:700;color:#0f172a;background:#38bdf8;border-color:#38bdf8}.g1-pause-card button{width:100%;margin:.25rem 0;min-height:44px}.g1-stage-clear{position:absolute;inset:0;z-index:13;display:flex;align-items:center;justify-content:center;pointer-events:none}.g1-stage-clear span{padding:.5rem 1rem;font-size:clamp(1rem,4.4vw,1.3rem);font-weight:700;color:#f8fafc;background:#020617c7;border:1px solid rgba(56,189,248,.55);border-radius:999px}.g1-status{margin:.15rem 0 0;min-height:1.4em;font-size:clamp(.72rem,3vw,.84rem);font-weight:700;text-align:center;color:var(--pico-muted-color)}.g1-pointer-note{margin:0;font-size:clamp(.62rem,2.6vw,.72rem);text-align:center;color:#38bdf8}.g1-confetti{position:absolute;inset:0;z-index:10;overflow:hidden;pointer-events:none}.g1-confetti-piece{position:absolute;top:-20px;left:var(--x, 50%);display:block;border-radius:2px;opacity:0;animation:g1-confetti-fall var(--duration, 2.2s) linear var(--delay, 0s) forwards;will-change:transform,opacity}@keyframes g1-confetti-fall{0%{transform:translateZ(0) rotate(0);opacity:0}12%{opacity:1}85%{opacity:1}to{transform:translate3d(var(--drift, 0px),var(--fall, 600px),0) rotate(var(--spin, 360deg));opacity:0}}.g1-confetti-piece.is-static{top:45%;animation:g1-confetti-fade 1.4s ease forwards}@keyframes g1-confetti-fade{0%{opacity:0;transform:scale(.6)}25%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.9)}}.g1-controls{display:flex;flex-wrap:wrap;gap:.4rem;width:100%;max-width:var(--g1-width);margin-inline:auto}.g1-controls button{-webkit-tap-highlight-color:transparent;flex:1 1 0;touch-action:manipulation;min-width:0;min-height:44px;margin:0}.page-game1 .game-sound-controls{max-width:var(--g1-width);margin-inline:auto;touch-action:manipulation}.g1-help,.g1-debug{width:100%;padding:.65rem .8rem;background:var(--pico-card-background-color);border:1px solid var(--pico-card-border-color, var(--pico-muted-border-color));border-radius:var(--pico-border-radius)}.g1-help summary,.g1-debug summary{cursor:pointer;font-weight:700}.g1-help-body{padding-top:.4rem}.g1-help h3{margin:.8rem 0 .3rem;font-size:clamp(.82rem,3.2vw,.95rem)}.g1-help ul{margin:0;padding-left:1.2rem;font-size:clamp(.72rem,2.9vw,.84rem);line-height:1.6}.g1-help kbd{font-size:.85em}.g1-legend-table{width:100%;margin:.35rem 0 0;border-collapse:collapse;table-layout:fixed;font-size:clamp(.68rem,2.7vw,.8rem);line-height:1.5}.g1-legend-table th,.g1-legend-table td{padding:.32rem .3rem;text-align:left;vertical-align:middle;border-bottom:1px solid var(--pico-muted-border-color);overflow-wrap:anywhere}.g1-legend-table thead th{font-size:.9em;font-weight:600;color:var(--pico-muted-color)}.g1-legend-table tbody th{font-weight:600}.g1-legend-table thead th:first-child,.g1-legend-table tbody td:first-child{width:4.6rem;padding-inline:.1rem;text-align:center;white-space:nowrap}.g1-legend-table tbody tr:last-child th,.g1-legend-table tbody tr:last-child td{border-bottom:0}.g1-icon{display:inline-flex;align-items:center;justify-content:center;width:2rem;height:1.4rem;font-size:.66rem;font-weight:800;line-height:1;color:#0f172a;background:var(--icon-color, #94a3b8);border-radius:3px;box-shadow:inset 0 2px #ffffff59,inset 0 -2px #00000029}.g1-icon+.g1-icon{margin-left:.15rem}.g1-icon-item{border-radius:999px}.g1-icon-dark{color:#f8fafc}.g1-icon-rainbow{background:linear-gradient(90deg,#f43f5e,#facc15,#4ade80,#38bdf8,#a78bfa)}.g1-note{margin:.6rem 0 0;font-size:clamp(.66rem,2.7vw,.76rem);color:var(--pico-muted-color)}.g1-debug{width:100%;max-width:1100px;margin:.25rem auto 1rem;font-size:clamp(.72rem,2.8vw,.82rem);border-style:dashed}.g1-debug-row{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem;margin-top:.45rem}.g1-debug-row label{min-width:3.2em;margin:0}.g1-debug-row input{flex:1 1 8rem;min-width:0;margin:0}.g1-debug-row button{flex:0 0 auto;margin:0}@media(max-width:380px){.g1-scoreboard{grid-template-columns:repeat(2,minmax(0,1fr))}.g1-legend-table{font-size:.66rem}.g1-legend-table thead th:first-child,.g1-legend-table tbody td:first-child{width:4.1rem}.g1-icon{width:1.8rem;height:1.3rem}}@media(min-width:900px){.g1-scoreboard{gap:.5rem}.g1-score-box{padding-block:.55rem}}@media(prefers-reduced-motion:reduce){.g1-confetti-piece{animation-duration:.01s}}
