@charset "UTF-8";
:root {
	color-scheme: light;
	--paper: #f7f8f2;
	--ink: #203f36;
	--muted: #6b7971;
	--green: #285b49;
	--mint: #e8eee3;
	--line: #dce2d5;
	--orange: #b55a37;
	--orange-soft: #fcf0e8;
	--white: #fffefa;
	--red: #a83e3a;
	--radius: 22px;
	font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
	font-size: 15px;
	color: var(--ink);
	background: var(--paper);
}
* {
	box-sizing: border-box;
}
body {
	margin: 0;
}
button,
input,
select {
	font: inherit;
}
button,
a,
select,
input {
	-webkit-tap-highlight-color: transparent;
}
button {
	cursor: pointer;
	color: inherit;
}
a {
	color: inherit;
	text-underline-offset: 4px;
}
button {
	touch-action: manipulation;
}
button:disabled {
	cursor: not-allowed;
	opacity: 0.5;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
	outline: 3px solid #c27838;
	outline-offset: 4px;
}
button:active:not(:disabled) {
	transform: translateY(1px);
}
[hidden] {
	display: none !important;
}
.wrap {
	max-width: 1180px;
	margin: auto;
	padding-inline: 36px;
}
.site-header {
	height: 108px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid var(--line);
}
.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	font-size: 20px;
	letter-spacing: -0.7px;
}
.brand b {
	font-weight: 450;
}
.brand small {
	display: block;
	color: var(--muted);
	font-size: 11px;
	letter-spacing: 2px;
	margin-top: 4px;
}
.brand-mark {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	background: var(--ink);
	color: var(--paper);
	border-radius: 15px;
	font:
		34px "Yu Mincho",
		"Noto Serif CJK JP",
		serif;
}
.back-site {
	font-size: 12px;
	text-decoration: none;
	color: var(--muted);
}
.back-site span {
	padding-left: 12px;
}
.skip-link {
	position: fixed;
	top: -100px;
	left: 20px;
	z-index: 20;
	background: var(--ink);
	color: white;
	padding: 12px;
}
.skip-link:focus {
	top: 10px;
}
.hero {
	padding: 52px 0 40px;
	display: grid;
	grid-template-columns: 1fr 310px;
	align-items: center;
	gap: 30px;
}
.eyebrow {
	font-size: 10px;
	letter-spacing: 2.2px;
	font-weight: 650;
	color: var(--muted);
}
.hero .eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
}
.dot {
	width: 6px;
	height: 6px;
	background: var(--orange);
	border-radius: 50%;
	display: inline-block;
}
.hero h1 {
	font-family: "Noto Serif CJK SC", "Songti SC", "SimSun", serif;
	font-size: clamp(34px, 4vw, 50px);
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 1px;
	margin: 17px 0 16px;
}
.hero h1 em {
	font-style: normal;
	color: var(--orange);
}
.hero p {
	color: var(--muted);
	font-size: 13px;
	line-height: 1.9;
	max-width: 480px;
	margin: 0;
}
.hero-art {
	height: 205px;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	isolation: isolate;
}
.kana-note {
	height: 150px;
	width: 132px;
	display: grid;
	place-items: center;
	border: 1px solid #cad6c7;
	background: #e6edde;
	font-family: "Yu Mincho", "Noto Serif CJK JP", serif;
	font-size: 84px;
	border-radius: 6px;
	box-shadow: 0 9px 20px #263f3610;
	position: relative;
	transform: rotate(-12deg);
}
.kana-note:after {
	content: "HIRAGANA";
	position: absolute;
	bottom: 10px;
	left: 12px;
	font: 8px sans-serif;
	letter-spacing: 2px;
}
.kana-note.second {
	background: #fffefa;
	border-color: #e4d5c8;
	transform: rotate(12deg);
	margin-left: -18px;
	margin-top: 20px;
	color: var(--orange);
}
.kana-note.second:after {
	content: "KATAKANA";
}
.art-flower {
	position: absolute;
	font-size: 31px;
	color: var(--orange);
	top: 6px;
	right: 13px;
}
.art-caption {
	position: absolute;
	bottom: -2px;
	font-size: 9px;
	letter-spacing: 2px;
	color: var(--muted);
}
.module-nav {
	display: flex;
	border-bottom: 1px solid var(--line);
	gap: 30px;
	margin: 0 0 30px;
}
.module-nav button {
	border: 0;
	background: transparent;
	padding: 16px 1px;
	font-weight: 600;
	position: relative;
	color: var(--muted);
}
.module-nav button[aria-selected="true"] {
	color: var(--ink);
}
.module-nav button[aria-selected="true"]:after {
	content: "";
	height: 3px;
	background: var(--green);
	position: absolute;
	bottom: -1px;
	left: 0;
	right: 0;
	border-radius: 3px;
}
.module-nav span {
	font-size: 10px;
	margin-left: 8px;
	font-weight: 400;
	color: var(--muted);
}
.workspace {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 315px;
	align-items: start;
	gap: 24px;
}
.panel {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 27px;
}
.panel-title {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 24px;
}
.step {
	font-size: 11px;
	border: 1px solid #bfcebd;
	border-radius: 50%;
	width: 28px;
	height: 28px;
	display: grid;
	place-items: center;
	flex-shrink: 0;
	color: var(--green);
}
h2,
h3,
h4,
p {
	margin-top: 0;
}
h2 {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 0;
}
h3 {
	font-size: 13px;
	font-weight: 600;
}
.panel-title .tiny {
	margin-left: auto;
}
.tiny {
	font-size: 11px;
	color: var(--muted);
	line-height: 1.7;
}
.tiny a {
	color: var(--green);
}
.label {
	font-size: 11px;
	color: var(--muted);
	display: block;
	margin-bottom: 10px;
}
.course-buttons,
.button-row,
.inline-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}
.pill {
	border: 1px solid var(--line);
	border-radius: 7px;
	background: transparent;
	padding: 9px 14px;
	font-size: 12px;
}
.pill:hover,
.pill[aria-pressed="true"] {
	background: var(--mint);
	border-color: #9bb29a;
	color: var(--green);
}
.course-note {
	font-size: 11px;
	color: var(--muted);
	line-height: 1.8;
	margin: 12px 0 24px;
}
.course-note button {
	font-size: inherit;
}
.text-button {
	padding: 2px 0;
	border: 0;
	background: transparent;
	color: var(--muted);
	text-decoration: underline;
	text-underline-offset: 3px;
	font-size: 11px;
}
.text-button:hover {
	color: var(--green);
}
.book-tabs {
	display: flex;
	gap: 6px;
	border-bottom: 1px solid var(--line);
	padding-bottom: 0;
	margin-top: 8px;
	margin-bottom: 14px;
}
.book-tabs button {
	border: 0;
	background: transparent;
	border-bottom: 2px solid transparent;
	padding: 12px 13px;
	font-size: 12px;
	color: var(--muted);
}
.book-tabs button[aria-selected="true"] {
	border-bottom-color: var(--green);
	color: var(--ink);
	font-weight: 600;
}
.book-info {
	display: flex;
	justify-content: space-between;
	margin-bottom: 22px;
	gap: 8px;
}
.unit {
	margin-bottom: 20px;
}
.unit:last-child {
	margin-bottom: 0;
}
.unit-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 9px;
}
.unit-head button {
	font-size: 10px;
	border: 0;
	color: var(--muted);
	background: transparent;
}
.unit-head button:hover {
	color: var(--green);
}
.unit-label {
	font-size: 10px;
	color: var(--muted);
	letter-spacing: 1px;
}
.lesson-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
}
.lesson {
	position: relative;
	border: 1px solid var(--line);
	border-radius: 9px;
	background: #fffefa;
	text-align: left;
	padding: 13px 11px;
	min-height: 82px;
	transition:
		background 0.15s,
		border-color 0.15s;
}
.lesson:hover {
	border-color: #95af99;
}
.lesson[aria-pressed="true"] {
	border-color: #7a9d7c;
	background: #eaf0e4;
}
.lesson[aria-pressed="true"]:after {
	content: "✓";
	position: absolute;
	right: 8px;
	top: 7px;
	font-size: 10px;
	color: var(--green);
}
.lesson .lesson-number {
	font-size: 12px;
	display: block;
	font-weight: 650;
	margin-bottom: 7px;
}
.lesson .lesson-count {
	display: block;
	font-size: 10px;
	color: var(--muted);
}
.lesson .lesson-topic {
	font-size: 10px;
	line-height: 1.4;
	display: block;
	color: var(--muted);
	margin-top: 5px;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.lesson.exam {
	min-height: 56px;
	width: 100%;
	display: flex;
	gap: 10px;
	align-items: center;
	padding: 12px;
	color: var(--muted);
	font-size: 11px;
	border-style: dashed;
}
.selection-footer {
	border-top: 1px solid var(--line);
	margin-top: 25px;
	padding-top: 18px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}
.selection-footer strong {
	font-size: 12px;
	font-weight: 550;
}
.settings {
	position: sticky;
	top: 20px;
}
.settings .panel-title {
	margin-bottom: 20px;
}
.mode-choices {
	display: grid;
	gap: 9px;
	margin-bottom: 22px;
}
.mode-option {
	border: 1px solid var(--line);
	padding: 13px;
	border-radius: 10px;
	display: flex;
	gap: 10px;
	align-items: start;
	cursor: pointer;
}
.mode-option:has(input:checked) {
	border-color: #7a9d7c;
	background: #f0f3e9;
}
.mode-option input {
	margin-top: 3px;
	accent-color: var(--green);
}
.mode-option b {
	font-size: 12px;
	display: block;
	margin-bottom: 5px;
}
.mode-option small {
	font-size: 10px;
	color: var(--muted);
	line-height: 1.7;
	display: block;
}
.setting-group {
	border-top: 1px solid var(--line);
	padding-top: 18px;
	margin-top: 18px;
}
.check-row {
	display: flex;
	gap: 8px;
	align-items: center;
	font-size: 12px;
	margin-bottom: 11px;
	cursor: pointer;
}
.check-row input {
	accent-color: var(--green);
	width: 16px;
	height: 16px;
	margin: 0;
}
.check-row small {
	margin-left: auto;
	font-size: 9px;
	border-radius: 4px;
	background: var(--mint);
	color: var(--green);
	padding: 3px 5px;
}
.setting-pair {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-top: 18px;
}
select {
	width: 100%;
	background: var(--white);
	color: var(--ink);
	border: 1px solid var(--line);
	border-radius: 7px;
	padding: 9px 8px;
	font-size: 12px;
}
.listening-note {
	margin: 6px 0 10px;
	font-size: 10px;
	line-height: 1.8;
	color: var(--muted);
}
.voice-select {
	margin-bottom: 9px;
}
.sound-test {
	font-size: 11px;
	padding: 7px 9px;
}
.start-area {
	border-top: 1px solid var(--line);
	margin-top: 22px;
	padding-top: 19px;
}
.start-count {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 14px;
}
.start-count b {
	font-size: 25px;
	font-weight: 500;
	letter-spacing: -1px;
}
.start-count span {
	font-size: 11px;
	color: var(--muted);
}
.button {
	border: 1px solid transparent;
	border-radius: 9px;
	min-height: 44px;
	padding: 11px 20px;
	font-size: 12px;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	text-decoration: none;
	transition: background 0.15s;
}
.primary {
	background: var(--green);
	color: #fffefa;
}
.primary:hover {
	background: #1c4939;
}
.secondary {
	background: var(--white);
	border-color: var(--line);
}
.secondary:hover {
	background: var(--mint);
}
.wide {
	width: 100%;
}
.start-area .button {
	min-height: 49px;
	justify-content: space-between;
}
.privacy-note {
	font-size: 10px;
	color: var(--muted);
	line-height: 1.7;
	text-align: center;
	margin: 11px 0 0;
}
.help-strip {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
	padding: 28px 3px;
}
.help-strip b {
	font-size: 11px;
	font-weight: 600;
	display: block;
	margin-bottom: 6px;
}
.help-strip p {
	font-size: 10px;
	line-height: 1.8;
	color: var(--muted);
	margin: 0;
}
.help-strip .help-number {
	color: var(--orange);
	padding-right: 7px;
}
.data-note {
	font-size: 10px;
	color: var(--muted);
	line-height: 1.9;
	padding: 17px 20px;
	background: #edf0e6;
	border-radius: 10px;
	margin: 4px 0 0;
}
.data-note b {
	font-weight: 600;
	color: var(--green);
}
.site-footer {
	padding-top: 42px;
	padding-bottom: 25px;
}
.credit-card {
	max-width: 560px;
	margin: auto;
	display: flex;
	gap: 17px;
	align-items: center;
	background: #f0ede7;
	border: 1px solid #e5e1d8;
	padding: 16px;
	border-radius: 15px;
	position: relative;
	overflow: hidden;
}
.credit-card img {
	border-radius: 11px;
	object-fit: cover;
	flex-shrink: 0;
}
.credit-card .eyebrow {
	font-size: 7px;
	letter-spacing: 1.5px;
	color: #8a8079;
}
.credit-card p {
	font-family: "Songti SC", "SimSun", serif;
	font-size: 16px;
	font-weight: 500;
	margin: 6px 0 8px;
}
.credit-card small {
	font-size: 9px;
	color: #82786f;
	line-height: 1.8;
	display: block;
}
.credit-card a {
	text-decoration: none;
}
.credit-flower {
	font-size: 50px;
	color: #d7cabe;
	position: absolute;
	right: -6px;
	top: -14px;
	transform: rotate(17deg);
}
.footer-links {
	display: flex;
	justify-content: space-between;
	gap: 15px;
	font-size: 9px;
	color: var(--muted);
	margin-top: 28px;
	line-height: 1.8;
}
.footer-links > div {
	display: flex;
	gap: 22px;
}
.footer-links button {
	font-size: 9px;
}
.footer-links a {
	text-decoration: none;
}
.loading {
	padding: 80px 20px;
	text-align: center;
	color: var(--muted);
}
.toast {
	position: fixed;
	bottom: 25px;
	left: 50%;
	transform: translateX(-50%);
	max-width: min(92vw, 520px);
	padding: 13px 20px;
	border-radius: 10px;
	background: var(--ink);
	color: #fff;
	font-size: 12px;
	line-height: 1.6;
	box-shadow: 0 6px 20px #0002;
	z-index: 40;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s;
}
.toast.visible {
	opacity: 1;
}
dialog {
	border: 1px solid var(--line);
	border-radius: 20px;
	padding: 28px;
	width: min(440px, 90vw);
	background: var(--white);
	color: var(--ink);
}
dialog::backdrop {
	background: #17392f66;
}
dialog h2 {
	font-size: 19px;
	margin-bottom: 14px;
}
dialog p {
	color: var(--muted);
	font-size: 13px;
	line-height: 1.9;
}
dialog .button-row {
	justify-content: flex-end;
}
details {
	font-size: 12px;
}
summary {
	cursor: pointer;
	line-height: 1.8;
}
details[open] > summary {
	margin-bottom: 16px;
}
.kana-sections {
	display: grid;
	gap: 20px;
}
.kana-rows {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}
.kana-rows .pill {
	padding: 9px 12px;
}
.kana-reference {
	margin-top: 25px;
	border-top: 1px solid var(--line);
	padding-top: 18px;
}
.kana-chart {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 6px;
	margin-top: 12px;
}
.kana-cell {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 7px;
	min-height: 67px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
}
.kana-cell span {
	font-size: 23px;
	font-family: "Yu Mincho", serif;
}
.kana-cell small {
	font-size: 9px;
	color: var(--muted);
}
.kana-tips {
	margin-top: 18px;
	display: grid;
	gap: 10px;
}
.kana-tips p {
	font-size: 11px;
	line-height: 1.9;
	color: var(--muted);
	margin: 0;
}
.kana-tips strong {
	color: var(--ink);
}
.session-wrap {
	max-width: 790px;
	margin: 38px auto 0;
}
.session-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 14px;
}
.session-header h1 {
	font-size: 13px;
	font-weight: 500;
	margin: 0;
}
.session-meta {
	font-size: 10px;
	color: var(--muted);
}
.progress-track {
	height: 4px;
	background: var(--line);
	border-radius: 9px;
	overflow: hidden;
	margin-bottom: 24px;
}
.progress-fill {
	height: 100%;
	background: var(--green);
	transition: width 0.3s;
}
.session-panel {
	padding: 34px 42px;
	min-height: 420px;
}
.exercise-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-bottom: 30px;
}
.exercise-tag {
	font-size: 10px;
	letter-spacing: 1px;
	color: var(--green);
	padding: 5px 9px;
	background: var(--mint);
	border-radius: 5px;
}
.source-label {
	font-size: 10px;
	color: var(--muted);
}
.flashcard {
	text-align: center;
	padding: 6px 0 20px;
}
.word-ja {
	font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif CJK JP", serif;
	font-size: clamp(30px, 6vw, 48px);
	font-weight: 500;
	line-height: 1.6;
	overflow-wrap: anywhere;
	letter-spacing: 1px;
	margin: 0 0 8px;
}
.word-reading {
	color: var(--muted);
	font-size: 16px;
	margin-bottom: 18px;
	line-height: 1.8;
}
.word-meaning {
	font-size: 18px;
	line-height: 1.8;
	margin-bottom: 18px;
}
.pos-tag {
	font-size: 10px;
	color: var(--muted);
	background: var(--paper);
	padding: 3px 7px;
	border-radius: 4px;
	margin-right: 8px;
}
.example {
	background: var(--paper);
	padding: 16px 20px;
	border-radius: 10px;
	margin-top: 18px;
	text-align: left;
}
.example-label {
	font-size: 9px;
	letter-spacing: 1px;
	color: var(--muted);
	display: block;
	margin-bottom: 8px;
}
.example-target {
	background: #e1ecd9;
	color: inherit;
	border-radius: 3px;
	padding: 1px 3px;
}
.example p {
	font-size: 15px;
	line-height: 1.9;
	margin: 0 0 4px;
}
.example .example-zh {
	font-size: 11px;
	color: var(--muted);
	margin: 0;
}
.example ruby rt {
	font-size: 0.55em;
	color: var(--muted);
}
.session-actions {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 24px;
}
.session-hint {
	font-size: 10px;
	line-height: 1.8;
	color: var(--muted);
	text-align: center;
	margin-top: 15px;
}
.question-instruction {
	font-size: 11px;
	color: var(--muted);
	text-align: center;
	line-height: 1.7;
}
.question-prompt {
	text-align: center;
	font-size: 27px;
	line-height: 1.7;
	overflow-wrap: anywhere;
	margin: 15px 0 25px;
	font-weight: 500;
}
.question-prompt.japanese {
	font-family: "Yu Mincho", "Noto Serif CJK JP", serif;
	font-size: 38px;
}
.choices {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}
.choice {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 11px;
	min-height: 66px;
	text-align: left;
	display: flex;
	gap: 12px;
	align-items: center;
	padding: 14px 16px;
	font-size: 15px;
	line-height: 1.6;
	overflow-wrap: anywhere;
}
.choice:hover:not(:disabled) {
	background: var(--paper);
	border-color: #99b19a;
}
.choice-number {
	font-size: 10px;
	border: 1px solid var(--line);
	border-radius: 5px;
	min-width: 21px;
	height: 23px;
	display: grid;
	place-items: center;
	color: var(--muted);
}
.choice.correct,
.choice.correct:disabled {
	opacity: 1;
	border-color: #729276;
	background: #edf4e8;
}
.choice.wrong,
.choice.wrong:disabled {
	opacity: 1;
	border-color: #cb9a86;
	background: var(--orange-soft);
}
.choice:disabled {
	opacity: 0.7;
}
.answer-feedback {
	margin-top: 20px;
	padding: 18px;
	border-radius: 12px;
	background: #edf4e8;
	font-size: 12px;
	line-height: 1.8;
}
.answer-feedback.incorrect {
	background: var(--orange-soft);
}
.answer-feedback > strong {
	display: block;
	margin-bottom: 8px;
}
.answer-detail {
	font-size: 15px;
}
.answer-detail small {
	color: var(--muted);
	font-size: 12px;
	display: block;
}
.feedback-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 14px;
}
.audio-play {
	border: 1px solid var(--line);
	background: var(--mint);
	color: var(--green);
	padding: 15px 25px;
	border-radius: 12px;
	font-size: 14px;
}
.audio-status {
	text-align: center;
	color: var(--muted);
	font-size: 10px;
	margin: 8px 0 20px;
}
.tiles-answer {
	min-height: 64px;
	border-bottom: 2px solid var(--line);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 5px;
	margin-bottom: 18px;
}
.tile-bank {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}
.tile {
	min-width: 42px;
	height: 46px;
	border: 1px solid #bdcdb8;
	background: var(--white);
	border-radius: 7px;
	font-family: "Yu Mincho", serif;
	font-size: 23px;
	padding: 3px 9px;
	box-shadow: 0 2px 0 var(--line);
}
.tile:disabled {
	visibility: hidden;
}
.tiles-answer .tile {
	background: var(--mint);
	box-shadow: none;
}
.tiles-tools {
	display: flex;
	gap: 14px;
	justify-content: center;
	margin: 13px 0 0;
}
.summary-heading {
	text-align: center;
	margin-bottom: 28px;
}
.summary-symbol {
	display: grid;
	place-items: center;
	width: 54px;
	height: 54px;
	border: 1px solid #a8bca3;
	border-radius: 50%;
	background: var(--mint);
	margin: 0 auto 18px;
	font-size: 24px;
}
.summary-heading h1 {
	font-family: "Songti SC", "SimSun", serif;
	font-size: 32px;
	font-weight: 500;
	margin: 0 0 12px;
}
.summary-heading p {
	font-size: 12px;
	color: var(--muted);
	line-height: 1.9;
	margin: 0;
}
.stats-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	margin-bottom: 20px;
}
.stat {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 13px;
	padding: 20px 12px;
	text-align: center;
}
.stat strong {
	font-size: 29px;
	font-weight: 500;
	letter-spacing: -1px;
	display: block;
	margin-bottom: 7px;
}
.stat span {
	font-size: 10px;
	color: var(--muted);
}
.summary-note {
	font-size: 11px;
	line-height: 1.8;
	color: var(--muted);
	margin: 0 0 24px;
}
.result-list {
	display: grid;
	gap: 12px;
	margin-top: 20px;
}
.result-item {
	border-top: 1px solid var(--line);
	padding-top: 14px;
	display: flex;
	gap: 15px;
	justify-content: space-between;
	align-items: center;
}
.result-item .result-word {
	font-family: "Yu Mincho", serif;
	font-size: 19px;
	line-height: 1.8;
}
.result-item small {
	font-size: 11px;
	color: var(--muted);
	display: block;
	line-height: 1.8;
}
.result-status {
	font-size: 9px;
	background: var(--orange-soft);
	border-radius: 4px;
	padding: 4px 7px;
	white-space: nowrap;
	color: var(--orange);
}
.result-status.recovered {
	background: var(--mint);
	color: var(--green);
}
.lesson-stats {
	width: 100%;
	border-collapse: collapse;
	margin-top: 15px;
	font-size: 11px;
}
.lesson-stats th,
.lesson-stats td {
	padding: 10px 7px;
	border-bottom: 1px solid var(--line);
	text-align: left;
}
.lesson-stats th {
	color: var(--muted);
	font-weight: 400;
}
.summary-actions {
	margin-top: 24px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}
