@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');
:root{color-scheme:light;--bg:#f5fafc;--panel:#ffffff;--line:#d9e8ee;--muted:#657e8c;--green:#80d6f5;--text:#254452}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:'Space Grotesk','Noto Sans JP',sans-serif;font-size:16px}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid var(--green);outline-offset:4px}button:disabled{opacity:.4;cursor:default}[hidden]{display:none!important}.shell{max-width:1500px;padding:0 5%;margin:auto}header{height:104px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}a{color:inherit;text-decoration:none}.brand{font-weight:700;font-size:25px;display:flex;gap:12px;align-items:center;letter-spacing:-1px}.brand-mark{background:var(--green);color:var(--bg);width:36px;height:36px;text-align:center;line-height:36px;font-weight:900;border-radius:3px;position:relative}.brand-mark span{font-size:13px;position:absolute;right:4px;bottom:0}.brand-jp{font-weight:400;font-size:12px;letter-spacing:0;color:var(--muted);border-left:1px solid var(--line);padding-left:12px}.header-note{font-size:14px;color:var(--muted)}.intro{display:flex;align-items:end;justify-content:space-between;padding:42px 0 30px}.eyebrow,.section-label{font-size:12px;font-weight:600;letter-spacing:2px;color:var(--muted);margin:0 0 12px}h1{font-size:clamp(26px,3vw,40px);margin:0;font-weight:800;letter-spacing:-1px}.intro-number{font-size:14px;color:var(--muted);letter-spacing:2px}.layout{display:grid;grid-template-columns:270px minmax(350px,1fr) 200px;gap:26px;align-items:start}aside{padding-top:6px}.games{display:flex;flex-direction:column;gap:12px}.game{background:transparent;color:var(--text);width:100%;padding:18px 14px;text-align:left;display:flex;gap:13px;align-items:center;border:1px solid var(--line);border-radius:10px;position:relative}.game.active{border-color:var(--green);background:#80d6f509}.game strong{display:block;font-size:16px;font-weight:700}.game small{display:block;margin-top:8px;color:var(--muted);font-size:12px;line-height:1.6}.game-icon{font-size:28px;align-self:flex-start;line-height:1.3;width:28px;color:var(--green)}.memory-icon{color:#9e89cf}.reaction-icon{color:#dd8e69}.game-num{font-size:12px;color:var(--muted);position:absolute;right:12px;top:10px}.aside-note{margin-top:55px;padding:22px 0;border-top:1px solid var(--line)}.aside-note>span,.tip>span{font-size:12px;letter-spacing:1.5px;color:var(--muted)}.aside-note p{font-size:13px;color:var(--muted);line-height:1.8}.pixel-strip{color:var(--green);opacity:.35;font-size:25px;letter-spacing:5px;margin-top:26px}.play-panel{border:1px solid var(--line);background:var(--panel);border-radius:16px;padding:24px}.panel-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.panel-top h2{font-size:24px;margin:0}.panel-top .eyebrow{font-size:11px;letter-spacing:1.5px}.score-box{text-align:right}.score-box small{display:block;font-size:11px;letter-spacing:2px;color:var(--muted)}.score-box strong{font-size:32px;color:var(--green);font-weight:500;font-variant-numeric:tabular-nums}.arena{position:relative;aspect-ratio:1;background:#eef8fc;border:1px solid #d7eaf2;overflow:hidden;border-radius:8px}canvas{width:100%;height:100%;display:block}.overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;background:#f6fbfff2;text-align:center;padding:24px}.overlay-symbol{font-size:60px;line-height:1;color:var(--green);margin-bottom:22px}.overlay h3{font-size:24px;margin:0 0 14px}.overlay p{font-size:14px;color:var(--muted);line-height:1.8;margin:0 0 26px}.primary{color:#16435b;background:var(--green);border:0;padding:15px 28px;border-radius:6px;font-size:16px;font-weight:700;min-width:190px}.primary span{margin-left:22px;font-size:12px}.primary:hover{background:#a4e5fc}.panel-bottom{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:18px;font-size:12px;color:var(--muted);min-height:28px}#status{flex:1;min-width:110px}.text-button{background:none;border:0;color:var(--muted);font-size:13px;padding:6px 0}.text-button:hover{color:var(--text)}.instructions{padding-top:6px}.instructions h3{font-size:17px;line-height:1.8;margin:20px 0 12px}.instructions>p:not(.section-label){font-size:14px;color:var(--muted);line-height:2}.key-help{display:flex;flex-direction:column;gap:16px;font-size:12px;color:var(--muted);margin-top:26px}kbd{display:inline-block;border:1px solid #bad6e3;border-bottom-width:3px;border-radius:4px;padding:4px 6px;background:var(--panel);color:var(--text);font-family:inherit;font-size:12px;margin-right:3px}.tip{margin-top:38px;padding-top:22px;border-top:1px solid var(--line)}.tip p{font-size:13px;line-height:1.9;color:var(--muted)}.dpad{margin-top:24px;text-align:center}.dpad button{background:#f0f9ff;border:1px solid #bedeea;color:var(--text);width:44px;height:40px;border-radius:5px;margin:3px;touch-action:manipulation}.memory-board{height:100%;padding:5%;display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.card{border:1px solid #d7deec;border-radius:6px;background:#f2effb;color:#7964ab;font-size:clamp(20px,3vw,40px);min-height:0}.card.revealed,.card.matched{background:#bfa0ff1a;border-color:#bfa0ff}.card.matched{opacity:.6}.reaction-pad{height:100%;width:100%;border:0;color:var(--text);background:#ecf7fd;padding:24px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;font-size:21px;line-height:1.8}.reaction-pad .big{font-size:44px;font-weight:700}.reaction-pad.ready{background:var(--green);color:#16435b}.reaction-pad.waiting{background:#fff0e7}footer{margin-top:44px;padding:24px 0 30px;border-top:1px solid var(--line);display:flex;justify-content:space-between;color:var(--muted);font-size:12px;letter-spacing:1px}footer i{font-style:normal;margin-left:12px;color:#8aa0ab} @media(min-width:1500px){.layout{grid-template-columns:290px minmax(350px,600px) 220px;gap:36px}}@media(max-width:1150px){.layout{grid-template-columns:230px minmax(300px,1fr);gap:22px}.instructions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:0 30px}.instructions .section-label,.instructions h3,.instructions>p{grid-column:1}.key-help,.dpad{grid-column:2;grid-row:1/4;align-self:center}.tip{display:none}.game{padding:17px 10px}.game small{font-size:12px}}@media(max-width:700px){.shell{padding:0 5%}header{height:76px}.brand{font-size:22px}.brand-jp,.header-note{display:none}.intro{padding:28px 0 24px}.intro .eyebrow{font-size:10px}.intro-number{font-size:12px}h1{font-size:25px}.layout{display:flex;flex-direction:column;gap:20px}aside{width:100%;padding:0}aside .section-label{display:none}.games{flex-direction:row;gap:8px}.game{padding:14px 8px;justify-content:center;gap:7px;border-radius:8px}.game strong{font-size:14px}.game small,.game-num,.aside-note{display:none}.game-icon{font-size:22px;width:22px}.play-panel{width:100%;padding:18px;border-radius:12px}.panel-top{margin-bottom:16px}.panel-top h2{font-size:22px}.overlay h3{font-size:21px}.overlay-symbol{font-size:48px}.instructions{display:block;width:100%}.instructions h3{margin:12px 0 4px}.instructions>p:not(.section-label){margin:4px 0}.key-help{display:none}.dpad{margin-top:8px}.dpad button{width:60px;height:44px}footer{margin-top:28px;font-size:10px}footer>span:last-child{display:none}}@media(prefers-reduced-motion:no-preference){button{transition:background .15s,border-color .15s}.card{transition:background .2s}}

.collection{margin-bottom:34px}.collection-heading,.mini-heading{display:flex;justify-content:space-between;align-items:center;gap:14px}.collection-heading h2,.mini-heading h2{font-size:20px;margin:0}.collection-heading span{color:var(--muted);font-size:12px;letter-spacing:1.5px}.pending-game{margin-top:16px;border:1px dashed #b7dce9;background:#edf8fd;border-radius:16px;display:flex;align-items:center;gap:24px;padding:30px}.pending-icon{background:#d8f2ff;color:#5baacb;border-radius:16px;width:72px;height:72px;display:grid;place-items:center;font-size:36px}.pending-game h3{font-size:18px;margin:0 0 9px}.pending-game p{margin:0;color:var(--muted);font-size:14px;line-height:1.8}.mini-heading{margin-bottom:22px}.mini-heading span{font-size:12px;color:var(--muted)}.brand-mark{border-radius:10px;color:#24506b}.primary{border-radius:24px}.game.active{background:#eaf8ff}.game-icon{color:#469abf}.overlay-symbol{color:#5caed0}.score-box strong{color:#3888ab}.pixel-strip{color:#74bbd6}.arena{background:#edf8fd}.tip{border-color:#d9e8ee}.reaction-pad{color:#254452}.reaction-pad.waiting{color:#855634}.card.matched{opacity:.7}.text-button{font-size:14px}.panel-bottom{font-size:14px}.game small{font-size:12px}.section-label{font-size:12px}.intro-number{display:none}@media(max-width:700px){.pending-game{padding:22px 16px;gap:15px}.pending-icon{width:48px;height:48px;flex-shrink:0;font-size:26px;border-radius:12px}.pending-game h3{font-size:16px}.pending-game p{font-size:13px}.mini-heading{align-items:start;flex-direction:column;gap:7px}.collection-heading h2,.mini-heading h2{font-size:18px}.collection-heading span{font-size:10px}}
.main-games{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:20px}.main-game{border:1px solid var(--line);border-radius:16px;background:#fff;overflow:hidden;display:flex;flex-direction:column}.main-game:hover{border-color:#84bfd6}.game-cover{height:185px;padding:22px;display:flex;flex-direction:column;justify-content:space-between;color:#376079}.cover-math{background:#dff3fd}.cover-rhythm{background:#eef0fc;color:#646f9b}.cover-ninja{background:#e5f4f1;color:#437c76}.cover-label{font-size:11px;letter-spacing:2px}.game-cover strong{font-size:40px;font-weight:800;letter-spacing:2px}.cover-rhythm strong{font-size:30px;letter-spacing:0}.cover-detail{font-size:12px}.game-info{padding:22px;display:flex;flex:1;flex-direction:column}.genre{font-size:12px;color:#6d96a8}.game-info h3{font-size:18px;margin:9px 0 12px}.game-info p{font-size:14px;color:var(--muted);line-height:1.9;margin:0 0 22px}.play-link{margin-top:auto;align-self:start;background:#e8f7fe;border-radius:22px;padding:10px 20px;font-size:14px;color:#357b9a;font-weight:600}.play-link span{margin-left:16px;font-size:10px}.collection{margin-bottom:40px}@media(max-width:900px){.main-games{gap:14px}.game-info{padding:16px}.game-cover{padding:18px}.game-info h3{font-size:16px}.game-cover strong{font-size:32px}.cover-rhythm strong{font-size:23px}}@media(max-width:600px){.main-games{grid-template-columns:1fr;gap:14px}.main-game{flex-direction:row}.game-cover{width:37%;min-height:190px;height:auto;flex-shrink:0;padding:16px 12px}.game-cover strong{font-size:32px}.cover-rhythm strong{font-size:19px;letter-spacing:0}.cover-label{font-size:9px;letter-spacing:1px}.cover-detail{font-size:10px;line-height:1.8}.game-info{padding:16px}.game-info p{font-size:13px;margin-bottom:12px}.game-info h3{font-size:15px;line-height:1.7}.genre{font-size:10px}.play-link{padding:8px 16px}}
.score-group{display:flex;gap:24px;align-items:center}.best-box{text-align:right}.best-box small{display:block;font-size:10px;letter-spacing:1px;color:var(--muted)}.best-box strong{font-size:24px;color:#83a7b8;font-weight:500;font-variant-numeric:tabular-nums}#save-note{font-size:12px;line-height:1.8}.layout{grid-template-columns:270px minmax(300px,390px) 210px;justify-content:center;gap:32px}.play-panel{padding:20px}.arena{max-width:348px;margin:auto}.panel-top{margin-bottom:16px}@media(min-width:1500px){.layout{grid-template-columns:290px 390px 230px;gap:40px}}@media(max-width:1150px){.layout{grid-template-columns:230px minmax(300px,390px);gap:26px}.instructions{grid-column:1/-1}.arena{max-width:348px}}@media(max-width:700px){.layout{display:flex;gap:20px}.play-panel{padding:16px}.arena{max-width:348px}.score-group{gap:15px}.best-box strong{font-size:21px}.best-box small{font-size:9px}.panel-top .eyebrow{font-size:9px}.panel-top h2{font-size:20px}.score-box strong{font-size:27px}}
.best-box strong{color:#3888ab}
footer{align-items:center;gap:20px;flex-wrap:wrap}.creator-link{display:flex;flex-direction:column;align-items:flex-end;gap:8px;letter-spacing:0;padding:8px 0}.creator-copy{font-size:12px;color:var(--muted)}.creator-account{display:flex;align-items:center;gap:8px;color:#357b9a;font-size:14px;font-weight:600}.creator-handle{font-size:12px;font-weight:400}.x-mark{font-size:18px}.creator-link:hover .creator-account{text-decoration:underline;text-underline-offset:4px}@media(max-width:700px){footer{align-items:flex-start;gap:12px}.creator-link{align-items:flex-start;width:100%}.creator-copy{font-size:11px}}

.header-tools{display:flex;align-items:center;gap:20px}.language-select{font:inherit;font-size:13px;border:1px solid #bedde9;border-radius:20px;padding:8px 12px;background:#edf8fd;color:#254452;max-width:110px;cursor:pointer}.language-select:focus-visible{outline:3px solid #80d6f5;outline-offset:3px}.unity-language-note{font-size:12px;color:#657e8c;line-height:1.8;margin:12px 0 0}@media(max-width:700px){.header-tools{gap:8px}.language-select{font-size:12px;padding:7px 9px}.brand{font-size:19px;gap:8px}.brand-mark{width:30px;height:30px;line-height:30px}.unity-language-note{font-size:11px}}
.direction-pad,.key-arrows{display:inline-grid;grid-template-columns:repeat(3,44px);grid-template-rows:repeat(2,40px);gap:6px;align-items:stretch;flex-shrink:0}.direction-pad [data-direction="up"],.key-arrows [data-direction="up"]{grid-area:1/2}.direction-pad [data-direction="left"],.key-arrows [data-direction="left"]{grid-area:2/1}.direction-pad [data-direction="down"],.key-arrows [data-direction="down"]{grid-area:2/2}.direction-pad [data-direction="right"],.key-arrows [data-direction="right"]{grid-area:2/3}.direction-pad.horizontal{grid-template-rows:40px}.direction-pad.horizontal [data-direction]{grid-row:1}.extra-controls .direction-pad button,.virtual-controls .direction-pad button{width:100%;height:100%;min-width:0;min-height:0;margin:0;padding:0}.virtual-controls .control-group{align-items:center}.key-arrows{grid-template-columns:repeat(3,28px);grid-template-rows:repeat(2,28px);gap:3px}.key-arrows kbd{margin:0;text-align:center}.key-help>span{display:flex;align-items:center;gap:8px}@media(max-width:370px){.extra-controls .direction-pad{grid-template-columns:repeat(3,38px);grid-template-rows:repeat(2,38px)}.extra-controls .direction-pad.horizontal{grid-template-rows:38px}}@media(max-height:500px){.player-shell:fullscreen .frame-wrap{max-width:calc((100dvh - 210px) * 16 / 9)}}
