@font-face{font-family:Yomogi;src:url('assets/yomogi-family.ttf')}*{box-sizing:border-box}body{margin:0;background:#fcf8ee;background-image:radial-gradient(#d8cdbb55 1px,transparent 1px);background-size:22px 22px;color:#614d3e;font-family:'Yu Gothic',Meiryo,sans-serif;font-size:14px}button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}button:focus-visible{outline:3px solid #498c83;outline-offset:3px}button:disabled{cursor:default;opacity:.4}h1,h2,p{margin:0}.app{max-width:590px;margin:auto;padding:22px 22px 28px}header{display:flex;align-items:center;gap:10px;position:relative;margin-bottom:20px}.intro-art{width:84px;height:94px;flex:none;background:#f5e7e4;border-radius:50% 50% 42% 45%;display:grid;place-items:center}.intro-art img{width:105px;max-width:none}.tag{font-size:10px;font-weight:700;letter-spacing:.12em;color:#95785c}h1{font-family:Yomogi,sans-serif;font-size:25px;line-height:1.35;letter-spacing:.02em}h1 span{display:block;font-size:34px;color:#775b87}header p{font-size:11px;margin-top:6px;color:#92806b}.help{position:absolute;right:0;top:0;width:30px;height:30px;border:1px solid #ddcdbb;background:#fffdf7;border-radius:50%;font-weight:bold}.levels{display:flex;gap:7px;margin-bottom:18px;padding:5px;background:#eee8dd;border-radius:18px}.levels button{border:0;border-radius:13px;background:none;flex:1;min-height:49px;font-weight:bold;font-size:13px}.levels span{display:block;font-size:10px;font-weight:normal;opacity:.7;margin-top:2px}.levels button[aria-pressed=true]{background:#fffdf8;box-shadow:0 2px 5px #6f59431a;color:#795684}.game{padding:18px 18px 0;background:#fffdf7;border:1px solid #e3d8c8;border-radius:26px;box-shadow:0 6px 0 #ede3d3,0 10px 28px #7962490b;overflow:hidden}.score{display:flex;justify-content:space-between;font-size:12px;color:#82715c}.score strong{font-size:20px;color:#71917b}.progress{height:5px;border-radius:5px;background:#eee9df;margin:10px 0 13px;overflow:hidden}.progress i{display:block;height:100%;width:0;background:#abc4ad;transition:width .25s}.tip{text-align:center;font-size:11px;color:#9a8976;margin-bottom:8px}.board{position:relative;width:100%;margin:6px auto 20px;isolation:isolate;background:radial-gradient(ellipse,#f1eaf4 0%,#fbf8f1 66%,transparent 72%);border-radius:30px}.tile{position:absolute;border:1px solid #e1c9a2;border-bottom:4px solid #c8b28e;border-radius:15%;padding:0;background:linear-gradient(145deg,#fffefa,#fff3df);box-shadow:0 3px 5px #6b51322b;transition:filter .16s,opacity .16s;display:grid;place-items:center}.tile img{width:100%;height:100%;object-fit:contain;pointer-events:none}.tile:disabled{opacity:.52;filter:saturate(.72);border-bottom-color:#d2c9bb}.tile:not(:disabled):hover{background:#fff6ce;border-color:#c19a57;box-shadow:0 0 0 2px #f4dca2,0 5px 9px #6b51322b}.tile.hinted{outline:3px solid #80b8a0;outline-offset:1px;animation:hint .7s ease-in-out 2}.tray-panel{background:#f5efe4;margin:0 -18px;padding:14px 12px 10px;border-top:1px solid #e8ddce}.tray-heading{display:flex;align-items:center;justify-content:space-between;font-size:10px;margin-bottom:9px}.tray-heading strong{font-weight:700;color:#89725d}.tray-heading>span{color:#9c8871}.tray{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.slot{aspect-ratio:1;background:#ebe3d6;border:1px dashed #d7cbbb;border-radius:9px;display:grid;place-items:center;min-width:0;color:#c0b09b;font-size:10px}.slot.filled{background:#fffdf7;border:1px solid #ddc79f;box-shadow:0 3px 0 #dccbb1}.slot img{width:100%;height:100%;object-fit:contain}.slot.new{animation:land .2s ease-out}.tray.warning .slot{border-color:#dba496}.tray-panel #status{font-size:11px;text-align:center;min-height:30px;line-height:1.6;padding-top:10px;color:#8b6e55}.actions{display:flex;gap:7px;margin-top:20px}.actions button{flex:1;padding:11px 5px;border:1px solid #deceba;background:#fffcf5;border-radius:13px;font-size:11px;min-height:44px}.actions button:not(:disabled):hover{background:#f1eaf4}.footer-note{text-align:center;font-size:11px;color:#988571;margin-top:17px;line-height:1.9}.footer-note small{font-size:10px;color:#b3a48e}dialog{border:1px solid #ddcbb1;border-radius:26px;padding:28px;max-width:390px;width:90vw;background:#fffbf2;color:#614d3e;box-shadow:0 20px 80px #4d3b3933;text-align:center}dialog::backdrop{background:#554c5a77;backdrop-filter:blur(3px)}dialog h2{font-family:Yomogi,sans-serif;font-size:29px;color:#795b89;margin:10px 0}dialog p{font-size:13px;line-height:1.9}dialog ol{text-align:left;line-height:1.9;padding-left:22px;font-size:14px}dialog li{margin:15px 0}dialog .close{position:absolute;right:14px;top:12px;border:0;background:none;font-size:25px}.primary,.secondary{display:block;width:100%;min-height:46px;border-radius:25px;margin-top:18px;padding:10px 15px;font-weight:bold}.primary{border:0;border-bottom:3px solid #896c9b;background:#b49ac4;color:#fff}.secondary{background:none;border:1px solid #d9c7b0;font-weight:normal;margin-top:10px}#result-art{width:150px;height:150px;object-fit:contain}#result-kicker{color:#8da284}.cleared #status{color:#508870;font-weight:bold}@keyframes land{from{transform:scale(.7);opacity:.4}to{transform:scale(1);opacity:1}}@keyframes hint{50%{outline-color:#d6ae65}}@media(max-width:420px){.app{padding:16px 12px 24px}header{margin-bottom:16px}.intro-art{width:65px;height:78px}.intro-art img{width:86px}h1{font-size:23px}h1 span{font-size:29px}header .tag{font-size:9px}header p{font-size:10px}.game{padding:15px 12px 0}.tray-panel{margin:0 -12px}.board{margin-bottom:15px}.tray{gap:4px}.tray-heading{font-size:9px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* The tray sits above the board, so selections and the seven-slot limit stay clear. */
.game>.tray-panel{margin:2px 0 13px;padding:13px 10px 10px;border:1px solid #dfc9aa;border-radius:16px;background:#faf1df;box-shadow:0 3px 0 #f0e1c7}.tray-heading{font-size:11px}.tray-heading>span{font-weight:bold}.tip{font-size:11px;margin-top:14px;margin-bottom:4px;color:#846591}.board{margin-top:2px;margin-bottom:18px}.tutorial-triple{display:flex;align-items:center;justify-content:center;gap:5px;margin:18px 0;padding:10px 8px;background:#f4ecde;border-radius:16px}.tutorial-triple img{width:52px;height:55px;object-fit:contain;background:#fffaf1;border:1px solid #e2cfad;border-radius:9px}.tutorial-triple span{font-size:12px;font-weight:bold;color:#63866b;margin-left:5px}#instructions{max-height:92dvh;overflow:auto}#instructions h2{font-size:25px}#instructions ol{font-size:13px;margin-top:14px;margin-bottom:15px}#instructions li{margin:10px 0}#instructions>p{font-size:12px;line-height:1.8}.trial-back{display:inline-block;margin:0 0 13px;font-size:12px;color:#7d6b57;text-decoration:none}@media(max-width:420px){.game>.tray-panel{margin:0 0 12px;padding:12px 8px 9px}.tray-heading{font-size:10px}.tip{font-size:10px}.tutorial-triple img{width:45px;height:49px}}

/* Fit each isolated costume fully, with a small safe margin. */
.tile img,.slot img{width:96%;height:96%;object-fit:contain;object-position:center}.intro-art img{width:100%;height:100%;max-width:100%;object-fit:contain}.costume-note{text-align:center;font-size:12px;line-height:1.7;color:#795b89;margin:20px 8px 0}

.triple-wallet{display:flex;justify-content:space-between;align-items:center;gap:12px;border:1px solid #dfc9aa;border-radius:14px;background:#fffdf7;padding:12px 14px;margin:0 0 16px;font-size:14px}.triple-wallet strong{font-size:22px;color:#66876d}.triple-wallet a,.reward-gacha-link{color:#557f61;font-weight:700;text-decoration:underline;text-underline-offset:3px}.save-warning{font-size:13px;color:#a34145;margin-bottom:14px}.level-reward{text-align:center;font-size:13px;margin:0 0 12px;color:#795b89}#result-reward{font-size:16px;font-weight:700;color:#557f61;margin-top:13px}.reward-gacha-link{display:inline-block;font-size:14px;margin-top:12px}.levels span{font-size:11px}@media(max-width:420px){.levels span{font-size:10px}.triple-wallet{font-size:13px;padding:10px 12px}}
