.home-portal-menu{top:max(10px, env(safe-area-inset-top));left:max(10px, env(safe-area-inset-left));z-index:5;--menu-bg:#ffffffeb;--menu-line:#07132f33;--menu-fg:#07132f;width:44px;height:44px;color:var(--menu-fg);position:absolute}.home-portal-menu[data-theme=dark]{--menu-bg:#040b16b8;--menu-line:#6fd6ff66;--menu-fg:#e8f7ff}body:not([data-screen=home]) .home-portal-menu{display:none}.home-portal-menu:has([data-asobiba-link][hidden]){display:none}.home-portal-menu>summary,.home-portal{box-sizing:border-box;border:1px solid var(--menu-line);background:var(--menu-bg);min-height:44px;color:var(--menu-fg);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);touch-action:manipulation;-webkit-tap-highlight-color:transparent;border-radius:999px;font:800 13px/1 system-ui,sans-serif;text-decoration:none;box-shadow:0 6px 16px #0006}.home-portal-menu>summary{cursor:pointer;justify-content:center;align-items:center;width:44px;height:44px;padding:0;list-style:none;display:flex}.home-portal-menu>summary::-webkit-details-marker{display:none}.home-portal-menu>summary::marker{content:""}.home-portal-menu[open]>summary svg{transform:rotate(180deg)}.home-portal{white-space:nowrap;align-items:center;gap:4px;width:max-content;max-width:calc(100vw - 80px);padding:0 14px 0 10px;display:flex;position:absolute;top:0;left:50px}.home-portal-menu:not([open])>.home-portal,.home-portal[hidden]{display:none}.home-portal-menu svg{flex:none}.home-portal-menu>summary:focus-visible,.home-portal:focus-visible{outline:3px solid var(--menu-fg);outline-offset:2px}.settings-dialog .settings-row{border-bottom:2px dashed color-mix(in srgb, currentColor 22%, transparent);justify-content:space-between;align-items:center;gap:12px;padding:10px 0;font-size:16px;font-weight:800;display:flex}.settings-dialog .settings-row:last-of-type{margin-bottom:14px}.settings-dialog .locale-pill select:focus-visible{outline:none}html[data-keyboard-focus] .settings-dialog .locale-pill:has(select:focus-visible){outline-offset:2px;outline:3px solid}.ura-more{box-sizing:border-box;min-width:44px;min-height:44px;color:inherit;text-align:center;text-underline-offset:3px;touch-action:manipulation;-webkit-tap-highlight-color:transparent;grid-column:1/-1;justify-content:center;align-items:center;gap:.4em;font-size:13px;font-weight:700;line-height:1.2;text-decoration:underline;display:flex}.ura-more:after{content:"";border-top:2px solid;border-right:2px solid;flex:none;width:.45em;height:.45em;transform:rotate(45deg)}.ura-more[hidden]{display:none}:root{color:#242321;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;font-synthesis:none;background:#b3b3b2;font-family:Hiragino Kaku Gothic ProN,Yu Gothic,system-ui,sans-serif}*{box-sizing:border-box}html,body,#app{overscroll-behavior:none;width:100%;height:100%;margin:0;overflow:hidden}#app{height:calc(100% - var(--game-ad-h,0px))}body{background:linear-gradient(#bfbbb4,#b3b3b2)}button,input,select{font:inherit}button{cursor:pointer;min-width:44px;min-height:44px;color:inherit;background:#f7f5ee;border:1px solid #66635d;border-radius:3px;box-shadow:0 2px 3px #37332b30}button:active{box-shadow:none;transform:translateY(1px)}button:disabled{cursor:wait;opacity:.55}[hidden]{display:none!important}.review{width:100%;height:calc(100dvh - var(--game-ad-h,0px));padding:env(safe-area-inset-top) env(safe-area-inset-right) var(--game-safe-bottom,env(safe-area-inset-bottom)) env(safe-area-inset-left);touch-action:none;-webkit-touch-callout:none;position:relative}.app-header{z-index:5;inset:max(6px, env(safe-area-inset-top)) max(6px, env(safe-area-inset-right)) auto max(12px, env(safe-area-inset-left));pointer-events:none;justify-content:space-between;align-items:center;display:flex;position:absolute}.app-header h1{letter-spacing:.08em;margin:0;font-size:12px;font-weight:500}.app-header .settings-open,.app-header .settings-dialog{pointer-events:auto}.workspace{width:min(100%, calc(((100dvh - var(--game-ad-h,0px)) - env(safe-area-inset-top) - var(--game-safe-bottom,env(safe-area-inset-bottom))) / 1.67));height:100%;margin:0 auto;position:relative}.desk{aspect-ratio:2/3;background-position:0 0;background-repeat:no-repeat;background-size:100%;width:100%;position:relative}.brief{flex-direction:column;justify-content:flex-end;height:9%;display:flex;position:absolute;top:7.1%;left:7%;right:17%}.brief small{font-size:12px;line-height:1.3}.brief strong{overflow-wrap:anywhere;font-size:clamp(22px,7vw,34px);line-height:1.1}.card strong[data-long=true]{font-size:clamp(22px,6.2vw,32px)}.brief strong[data-long=true]{font-size:clamp(17px,5vw,26px)}.brief .hint{z-index:2;pointer-events:none;background:#f4f1e8e6;border-left:3px solid #7d776a;padding:2px 7px;font-size:clamp(11px,3.3vw,14px);line-height:1.35;position:absolute;top:calc(100% + 6px);left:0;right:0}.brief .hint[data-hint=true]{color:#8c2a1c;border-left-color:#b23a26;font-weight:600}.time-row{align-items:center;gap:6px;min-height:18px;margin-top:4px;display:flex}.time-meter{--remaining:1;background:#e4dfd2;border:1px solid #464239;border-radius:6px;flex:1;height:12px;overflow:hidden}.time-meter i{width:100%;height:100%;transform:scaleX(var(--remaining));transform-origin:0;background:#464239;display:block}.time-meter[data-urgent=true] i{background:#b23a26}.time-seconds{text-align:right;font-variant-numeric:tabular-nums;min-width:2ch;font-size:14px;font-weight:700}.countdown{color:#b23a26;pointer-events:none;place-items:center;font-size:clamp(70px,22vw,120px);font-weight:800;display:grid;position:absolute;inset:26% 8% 32%}#paper{touch-action:none;cursor:crosshair;width:90.14%;height:59.7%;position:absolute;top:17.45%;left:4.88%}.card,.judgement{z-index:1;text-align:center;pointer-events:none;flex-direction:column;justify-content:center;align-items:center;gap:12px;width:84%;height:44%;display:flex;position:absolute;top:25%;left:8%}.card{height:56%;top:20%}.card small,.judgement small{font-size:14px}.card strong,.judgement strong{overflow-wrap:anywhere;font-size:clamp(27px,8vw,42px);line-height:1.1}.card p{white-space:pre-line;margin:0;font-size:clamp(10px,3.3cqw,13px);line-height:1.5}.card b{margin-top:6px;font-size:14px}.card[data-tough=true] small,.card[data-final=true] small{color:#b23a26;letter-spacing:.08em;font-weight:700}.judgement .remark{color:#3a3730;max-width:100%;margin:0;font-size:clamp(12px,3.6vw,15px);line-height:1.6}.sentence{display:block}.phrase{display:inline-block}.desk-info{top:calc(var(--pad,0px) + 100cqw * 1.5 * .7715 + 8px);flex-direction:column;align-items:center;gap:4px;width:88%;display:flex;position:absolute;left:6%}.workspace{--w:min(100vw, calc(((100dvh - var(--game-ad-h,0px)) - env(safe-area-inset-top) - var(--game-safe-bottom,env(safe-area-inset-bottom))) / 1.67));--pad:max(0px, calc(( (100dvh - var(--game-ad-h,0px)) - env(safe-area-inset-top) - var(--game-safe-bottom,env(safe-area-inset-bottom)) - var(--w) * 1.5 - 44px ) / 2));padding-top:var(--pad);container-type:inline-size}@media not all and (orientation:landscape) and (height<=600px){.workspace{--spare:max(0px, calc((100dvh - var(--game-ad-h,0px)) - env(safe-area-inset-top) - var(--game-safe-bottom,env(safe-area-inset-bottom)) - var(--w) * 1.15725 - 84px));--pad:min(36px, var(--spare));--extra:calc(var(--spare) - var(--pad))}.desk{aspect-ratio:auto;height:calc(115.725cqw + var(--extra) + 80px)}.desk-photo{height:150cqw;bottom:auto}.brief{height:13.5cqw;padding-right:calc(var(--tools-w,140px) + 10px);top:10.65cqw;right:4.98%}.brief strong,.brief>small:first-child{white-space:nowrap;text-overflow:ellipsis;flex-shrink:0;overflow:hidden}.brief .time-row{flex-shrink:0}.desk .paper-tools{top:calc(24.15cqw - 50px);left:auto;right:4.98%}#paper{height:calc(89.55cqw + var(--extra));background:#f7f6f9;top:26.175cqw;box-shadow:0 1px 2px #2b29251f,0 6px 14px #2b292514}.card,.judgement{top:calc(26.175cqw + (89.55cqw + var(--extra) - 66cqw) / 2);height:66cqw}.countdown{inset:calc(26.175cqw + (89.55cqw + var(--extra) - 61.5cqw) / 2) 8% auto;height:61.5cqw}.desk-info{top:calc(var(--pad) + 115.725cqw + 8px + var(--extra))}}.desk-photo{background-position:0 0;background-repeat:no-repeat;background-size:100%;position:absolute;inset:0;-webkit-mask-image:linear-gradient(#0000,#000 5% 95%,#0000);mask-image:linear-gradient(#0000,#000 5% 95%,#0000)}.ai{background:#eeece4;border-left:3px solid #48443c;grid-template-rows:auto 1fr;grid-template-columns:minmax(0,1fr);width:100%;min-height:57px;padding:5px 12px;display:grid;box-shadow:1px 2px 4px #36332b1c}.ai small{letter-spacing:.1em;grid-column:1;font-size:11px;display:block}.ai strong{overflow-wrap:anywhere;grid-column:1;min-height:1.4em;font-size:clamp(15px,4.8vw,20px);line-height:1.4;display:block}.paper-tools{z-index:2;gap:6px;width:max-content;display:flex;position:absolute;top:7px;left:calc(100% + 25px)}.paper-tools[data-active=false]{visibility:hidden}.paper-tools button{background:#f7f5eee6;min-width:44px;min-height:44px;padding:4px 10px;font-size:14px}.paper-tools #clear:disabled{cursor:default;opacity:.4}.stamp{color:#ae3026;text-align:center;overflow-wrap:anywhere;border:3px double #b5352b;justify-content:center;align-items:center;padding:7px 14px;font-size:23px;font-weight:800;line-height:1.1;display:inline-flex;transform:rotate(-9deg)}.judgement .stamp{animation:.1s ease-in stamp-in,.2s ease-out .1s forwards stamp-bleed}@keyframes stamp-in{0%{opacity:.35;transform:scale(1.8)rotate(-9deg)}to{opacity:1;transform:scale(1)rotate(-9deg)}}@keyframes stamp-bleed{to{text-shadow:0 0 1px #b5352b60;box-shadow:0 0 2px 1px #b5352b30,inset 0 0 2px #b5352b40}}.countdown-bounce{animation:.15s ease-out countdown-bounce}@keyframes countdown-bounce{50%{transform:scale(1.15)}}.loading{z-index:9;text-align:center;background:#f7f5ee;border:1px solid #8b8373;gap:12px;width:80%;padding:22px;display:grid;position:absolute;top:37%;left:10%;box-shadow:0 5px 25px #39342b38}.loading progress{accent-color:#514c40;width:100%}.instructions{font-size:14px;line-height:1.7}.instructions p{white-space:pre-line}.result{flex-direction:column;justify-content:center;align-items:center;gap:7px;width:100%;height:100%;padding-top:48px;padding-bottom:7px;display:flex}.clipboard{width:min(100%, calc(((100dvh - var(--game-ad-h,0px)) - 114px - env(safe-area-inset-top) - var(--game-safe-bottom,env(safe-area-inset-bottom))) * 854 / 1304));aspect-ratio:854/1304;background-position:50%;background-size:100% 100%;flex:0 auto;max-height:100%;position:relative;container-type:inline-size}.report{flex-direction:column;gap:1.1cqw;display:flex;position:absolute;inset:13% 5.2% 3.8%}.report-head{justify-content:space-between;align-items:flex-end;gap:8px;display:flex}.report-head h2{margin:0;font-size:3.3cqw;font-weight:600;line-height:1.2}.report-head time{white-space:nowrap;font-size:2.6cqw}.hero{border-bottom:1px solid #969184;flex-direction:column;flex:auto;min-height:0;margin:0;display:flex}.hero-art{flex:auto;min-height:0;position:relative}.share-picker{z-index:20;padding:max(16px, env(safe-area-inset-top)) 16px max(16px, var(--game-safe-bottom,env(safe-area-inset-bottom)));background:#2b292599;place-items:center;display:grid;position:fixed;inset:0}.share-picker-sheet{background:#f7f6f2;border-radius:4px;gap:12px;width:min(100%,420px);max-height:100%;padding:16px;display:grid;overflow:auto;box-shadow:0 8px 24px #1d1b1866}.share-picker h2{text-align:center;margin:0;font-size:17px}.share-picker-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.share-pick{background:#fff;grid-template-columns:minmax(0,1fr);gap:4px;min-width:0;padding:6px;display:grid}.share-pick-art{aspect-ratio:1;display:block;position:relative}.share-pick-art canvas{width:100%;height:100%;position:absolute;inset:0}.share-pick-name{overflow-wrap:anywhere;-webkit-hyphens:auto;hyphens:auto;font-size:12px;line-height:1.2}.share-pick[aria-pressed=true]{outline-offset:-1px;outline:3px solid #b5352b}.share-picker-actions{grid-template-columns:1fr 1fr;gap:10px;display:grid}.share-picker-ok{color:#f7f5ee;background:#48443c;font-weight:700}@media (orientation:landscape) and (height<=600px){.share-picker-sheet{width:min(100%,640px)}.share-picker-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}.hero-art canvas,.mini-art canvas{width:100%;height:100%;position:absolute;inset:0}.hero figcaption{text-align:center;overflow-wrap:anywhere;flex:none;padding:1cqw 0;font-size:3.6cqw;font-weight:650;line-height:1.2}.six-drawings{flex-shrink:0;grid-template-rows:repeat(2,minmax(0,1fr));grid-template-columns:repeat(3,minmax(0,1fr));gap:.7cqw;height:25cqw;display:grid}.mini{border:1px solid #a29a8e;grid-template-columns:40% 60%;min-width:0;margin:0;display:grid}.mini-art{min-height:0;position:relative}.mini figcaption{overflow-wrap:anywhere;flex-direction:column;justify-content:center;min-width:0;font-size:2.35cqw;line-height:1.12;display:flex}.mini b{font-weight:600}.pass,.fail{color:#a62e24}.report-footer{flex-direction:column;flex-shrink:0;padding-top:1cqw;padding-right:21%;display:flex;position:relative}.total-seconds{font-variant-numeric:tabular-nums;font-size:7cqw;line-height:1.1}.verdict{overflow-wrap:anywhere;font-size:4.4cqw;font-weight:800;line-height:1.15}.score{font-size:2.6cqw;line-height:1.35}.fastest{overflow-wrap:anywhere;font-size:3cqw;line-height:1.3}.name-field input{color:#242321;touch-action:manipulation;background:0 0;border:0;border-bottom:1px solid #776e5e;border-radius:0;width:100%;height:44px;min-height:44px;padding:0 4px;font-size:16px}.result-stamp{white-space:nowrap;border-width:3px;width:24%;min-height:40px;padding:5px 1px;font-size:2.5cqw;position:absolute;bottom:8px;right:6px}.result-actions{flex-shrink:0;grid-template-columns:1fr 1fr;gap:10px;width:min(92%,380px);display:grid}.result-actions button{min-height:46px;font-size:15px;font-weight:650}#retry{color:#fffdf5;background:#464239;border-color:#464239}.share-status{white-space:pre-line;z-index:2;background:#f7f5ee;margin:0;padding:10px;font-size:12px;position:absolute;bottom:64px;left:5%;right:5%}@media (orientation:landscape) and (height<=600px){.workspace{--pad:0px;align-items:flex-start;width:100%;max-width:none;margin:0;padding-top:0;display:flex;container-type:normal}.desk{width:calc(((100dvh - var(--game-ad-h,0px)) - env(safe-area-inset-top) - var(--game-safe-bottom,env(safe-area-inset-bottom))) / 1.5);flex:none}.brief{height:10%;top:6%;left:7%;right:7%}.brief strong{font-size:22px}.brief small{font-size:11px}.app-header h1{visibility:hidden}.desk-info{flex:1;gap:16px;min-width:0;padding:64px 25px 12px;position:relative;inset:auto}.ai{min-height:65px}.card,.judgement{gap:5px}.card strong,.judgement strong{font-size:25px}.card p{font-size:10px;line-height:1.4}.card b{margin-top:0;font-size:12px}.result{flex-direction:row;gap:20px;padding:4px 55px 4px 8px}.clipboard{flex:none;width:auto;max-width:none;height:100%}.result-actions{width:min(35%,280px)}.loading{width:50%;left:30%}}@media (prefers-reduced-motion:reduce){.judgement .stamp{animation:.1s ease-in stamp-in-reduced,.2s ease-out .1s forwards stamp-bleed}.countdown-bounce{animation-name:countdown-bounce-reduced}}@keyframes stamp-in-reduced{0%{opacity:.8;transform:scale(1.05)rotate(-9deg)}}@keyframes countdown-bounce-reduced{50%{transform:scale(1.03)}}.sr-only{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.locale-pill{color:#1d1c19;touch-action:manipulation;background:#fffdf7;border:1.5px solid #3a383233;border-radius:999px;align-items:center;gap:4px;min-width:44px;min-height:44px;display:inline-flex}.pill svg{fill:none;stroke:currentColor;stroke-width:2.2px;stroke-linecap:round;stroke-linejoin:round;flex:none;width:20px;height:20px}.locale-pill{padding:0 8px 0 12px}.pill.icon-pill{background:#fffdf7f0;border:1.5px solid #3a383233;border-radius:999px;place-items:center;width:44px;padding:0;display:inline-grid;box-shadow:0 2px 6px #37332b30}.locale-pill select{appearance:none;color:inherit;max-width:9.5em;min-height:44px;font:inherit;cursor:pointer;background:0 0;border:0;padding:0 6px;font-size:15px;font-weight:700}.judgement{background:#faf8f2eb;border:1px solid #d6cfbf;border-radius:4px;gap:8px;height:auto;max-height:56%;padding:14px 12px;top:50%;transform:translateY(-50%);box-shadow:0 3px 14px #2e2a2133}.howto[open]{max-height:calc(100dvh - var(--game-ad-h,0px) - env(safe-area-inset-top) - var(--game-safe-bottom,env(safe-area-inset-bottom)) - 24px);top:env(safe-area-inset-top);bottom:calc(var(--game-ad-h,0px) + var(--game-safe-bottom,env(safe-area-inset-bottom)));flex-direction:column;margin-block:auto;display:flex;overflow:hidden}.howto>h2,.howto>.settings-row,.howto>form,.howto>#settings-help{flex:none}.howto>form{order:2;margin-bottom:0}.settings-content,.howto>ol,.howto>.instructions{overscroll-behavior:contain;touch-action:pan-y;min-height:0;overflow-y:auto}@media (height<=500px){.howto[open]{padding:12px 18px}.howto h2{margin:0 0 6px;font-size:18px}.howto .settings-row{margin:4px 0;padding:0}.howto form{margin-top:6px}.howto form .btn{margin-top:0}}.settings-dialog{width:min(420px,100% - 24px)}.settings-dialog .instructions{order:1}.settings-dialog .instructions p{white-space:pre-line;line-height:1.5}.result>.ura-more{color:#39362c;flex:none}.result:has(>.ura-more) .clipboard{width:min(100%, calc(((100dvh - var(--game-ad-h,0px)) - 165px - env(safe-area-inset-top) - var(--game-safe-bottom,env(safe-area-inset-bottom))) * 854 / 1304))}@media (orientation:landscape) and (height<=600px){.result:has(>.ura-more){grid-template-rows:minmax(0,1fr) 44px;grid-template-columns:auto min(35%,280px);justify-content:center;gap:0 20px;display:grid}.result:has(>.ura-more) .clipboard{grid-area:1/1/3;width:auto;height:100%}.result:has(>.ura-more) .result-actions{grid-area:1/2;align-self:end;width:100%;margin-bottom:7px}.result>.ura-more{grid-area:2/2}.desk{container-type:inline-size}.brief{justify-content:flex-start;height:15%;top:1%}.brief>small{flex-shrink:0;font-size:clamp(7px,4cqw,9px);line-height:1}.brief strong{white-space:nowrap;text-overflow:ellipsis;flex-shrink:0;font-size:clamp(10px,6.2cqw,18px);line-height:1;overflow:hidden}.time-row{flex-shrink:0;min-height:14px;margin-top:1px}.time-seconds{font-size:12px}.card{gap:4px;height:56%;top:20%}.card p{font-size:clamp(8px,4.8cqw,10px);line-height:1.3}.card>small,.card>strong,.card>b,.judgement>small,.judgement>strong,.judgement>.stamp{flex-shrink:0}.card p,.judgement .remark{touch-action:pan-y;min-height:0;overflow-y:auto}.card strong,.judgement strong{font-size:clamp(15px,9cqw,25px)}.judgement{gap:4px;height:56%;padding:6px}.judgement .stamp{padding:3px 6px;font-size:clamp(12px,8cqw,20px)}.judgement .remark{font-size:clamp(10px,4.5cqw,13px);line-height:1.3}}@media (height<=320px){.settings-dialog[open]{padding:8px 12px}.settings-dialog h2{margin:0;font-size:16px}.settings-dialog .settings-row,.settings-dialog .settings-row:last-of-type{margin:0;padding:0}.settings-dialog form{margin-top:4px}}@media (orientation:landscape) and (height<=320px){.card{gap:2px}.card small{font-size:9px}.card strong{font-size:14px}.card p{font-size:8px;line-height:1.1}.card b{margin-top:0;font-size:10px;line-height:1.1}}@media (orientation:portrait) and (height<=720px){.time-row{min-height:12px;margin-top:1px}.brief strong{line-height:1}}
