.home{--play-text:#f3f1eb;--play-muted:#bac0ca;--play-line:#ffffff24;--play-surface:#1c2029eb;--play-accent:#eed9ab;color-scheme:dark}.home.dusk{--play-surface:#241d29eb;--play-muted:#cabdca}.home #app{min-height:360px;background:#1e1f22}.home.dusk #app{background:#000}.home #scene{cursor:grab}.home #scene:active{cursor:grabbing}.home .visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.home svg{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round}.home .play-header{position:absolute;inset:max(24px,env(safe-area-inset-top)) 28px auto;display:flex;align-items:center;justify-content:space-between;gap:20px;z-index:10;pointer-events:none}.home .play-brand{display:flex;align-items:center;gap:11px;color:var(--play-text);text-shadow:0 2px 14px #0008}.home .play-brand>svg{width:29px;height:35px;color:var(--play-accent);stroke-width:1.25}.home .play-brand h1{font:500 18px/1.3 Arial,sans-serif;letter-spacing:.1px}.home .play-brand span{display:block;margin-top:3px;color:var(--play-muted);font-size:12px;letter-spacing:.3px}.home .play-toolbar{display:flex;align-items:center;gap:10px;pointer-events:auto}.home .play-toolbar button,.home .scene-controls>summary{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 14px;border:1px solid var(--play-line);border-radius:12px;background:var(--play-surface);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);color:var(--play-text);font:500 13px/1 Arial,sans-serif;letter-spacing:0;transition:background .16s,border-color .16s,color .16s}.home .play-toolbar button:hover,.home .scene-controls>summary:hover,.home .scene-controls[open]>summary{background:#373b45f2;border-color:#fff5}.home .view-switch{display:flex;gap:3px;width:max-content;white-space:nowrap;padding:3px;border:1px solid var(--play-line);border-radius:14px;background:var(--play-surface);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}.home .view-switch button{min-height:38px;padding:0 12px;border:0;background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none;border-radius:10px;color:var(--play-muted)}.home .view-switch button[aria-pressed=true]{background:#eee9dd;color:#24272e;box-shadow:0 1px 4px #0002}.home .view-switch button[aria-pressed=true]:hover{background:#fff7e7}.home .scene-controls{position:relative;inset:auto;font-size:13px}.home .scene-controls>summary{margin:0;border-color:#e6d2a34a;color:#f4e6c9}.home .scene-controls>summary svg{width:18px;height:18px}.home .sound-tool[aria-pressed=false]{color:var(--play-muted)}.home :is(button,summary,select,a):focus-visible{outline:2px solid var(--play-accent);outline-offset:4px}.home #app .settings-panel{top:57px;width:310px;padding:22px;max-height:calc(100svh - 104px);border-color:var(--play-line);border-radius:18px;background:var(--play-surface);color:var(--play-text);box-shadow:0 18px 60px #0005}.home .settings-panel h2{margin:0 0 22px;font-size:17px;font-weight:500;letter-spacing:.1px}.home #app .settings-panel label{font-size:12px;color:var(--play-muted);margin:18px 0 9px}.home #app .settings-panel select{border-color:var(--play-line);background:#ffffff09;color:var(--play-text);font-size:13px;color-scheme:dark;border-radius:9px}.home #app .settings-panel select option{background:#242832;color:var(--play-text)}.home #app .settings-panel .settings-note{font-size:12px;color:var(--play-muted);line-height:1.5;margin:12px 0 14px}.home #app .settings-panel button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;font-size:13px;border-color:var(--play-line);color:var(--play-text)}.home #app .settings-panel button:disabled{opacity:.38;cursor:default}.home #app .settings-panel button:not(:disabled):hover{border-color:#fff6;background:#ffffff0d}.home #app .settings-panel .primary-action{width:100%;justify-content:space-between;padding:0 13px;color:#252830;background:#eddfbd;border-color:transparent}.home #app .settings-panel .primary-action:not(:disabled):hover{background:#fff0ce}.home .reset-section{border-top:1px solid var(--play-line);margin-top:22px;padding-top:15px}.home #app .reset-section>#reset-position{width:100%;justify-content:flex-start;border:0;padding-left:0;background:none}.home #reset-confirmation p{margin:2px 0 12px;font-size:13px}.home #app #reset-confirmation .settings-row{margin-top:0;gap:8px}.home #app #reset-confirmation #confirm-reset{background:#eddfbd;color:#252830;border-color:transparent}.home .advanced-settings{margin-top:13px;border-color:var(--play-line)}.home .advanced-settings>summary{font-size:13px;color:var(--play-muted)}.home .advanced-settings dl{margin:0 0 12px;font-size:12px;line-height:1.6}.home .advanced-settings dl>div{display:grid;grid-template-columns:66px 1fr;gap:8px;margin:8px 0}.home .advanced-settings dt{color:var(--play-text)}.home .advanced-settings dd{margin:0;color:var(--play-muted)}.home .settings-panel .settings-links{margin-top:2px;padding-top:8px;border-color:var(--play-line)}.home .settings-panel .settings-links a{justify-content:space-between;width:100%;color:var(--play-text);font-size:13px}.home .settings-links svg{width:17px;height:17px}.home footer.play-bottom{position:absolute;inset:auto 24px max(24px,env(safe-area-inset-bottom));display:flex;flex-direction:column;align-items:center;gap:13px;color:var(--play-text);z-index:4;text-align:left;pointer-events:none;letter-spacing:0}.home .action-card{display:flex;align-items:center;gap:14px;width:max-content;min-width:370px;max-width:min(520px,100%);padding:16px 18px;background:var(--play-surface);border:1px solid var(--play-line);border-radius:16px;-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px);box-shadow:0 8px 35px #0002;pointer-events:auto;transition:border-color .18s}.home .action-card[data-state=selected]{border-color:#eed9ab80}.home .action-card[data-state=capturing]{border-color:#edaaa871}.home .status-icon{display:flex;align-items:center;justify-content:center;flex:none;width:42px;height:44px;border:1px solid #ffffff18;border-radius:11px;color:var(--play-accent);background:#ffffff06;font:32px/1 Georgia,serif}.home .status-icon[data-side=white]{color:#ffb8bb;background:#a62e462e;border-color:#e0919e44}.home .status-icon[data-side=black]{color:#b9d3ff;background:#315f9c2e;border-color:#93afe044}.home #move-status{flex:1;min-width:0}.home #status-title{display:block;font-size:15px;line-height:1.35;font-weight:500;color:var(--play-text)}.home #status-detail{margin:5px 0 0;font-size:12px;line-height:1.5;color:var(--play-muted)}.home #clear-selection{display:grid;place-items:center;flex:none;width:40px;min-height:44px;padding:0;border-radius:10px;color:var(--play-muted);background:transparent}.home #clear-selection:hover{background:#ffffff0e;color:var(--play-text)}.home .gesture-hint{margin:0;color:var(--play-muted);font-size:12px;line-height:1.5;text-shadow:0 1px 8px #000}.home .gesture-hint span[aria-hidden]{margin:0 8px;opacity:.55}.home .touch-gesture{display:none}@media(max-width:700px){.home .play-header{inset:max(18px,env(safe-area-inset-top)) 16px auto;flex-wrap:wrap;gap:17px}.home .play-brand{gap:8px}.home .play-brand h1{font-size:17px}.home .play-brand>svg{width:25px;height:31px}.home .play-toolbar{gap:8px;flex:1;justify-content:flex-end}.home .view-switch{position:absolute;top:62px;left:50%;transform:translate(-50%)}.home .view-switch button{min-height:44px;padding:0 15px}.home .sound-tool{width:44px;padding:0!important}.home .sound-tool span{display:none}.home .scene-controls>summary{padding:0 12px;gap:7px;font-size:12px}.home #app .settings-panel{top:57px;width:min(320px,calc(100vw - 32px));max-height:calc(100svh - 94px);padding:20px}.home footer.play-bottom{left:16px;right:16px;bottom:max(22px,env(safe-area-inset-bottom));gap:12px}.home .action-card{width:100%;min-width:0;min-height:88px;padding:14px;gap:11px;border-radius:15px}.home .status-icon{width:38px;height:42px}.home #status-title{font-size:14px}.home #status-detail{font-size:12px}.home #clear-selection{width:44px}}@media(pointer:coarse){.home .desktop-gesture{display:none}.home .touch-gesture{display:inline}}@media(max-height:560px)and (min-width:701px){.home .play-header{top:14px}.home footer.play-bottom{left:auto;right:24px;bottom:50%;width:280px;transform:translateY(50%)}.home .action-card{min-width:0;width:100%;padding:14px;gap:10px}.home .gesture-hint{display:none}}@media(max-width:360px){.home .play-brand h1{font-size:15px}.home .play-brand>svg{display:none}.home .play-header{gap:8px}.home .play-toolbar{gap:6px}}@media(prefers-reduced-motion:reduce){.home *{transition:none!important}}@media(prefers-reduced-transparency:reduce){.home{--play-surface:#20242e}.home.dusk{--play-surface:#241d29}}.home .engine-badge{color:#e9d8b4;font-weight:600}.home footer.play-bottom{gap:10px}.home .game-controls{display:flex;align-items:end;gap:10px;padding:12px 14px;border:1px solid var(--play-line);border-radius:15px;background:var(--play-surface);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);pointer-events:auto;text-align:left}.home .game-controls label{margin:0;display:grid;gap:5px;color:var(--play-muted);font-size:11px}.home .game-controls select,.home .game-controls button,.home .game-dialog button{font:500 13px/1.3 Arial,sans-serif;border:1px solid var(--play-line);border-radius:9px;min-height:44px;padding:0 12px;background:#ffffff08;color:var(--play-text);cursor:pointer}.home .game-controls select option{background:#242832}.home .game-controls #start-game{display:flex;align-items:center;gap:10px;background:#eddfbd;color:#252830;border-color:transparent;white-space:nowrap}.home .game-controls #retry-engine{background:#753b44}.home .game-dialog{max-width:400px;width:calc(100vw - 48px);padding:26px;border:1px solid #ffffff35;border-radius:20px;background:#222630;color:var(--play-text);box-shadow:0 24px 90px #0008}.home .game-dialog::backdrop{background:#0009;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.home .game-dialog h2{margin:0 0 12px;font-size:21px}.home .game-dialog p{font-size:14px;line-height:1.6;color:var(--play-muted);margin:0 0 20px}.home .promotion-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:16px}.home .dialog-actions{display:flex;justify-content:flex-end;gap:10px}.home .game-dialog button:hover,.home .game-controls button:hover{filter:brightness(1.15)}.home .game-dialog [data-restart]{background:#eddfbd;color:#252830}@media(max-width:700px){.home .game-controls{width:100%;display:grid;grid-template-columns:1.35fr 1fr;gap:8px;padding:11px}.home .game-controls label{min-width:0}.home .game-controls select{width:100%;padding:0 8px;font-size:12px}.home .game-controls #start-game{grid-column:1/-1;justify-content:center}.home .game-controls #retry-engine{grid-column:1/-1}.home .gesture-hint{display:none}.home .action-card{min-height:72px;padding:10px 12px}.home footer.play-bottom{bottom:max(12px,env(safe-area-inset-bottom))}}@media(max-height:560px)and (min-width:701px){.home .game-controls{width:100%;display:grid;grid-template-columns:1fr;gap:6px;padding:10px}.home .game-controls label{gap:3px}.home .game-controls select{min-height:36px}.home .game-controls #start-game{justify-content:center}}@media(max-width:380px){.home .scene-controls>summary{width:44px;padding:0;justify-content:center}.home .scene-controls>summary>span{display:none}.home .game-controls{grid-template-columns:1fr 1fr}.home .game-controls select{font-size:11px;padding:0 5px}}.home .explore-pieces{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:0 16px;margin-right:auto;border:1px solid #d7bf8260;border-radius:12px;background:#e8d7b4;color:#29231e;font:500 13px/1 Arial,sans-serif;text-decoration:none;pointer-events:auto;box-shadow:0 4px 24px #0002}.home .explore-pieces:hover{background:#fff0d1}.home .explore-pieces svg{width:18px;height:18px}.home .explore-pieces svg:last-child{width:15px}@media(max-width:1050px)and (min-width:701px){.home .play-header{gap:12px}.home .explore-pieces{padding:0 12px}.home .play-toolbar{gap:6px}.home .play-toolbar button,.home .scene-controls>summary{padding:0 10px}.home .play-brand span{font-size:10px}}@media(max-width:700px){.home .explore-pieces{position:absolute;top:64px;left:0;min-height:46px;padding:0 10px;gap:6px;font-size:12px}.home .explore-pieces svg:last-child{display:none}.home .view-switch{top:64px;left:auto;right:0;transform:none}.home .view-switch button{padding:0 10px;gap:6px;font-size:12px}.home .view-switch button svg{width:16px;height:16px}}@media(max-width:360px){.home .explore-pieces{font-size:11px;padding:0 8px}.home .view-switch button{padding:0 8px}.home .view-switch button svg{display:none}}.home .explore-pieces{position:absolute;left:50%;top:0;transform:translate(-50%);margin:0;white-space:nowrap}@media(min-width:701px)and (max-width:1190px){.home .explore-pieces{top:62px}.home #app>.gem-effect-switch{top:130px}}@media(max-width:700px){.home .explore-pieces{top:64px;left:50%;padding:0 12px}.home .view-switch{top:64px;left:0;right:auto;transform:none}.home .view-switch button{width:38px;min-height:40px;padding:0}.home .view-switch button span{display:none}.home .view-switch button svg{display:block;width:18px;height:18px}}.home .settings-panel h3{font-size:13px;font-weight:600;margin:0;color:var(--play-accent)}.home .settings-panel .settings-divider{border-top:1px solid var(--play-line);padding-top:20px;margin-top:20px}.home #performance-status:empty{display:none}.home .smooth-controls{margin-top:12px;padding-top:10px;border-top:1px solid var(--play-line)}.home #smooth-play{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 8px;width:100%;min-height:44px;padding:8px 10px;border:1px solid #eed9ab55;border-radius:9px;background:#eed9ab0c;color:var(--play-text);font:12px/1.4 Arial,sans-serif;text-align:left;cursor:pointer}.home #smooth-play span{color:var(--play-muted);font-size:11px}.home #smooth-play strong{display:inline-flex;align-items:center;gap:4px;font-size:12px;font-weight:500;color:var(--play-accent)}.home #smooth-play svg{width:14px;height:14px}.home #smooth-play:hover{background:#eed9ab20;border-color:#eed9ab99}.home #smooth-play[data-active=true]{border-color:#99b9a366}.home .smooth-controls p{margin:6px 0 0;color:var(--play-muted);font-size:10px;line-height:1.5}@media(max-width:700px){.home .smooth-controls{margin-top:8px;padding-top:7px}.home #smooth-play{padding:5px 10px}.home .smooth-controls p{margin-top:4px}}@media(max-width:700px){.home .smooth-controls{position:absolute;top:-56px;right:0;width:86px;margin:0;padding:0;border:0}.home #smooth-play{justify-content:center;min-height:46px;padding:5px 7px;text-align:center}.home #smooth-play span,.home #smooth-play svg,.home .smooth-controls p{display:none}.home #smooth-play strong{font-size:11px}.home #smooth-play[data-active=true] span{display:block;font-size:11px;color:var(--play-accent)}.home #smooth-play[data-active=true] strong{display:none}}@media(max-width:380px){.home .explore-pieces{font-size:11px;padding:0 7px}.home .explore-pieces>svg{display:none}}
