/* css/reading.css — styles for the reading view (.rd-*) */
.rd-root { padding: 6px 10px 22px; color: var(--ink); font-size: 19px; line-height: 1.6; user-select: text; -webkit-user-select: text; }
.rd-head { text-align: center; margin-bottom: 6px; }
.rd-meta { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
.rd-chip { padding: 2px 14px; border-radius: 16px; font-size: 17px; font-weight: 800; border: 2px solid var(--gold); color: var(--ink); background: rgba(255, 255, 255, .6); line-height: 1.5; }
.rd-chip-cat { background: rgba(246, 182, 207, .45); }
.rd-badge { background: linear-gradient(180deg, #ffe9a8, #f0c070); color: var(--plum); border-color: var(--gold-d); }
.rd-date { font-size: 17px; color: var(--ink-soft); font-weight: 700; }
.rd-question { margin-top: 8px; font-size: 20px; font-weight: 800; color: var(--ink); word-break: break-word; }
.rd-q-empty { color: var(--ink-soft); font-weight: 600; }
.rd-title { margin: 10px 0 12px; text-align: center; font-size: 25px; line-height: 1.35; font-weight: 900; color: var(--ink); text-shadow: none; }
.rd-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 14px; margin: 6px 0 16px; }
.rd-card { width: 104px; padding: 6px 4px 8px; border: 0; border-radius: 16px; background: transparent; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; color: var(--ink); transition: transform .15s, background .2s; }
.rd-card:hover, .rd-card.kfocus { transform: translateY(-3px) scale(1.04); background: rgba(246, 182, 207, .3); box-shadow: 0 0 0 3px var(--gold); }
.rd-card:active { transform: scale(.95); }
.rd-card .tcard { margin-bottom: 4px; }
.rd-card-pos { font-size: 17px; font-weight: 800; color: var(--ink-soft); line-height: 1.3; }
.rd-card-name { font-size: 17px; font-weight: 900; line-height: 1.3; }
.rd-card-ori { font-size: 17px; font-weight: 800; color: var(--lav-d); }
.rd-card-ori.rev { color: var(--pink-d); }
.rd-cardtexts { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.rd-cardtext { padding: 10px 16px 12px; border-radius: 16px; background: rgba(255, 255, 255, .55); border: 1px solid rgba(233, 201, 138, .8); }
.rd-cardtext-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin-bottom: 4px; }
.rd-ct-pos { font-size: 17px; font-weight: 800; color: var(--ink-soft); }
.rd-ct-name { font-size: 21px; font-weight: 900; color: var(--ink); }
.rd-ct-ori { font-size: 17px; font-weight: 800; color: var(--lav-d); }
.rd-ct-ori.rev { color: var(--pink-d); }
.rd-p { margin: 0; font-size: 19px; line-height: 1.6; color: var(--ink); }
.rd-sec { margin: 12px 0; padding: 12px 18px 14px; border-radius: 16px; border: 1.5px solid var(--gold); background: linear-gradient(160deg, rgba(255, 250, 244, .95), rgba(255, 228, 240, .75) 60%, rgba(236, 226, 255, .7)); box-shadow: 0 2px 8px rgba(185, 141, 67, .18); }
.rd-sec-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.rd-sym { font-size: 24px; color: var(--gold-d); line-height: 1; }
.rd-sec-title { font-size: 23px; font-weight: 900; color: var(--ink); }
.rd-sec-core { background: linear-gradient(160deg, #fff6e0, #ffe3ee 60%, #efe3ff); border-color: var(--gold-d); }
.rd-over { background: linear-gradient(160deg, rgba(240, 232, 255, .9), rgba(255, 247, 238, .9)); }
.rd-obs { margin: 4px 0 0; padding-left: 4px; list-style: none; }
.rd-obs li { position: relative; padding-left: 26px; margin: 6px 0; font-size: 19px; line-height: 1.6; }
.rd-obs li::before { content: "✧"; position: absolute; left: 2px; top: 0; color: var(--gold-d); }
.rd-closing { margin: 16px 8px 4px; text-align: center; font-style: italic; font-size: 20px; line-height: 1.6; color: var(--ink-soft); }

/* entrance animation */
.rd-animate .rd-card { animation: rdPop .45s cubic-bezier(.3, 1.6, .5, 1) both; }
.rd-animate .rd-in { opacity: 0; animation: rdSlide .55s ease-out both; }
.rd-animate .rd-title { animation: rdSlide .5s ease-out both; }
@keyframes rdPop { from { opacity: 0; transform: scale(.6) translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes rdSlide { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
