@charset "UTF-8";:root{font-family:"Yu Gothic UI","Meiryo",sans-serif;color:#253d38;background:#f6f5f0;font-synthesis:none;--green:#286552;--muted:#63766d;--line:#dce1d8}*{box-sizing:border-box}body{margin:0}button,a,input{-webkit-tap-highlight-color:transparent}button{font:inherit;font-size:14px;min-height:44px;border:1px solid var(--line);background:#fff;color:inherit;border-radius:9px;padding:9px 13px;cursor:pointer}button:hover:not(:disabled){background:#edf3e9;border-color:#83a58c}button:disabled{opacity:.4;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible,svg:focus-visible{outline:3px solid #d49b36;outline-offset:3px}button[aria-pressed=true]{background:#e8f0e5;border-color:var(--green);color:var(--green)}header{min-height:92px;display:flex;align-items:center;gap:28px;padding:20px 4%;border-bottom:1px solid var(--line);background:#fbfcf7}.brand{display:flex;align-items:center;gap:12px;color:inherit;text-decoration:none;font-size:21px;font-weight:700;white-space:nowrap}.brand small{display:block;font-size:9px;letter-spacing:1.6px;margin-top:4px;color:var(--muted)}.mark{font-size:44px;color:var(--green);line-height:1}.tag{font-size:12px;border-left:1px solid var(--line);padding-left:25px;color:var(--muted)}.history{margin-left:auto;display:flex;gap:7px}.history button{background:transparent}main{max-width:1440px;margin:auto;padding:30px 4% 16px}.intro{display:flex;align-items:center;justify-content:space-between;margin-bottom:25px}.eyebrow{font-size:12px;letter-spacing:2px;color:var(--muted);margin:0 0 7px}h1{font-size:30px;letter-spacing:3px;margin:0;font-weight:650}.intro>p{font-size:13px;line-height:1.9;color:var(--muted)}.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;margin-bottom:20px;background:#eaece4;padding:5px;border-radius:12px}.steps button{border:0;background:transparent;color:#64756b}.steps button.active{background:#fff;color:var(--green);box-shadow:0 2px 7px #263b2910}.steps b{font-size:12px;margin-right:12px;opacity:.65}.workspace{display:grid;grid-template-columns:290px minmax(0,1fr);gap:22px;align-items:start}.controls{background:#fcfdf9;border:1px solid var(--line);border-radius:15px;padding:23px}.section-label{font-size:11px;letter-spacing:1px;color:var(--muted);display:flex;justify-content:space-between;align-items:center}.section-label span{letter-spacing:0}h2{font-size:19px;letter-spacing:.5px;margin:12px 0 20px}.fold-options{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.fold-options button{padding:9px 2px}.fold-options span{display:block;font-size:32px;line-height:1.2;margin-bottom:4px}.hint{font-size:12px;color:var(--muted);line-height:1.85}.direction{display:flex;gap:8px;margin:18px 0}.direction button{flex:1;font-weight:600}.direction small{display:block;font-size:10px;font-weight:400;margin-top:4px}.primary{background:var(--green);color:#fff;border-color:var(--green);font-weight:600}.primary:hover:not(:disabled){background:#1f5142}.wide{width:100%;margin-bottom:8px}.wide span{float:right}.process,.cut-record{border-top:1px solid var(--line);margin-top:20px;padding-top:17px}.section-label button{font-size:12px;background:transparent;border:0;padding:0 8px;min-height:32px}#fold-list{padding-left:23px;margin:10px 0 0;font-size:12px}#fold-list li{padding:5px 0}#fold-list button{min-height:30px;font-size:12px;border:0;background:transparent;padding:3px 5px}#cut-list{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}#cut-list button{border-left:4px solid var(--cut);min-width:46px}.stage{background:#eef1e9;border:1px solid #d8dfd3;border-radius:15px;overflow:hidden;position:relative}.stage-heading{display:flex;justify-content:space-between;align-items:center;padding:20px 25px;font-size:13px}.stage-heading>span:last-child{background:#fff9;border:1px solid #d9e1d3;padding:6px 12px;border-radius:20px;font-size:11px}.drawing{position:relative;min-height:390px;height:min(51vw,530px);background-image:radial-gradient(#a3b59b66 .8px,transparent .8px);background-size:20px 20px}svg{width:100%;height:100%;display:block;touch-action:none;user-select:none}.canvas-note{position:absolute;bottom:12px;width:100%;text-align:center;font-size:11px;color:#6a7c69;pointer-events:none}.legend{display:flex;gap:23px;justify-content:center;font-size:10px;color:var(--muted);padding:12px 0}.legend span{display:flex;align-items:center;gap:5px}.legend i{display:inline-block;width:21px;border-top:1px dashed #528781}.legend .mountain{border-color:#ad6c3c;border-top-style:dotted}#message{min-height:59px;background:#fafcf6b8;border-top:1px solid #d8dfd3;padding:16px 22px;font-size:13px;line-height:1.7}.question{display:flex;align-items:center;gap:24px;border:1px solid #dddccc;border-radius:12px;background:#eeeddf;margin-top:20px;padding:12px 22px}.question>span:first-child{font-size:11px;white-space:nowrap;border:1px solid #cbcbb4;border-radius:20px;padding:6px 11px}.question p{font-size:13px}.spark{font-size:28px;color:#88946b;margin-left:auto}footer{display:flex;gap:25px;color:#7e897d;font-size:10px;padding-top:25px}footer span:last-child{margin-left:auto}.instructions{font-size:14px;padding-left:23px;line-height:2.6}.zoom{display:flex;gap:5px;margin-top:15px}.zoom button:nth-child(2){flex:1}.range-label{display:block;font-size:12px;margin-top:20px}input[type=range]{width:100%;min-height:44px;accent-color:var(--green)}details{font-size:12px;margin-top:12px}summary{cursor:pointer;min-height:44px;padding:10px 0}[hidden]{display:none!important}@media(max-width:1000px){.tag{display:none}header{padding:16px 3%;gap:10px}.history button{font-size:12px;padding:8px}main{padding:22px 3%}.workspace{grid-template-columns:250px minmax(0,1fr);gap:14px}.controls{padding:17px}.drawing{min-height:370px}.intro>p{font-size:11px}}@media(max-width:650px){header{flex-wrap:wrap}.brand{font-size:18px}.mark{font-size:34px}.history{width:100%;justify-content:flex-end}.intro{display:block}.intro>p{display:none}h1{font-size:25px}.steps b{display:block;margin:0 0 3px}.steps button{font-size:12px;padding:7px 2px}.workspace{display:flex;flex-direction:column}.controls{width:100%;order:2;display:grid;grid-template-columns:minmax(0,1fr);gap:5px}.stage{width:100%}.drawing{height:85vw;min-height:280px;max-height:430px}.stage-heading{padding:13px 16px}.question{gap:10px;padding:10px}.question p{font-size:12px}.spark{display:none}footer{flex-wrap:wrap;gap:8px}footer span:last-child{margin-left:0}#message{font-size:12px}.legend{gap:14px}.process{margin-top:5px}}

/* Language names stay in their own scripts so students can find their language. */
header{flex-wrap:wrap}.language-setting{display:flex;align-items:center;gap:8px;margin-left:auto;font-size:14px;flex-wrap:wrap}.language-setting select{font:inherit;font-size:16px;min-height:44px;max-width:100%;padding:8px 12px;border:1px solid var(--line);border-radius:9px;background:#fff;color:inherit}.language-setting select:focus-visible{outline:3px solid #d49b36;outline-offset:3px}.history{margin-left:0;flex-wrap:wrap}.brand{white-space:normal;min-width:0}.brand small{overflow-wrap:anywhere}.steps button,.fold-options button,.direction button{min-width:0;overflow-wrap:anywhere}.direction{flex-wrap:wrap}.direction button{flex:1 1 90px}.stage-heading,.legend,footer{flex-wrap:wrap;gap:12px}.section-label{gap:8px;flex-wrap:wrap}.canvas-note{padding:0 12px}.legend i{flex-shrink:0}html:lang(ne){font-family:"Nirmala UI","Mangal","Kohinoor Devanagari",sans-serif;line-height:1.6}html:lang(ne) h1,html:lang(ne) h2,html:lang(ne) .eyebrow,html:lang(ne) .section-label{letter-spacing:normal}@media(max-width:650px){.language-setting{margin-left:0;width:100%;justify-content:space-between}.history{justify-content:flex-start}.history button{flex:1 1 80px}.question{flex-wrap:wrap}.steps{align-items:stretch}.steps button{line-height:1.5}.legend{gap:10px}}

/* A calm, contrasting mat reveals the actual background through 3D slits. */
.steps{grid-template-columns:repeat(5,minmax(0,1fr))}.steps button{display:flex;gap:6px;align-items:center;justify-content:center}.steps b{margin:0}.candidate-list{display:grid;gap:6px;max-height:260px;overflow:auto;padding:3px}.candidate-list button{text-align:left;font-size:14px;line-height:1.7}.match-summary{border-left:3px solid #c18322;background:#f3eedb;padding:12px;margin-top:16px;line-height:1.8;font-size:16px}.crease-list{display:flex;gap:6px;flex-wrap:wrap;max-height:220px;overflow:auto;padding:4px}.crease-list button{min-width:60px;border-left:5px solid #87918f}.crease-list button.mountain{border-left-color:#ad6c3c}.crease-list button.valley{border-left-color:#528781}.crease-list button[aria-pressed=true]{outline:2px solid #c18322;outline-offset:1px}.legend .unset{border-color:#87918f}.controls .hint{font-size:14px;line-height:1.8}.controls .section-label{font-size:14px}.stage-heading{font-size:15px}#message{font-size:15px}#paper [role=button]{cursor:pointer}#paper [role=button]:focus{outline:none}#paper [role=button]:focus .hit-outline{stroke:#c18322;stroke-opacity:1}.steps button[aria-disabled=true]{opacity:.55}.canvas-note{font-size:13px}.legend{font-size:13px}#fold-list button{font-size:14px;line-height:1.6}.controls h2{margin-bottom:12px}#shape-status{border-left:3px solid #c18322;padding-left:10px}@media(max-width:650px){.steps button{flex-direction:column;gap:3px;font-size:12px}.candidate-list{max-height:220px}.drawing{height:95vw}.stage-heading{font-size:14px}.canvas-note{font-size:12px}#message{font-size:14px}}
.workspace:has(#three-controls:not([hidden])) .drawing {
  background-color: #58757a;
  background-image: none;
}
.workspace:has(#three-controls:not([hidden])) .canvas-note {
  color: #f5f8f5;
}


.fold-amount-control{margin:22px 0}.fold-amount-control label{display:flex;justify-content:space-between;gap:12px}.fold-amount-control input{width:100%;min-height:44px;accent-color:#286552}.fold-amount-control output{font-variant-numeric:tabular-nums}
