*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.static{position:static}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,sans-serif;color:#352d38;background:#fff8eb;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:radial-gradient(circle at top,#fffdf7,#fff4e0)}button,input{font:inherit}button{border:0;border-radius:13px;background:#fff;color:#473b3b;padding:.65rem .95rem;font-weight:700;box-shadow:0 3px #eadbc9;cursor:pointer;transition:transform .12s ease,box-shadow .12s ease,opacity .12s ease}button:hover:not(:disabled){transform:translateY(-1px)}button:disabled{opacity:.42;cursor:not-allowed}.btn-primary,.start-level-btn{background:linear-gradient(135deg,#f59d7e,#ef7e64);color:#fff;box-shadow:0 4px #cf624a}.select-shell{min-height:100vh;max-width:680px;margin:0 auto;padding:20px clamp(12px,4vw,28px) 36px;display:flex;flex-direction:column;gap:18px}.select-header{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff;border-radius:22px;padding:14px 18px;box-shadow:0 6px 22px #49352414}.select-title-group{display:flex;flex-direction:column;gap:2px}.select-kicker{font-size:.72rem;font-weight:800;letter-spacing:.08em;color:#d7795b}.select-header h1{margin:0;font-size:clamp(1.1rem,3vw,1.45rem);font-weight:900;color:#3a2e33}.select-nav{display:flex;gap:8px;flex-shrink:0}.select-card{background:#fff;border-radius:26px;padding:22px clamp(14px,4vw,28px) 26px;box-shadow:0 12px 32px #49352416;display:flex;flex-direction:column;gap:18px}.select-guide{margin:0;text-align:center;font-size:.95rem;font-weight:700;color:#6f5f58}.wheel-row{display:flex;align-items:center;justify-content:center;gap:14px}.wheel-step-btn{width:48px;height:48px;border-radius:50%;font-size:1.5rem;line-height:1;display:grid;place-items:center;padding:0;background:#fff6ea;color:#4a3731;box-shadow:0 3px #e6cfb6;flex-shrink:0}.wheel-frame{position:relative;width:min(320px,100%);height:260px;border-radius:20px;background:linear-gradient(to bottom,#f9efe2,#fffdf9 28%,#fffdf9 72%,#f9efe2);border:2px solid #f0dfcb;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;user-select:none}.wheel-highlight{position:absolute;left:10px;right:10px;top:50%;height:52px;transform:translateY(-50%);border-radius:14px;background:#f4aa8e38;border:2px solid #f09c7e;pointer-events:none;z-index:1}.wheel-scroller{height:100%;overflow-y:auto;scroll-snap-type:y mandatory;padding:104px 12px;scrollbar-width:none;-ms-overflow-style:none;cursor:grab;touch-action:pan-y}.wheel-scroller:active{cursor:grabbing}.wheel-scroller::-webkit-scrollbar{display:none}.wheel-item{width:100%;height:52px;scroll-snap-align:center;scroll-snap-stop:always;background:transparent;box-shadow:none;border-radius:12px;display:flex;align-items:center;justify-content:space-between;padding:0 18px;color:#9e8e85;font-weight:700;opacity:.45;transform:scale(.92);transition:opacity .14s ease,transform .14s ease,color .14s ease;position:relative;z-index:2}.wheel-item:hover:not(:disabled){transform:scale(.96)}.wheel-item.is-near{opacity:.72;transform:scale(.96);color:#6b5b54}.wheel-item.is-active{opacity:1;transform:scale(1);color:#362522;font-weight:900}.wheel-lv{font-size:1.08rem;letter-spacing:-.01em}.wheel-name{font-size:.9rem}.level-info-card{background:#fff9f0;border:1.5px solid #f0dfc9;border-radius:18px;padding:16px 18px;display:flex;flex-direction:column;gap:12px}.level-info-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.level-layers{margin-left:auto;font-size:.82rem;font-weight:800;color:#5d988c;background:#e9f7f4;padding:4px 10px;border-radius:99px}.level-stats-grid{margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.level-stats-grid>div{background:#fff;border-radius:12px;padding:9px 10px;border:1px solid #f2e5d5;text-align:center}.level-stats-grid dt{font-size:.74rem;color:#84756d;font-weight:700;margin-bottom:3px}.level-stats-grid dd{margin:0;font-size:.92rem;font-weight:800;color:#3c2f2d}.start-level-btn{width:100%;padding:1rem 1.2rem;font-size:1.12rem;font-weight:900;border-radius:16px}.game-shell{min-height:100vh;display:flex;flex-direction:column;max-width:1280px;margin:0 auto;padding:14px clamp(10px,3vw,28px) 18px;gap:12px}.hud{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff;border-radius:20px;padding:12px 18px;box-shadow:0 6px 22px #49352412}.hud p{margin:4px 0 0;font-size:.88rem;color:#756d69}.level-badge{display:inline-block;background:#f49b7c;color:#fff;border-radius:99px;padding:4px 12px;margin-right:8px;font-weight:900;font-size:.9rem}.remaining{text-align:center;display:grid}.remaining b{font-size:1.45rem;line-height:1.15}.remaining small{color:#796e67;font-size:.82rem}.hud nav{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.board-wrap{flex:1;min-height:310px;display:grid;place-items:center;overflow:hidden;background:radial-gradient(ellipse,#fffdf9,#fff5e3 80%);border-radius:22px;border:1.5px solid #f2e4d2}.board-canvas{width:100%;height:min(56vh,620px);min-height:310px}.board-canvas canvas{display:block;width:100%;height:100%}.house-tray{width:min(640px,100%);margin:0 auto;background:#fffdf8;border:2.5px solid #e5d2bc;border-radius:20px;padding:10px 14px 12px;box-shadow:0 6px 18px #49352412;transition:border-color .2s ease,box-shadow .2s ease}.house-tray--warning{border-color:#f08a64;box-shadow:0 0 0 3px #f08a6438,0 6px 18px #49352418}.house-tray--full{border-color:#dc4c4c;box-shadow:0 0 0 4px #dc4c4c3d}.house-tray-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;font-size:.82rem}.house-tray-title{font-weight:800;color:#54433c}.house-tray-hint{color:#8b7b72;font-weight:600}.house-tray-alert{color:#cf453a;font-weight:800}.house-slots{display:grid;gap:8px}.house-slot{position:relative;aspect-ratio:72 / 86;max-height:82px;border-radius:13px;display:grid;place-items:center;overflow:hidden}.house-slot--empty{background:#f5ecdf;border:2px dashed #dec9b1}.house-slot-dot{width:8px;height:8px;border-radius:50%;background:#dfcbb4}.house-slot--filled{animation:slotPop .16s ease-out}.house-slot--cat{background:#fff8f0;border:2.5px solid #e88a72;box-shadow:0 3px #e0967e}.house-slot--dog{background:#f4fcfa;border:2.5px solid #5eaea0;box-shadow:0 3px #76b2a8}.house-slot-badge{position:absolute;top:2px;left:4px;font-size:.68rem;line-height:1}.house-slot-img{width:78%;height:78%;-o-object-fit:contain;object-fit:contain;pointer-events:none}@keyframes slotPop{0%{transform:scale(.82);opacity:.6}to{transform:scale(1);opacity:1}}.toolbar{display:flex;justify-content:center;gap:12px;padding:2px 0}.toolbar button{min-width:168px;padding:.72rem 1.15rem}.drop-toast{position:fixed;top:22px;left:50%;transform:translate(-50%);z-index:20;background:linear-gradient(135deg,#3c8f7d,#2f7566);color:#fff;font-weight:800;padding:11px 22px;border-radius:999px;box-shadow:0 10px 26px #1f443b52;animation:toastSlide .2s ease-out}@keyframes toastSlide{0%{opacity:0;transform:translate(-50%,-10px)}to{opacity:1;transform:translate(-50%)}}.notice{position:fixed;bottom:84px;left:50%;transform:translate(-50%);z-index:15;background:#3e3130;color:#fff;padding:10px 18px;border-radius:15px;box-shadow:0 8px 22px #00000040}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#33251db8;display:grid;place-items:center;padding:14px;z-index:30}.modal{position:relative;width:min(540px,100%);max-height:90vh;overflow:auto;background:#fffaf1;padding:26px;border-radius:24px;box-shadow:0 20px 60px #00000047}.modal h2{margin:0 0 8px}.modal-summary{margin:4px 0;font-size:1.05rem}.modal-meta{margin:4px 0 12px;color:#776961;font-size:.92rem}.submitted-badge{margin:10px 0 6px;color:#2f7d69;font-size:.95rem}.modal form{display:flex;gap:8px;margin:14px 0}.modal input{min-width:0;flex:1;padding:10px 12px;border:1.5px solid #d9c8b4;border-radius:11px;background:#fff}.ranking-list{padding-left:22px;margin:10px 0 16px}.ranking-list li{padding:6px 4px;border-bottom:1px solid #eee2d3;font-size:.92rem}.ranking-list li.highlight{background:#fff0ae;border-radius:6px}.modal-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.modal-actions button{flex:1;min-width:120px}.close{float:right}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media (max-width: 700px){.select-header{flex-direction:column;align-items:stretch}.select-nav{justify-content:flex-end}.level-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hud{align-items:flex-start;flex-wrap:wrap}.remaining{order:3;width:100%;display:flex;justify-content:center;gap:8px;align-items:baseline}.hud nav{flex:1}.board-canvas{height:48vh;min-height:270px}.house-slots{gap:5px}.toolbar{gap:8px}.toolbar button{min-width:0;flex:1;padding:.65rem .5rem;font-size:.88rem}.modal form{flex-direction:column}}
