:root{--bp-bg-deep: #061b67;--bp-bg-grid: #0a3ec0;--bp-panel: rgba(3, 20, 78, .76);--bp-panel-solid: #08247a;--bp-panel-hi: #126ae8;--bp-cyan: #67f4ff;--bp-gold: #ffd334;--bp-orange: #ff8a22;--bp-text: #eaf8ff;--bp-muted: #a7dfff;--bp-shadow: 0 14px 30px rgba(0, 12, 62, .42);color:var(--bp-text);background:#f6f8fb;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}html,body,#root{min-height:100%;margin:0}body{min-width:320px;background:#f6f8fb;color:#1f2937;overscroll-behavior:auto}body.game-site-mode{background:radial-gradient(circle at 50% 12%,#1767f0,#0a2f99 44%,#04134e);color:var(--bp-text);overscroll-behavior:none}body.game-site-mode:before{content:"";position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;opacity:.22;background-image:linear-gradient(rgba(103,244,255,.42) 1px,transparent 1px),linear-gradient(90deg,rgba(103,244,255,.42) 1px,transparent 1px);background-size:40px 40px}button{font:inherit}.public-site{display:grid;align-content:start;gap:20px;width:min(100%,920px);min-height:100vh;min-height:100dvh;margin:0 auto;padding:72px 22px 40px}.public-hero,.public-card{border:1px solid #d8dee8;border-radius:8px;background:#fff;box-shadow:0 18px 40px #0f172a14}.public-hero{padding:clamp(32px,7vw,64px)}.public-kicker{margin:0 0 14px;color:#0f766e;font-size:.84rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.public-hero h1{margin:0;color:#111827;font-size:clamp(2.4rem,9vw,5rem);line-height:.98;letter-spacing:0}.public-summary{max-width:650px;margin:22px 0 0;color:#4b5563;font-size:clamp(1.02rem,2.5vw,1.24rem);line-height:1.65}.public-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:30px}.public-actions a{display:inline-flex;min-height:44px;align-items:center;justify-content:center;padding:0 18px;border:1px solid #9ca3af;border-radius:6px;color:#111827;font-weight:800;text-decoration:none}.public-actions a:first-child{border-color:#0f766e;background:#0f766e;color:#fff}.public-card{padding:24px clamp(22px,5vw,36px)}.public-card h2{margin:0 0 10px;color:#111827;font-size:1.18rem}.public-card p{margin:0;color:#4b5563;line-height:1.7}.public-card a{color:#0f766e;font-weight:800}.app-shell{position:relative;z-index:1;display:grid;grid-template-rows:auto auto minmax(300px,1fr) auto auto auto;gap:10px;width:min(100vw,520px);min-height:100vh;min-height:100dvh;margin:0 auto;padding:calc(12px + env(safe-area-inset-top)) 14px calc(12px + env(safe-area-inset-bottom));touch-action:none}.top-bar,.order-row,.tray,.mock-banner-ad,.tool-row{display:flex;align-items:center;gap:8px}.top-bar{justify-content:space-between;min-height:54px;padding:8px 10px;border:2px solid rgba(103,244,255,.45);border-radius:20px;background:linear-gradient(180deg,#126ae8eb,#08247af0),var(--bp-panel-solid);box-shadow:var(--bp-shadow),inset 0 2px #ffffff29}.top-bar>div{display:grid;gap:0;min-width:64px}.top-bar strong{color:#fff;font-size:22px;line-height:1;text-shadow:0 3px 0 rgba(0,25,88,.62)}.kicker{display:inline-flex;align-items:center;gap:3px;color:var(--bp-muted);font-size:11px;font-weight:900;letter-spacing:0;text-transform:uppercase}.kicker img,.coin-chip img,.icon-button img,.settings-replay img,.setting-label img{display:block;flex:0 0 auto}.kicker img{width:15px;height:15px}.coin-chip{display:inline-flex!important;grid-auto-flow:column;align-items:center;justify-content:center;gap:4px;min-width:52px;color:var(--bp-gold)}.coin-chip img{width:24px;height:24px}.coin-chip strong{color:var(--bp-gold)}.icon-button,.tool-row button{display:inline-flex;align-items:center;justify-content:center;min-height:40px;border:0;border-radius:999px;background:linear-gradient(180deg,#1feaff,#1477ff);color:#fff;box-shadow:0 8px 16px #000c3e52,inset 0 2px #ffffff47}.icon-button{width:42px;height:42px;border:2px solid rgba(146,251,255,.92)}.icon-button img{width:24px;height:24px}.order-row{overflow-x:auto;padding:3px 0 7px;scrollbar-width:none}.order-row::-webkit-scrollbar{display:none}.order-card{position:relative;display:grid;place-items:center;min-width:136px;min-height:104px;padding:10px 10px 9px;overflow:hidden;border:3px solid #256deb;border-radius:20px;background:linear-gradient(180deg,#0c46b6,#0a2b86);color:#fff;box-shadow:0 12px 22px #000d4652,inset 0 2px #ffffff1f}.order-card:before{content:"";position:absolute;inset:9px 11px auto;height:13px;border-radius:12px 12px 6px 6px;background:#ffffff1a;pointer-events:none}.order-card:after{content:none}.order-card>*{position:relative;z-index:1}.order-card-active{background:linear-gradient(180deg,#126ae8,#0d3aa6);border-color:#6af2ff;filter:drop-shadow(0 0 12px rgba(103,244,255,.42))}.order-card-active:before{box-shadow:inset 0 0 0 2px #fff3}.order-title{position:absolute;top:36px;left:13px;justify-self:start;color:#fff;font-size:11px;font-weight:900;line-height:1.05;text-shadow:0 2px 0 rgba(0,21,68,.58);white-space:nowrap}.order-preview{position:absolute;top:20px;right:10px;display:grid;place-items:center;width:84px;height:76px;margin:0}.order-reward{position:absolute;left:13px;bottom:12px;align-self:end;font-size:13px;font-weight:900;line-height:1.1}.order-reward{justify-self:start;min-width:38px;padding:2px 9px 3px;border-radius:999px;background:#001d5b61;color:var(--bp-gold);text-shadow:0 2px 0 rgba(113,55,0,.64)}.board-panel{display:grid;align-items:center;justify-items:center;min-height:0}.game-board{width:min(100%,72vh,460px);aspect-ratio:1;border:3px solid rgba(103,244,255,.42);border-radius:20px;background:linear-gradient(180deg,#09319aeb,#05134cf0);box-shadow:0 18px 34px #0009346b,inset 0 0 0 8px #04134e8f}.board-cell{stroke:#0f172a1f;stroke-width:2}.board-cell-target{stroke:#0ea5e957}.board-cell-staged{cursor:default;stroke:#9a3412b8;stroke-width:4}.piece-button{display:grid;place-items:center;width:86px;height:70px;border:0;border-radius:18px;background-position:center;background-size:100% 100%;background-repeat:no-repeat;color:var(--bp-muted);font-size:12px;font-weight:800;touch-action:none;-webkit-user-select:none;user-select:none}.tray{justify-content:space-between;min-height:98px;padding:9px;border:1px solid rgba(129,235,255,.32);border-radius:24px;background:linear-gradient(180deg,#0c46b6d1,#04134ec7);box-shadow:var(--bp-shadow),inset 0 2px #ffffff1a}.piece-button{width:30%;height:82px}.piece-button-empty,.piece-empty{opacity:.45}.piece-button-empty{background-position:center;background-size:100% 100%;background-repeat:no-repeat}.piece-shape{filter:drop-shadow(0 8px 10px rgba(0,11,56,.38))}.piece-shape-ghost{opacity:.88}.tool-row{justify-content:center;padding-bottom:2px}.mock-banner-ad{justify-content:center;gap:8px;min-height:34px;border:1px solid rgba(129,235,255,.32);border-radius:12px;background:#001d5b61;color:#bff7ff;font-size:11px;font-weight:900;text-transform:uppercase}.mock-banner-ad span{display:inline-grid;place-items:center;width:28px;height:18px;border-radius:6px;background:#ffd3342e;color:var(--bp-gold)}.mock-banner-ad strong{color:#eaf8ff;font-size:12px}.tool-row button{gap:6px;min-width:126px;padding:0 12px;border:3px solid rgba(255,240,140,.9);background:linear-gradient(180deg,var(--bp-gold),var(--bp-orange));color:#fff;font-weight:900;text-shadow:0 2px 0 rgba(113,55,0,.62)}.drag-ghost{position:fixed;z-index:20;top:0;left:0;pointer-events:none}.order-complete-burst{position:absolute;z-index:12;top:calc(50% - 8px);left:50%;width:128px;height:128px;pointer-events:none;background-repeat:no-repeat;background-size:800% 100%;mix-blend-mode:screen;transform:translate(-50%,-50%) scale(.82);animation:order-complete-sprite .32s steps(8) forwards,order-complete-pop .32s ease-out forwards}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:30;display:grid;place-items:center;padding:20px;background:#010824ad;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.result-popup{width:min(100%,360px);padding:20px;border:2px solid rgba(103,244,255,.42);border-radius:22px;background:linear-gradient(180deg,#126ae8f2,#061b67f5);box-shadow:0 24px 60px #00082a85}.settings-panel{width:min(100%,360px);padding:18px;border:2px solid rgba(103,244,255,.42);border-radius:22px;background:linear-gradient(180deg,#126ae8f2,#061b67f5);box-shadow:0 24px 60px #00082a85}.settings-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.settings-header h2{margin:0;font-size:24px;color:#fff;text-shadow:0 3px 0 rgba(0,21,68,.58)}.settings-close{border:0;background:transparent;box-shadow:none}.settings-close img{width:42px;height:42px}.settings-replay,.setting-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:48px;margin-top:8px;padding:0 12px;border:2px solid rgba(129,235,255,.28);border-radius:16px;background:#001d5b73;color:#eaf8ff;font-weight:900}.settings-replay{justify-content:center;gap:8px;border-color:#fff08ce6;background:linear-gradient(180deg,var(--bp-gold),var(--bp-orange));color:#fff;text-shadow:0 2px 0 rgba(113,55,0,.62)}.settings-replay img,.setting-label img{width:24px;height:24px}.setting-label{display:inline-flex;align-items:center;gap:8px}.switch{display:inline-flex;align-items:center;width:44px;height:26px;padding:3px;border-radius:999px;background:#03144ed1;box-shadow:inset 0 2px 5px #0000003d}.switch span{display:block;width:20px;height:20px;border-radius:999px;background:#c9f4ff;transition:transform .15s ease}.switch-on{background:#14b8e8}.switch-on span{transform:translate(18px)}.result-popup h2{margin:4px 0 8px;font-size:26px;color:#fff;text-shadow:0 3px 0 rgba(0,21,68,.58)}.result-popup p{margin:0 0 16px;color:var(--bp-muted)}.result-score-row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0}.result-stat{display:grid;gap:4px;min-width:0;padding:10px 8px;border-radius:14px;background:#001d5b7a}.result-stat span,.result-detail-row{color:var(--bp-muted);font-size:11px;font-weight:900;text-transform:uppercase}.result-stat strong{overflow:hidden;color:#fff;font-size:24px;line-height:1;text-overflow:ellipsis;text-shadow:0 3px 0 rgba(0,21,68,.58)}.result-detail-row{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}.result-detail-row span{padding:4px 8px;border-radius:999px;background:#001d5b6b}.popup-actions{display:flex;gap:8px;justify-content:flex-end}.popup-actions button{min-height:42px;padding:0 14px;border:2px solid rgba(129,235,255,.32);border-radius:999px;background:#001d5b7a;color:#eaf8ff;font-weight:900}.popup-actions button:disabled{opacity:.62}.popup-actions .primary-action{border-color:#92fbffeb;background:linear-gradient(180deg,#1feaff,#1477ff);color:#fff}.debug-panel{position:fixed;z-index:25;right:max(10px,env(safe-area-inset-right));bottom:max(10px,env(safe-area-inset-bottom));display:grid;gap:8px;width:min(360px,calc(100vw - 20px));max-height:min(54vh,460px);overflow:auto;padding:10px;border:1px solid rgba(103,244,255,.55);border-radius:14px;background:#020a2ae6;color:#eaf8ff;box-shadow:0 16px 42px #0006208a;pointer-events:auto;touch-action:pan-y}.debug-header,.debug-row{display:flex;align-items:center;justify-content:space-between;gap:8px}.debug-header strong{font-size:14px}.debug-header span{color:var(--bp-muted);font-size:11px;font-weight:800}.debug-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.debug-stat{display:grid;gap:2px;min-width:0;padding:6px;border-radius:8px;background:#126ae852}.debug-stat span,.debug-row{color:#bff7ff;font-size:10px;font-weight:800}.debug-stat strong{overflow:hidden;color:#fff;font-size:13px;line-height:1;text-overflow:ellipsis}.debug-section{display:grid;gap:5px}.debug-section-title{display:flex;align-items:center;justify-content:space-between;gap:8px}.debug-section h3{margin:0;color:#fff;font-size:11px;text-transform:uppercase}.debug-section-title button{min-height:24px;padding:0 8px;border:1px solid rgba(129,235,255,.28);border-radius:999px;background:#001d5b94;color:#bff7ff;font-size:10px;font-weight:900}.debug-list{display:grid;gap:4px}.debug-row{min-height:24px;padding:4px 6px;border-radius:8px;background:#001d5b7a}.debug-row span{overflow:hidden;min-width:0;text-overflow:ellipsis;white-space:nowrap}.debug-event-row{display:grid;grid-template-columns:58px 1fr 1.3fr}@media (max-height: 720px){.app-shell{gap:7px}.order-card{min-height:88px}.piece-button{height:62px}.debug-panel{max-height:42vh}}@keyframes order-complete-sprite{0%{background-position:0 0}to{background-position:100% 0}}@keyframes order-complete-pop{0%{opacity:0;transform:translate(-50%,-50%) scale(.72)}18%{opacity:1}to{opacity:0;transform:translate(-50%,-50%) scale(1.22)}}@media (prefers-reduced-motion: reduce){.order-complete-burst{animation:none;opacity:0}}
