:root{--ink:#263f3d;--ink-soft:#526f69;--forest:#23665b;--mint:#e7f3ed;--mint-deep:#d4eadf;--amber:#a55c27;--line:#d4e3d9;--paper:#fffefa;--sans:"Hiragino Kaku Gothic ProN","Noto Sans JP","Yu Gothic",Meiryo,sans}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:linear-gradient(#f6faf6,#edf5f0 72%,#f5f8f5);font-family:var(--sans);color:var(--ink);-webkit-text-size-adjust:100%}
button,select,input{font:inherit}
button{cursor:pointer}
button:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #71aaf0;outline-offset:3px}
button[aria-pressed=true]{box-shadow:inset 0 0 0 2px #23665b}
[hidden]{display:none!important}
.classroom{max-width:975px;margin:0 auto;padding:0 clamp(12px,3.3vw,32px) 45px;min-width:0}
.hero{padding:clamp(32px,6vw,58px) clamp(16px,4vw,42px) clamp(25px,4vw,37px);background:linear-gradient(128deg,#edf7ef 0%,#f8fbf4 55%,#e6f2ef 100%);border:1px solid #d8e8df;border-radius:0 0 28px 28px;position:relative;overflow:hidden}
.hero:after{content:"";position:absolute;width:170px;height:170px;right:-52px;top:-75px;border-radius:50%;background:radial-gradient(circle,#f5e8b6bb,#c9e7dd55 70%,transparent 75%);pointer-events:none}
.kicker,.step,.mystery-kicker{font-size:11px;font-weight:900;letter-spacing:.16em;color:#498476}
.level{display:inline-block;margin-top:14px;border-radius:50px;padding:7px 12px;border:1px solid #c6ddd1;color:#3f7165;background:#ffffffaa;font-size:12px;font-weight:750}
h1,h2,h3,p{overflow-wrap:break-word}
h1{font-size:clamp(30px,6.4vw,53px);line-height:1.44;margin:17px 0 17px;letter-spacing:.015em}
h1 em{font-style:normal;color:#287a6b}
.hero-copy{font-size:clamp(14px,2.15vw,18px);line-height:1.85;color:#486962;max-width:680px;margin:0}
.hero-copy strong{color:#236a5e}
.plan-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:27px}
.plan{display:grid;gap:4px;border-radius:17px;padding:18px 20px;background:#fff;border:1px solid var(--line);min-width:0;color:#52706a;font-size:14px}
.plan.a{border-top:5px solid #287b71}
.plan.b{border-top:5px solid #c57835}
.plan-name{font-weight:900;color:var(--ink);font-size:17px;margin-bottom:5px}
.plan strong{color:#264c44;font-variant-numeric:tabular-nums;font-size:20px}
.fine{font-size:12px;line-height:1.75;color:#647b72;margin:15px 0 0}
.chapter{border:1px solid var(--line);border-radius:23px;background:var(--paper);padding:clamp(21px,4.5vw,39px);margin:23px 0;min-width:0;box-shadow:0 8px 30px rgba(56,105,85,.04)}
.step{color:#3b8773;margin-bottom:12px}
.chapter h2{font-size:clamp(21px,3.7vw,29px);line-height:1.55;margin:0 0 15px}
.chapter h3{font-size:clamp(17px,2.9vw,21px);line-height:1.55}
.chapter>p{font-size:15px;line-height:1.85;color:#526c67;margin:0 0 16px}
.guess,.method-tabs,.answers{display:flex;gap:9px;flex-wrap:wrap}
.guess button,.method-tabs button,.answers button{border:1px solid #b4d1c2;border-radius:13px;background:#f8fcf8;color:#2a6355;padding:11px 14px;font-size:14px;min-height:46px;font-weight:800;flex:1 1 115px}
.guess button:hover,.method-tabs button:hover,.answers button:hover{background:#e1f2e8}
.guess button[aria-pressed=true],.method-tabs button[aria-pressed=true],.answers button[aria-pressed=true]{background:#d8eddf;border-color:#367c69}
.feedback,.quiz-feedback{border-radius:12px;background:#eff6f0;border:1px solid #dbece0;color:#386954;font-size:14px;line-height:1.7;padding:12px 15px;min-height:43px;margin:15px 0 0}
.hint{border-left:3px solid #83b9a2;padding:6px 11px;margin:15px 0 0;color:#5a7b6b;font-size:13px}
.lab{background:#fafdf9}
.control-shell{background:#fff;border-radius:16px;border:1px solid #d7e5dc;padding:clamp(16px,3vw,24px);margin:25px 0 16px}
.control-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;flex-wrap:wrap}
.control-row label{font-size:15px;font-weight:850;color:#356f5e}
.big-time{font-weight:900;font-variant-numeric:tabular-nums;font-size:clamp(22px,4vw,30px);color:#276c5e}
#hoursSlider{display:block;width:100%;accent-color:#317c6f;cursor:pointer;min-height:36px;margin:10px 0 0}
.slider-ends{display:flex;justify-content:space-between;gap:7px;color:#668077;font-size:12px}
.live-prices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:13px 0 23px}
.price{display:flex;min-height:114px;flex-direction:column;gap:6px;padding:15px 11px;border-radius:15px;background:#fff;border:1px solid var(--line);min-width:0}
.price span{font-size:13px;font-weight:800}
.price strong{font-size:clamp(17px,3vw,25px);font-variant-numeric:tabular-nums;white-space:normal;overflow-wrap:anywhere}
.price.a{border-top:4px solid #287b71}
.price.a strong{color:#287b71}
.price.b{border-top:4px solid #c57835}
.price.b strong{color:#a76225}
.price.difference{background:#eaf4ef;border-color:#cddfd3}
.price.difference strong{color:#215c50}
.price.difference small{font-size:12px;line-height:1.35;color:#316958}
.graph-card{margin:0;border-radius:18px;background:#fff;border:1px solid #d7e5dc;padding:clamp(8px,2vw,18px);min-width:0}
.graph-card figcaption{font-size:17px;font-weight:850;margin:4px 7px 10px}
.legend{display:flex;flex-wrap:wrap;gap:10px 18px;margin:0 7px 7px;font-size:13px;color:#375d55}
.legend>span{display:inline-flex;align-items:center;gap:7px}
.swatch{display:inline-block;width:25px;height:5px;border-radius:10px}
.swatch.a{background:#287b71}
.swatch.b{background:#c57835}
#planGraph{width:100%;height:auto;display:block;overflow:visible;background:#fbfdfb;border-radius:11px;max-width:100%}
.tick-labels{font-size:15px;font-family:Arial,sans-serif}
.graph-caption{margin:10px 8px 0;font-size:13px;line-height:1.65;color:#526e62}
.table-wrap{margin-top:16px;overflow:hidden;border:1px solid #d5e4da;border-radius:13px;background:#fff}
table{border-collapse:collapse;width:100%;table-layout:fixed;text-align:center;font-size:14px}
th{font-weight:850;background:#deeee3;color:#315e52}
th,td{padding:11px 7px;border-bottom:1px solid #e4ede8;font-variant-numeric:tabular-nums}
tbody tr:last-child td{border-bottom:0}
tr.is-active{background:#fdf3df;font-weight:800}
.prediction{display:flex;align-items:center;gap:8px;justify-content:space-between;background:#f0f6ec;padding:15px;border-radius:12px;margin:20px 0 13px;flex-wrap:wrap}
.prediction label{font-size:14px;font-weight:800}
.prediction output{font-weight:900;color:#256c5b;font-size:19px}
.primary{width:100%;min-height:52px;background:#267e6b;border-radius:14px;border:0;color:white;font-size:17px;font-weight:850;padding:13px 18px}
.primary:hover{background:#1e675a}
.result{margin:20px 0 0;padding:20px;border-radius:16px;background:#ecf6ed;border-left:5px solid #358876;font-size:17px;font-weight:700;line-height:1.85;color:#235d50}
.solution-steps{padding:18px 0 0}
.solution-steps h3{margin:0 0 11px;color:#23665a}
.solution-steps>p{font-size:15px;line-height:1.85;color:#4a6d61}
.equations{border:1px solid #d7e9dc;border-radius:14px;padding:12px 17px;background:#f7fbf7}
.equations p{margin:6px 0;font-size:17px;line-height:1.55}
.equations strong,.sample-equations{color:#276c5c;font-weight:900}
.math-steps{padding-left:24px;display:grid;gap:10px;margin:20px 0}
.math-steps li{font-size:14px;line-height:1.65;padding:12px;background:#f7faf5;border:1px solid #e1eae2;border-radius:12px}
.math-steps code{display:block;font-family:var(--sans);font-size:clamp(17px,3.3vw,22px);font-weight:900;color:#276d61;margin-top:7px;overflow-wrap:anywhere}
.takeaway{border-radius:13px;background:#dff0e6;padding:16px;color:#245c4f!important;font-size:16px!important}
.check{font-size:13px!important;color:#4f7468!important}
.sample-equations{background:#eef7f0;padding:17px 21px;border-radius:16px;margin:19px 0 13px;display:grid;gap:8px;text-align:center;font-size:clamp(20px,3.6vw,28px);font-variant-numeric:tabular-nums;line-height:1.45}
.method-body{margin-top:15px;padding:17px;border:1px solid #d9e7dd;border-radius:16px;background:#f9fcf8;color:#42665a;font-size:15px;line-height:1.8}
.method-body h3{margin:0 0 10px}
.method-body ol{margin:10px 0;padding-left:23px}
.method-body li{margin:8px 0}
.method-body strong{color:#246b5b}
.scenario-label{display:block;font-size:14px;font-weight:850;margin:10px 0}
#scenarioSelect{display:block;width:100%;border:1px solid #abcdb9;border-radius:12px;background:#fff;color:#315a4e;padding:14px 12px;font-size:15px;min-height:48px}
.scenario-status{background:#edf5e9;border-radius:13px;padding:16px;margin-top:15px!important;color:#315f50!important}
.quiz-list{display:grid;gap:13px}
.quiz{padding:19px;border:1px solid #dae6dd;border-radius:17px;background:#f7faf7}
.quiz h3{margin:0 0 14px;font-size:16px}
.quiz-feedback{margin:13px 0 0}
.recap{background:#f2f8f2}
.recap-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.recap-grid article{background:#fff;border:1px solid #dbe8de;border-radius:16px;padding:18px;min-width:0}
.recap-grid span{font-size:11px;font-weight:900;color:#4a9a7d;letter-spacing:.12em}
.recap-grid h3{margin:5px 0 7px;font-size:17px;color:#2b6457}
.recap-grid p{font-size:14px;line-height:1.8;margin:0;color:#4d6a5e}
.recap-grid strong{color:#245d4f}
.mystery{margin:32px 0 0;background:linear-gradient(135deg,#275d53,#173e3f 82%);border-radius:25px;padding:clamp(26px,6vw,58px);color:#fff;min-width:0;position:relative;overflow:hidden}
.mystery:before{content:"?";font-family:Georgia,serif;position:absolute;right:-10px;top:-88px;font-size:310px;color:#ffffff12;line-height:1;pointer-events:none}
.mystery-kicker{position:relative;color:#cbe9d0}
.mystery h2{position:relative;font-size:22px;margin:14px 0 15px}
.mystery p{position:relative;line-height:1.9;font-size:15px;color:#e6f3ea;margin:0 0 15px}
.mystery .mystery-question{font-size:clamp(24px,5vw,36px);font-weight:800;line-height:1.6;color:white;margin:25px 0}
.mystery-question strong{color:#f9e7b3}
.mystery .mystery-tail{font-size:13px;color:#d6e8df;margin:0;max-width:680px}
.footer{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;padding:27px 5px;color:#6d877c;font-size:12px}
@media(max-width:630px){
 .classroom{padding:0 12px 25px}
 .hero{border-radius:0 0 17px 17px;padding:25px 16px}
 .plan-cards{grid-template-columns:1fr;gap:9px}
 .plan{display:grid;grid-template-columns:auto 1fr;gap:2px 12px;padding:12px 14px;font-size:13px}
 .plan-name{grid-row:span 2;font-size:16px;align-self:center}
 .plan strong{font-size:17px}
 .chapter{border-radius:16px;padding:19px 13px;margin:15px 0}
 .chapter>p{font-size:14px}
 .live-prices{gap:6px}
 .price{padding:10px 7px;min-height:94px}
 .price span{font-size:11px}
 .price small{font-size:11px}
 .graph-card{padding:8px 3px}
 .graph-card figcaption{font-size:14px}
 .tick-labels{font-size:15px}
 .graph-caption{font-size:12px}
 .quiz{padding:13px}
 .recap-grid{grid-template-columns:1fr}
 .mystery{border-radius:18px;padding:28px 18px}
}
@media(max-width:360px){
 .live-prices{grid-template-columns:repeat(2,minmax(0,1fr))}
 .price.difference{grid-column:1 / -1;min-height:80px}
 .plan-name{font-size:15px}
 .graph-caption{font-size:12px}
 .tick-labels{font-size:15px}
 .answers button,.guess button{font-size:13px;padding:10px 7px}
 .method-tabs button{flex-basis:100%;font-size:14px}
 .footer{font-size:11px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* R1R3: readable SVG labels at 320px and line styles distinguishable without color. */
#hoursSlider{min-height:48px}
.swatch.b{background:none;border-top:5px dashed #c57835;height:0}
.systems-why,.systems-slope{margin:15px 0;padding:15px 17px;border-radius:14px;background:#eaf5ef;border-left:5px solid #418b72;color:#345e50;font-size:15px;line-height:1.8}
.systems-slope{margin-top:18px;background:#f1f6ed}
.systems-slope h3{margin:0 0 9px;font-size:18px;color:#235e53}
.systems-slope p{margin:0}
@media(max-width:630px){#planGraph .tick-labels{font-size:27px}#planGraph > text{font-size:24px}#planGraph #crossLabel{font-size:26px}}


/* SORAIRO Classroom: signed numbers interactive lesson — extensions to the tested systems visual language. */
.weather-scene{display:flex;align-items:center;justify-content:center;gap:clamp(8px,3vw,22px);margin-top:28px}
.weather-scene>div{display:flex;flex-direction:column;justify-content:center;gap:4px;width:45%;min-height:136px;border:1px solid #cbded4;border-radius:20px;background:#ffffffde;text-align:center;padding:15px 8px}
.weather-scene>div:first-child{border-top:5px solid #7299bc}
.weather-scene>div:last-child{border-top:5px solid #d1ad74}
.weather-scene span{font-size:14px;color:#54756b;font-weight:750}
.weather-scene strong{font-size:clamp(32px,6vw,49px);line-height:1.3;color:#275d6f;font-variant-numeric:tabular-nums}
.weather-scene>div:last-child strong{color:#9a713b}
.weather-scene small{font-size:12px;color:#547267}
.weather-arrow{font-size:33px!important;color:#488473!important}
.two-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:24px 0 15px}
.two-controls .control-shell{margin:0;min-width:0;padding:19px}
.control-shell label{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;color:#316c59;font-weight:850;font-size:14px}
.control-shell output{font-size:26px;font-weight:900;color:#275f53;font-variant-numeric:tabular-nums}
.control-shell input[type=range]{width:100%;accent-color:#338978;min-height:48px;margin:14px 0 3px}
.method-tabs{margin:15px 0}
.method-tabs button{min-height:48px}
#signedLine{display:block;width:100%;height:auto;max-width:100%;border-radius:11px;background:#f8fcf8}
#numberTicks text{font-family:Arial,"Yu Gothic",sans-serif}
.live-equation{background:#e8f4ed;border-left:5px solid #3c947e;border-radius:15px;padding:18px;margin:19px 0 0;min-width:0}
.live-equation>span{display:block;color:#4c796a;font-size:12px;font-weight:850;margin-bottom:6px}
.live-equation>strong{display:block;font-size:clamp(18px,3.6vw,25px);line-height:1.65;color:#245e50;font-weight:900;overflow-wrap:anywhere}
.live-equation>p{font-size:14px;line-height:1.8;color:#506d62;margin:11px 0 0}
.hint-note{margin-top:19px;border:1px solid #cbded0;border-radius:14px;padding:17px 19px;background:#f1f8f0;color:#315e53;font-size:14px;line-height:1.85}
.hint-note strong{color:#1f735f}
.distance-track{display:flex;gap:9px;align-items:center;margin:15px 0;font-size:12px;color:#56756a;font-variant-numeric:tabular-nums}
.distance-axis{height:14px;flex:1;min-width:0;background:linear-gradient(90deg,#e9f2ec,#d5e7dc);border-radius:12px;position:relative}
.distance-axis::after{content:"";height:25px;width:2px;position:absolute;left:50%;top:-6px;background:#738f82}
#absBar{position:absolute;top:3px;height:8px;background:#bf8652;border-radius:4px}
#absMark{position:absolute;top:-5px;transform:translateX(-50%);height:24px;width:8px;border:2px solid #fff;border-radius:6px;background:#286e5f;box-shadow:0 0 0 1px #367d6a}
#absExplanation{font-size:15px;color:#315f53;line-height:1.8;margin-bottom:0}
.fact-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.fact-grid>div{border:1px solid #dce9df;background:#f9fcf8;border-radius:14px;padding:14px}
.fact-grid h3{font-size:16px;margin:0 0 8px;color:#2c6858}
.fact-grid p{font-size:13px;line-height:1.8;margin:0;color:#506c5f}
.pattern-list{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:22px 0 20px}
.pattern-list>div{border:1px solid #d8e7db;background:#f7faf7;border-radius:13px;padding:12px 8px;text-align:center;display:flex;flex-direction:column;gap:8px;justify-content:center}
.pattern-list>div span{font-size:13px;color:#5a786d}
.pattern-list>div strong{font-size:24px;color:#336c60}
.pattern-list .pattern-highlight{background:#e2f1e8;border:2px solid #54a188}
.pattern-list .pattern-highlight strong{color:#1c7159}
.sign-lab{border:1px solid #deeadf;border-radius:18px;background:#fbfdf9;padding:19px;margin-top:21px}
.sign-lab h3{margin:0 0 14px}
.sign-choices{display:flex;flex-wrap:wrap;gap:8px}
.sign-choices button{flex:1 1 125px;min-height:48px;border-radius:12px;background:#fff;border:1px solid #afcebc;color:#295e4f;font-size:14px;font-weight:800;padding:10px 9px}
.sign-choices button[aria-pressed=true]{background:#d8eddf;border:2px solid #347f66}
.sign-choices button:hover{background:#e7f4e9}
.sign-lab .live-equation{margin-top:14px}
@media(max-width:640px){
 .two-controls{grid-template-columns:1fr}
 .weather-scene>div{min-height:114px}
 .fact-grid{grid-template-columns:1fr}
 .pattern-list{grid-template-columns:repeat(3,minmax(0,1fr))}
 .pattern-list>div{min-height:78px}
 #numberTicks text{font-size:25px}
 #signedLine #startLabel,#signedLine #finishLabel{font-size:25px}
}
@media(max-width:360px){
 .weather-scene strong{font-size:31px}
 .weather-scene span{font-size:12px}
 .weather-arrow{font-size:23px!important}
 .pattern-list{grid-template-columns:repeat(2,minmax(0,1fr))}
 .graph-card{padding:8px 4px}
 .live-equation{padding:13px}
 .hint-note{padding:14px}
 #numberTicks text{font-size:26px}
}

/* R2: interactive observation above fingertip controls, compact yet readable on 320px. */
#numberline>p{margin-bottom:10px}
.sim-panel{border:1px solid #cadfd3;background:#f7fcf8;border-radius:18px;padding:clamp(8px,1.4vw,15px);margin:12px 0 15px}
.sim-hint{font-size:13px;font-weight:850;color:#346f61;line-height:1.45;margin:2px 5px 8px}
.sim-observation{padding-bottom:6px}
.sim-panel .graph-card{background:#fff;border:1px solid #d2e5d9;border-radius:12px;padding:7px;margin:0}
.sim-panel .graph-card figcaption{font-size:14px;margin:3px 7px 4px;color:#245f53}
.sim-panel .graph-caption{font-size:12px;margin:4px 8px 5px;line-height:1.45}
.sim-panel .sim-result{margin:8px 0 0;background:#e0f0e6;border-radius:12px;padding:10px 12px;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:baseline;gap:3px 10px}
.sim-result>span{font-size:12px;margin:0}
.sim-panel .sim-result>strong{font-size:clamp(17px,4vw,23px);line-height:1.4}
.sim-panel .sim-result>p{grid-column:1 / -1;font-size:12px;line-height:1.48;margin:1px 0 0}
.sim-controls{border-top:1px dashed #b7d2c2;margin-top:9px;padding-top:12px}
.sim-controls .method-tabs{margin:5px 0 10px;flex-wrap:nowrap}
.sim-controls .method-tabs button{flex:1 1 0;min-width:0;min-height:44px;padding:8px 7px}
.sim-controls .two-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0}
.sim-controls .control-shell{margin:0;padding:9px 10px;background:#fff;border-radius:12px}
.sim-controls .control-shell label{display:flex;gap:5px;align-items:center;justify-content:space-between;font-size:12px;line-height:1.5}
.sim-controls .control-shell output{font-size:clamp(19px,4vw,25px)}
.sim-controls .control-shell input[type=range]{min-height:48px;margin:7px 0 0;touch-action:pan-y}
.sim-controls .slider-ends{font-size:11px}
.sim-controls .sim-hint{margin-bottom:8px}
.key-rule{border:1px solid #e0d2ae!important;border-left:5px solid #b08b48!important;background:linear-gradient(115deg,#fff6db,#f8fbec)!important;border-radius:16px;padding:19px 20px;color:#384d3f;line-height:1.8;margin:18px 0}
.key-rule-label{display:inline-block;font-size:12px;letter-spacing:.02em;font-weight:900;color:#83602f;background:#f7e6bd;border-radius:99px;padding:5px 11px;margin-bottom:10px}
.key-rule-formula{font-size:clamp(19px,4vw,26px);font-weight:900;color:#265e50;line-height:1.55;padding:2px 0 9px;overflow-wrap:anywhere}
.key-rule p{font-size:14px;line-height:1.8;margin:7px 0 0;color:#466355}
.key-rule p strong{color:#215b50}
.abs-lab{margin:15px 0 18px;padding:18px}
.sim-small-title{font-size:16px!important;margin:0 0 12px!important;color:#286957}
.abs-lab .distance-track{margin:8px 0 12px}
.abs-lab #absExplanation{margin:0 0 12px;font-size:14px}
.abs-controls{border-top:1px dashed #b8d8c7;padding-top:12px}
.abs-controls label{font-size:13px}
.abs-controls input[type=range]{margin:5px 0 0}
.retro-lab{margin:17px 0;background:#f6faf4;border:1px solid #c8dece;border-radius:18px;padding:clamp(13px,2vw,22px)}
.retro-lab h3{color:#27675b;margin:0 0 8px!important;font-size:18px}
.retro-intro{font-size:13px;color:#547363;line-height:1.6;margin:0 0 14px}
.retro-observation{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:8px}
.retro-card{border:1px solid #d5e5d9;border-top:4px solid #d3a46d;border-radius:14px;padding:11px 8px;background:#fff;min-height:123px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}
.retro-card.today{border-top-color:#428f79}
.retro-card span{font-size:13px;font-weight:850;color:#55746b}
.retro-card strong{font-size:clamp(19px,4vw,26px);font-weight:900;color:#225e51;font-variant-numeric:tabular-nums}
.retro-middle{font-size:11px;color:#527c6b;max-width:55px;text-align:center;line-height:1.5}
.piece-grid{display:grid;grid-template-columns:repeat(7,9px);gap:3px;min-height:20px;margin:5px auto 0;justify-content:center}
.piece-grid i{display:block;width:9px;height:9px;background:#d8a063;border-radius:3px;box-shadow:inset 0 0 0 1px #b27b43}
.today .piece-grid i{background:#79b49b;box-shadow:inset 0 0 0 1px #478b70}
.retro-change{display:flex;flex-wrap:wrap;align-items:baseline;gap:7px 13px;background:#e3f0e7;border-radius:11px;padding:11px 13px;margin:10px 0}
.retro-change span{font-size:12px;font-weight:800;color:#537365}
.retro-change strong{font-size:23px;color:#256457;font-weight:900}
.retro-change small{font-size:12px;color:#466a5b}
.retro-controls{padding:13px 3px 4px;border-top:1px dashed #b9d6c5;margin-top:12px}
.retro-controls label{display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:13px;font-weight:850;color:#316959}
.retro-controls output{font-size:19px;font-weight:900;color:#246456}
.retro-controls input[type=range]{display:block;width:100%;min-height:48px;accent-color:#348471;margin:6px 0 0;touch-action:pan-y}
.retro-formula{margin:10px 0;border:1px solid #d5e5d8;border-radius:12px;background:#fff;padding:12px}
.retro-formula span{display:block;color:#4b7061;font-size:12px;font-weight:800;margin-bottom:6px}
.retro-formula strong{display:block;font-size:clamp(17px,3.5vw,23px);color:#275f54;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.retro-explanation{font-size:14px;color:#516d5e;line-height:1.8;margin:12px 0 0}
.pattern-intro{font-size:14px;line-height:1.8;color:#4e6c60;margin:23px 0 0}
.sign-lab .live-equation{margin:0 0 12px}
.sign-lab .sign-choices{margin:0 0 7px}
.sim-micro{font-size:12px;color:#5c766a;line-height:1.5;margin:7px 0 0}
@media(max-width:630px){
 .sim-panel{padding:7px 7px 9px;margin:9px 0 12px}
 .sim-panel .graph-card{padding:5px 3px}
 .sim-panel .sim-result{padding:9px 10px}
 .sim-controls .method-tabs button{flex:1 1 0!important;font-size:13px!important}
 .sim-controls .two-controls{grid-template-columns:repeat(2,minmax(0,1fr))}
 .key-rule{padding:15px 13px}
 .retro-lab{padding:13px 10px}
 .retro-card{padding:10px 5px;min-height:116px}
 .retro-middle{max-width:34px;font-size:10px}
 .retro-observation{gap:5px}
 .piece-grid{grid-template-columns:repeat(7,8px);gap:2px}
 .piece-grid i{width:8px;height:8px}
}
@media(max-width:360px){
 #numberline{padding:15px 10px}
 #numberline .step{margin-bottom:5px}
 #numberline h2{font-size:20px;line-height:1.45;margin-bottom:5px}
 #numberline>p{font-size:13px;line-height:1.6;margin-bottom:7px}
 .sim-hint{font-size:11px;margin-bottom:5px}
 .sim-panel .graph-card figcaption{font-size:12px}
 .sim-panel .graph-caption{font-size:11px}
 .sim-controls .control-shell{padding:8px 7px}
 .sim-controls .control-shell label{font-size:11px}
 .sim-controls .control-shell output{font-size:18px}
 .sim-controls .slider-ends{font-size:10px}
 .retro-card span{font-size:12px}
 .retro-card strong{font-size:20px}
}
