:root{--paper:#f6f4ec;--white:#fffef9;--ink:#253b36;--muted:#66716a;--green:#234a43;--light:#e8eee4;--orange:#ad4e32;--line:#d8dbd0;--serif:'Yu Mincho','Hiragino Mincho ProN',serif;font-family:-apple-system,BlinkMacSystemFont,'Hiragino Kaku Gothic ProN','Yu Gothic',sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none;color-scheme:light}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button{color:inherit}button:disabled{cursor:default;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #b25832;outline-offset:5px}button{border:0}a{color:var(--green);text-underline-offset:4px}h1,h2,h3,p{margin-top:0}p{line-height:1.85}h1,h2{line-height:1.55}main:focus{outline:none}.site-header{max-width:1120px;margin:auto;min-height:108px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:20px;padding:0 8px}.brand{background:none;display:flex;gap:13px;align-items:center;text-align:left;font-family:var(--serif);font-size:1.35rem;font-weight:700;letter-spacing:.1em;padding:4px}.brand-mark{width:43px;height:48px;border:1px solid var(--green);background:var(--green);color:var(--paper);display:grid;place-items:center;border-radius:5px 5px 12px 5px;box-shadow:4px 4px 0 #d0d6c8;font-size:1.5rem}.brand small{display:block;font: .62rem sans-serif;letter-spacing:.12em;color:var(--muted);margin-top:5px}nav{display:flex;gap:24px}.nav-button{background:none;font-size:.88rem;padding:14px 4px;border-bottom:2px solid transparent}.nav-button[aria-current=page]{border-color:var(--green);font-weight:700}.count{font-size:.7rem;background:#e3e7dc;border-radius:20px;padding:3px 7px;margin-left:4px}main{max-width:1080px;margin:auto;padding:48px 24px 64px;min-height:calc(100svh - 180px)}.eyebrow{font-size:.7rem;font-weight:700;letter-spacing:.18em;color:var(--orange);display:flex;align-items:center;gap:10px;margin-bottom:20px}.eyebrow:before{content:'';display:inline-block;width:24px;height:1px;background:currentColor}.hero{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);align-items:center;gap:40px;padding:14px 0 34px}.hero h1{font-family:var(--serif);font-size:clamp(2.2rem,4.5vw,3.45rem);font-weight:600;letter-spacing:.08em;line-height:1.65;margin-bottom:18px}.hero h1 em{font-style:normal;position:relative;background:linear-gradient(transparent 72%,#e1e6d1 0)}.intro{color:var(--muted);font-size:.9rem;margin-bottom:0}.deck-art{position:relative;max-width:330px;width:100%;aspect-ratio:1.15;margin:10px auto 20px;isolation:isolate}.deck-art:before,.deck-art:after{content:'';position:absolute;inset:10px;border:1px solid #b8c2b2;border-radius:12px;background:#e4e9da;z-index:-1;transform:rotate(-11deg)}.deck-art:after{transform:rotate(6deg);background:#eeecdf}.sample-card{position:absolute;inset:0;background:var(--white);border:1px solid #c5cabe;border-radius:12px;padding:28px;text-align:center;transform:rotate(-3deg);box-shadow:0 16px 25px #263c3210}.sample-card .sample-meta{display:flex;justify-content:space-between;font-size:.63rem;letter-spacing:.12em;color:var(--muted)}.sample-year{font:4.5rem Georgia,serif;letter-spacing:.06em;margin-top:20px}.sample-year small{font: .9rem sans-serif;letter-spacing:0}.sample-card p{font-family:var(--serif);font-size:1.15rem;margin:8px 0}.sample-goro{font-size:.73rem;display:inline-block;border-top:1px solid var(--line);padding-top:14px;color:var(--orange)}.round-seal{position:absolute;right:-13px;bottom:-10px;width:75px;height:75px;display:grid;place-items:center;border-radius:50%;background:var(--orange);color:#fff9eb;font-family:var(--serif);font-size:1rem;transform:rotate(8deg);text-align:center;line-height:1.45;border:4px double #d59b71}.home-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:24px}.start-panel{background:var(--white);border:1px solid var(--line);padding:28px 30px;border-radius:14px}.section-title{display:flex;gap:12px;align-items:baseline;justify-content:space-between;margin-bottom:22px}.section-title h2{font-size:1.14rem;margin:0;font-weight:600}.subtle{font-size:.75rem;color:var(--muted)}.settings{display:flex;gap:14px;margin-bottom:22px}.field{flex:1;min-width:0}.field label{display:block;font-size:.75rem;color:var(--muted);margin-bottom:8px}select{width:100%;padding:12px 32px 12px 12px;border:1px solid #9ba99e;border-radius:7px;color:var(--ink);background:var(--white);font-size:.85rem;min-height:46px}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:12px;border-radius:7px;min-height:50px;padding:13px 22px;font-weight:600;font-size:.88rem;transition:background .18s,transform .18s}.primary{background:var(--green);color:white}.primary:hover{background:#326255}.secondary{background:transparent;border:1px solid #9aa99e}.secondary:hover{background:var(--light)}.wide{width:100%}.primary .arrow{margin-left:auto;font-size:1.25rem}.plain{background:none;color:var(--muted);font-size:.8rem;padding:10px 4px;text-decoration:underline;text-underline-offset:4px;min-height:44px}.save-note{font-size:.68rem;text-align:center;color:var(--muted);margin:13px 0 0}.progress-panel{padding:24px 26px;background:var(--light);border-radius:14px}.progress-panel h2{font-size:.87rem;font-weight:500;margin-bottom:16px}.master-count{font-family:Georgia,serif;font-size:2.6rem}.master-count small{font: .85rem sans-serif;color:var(--muted)}progress{width:100%;height:7px;border:0;border-radius:8px;overflow:hidden;background:#d6ddcf;appearance:none;margin:13px 0}progress::-webkit-progress-bar{background:#d6ddcf;border-radius:8px}progress::-webkit-progress-value{background:var(--green);border-radius:8px}progress::-moz-progress-bar{background:var(--green)}.progress-panel p{font-size:.75rem;color:var(--muted);margin-bottom:12px}.review-link{background:none;padding:8px 0;min-height:44px;font-size:.82rem;color:var(--green);font-weight:600}.steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin-top:34px;padding-top:25px;border-top:1px solid var(--line)}.step{display:flex;gap:12px;font-size:.8rem;align-items:flex-start}.step span{font:italic 1.5rem Georgia,serif;color:#87967c}.step b{font-weight:600;display:block;margin:1px 0 4px}.step p{font-size:.72rem;color:var(--muted);margin:0}.site-footer{max-width:1120px;padding:20px 8px;margin:auto;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:12px;color:var(--muted);font-size:.67rem}.quiz-wrap{max-width:730px;margin:auto}.quiz-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;gap:12px;font-size:.8rem}.quiz-toolbar button{background:none;padding:10px 0;color:var(--muted)}.phase-label{color:var(--green);font-weight:600}.quiz-progress{margin:0 0 20px;height:5px}.card{background:var(--white);border:1px solid var(--line);border-radius:14px;padding:30px 38px;box-shadow:0 5px 0 #ecece3;animation:arrive .24s ease-out}.card-meta{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:26px;font-size:.7rem;color:var(--muted)}.era{display:inline-block;border:1px solid #b4c1b3;padding:5px 10px;border-radius:4px;color:var(--green);background:#f3f5ed}.card h1{font-family:var(--serif);font-size:1.6rem;letter-spacing:.025em;margin-bottom:12px}.question-label{font-size:.83rem;color:var(--muted);margin:0 0 23px}.choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin:20px 0}.choice{min-height:70px;border:1px solid #9ba99e;border-radius:8px;background:var(--white);display:flex;align-items:center;gap:12px;padding:16px;text-align:left;transition:background .15s,border-color .15s}.choice:hover{background:var(--light);border-color:var(--green)}.choice .letter{font: .7rem Georgia,serif;color:var(--muted);background:#eef0e7;width:24px;height:24px;flex-shrink:0;display:grid;place-items:center;border-radius:50%}.year-option{font-family:Georgia,serif;font-size:1.65rem}.year-option small{font: .7rem sans-serif;margin-left:4px}.hint{padding:13px 16px;border-left:2px solid #b98d46;background:#f4efdf;font-family:var(--serif);font-size:.95rem;margin-bottom:12px}.card-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px}.below-card{text-align:center;color:var(--muted);font-size:.73rem;margin-top:22px}.feedback{display:flex;align-items:center;gap:8px;font-weight:600;font-size:.88rem;color:var(--green);margin-bottom:20px}.feedback.miss{color:var(--orange)}.answer-head{display:flex;align-items:baseline;gap:16px;border-bottom:1px solid var(--line);padding-bottom:20px;margin-bottom:22px}.answer-year{font:3.25rem Georgia,serif;letter-spacing:.025em;color:var(--green);flex-shrink:0}.answer-year small{font:.8rem sans-serif}.answer-head h1{font:600 1.12rem/1.7 var(--serif);margin:0}.goro-box{background:#edf1e5;border-radius:8px;padding:20px;margin-bottom:24px}.micro-label{font-size:.68rem;letter-spacing:.1em;color:var(--muted);margin-bottom:10px}.goro-box h2{font:600 1.35rem/1.8 var(--serif);margin-bottom:15px;overflow-wrap:anywhere}.sound-map{display:flex;gap:8px;flex-wrap:wrap}.sound-map span{display:grid;min-width:44px;padding:6px 9px;text-align:center;background:#fffdf6;border-radius:5px;font-size:.73rem}.sound-map b{font:1.2rem Georgia,serif;color:var(--orange);padding-bottom:4px}.story{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin:0 0 18px}.story h2{font-size:.75rem;margin-bottom:7px;color:var(--green);font-weight:700}.story p{font-size:.85rem;line-height:1.85;margin:0}.tags{font-size:.7rem;color:var(--muted);line-height:1.8;margin-bottom:16px}.source{font-size:.69rem;color:var(--muted);margin:16px 0 22px}.source summary{cursor:pointer;min-height:32px;line-height:2}.source p{margin:8px 0;overflow-wrap:anywhere}.note{border-left:2px solid #be9865;padding-left:10px}.recall-card .choices{grid-template-columns:minmax(0,1fr)}.recall-card .choice{font-size:.95rem;min-height:61px}.check-result{padding:18px;border:1px solid #afc5ae;background:#eef3e8;border-radius:8px;margin:20px 0}.check-result.miss{background:#fbf0e8;border-color:#c89572}.check-result p{font-size:.85rem;margin:8px 0 0}.result{text-align:center}.result h1{font-family:var(--serif);font-size:1.8rem}.score{font:4.5rem Georgia,serif;color:var(--green);margin:18px 0}.score small{font:1rem sans-serif;color:var(--muted)}.result-copy{font-size:.88rem;color:var(--muted)}.result-list{text-align:left;margin:25px 0;border-top:1px solid var(--line)}.result-row{display:flex;gap:12px;justify-content:space-between;padding:13px 0;border-bottom:1px solid var(--line);font-size:.8rem}.result-row span:last-child{flex-shrink:0;color:var(--muted)}.actions{display:flex;gap:12px;flex-wrap:wrap}.actions>*{flex:1}.library-heading h1{font:600 2.2rem var(--serif);margin-bottom:14px}.library-heading p{font-size:.88rem;color:var(--muted)}.filters{display:flex;gap:8px;flex-wrap:wrap;margin:24px 0}.filter{min-height:40px;padding:8px 14px;border:1px solid #acb7aa;border-radius:30px;background:transparent;font-size:.8rem}.filter[aria-pressed=true]{background:var(--green);border-color:var(--green);color:#fff}.library-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.library-card{background:var(--white);border:1px solid var(--line);border-radius:10px;text-align:left;padding:22px;min-width:0;transition:transform .15s}.library-card:hover{transform:translateY(-3px);border-color:var(--green)}.library-card .year{font:1.8rem Georgia,serif;display:block;margin-bottom:12px}.library-card strong{font:600 .98rem/1.8 var(--serif);display:block;min-height:58px}.library-card .status{display:block;font-size:.7rem;color:var(--muted);margin-top:16px}.detail-nav{display:flex;justify-content:space-between;margin-top:22px;gap:12px}.warning{background:#fff1d6;padding:12px 24px;color:#6b481a;font-size:.8rem}.skip{position:absolute;top:-100px;left:12px}.skip:focus{top:12px;background:#fff;padding:12px;z-index:10}.sr-only{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}dialog{border:1px solid var(--line);border-radius:14px;padding:28px;max-width:440px;width:calc(100% - 36px);background:var(--white);color:var(--ink)}dialog h2{font-size:1.2rem}dialog p{font-size:.85rem}dialog::backdrop{background:#18352d66}@keyframes arrive{from{opacity:.5;transform:translateY(7px) rotateY(-5deg)}to{opacity:1;transform:none}}@media(min-width:1400px){main{padding-top:65px}.hero{padding-bottom:45px}}@media(max-width:700px){.site-header{min-height:83px;margin:0 20px;padding:0;gap:12px}.brand{font-size:1.07rem;gap:10px}.brand-mark{width:34px;height:40px;font-size:1.25rem}.brand small{font-size:.53rem}.nav-button{font-size:.75rem}nav{gap:13px}.count{display:none}main{padding:30px 20px 40px}.hero{grid-template-columns:minmax(0,1fr);gap:22px;padding-top:0}.hero h1{font-size:2.35rem;line-height:1.55}.intro{font-size:.84rem}.eyebrow{font-size:.65rem;margin-bottom:14px}.deck-art{max-width:230px;aspect-ratio:1.2;margin:0 auto 14px}.sample-card{padding:18px}.sample-year{font-size:3rem;margin-top:12px}.sample-card p{font-size:1rem}.sample-goro{font-size:.62rem;padding-top:10px}.round-seal{width:59px;height:59px;font-size:.8rem}.home-grid{grid-template-columns:minmax(0,1fr);gap:18px}.start-panel{padding:23px}.progress-panel{padding:22px}.steps{gap:13px}.step{display:block}.step span{display:block;margin-bottom:7px}.step p{font-size:.68rem}.site-footer{margin:0 20px;padding:20px 0;flex-direction:column;gap:8px}.card{padding:23px 21px}.card h1{font-size:1.35rem}.card-meta{margin-bottom:21px}.choice{padding:14px 11px;gap:8px;min-height:69px}.choices{gap:10px}.year-option{font-size:1.5rem}.card-bottom{align-items:flex-start}.plain{font-size:.73rem}.answer-head{flex-direction:column;gap:8px;padding-bottom:17px}.answer-year{font-size:2.8rem}.goro-box{padding:17px}.goro-box h2{font-size:1.18rem}.story{grid-template-columns:minmax(0,1fr);gap:16px}.library-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.library-card{padding:16px}.library-card strong{font-size:.85rem;min-height:76px}.library-heading h1{font-size:1.8rem}.result h1{font-size:1.45rem}.actions{flex-direction:column}.quiz-toolbar{font-size:.72rem}.result-row{font-size:.73rem}.settings{gap:10px}.section-title{gap:6px}.section-title h2{font-size:1rem}.subtle{font-size:.66rem}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.sound-bar{max-width:1120px;margin:12px auto 0;padding:0 8px;display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.sound-bar button{background:var(--white);border:1px solid #9aa99e;border-radius:6px;min-height:40px;padding:8px 12px;font-size:.75rem}.sound-bar button[aria-pressed=true]{background:var(--light)}#sound-status{font-size:.73rem;color:var(--orange);width:100%;text-align:right}#sound-status:empty{display:none}@media(max-width:700px){.sound-bar{margin:12px 20px 0;padding:0;gap:8px}.sound-bar button{font-size:.7rem;min-height:40px;padding:8px 10px}}
/* Preserve native select semantics while matching the paper-card controls. */
.field select{appearance:none;-webkit-appearance:none;min-height:54px;padding:14px 45px 14px 16px;border:1px solid #a9b9aa;border-bottom:3px solid #a9b9aa;border-radius:10px;background-color:#f0f3e9;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26'%3E%3Crect width='26' height='26' rx='7' fill='%23dce5d6'/%3E%3Cpath d='m8 11 5 5 5-5' fill='none' stroke='%23234a43' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;color:var(--green);font-weight:600;cursor:pointer;box-shadow:0 2px 0 #234a4305;transition:background-color .15s,border-color .15s}.field select:hover{background-color:#e7eddf;border-color:#6d8c75}.field select:focus-visible{outline:3px solid #b25832;outline-offset:3px;border-color:var(--green)}.field label{font-weight:600;color:var(--green);letter-spacing:.04em}.field select option{background:var(--white);color:var(--ink)}@media(max-width:700px){.field select{padding-left:12px;padding-right:40px;background-position:right 8px center;font-size:.82rem}}@media(prefers-reduced-motion:reduce){.field select{transition:none}}

.voice-version{font-size:.73rem;color:var(--green);margin-right:auto;min-width:0}.version-link{display:inline-flex;align-items:center;gap:16px;min-height:44px;margin-top:18px;padding:9px 16px;border:1px solid #a9b9aa;border-radius:24px;background:var(--light);font-size:.8rem;text-decoration:none}.version-link:hover{background:#dce5d6}#voice-credit{font-size:.73rem}

.goro-listen{margin-bottom:14px}

/* Keep status readable through both a persistent border and a text label. */
.library-card[data-state],.status-legend [data-state]{--status-color:#646f68;--status-bg:#fffef9}
.library-card[data-state=learned],.status-legend [data-state=learned]{--status-color:#327252;--status-bg:#edf5ef}
.library-card[data-state=hinted],.status-legend [data-state=hinted]{--status-color:#426ba0;--status-bg:#edf3fb}
.library-card[data-state=review],.status-legend [data-state=review]{--status-color:#a65a28;--status-bg:#fff3e8}
.library-card[data-state]{border:2px solid var(--status-color);background:var(--status-bg)}
.library-card[data-state]:hover{border-color:var(--status-color);box-shadow:0 3px 10px #253b3614}
.library-card[data-state] .status{color:var(--status-color);font-weight:600}
.status-legend{display:flex;flex-wrap:wrap;gap:10px;margin:24px 0 12px}
.status-legend [data-state]{border:2px solid var(--status-color);background:var(--status-bg);color:var(--status-color);border-radius:7px;padding:7px 12px;font-size:.78rem;font-weight:600}
.status-help{font-size:.76rem;color:var(--muted);max-width:65em;margin-bottom:22px}

/* Keep controls clear of phone cutouts and native system bars. */
body{padding-top:var(--safe-area-inset-top,env(safe-area-inset-top,0px));padding-bottom:var(--safe-area-inset-bottom,env(safe-area-inset-bottom,0px));padding-left:var(--safe-area-inset-left,env(safe-area-inset-left,0px));padding-right:var(--safe-area-inset-right,env(safe-area-inset-right,0px))}
.app-options{max-width:1104px;margin:0 auto 24px;border:1px solid var(--line);border-radius:10px;background:var(--white);padding:18px 22px;font-size:.8rem;overflow-wrap:anywhere}
.app-options summary{cursor:pointer;color:var(--green);font-weight:600;min-height:28px}.app-options h2{font-size:.95rem;margin:22px 0 10px}.app-options p{line-height:1.8}.app-options button{max-width:100%;white-space:normal}.app-options a{color:var(--green)}
@media(max-width:1150px){.app-options{margin-left:20px;margin-right:20px}}
[hidden]{display:none!important}

.round-seal>span{white-space:nowrap}

/* Keep every year on one line and the year visible while scrolling across. */
.timeline-help{font-size:.75rem;color:var(--muted);margin:24px 0 12px}
.timeline-scroll{overflow-x:auto;border:1px solid var(--line);border-radius:10px;background:var(--white)}
.timeline-scroll:focus-visible{outline:3px solid var(--orange);outline-offset:5px}
.timeline-table{width:100%;border-collapse:separate;border-spacing:0;white-space:nowrap;text-align:left;font-size:.83rem;line-height:1.7}
.timeline-table th,.timeline-table td{padding:13px 18px;border-bottom:1px solid var(--line);background:var(--row-bg,var(--white))}
.timeline-table thead{--row-bg:var(--light)}
.timeline-table thead th{font-size:.75rem;color:var(--green);font-weight:600}
.timeline-table tr>:first-child{position:sticky;left:0;z-index:1;min-width:6rem;border-right:1px solid var(--line)}
.timeline-table tbody th{font:1.2rem Georgia,serif;color:var(--green)}
.timeline-table small{font:.68rem sans-serif}
.timeline-table td:last-child{color:var(--muted)}
.timeline-table tbody tr:nth-child(even){--row-bg:#f1f3eb}
.timeline-table tbody tr:last-child>*{border-bottom:0}
@media(max-width:700px){.site-header{flex-wrap:wrap;row-gap:0;padding-top:14px}.site-header nav{width:100%;justify-content:space-between;gap:12px}.timeline-table th,.timeline-table td{padding:12px 14px}}

.timeline-tools{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:24px 0 12px}
.timeline-modes{display:flex;flex-wrap:wrap;gap:8px;border:0;padding:0;margin:0;min-width:0}
.timeline-modes legend{font-size:.75rem;font-weight:600;margin-bottom:10px;color:var(--green)}
.timeline-modes label{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 12px;border:1px solid #9aa99e;border-radius:7px;background:var(--white);font-size:.8rem;cursor:pointer}
.timeline-modes input{accent-color:var(--green);width:1rem;height:1rem;margin:0;flex-shrink:0}
.timeline-instructions{font-size:.75rem;color:var(--muted);margin-bottom:12px}
.timeline-instructions+.timeline-help{margin-top:0}
.timeline-reveal{position:relative;min-width:6rem;min-height:44px;padding:8px 10px;border:1px dashed #66716a;border-radius:6px;background:var(--light);font:inherit;text-align:left;white-space:nowrap}
/* Visibility preserves column widths while keeping masked answers unreadable. */
.timeline-reveal[aria-expanded=false] .timeline-answer-text,.timeline-goro.is-masked{visibility:hidden}
.timeline-reveal-cover{position:absolute;inset:0;display:flex;align-items:center;padding:0 10px;font:.75rem -apple-system,BlinkMacSystemFont,'Hiragino Kaku Gothic ProN',sans-serif;color:var(--green)}
.timeline-table th .timeline-reveal-cover{justify-content:center}
.timeline-reveal[aria-expanded=true]{border-style:solid;background:var(--white)}
.timeline-reveal[aria-expanded=true] .timeline-reveal-cover{display:none}
.timeline-goro-cell{position:relative}
.timeline-goro-cover{position:absolute;inset:0;display:flex;align-items:center;padding:0 18px;font-size:.75rem;color:var(--muted)}
@media(max-width:700px){.timeline-goro-cover{padding-inline:14px}}
