:root{font-family:Segoe UI,Arial,sans-serif;color:#192934;background:#f7f6f2;font-synthesis:none}*{box-sizing:border-box}body{margin:0}a{color:#145475}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,canvas:focus-visible{outline:3px solid #007baa;outline-offset:3px}.top{max-width:1180px;margin:auto;padding:22px 24px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #dfe1db}.brand{color:#192934;letter-spacing:2px;font-size:24px;font-weight:850;text-decoration:none}.brand small{font-size:10px;letter-spacing:2px;color:#66757b;margin-left:14px}.badge{font-size:12px;color:#53645d;background:#e7ece4;padding:8px 12px;border-radius:20px}.page{max-width:1180px;padding:36px 24px;margin:auto}.eyebrow{font-size:11px;color:#9b4a12;letter-spacing:2px;font-weight:750}h1{font-size:clamp(30px,5vw,52px);line-height:1.1;letter-spacing:-1.5px;margin:14px 0}h2{font-size:20px}.lead{font-size:17px;line-height:1.7;color:#61717a;max-width:670px}.hero{display:flex;justify-content:space-between;align-items:center;gap:30px;padding-bottom:30px}.hero-bulbs{display:flex;gap:12px;flex-shrink:0}.hero-bulbs img{width:96px;height:110px;object-fit:contain;background:white;border-radius:20px;padding:12px;transform:rotate(-9deg)}.hero-bulbs img+img{transform:rotate(9deg);margin-top:25px}.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.card{background:#fff;border:1px solid #e0e4df;border-radius:20px;padding:24px;display:flex;flex-direction:column;align-items:flex-start}.card .art{width:100%;height:145px;background:#fff3e5;border-radius:12px;display:flex;align-items:center;justify-content:center;gap:12px;margin-bottom:14px}.card:nth-child(2) .art{background:#eaf5f9}.card:nth-child(3) .art{background:#eef4e9}.card:nth-child(4) .art{background:#f3edf9}.art img{width:62px;height:72px;object-fit:contain;background:white;border-radius:12px;padding:7px}.art .tile{background:white;box-shadow:0 4px 10px #15242c10;border-radius:12px;width:64px;height:76px;display:grid;place-items:center;font-size:33px;color:#087fa7}.art .paint-dot{width:45px;height:45px;border-radius:50%;background:var(--color)}.pixel-art{display:grid;grid-template-columns:repeat(5,15px);gap:3px}.pixel-art i{width:15px;height:15px;background:#8246bc}.pixel-art i.blank{background:transparent}.card h2{margin:8px 0}.card p{color:#61717a;font-size:14px;line-height:1.7;margin:4px 0 18px}.tag{font-size:11px;color:#53656d;letter-spacing:.5px}.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:auto}.btn{display:inline-flex;justify-content:center;align-items:center;gap:10px;min-height:44px;border:0;border-radius:9px;padding:11px 17px;background:#203642;color:white;text-decoration:none;font-weight:600;font-size:14px}.btn:hover{background:#365461}.btn.primary{background:#a94708}.btn.primary:hover{background:#853806}.btn.secondary{background:#edf1f1;color:#254a5e}.btn[aria-pressed=true]{background:#a94708;color:white}.small-note{font-size:12px;line-height:1.6;color:#61717a}.footer{max-width:1180px;margin:20px auto 0;padding:22px 24px;border-top:1px solid #dfe1db;display:flex;justify-content:space-between;gap:16px;font-size:12px;color:#61717a;flex-wrap:wrap}.back{font-size:13px;text-decoration:none}.work-header{margin-bottom:22px}.work-header h1{font-size:36px}.work-header p{color:#61717a;line-height:1.6;margin-bottom:0}.panel{background:white;border:1px solid #dfe5e3;border-radius:18px;padding:22px}.toolbar{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin-bottom:18px}.toolbar label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600}.toolbar input[type=color]{padding:3px;width:58px;height:44px;background:white;border:1px solid #b5c2c6;border-radius:8px}.toolbar input[type=range]{width:125px;min-height:36px}.toolbar select{min-height:44px;font-size:16px;border-radius:8px;border:1px solid #b5c2c6;padding:8px;background:white;color:#192934}.toolbar .separator{flex:1}.status{font-size:14px;line-height:1.5;min-height:24px;color:#405c69}.memory-board{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;max-width:650px;margin:20px auto}.memory-card{position:relative;aspect-ratio:1;background:#193f54;color:white;border:2px solid transparent;border-radius:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-width:0;font-weight:750;touch-action:manipulation}.memory-card:not(:disabled):hover{border-color:#f1a154}.memory-card .back-symbol{font-size:36px;color:#e5f2f7}.memory-card small{font-size:10px;letter-spacing:1px}.memory-card.revealed{background:#fff8ee;border-color:#ecbd89;color:#634a31}.memory-card.matched{background:#f0f7ee;border-color:#88ad7c;opacity:1;color:#365a35}.memory-card img{width:60%;height:62%;object-fit:contain;background:white}.memory-card .motif{font-size:clamp(26px,6vw,50px);line-height:1}.memory-card .motif-name{font-size:12px}.memory-card:disabled{opacity:1}.counters{display:flex;gap:20px;font-size:14px;flex-wrap:wrap}.canvas-wrap{max-width:100%;overflow:auto;padding:4px;background:#e8ece9;border-radius:12px}.drawing{display:block;width:100%;height:auto;background:white;touch-action:none;cursor:crosshair;border-radius:6px}.drawing-surface{max-width:960px;margin:auto}.editor-layout{display:grid;grid-template-columns:minmax(0,600px) minmax(150px,1fr);gap:26px}.checker{background-color:#fff;background-image:linear-gradient(45deg,#e1e6e6 25%,transparent 25%),linear-gradient(-45deg,#e1e6e6 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e1e6e6 75%),linear-gradient(-45deg,transparent 75%,#e1e6e6 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0}#pixel-canvas{width:100%;height:auto;display:block;touch-action:none;image-rendering:pixelated;cursor:crosshair}#preview{display:block;image-rendering:pixelated}.preview-large{width:128px;height:128px;image-rendering:pixelated;display:block}.previews h2{font-size:15px}.previews p{font-size:12px;color:#61717a}.palette{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}.swatch{width:34px;height:34px;border:2px solid #ccd7d9;border-radius:50%;background:var(--color);padding:0}.export-link{display:none;margin:12px 0}.export-link.ready{display:inline-flex}.tips{font-size:13px;line-height:1.7;color:#5a6e77;margin-top:18px}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}@media(max-width:650px){.top{padding:16px}.brand{font-size:21px}.brand small{display:none}.badge{font-size:10px}.page{padding:22px 14px}.hero-bulbs{display:none}.cards{grid-template-columns:1fr}.card{padding:18px}.card .art{height:120px}.hero{padding-bottom:18px}.panel{padding:14px}.work-header h1{font-size:30px}.memory-board{gap:8px}.memory-card{border-radius:10px}.memory-card .motif-name{font-size:10px}.memory-card .back-symbol{font-size:27px}.toolbar{gap:9px}.toolbar .separator{display:none}.btn{min-height:48px;font-size:14px;padding:10px 13px}.editor-layout{grid-template-columns:1fr}.previews{display:flex;align-items:center;gap:20px;flex-wrap:wrap}.previews h2{width:100%;margin:0}.swatch{width:40px;height:40px}.footer{padding:18px 16px}.drawing{border-radius:3px}}
.memory-board{grid-template-columns:repeat(var(--memory-columns,4),minmax(0,1fr))}.records{border-top:1px solid #dfe5e3;margin-top:24px;padding-top:16px}.records h2{font-size:18px}.records ol{padding-left:26px;max-width:520px}.records li{padding:9px 4px}.records li span{margin-left:20px;color:#61717a;font-size:13px}.confirm-dialog{max-width:460px;width:calc(100% - 32px);border:1px solid #dfe5e3;border-radius:16px;padding:24px;color:#192934}.confirm-dialog::backdrop{background:#142b3f88}.confirm-dialog p{line-height:1.65}.confirm-dialog h2{margin-top:0}.confirm-dialog .actions{justify-content:flex-end;margin-top:20px}@media(max-width:650px){.memory-board{grid-template-columns:repeat(4,minmax(0,1fr))}.memory-card .motif-name{overflow-wrap:anywhere;font-size:9px}.records li span{display:block;margin:4px 0 0}}
.save-dialog label{display:block;font-size:14px;font-weight:600;margin-bottom:8px}.save-dialog input{width:100%;padding:12px;border:1px solid #9cabb1;border-radius:8px;font:inherit;font-size:16px}.save-dialog .save-error{color:#a32920;font-size:13px}.save-dialog .actions{flex-wrap:wrap}

.card,.panel{background:#f4f7fc;border-color:#d5e2ef}

.support-card{grid-column:1/-1;border:1px solid #c7dced;border-radius:16px;background:#e7f0fa;padding:16px;color:#192934}.support-card summary{cursor:pointer;display:flex;align-items:center;justify-content:center;gap:12px;font-weight:700;min-height:48px;list-style:none}.support-card summary::after{content:'＋';font-size:22px}.support-card[open] summary::after{content:'−'}.support-card summary:focus-visible{outline:3px solid #087fa7;outline-offset:4px}.support-card summary img{width:36px;height:44px}.support-card .support-content{text-align:center;padding:16px;line-height:1.7}.support-card .support-content h2,.support-card .support-content h3{font-size:20px}.support-card .support-qr{display:block;width:264px;max-width:100%;height:auto;margin:20px auto;background:#fff}.support-card .support-content p{font-size:15px;color:#344e63}
