:root{--bg: #f5f3ef;--surface: rgba(255, 253, 249, .95);--surface-solid: #fffdf9;--border: rgba(74, 66, 56, .12);--text: #3a3630;--text-muted: #7d7569;--star: #e8b339;--green: #2e8b63;--shadow-sm: 0 4px 14px rgba(58, 54, 48, .08);--shadow-md: 0 12px 32px rgba(58, 54, 48, .14);--radius-sm: 12px;--radius-md: 18px;--radius-lg: 26px}*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}html,body,#root{width:100%;height:100%;overflow:hidden;background-color:var(--bg);color:var(--text);font-family:Inter,Hiragino Kaku Gothic ProN,Hiragino Sans,Yu Gothic,sans-serif;-webkit-font-smoothing:antialiased;user-select:none;-webkit-user-select:none;touch-action:none}button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit;-webkit-tap-highlight-color:transparent}button:disabled{cursor:not-allowed;opacity:.35}.icon-circle-btn{width:44px;height:44px;border-radius:999px;display:grid;place-items:center;background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow-sm);transition:transform .12s ease,background-color .14s ease}.icon-circle-btn:hover{background:var(--surface-solid)}.icon-circle-btn:active{transform:scale(.93)}.icon-circle-btn--danger{color:#b5454c}.title-screen{position:relative;width:100%;height:100%;display:flex;align-items:flex-end;justify-content:center;padding-bottom:40px}.title-screen__bg{position:absolute;inset:0;z-index:0}.title-top-actions{position:absolute;top:16px;right:16px;z-index:2;display:flex;align-items:center;gap:8px}.title-card--minimal{position:relative;z-index:1;width:min(330px,calc(100% - 32px));padding:24px 24px 26px;border-radius:var(--radius-lg);background:#fffdf9ed;border:1px solid var(--border);box-shadow:var(--shadow-md);text-align:center}.title-card__logo{font-size:1.95rem;font-weight:800;letter-spacing:-.02em;margin-bottom:6px}.title-card__sub{font-size:.78rem;font-weight:600;color:var(--text-muted);margin-bottom:18px}.title-card__visual-actions{display:flex;flex-direction:column;align-items:center;gap:10px}.title-play-caption{font-size:.82rem;font-weight:700;color:var(--text-muted);margin-bottom:4px}.big-play-btn{width:84px;height:84px;border-radius:999px;display:grid;place-items:center;background:var(--green);color:#fffdf9;box-shadow:0 10px 24px #2e8b6352;transition:transform .14s ease,background-color .14s ease}.big-play-btn:hover{background:#359d70}.big-play-btn:active{transform:scale(.93)}.title-grid-btn{display:inline-flex;align-items:center;gap:10px;padding:10px 20px;border-radius:999px;background:var(--surface-solid);border:1px solid var(--border);box-shadow:var(--shadow-sm);font-weight:700;transition:transform .12s ease}.title-grid-btn:active{transform:scale(.95)}.title-grid-btn__stars{display:inline-flex;align-items:center;gap:4px;color:var(--star);font-size:.92rem}.title-grid-btn__stars span{color:var(--text)}.select-screen{width:100%;height:100%;display:flex;flex-direction:column;background:var(--bg)}.select-header{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;border-bottom:1px solid var(--border);background:var(--surface);backdrop-filter:blur(10px)}.select-header__stars{display:inline-flex;align-items:center;gap:6px;padding:8px 16px;border-radius:999px;background:var(--surface-solid);border:1px solid var(--border);font-size:.95rem;font-weight:800;color:var(--star)}.select-header__stars span{color:var(--text)}.select-content{flex:1;overflow-y:auto;touch-action:pan-y;padding:20px;max-width:960px;width:100%;margin:0 auto}.stage-section{margin-bottom:24px}.stage-section__stars{display:flex;align-items:center;gap:4px;color:var(--star);margin-bottom:10px}.stage-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:12px}.stage-card--visual{display:flex;flex-direction:column;padding:12px;border-radius:var(--radius-md);background:var(--surface-solid);border:2px solid var(--border);box-shadow:var(--shadow-sm);transition:transform .14s ease,box-shadow .14s ease,border-color .14s ease}.stage-card--visual:hover{transform:translateY(-2px);box-shadow:var(--shadow-md)}.stage-card--visual:active{transform:scale(.96)}.stage-card--cleared{border-color:#2e8b638c;background:linear-gradient(180deg,#fffdf9,#eff8f3)}.stage-card__top{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px}.stage-card__badge-num{min-width:26px;height:26px;padding:0 7px;border-radius:999px;background:#4a423814;font-size:.85rem;font-weight:800;display:grid;place-items:center}.stage-card__check-badge{width:26px;height:26px;border-radius:999px;background:var(--green);color:#fffdf9;display:grid;place-items:center}.stage-card__thumb-wrap{width:100%;height:106px;display:flex;align-items:center;justify-content:center}.stage-thumb-svg{width:100%;height:100%;max-width:120px;max-height:100px}.play-screen{position:relative;width:100%;height:100%}.hud-layer{position:absolute;inset:0;pointer-events:none;z-index:10}.hud-top-left{position:absolute;top:14px;left:14px;display:flex;align-items:center;gap:10px;pointer-events:auto}.stage-progress-pill{display:flex;align-items:center;gap:8px;height:44px;padding:0 14px 0 8px;border-radius:999px;background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow-sm)}.stage-progress-pill__num{min-width:28px;height:28px;padding:0 7px;border-radius:999px;background:#3a3630;color:#fffdf9;font-size:.85rem;font-weight:800;display:grid;place-items:center}.stage-progress-pill__bar{width:58px;height:8px;border-radius:999px;background:#4a42381f;overflow:hidden}.stage-progress-pill__fill{height:100%;border-radius:999px;background:var(--green);transition:width .2s ease}.stage-progress-pill__count{font-size:.84rem;font-weight:800;color:var(--text)}.ref-window{position:absolute;top:14px;right:14px;width:196px;height:204px;border-radius:var(--radius-md);background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow-md);overflow:hidden;display:flex;flex-direction:column;pointer-events:auto;transition:width .22s ease,height .22s ease,top .22s ease,left .22s ease}.ref-window--expanded{top:50%;left:50%;right:auto;transform:translate(-50%,-50%);width:min(440px,calc(100vw - 24px));height:min(460px,calc(100dvh - 140px));z-index:30}.ref-window__header{display:flex;align-items:center;justify-content:space-between;padding:6px 8px;border-bottom:1px solid var(--border)}.ref-window__icon{display:inline-flex;align-items:center;gap:5px;color:var(--text-muted);padding-left:2px}.ref-window__mini-label{font-size:.72rem;font-weight:700}.ref-window__btn{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;background:#4a423814}.ref-window__btn:hover{background:#4a423829}.ref-window__canvas{flex:1;min-height:0}.ref-window__hint{display:grid;place-items:center;padding:4px 0;color:var(--text-muted);background:#efece6d9}.intro-pill{position:absolute;bottom:28px;left:50%;transform:translate(-50%);height:44px;padding:0 18px;border-radius:999px;display:inline-flex;align-items:center;gap:6px;background:var(--surface);border:1px solid var(--border);color:var(--text-muted);box-shadow:var(--shadow-sm)}.intro-pill__label{font-size:.78rem;font-weight:700}.hud-bottom{position:absolute;bottom:16px;left:50%;transform:translate(-50%);display:flex;flex-direction:column;align-items:center;gap:8px;max-width:calc(100vw - 16px);pointer-events:auto}.palette-bar{display:flex;align-items:center;gap:10px;padding:8px 12px;border-radius:999px;background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow-md)}.palette-colors{display:flex;align-items:center;gap:8px}.color-chip{position:relative;display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:13px;background:#4a42380a;transition:transform .14s ease,box-shadow .14s ease}.color-chip--active{transform:translateY(-4px);box-shadow:0 0 0 2.5px #3a3630;background:var(--surface-solid)}.color-chip--empty{opacity:.28}.color-chip__swatch{width:28px;height:28px;border-radius:8px;box-shadow:inset 0 -2px #00000029}.color-chip__count{position:absolute;right:-3px;bottom:-3px;min-width:19px;height:19px;padding:0 4px;border-radius:999px;background:#3a3630;color:#fffdf9;font-size:.7rem;font-weight:800;display:grid;place-items:center}.palette-divider{width:1px;height:28px;background:var(--border)}.mode-toggle{display:flex;gap:4px;background:#4a42380f;padding:3px;border-radius:999px}.mode-btn--icon{width:40px;height:38px;border-radius:999px;display:grid;place-items:center;flex-shrink:0;color:var(--text-muted);transition:background-color .14s ease,color .14s ease}.mode-btn--active{background:#3a3630;color:#fffdf9}.action-bar{display:flex;align-items:center;justify-content:center;gap:8px}.tool-icon-btn{min-width:56px;height:50px;padding:4px 8px;border-radius:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow-sm);transition:background-color .14s ease,transform .12s ease}.tool-icon-btn__label{font-size:.62rem;font-weight:700;color:var(--text-muted);line-height:1;white-space:nowrap}.tool-icon-btn:hover:not(:disabled){background:var(--surface-solid)}.tool-icon-btn:active:not(:disabled){transform:scale(.93)}.tool-icon-btn--muted{color:var(--text-muted)}.dialog-backdrop{position:fixed;inset:0;z-index:60;display:flex;align-items:center;justify-content:center;padding:20px;background:#3a36305c;pointer-events:auto}.dialog-card{width:min(360px,100%);padding:22px;border-radius:var(--radius-lg);background:var(--surface-solid);border:1px solid var(--border);box-shadow:var(--shadow-md)}.dialog-card--center{text-align:center}.dialog-card__header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.dialog-card__title{font-size:1.08rem;font-weight:800}.dialog-card__desc{font-size:.85rem;color:var(--text-muted);margin:8px 0 20px;line-height:1.5}.help-list{list-style:none;display:flex;flex-direction:column;gap:12px;margin-bottom:20px}.help-item{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:var(--radius-sm);background:#f5f3ef}.help-item__icon{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;flex-shrink:0;color:#fffdf9}.help-item__icon--green{background:var(--green)}.help-item__icon--orange{background:#e27d3b}.help-item__icon--blue{background:#3a66b0}.help-item__text{display:flex;flex-direction:column;gap:2px}.help-item__text strong{font-size:.9rem;font-weight:800}.help-item__text span{font-size:.78rem;color:var(--text-muted)}.dialog-ok-btn{width:100%;padding:12px;border-radius:999px;background:#3a3630;color:#fffdf9;font-size:.95rem;font-weight:800}.dialog-danger-icon{width:52px;height:52px;margin:0 auto 12px;border-radius:999px;background:#d44a5224;color:#c73c44;display:grid;place-items:center}.dialog-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.dialog-btn{padding:11px 14px;border-radius:999px;font-size:.88rem;font-weight:700}.dialog-btn--cancel{background:#4a423814;color:var(--text)}.dialog-btn--danger{background:#d44a52;color:#fffdf9}.clear-overlay{position:absolute;inset:0;z-index:40;display:flex;align-items:flex-end;justify-content:center;padding:28px 16px;pointer-events:none}.clear-card--visual{pointer-events:auto;width:min(320px,100%);padding:24px 20px;border-radius:var(--radius-lg);background:#fffdf9f5;border:1px solid var(--border);box-shadow:var(--shadow-md);text-align:center}.clear-stars{display:flex;align-items:center;justify-content:center;gap:10px;color:var(--star);margin-bottom:20px}.clear-card__icon-actions{display:flex;align-items:center;justify-content:center;gap:18px}.clear-next-btn{width:76px;height:76px;border-radius:999px;display:grid;place-items:center;background:var(--green);color:#fffdf9;box-shadow:0 10px 22px #2e8b6357;transition:transform .14s ease}.clear-next-btn:active{transform:scale(.93)}.clear-sub-btn{width:56px;height:56px;border-radius:999px;display:grid;place-items:center;background:#4a423814;color:var(--text);transition:transform .12s ease,background-color .14s ease}.clear-sub-btn:hover{background:#4a423824}.clear-sub-btn:active{transform:scale(.93)}@media(max-width:640px){.hud-top-left{top:10px;left:10px;gap:8px}.stage-progress-pill__bar{width:38px}.ref-window:not(.ref-window--expanded){top:10px;right:10px;width:132px;height:146px}.hud-bottom{bottom:12px;gap:8px}.palette-bar{padding:6px 8px;gap:6px}.palette-colors{gap:5px}.color-chip{width:38px;height:38px}.color-chip__swatch{width:24px;height:24px}.mode-btn--icon{width:36px;height:36px}.select-header{padding:12px 14px}.select-content{padding:14px}.stage-grid{grid-template-columns:repeat(2,1fr);gap:10px}}@media(max-height:460px){.ref-window:not(.ref-window--expanded){width:132px;height:132px}.hud-bottom{bottom:8px;flex-direction:row}}
