:root{color-scheme:light;--ink:#262622;--cream:#f8f7ef;--yellow:#ffda43;--red:#e84735;--line:#292924;--muted:#68685e;--thumb:0%;font-family:"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,system-ui,sans-serif;color:var(--ink);background:var(--cream);font-synthesis:weight}
*{box-sizing:border-box}body{margin:0;min-width:280px}button,input,select{font:inherit;color:inherit}button{cursor:pointer}button,input,select{touch-action:manipulation}button{background:none;border:0}button:focus-visible,select:focus-visible,input:focus-visible,a:focus-visible{outline:3px solid #007b89;outline-offset:3px}button:disabled{cursor:wait;opacity:.65}button:active:not(:disabled){transform:translateY(1px)}[hidden]{display:none!important}.symbols{position:absolute;width:0;height:0;overflow:hidden}.ic{width:1.35rem;height:1.35rem;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle;flex:none}.wrap{max-width:1220px;width:calc(100% - 112px);margin-inline:auto}
.mast{height:69px;background:#fffef9;border-bottom:2px solid var(--line)}.nav{height:100%;display:flex;align-items:center;justify-content:space-between}.brand{display:inline-flex;align-items:center;gap:11px;color:var(--ink);text-decoration:none;font-size:1.23rem;font-weight:950;letter-spacing:-.06em}.brand img{width:35px;height:35px}.help{display:flex;gap:6px;align-items:center;font-size:.9rem;font-weight:750;padding:8px 0 8px 12px}.help:hover{text-decoration:underline}.help .ic{width:19px;height:19px}
.hero{background:#ffda47;border-bottom:2px solid var(--line);overflow:hidden;isolation:isolate}.hero-inner{position:relative;min-height:186px;display:flex;align-items:center}.hero-copy{position:relative;z-index:2;padding:27px 0 31px}.hero h1{font-size:clamp(2.6rem,4.95vw,4.75rem);margin:0 0 9px;font-weight:1000;line-height:1.16;letter-spacing:-.079em;transform:skewX(-5deg);transform-origin:left bottom;color:#20211e;text-shadow:2px 2px 0 #fff4b3}.hero h1 span{color:#df4232;margin-left:-.045em;margin-right:-.04em}.hero p{font-weight:650;margin:0;font-size:clamp(.92rem,1.12vw,1.05rem);line-height:1.75;letter-spacing:.018em}
.poster-art{position:absolute;right:1.4%;top:0;height:100%;width:32%;isolation:isolate;pointer-events:none}.print-circle{position:absolute;width:275px;height:275px;right:8%;top:-38px;border-radius:50%;background-color:#f9b82b;background-image:radial-gradient(#785f27 1.1px,transparent 1.6px);background-size:7px 7px;transform:rotate(-10deg)}.print-circle:after{content:"";position:absolute;inset:14px;border:1.5px solid #8f732c;border-radius:inherit}.shadow-art{position:absolute;height:88%;aspect-ratio:1.068;right:27%;top:8%;transform:rotate(-9deg);filter:drop-shadow(5px 4px 0 #e64936)}.shadow-art img{width:100%;height:100%;display:block}.shadow-art strong{position:absolute;left:27%;top:35%;font:italic 1000 clamp(3rem,4vw,4.6rem)/1 Arial,sans-serif;color:#ffda47;transform:rotate(9deg)}.bolt{position:absolute;display:block;width:38px;height:57px;background:#fff6c5;clip-path:polygon(55% 0,5% 53%,40% 53%,18% 100%,100% 32%,60% 32%,86% 0)}.bolt-one{right:9%;top:14%;transform:rotate(11deg)}.bolt-two{right:77%;bottom:8%;width:32px;height:48px;transform:rotate(192deg)}.spark{position:absolute;width:18px;height:18px;background:var(--ink);clip-path:polygon(50% 0,64% 35%,100% 50%,64% 64%,50% 100%,35% 65%,0 50%,35% 35%)}.s1{right:82%;top:20%}.s2{right:6%;bottom:23%;height:26px;width:26px}.s3{right:2%;bottom:42%;height:12px;width:12px}
.workspace{display:grid;grid-template-columns:minmax(0,1.84fr) minmax(292px,1fr);align-items:start;gap:24px;margin-block:33px 24px}.card{min-width:0;background:#fffefb;border:2px solid var(--line);border-radius:12px;box-shadow:4px 4px 0 var(--line);overflow:hidden}.card-head{display:flex;align-items:center;justify-content:space-between;min-height:66px;padding:12px 21px;border-bottom:2px solid var(--line);background:#fffef9;gap:8px}.card h2,.dialog-head h2{font-weight:900;letter-spacing:-.035em;margin:0;font-size:1.28rem;display:flex;align-items:center;gap:10px}.card h2 .ic{width:23px;height:23px;stroke-width:2.25}.tabs{display:flex;border:1.5px solid var(--ink);border-radius:6px;padding:2px;background:#f1f0e8;gap:2px}.tabs button{font-size:.85rem;padding:4px 14px;line-height:1.5;font-weight:800;border-radius:3px}.tabs button[aria-pressed=true]{background:var(--ink);color:white}.tabs button:hover:not([aria-pressed=true]){background:#e5e2d5}
.player{position:relative;background:#181916;border-bottom:2px solid var(--line);color:white}.player canvas{width:100%;height:auto;aspect-ratio:16/9;display:block;object-fit:contain;background:#202b4e url('assets/quiz-question.jpg') center/contain no-repeat;cursor:pointer}/* Use the visible native video for the movie and the transparent canvas for the quiz artwork. */
.preview-stage{position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;background:#14141a}
.preview-stage .video-source,.player .preview-stage canvas{position:absolute;inset:0;width:100%;height:100%;max-height:none;object-fit:contain}
.preview-stage .video-source{pointer-events:none}
.player .preview-stage canvas.native-frame{background:transparent}
.play-notice{position:absolute;left:50%;bottom:6%;transform:translateX(-50%);width:max-content;max-width:92%;padding:6px 12px;margin:0;border-radius:5px;background:#111d;color:white;text-align:center;font-size:14px;pointer-events:none}
.player:fullscreen .preview-stage,.player.large .preview-stage{flex:1;min-height:0;aspect-ratio:auto}.transport{display:flex;align-items:center;gap:9px;padding:8px 12px;background:#22231f;min-height:47px}.player-btn{display:grid;place-items:center;width:34px;height:32px;color:white;border-radius:4px;flex:none;padding:4px}.player-btn .ic{width:19px;height:19px}.player-btn:hover{background:#46463e}.time{font:600 .77rem ui-monospace,"SFMono-Regular",Consolas,monospace;font-variant-numeric:tabular-nums}.total{color:#d8d8cf}#timeline{min-width:0;flex:1;appearance:none;background:transparent;height:24px;cursor:pointer;margin:0 3px;color:var(--yellow);--progress:0%}#timeline::-webkit-slider-runnable-track{height:4px;border-radius:4px;background:linear-gradient(to right,var(--yellow) var(--progress),#66665e var(--progress))}#timeline::-moz-range-track{height:4px;background:#66665e}#timeline::-moz-range-progress{height:4px;background:var(--yellow)}#timeline::-webkit-slider-thumb{appearance:none;background:var(--yellow);width:12px;height:12px;border-radius:50%;margin-top:-4px}#timeline::-moz-range-thumb{background:var(--yellow);width:12px;height:12px;border:0;border-radius:50%}
.player:fullscreen,.player.large{display:flex;flex-direction:column;justify-content:center;background:#111}.player.large{position:fixed;inset:0;z-index:10}.player:fullscreen canvas,.player.large canvas{max-height:calc(100dvh - 56px);min-height:0;flex:1;object-fit:contain}.player:fullscreen .transport,.player.large .transport{flex:none;padding-bottom:max(8px,env(safe-area-inset-bottom))}
.sample-area{padding:17px 21px 21px}h3,.fields label{margin:0 0 9px;font-size:.95rem;font-weight:820;line-height:1.4}.sample-area h3{font-size:.87rem;color:#52534b;margin-bottom:10px}.sample-list{display:flex;gap:10px;flex-wrap:wrap}.sample{position:relative;display:flex;align-items:center;gap:9px;padding:4px 12px 4px 5px;min-height:48px;border:1.5px solid #d4d3c8;border-radius:7px;background:white;text-align:left;font-size:.85rem;font-weight:800}.sample-img{width:36px;height:36px;border-radius:4px;display:grid;place-items:center;flex:none}.sample-img img{width:30px;height:30px;object-fit:contain}.yellow{background:#ffeb97}.green{background:#d7eacc}.sample[aria-pressed=true]{background:#fff9db;border-color:#776930}.sample:hover{border-color:var(--ink)}.sample .tick{display:none;width:16px;height:16px;stroke-width:3}.sample[aria-pressed=true] .tick{display:block}
.fields{padding:21px;display:grid;gap:21px}.fields label{display:block}.drop{width:100%;display:flex;align-items:center;justify-content:center;gap:13px;text-align:left;padding:14px 10px;min-height:84px;border:1.7px dashed #a49f86;border-radius:7px;background:#fbf9ed}.drop:hover,.drop.drag{background:#fff2b8;border-color:#5d532c}.drop strong,.drop small{display:block}.drop strong{font-size:.98rem;font-weight:850}.drop small{margin-top:3px;font-size:.78rem;color:#666459;overflow-wrap:anywhere}.drop>span:last-child{min-width:0}.upload-icon{height:37px;width:37px;display:grid;place-items:center;flex:none;color:var(--ink);background:#ffdd57;border:1.6px solid var(--line);border-radius:7px}.upload-icon .ic{width:20px;height:20px}.drop .thumb-image{width:40px;height:40px;object-fit:contain;border-radius:4px}
.fields input[type=text],.fields select{width:100%;min-height:44px;background:#fff;border:1.5px solid #aaa99b;border-radius:6px;font-size:1rem;padding:9px 12px}.font-row{position:relative}.type-icon{position:absolute;top:50%;left:12px;transform:translateY(-52%);font:700 1.05rem Georgia,serif;color:#6b685b;pointer-events:none}.font-row:after{content:"";width:7px;height:7px;position:absolute;display:block;border:solid var(--ink);border-width:0 1.8px 1.8px 0;transform:rotate(45deg);pointer-events:none;top:calc(50% - 6px);right:16px}.fields select{appearance:none;padding-left:43px;padding-right:31px;cursor:pointer}.export-block{border-top:1px solid #deddd3;padding-top:19px}.export{display:flex;align-items:center;justify-content:center;gap:9px;background:var(--red);color:white;font-size:1.03rem;font-weight:850;width:100%;min-height:48px;border:2px solid var(--line);border-radius:7px;box-shadow:2px 3px 0 var(--line);text-shadow:0 1px 0 #a13324}.export:hover{background:#cd3d2d}.export:active:not(:disabled){box-shadow:1px 1px var(--line)}.cancel{display:block;margin:14px auto 0;text-decoration:underline;font-size:.875rem}.status{font-size:.86rem;line-height:1.6;overflow-wrap:anywhere;margin:12px 0 0}.status.error{color:#a42920}.foot{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:.77rem;margin-bottom:25px}.mini-ball{display:block;width:13px;height:13px;border:1.5px solid #74756a;border-radius:50%;position:relative;background:linear-gradient(180deg,#99998f 0 42%,#68685e 42% 56%,transparent 56%);transform:rotate(-20deg)}.mini-ball:after{content:"";position:absolute;top:3px;left:3px;width:3px;height:3px;background:#fff;border:1px solid #68685e;border-radius:50%}
dialog{padding:0;max-width:min(92vw,450px);border:2px solid var(--line);border-radius:12px;background:var(--cream);color:var(--ink);box-shadow:5px 5px var(--line)}dialog::backdrop{background:#181913ab}.dialog-head{display:flex;align-items:center;justify-content:space-between;border-bottom:2px solid var(--line);padding:12px 17px;background:var(--yellow)}.close{display:grid;place-items:center;padding:5px}dialog ol{padding:0 27px 0 43px}dialog li{padding:4px 0 6px;line-height:1.7}dialog p{margin:12px 21px 22px;font-size:.84rem;color:var(--muted)}
@media(min-width:1450px){.wrap{max-width:1250px}.hero-inner{min-height:198px}}
@media(max-width:1050px){.wrap{width:calc(100% - 56px)}.workspace{gap:18px;grid-template-columns:minmax(0,1.65fr) minmax(284px,1fr)}.hero-inner{min-height:164px}.fields,.sample-area{padding:16px}.card-head{padding-inline:16px}.print-circle{width:230px;height:230px;top:-28px}.poster-art{right:0}.sample{gap:5px}}
@media(max-width:760px){.wrap{width:calc(100% - 32px)}.mast{height:54px}.brand{font-size:1.04rem;gap:8px}.brand img{width:30px;height:30px}.help{font-size:.82rem}.hero-inner{min-height:127px}.hero-copy{padding:20px 0;max-width:78%}.hero h1{font-size:clamp(1.9rem,6.4vw,3.05rem);margin-bottom:7px}.hero p{font-size:.8rem;line-height:1.6;max-width:30em}.poster-art{right:-1%;width:22%}.print-circle{width:156px;height:156px;right:-25%;top:-15px}.shadow-art{height:auto;width:97%;right:0;top:19%;filter:drop-shadow(3px 2px 0 #e64936)}.shadow-art strong{font-size:clamp(1.7rem,5vw,2.5rem)}.bolt-one{right:-17%;top:14%;width:19px;height:29px}.bolt-two,.s3{display:none}.s1{right:95%;top:18%;width:11px;height:11px}.s2{right:0;bottom:12%;width:14px;height:14px}.workspace{grid-template-columns:minmax(0,1fr);gap:18px;margin-block:18px 19px}.card{border-radius:9px;box-shadow:3px 3px 0 var(--line)}.card-head{min-height:50px;padding:8px 13px}.card h2{font-size:1.1rem;gap:8px}.card h2 .ic{width:20px;height:20px}.tabs button{font-size:.8rem;padding:3px 12px}.sample-area{padding:12px 13px 13px}.sample-area h3{margin-bottom:7px}.sample{min-height:40px;padding:3px 8px 3px 4px;font-size:.79rem}.sample-img{width:30px;height:30px}.sample-img img{width:26px;height:26px}.fields{gap:16px;padding:16px}.drop{min-height:66px;padding:10px}.transport{min-height:42px;padding:5px 8px;gap:7px}.player-btn{width:29px}.export-block{padding-top:16px}.foot{font-size:.72rem}.fields select,.fields input[type=text]{font-size:16px}}
@media(max-width:380px){.wrap{width:calc(100% - 22px)}.hero p{font-size:.75rem}.transport{gap:3px}.sample{font-size:.75rem}.card h2{font-size:1rem}.hero h1{font-size:1.85rem}}
@font-face{font-family:"Quiz Mincho";src:url("assets/mincho.woff") format("woff");font-weight:700;font-style:normal;font-display:swap}

.piece-tools{display:flex;flex-wrap:wrap;gap:8px;margin-top:9px}.piece-action{display:grid;min-width:0;place-items:center;border:1px solid #bcb9a8;border-radius:6px;padding:7px 9px;background:#fffdf7;text-align:center;font-size:.8rem;font-weight:750;line-height:1.5;color:var(--ink)}.piece-action:hover{background:#fff0b3;border-color:#777052}.piece-action span{display:flex;align-items:center;justify-content:center;gap:5px}.piece-action .ic{width:15px;height:15px;stroke-width:2}.piece-tools.show-thumbs .piece-action{flex:1 1 120px;gap:5px;padding:5px 3px 6px}.piece-thumb{display:block;width:66px;height:49px;border-radius:3px;background:repeating-conic-gradient(#eae8dd 0 25%,#fffefa 0 50%) 50%/10px 10px}.piece-status{font-size:.8rem;margin:7px 0 0;line-height:1.55;color:#57554a}.piece-status.error{color:#a42920}

.mode-nav{display:flex;align-items:center;gap:16px}.mode-link{font-size:.86rem;font-weight:800;text-underline-offset:3px;color:inherit}.mode-link:hover{color:#9c3025}

.image-adjustments{display:flex;flex-wrap:wrap;gap:6px 14px}.image-adjustments button{min-height:40px;text-underline-offset:3px}
