.wallet-page{margin:0;background:#fbf6eb;color:#332137;font:16px/1.5 "Segoe UI",Arial,sans-serif}
.wallet-page *,.collection *{box-sizing:border-box}
.wallet-nav,.wallet-main{width:min(1020px,92%);margin:auto}
.wallet-nav{display:flex;align-items:center;justify-content:space-between;padding:18px 0;border-bottom:1px solid #cfc1ae}
.wallet-page a{color:inherit;text-underline-offset:4px}
.wallet-logo{font:700 30px Georgia,serif;text-decoration:none}
.wallet-logo span{display:inline-grid;place-items:center;background:#77304c;color:#fff5d5;border-radius:50%;width:34px;height:34px;font:18px/1 sans-serif;vertical-align:middle}
.wallet-heading{margin:28px 0 22px}.wallet-heading p{color:#7c4058;margin:0 0 4px;font-weight:650}
.wallet-heading h1{font:500 clamp(2.5rem,7vw,4.8rem)/1 Georgia,serif;letter-spacing:-.045em;margin:0}
.wallet-stage{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);overflow:hidden;border-radius:22px;border:1px solid #d7c6af;background:#fffaf1}
.wallet-screen{background:#4e2846;color:#fff6db;padding:12px;margin:0;display:flex;flex-direction:column;justify-content:center}
.wallet-screen video{width:100%;height:auto;aspect-ratio:1;object-fit:cover;border-radius:13px;background:#eee7f6}
.wallet-screen figcaption{padding:10px 3px 1px;text-align:center;font-size:.92rem}
.wallet-script{padding:clamp(18px,3.2vw,44px);align-self:center}.komi-speaker{width:64px;height:64px;object-fit:contain}
.wallet-script h2,.collection-lead h2{margin:6px 0;font:500 clamp(1.6rem,3vw,2.4rem)/1.12 Georgia,serif}
.wallet-script p{margin:12px 0}.wallet-line{font-size:1.65rem}
#controls{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 0}
.wallet-script button,.collection button,.collection a{cursor:pointer}
.wallet-script button{font:inherit;font-weight:650;border-radius:10px;border:1px solid #baa6ac;background:#fffdf7;color:#452535;padding:10px 17px}
.wallet-script button b{display:block;font-size:1.2rem}.wallet-script .wallet-primary{background:#632d4e;color:#fff8e9;border-color:#632d4e}
.wallet-script .wallet-text{border:0;background:none;text-decoration:underline;font-size:.88rem;padding:8px 0}
.wallet-script button[hidden],.wallet-script [hidden]{display:none}
.wallet-prize{display:flex;gap:16px;align-items:center;margin:12px 0}.wallet-prize p{margin:3px 0;font-size:.9rem}
.wallet-lesson{display:inline-block;margin:16px 0 34px}.wallet-script details{margin-top:15px}.wallet-script details video{max-height:260px;max-width:100%}
.piece-wallet{display:inline-block;position:relative;width:76px;height:53px;flex:none;transform:rotate(-8deg);border:3px solid #432a29;border-radius:10px;background:#b96841;box-shadow:inset 0 5px #d69064,0 3px 0 #75442e}
.piece-wallet:before{content:"";position:absolute;inset:6px;border:1px dashed #f6c79e;border-radius:5px}
.piece-wallet:after{content:"";position:absolute;top:43%;left:0;right:0;border-top:3px solid #543128}.piece-wallet i{position:absolute;top:31%;left:45%;z-index:1;width:14px;height:14px;border:2px solid #553925;background:#ffcf6e;border-radius:50%}
.collection{color:#3a2a30;background:#fffbf3;padding:clamp(14px,3vw,32px);border:1px solid #d8cabc;border-radius:20px;margin:0 0 20px}
.collection-lead,.collection-foot,.album-top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.collection-lead p{margin:6px 0;max-width:52ch}.collection-switch{display:flex;gap:4px;flex-wrap:wrap}
.collection button,.collection a{font:inherit;color:#522e43}.collection button{border:1px solid #c6abb5;background:#fffcf5;border-radius:9px;padding:8px 12px}
.collection-switch button[aria-pressed=true]{color:#fff;background:#65314e}
.wood-room,.sticker-page{margin:18px 0;background:#f0e8d9;border-radius:14px;padding:22px}
.wood-display{min-height:142px;display:flex;align-items:flex-end;justify-content:center;border-bottom:11px solid #af7750;box-shadow:0 7px 0 -2px #d7af89}
.wood-display .shelf-object{background:transparent;border:none;text-decoration:none;text-align:center;padding:10px;display:grid;justify-items:center;gap:12px}.shelf-object span:last-child{font-size:.85rem;color:#55372c}
.vacant .piece-wallet,.sticker.empty>:first-child{filter:grayscale(1);opacity:.45}
.sticker-page{background-color:#fff5da;background-image:radial-gradient(#d3bd8e 1px,transparent 1px);background-size:15px 15px;border:1px solid #ddc8a0}
.album-top{margin:0 0 20px;font-family:Georgia,serif;font-size:1.3rem}.album-top span{font:14px system-ui}
.stickers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.collection .sticker{min-width:0;display:flex;align-items:center;flex-direction:column;justify-content:center;gap:9px;padding:16px 5px;background:#fffdf4;border:1px dashed #bda77c;border-radius:16px}.sticker small{font-size:.78rem}
.sticker.earned>:first-child{filter:drop-shadow(2px 0 white) drop-shadow(-2px 0 white) drop-shadow(0 3px white) drop-shadow(0 2px 2px #b3a591)}
.piece-cat{height:65px;width:70px;object-fit:contain}.piece-bubble{padding:10px;background:#e2cdef;color:#4b3453;font-weight:700;border:2px solid #4b3453;border-radius:18px 18px 18px 2px;transform:rotate(4deg)}
.collection-foot small{color:#705c60}.recall-choices{display:flex;flex-wrap:wrap;gap:8px}.recall-question{padding:12px 0;border-top:1px solid #ddcfc3}.recall-question h3{margin:.5em 0}.recall-result:empty{margin:0}
.wallet-page :focus-visible,.collection :focus-visible{outline:3px solid #995323;outline-offset:3px}
@media(max-width:640px){.wallet-stage{grid-template-columns:1fr}.wallet-screen video{max-height:32vh;object-fit:contain}.wallet-heading{margin:16px 0}.komi-speaker{float:right;width:45px;height:45px}.wallet-script{width:100%}.wallet-heading h1{font-size:2.6rem}.sticker-page{padding:12px}.stickers{gap:5px}.sticker .piece-wallet{width:55px;height:42px}.stickers strong{font-size:.85rem}.collection .sticker{padding:10px 2px}}
#reward details{margin-top:16px}#reward details video{display:block;max-width:100%;max-height:320px;margin:10px auto}#reward summary{cursor:pointer}
