html,body{background:#0c1028;color:#f6f0df}body{background:radial-gradient(ellipse at 80% 0,#282344,transparent 60%),radial-gradient(circle at 15% 28%,#f7df9b88 1px,transparent 1.5px) 0 0/137px 113px,#0c1028}.shell{width:94vw;max-width:none;padding-bottom:16px}.topline,.topline a{color:#f6e6b6}.card,.guide,.cert{color:#23263a}.lead{color:inherit}h1{color:#fff}.btn{color:#23263a}.arrange-view{display:grid;grid-template-columns:minmax(230px,24%) minmax(0,1fr);gap:12px 24px;align-items:center}.arrange-view>.lead{display:none}.v2-guide{grid-column:1;grid-row:1}.v2-instruction{margin:0;background:#f6f0df;color:#23263a;padding:12px;border-radius:16px;font-size:24px;font-weight:800}.v2-steps{display:flex;list-style:none;gap:6px;padding:0;margin:10px 0}.v2-step{flex:1;padding:9px 6px;border:1px solid #ffffff44;border-radius:12px;font-size:14px}.v2-step b{display:block;color:#e9c56b}.v2-step.active{background:#f6f0df;color:#23263a}.v2-step.active b{color:#8a681d}.arrange-view>.hud{grid-column:1;grid-row:2;margin:0;justify-content:flex-start;color:#fff}.hud .meta .sm{color:inherit}.now{background:linear-gradient(#fffdf4,#eee5cb);color:#202238;border-bottom:4px solid #ceba7b;box-shadow:0 0 26px #e4bf6066;width:110px;font-size:72px}.v2-board{grid-column:2;grid-row:1/4;padding:14px;border:5px solid #343249;border-radius:28px;background:repeating-linear-gradient(90deg,#c9b67a09 0 1px,transparent 1px 4px),repeating-linear-gradient(#c9b67a09 0 1px,transparent 1px 4px),#f5efd8;box-shadow:0 0 28px #b9a2ff22;color:#23263a;min-width:0}.v2-board .chart{--c:min(calc((94vw * .72 - 90px)/var(--cols)),calc((100dvh - 260px)/var(--rows)));margin:0 auto 12px;gap:5px}.v2-board .cellx{border:1px solid #dfd2ae;background:#ebe3ca;box-shadow:inset 0 3px 5px #5b491530;border-radius:12px;font-size:max(22px,calc(var(--c)*.56))}.v2-board .cellx.filled{background:linear-gradient(#fffdf4,#f4e8bf);border-color:#e5d8aa;box-shadow:0 3px 0 #cdb576}.v2-board .cellx.filled::after{content:'';position:absolute;right:5px;top:5px;width:5px;height:5px;background:#d6b04e;border-radius:50%}.v2-board .cellx.pick{background:#eee6ff;border:2px solid #8870ca}.v2-board .cellx.ng{background:#fbe9ec;border-color:#c2475d}.v2-board .cellx.ok{background:#fff7db;border-color:#c6a455}.v2-row-complete{border-top-color:#c6a455!important}.v2-cat{display:flex;gap:10px;align-items:center;font-weight:700;font-size:16px;min-height:50px}.v2-cat>span:first-child{font-size:40px}.v2-cat>span:last-child{background:#fffdf6;border:2px solid #25283b;border-radius:16px;padding:9px}.arrange-view>.row{grid-column:1;grid-row:3;margin:0}.arrange-view>div:last-child:empty{display:none}.v2-certificate{background:#fff9e9;color:#23263a;border:3px double #b58b34;border-radius:14px;padding:24px;text-align:center}.v2-certificate [data-face]{font-size:48px}.kana-demo{position:fixed;inset:0;background:#080c24dd;z-index:60;display:grid;place-items:center;padding:20px}.kana-demo>div{background:#f7f0df;color:#23263a;border-radius:22px;padding:24px;width:min(440px,100%);font-size:22px}.kana-demo button{min-height:48px;padding:12px;border-radius:12px;background:#181b35;color:white}.v2-demo-board{position:relative;height:180px;border:2px solid #c4b280;border-radius:16px;margin:15px 0}.v2-demo-slot{position:absolute;right:12px;top:12px;width:60px;height:60px;box-shadow:inset 0 3px 5px #53411166;border-radius:10px}.v2-demo-kana{position:absolute;left:12px;top:95px;font-size:42px;animation:kana-demo 3s ease-in-out infinite}@keyframes kana-demo{45%,65%{left:calc(100% - 65px);top:12px}100%{left:12px;top:95px}}@media(prefers-reduced-motion:reduce){.v2-demo-kana{animation:none;left:auto;right:18px;top:12px}}
@media(max-width:700px){.arrange-view{display:flex;flex-direction:column;gap:12px}.arrange-view>*{width:100%}.v2-instruction{font-size:18px}.v2-step{font-size:13px}.arrange-view>.hud{justify-content:center}.v2-board{padding:7px;border-width:3px}.v2-board .chart{--c:calc((94vw - 36px - (var(--cols) - 1)*3px)/var(--cols));grid-template-columns:repeat(var(--cols),minmax(0,1fr));gap:3px}.v2-board .cellx{width:100%;height:var(--c);border-radius:6px;font-size:22px}.v2-board .cellx.two{font-size:22px;letter-spacing:-.18em}.v2-cat{font-size:14px}.v2-board .mini-cell{font-size:22px}.v2-board .phone-mini{gap:1px}.v2-certificate{padding:12px}}
@media print{html,body{background:white;color:black}.v2-guide,.v2-cat{display:none}}

.v2-board{display:flex;flex-direction:column}.v2-cat{order:1}
@media(min-width:701px){.v2-board .chart{--c:min(calc((94vw * .72 - 90px)/var(--cols)),calc((100dvh - 366px)/var(--rows)))}}
@media(min-width:701px){body.kana-arranging .shell{padding-bottom:6px}}
.v2-board{container-type:inline-size}.v2-board .chart{width:100%;grid-template-columns:repeat(var(--cols),minmax(0,1fr));--c:min(calc((100cqw - (var(--cols) - 1)*5px)/var(--cols)),calc((100dvh - 366px)/var(--rows)))}
@media(max-width:700px){.v2-board .chart{--c:calc((100cqw - (var(--cols) - 1)*3px)/var(--cols))}}
@media(min-width:1100px){
 .shell:has(.pads),.shell:has(.board){display:grid;grid-template-columns:320px minmax(0,1fr);column-gap:24px;row-gap:3px;align-content:center;min-height:calc(100dvh - 60px);padding-top:4px;padding-bottom:4px}
 .shell:has(.pads)>.topline,.shell:has(.board)>.topline{grid-column:1/-1;grid-row:1}
 .shell:has(.pads)>h1,.shell:has(.board)>h1{grid-column:1;grid-row:2;text-align:left;line-height:1.2;margin:4px 0;font-size:40px;min-width:0}
 .shell:has(.pads)>.helprow,.shell:has(.board)>.helprow{grid-column:1;grid-row:3;margin:0;text-align:left}
 .shell:has(.pads)>#app,.shell:has(.board)>#app,#app>div:has(>.pads),#app>div:has(>.board){display:contents}
 .shell:has(.pads) #app>div:has(>.task),.shell:has(.board) #app>.lead{grid-column:1;grid-row:4;background:#f6f0df;color:#23263a;border-radius:14px;padding:8px;margin:0;text-align:left;font-size:24px;line-height:1.3}
 .shell:has(.pads) .task{text-align:left}.shell:has(.pads) #app>.prog{grid-column:1;grid-row:5;margin:4px 0}
 .shell:has(.pads) .modes{grid-column:1;grid-row:6;margin:0}
 .shell:has(.pads) .pads{grid-column:2;grid-row:2/10;grid-template-columns:repeat(5,minmax(0,1fr));width:100%;min-width:0;align-self:center;gap:8px}
 .shell:has(.pads) .slot{min-width:0;color:#23263a}.shell:has(.pads) #app>div>.row{grid-column:1;grid-row:7;margin:0}
 .shell:has(.pads) #app>div>.note{grid-column:1;grid-row:8;margin:0}
 .shell:has(.board) .modes{grid-column:1;grid-row:5;margin:0}.shell:has(.board) .tools{grid-column:1;grid-row:6}
 .shell:has(.board) .board{grid-column:2;grid-row:2/9;align-self:center;justify-self:center;max-width:100%}
 .shell:has(.board) #app>div>.row{grid-column:1;grid-row:7;margin:0}
 .shell:has(.board .over[style*="display: grid"]) #app>.lead{display:none}
}
@media(pointer:coarse){.v2-board .phone-mini:has(.two) .mini-cell{width:28px;height:56px}.v2-board .phone-mini .mini-cell.two{writing-mode:vertical-rl;text-orientation:upright;line-height:1;letter-spacing:0;font-size:22px}}
.v2-board .cellx.two{font-size:max(22px,calc(var(--c)*.36))}

@media(pointer:coarse){.v2-board .phone-mini:has(.two) .mini-cell{border-bottom:1px solid #e0d6bd}}
/* Keep an existing phone view stable on hybrid pointers and public-shell pages. */
.v2-board .phone-mini{display:flex;flex-wrap:nowrap;justify-content:center;gap:1px;margin:12px 0}
.v2-board .phone-column{display:block;flex:0 0 auto;min-width:0;min-height:0;padding:0;border:0;outline:2px solid transparent;background:#fff8e8;border-radius:5px}
.v2-board .phone-column.selected{outline-color:#2f8a46;background:#e1f5e5}
.v2-board .mini-cell{display:flex;align-items:center;justify-content:center;width:24px;height:24px;font-size:22px;white-space:nowrap}
.v2-board .mini-cell.hole{background:#eee6d7}
.v2-board .phone-mini:has(.two) .mini-cell{width:28px;height:56px;border-bottom:1px solid #e0d6bd}
.v2-board .phone-mini .mini-cell.two{writing-mode:vertical-rl;text-orientation:upright;line-height:1;letter-spacing:0;font-size:22px}
.v2-board .phone-zoom{display:grid;gap:6px;margin:16px auto;max-width:500px}
.v2-board .phone-zoom .cellx{width:100%;min-width:48px;min-height:64px;height:auto;font-size:32px}
.v2-board .phone-zoom .cellx.two{font-size:25px;letter-spacing:-.04em}
.v2-board .phone-zoom .hole{min-height:64px;background:#eee6d7;border-radius:10px}
.v2-board .phone-mini{overflow-x:auto;justify-content:safe center}
.v2-board .phone-mini:has(.two) .mini-cell{width:30px}
