:root{--bg-backdrop: #161018;--frame-border: rgba(255, 232, 200, .16);--pill-bg: rgba(26, 16, 28, .72);--pill-border: rgba(255, 236, 210, .18);--cream: #fff6e9;--gold: #ffd15c;--gold-deep: #f59e0b;--berry: #ff4f79;--berry-deep: #c81d4e;--paper: #fbf6eb;--ink: #2b211d;--ink-muted: #6e5b52}*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}html,body{width:100%;height:100%;overflow:hidden;background:radial-gradient(circle at 50% 35%,#2b1d2f,#161018 70%,#0d090f);font-family:Avenir Next,Nunito,Trebuchet MS,system-ui,-apple-system,sans-serif;color:var(--cream);touch-action:none;user-select:none;-webkit-user-select:none}#app{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.game-frame{position:relative;aspect-ratio:9 / 16;height:min(100dvh,calc(100vw * 16 / 9));max-width:100vw;max-height:100dvh;overflow:hidden;border-radius:18px;border:2px solid var(--frame-border);box-shadow:0 24px 70px #000000b3,0 0 0 1px #ffffff0d inset;background:#231820}@media(max-width:520px){.game-frame{border-radius:0;border:none}}#game-canvas{width:100%;height:100%;display:block;touch-action:none;cursor:grab}#game-canvas:active{cursor:grabbing}.hidden{display:none!important}.hud{position:absolute;inset:0 0 auto 0;padding:calc(12px + env(safe-area-inset-top,0px)) calc(12px + env(safe-area-inset-right,0px)) 0 calc(12px + env(safe-area-inset-left,0px));display:flex;justify-content:space-between;align-items:flex-start;gap:8px;pointer-events:none;z-index:10}.hud-left,.hud-right{display:flex;flex-direction:column;gap:6px}.hud-right{align-items:flex-end}.hud-pill{background:var(--pill-bg);border:1px solid var(--pill-border);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border-radius:12px;padding:7px 11px;box-shadow:0 6px 18px #00000047}.hud-progress-pill{min-width:176px}.hud-row{display:flex;align-items:baseline;justify-content:space-between}.hud-layer-text{font-size:16px;font-weight:800;letter-spacing:.02em;color:var(--cream);font-variant-numeric:tabular-nums}.hud-progress-track{width:100%;height:6px;margin:5px 0 4px;background:#ffffff24;border-radius:999px;overflow:hidden}.hud-progress-fill{height:100%;width:0%;background:linear-gradient(90deg,#ff7eb3,#ffd15c);border-radius:999px;transition:width .16s ease-out}.hud-zone-text{font-size:12.5px;font-weight:800;letter-spacing:.09em;color:#ffd9a0;text-transform:uppercase}.hud-score-pill{display:flex;align-items:baseline;gap:7px}.hud-score-label{font-size:12.5px;font-weight:800;letter-spacing:.08em;color:#fff6e9b8}.hud-score-value{font-size:21px;font-weight:900;color:#fff;font-variant-numeric:tabular-nums}.hud-right-sub{display:flex;align-items:center;gap:6px}.hud-combo-badge{background:#22121ed9;border:1px solid rgba(255,209,92,.45);border-radius:10px;padding:5px 11px;display:flex;flex-direction:column;align-items:center;gap:3px;box-shadow:0 4px 14px #0000004d}.hud-combo-badge.is-rush{background:linear-gradient(135deg,#ffc436f5,#ff7648f5);border-color:#fff6c9;box-shadow:0 0 18px #ffd15ca6;animation:rushPulse .65s ease-in-out infinite alternate}.hud-combo-text{font-size:13.5px;font-weight:900;letter-spacing:.06em;color:var(--gold);white-space:nowrap}.hud-combo-badge.is-rush .hud-combo-text{color:#2b1309}.hud-rush-track{width:100%;height:4px;background:#2b130947;border-radius:999px;overflow:hidden}.hud-rush-fill{height:100%;width:100%;background:#fff9db;border-radius:999px}.hud-mute-btn{pointer-events:auto;width:38px;height:38px;border-radius:10px;border:1px solid var(--pill-border);background:var(--pill-bg);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);color:var(--cream);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:transform .12s ease,background .12s ease}.hud-mute-btn:hover{background:#36223ad9}.hud-mute-btn:active{transform:scale(.92)}@keyframes rushPulse{0%{transform:scale(1)}to{transform:scale(1.05)}}.overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;padding:14px;z-index:20}.title-overlay{background:linear-gradient(180deg,#180e1840,#180e188f 55%,#140c14b8)}.title-card{width:100%;max-width:376px;padding:28px 24px 26px;border-radius:24px;background:#221420d6;border:1.5px solid rgba(255,224,185,.28);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);text-align:center;box-shadow:0 22px 50px #00000080,0 1px #ffffff24 inset}.title-badge{display:inline-block;padding:5px 14px;border-radius:999px;background:#ffd15c29;border:1px solid rgba(255,209,92,.35);color:var(--gold);font-size:13px;font-weight:900;letter-spacing:.11em;margin-bottom:12px}.game-title{display:flex;flex-direction:column;align-items:center;line-height:.96;margin-bottom:14px}.title-num{font-size:68px;font-weight:950;letter-spacing:-.03em;background:linear-gradient(180deg,#fff8d6,#ffd15c 48%,#ff8a5b);-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 4px 0 rgba(78,28,18,.7))}.title-main{font-size:28px;font-weight:900;letter-spacing:.04em;color:#fff6e9;text-shadow:0 3px 0 rgba(64,22,36,.75);margin-top:4px}.title-hint{font-size:16px;line-height:1.45;color:#fff6e9e0;margin-bottom:16px}.title-best{display:inline-block;padding:7px 16px;border-radius:999px;background:#ffffff14;border:1px solid rgba(255,255,255,.14);font-size:15px;font-weight:700;color:#ffe3b3;margin-bottom:20px;font-variant-numeric:tabular-nums}.btn-primary{width:100%;border:none;border-radius:16px;padding:16px 22px;font-size:20px;font-weight:900;letter-spacing:.07em;color:#fff;background:linear-gradient(180deg,#ff6b8b,#e02d5c);box-shadow:0 5px #8d1337,0 12px 24px #e02d5c6b;cursor:pointer;transition:transform 90ms ease,box-shadow 90ms ease,filter .12s ease}.btn-primary:hover{filter:brightness(1.06)}.btn-primary:active{transform:translateY(3px);box-shadow:0 2px #8d1337,0 6px 14px #e02d5c59}.receipt-overlay{background:#100a12ad;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);animation:fadeIn .22s ease-out}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.receipt-card{width:100%;max-width:382px;max-height:92%;display:flex;flex-direction:column;filter:drop-shadow(0 22px 36px rgba(0,0,0,.65));animation:receiptPop .28s cubic-bezier(.22,1,.36,1)}@keyframes receiptPop{0%{opacity:0;transform:translateY(20px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}.receipt-edge{height:11px;width:100%;flex-shrink:0;background-size:16px 11px;background-repeat:repeat-x}.receipt-edge-top{background-image:linear-gradient(135deg,transparent 50%,var(--paper) 50%),linear-gradient(225deg,transparent 50%,var(--paper) 50%);background-position:0 0,0 0}.receipt-edge-bottom{background-image:linear-gradient(45deg,transparent 50%,var(--paper) 50%),linear-gradient(315deg,transparent 50%,var(--paper) 50%);background-position:0 0,0 0}.receipt-body{background:var(--paper);color:var(--ink);padding:16px 20px 18px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;overflow-y:auto;border-left:1px solid rgba(120,92,70,.18);border-right:1px solid rgba(120,92,70,.18)}.receipt-card.is-victory .receipt-body{background:linear-gradient(180deg,#fffdf4,#fcf3d6);box-shadow:0 0 0 2px #e4b53c inset}.receipt-shop{text-align:center;font-size:14px;font-weight:800;letter-spacing:.1em;color:var(--ink-muted)}.receipt-status{text-align:center;font-size:23px;font-weight:900;letter-spacing:.04em;color:#b42343;margin-top:3px}.receipt-card.is-victory .receipt-status{color:#b77400}.receipt-meta{text-align:center;font-size:13px;color:var(--ink-muted);margin-top:3px}.receipt-divider{border-top:1.5px dashed rgba(94,72,58,.35);margin:11px 0}.receipt-cake-box{background:#6e523a14;border:1px solid rgba(110,82,58,.16);border-radius:8px;padding:9px 11px;text-align:center;margin-bottom:11px}.receipt-cake-label{font-size:11.5px;font-weight:800;letter-spacing:.12em;color:var(--ink-muted)}.receipt-cake-name{font-family:Avenir Next,Nunito,system-ui,sans-serif;font-size:20px;font-weight:900;line-height:1.25;color:#361e1a;margin:4px 0 3px}.receipt-note{font-size:13px;font-style:italic;color:var(--ink-muted)}.receipt-summary-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.receipt-stat-cell{background:#ffffffa6;border:1px solid rgba(94,72,58,.15);border-radius:8px;padding:7px 4px;text-align:center;display:flex;flex-direction:column;gap:2px}.stat-label{font-size:11.5px;font-weight:800;letter-spacing:.08em;color:var(--ink-muted)}.stat-val{font-size:20px;font-weight:900;color:var(--ink);font-variant-numeric:tabular-nums}.receipt-new-best{margin-top:9px;padding:5px 8px;border-radius:6px;border:1.5px solid #d97706;background:#fbbf2433;color:#9a4d00;text-align:center;font-size:13.5px;font-weight:900;letter-spacing:.08em}.receipt-breakdown{display:flex;flex-direction:column;gap:5px;font-size:13.5px;font-variant-numeric:tabular-nums}.receipt-line{display:flex;justify-content:space-between;align-items:center;gap:8px}.receipt-line-label{color:var(--ink-muted)}.receipt-line-dots{flex:1;border-bottom:1px dotted rgba(94,72,58,.28);height:.65em}.receipt-line-val{font-weight:800;color:var(--ink)}.receipt-barcode{height:24px;width:78%;margin:4px auto 6px;opacity:.72;background:repeating-linear-gradient(90deg,#2b211d 0px,#2b211d 2px,transparent 2px,transparent 4px,#2b211d 4px,#2b211d 5px,transparent 5px,transparent 8px,#2b211d 8px,#2b211d 11px,transparent 11px,transparent 13px)}.receipt-thanks{text-align:center;font-size:12px;letter-spacing:.06em;color:var(--ink-muted);margin-bottom:13px}.btn-receipt{font-family:Avenir Next,Nunito,system-ui,sans-serif;padding:13px 18px;font-size:18px;display:flex;flex-direction:column;align-items:center;gap:2px}.btn-sub{font-size:12px;font-weight:700;letter-spacing:.1em;opacity:.85}.title-actions{display:flex;flex-direction:column;gap:10px}.btn-secondary{width:100%;border:1.5px solid rgba(255,220,175,.28);border-radius:14px;padding:13px 18px;font-size:16px;font-weight:800;letter-spacing:.08em;color:#ffe8c8;background:#fff0da1a;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);box-shadow:0 4px 12px #0000003d;cursor:pointer;transition:transform 90ms ease,background .12s ease,border-color .12s ease}.btn-secondary:hover{background:#fff0da2e;border-color:#ffdcaf73}.btn-secondary:active{transform:translateY(2px)}.guide-overlay{background:#0e0910c7;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);padding:14px;animation:fadeIn .18s ease-out;z-index:30}.guide-card{width:100%;max-width:416px;max-height:90%;display:flex;flex-direction:column;border-radius:20px;background:linear-gradient(180deg,#221522f5,#160d18fa);border:none;box-shadow:0 24px 60px #000000a6;overflow:hidden;animation:receiptPop .22s cubic-bezier(.22,1,.36,1)}.guide-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 20px 10px}.guide-title{font-size:18px;font-weight:900;letter-spacing:.08em;color:#ffd15c}.guide-subtitle{font-size:14px;color:#fff0deb8;margin-top:2px}.guide-close-btn{width:36px;height:36px;flex-shrink:0;border-radius:999px;border:none;background:transparent;color:#fff6ecb8;font-size:24px;line-height:1;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .12s ease,color .12s ease,transform 90ms ease}.guide-close-btn:hover{background:#ffffff1a;color:#fff6e9}.guide-close-btn:active{transform:scale(.92)}.guide-list{flex:1;min-height:0;overflow-y:auto;padding:4px 20px 8px;display:flex;flex-direction:column;gap:0;scrollbar-width:thin;scrollbar-color:rgba(255,214,165,.25) transparent}.guide-list::-webkit-scrollbar{width:6px}.guide-list::-webkit-scrollbar-thumb{background:#ffd6a540;border-radius:999px}.guide-item{display:flex;align-items:center;gap:14px;padding:14px 0;border-bottom:1px solid rgba(255,224,185,.09)}.guide-item:last-child{border-bottom:none}.guide-thumb-wrap{width:100px;height:52px;flex-shrink:0;border-radius:0;background:radial-gradient(ellipse 68% 58% at 50% 54%,rgba(255,224,185,.14) 0%,rgba(255,224,185,.04) 48%,transparent 72%);border:none;display:flex;align-items:center;justify-content:center;overflow:visible}.guide-thumb{width:100px;height:52px;display:block;filter:drop-shadow(0 5px 10px rgba(0,0,0,.42))}.guide-info{flex:1;min-width:0}.guide-item-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:3px}.guide-name{font-size:16px;font-weight:800;color:#fff8ed;line-height:1.2}.guide-tag{flex-shrink:0;font-size:11px;font-weight:900;letter-spacing:.09em;padding:0;border-radius:0;background:none;border:none}.guide-tag.tone-neutral{color:#fde68a}.guide-tag.tone-stabilizer{color:#86efac}.guide-tag.tone-bonus{color:#f0abfc}.guide-tag.tone-heavy{color:#fdba74}.guide-tag.tone-tricky{color:#7dd3fc}.guide-tag.tone-hazard{color:#fca5a5}.guide-stats{font-size:13px;font-weight:700;color:#ffe0b9ad;margin-bottom:3px;font-variant-numeric:tabular-nums}.guide-desc{font-size:13.5px;line-height:1.4;color:#fff6ecd6}.guide-footer{padding:12px 20px 18px;border-top:1px solid rgba(255,224,185,.09);background:transparent;display:flex;flex-direction:column;gap:9px}.guide-tip{font-size:13.5px;line-height:1.4;text-align:center;color:#fde68a;font-weight:600}.hud-tilt-btn.is-active{background:#ffd15c3d;border-color:#ffd15cd9;color:#fde68a;box-shadow:0 0 12px #ffd15c59}.btn-tilt.is-active{background:#ffd15c38;border-color:#ffd15cb8;color:#fef08a;box-shadow:0 4px 16px #fbbf2440}.tilt-status{margin-top:10px;font-size:13px;font-weight:700;line-height:1.35;color:#fde68a;text-align:center}
