.desk-page{max-width:1240px;margin:20px auto;padding:0 16px;color:#173960;font-family:'Zen Maru Gothic',sans-serif}.page-heading{padding:8px 4px 18px}.page-heading h1{font-size:34px;margin:0 0 6px}.page-heading p{margin:0}.parent-note{max-width:920px;margin:32px auto;padding:24px;background:#ecf7f6;line-height:1.9}.parent-note h2{font-size:23px}
#host{--ink:#173960;--red:#176bd5;--paper:#fffdf5;position:relative;isolation:isolate;container-type:size;container-name:game;height:760px;max-width:1200px;margin:auto;overflow:hidden;background:#72d0d8 url('./assets/background.webp') center/cover;border:2px solid #324d58;border-radius:6px;color:var(--ink);font-family:'Zen Maru Gothic',sans-serif}#host *{box-sizing:border-box}#host [hidden]{display:none!important}#host button{font:800 16px/1.3 'Zen Maru Gothic',sans-serif;min-width:0;min-height:42px;border:1.5px solid #375361;border-radius:5px;background:var(--paper);color:var(--ink);padding:10px 15px;cursor:pointer;touch-action:manipulation}#host button:disabled{opacity:.45;cursor:default}#host button:focus-visible,#host input:focus-visible,#collection:focus-visible{outline:4px solid #bd8119;outline-offset:3px}#host button:hover:enabled{box-shadow:0 3px 0 #17396030}#host button.primary{background:var(--red);border-color:#8b3124;color:#fff8e7;box-shadow:0 3px 0 #773323}#host input{accent-color:var(--ink)}#host .desk-top{height:56px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 18px;background:#fffdf5df;border-bottom:2px solid var(--ink)}#host .desk-top strong{font-size:18px;white-space:nowrap}#host nav{display:flex;gap:7px}#host nav button{font-size:12px;min-height:32px;padding:6px 10px;border-width:1px;border-radius:3px}#base{height:calc(100% - 56px)}
#result{height:100%;display:grid;grid-template-rows:100px minmax(0,1fr) 24px 48px;gap:18px;padding:24px 36px 28px;background:#fbf2de9e}#result>header{display:flex;align-items:center;justify-content:center;gap:36px}#result h2{font-size:32px;margin:4px 0 0;line-height:1.45}#result header small{font-size:12px}.score-seal{width:100px;height:100px;border:4px double var(--red);border-radius:50%;display:flex;justify-content:center;align-items:baseline;flex-wrap:wrap;color:var(--red);padding:9px;flex-shrink:0;transform:rotate(-7deg)}.score-seal span{font-size:12px;width:100%;text-align:center}.score-seal b{font-size:35px}.score-seal small{font-size:16px}#collection{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;border:2px solid #b49972;background:#fff8e9;display:grid;grid-template-columns:1fr 1fr;align-content:start;box-shadow:5px 6px 0 #30435025}#collection article{display:flex;gap:15px;padding:17px 20px;border-bottom:1px solid #c7b08b;border-right:1px solid #d8c4a4;min-width:0;min-height:110px;background:linear-gradient(90deg,#f1e5cd33,transparent 30%,#f1e5cd66)}#collection article>div{min-width:0}#collection h3{font-size:18px;line-height:1.65;margin:0 0 6px}#collection p{font-size:13px;line-height:1.75;margin:0}.folio{width:26px;height:26px;flex-shrink:0;background:var(--red);color:white;border-radius:50%;font-size:13px;display:grid;place-items:center;margin-top:3px}.reading-note{font-size:12px;text-align:center;margin:0;align-self:center}.result-actions{display:flex;justify-content:center;gap:20px}#host .result-actions button{min-width:190px}
#modal{position:absolute;inset:0;z-index:50;background:#203947bd;display:grid;place-items:center;padding:16px}#modal>section{max-height:100%;overflow:auto;width:min(640px,100%);background:#fffdf5;border:3px double #a89470;border-radius:7px;padding:25px;box-shadow:0 10px 20px #122c3450}#modal header{display:flex;align-items:center;justify-content:space-between;gap:10px}#modal h2{font-size:24px;margin:0}#dialog-content{font-size:15px;line-height:1.9}#dialog-content>button{display:block;width:100%;margin-top:12px}#dialog-content label{display:flex;align-items:center;gap:12px;margin:17px 0}#dialog-content input[type=checkbox]{width:25px;height:25px}#dialog-content label:has(input[type=range]){display:block}#dialog-content input[type=range]{display:block;width:100%;height:34px}#storage-note{font-size:12px}#host:fullscreen,#host.faux-fullscreen{width:100vw;height:100dvh;max-width:none;margin:0;border:0;border-radius:0}#host.faux-fullscreen{position:fixed;inset:0;z-index:99999}
#host{border:3px solid #46a4b4;border-radius:20px;height:760px}#host .desk-top{border:0;background:#f6fcffe8}#host button{border-color:#4a7dad;border-radius:10px}#host button.primary{border-color:#1260bb;background:#176bd5;box-shadow:0 4px 0 #114984}#host button:focus-visible,#host input:focus-visible,#collection:focus-visible{outline-color:#d49a08}.parent-note{background:#e8f5f6}#cover{height:100%;display:grid;grid-template-columns:1fr 1.1fr;align-items:center;gap:40px;padding:42px 55px}.keyart{width:100%;height:100%;min-width:0;min-height:0;object-fit:contain;border-radius:18px}.invitation{background:#fffef6;padding:28px 28px 32px;border-radius:4px 22px 22px 4px;border-left:12px solid #2267a7;box-shadow:0 9px 0 #32576a33;display:flex;flex-direction:column;gap:20px}.invitation h2{font-size:clamp(38px,4.7cqw,61px);line-height:1.45;margin:0}.invitation em{font-style:normal;background:linear-gradient(transparent 78%,#fbd849 78%)}.invitation p{font-size:16px;line-height:1.8;margin:0}.invitation small{font-size:11px}#host #start{font-size:21px;min-height:54px}#ready-note{font-size:10px}
#play{height:100%;display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);grid-template-rows:40px minmax(0,1fr) 64px 43px;gap:19px 26px;padding:24px 34px 28px}#tally{grid-column:1/-1;display:flex;gap:18px;justify-content:center;align-items:center}#tally>span{font-size:13px;background:#f9fdff;border-radius:11px;padding:6px 18px;display:flex;align-items:center;gap:13px;box-shadow:0 4px 0 #33768044}#tally b{font-size:25px;color:#205f9e}#clipboard{grid-column:1;grid-row:2;position:relative;width:min(100%,calc((100cqh - 260px)*1.3333));aspect-ratio:4/3;min-width:0;align-self:center;justify-self:center}#clipboard img{display:block;width:100%;height:100%;border-radius:9px}#case{position:absolute;inset:16% 9% 9% 8%;display:flex;flex-direction:column;justify-content:space-evenly;gap:10px;min-width:0}.sentence-line{font-size:clamp(23px,2.5cqw,34px);font-weight:800;line-height:2.05;overflow-wrap:anywhere;margin:0}.word-tail{white-space:nowrap}#host .slot{display:inline-block;vertical-align:baseline;width:54px;min-height:53px;margin-left:4px;padding:2px;font-size:30px;font-weight:900;border:3px dashed #42a0c6;background:#effaff;color:#286db1;border-radius:10px;line-height:1.35}#host .slot.filled{opacity:1;border-style:solid;border-color:#92b8bf;background:#eef7ec;color:#b73e3a}#host .slot:disabled:not(.filled){opacity:.7}#tools{grid-column:2;grid-row:2;align-self:center;display:flex;flex-direction:column;align-items:center;gap:18px;min-width:0;padding:22px 20px;background:#ecfcf2eb;border-radius:19px;box-shadow:0 6px 0 #286a7733}#tools h2{font-size:17px;margin:0}#marks{display:grid;grid-template-columns:1fr 1fr;gap:20px;width:100%}#host #marks button{min-height:132px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:7px 12px;background:#f06459;color:#fff;border:5px solid #ffffff8c;box-shadow:0 8px 0 #8d4932,0 13px 0 #cba46f;border-radius:35px 35px 20px 20px;opacity:1;position:relative}#host #marks button:nth-child(2){background:#2175d5;box-shadow:0 8px 0 #174a84,0 13px 0 #cba46f}#marks b{font-size:62px;line-height:1;font-family:serif;transform:translateY(-4px)}#marks span{font-size:16px}#host #marks button[aria-pressed=true]{outline:4px solid #d3a100;outline-offset:5px}#marks button[aria-pressed=true]::after{content:'えらんだ';position:absolute;right:0;top:-17px;padding:2px 5px;border-radius:6px;background:#ffe16c;color:#183a60;font-size:10px}#selection{font-size:12px;text-align:center;line-height:1.7;margin:7px 0 0}.mark-note{font-size:13px;line-height:1.8;text-align:center;margin:0;padding-top:8px;border-top:1px dashed #83acb4;width:100%}#feedback{grid-row:3;grid-column:1/-1;display:flex;align-items:center;justify-content:center;min-height:0;margin:0;padding:10px 18px;text-align:center;font-size:17px;line-height:1.7;background:#fff3b1;border:2px solid #fffbee;border-radius:18px;box-shadow:0 5px 0 #9f9b6844}.play-actions{grid-row:4;grid-column:1/-1;display:flex;justify-content:center;align-items:center;gap:18px}.play-actions small{font-size:11px;color:#153b5c;background:#effaffd6;border-radius:5px;padding:5px 8px}.play-actions button{min-width:160px}
#result{background:#e1f8f4dd}#result>header{gap:28px}#result h2{font-size:34px}.score-seal{background:#ffe064;border:4px solid #eed074;color:#705918;transform:rotate(5deg)}#collection{border:3px solid #83a9b7;border-radius:12px;background:#fffdf7;box-shadow:0 5px 0 #386d7b30}#collection article{border-color:#bdd1d9;background:transparent;align-items:center;min-height:120px}#collection p{font-size:17px;line-height:1.85}#collection .ten{color:#bf4b39}#collection .maru{color:#176bd5}.folio{background:#ddecff;color:#176bd5}#modal>section{border-color:#9ecad0;border-radius:18px}
@media(max-width:700px){.desk-page{padding:0 8px}#host{height:790px}.parent-note{padding:16px;margin:24px 0}.page-heading h1{font-size:28px}}@media(max-height:520px) and (min-width:621px){#host{height:390px}}
@container game (max-width:620px){#host .desk-top{height:80px;display:grid;justify-content:stretch;gap:7px;padding:7px 8px;text-align:center}#host .desk-top strong{font-size:15px}#host nav{gap:5px}#host nav button{flex:1;white-space:nowrap;font-size:11px;padding:7px 3px;min-height:33px}#base{height:calc(100% - 80px)}#cover{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto;gap:18px;padding:20px 25px}.keyart{grid-row:1;max-width:360px;justify-self:center}.invitation{grid-row:2;padding:18px 20px;border-left-width:8px;gap:12px;text-align:center}.invitation h2{font-size:32px}.invitation h2 br{display:none}.invitation h2 em{white-space:nowrap}.invitation p{font-size:12px}.invitation p br{display:none}.invitation small{font-size:9px}#host #start{font-size:18px;min-height:46px}#play{grid-template-columns:minmax(0,1fr);grid-template-rows:36px minmax(0,1fr) auto 61px 37px;gap:12px;padding:14px 13px 18px}#tally{gap:12px}#tally>span{font-size:11px;padding:5px 11px;gap:9px}#tally b{font-size:21px}#clipboard{grid-row:2;grid-column:1;width:min(100%,calc((100cqh - 416px)*1.3333))}#case{gap:5px}.sentence-line{font-size:22px;line-height:1.85}#host .slot{width:42px;min-height:42px;font-size:24px;margin-left:2px;border-width:2px;padding:1px}#tools{grid-row:3;grid-column:1;gap:11px;padding:11px 18px 12px;border-radius:14px;display:grid;grid-template-columns:1fr 1fr;width:100%}#tools h2{grid-column:1/-1;font-size:13px;text-align:center}#marks{grid-column:1;grid-row:2/4;gap:12px}#host #marks button{min-height:78px;border-width:3px;border-radius:22px 22px 13px 13px;padding:6px 5px;gap:2px;box-shadow:0 5px 0 #8d4932,0 9px 0 #cba46f}#host #marks button:nth-child(2){box-shadow:0 5px 0 #174a84,0 9px 0 #cba46f}#marks b{font-size:35px;transform:translateY(-2px)}#marks span{font-size:11px}#host #marks button[aria-pressed=true]{outline-width:3px;outline-offset:3px}#marks button[aria-pressed=true]::after{font-size:7px;top:-12px;padding:1px 3px}#selection{grid-column:2;grid-row:2;font-size:10px;margin:0}.mark-note{grid-column:2;grid-row:3;font-size:9px;padding-top:4px}#feedback{grid-row:4;font-size:13px;padding:8px 10px;border-radius:14px}.play-actions{grid-row:5;gap:9px}.play-actions small{font-size:8px;padding:4px 5px}#host .play-actions button{min-width:120px;min-height:34px;font-size:11px;padding:6px 10px}
#result{grid-template-rows:88px minmax(0,1fr) 31px 42px;gap:13px;padding:16px 17px 22px}#result>header{gap:14px}#result h2{font-size:25px;line-height:1.45;margin-top:4px}#result-title span{display:block;white-space:nowrap}#result header small{font-size:9px}.score-seal{width:77px;height:77px;padding:5px}.score-seal span{font-size:9px}.score-seal b{font-size:29px}#collection{grid-template-columns:1fr}#collection article{padding:14px 13px;gap:10px;min-height:105px}#collection p{font-size:16px;line-height:1.85}.folio{width:24px;height:24px;font-size:12px}.reading-note{font-size:10px;line-height:1.6}.result-actions{gap:12px}#host .result-actions button{min-width:0;flex:1;font-size:13px;padding:8px 5px}#modal>section{padding:18px}#modal h2{font-size:21px}#dialog-content{font-size:13px}}
@container game (max-height:520px) and (min-width:621px){#host .desk-top{height:38px;padding:4px 10px}#host .desk-top strong{font-size:13px}#host nav button{min-height:28px;font-size:10px;padding:4px 8px}#base{height:calc(100% - 38px)}#cover{padding:17px 65px;gap:35px}.invitation{padding:13px 18px;gap:9px;border-left-width:7px}.invitation h2{font-size:30px}.invitation h2 br{display:none}.invitation h2 em{white-space:nowrap}.invitation p{font-size:11px}.invitation p br{display:none}.invitation small{font-size:8px}#host #start{font-size:17px;min-height:37px}#play{grid-template-rows:28px minmax(0,1fr) 43px 29px;gap:7px 22px;padding:9px 25px 12px}#tally{gap:18px}#tally>span{font-size:10px;padding:2px 10px}#tally b{font-size:19px}#clipboard{width:min(100%,calc((100cqh - 177px)*1.3333))}.sentence-line{font-size:19px;line-height:1.75}#host .slot{width:35px;min-height:35px;font-size:22px;border-width:2px}#tools{padding:10px 18px;gap:8px;border-radius:13px}#tools h2{font-size:12px}#marks{gap:18px}#host #marks button{min-height:75px;border-width:3px;border-radius:23px 23px 15px 15px;padding:5px;gap:2px;box-shadow:0 4px 0 #8d4932,0 7px 0 #cba46f}#host #marks button:nth-child(2){box-shadow:0 4px 0 #174a84,0 7px 0 #cba46f}#marks b{font-size:37px;transform:translateY(-2px)}#marks span{font-size:10px}#host #marks button[aria-pressed=true]{outline-width:3px;outline-offset:3px}#marks button[aria-pressed=true]::after{top:-12px;font-size:7px}#selection{font-size:9px;margin-top:5px}.mark-note{font-size:9px;padding-top:5px}#feedback{font-size:12px;padding:5px 13px;border-radius:11px}.play-actions small{font-size:8px}#host .play-actions button{min-height:28px;font-size:11px;min-width:145px;padding:4px 12px}#result{grid-template-rows:58px minmax(0,1fr) 18px 32px;gap:8px;padding:9px 26px 13px}#result>header{gap:23px}#result h2{font-size:26px;margin:0}#result header small{font-size:8px}.score-seal{width:60px;height:60px;padding:3px}.score-seal span{font-size:7px}.score-seal b{font-size:23px}#collection article{min-height:91px;padding:10px 13px;gap:10px}#collection p{font-size:14px;line-height:1.75}.folio{width:22px;height:22px;font-size:11px}.reading-note{font-size:9px}#host .result-actions button{min-height:30px;font-size:11px;min-width:160px;padding:5px 10px}#modal>section{padding:16px 22px}#modal h2{font-size:21px}#dialog-content{font-size:13px;line-height:1.65}#dialog-content p{margin:10px 0}#dialog-content label{margin:9px 0}}
@container game (max-width:350px){#cover{padding:17px 20px;gap:13px}.invitation{padding:14px 15px;gap:10px}.invitation h2{font-size:27px}.invitation p{font-size:11px}#host #start{font-size:17px;min-height:42px}#play{grid-template-rows:31px minmax(0,1fr) auto 55px 33px;gap:9px;padding:11px 10px 15px}#tally>span{font-size:9px;gap:6px;padding:4px 8px}#tally b{font-size:19px}#clipboard{width:min(100%,calc((100cqh - 376px)*1.3333))}.sentence-line{font-size:18px;line-height:1.75}#host .slot{width:35px;min-height:35px;font-size:21px}#tools{padding:9px 11px;gap:9px}#tools h2{font-size:11px}#marks{gap:10px}#host #marks button{min-height:70px}#marks b{font-size:32px}#marks span{font-size:10px}#selection,.mark-note{font-size:8px}#feedback{font-size:11px;padding:6px 8px}#host .play-actions button{min-width:100px;min-height:31px;font-size:10px}.play-actions small{font-size:7px}#result{padding:14px 12px 18px;grid-template-rows:80px minmax(0,1fr) 28px 38px;gap:10px}#result h2{font-size:21px}.score-seal{width:66px;height:66px}#result>header{gap:9px}#collection article{padding:12px 9px;gap:8px}#collection p{font-size:14px}#host .result-actions button{font-size:12px}}
@media(prefers-reduced-motion:reduce){#host *{transition:none!important;animation:none!important}}
@container game (max-width:620px){.invitation p br{display:initial}}
