:root{--paper:#f2ead8;--ink:#27231e;--red:#a42d22;--dark:#242b26;--muted:#777065;--line:#bcb09c;--yellow:#dfba68}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:#d6cbb5;font-family:"Yu Mincho","Hiragino Mincho ProN",serif}.page{max-width:1250px;margin:0 auto;background:var(--paper);min-height:100vh;box-shadow:0 0 55px #50473230}.masthead{margin:0 5%;height:76px;border-bottom:2px solid var(--ink);display:flex;justify-content:space-between;align-items:center}.logo{display:flex;align-items:center;gap:13px;color:inherit;text-decoration:none}.logo span,.header-right span,.eyebrow,.label,.counter,.footer-stamp{font-family:"Yu Gothic UI",Meiryo,sans-serif;font-size:10px;font-weight:800;letter-spacing:.14em}.logo span{border:1px solid var(--ink);padding:5px;writing-mode:vertical-rl}.logo b{font-size:23px;letter-spacing:.12em}.header-right{display:flex;align-items:center;gap:20px}.header-right span{color:var(--muted)}button{font:inherit;cursor:pointer}.help{background:none;border:1px solid var(--ink);padding:8px 13px;font-family:"Yu Gothic UI",sans-serif;font-size:11px}main{padding:0 5%}footer{margin:0 5%;border-top:1px solid var(--line);padding:18px 0 26px;display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-family:"Yu Gothic UI",sans-serif;font-size:10px}.landing{display:grid;grid-template-columns:1.05fr .95fr;min-height:570px;align-items:center;gap:4%;padding:35px 0}.eyebrow{color:var(--red);margin:0 0 18px}.landing h1{font-size:clamp(40px,6vw,76px);line-height:1.27;letter-spacing:.03em;margin:0 0 24px}.landing h1 em{font-style:normal;color:var(--red)}.landing-copy{font-size:15px;line-height:2.1;margin:0 0 30px}.landing-note{font-family:"Yu Gothic UI",sans-serif;font-size:10px;color:var(--muted);letter-spacing:.06em;margin-top:16px}.cta{border:2px solid var(--ink);background:var(--dark);color:#fff8e7;min-width:235px;text-align:left;padding:17px 20px;font-family:"Yu Gothic UI",sans-serif;font-size:14px;font-weight:800;box-shadow:4px 4px 0 var(--red);transition:transform .15s,box-shadow .15s}.cta span{float:right}.cta:hover{transform:translate(2px,2px);box-shadow:2px 2px 0 var(--red)}button:focus-visible,a:focus-visible{outline:3px solid #dc7c32;outline-offset:3px}.landing-art{background:#f8f5ec;border:1px solid var(--ink);position:relative;min-height:480px;display:flex;justify-content:center;align-items:center;overflow:hidden}.landing-art:before{content:"証拠物件 01";position:absolute;left:18px;top:18px;font:700 10px "Yu Gothic UI",sans-serif;letter-spacing:.14em}.landing-art img{height:450px;max-width:90%;object-fit:contain;mix-blend-mode:multiply}.art-stamp{position:absolute;right:15px;bottom:27px;color:var(--red);border:4px double var(--red);padding:8px;font-weight:bold;font-size:21px;transform:rotate(-12deg);background:#f8f5eccf}.stage-bar{padding:24px 0 16px;display:flex;justify-content:space-between;border-bottom:1px solid var(--line);font-family:"Yu Gothic UI",sans-serif}.stage-bar .counter{color:var(--muted)}.stage-bar strong{font-size:12px;letter-spacing:.08em}.case-layout{display:grid;grid-template-columns:minmax(250px,.88fr) minmax(0,1.12fr);gap:32px;padding:25px 0 38px}.evidence{background:#f8f5ec;border:1px solid #a89c87;position:relative;padding:14px}.evidence-head{display:flex;justify-content:space-between;border-bottom:1px solid #cbbfac;padding-bottom:10px;font-family:"Yu Gothic UI",sans-serif;font-size:10px;font-weight:800;letter-spacing:.1em}.evidence-head span:last-child{color:var(--red)}.evidence-image{height:390px;display:flex;justify-content:center;align-items:center}.evidence img{max-width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}.evidence-caption{border-top:1px solid #cbbfac;padding:12px 0 0;font-size:11px;color:var(--muted);line-height:1.7}.case-content{padding:4px 0}.case-content h1{font-size:clamp(25px,3vw,37px);line-height:1.45;margin:0 0 15px}.case-content h1 strong{color:var(--red)}.indictment{background:#e8deca;border-left:4px solid var(--red);padding:15px 18px;line-height:1.8;font-size:14px;margin:20px 0}.question{margin:25px 0 12px;font-family:"Yu Gothic UI",sans-serif;font-size:12px;font-weight:800}.choices{display:grid;gap:8px}.choice{display:flex;align-items:center;gap:15px;text-align:left;padding:13px 14px;background:transparent;border:1px solid #9d9281;color:var(--ink);font-size:14px;font-weight:700;line-height:1.55;transition:background .12s}.choice:hover{background:#e1d5bc;border-color:var(--ink)}.choice-num{font:700 11px Georgia,serif;color:var(--red);border:1px solid var(--red);width:25px;height:25px;display:grid;place-items:center;flex:none}.speech{background:#fffaf0;border:1px solid #beb09c;padding:16px 20px;margin:18px 0}.speech .label{color:var(--red);display:block;margin-bottom:8px}.speech p{font-size:16px;line-height:1.8;margin:0;font-weight:700}.small-copy{color:var(--muted);font-size:12px;line-height:1.8}.next{margin-top:15px}.result{padding:28px 0 38px}.result-header{text-align:center;margin-bottom:20px}.result-header h1{font-size:38px;margin:4px 0;color:var(--red);letter-spacing:.14em}.result-header p{font-size:12px;color:var(--muted)}.verdict{max-width:800px;margin:0 auto;background:#fffdf5;border:2px solid var(--ink);padding:30px;position:relative;box-shadow:8px 8px 0 #b8ac96}.verdict-top{display:flex;justify-content:space-between;align-items:center;border-bottom:2px solid var(--ink);padding-bottom:12px}.verdict-top b{font-size:22px;letter-spacing:.15em}.verdict-top span{font:700 10px "Yu Gothic UI",sans-serif;color:var(--muted)}.verdict-body{display:grid;grid-template-columns:160px 1fr;gap:24px;align-items:center;padding:20px 0}.verdict-body img{width:100%;height:210px;object-fit:contain;mix-blend-mode:multiply;border:1px solid #ddd3c1}.verdict-main small{font-family:"Yu Gothic UI",sans-serif;color:var(--muted);font-size:10px;font-weight:700}.verdict-main h2{font-size:clamp(23px,3vw,33px);line-height:1.4;margin:8px 0;color:var(--red)}.verdict-main p{font-size:13px;line-height:1.9;margin:8px 0}.stamp{display:inline-block;border:3px double var(--red);color:var(--red);padding:6px 14px;font-weight:800;font-size:19px;transform:rotate(-8deg)}.verdict-foot{border-top:1px solid var(--line);padding-top:12px;display:flex;justify-content:space-between;gap:15px;align-items:center;font-size:11px;color:var(--muted)}.result-actions{max-width:800px;margin:30px auto 0;display:flex;gap:14px;flex-wrap:wrap}.secondary{background:transparent;border:1px solid var(--ink);padding:14px 20px;font-family:"Yu Gothic UI",sans-serif;font-weight:700;font-size:12px}.secondary:hover{background:#e5dac6}.download-note{font:11px "Yu Gothic UI",sans-serif;color:var(--muted);max-width:800px;margin:14px auto 0}.finish{text-align:center;padding:80px 0 100px}.finish h1{font-size:38px}.finish p{line-height:2;color:var(--muted)}dialog{max-width:500px;width:calc(100% - 30px);background:var(--paper);border:2px solid var(--ink);padding:28px;color:var(--ink)}dialog::backdrop{background:#1d1b19bb}dialog h2{font-size:25px}dialog li,dialog p{font-size:13px;line-height:2}.close{float:right;border:0;background:none;font-size:28px}@media(max-width:760px){.masthead{height:68px}.landing{grid-template-columns:1fr;padding:35px 0;gap:25px}.landing-art{min-height:290px}.landing-art img{height:300px}.landing h1{font-size:40px}.case-layout{grid-template-columns:1fr;gap:22px}.evidence-image{height:300px}.case-content h1{font-size:27px}.verdict{padding:18px}.verdict-body{grid-template-columns:105px 1fr;gap:15px}.verdict-body img{height:160px}.verdict-main h2{font-size:23px}.verdict-foot{align-items:start}footer{flex-direction:column}.header-right span{display:none}}


/* Small screens: keep the desktop layout untouched. */
@media (max-width:600px){
  .page{min-height:100dvh}
  .masthead{height:60px;margin:0 16px}
  .logo{gap:8px}.logo span{font-size:8px;padding:3px}.logo b{font-size:19px}
  .header-right{gap:0}.help{min-height:44px;padding:8px 13px;font-size:12px}
  main{padding:0 16px}footer{margin:0 16px;padding-bottom:calc(22px + env(safe-area-inset-bottom))}
  .landing{padding:28px 0 30px;gap:22px;min-height:0}
  .landing h1{font-size:clamp(35px,10vw,44px);margin:0 0 16px;line-height:1.25}
  .landing-copy{font-size:14px;line-height:1.9;margin-bottom:22px}
  .landing .cta{width:100%;min-height:56px;font-size:15px}
  .landing-art{min-height:220px}.landing-art img{height:240px}
  .landing-note{line-height:1.7}.art-stamp{font-size:17px;right:14px;bottom:16px}
  .stage-bar{padding:16px 0 12px}.stage-bar strong{font-size:12px}.counter{font-size:10px}
  .case-layout{gap:17px;padding:16px 0 30px}.evidence{padding:11px}
  .evidence-image{height:clamp(185px,52vw,230px)}.evidence-caption{font-size:12px;padding-top:9px}
  .case-content{padding:0}.case-content .eyebrow{margin-bottom:10px}
  .case-content h1{font-size:clamp(24px,7vw,30px);line-height:1.45;margin-bottom:12px}
  .indictment{font-size:14px;line-height:1.8;margin:13px 0;padding:13px 14px}
  .question{font-size:14px;margin:20px 0 10px}.choices{gap:9px}
  .choice{min-height:58px;padding:13px 12px;font-size:15px;line-height:1.55;gap:11px}
  .choice:active{background:#d9c9aa}.choice-num{width:29px;height:29px}
  .speech{padding:14px 15px;margin:12px 0}.speech p{font-size:15px;line-height:1.7}
  .next{width:100%;min-height:56px;margin-top:8px}
  .result{padding:20px 0 30px}.result-header{margin-bottom:14px}.result-header h1{font-size:32px}
  .verdict{padding:15px;box-shadow:4px 4px 0 #b8ac96}.verdict-top b{font-size:19px}
  .verdict-body{grid-template-columns:95px minmax(0,1fr);gap:12px;padding:15px 0}
  .verdict-body img{height:145px}.verdict-main h2{font-size:20px;overflow-wrap:anywhere}
  .verdict-main p{font-size:12px;line-height:1.75}.verdict-foot{line-height:1.7}
  .result-actions{display:grid;gap:10px;margin-top:22px}.result-actions button{width:100%;min-height:54px}
  .download-note{line-height:1.7}.finish{padding:55px 0 70px}.finish .cta{width:100%}
  dialog{max-height:calc(100dvh - 32px);overflow:auto;padding:22px}dialog li{margin-bottom:8px}
}

/* Verdict collection */
.header-right .collection-trigger span{display:inline;color:var(--red);font-size:10px;letter-spacing:0;margin-left:5px}
.collection-dialog{width:min(850px,calc(100% - 30px));max-height:min(86vh,900px);overflow:auto}
.collection-heading{display:flex;justify-content:space-between;align-items:start;border-bottom:2px solid var(--ink);padding-bottom:14px}
.collection-heading h2{margin:0;font-size:26px}.collection-heading .eyebrow{margin-bottom:6px}
.collection-summary{display:flex;gap:18px;align-items:center;margin:18px 0 8px}.collection-summary b{font:700 38px Georgia,serif;color:var(--red)}.collection-summary small{font-size:17px;color:var(--muted)}.collection-summary span{font:700 11px/1.7 "Yu Gothic UI",sans-serif}
.collection-note{font:12px/1.8 "Yu Gothic UI",sans-serif;color:var(--muted)}
.case-collection{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:16px}
.collection-case{border:1px solid var(--line);background:#fffaf0;padding:13px}.collection-case.locked{background:#e9e2d4;color:#8c8375}
.collection-case-head{display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:13px}.collection-case-head span{white-space:nowrap;font:700 11px "Yu Gothic UI",sans-serif;color:var(--red)}
.verdict-list{font:12px/1.8 "Yu Gothic UI",sans-serif;margin:10px 0;color:#655e54}.review-button{min-height:40px;background:var(--dark);color:#fff;border:0;padding:8px 12px;font:700 12px "Yu Gothic UI",sans-serif}
@media(max-width:600px){.header-right .collection-trigger span{display:inline;font-size:10px}.header-right{gap:6px}.header-right .help{padding:7px 9px;white-space:nowrap}.collection-trigger{font-size:11px}.case-collection{grid-template-columns:1fr}.collection-dialog{padding:18px}.collection-case{padding:12px}.review-button{width:100%;min-height:48px}.collection-summary b{font-size:32px}}
@media(max-width:360px){.logo b{font-size:16px}.logo span{display:none}.masthead{margin:0 12px}.header-right .help{padding:7px}}
.collection-dialog{max-width:850px}

/* Result sharing */
.x-share{display:inline-flex;align-items:center;justify-content:center;color:var(--ink);text-decoration:none;min-height:48px}.x-share:hover{background:#e5dac6}@media(max-width:600px){.result-actions .x-share{width:100%;min-height:54px}}

.x-share[hidden]{display:none}

.result-actions button:disabled{opacity:.5;cursor:wait}
