#library-view .library-heading { margin-bottom: 22px; }
#library-view .home-curiosity {
  --curiosity-ink: #25483d;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(24px, 5vw, 76px);
  min-height: 304px;
  padding: 34px clamp(26px, 4vw, 64px);
  overflow: clip;
  color: var(--curiosity-ink);
  background: #faf2e3;
  border: 1px solid #e7ddca;
  border-radius: 20px;
}
#library-view .curiosity-mark {
  position: absolute;
  z-index: -1;
  inset-inline-end: 4%;
  bottom: -64px;
  color: #d8c59d;
  opacity: .28;
  font: italic 300px/1 Georgia, serif;
  pointer-events: none;
}
#library-view .curiosity-heading-line { display: flex; flex-wrap:wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
#library-view .curiosity-kicker { font-size: 15px; font-weight: 700; letter-spacing: .03em; }
#library-view .curiosity-language { padding: 4px 10px; border: 1px solid #a69a7e; border-radius: 20px; font-size: 14px; line-height: 1.5; }
#library-view .home-curiosity h2 { min-height:100px; margin: 0; white-space: pre-line; font-size: clamp(25px, 2.2vw, 32px); line-height: 1.5; font-weight: 700; letter-spacing: -.025em; overflow-wrap: anywhere; }
#library-view .curiosity-intro { margin: 14px 0 0; color: #43564a; font-size: 16px; line-height:1.6; }
#library-view .curiosity-paper {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-self: stretch;
  min-width: 0;
  padding: 24px 26px 18px;
  background: #fffcf5;
  border: 1px solid #e7ddca;
  border-radius: 15px;
  box-shadow: 0 9px 28px #57462408;
}
#library-view .curiosity-content { display: grid; align-content: center; min-width: 0; }
#library-view .curiosity-teaser { margin: 0; white-space: pre-line; font: 25px/1.5 Georgia, 'Noto Serif KR', serif; letter-spacing: -.03em; color: #657266; }
#library-view .curiosity-answer { min-width: 0; animation: curiosity-answer-in .22s ease-out; }
@keyframes curiosity-answer-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
#library-view .curiosity-expression { margin:0; font-family:inherit; font-size:clamp(28px,2.4vw,40px); font-weight:700; line-height:1.3; letter-spacing:-.015em; color:#193e36; overflow-wrap:anywhere; }
#library-view .curiosity-meaning { margin:10px 0 18px; font-size:22px; line-height:1.5; font-weight:650; color:#243e35; overflow-wrap:anywhere; }
#library-view .curiosity-reading-line { display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; margin:0 0 14px; font-size:18px; color:#354e43; line-height:1.6; }
#library-view .curiosity-reading-label { color:#526459; font-size:13px; font-weight:600; }
#library-view .curiosity-phonetics { margin:10px 0; color:#374e41; font-size:17px; line-height:1.65; overflow-wrap:anywhere; }
#library-view .curiosity-note { margin: 12px 0 20px; font-size: 14px; line-height: 1.65; color: #43564a; overflow-wrap: anywhere; }
#library-view .curiosity-audio-controls { display:flex; flex-wrap:wrap; gap:10px; margin:0 0 8px; }
#library-view .home-curiosity .curiosity-audio-controls button { min-height:46px; padding:10px 17px; font-size:16px; font-weight:650; background:#fffefb; color:#25483d; border:1px solid #9aaea1; }
#library-view .home-curiosity .curiosity-audio-controls [data-curiosity-listen] { background:#22664e; color:#fff; border-color:#22664e; }
#library-view .home-curiosity .curiosity-audio-controls [data-curiosity-listen]:hover { background:#194f3c; border-color:#194f3c; }
#library-view .curiosity-audio-status { margin:6px 0 0; color:#43564a; font-size:14px; line-height:1.6; }
#library-view .curiosity-actions { display: flex; flex-wrap:wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid #e8e1d2; }
#library-view .home-curiosity button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 9px 15px; border-radius: 9px; font: inherit; font-size: 14px; cursor: pointer; transition: background-color .18s ease, color .18s ease; }
#library-view .curiosity-reveal { color: #fff; background: #286750; border: 1px solid #286750; font-weight: 700; }
#library-view .curiosity-reveal:hover { background: #1f543f; }
#library-view .home-curiosity .curiosity-next { color: #456452; background: transparent; border: 1px solid transparent; padding-inline: 8px; }
#library-view .curiosity-next:hover { background: #f0eadc; }
#library-view .home-curiosity button:focus-visible, #library-view .home-curiosity select:focus-visible { outline: 3px solid #ac7434; outline-offset: 3px; }
#library-view .home-curiosity svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 1.75; fill: none; flex-shrink: 0; }
#library-view .curiosity-topic { margin-inline-start: auto; max-width:100%; min-height: 44px; padding: 7px 22px 7px 9px; color: #374e41; background-color: #fffdf8; border: 1px solid #a69a7e; border-radius: 8px; font: inherit; font-size: 15px; cursor: pointer; }
#library-view > .home-forest-break { margin-top: 30px; }
#library-view > .home-forest-break + .forest-footer { margin-top: 18px; }
#library-view .home-curiosity [hidden] { display: none !important; }
@media (min-width: 761px) { #library-view .curiosity-paper { min-height: 310px; } }
@media (max-width: 760px) {
  #library-view .home-curiosity { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 25px 22px 22px; min-height: 0; border-radius: 16px; }
  #library-view .curiosity-mark { font-size: 220px; bottom: -32px; }
  #library-view .curiosity-heading-line { margin-bottom: 12px; }
  #library-view .home-curiosity h2 { min-height:0; font-size: 25px; }
  #library-view .curiosity-intro { margin-top: 9px; font-size: 16px; }
  #library-view .curiosity-paper { min-height:280px; padding: 18px 18px 14px; }
  #library-view .curiosity-expression { font-size: 28px; }
  #library-view .curiosity-teaser { font-size: 23px; }
  #library-view .home-curiosity button { font-size: 15px; padding: 9px 11px; }
  #library-view .home-curiosity:not([lang='ko']):not([lang='ja']):not([lang='zh']) h2 { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) { .home-curiosity button { transition: none; } .curiosity-answer { animation: none; } }
body[data-theme='dark'] .home-curiosity, [data-theme='dark'] .home-curiosity { --curiosity-ink: #e5ecd9; background: #292e25; border-color: #47513e; }
[data-theme='dark'] .curiosity-paper, [data-theme='dark'] .curiosity-topic { background: #343a2e; border-color: #535d46; color: #e5ecd9; }
[data-theme='dark'] .curiosity-intro, [data-theme='dark'] .curiosity-teaser, [data-theme='dark'] .curiosity-note, [data-theme='dark'] .curiosity-reading-line, [data-theme='dark'] .home-curiosity .curiosity-next { color: #c2ccba; }
[data-theme='dark'] .curiosity-audio-status, [data-theme='dark'] .curiosity-phonetics, [data-theme='dark'] .curiosity-reading-label { color:#e5ecd9; }
[data-theme='dark'] .curiosity-audio-controls button { background:#343a2e; color:#e5ecd9; border-color:#a4b6a7; }
#library-view [data-theme='dark'] .curiosity-expression, [data-theme='dark'] #library-view .curiosity-expression,
[data-theme='dark'] #library-view .curiosity-meaning { color:#e5ecd9; }
[data-theme='dark'] #library-view .curiosity-reading-line { color:#c2ccba; }
[data-theme='dark'] #library-view .home-curiosity .curiosity-audio-controls button { background:#343a2e; color:#e5ecd9; border-color:#91a188; }
[data-theme='dark'] #library-view .home-curiosity .curiosity-audio-controls [data-curiosity-listen] { background:#22664e; color:#fff; }
