/* 타임머신! 1844 두꺼비 골목의 28인 — 디자인 (작은 돈, 큰 신뢰 디자인을 바탕으로 함, 세피아·양피지 결) */
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: "Pretendard", "Malgun Gothic", sans-serif; color: #2E1B0E; background: #EADCC0; background-image: radial-gradient(circle at 20% 10%, #F3E8D2 0, transparent 50%), radial-gradient(circle at 80% 90%, #E2D0AE 0, transparent 50%); word-break: keep-all; -webkit-text-size-adjust: 100%; }
button, input { font: inherit; }
a { color: inherit; }

.rd-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 760px; margin: 0 auto; padding: 14px 20px; }
.rd-top .home { font-size: 14px; font-weight: 700; color: #6B4A30; text-decoration: none; }
.rd-top .logo { font-size: 15px; font-weight: 900; text-decoration: none; }
.rd-top .logo span { color: #9C4A2A; }
.rd-main { max-width: 680px; margin: 0 auto 48px; padding: 0 16px; }
.rd-main > section { background: #FBF5E8; border-radius: 28px; padding: 34px 26px; box-shadow: 0 10px 30px rgba(74,44,23,.12); border: 1px solid #E2CFA8; }
.rd-foot { text-align: center; padding: 0 16px 36px; font-size: 13px; color: #8A7258; }
.rd-foot b { color: #6B4A30; }

.rd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1.5px solid #D8C29A; background: #fff; color: #4A2C17; font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none; transition: transform .12s, background .15s, border-color .15s; }
.rd-btn:hover { border-color: #9C4A2A; }
.rd-btn:active { transform: scale(.98); }
.rd-btn:disabled { opacity: .6; cursor: default; }
.rd-btn.pri { background: #7A3E1D; border-color: #7A3E1D; color: #FBF5E8; }
.rd-btn.pri:hover { background: #5E2F15; border-color: #5E2F15; }
.rd-btn.big { min-height: 56px; padding: 0 30px; font-size: 17px; }
.rd-btn.sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
.rd-btn.danger { color: #B91C1C; border-color: #FCA5A5; }
.rd-btn.danger:hover { background: #FEF2F2; border-color: #DC2626; }
.rd-btn:focus-visible, .rd-opt:focus-visible, .rd-input:focus-visible { outline: 3px solid #D9A441; outline-offset: 2px; }
.rd-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.rd-muted { color: #8A7258; font-size: 14px; }
.rd-toast { min-height: 20px; margin: 10px 0 0; text-align: center; font-size: 14px; font-weight: 700; color: #166534; }
.rd-eye { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .1em; color: #9C6B3E; }

/* 시작 */
.rd-start { text-align: center; }
.rd-series { display: inline-block; margin: 0 0 10px; padding: 5px 14px; border-radius: 999px; background: #4A2C17; color: #F3E6CC; font-size: 13px; font-weight: 800; letter-spacing: .02em; }
.rd-logo { margin: 12px 0 0; font-size: 38px; font-weight: 900; line-height: 1.2; letter-spacing: -.02em; color: #2E1B0E; }
.rd-logo span { color: #9C4A2A; }
.rd-logo small { display: block; margin-top: 10px; font-size: 11px; font-weight: 800; letter-spacing: .14em; color: #9C6B3E; }
.rd-logo small.pre { margin: 0 0 4px; font-size: 22px; letter-spacing: 0; color: #7A3E1D; }
.rd-ask { margin: 18px 0 0; font-size: 17px; line-height: 1.65; color: #4A2C17; }
.rd-ask b { font-size: 20px; color: #2E1B0E; }
.rd-claim { margin: 14px auto 0; max-width: 480px; padding: 10px 14px; border-radius: 14px; background: #F6EBD3; border: 1px dashed #9C6B3E; font-size: 14px; font-weight: 700; line-height: 1.6; color: #5E2F15; }
.rd-theory { margin: 18px 0 0; padding: 14px 16px; border-radius: 18px; background: linear-gradient(135deg, #F8EFDC, #EEDDBA); border: 1.5px solid #C9A877; }
.rd-theory b { display: block; font-size: 15px; font-weight: 800; line-height: 1.55; color: #4A2C17; }
.rd-theory b i { font-style: normal; margin-right: 4px; }
.rd-theory b span { color: #7A3E1D; }
.rd-theory small { display: block; margin-top: 6px; font-size: 13px; color: #8A7258; }
.rd-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 22px; text-align: left; }
.rd-mode { display: flex; flex-direction: column; gap: 10px; padding: 20px 18px; border-radius: 20px; border: 1.5px solid #E2CFA8; background: #FFFCF4; }
.rd-mode.tog { background: #F0F9FF; border-color: #BAE6FD; }
.rd-mode .t { font-size: 18px; font-weight: 900; }
.rd-mode p { margin: 0; font-size: 14px; line-height: 1.6; color: #4A3A2C; }
.rd-mode .rd-btn { margin-top: auto; width: 100%; }
.rd-price { display: inline-block; margin: 0; padding: 6px 10px; border-radius: 10px; background: #FEF3C7; color: #92400E !important; font-size: 12px !important; font-weight: 700; line-height: 1.5; }
.rd-price.big { display: block; margin: 12px 0 0; font-size: 14px !important; text-align: center; }
.rd-gbanner { margin-top: 22px; padding: 20px; border-radius: 20px; background: #F0F9FF; border: 1.5px solid #BAE6FD; font-size: 16px; line-height: 1.6; }
.rd-gbanner span { display: block; font-size: 13px; font-weight: 800; color: #0369A1; margin-bottom: 4px; }
.rd-gbanner p { margin: 6px 0 14px; font-size: 14px; color: #4A3A2C; }
.rd-gbanner.closed { background: #F1F5F9; border-color: #CBD5E1; }
.rd-note { margin: 18px 0 0; font-size: 12px; line-height: 1.6; color: #9C8A74; }

/* 역사 배지 (일반 인장 그림) */
.rd-badge { display: inline-flex; align-items: center; gap: 10px; margin: 8px auto 0; padding: 7px 18px 7px 8px; border-radius: 999px; background: linear-gradient(135deg, #F8EFDC, #EAD7B2); border: 2px solid #9C6B3E; box-shadow: 0 6px 16px rgba(74,44,23,.15); text-align: left; }
.rd-badge svg { width: 46px; height: 46px; flex: none; filter: drop-shadow(0 3px 4px rgba(46,27,14,.25)); }
.rd-badge .tx b { display: block; font-size: 16px; font-weight: 900; color: #4A2C17; line-height: 1.25; }
.rd-badge .tx small { display: block; font-size: 11px; font-weight: 700; color: #8A5A2B; font-family: Georgia, serif; }
.rd-badge.big svg { width: 60px; height: 60px; animation: rdTilt 3.2s ease-in-out infinite; }
.rd-badge.big .tx b { font-size: 18px; }
.rd-badge.sm { margin: 0 auto 14px; padding: 5px 14px 5px 6px; }
.rd-badge.sm svg { width: 34px; height: 34px; }
.rd-badge.sm .tx b { font-size: 13px; } .rd-badge.sm .tx small { font-size: 10px; }
@keyframes rdTilt { 0%,100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }

/* 삽화 */
.rd-artbox { position: relative; margin: 16px auto 0; border-radius: 14px; overflow: hidden; box-shadow: 0 6px 18px rgba(46,27,14,.18); line-height: 0; }
.rd-art { display: block; width: 100%; height: auto; aspect-ratio: 320 / 200; }
.rd-artbox.gray .rd-art { filter: grayscale(.85) contrast(.9) brightness(.85); }
.rd-stamp { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-12deg); padding: 6px 16px; border: 4px double #B42318; border-radius: 8px; color: #B42318; background: rgba(251,245,232,.75); font: 900 28px/1.1 Georgia, serif; letter-spacing: .08em; }

/* 소개 */
.rd-start-ab, .rd-about { margin-top: 20px; border-radius: 18px; border: 1.5px solid #E2CFA8; background: #FFFCF4; text-align: left; }
.rd-start-ab summary, .rd-about summary { list-style: none; position: relative; display: block; padding: 16px 48px 16px 18px; cursor: pointer; font-size: 16px; font-weight: 800; color: #4A2C17; }
.rd-start-ab summary::-webkit-details-marker, .rd-about summary::-webkit-details-marker { display: none; }
.rd-start-ab summary span { display: block; margin-top: 4px; font-size: 13px; font-weight: 500; color: #8A7258; }
.rd-start-ab summary::after, .rd-about summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; border-right: 2.5px solid #9C6B3E; border-bottom: 2.5px solid #9C6B3E; transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.rd-start-ab[open] summary::after, .rd-about[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.rd-start-ab[open] summary, .rd-about[open] summary { border-bottom: 1px solid #E2CFA8; }
.rd-start-ab > :not(summary), .rd-about > :not(summary) { margin-left: 22px !important; margin-right: 22px !important; }
.rd-start-ab > :last-child, .rd-about > :last-child { margin-bottom: 18px; }
.rd-start-ab p, .rd-about p { font-size: 15px; line-height: 1.85; color: #3B2A1C; margin: 14px 0 0; overflow-wrap: break-word; }
.rd-ab-lead { padding: 12px 14px; border-radius: 12px; background: #F6EBD3; font-weight: 800; color: #5E2F15 !important; margin-top: 16px !important; }
.rd-start-ab h3, .rd-about h3 { margin: 26px 0 12px; font-size: 17px; font-weight: 800; }
.rd-ab-sub { font-size: 14px !important; color: #6B5A48 !important; }
.rd-how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rd-how li { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 12px; background: #F6EBD3; border: 1px solid #E2CFA8; }
.rd-how i { font-style: normal; font-size: 22px; }
.rd-how b { color: #7A3E1D; font-size: 15px; }
.rd-how span { font-size: 14px; line-height: 1.6; }
.rd-uses { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rd-uses li { padding: 12px; border-radius: 12px; background: #F0FDF4; display: flex; flex-direction: column; gap: 4px; }
.rd-uses b { color: #166534; font-size: 15px; }
.rd-uses span { font-size: 14px; line-height: 1.6; }
.rd-caution { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: #FEF3C7; border: 1px solid #FDE68A; }
.rd-caution b { color: #92400E; }
.rd-caution ul { margin: 6px 0 0; padding-left: 18px; font-size: 14px; line-height: 1.7; color: #78350F; }
.rd-start-ab.rd-must { margin: 20px 0 0; border: 2px solid #7A3E1D; background: #FBF1DD; box-shadow: 0 6px 16px rgba(122,62,29,.12); }
.rd-must > summary { text-align: center; padding: 16px 44px; }
.rd-must > summary b { display: block; font-size: 19px; font-weight: 900; color: #5E2F15; }
.rd-must:not([open]) > summary { animation: rdPulse 2.4s ease-in-out infinite; border-radius: 18px; }
.rd-mustnote { margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: #FEF3C7; color: #92400E; font-size: 14px; font-weight: 700; line-height: 1.6; text-align: left; }
@keyframes rdPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(122,62,29,0); } 50% { box-shadow: 0 0 0 6px rgba(122,62,29,.15); } }

/* 장면 */
.rd-play { text-align: left; }
.rd-gtag { display: inline-block; margin: 0 0 12px; padding: 4px 12px; border-radius: 999px; background: #E0F2FE; color: #0369A1; font-size: 13px; font-weight: 800; }
.rd-prog { height: 8px; border-radius: 4px; background: #EADCC0; overflow: hidden; }
.rd-prog i { display: block; height: 100%; background: linear-gradient(90deg, #C9A06A, #7A3E1D); transition: width .3s; }
.rd-meter { display: flex; justify-content: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.rd-meter span { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 800; }
.rd-meter .r { background: #F3E0D6; color: #7A3E1D; }
.rd-meter .c { background: #EFE3C6; color: #4A2C17; }
.rd-meter b { font-size: 18px; font-weight: 900; margin: 0 2px; }
.rd-qn { margin: 22px 0 10px; font-size: 13px; font-weight: 800; color: #9C6B3E; text-align: center; }
.rd-card { position: relative; margin-top: 16px; padding: 28px 20px 22px; border-radius: 22px; background: linear-gradient(160deg, #FBF3E2, #F0E1C2); border: 1.5px solid #D8C29A; box-shadow: 0 8px 20px rgba(74,44,23,.08); animation: rdIn .35s ease; text-align: center; }
.rd-card .rd-artbox { margin-top: 6px; }
.rd-card h2 { margin: 14px 0 0; font-size: 21px; line-height: 1.45; font-weight: 900; }
.rd-card p { margin: 10px 0 0; font-size: 16px; line-height: 1.75; color: #3B2A1C; text-align: left; }
.rd-card.end { margin: 0 0 22px; }
.rd-card-tag, .rd-story-tag { position: absolute; top: -12px; left: 18px; padding: 4px 12px; border-radius: 999px; background: #7A3E1D; color: #FBF5E8; font-size: 12px; font-weight: 800; }
.rd-card-tag.sm { top: -11px; font-size: 11px; }
.rd-year { position: absolute; top: -12px; right: 18px; padding: 4px 12px; border-radius: 999px; background: #2E1B0E; color: #F6C76B; font: 800 12px Georgia, "Pretendard", serif; letter-spacing: .04em; }

/* 대사 말풍선 */
.rd-talk { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.rd-bub { display: flex; align-items: flex-start; gap: 10px; opacity: 0; animation: rdPop .4s ease forwards; animation-delay: var(--d, 0s); }
.rd-bub .av { flex: none; width: 44px; height: 44px; border-radius: 50%; background: #EFE3C6; border: 2px solid #C9A877; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.rd-bub .bx { position: relative; flex: 1; min-width: 0; padding: 10px 14px 12px; border-radius: 4px 18px 18px 18px; background: #fff; border: 1.5px solid #E2CFA8; }
.rd-bub .who { display: block; font-size: 13px; font-weight: 900; color: #4A2C17; }
.rd-bub .who em { font-style: normal; margin-left: 4px; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 800; vertical-align: 1px; }
.rd-bub .who em.real { background: #FDE7D7; color: #9C4A2A; }
.rd-bub .who em.fic { background: #EEE8DD; color: #6B5A48; }
.rd-bub .who small { display: block; font-size: 11px; font-weight: 600; color: #9C8A74; }
.rd-bub p { margin: 4px 0 0; font-size: 15px; line-height: 1.65; color: #2E1B0E; }
.rd-bub.me { flex-direction: row-reverse; }
.rd-bub.me .bx { border-radius: 18px 4px 18px 18px; background: #7A3E1D; border-color: #7A3E1D; }
.rd-bub.me .who { color: #F6C76B; text-align: right; }
.rd-bub.me p { color: #FBF5E8; font-weight: 700; }
.rd-bub.me .av { background: #F6C76B; border-color: #7A3E1D; }
.rd-bub.now { animation-delay: 0s; }
.rd-answer { opacity: 0; animation: rdPop .4s ease forwards; animation-delay: var(--d, 0s); }
.rd-ask2 { margin: 20px 0 0; font-size: 16px; font-weight: 900; color: #5E2F15; text-align: center; }
.rd-opts { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rd-opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 14px 16px; border-radius: 16px; border: 1.5px solid #D8C29A; background: #FFFCF4; text-align: left; font-size: 16px; font-weight: 600; line-height: 1.5; color: #2E1B0E; cursor: pointer; transition: border-color .15s, background .15s; }
.rd-opt i { flex: none; width: 30px; height: 30px; border-radius: 50%; background: #EFE3C6; color: #7A3E1D; font: 900 15px/30px Georgia, serif; font-style: normal; text-align: center; }
.rd-opt:hover:not(:disabled) { border-color: #9C4A2A; background: #FBF1DD; }
.rd-fic { margin: 16px 0 0; font-size: 12px; color: #9C8A74; text-align: center; }

.rd-pickres { position: relative; margin-top: 20px; padding: 22px 18px 16px; border-radius: 20px; background: #FFFCF4; border: 1.5px solid #E2CFA8; animation: rdIn .3s ease; }
.rd-pickres p { margin: 0; font-size: 15px; line-height: 1.75; color: #3B2A1C; }
.rd-got { margin-top: 16px; padding: 14px 16px; border-radius: 18px; background: linear-gradient(135deg, #FFF6DB, #F6E4B5); border: 1.5px solid #D9A441; animation: rdPop .45s ease; }
.rd-got > p { margin: 0 0 8px; font-size: 15px; font-weight: 900; color: #7A3E1D; }
.rd-pcards { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rd-pcards.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 12px; }
.rd-pcard { display: flex; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #fff; border: 1.5px solid #E2CFA8; }
.rd-pcard i { flex: none; font-style: normal; font-size: 26px; line-height: 1.1; }
.rd-pcard b { display: block; font-size: 15px; font-weight: 900; color: #5E2F15; }
.rd-pcard span { display: block; font-size: 13px; line-height: 1.55; color: #3B2A1C; }
.rd-pcard small { display: block; margin-top: 6px; padding-top: 6px; border-top: 1px dashed #D8C29A; font-size: 12px; line-height: 1.55; color: #0F5132; font-weight: 700; }
.rd-pcard.big { background: linear-gradient(170deg, #FFFCF4, #F6EBD3); box-shadow: 0 3px 8px rgba(74,44,23,.08); }

.rd-story, .rd-why { position: relative; margin-top: 26px; padding: 26px 20px 20px; border-radius: 20px; background: #F2F0E6; border: 1.5px solid #B9AE8E; animation: rdIn .4s ease; }
.rd-story-tag { background: #2E1B0E; color: #F3E6CC; }
.rd-story-tag.inl { position: static; display: inline-block; margin: 0 0 4px; }
.rd-story h3, .rd-why h3 { margin: 0; font-size: 18px; font-weight: 900; color: #2E1B0E; }
.rd-story p, .rd-why p { margin: 8px 0 0; font-size: 15px; line-height: 1.8; color: #2B2218; }

/* 📷 사진 · 옛 그림 */
.rd-hist { position: relative; margin: 22px 0 0; padding: 12px 12px 14px; border-radius: 18px; background: #2E1B0E; color: #F3E6CC; }
.rd-hist[hidden] { display: none; }
.rd-hist-tag { display: inline-block; margin: 0 0 8px; padding: 3px 10px; border-radius: 999px; background: #F3E6CC; color: #2E1B0E; font-size: 12px; font-weight: 800; }
.rd-hist img { display: block; width: 100%; height: auto; border-radius: 10px; background: #4A2C17; filter: sepia(.25); }
.rd-hist figcaption { margin-top: 10px; font-size: 14px; line-height: 1.65; }
.rd-hist figcaption small { display: block; margin-top: 4px; font-size: 12px; line-height: 1.5; color: #CDB891; }
.rd-hist figcaption a { color: #F6C76B; }
/* 📷 사진 2장: 넓은 화면에서는 나란히, 640px 이하에서는 위아래 */
.rd-hists { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; margin-top: 22px; }
.rd-hists .rd-hist { margin: 0; min-width: 0; }
.rd-hist[hidden] { display: none; }
.rd-hist figcaption { overflow-wrap: anywhere; word-break: keep-all; }
@media (max-width: 640px) { .rd-hists { grid-template-columns: 1fr; gap: 14px; } }

/* 실패 엔딩 */
.rd-fcard { position: relative; margin-top: 20px; padding: 28px 20px 22px; border-radius: 22px; background: linear-gradient(160deg, #3B2A1F, #241710); color: #F3E6CC; text-align: center; animation: rdShake .45s ease; }
.rd-fcard .rd-card-tag { background: #B42318; }
.rd-fcard .e { display: block; margin-top: 14px; font-size: 44px; line-height: 1.1; }
.rd-fcard h2 { margin: 6px 0 0; font-size: 23px; font-weight: 900; color: #F6C76B; }
.rd-fcard p { margin: 10px 0 0; font-size: 15px; line-height: 1.8; text-align: left; color: #EADCC0; }
.rd-why { background: #FBF1DD; border-color: #C9A877; }
.rd-rewnote { margin: 18px 0 0; text-align: center; font-size: 14px; color: #7A3E1D; font-weight: 700; }
.rd-rewnote b { font-size: 17px; }

.rd-busy { text-align: center; padding: 70px 20px !important; }
.rd-busy p { margin: 16px 0 0; font-size: 18px; font-weight: 700; color: #4A2C17; }
.rd-spin { font-size: 64px; animation: rdSpin 1s linear infinite; display: inline-block; }

/* 결과 */
.rd-res { text-align: center; }
.rd-shared { display: inline-block; margin: 0 0 10px; padding: 4px 12px; border-radius: 999px; background: #FEF3C7; color: #92400E; font-size: 13px; font-weight: 700; }
.rd-type .e { display: block; font-size: 56px; line-height: 1.15; margin-top: 8px; }
.rd-type h1 { margin: 8px 0 0; font-size: 30px; font-weight: 900; color: var(--tc); }
.rd-type p { margin: 6px 0 0; font-size: 16px; font-weight: 700; color: #6B5A48; }
.rd-kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.rd-kpi div { padding: 14px 6px; border-radius: 18px; background: #F3E6CC; text-align: center; }
.rd-kpi span { display: block; font-size: 13px; font-weight: 800; color: #7A3E1D; }
.rd-kpi b { display: block; font-size: 28px; font-weight: 900; color: #2E1B0E; }
.rd-kpi b em { font-style: normal; font-size: 16px; color: #8A7258; }
.rd-kpi small { font-size: 12px; color: #8A7258; }
.rd-desc { margin: 16px 0 0; font-size: 16px; line-height: 1.75; color: #3B2A1C; text-align: left; }
.rd-cardbox { margin-top: 20px; padding: 20px 18px; border-radius: 20px; border: 1px solid #E2CFA8; background: #FFFCF4; text-align: left; }
.rd-cardbox.center { text-align: center; }
.rd-cardbox h2 { margin: 0 0 10px; font-size: 17px; font-weight: 800; }
.rd-cardbox p { margin: 8px 0 0; font-size: 15px; line-height: 1.7; color: #3B2A1C; }
.rd-cardbox.gift { background: #F6EBD3; border-color: #D8C29A; }
.rd-journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rd-journey li { padding: 10px; border-radius: 12px; background: #F0FDF4; border: 1px solid #BBF7D0; }
.rd-journey li.no { background: #FDF0E8; border-color: #F2C3A8; }
.rd-journey small { display: block; font-size: 11px; font-weight: 800; color: #9C6B3E; }
.rd-journey b { display: block; margin-top: 2px; font-size: 13px; line-height: 1.45; }
.rd-journey span { display: block; margin-top: 4px; font-size: 12px; font-weight: 800; color: #166534; }
.rd-journey li.no span { color: #9C4A2A; }
.rd-tl { list-style: none; margin: 8px 0 0; padding: 0 0 0 4px; position: relative; }
.rd-tl::before { content: ""; position: absolute; left: 31px; top: 8px; bottom: 8px; width: 2px; background: #C9A877; }
.rd-tl li { position: relative; display: flex; gap: 12px; padding: 8px 0; }
.rd-tl .y { position: relative; z-index: 1; flex: none; width: 56px; height: 30px; border-radius: 999px; background: #2E1B0E; color: #F6C76B; font: 900 13px/30px Georgia, "Pretendard", serif; text-align: center; }
.rd-tl b { display: block; font-size: 15px; font-weight: 900; color: #4A2C17; padding-top: 4px; }
.rd-tl p { margin: 2px 0 0 !important; font-size: 14px !important; line-height: 1.65 !important; }
.rd-lesson { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.rd-lesson li { display: flex; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #fff; }
.rd-lesson i { font-style: normal; font-size: 22px; flex: none; }
.rd-lesson b { display: block; font-size: 15px; color: #7A3E1D; }
.rd-lesson span { display: block; font-size: 14px; line-height: 1.6; color: #3B2A1C; }
.rd-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.rd-links span { font-size: 13px; font-weight: 800; color: #6B4A30; margin-right: 4px; }
.rd-links a { padding: 8px 14px; border-radius: 999px; background: #FFFCF4; border: 1px solid #D8C29A; color: #7A3E1D; font-size: 14px; font-weight: 700; text-decoration: none; }
.rd-refnote { margin: 18px 0 0; padding: 10px 14px; border-radius: 12px; background: #FEF3C7; font-size: 14px; font-weight: 700; color: #92400E; }

/* 함께하기 · 모임 결과 */
.rd-title { margin: 6px 0 0; font-size: 26px; font-weight: 900; line-height: 1.35; }
.rd-howto { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 10px; }
.rd-howto li { counter-increment: s; position: relative; padding: 12px 14px 12px 48px; border-radius: 14px; background: #FFFCF4; font-size: 14px; line-height: 1.6; color: #4A3A2C; }
.rd-howto li::before { content: counter(s); position: absolute; left: 14px; top: 12px; width: 24px; height: 24px; border-radius: 50%; background: #7A3E1D; color: #fff; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.rd-howto b { display: block; color: #2E1B0E; font-size: 15px; }
.rd-label { display: block; margin: 4px 0 6px; font-size: 14px; font-weight: 700; color: #4A3A2C; }
.rd-input { width: 100%; min-height: 50px; padding: 0 14px; border-radius: 14px; border: 1.5px solid #D8C29A; background: #FFFCF4; font-size: 16px; }
.rd-glist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rd-glist li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 14px; background: #FFFCF4; border: 1px solid #E2CFA8; }
.rd-glist b { display: block; font-size: 15px; }
.rd-glist small { font-size: 13px; color: #8A7258; }
.rd-glist em { font-style: normal; color: #B91C1C; }
.rd-glist .act { display: flex; gap: 6px; }
.rd-gmeta { margin: 8px 0 0; font-size: 15px; color: #6B5A48; }
.rd-gmeta b { color: #7A3E1D; font-size: 18px; }
.rd-wait { font-size: 40px; margin: 0 !important; }
.rd-big { font-size: 64px !important; font-weight: 900; color: #7A3E1D !important; margin: 4px 0 0 !important; line-height: 1.1 !important; }
.rd-big small { font-size: 26px; }
.rd-tdist { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rd-tdist li { display: grid; grid-template-columns: 190px 1fr 44px; align-items: center; gap: 10px; font-size: 14px; }
.rd-tdist.q li { grid-template-columns: 1fr 110px 44px; }
.rd-tdist .n { font-weight: 700; color: #4A3A2C; line-height: 1.45; }
.rd-tdist li.me .n { color: #9C4A2A; font-weight: 900; }
.rd-tdist .b { height: 12px; border-radius: 6px; background: #EFE6D4; overflow: hidden; }
.rd-tdist .b i { display: block; height: 100%; border-radius: 6px; }
.rd-tdist b { text-align: right; font-weight: 800; }
.rd-worst { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: #FDF0E8; border: 1px solid #F2C3A8; }
.rd-worst b { display: block; font-size: 15px; color: #7A3E1D; }
.rd-worst span { display: block; font-size: 13px; color: #9C4A2A; font-weight: 700; }
.rd-worst p { font-size: 14px !important; }
.rd-talkq { margin: 6px 0 0; padding-left: 20px; font-size: 15px; line-height: 1.8; color: #3B2A1C; }

@keyframes rdIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes rdPop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes rdShake { 0%,100% { transform: none; } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(3px); } }
@keyframes rdSpin { to { transform: rotate(-360deg); } }
@media (prefers-reduced-motion: reduce) {
	.rd-card, .rd-story, .rd-why, .rd-pickres, .rd-got, .rd-fcard, .rd-spin, .rd-badge.big svg, .rd-must > summary { animation: none !important; }
	.rd-bub, .rd-answer { animation: none !important; opacity: 1 !important; }
}

@media (max-width: 520px) {
	.rd-main { padding: 0 10px; }
	.rd-main > section { padding: 26px 16px; border-radius: 22px; }
	.rd-logo { font-size: 31px; }
	.rd-logo small.pre { font-size: 19px; }
	.rd-modes, .rd-uses, .rd-how, .rd-pcards.grid { grid-template-columns: 1fr; }
	.rd-journey { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rd-card { padding: 26px 14px 18px; }
	.rd-card h2 { font-size: 19px; }
	.rd-card p { font-size: 15px; }
	.rd-bub .av { width: 38px; height: 38px; font-size: 20px; }
	.rd-bub p { font-size: 14px; }
	.rd-opt { font-size: 15px; padding: 12px 14px; }
	.rd-type h1 { font-size: 25px; }
	.rd-kpi b { font-size: 22px; }
	.rd-kpi span { font-size: 12px; }
	.rd-tdist li { grid-template-columns: 130px 1fr 38px; font-size: 13px; }
	.rd-tdist.q li { grid-template-columns: 1fr 60px 40px; }
	.rd-badge .tx b { font-size: 14px; } .rd-badge.big .tx b { font-size: 15px; }
	.rd-stamp { font-size: 22px; }
	.rd-row .rd-btn { flex: 1 1 100%; }
	.rd-start-ab > :not(summary), .rd-about > :not(summary) { margin-left: 16px !important; margin-right: 16px !important; }
}

/* 0.2.0 🔊 BGM 버튼 (헤더 오른쪽) */
.rd-top .rd-bgm { flex: none; display: inline-flex; }
.rd-top .rd-bgm .hcst-tg { background: #FFFCF4; border-color: #C9A877; color: #4A2C17; }
.rd-play [hidden] { display: none !important; }
.rd-after { animation: rdPop .35s ease; }
@media (max-width: 420px) {
	.rd-top { gap: 8px; padding: 12px 14px; }
	.rd-top .home { font-size: 13px; }
	.rd-top .logo { font-size: 14px; }
	.rd-top .rd-bgm .hcst-tg { min-height: 32px; padding: 0 10px; font-size: 12px; }
}
@media (max-width: 340px) { .rd-top .logo { display: none; } }

/* 0.3.0 💬 대화 장면 (공통 엔진 .hcvn 위에 로치데일 색만 얹음) */
.rd-vtitle { margin: 4px 0 12px; font-size: 21px; line-height: 1.4; font-weight: 900; text-align: center; color: #2E1B0E; }
.rd-vtitle.fail { color: #B42318; }
.rd-play .rd-qn { text-align: center; }
.rd-vn { margin-top: 6px; }
.rd-vn .hcvn { background: #2E1B0E; box-shadow: 0 10px 26px rgba(46,27,14,.28); }
.rd-vn .hcvn-bg .rd-art { width: 100%; height: 100%; aspect-ratio: auto; }
.rd-vn .hcvn-bg > svg { filter: saturate(.9) brightness(.94); }
.rd-vn .hcvn-box { border-color: #7A3E1D; background: rgba(251, 245, 232, .97); }
.rd-vn .hcvn-name { background: #7A3E1D; border-color: #F6C76B; }
.rd-vn.dark .hcvn { background: #140C07; }
.rd-vn.dark .hcvn-bg > svg { filter: grayscale(.85) contrast(.9) brightness(.55); }
.rd-vn.dark .hcvn-box { background: rgba(36, 23, 16, .95); color: #F3E6CC; border-color: #B42318; }
.rd-vn.dark .hcvn-text.narr { color: #EADCC0; }
.rd-vn.dark .hcvn-next { color: #F6C76B; }
.rd-vn.dark .hcvn-name { background: #B42318; }
.rd-vnplain { padding: 16px; border-radius: 16px; background: #FFFCF4; border: 1.5px solid #E2CFA8; }
.rd-vnplain p { margin: 0 0 10px; font-size: 15px; line-height: 1.7; }
.rd-vnplain p b { display: block; font-size: 13px; color: #7A3E1D; }
.rd-castnote { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 12px; font-size: 12px; color: #6B5A48; }
.rd-castnote li { display: inline-flex; align-items: center; gap: 5px; }
.rd-castnote b { font-weight: 800; color: #4A2C17; }
.rd-castnote em { font-style: normal; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.rd-castnote em.real { background: #FDE7D7; color: #9C4A2A; }
.rd-castnote em.fic { background: #EEE8DD; color: #6B5A48; }
/* 휴대폰(엔진 3:4 화면): 인물이 겹치지 않게 지금 말하는 사람만 보임 */
@media (max-width: 640px) {
	.rd-vn .hcvn-who:not(.talk) { opacity: 0; }
	.rd-vtitle { font-size: 19px; }
}

/* 함께하기 닉네임 · 참여자별 결과 · 90일 자동 삭제 안내 */
.rd-nick { margin: 4px 0 12px; text-align: left; }
.rd-nick .rd-input { margin-top: 6px; }
.rd-nickhelp { display: block; font-size: 13px; color: #6B5A48; line-height: 1.5; }
.rd-nickerr { display: block; margin-top: 6px; font-size: 13px; font-weight: 800; color: #B42318; }
.rd-nickerr[hidden] { display: none; }
.rd-nickkeep { margin: 10px 0 0 !important; font-size: 12px !important; color: #6B5A48 !important; }
.rd-nickfix { margin: 12px 0; padding: 14px 16px; border-radius: 16px; background: #FFF4E5; border: 1.5px solid #F2C3A8; text-align: left; }
.rd-nickfix p { margin: 0 0 8px; font-size: 14px; line-height: 1.6; }
.rd-nickfix p b { display: block; color: #B42318; }
.rd-made { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: #F0FDF4; border: 1px solid #BBF7D0; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.rd-made b, .rd-made span { display: block; }
.rd-expire { margin: 8px 0 0; font-size: 14px; font-weight: 700; color: #6B5A48; overflow-wrap: anywhere; }
.rd-mtab { width: 100%; margin-top: 10px; border-collapse: collapse; font-size: 14px; }
.rd-mtab th, .rd-mtab td { padding: 8px 6px; border-bottom: 1px solid #E2CFA8; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.rd-mtab th { font-size: 12px; font-weight: 800; color: #8A7258; white-space: nowrap; }
.rd-mtab .no { width: 2.4em; color: #8A7258; }
.rd-mtab .nn { font-weight: 800; }
.rd-mtab .nn em { font-style: normal; font-weight: 600; color: #8A7258; }
.rd-mtab .at { white-space: nowrap; color: #8A7258; font-size: 13px; }
@media (max-width: 640px) {
	.rd-mtab thead { display: none; }
	.rd-mtab, .rd-mtab tbody, .rd-mtab tr, .rd-mtab td { display: block; width: auto; }
	.rd-mtab tr { margin-bottom: 8px; padding: 10px 12px; border: 1px solid #E2CFA8; border-radius: 14px; background: #FFFCF4; }
	.rd-mtab td { padding: 2px 0; border: 0; font-size: 13px; }
	.rd-mtab td.no, .rd-mtab td.nn { display: inline; }
	.rd-mtab td.no::after { content: '.'; }
	.rd-mtab td.nn { margin-left: 4px; font-size: 15px; }
	.rd-mtab td[data-l]::before { content: attr(data-l) ' · '; font-weight: 700; color: #8A7258; }
	.rd-mtab .at { white-space: normal; }
}

/* 👤 인물 카드 (실존 인물 학습 정보): 통과 화면의 📜 진짜 역사·사진 다음, 성공 엔딩 연표 화면의 접이식 목록 */
.rd-people { position: relative; margin-top: 26px; padding: 26px 16px 16px; border-radius: 20px; background: #FFFCF4; border: 1.5px solid #E2CFA8; animation: rdIn .4s ease; }
.rd-people > .rd-story-tag { background: #7A3E1D; color: #FBF5E8; }
.rd-person { min-width: 0; }
.rd-person + .rd-person { margin-top: 16px; padding-top: 16px; border-top: 1px dashed #E2CFA8; }
.rd-person-hd { display: flex; gap: 12px; align-items: flex-start; }
.rd-person-pic { flex: none; width: 66px; height: 88px; border-radius: 14px; overflow: hidden; background: #F3E6CC; border: 1.5px solid #E2CFA8; }
.rd-person-pic svg { display: block; width: 100%; height: 100%; }
.rd-person-ini { flex: none; display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%; background: #7A3E1D; color: #fff; font: 900 20px/1 Georgia, "Pretendard", serif; letter-spacing: 1px; border: 3px solid #F3E6CC; box-shadow: 0 0 0 1.5px #7A3E1D; }
.rd-person-nm { flex: 1; min-width: 0; }
.rd-person-nm b { display: block; font-size: 17px; font-weight: 900; color: #2E1B0E; }
.rd-person-nm small { display: block; margin-top: 2px; font-size: 13px; color: #8A7258; overflow-wrap: anywhere; }
.rd-people .rd-person-nm p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.6; font-weight: 700; color: #3B2A1C; }
.rd-person-facts { margin: 10px 0 0; padding: 0 0 0 18px; list-style: disc; font-size: 14.5px; line-height: 1.7; color: #3B2A1C; }
.rd-person-facts li { margin-top: 3px; overflow-wrap: break-word; }
.rd-people .rd-person-coop { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: #F6EBD3; font-size: 14px; line-height: 1.65; color: #3B2A1C; }
.rd-person-coop b { display: block; margin-bottom: 2px; font-size: 13.5px; font-weight: 800; color: #7A3E1D; }
.rd-people .rd-person-quote { margin: 8px 0 0; font-size: 13px; line-height: 1.6; font-style: italic; color: #8A7258; }
.rd-person-quote span { display: block; font-style: normal; }
.rd-people .rd-person-src { margin: 8px 0 0; font-size: 12px; line-height: 1.5; color: #8A7258; }
.rd-plist ul { list-style: none; margin-top: 12px; padding: 0; }
.rd-plist li { padding: 8px 0; border-bottom: 1px dashed #E2CFA8; font-size: 14px; line-height: 1.6; color: #3B2A1C; }
.rd-plist li:last-child { border-bottom: 0; }
.rd-plist li b { font-weight: 900; color: #2E1B0E; }
.rd-plist li small { margin-left: 6px; font-size: 12.5px; color: #8A7258; }
.rd-plist li span { display: block; }
@media (max-width: 420px) { .rd-people { padding: 24px 14px 14px; } .rd-person-pic { width: 56px; height: 75px; } .rd-person-ini { width: 52px; height: 52px; font-size: 18px; } }
@media (prefers-reduced-motion: reduce) { .rd-people { animation: none !important; } }
