[hidden]{display:none!important}
:root{--navy:#172e43;--paper:#faf8f1;--white:#fffefa;--red:#df553d;--gold:#f5c867;--mint:#dceadd;--line:#dcded5;--muted:#657278;--shadow:0 5px 0 #172e4310;font-family:'Hiragino Maru Gothic ProN','Yu Gothic',Meiryo,sans-serif;color:var(--navy);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,a,input,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{opacity:.48;cursor:not-allowed}button{border:0}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,canvas:focus-visible{outline:3px solid #d95434;outline-offset:4px}a{color:inherit;text-decoration:none}.header{max-width:1320px;min-height:106px;margin:auto;padding:20px 44px;display:flex;align-items:center;gap:40px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;font-weight:900;line-height:1.35;letter-spacing:.08em;font-size:16px;min-width:205px}.brand-mark{font-family:serif;font-size:29px;width:49px;height:53px;background:var(--navy);color:var(--paper);display:grid;place-items:center;border-radius:13px 13px 18px 13px;transform:rotate(-5deg)}.brand-sub{display:block;font-size:22px}.header nav{display:flex;gap:25px;align-items:center}.nav{background:none;font-weight:700;min-height:45px;padding:6px 1px;position:relative;white-space:nowrap;font-size:14px}.nav.active:after{content:'';height:4px;background:var(--red);position:absolute;bottom:0;left:15%;right:15%;border-radius:4px}.header-tools{display:flex;align-items:center;gap:15px;margin-left:auto}.wallet{display:flex;align-items:center;gap:8px;white-space:nowrap;border:1px solid var(--line);padding:9px 14px;border-radius:30px;background:white}.wallet b{font-size:20px;min-width:30px}.wallet small{font-size:12px}.coin{display:inline-grid;place-items:center;border-radius:50%;background:var(--gold);color:#6a4c16;width:26px;height:26px;border:2px solid #e8b44e;font-size:13px;font-weight:900}.icon-btn{background:none;display:flex;flex-direction:column;font-size:25px;align-items:center;min-width:44px}.icon-btn span{font-size:10px;font-weight:800}main{max-width:1232px;margin:0 auto;padding:32px 0 50px;min-height:72vh}.welcome-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.eyebrow{font-size:12px;font-weight:800;letter-spacing:.15em;color:var(--red)}h1{font-size:30px;letter-spacing:.02em;margin:8px 0 0;font-weight:900}h2{font-size:25px;line-height:1.6;margin:6px 0 12px}h3{margin:0;font-size:19px;line-height:1.6}.small-note{font-size:13px;color:var(--muted);line-height:1.7}.rank-pill{font-size:13px;border:1px solid var(--line);padding:10px 15px;border-radius:30px;font-weight:700}.hero{border-radius:24px;background:#e7ecde;position:relative;overflow:hidden;min-height:240px;margin-bottom:31px;display:grid;grid-template-columns:1fr 1.06fr;border:1px solid #d9e2d5}.hero-copy{padding:27px 36px;position:relative;z-index:1}.hero h2{font-size:30px;margin:9px 0 7px}.hero p{font-size:14px;line-height:1.9;margin:0 0 14px}.hero-art{width:100%;height:100%;max-height:290px;object-fit:cover;object-position:center 60%;mix-blend-mode:multiply}.hero canvas{width:100%;height:240px}.text-link{background:transparent;padding:0;font-size:14px;font-weight:800;border-bottom:1px solid currentColor;padding-bottom:4px}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.section-heading h2{font-size:18px;margin:0}.section-heading span{font-size:13px;color:var(--muted)}.game-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.game-card{background:var(--white);border:1px solid var(--line);border-radius:19px;overflow:hidden;box-shadow:var(--shadow);transition:transform .18s,border-color .18s;text-align:left;padding:0;display:flex;flex-direction:column}.game-card:hover{transform:translateY(-5px);border-color:#8d9a97}.card-art{height:145px;position:relative;background:var(--tint)}.card-art canvas{display:block;width:100%;height:100%}.card-num{position:absolute;left:16px;top:12px;color:#172e4377;font-size:12px;font-weight:800;letter-spacing:.1em}.card-tag{position:absolute;bottom:12px;left:16px;padding:4px 9px;background:#ffffffc9;font-size:11px;border-radius:5px;font-weight:700}.card-body{padding:18px 20px;flex:1;display:flex;flex-direction:column}.card-body p{font-size:13px;line-height:1.8;margin:7px 0 17px;color:var(--muted)}.card-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:auto;font-size:12px;color:var(--muted)}.card-play{width:31px;height:31px;border:1px solid var(--navy);border-radius:50%;display:grid;place-items:center;font-size:15px;color:var(--navy)}.home-tip{margin-top:24px;display:flex;justify-content:space-between;background:#f1eee4;border-radius:12px;padding:16px 23px;font-size:13px;gap:20px}.home-tip b{color:#906a24}footer{max-width:1232px;margin:0 auto;padding:22px 0;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:20px;font-size:11px;color:var(--muted);line-height:1.8}footer button{background:none;text-decoration:underline;font-size:11px}.primary,.secondary,.danger{padding:12px 23px;min-height:46px;border-radius:11px;font-weight:800;font-size:14px;display:inline-flex;justify-content:center;align-items:center;gap:8px}.primary{background:var(--navy);color:#fff}.primary:hover{background:#294c67}.secondary{background:#fffefa;border:1px solid #ccd1cc}.danger{background:var(--red);color:white}.game-head{display:flex;gap:18px;align-items:flex-start;margin-bottom:23px}.back{border:1px solid var(--line);border-radius:50%;width:45px;height:45px;background:white;font-size:22px;flex-shrink:0}.game-head h1{font-size:27px;margin:0 0 6px}.game-head p{margin:0;font-size:14px;color:var(--muted);line-height:1.7}.game-head .badge{margin-left:auto;white-space:nowrap}.badge{padding:8px 12px;border:1px solid var(--line);border-radius:9px;background:white;font-weight:700;font-size:13px}.play-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px}.play-panel{border:1px solid var(--line);background:white;border-radius:20px;padding:25px;min-width:0}.side-panel{border:1px solid var(--line);border-radius:20px;background:#f1f0e7;padding:23px;height:fit-content;font-size:14px;line-height:1.9}.side-panel h3{margin-bottom:12px}.side-panel p{margin:7px 0 16px}.side-panel .primary,.side-panel .secondary{width:100%;margin-bottom:10px}.game-canvas{width:100%;height:auto;display:block;background:#edf0e5;border-radius:13px;touch-action:none}.status-row{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:18px;font-size:14px;font-weight:800}.actions{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;margin-top:20px}.hint{font-size:13px;text-align:center;color:var(--muted);line-height:1.8}.result{background:#fff3d4;border:1px solid #e7cc8b;border-radius:14px;padding:22px;text-align:center;margin-top:17px;animation:pop .25s ease}.result h2{margin:0}.result .earned{font-size:27px;font-weight:900;color:var(--red)}.result p{font-size:14px;line-height:1.7}.progress{height:7px;border-radius:10px;background:#d7ddd3;overflow:hidden}.progress i{display:block;height:100%;background:var(--red);border-radius:10px;transition:width .3s}.inventory{display:flex;flex-wrap:wrap;gap:8px}.item-chip{padding:10px 12px;border:2px solid transparent;border-radius:9px;min-height:44px;background:var(--chip,#eee);font-size:13px;font-weight:800}.item-chip.selected{border-color:var(--navy)}.item-chip.placed{opacity:.5;text-decoration:line-through}.bag-grid{display:grid;gap:4px;max-width:470px;margin:15px auto;padding:15px;background:#344757;border:9px solid #243747;border-radius:23px}.cell{aspect-ratio:1;border-radius:5px;background:#e9ece4;font-size:clamp(10px,1.2vw,15px);font-weight:900;padding:1px;min-width:0;border:1px solid transparent}.cell.filled{border:1px solid #172e4322}.cell.hint-cell{box-shadow:inset 0 0 0 3px var(--red)}.memory-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.memory-choice{border-radius:12px;border:2px solid #dde0da;background:#f3f1e9;overflow:hidden;padding:5px}.memory-choice:hover{border-color:var(--navy)}.memory-choice canvas{width:100%;display:block}.memory-choice span{display:block;font-size:13px;font-weight:700;margin-bottom:6px}.memory-choice.wrong{opacity:.4}.memory-choice.correct{border-color:#57a86b;background:#dbecd7}.memory-target{max-width:250px;margin:8px auto;text-align:center}.memory-target canvas{width:100%;background:#f1f0e9;border-radius:18px}.shop-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.shop-item{border:1px solid var(--line);border-radius:17px;background:white;padding:23px;display:flex;flex-direction:column}.shop-item .shop-icon{font-size:35px;margin-bottom:10px}.shop-item p{font-size:14px;line-height:1.8;color:var(--muted);flex:1}.shop-item button{width:100%}.owned-label{color:#457551}.cat-list{display:flex;gap:10px;flex-wrap:wrap;margin-top:15px}.cat-tag{border:1px solid var(--line);border-radius:10px;padding:8px 12px;font-size:13px;background:white}.dojo-scene{position:relative;overflow:hidden;border-radius:15px}.dojo-scene .game-canvas{min-height:250px}.studio-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:27px}.studio-canvas{display:block;width:100%;max-width:490px;margin:auto;border-radius:16px;box-shadow:0 12px 30px #172e4317}.control{display:block;font-size:13px;font-weight:800;margin-bottom:15px}.control select,.control input{display:block;width:100%;margin-top:7px;padding:11px 12px;background:white;border:1px solid #cdd1cc;border-radius:9px;color:var(--navy);font-size:14px;min-height:44px}.maker-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}#toast{position:fixed;left:50%;bottom:30px;z-index:30;transform:translate(-50%,20px);opacity:0;transition:.2s;background:var(--navy);color:white;padding:14px 24px;border-radius:12px;pointer-events:none;max-width:calc(100vw - 30px);font-size:14px;text-align:center;box-shadow:0 6px 30px #0002}#toast.show{opacity:1;transform:translate(-50%,0)}dialog{border:0;border-radius:23px;padding:35px;max-width:470px;color:var(--navy);box-shadow:0 20px 80px #0003}dialog::backdrop{background:#172e4399}dialog p{font-size:15px;line-height:1.9}.dialog-close:not(.primary){float:right;background:none;font-size:27px}.muted{color:var(--muted)}.swing-button{font-size:27px;min-width:220px;background:var(--red);box-shadow:0 5px 0 #b83c28}.swing-button:active{transform:translateY(3px);box-shadow:0 2px 0 #b83c28}.about-points{padding:18px 22px;background:#fff0cd;border-radius:12px;font-size:14px;line-height:1.9;margin-bottom:24px}.collection-count{font-size:14px;color:var(--muted)}@keyframes pop{from{transform:scale(.97);opacity:0}to{transform:scale(1);opacity:1}}@media(min-width:1500px){main{padding-top:45px}}@media(max-width:1300px){main,footer{margin-left:40px;margin-right:40px}.header{padding-left:40px;padding-right:40px}}@media(max-width:1000px){.header{gap:20px}.header nav{gap:16px}.brand{min-width:180px}.game-grid{gap:15px}.play-layout{grid-template-columns:minmax(0,1fr) 260px}.studio-layout{grid-template-columns:1fr 300px}.hero-copy{padding:24px}.hero h2{font-size:25px}}@media(max-width:760px){main,footer{margin-left:18px;margin-right:18px}main{padding-top:24px}.header{padding:15px 18px;flex-wrap:wrap;gap:10px}.brand{min-width:0;font-size:12px}.brand-sub{font-size:18px}.brand-mark{width:40px;height:44px;font-size:24px}.header nav{order:3;width:100%;justify-content:center;gap:35px}.header-tools{gap:9px}.wallet{padding:6px 10px}.wallet b{font-size:18px}h1{font-size:23px}.welcome-row{gap:10px}.rank-pill{font-size:11px;padding:8px}.hero{grid-template-columns:1fr 1fr;min-height:200px}.hero-copy{padding:21px}.hero h2{font-size:22px}.hero p{font-size:12px}.hero-art{max-height:240px}.game-grid{grid-template-columns:repeat(2,1fr);gap:15px}.card-art{height:130px}.card-body{padding:14px}.card-body h3{font-size:16px}.card-body p{font-size:12px;margin-bottom:11px}.card-bottom{font-size:11px}.play-layout,.studio-layout{grid-template-columns:1fr}.side-panel{order:2}.play-panel{padding:15px}.game-head h1{font-size:23px}.game-head{gap:12px}.game-head .badge{font-size:11px;padding:7px}.game-head p{font-size:13px}.shop-grid{grid-template-columns:repeat(2,1fr)}footer{flex-direction:column;gap:5px}.home-tip{flex-direction:column;gap:8px}.memory-grid{gap:8px}.memory-choice span{font-size:11px}.cell{font-size:12px}.side-panel .primary,.side-panel .secondary{width:auto;margin:4px 6px}.studio-canvas{max-width:380px}}@media(max-width:430px){.hero{grid-template-columns:1fr}.hero-art,.hero canvas{height:180px;max-height:180px}.hero-copy{padding:21px 24px}.hero h2{font-size:24px}.hero p{font-size:13px}.game-card .card-art{height:110px}.card-num{left:12px}.card-tag{font-size:10px;left:10px;bottom:9px}.card-body{padding:13px 11px}.card-body h3{font-size:15px}.card-body p{font-size:11px}.card-bottom{font-size:10px}.card-play{width:26px;height:26px}.section-heading span{font-size:11px}.shop-grid{grid-template-columns:1fr}.rank-pill{display:none}.game-head .badge{display:none}.memory-grid{grid-template-columns:repeat(3,1fr)}.status-row{font-size:12px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

.card-body p{font-size:14px}.card-body h3{font-size:19px}.card-bottom,.card-tag,footer,footer button{font-size:12px}.shuffling .memory-choice{animation:shuffle .3s ease-in-out alternate infinite}@keyframes shuffle{from{transform:translateY(-4px) rotate(-2deg)}to{transform:translateY(4px) rotate(2deg)}}@media(max-width:760px){.card-body h3{font-size:17px}.card-body p{font-size:14px}.hero{grid-template-columns:1fr 1fr}.hero h2{font-size:22px}.hero-art{height:100%;max-height:260px}.card-art{height:125px}}@media(max-width:430px){.hero{grid-template-columns:1fr}.hero-art{height:180px}.card-body h3{font-size:16px}.card-body p{font-size:13px}.card-bottom{font-size:11px}.card-art{height:110px}.hero-copy{padding:20px 24px}.game-head h1{font-size:22px}.card-body{padding:13px}}

@media(max-width:760px){.hero{grid-template-columns:minmax(0,1fr) 37%;min-height:160px;max-height:205px}.hero-copy{padding:18px 20px}.hero h2{font-size:20px;line-height:1.55}.hero p{display:none}.hero-art{height:100%;max-height:205px;object-position:60% 60%}.section-heading{gap:10px}.section-heading h2{font-size:16px;white-space:nowrap}.section-heading span{text-align:right;font-size:11px}.hero .text-link{font-size:13px;margin-top:8px}}@media(max-width:430px){.hero{grid-template-columns:minmax(0,1fr) 35%;margin-bottom:23px}.hero h2{font-size:18px}.hero-art{min-height:160px}.hero-copy{padding:17px}.hero .eyebrow{font-size:11px}.game-canvas#rope-canvas{min-height:260px}}

@media(max-width:760px){.card-reward{display:none}.card-bottom{font-size:13px}.card-body p{font-size:14px}}