.word-preview {
	max-height: 60vh;
	overflow: auto;
	margin: 15px 0;
}
.preview-item {
	padding: 10px 0;
	border-bottom: 1px solid var(--line);
	line-height: 1.8;
}
.preview-item b {
	font-size: 15px;
	font-weight: 500;
}
.preview-item small {
	font-size: 11px;
	color: var(--muted);
	display: block;
}
.error-panel {
	margin: 40px auto;
	max-width: 600px;
	text-align: center;
}
.error-panel h1 {
	font-size: 23px;
}
.error-panel p {
	font-size: 13px;
	line-height: 1.9;
	color: var(--muted);
}
.doc {
	max-width: 850px;
	line-height: 1.9;
	padding-top: 35px;
}
.doc h1 {
	font-size: 30px;
}
.doc h2 {
	font-size: 22px;
	margin: 35px 0 14px;
}
.doc h3 {
	font-size: 16px;
	margin: 25px 0 12px;
}
.doc p,
.doc li {
	font-size: 14px;
}
.doc pre {
	padding: 20px;
	background: var(--mint);
	overflow: auto;
	border-radius: 12px;
	font-size: 12px;
}
.doc table {
	border-collapse: collapse;
	font-size: 12px;
	width: 100%;
	display: block;
	overflow: auto;
}
.doc td,
.doc th {
	border: 1px solid var(--line);
	padding: 9px;
}
.doc code {
	overflow-wrap: anywhere;
}
.doc img {
	max-width: 100%;
}
.chart-label {
	font-size: 10px;
	color: var(--muted);
	margin: 20px 0 5px;
}
@media (min-width: 1400px) {
	.hero {
		padding-top: 65px;
		padding-bottom: 48px;
	}
	.wrap {
		max-width: 1220px;
	}
	.hero-art {
		margin-right: 25px;
	}
}
@media (max-width: 1000px) {
	.wrap {
		padding-inline: 25px;
	}
	.workspace {
		grid-template-columns: minmax(0, 1fr) 285px;
		gap: 16px;
	}
	.panel {
		padding: 22px;
	}
	.lesson {
		padding: 12px 8px;
	}
	.lesson-topic {
		display: none !important;
	}
	.hero {
		grid-template-columns: 1fr 250px;
	}
	.lesson-grid {
		gap: 6px;
	}
	.book-tabs button {
		padding-inline: 10px;
	}
}
@media (max-width: 760px) {
	.wrap {
		padding-inline: 20px;
	}
	.site-header {
		height: 87px;
	}
	.brand {
		font-size: 17px;
	}
	.brand-mark {
		width: 42px;
		height: 42px;
		font-size: 30px;
	}
	.brand small {
		font-size: 9px;
	}
	.hero {
		grid-template-columns: 1fr 155px;
		gap: 10px;
		padding: 35px 0 28px;
	}
	.hero h1 {
		font-size: 33px;
	}
	.hero p {
		font-size: 11px;
	}
	.hero .eyebrow {
		font-size: 8px;
		letter-spacing: 1.2px;
	}
	.hero-art {
		height: 160px;
	}
	.kana-note {
		width: 88px;
		height: 107px;
		font-size: 59px;
		border-radius: 5px;
	}
	.kana-note:after {
		font-size: 6px;
		letter-spacing: 1px;
		bottom: 7px;
		left: 8px;
	}
	.kana-note.second {
		margin-left: -28px;
	}
	.art-caption {
		font-size: 7px;
		letter-spacing: 1px;
		bottom: 2px;
	}
	.art-flower {
		font-size: 23px;
		right: -2px;
		top: 0;
	}
	.workspace {
		grid-template-columns: 1fr;
		gap: 18px;
	}
	.settings {
		position: static;
	}
	.module-nav {
		margin-bottom: 20px;
		gap: 24px;
	}
	.module-nav button {
		font-size: 13px;
		padding: 13px 0;
	}
	.panel {
		padding: 23px;
	}
	.lesson-grid {
		gap: 8px;
	}
	.lesson {
		min-height: 79px;
		padding: 13px;
	}
	.lesson .lesson-topic {
		display: block !important;
	}
	.settings .mode-choices {
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}
	.mode-option {
		padding: 13px 10px;
	}
	.setting-pair {
		grid-template-columns: 1fr 1fr;
	}
	.help-strip {
		gap: 15px;
		padding: 24px 2px;
	}
	.help-strip p {
		font-size: 10px;
	}
	.credit-card .eyebrow {
		font-size: 6px;
		letter-spacing: 1px;
	}
	.footer-links {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 7px;
	}
	.site-footer {
		padding-top: 32px;
	}
	.session-wrap {
		margin-top: 25px;
	}
	.session-panel {
		padding: 25px;
		min-height: 400px;
	}
	.stats-grid {
		gap: 8px;
	}
	.stat {
		padding: 18px 8px;
	}
	.stat strong {
		font-size: 25px;
	}
	.question-prompt {
		font-size: 24px;
	}
	.question-prompt.japanese {
		font-size: 32px;
	}
}
@media (max-width: 430px) {
	.wrap {
		padding-inline: 16px;
	}
	.hero {
		grid-template-columns: 1fr 105px;
	}
	.hero h1 {
		font-size: 30px;
		line-height: 1.5;
	}
	.hero p {
		max-width: 230px;
		font-size: 10px;
	}
	.hero-art {
		height: 140px;
	}
	.kana-note {
		width: 69px;
		height: 91px;
		font-size: 48px;
	}
	.kana-note.second {
		margin-left: -37px;
	}
	.hero .eyebrow {
		font-size: 7px;
		letter-spacing: 0.7px;
	}
	.art-caption {
		font-size: 6px;
	}
	.art-flower {
		right: -4px;
		font-size: 20px;
	}
	.panel {
		padding: 19px;
	}
	.lesson {
		padding: 12px 8px;
		min-height: 76px;
	}
	.lesson .lesson-number {
		font-size: 11px;
	}
	.lesson .lesson-count {
		font-size: 9px;
	}
	.lesson .lesson-topic {
		font-size: 9px;
	}
	.pill {
		padding: 9px 12px;
	}
	.book-tabs button {
		font-size: 11px;
		padding-inline: 10px;
	}
	.panel-title .tiny {
		font-size: 10px;
	}
	.help-strip {
		grid-template-columns: 1fr;
		gap: 13px;
	}
	.help-strip b {
		display: inline;
		margin-right: 5px;
	}
	.help-strip p {
		display: inline;
	}
	.credit-card {
		gap: 12px;
		padding: 12px;
	}
	.credit-card img {
		width: 62px;
		height: 62px;
	}
	.credit-card p {
		font-size: 14px;
	}
	.credit-card small {
		font-size: 8px;
	}
	.credit-card .eyebrow {
		font-size: 5px;
	}
	.choices {
		grid-template-columns: 1fr;
	}
	.choice {
		min-height: 57px;
		padding: 12px;
		font-size: 15px;
	}
	.stats-grid {
		grid-template-columns: 1fr 1fr;
	}
	.session-panel {
		padding: 22px 18px;
	}
	.exercise-top {
		margin-bottom: 23px;
	}
	.source-label {
		font-size: 9px;
	}
	.session-header h1 {
		font-size: 11px;
	}
	.word-meaning {
		font-size: 16px;
	}
	.example {
		padding: 14px;
	}
	.example p {
		font-size: 13px;
	}
	.session-actions .button {
		padding-inline: 13px;
	}
	.feedback-actions {
		align-items: flex-start;
	}
	.button {
		font-size: 11px;
		padding-inline: 16px;
	}
	.back-site {
		font-size: 10px;
	}
	.tile {
		min-width: 38px;
		height: 43px;
	}
	.settings .mode-choices {
		gap: 8px;
	}
	.mode-option {
		gap: 7px;
	}
	.mode-option small {
		font-size: 9px;
	}
}
@media (prefers-reduced-motion: reduce) {
	*,
	*:before,
	*:after {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}
@media print {
	.site-header,
	.site-footer,
	.summary-actions,
	.session-header .text-button,
	.toast {
		display: none;
	}
	.wrap {
		max-width: none;
		padding: 0;
	}
	.panel,
	.stat {
		break-inside: avoid;
	}
	body {
		background: white;
	}
	.summary-heading {
		margin-top: 15px;
	}
}
