/* 타임머신! 1932 노바스코샤 (antigonish) — 디자인 (바다 남청 + 등대 빨강 + 모래색) */
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: "Pretendard", "Malgun Gothic", sans-serif; color: #1B1F1C; background: #EFE4CF; background-image: linear-gradient(180deg, #1E3A5F 0, #1E3A5F 220px, #EFE4CF 220px); word-break: keep-all; -webkit-text-size-adjust: 100%; }
button, input { font: inherit; }
a { color: inherit; }

.ag-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 760px; margin: 0 auto; padding: 14px 20px; }
.ag-top .home { flex: none; font-size: 14px; font-weight: 700; color: #FBE7C6; text-decoration: none; }
.ag-top .logo { flex: 1 1 auto; text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 900; color: #FFFDF5; text-decoration: none; }
.ag-top .logo span { color: #EF7461; }
/* 🔊 BGM 버튼 (공통 cookie_story.jsp 의 .hcst-tg 를 짙은 헤더에 맞춤) */
.ag-bgm { flex: none; display: inline-flex; }
.ag-top .hcst-tg { min-height: 32px; padding: 0 11px; border-color: rgba(232, 201, 142, .55); background: rgba(255, 255, 255, .1); color: #FFFDF5; font-size: 12px; white-space: nowrap; }
.ag-top .hcst-tg:hover { background: rgba(255, 255, 255, .18); }
.ag-top .hcst-tg:focus-visible { outline: 2px solid #EF7461; outline-offset: 2px; }
.ag-main { max-width: 680px; margin: 0 auto 48px; padding: 0 16px; }
.ag-main > section { background: #FFFDF8; border-radius: 28px; padding: 34px 26px; box-shadow: 0 10px 30px rgba(30,58,95,.14); }
.ag-foot { text-align: center; padding: 0 16px 36px; font-size: 13px; color: #5E6E80; }
.ag-foot b { color: #1E3A5F; }

.ag-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 #D9CBB0; background: #fff; color: #3A3226; font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none; transition: transform .12s, background .15s, border-color .15s; }
.ag-btn:hover { border-color: #8A7A44; }
.ag-btn:active { transform: scale(.98); }
.ag-btn:disabled { opacity: .6; cursor: default; }
.ag-btn.pri { background: #1E3A5F; border-color: #1E3A5F; color: #fff; }
.ag-btn.pri:hover { background: #152B47; border-color: #152B47; }
.ag-btn.big { min-height: 56px; padding: 0 30px; font-size: 17px; }
.ag-btn.sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
.ag-btn.danger { color: #B91C1C; border-color: #FCA5A5; }
.ag-btn.danger:hover { background: #FEF2F2; border-color: #DC2626; }
.ag-btn:focus-visible, .ag-opt:focus-visible, .ag-input:focus-visible { outline: 3px solid #D9B77A; outline-offset: 2px; }
.ag-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.ag-muted { color: #6B604E; font-size: 14px; line-height: 1.6; }
.ag-muted.center { text-align: center; }
.ag-toast { min-height: 20px; margin: 10px 0 0; text-align: center; font-size: 14px; font-weight: 700; color: #166534; }
.ag-eye { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .1em; color: #8A7A44; }

/* 시리즈 띠 · 역사 배지 */
.ag-series { display: inline-block; margin: 0; padding: 7px 16px; border-radius: 999px; background: #F1DEB8; border: 1.5px dashed #8A7A44; color: #3A3226; font-size: 14px; font-weight: 900; letter-spacing: .02em; }
.ag-series.sm { margin-bottom: 10px; font-size: 12px; padding: 5px 12px; }
.ag-badge { display: flex; width: max-content; max-width: 100%; align-items: center; gap: 10px; margin: 14px auto 0; padding: 8px 18px 8px 8px; border-radius: 999px; background: linear-gradient(135deg, #F6EBD3, #FBE7C6); border: 2px solid #8FB8DE; box-shadow: 0 6px 16px rgba(27,42,63,.15); text-align: left; }
.ag-badge svg { width: 50px; height: 50px; flex: none; }
.ag-badge .tx b { display: block; font-size: 16px; font-weight: 900; color: #1E3A5F; line-height: 1.3; }
.ag-badge .tx small { display: block; font-size: 13px; font-weight: 700; color: #2E5C8A; }
.ag-badge.big svg { width: 62px; height: 62px; animation: agSway 3.2s ease-in-out infinite; }
.ag-badge.big .tx b { font-size: 18px; }
.ag-badge.sm { margin: 0 auto 12px; padding: 5px 14px 5px 5px; }
.ag-badge.sm svg { width: 34px; height: 34px; }
.ag-badge.sm .tx b { font-size: 14px; } .ag-badge.sm .tx small { font-size: 11px; }
@keyframes agSway { 0%,100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg) scale(1.04); } }

/* 시작 */
.ag-start { text-align: center; }
.ag-logo { margin: 14px 0 0; font-size: 34px; font-weight: 900; line-height: 1.25; letter-spacing: -.02em; color: #1B1F1C; }
.ag-logo span { color: #1E3A5F; font-size: 40px; }
.ag-logo small { display: block; margin-top: 10px; font-size: 11px; font-weight: 800; letter-spacing: .14em; color: #8A7A44; }
.ag-ask { margin: 18px 0 0; font-size: 18px; line-height: 1.6; color: #23364F; }
.ag-ask b { font-size: 21px; color: #1B1F1C; }
.ag-claim { margin: 14px auto 0; max-width: 480px; padding: 10px 14px; border-radius: 14px; background: #F6EBD3; border: 1px dashed #8A7A44; font-size: 14px; font-weight: 700; line-height: 1.6; color: #23364F; }
.ag-theory { margin: 18px 0 0; padding: 14px 16px; border-radius: 18px; background: linear-gradient(135deg, #F1EBE0, #F6EBD3); border: 1.5px solid #C9B99B; }
.ag-theory b { display: block; font-size: 15px; font-weight: 800; line-height: 1.55; color: #3A3226; }
.ag-theory b i { font-style: normal; margin-right: 4px; }
.ag-theory b span { color: #1E3A5F; }
.ag-theory small { display: block; margin-top: 6px; font-size: 13px; color: #6B604E; }
.ag-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 22px; text-align: left; }
.ag-mode { display: flex; flex-direction: column; gap: 10px; padding: 20px 18px; border-radius: 20px; border: 1.5px solid #E6DAC2; background: #FBF6EC; }
.ag-mode.tog { background: #F1EBE0; border-color: #C9B99B; }
.ag-mode .t { font-size: 18px; font-weight: 900; }
.ag-mode p { margin: 0; font-size: 14px; line-height: 1.6; color: #4A4A44; }
.ag-mode .ag-btn { margin-top: auto; width: 100%; }
.ag-price { display: inline-block; margin: 0; padding: 6px 10px; border-radius: 10px; background: #F6EBD3; color: #2E5C8A !important; font-size: 12px !important; font-weight: 700; line-height: 1.5; }
.ag-price.big { display: block; margin: 12px 0 0; font-size: 14px !important; text-align: center; }
.ag-gbanner { margin-top: 22px; padding: 20px; border-radius: 20px; background: #F1EBE0; border: 1.5px solid #C9B99B; font-size: 16px; line-height: 1.6; }
.ag-gbanner span { display: block; font-size: 13px; font-weight: 800; color: #1E3A5F; margin-bottom: 4px; }
.ag-gbanner p { margin: 6px 0 14px; font-size: 14px; color: #4A4A44; }
.ag-gbanner.closed { background: #F1F5F9; border-color: #CBD5E1; }
.ag-note { margin: 18px 0 0; font-size: 12px; line-height: 1.6; color: #9C9384; }

/* 소개 */
.ag-start-ab, .ag-about { margin-top: 20px; border-radius: 18px; border: 1.5px solid #E6DAC2; background: #FBF6EC; text-align: left; }
.ag-start-ab summary, .ag-about summary { list-style: none; position: relative; display: block; padding: 16px 48px 16px 18px; cursor: pointer; font-size: 16px; font-weight: 800; color: #3A3226; }
.ag-start-ab summary::-webkit-details-marker, .ag-about summary::-webkit-details-marker { display: none; }
.ag-start-ab summary span { display: block; margin-top: 4px; font-size: 13px; font-weight: 500; color: #6B604E; }
.ag-start-ab summary::after, .ag-about summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; border-right: 2.5px solid #8A7A44; border-bottom: 2.5px solid #8A7A44; transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.ag-start-ab[open] summary::after, .ag-about[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.ag-start-ab[open] summary, .ag-about[open] summary { border-bottom: 1px solid #E6DAC2; }
.ag-start-ab > :not(summary), .ag-about > :not(summary) { margin-left: 22px !important; margin-right: 22px !important; }
.ag-start-ab > :last-child, .ag-about > :last-child { margin-bottom: 18px; }
.ag-start-ab p, .ag-about p { font-size: 15px; line-height: 1.85; color: #374151; margin: 14px 0 0; overflow-wrap: break-word; }
.ag-ab-lead { padding: 12px 14px; border-radius: 12px; background: #F1EBE0; font-weight: 800; color: #1E3A5F !important; margin-top: 16px !important; }
.ag-start-ab h3, .ag-about h3 { margin: 26px 0 12px; font-size: 17px; font-weight: 800; }
.ag-ab-sub { font-size: 14px !important; color: #4E5E72 !important; }
.ag-how, .ag-uses { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ag-how li { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 12px; background: #F6EBD3; border: 1px solid #D6E2EE; }
.ag-how i { font-style: normal; font-size: 22px; }
.ag-how b { color: #23364F; font-size: 15px; }
.ag-how span, .ag-uses span { font-size: 14px; line-height: 1.6; }
.ag-uses li { padding: 12px; border-radius: 12px; background: #F1EBE0; display: flex; flex-direction: column; gap: 4px; }
.ag-uses b { color: #1E3A5F; font-size: 15px; }
.ag-caution { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: #F6EBD3; border: 1px solid #D6E2EE; }
.ag-caution b { color: #2E5C8A; }
.ag-caution ul { margin: 6px 0 0; padding-left: 18px; font-size: 14px; line-height: 1.7; color: #23364F; }
.ag-start-ab.ag-must { margin: 20px 0 0; border: 2px solid #1E3A5F; background: #F7F2E8; box-shadow: 0 6px 16px rgba(30,58,95,.12); }
.ag-must > summary { text-align: center; padding: 16px 44px; }
.ag-must > summary b { display: block; font-size: 19px; font-weight: 900; color: #1E3A5F; }
.ag-must:not([open]) > summary { animation: agPulse 2.4s ease-in-out infinite; border-radius: 18px; }
.ag-mustnote { margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: #F6EBD3; color: #2E5C8A; font-size: 14px; font-weight: 700; line-height: 1.6; text-align: left; }
@keyframes agPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(30,58,95,0); } 50% { box-shadow: 0 0 0 6px rgba(30,58,95,.15); } }

/* 장면 그림  */
.ag-art { margin: 16px 0 0; border-radius: 16px; overflow: hidden; background: #CFE0EE; box-shadow: 0 8px 20px rgba(27,42,63,.18); line-height: 0; }
.ag-art svg { display: block; width: 100%; height: auto; }
.ag-art.hero { margin-top: 18px; transform: rotate(-1deg); }

/* 진행 */
.ag-play { text-align: left; }
.ag-gtag { display: inline-block; margin: 0 0 12px; padding: 4px 12px; border-radius: 999px; background: #E7DDCB; color: #1E3A5F; font-size: 13px; font-weight: 800; }
.ag-prog { height: 8px; border-radius: 4px; background: #DDE8F2; overflow: hidden; }
.ag-prog i { display: block; height: 100%; background: linear-gradient(90deg, #8FB8DE, #1E3A5F); transition: width .3s; }
.ag-meter { display: flex; justify-content: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.ag-meter span { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 800; }
.ag-meter .r { background: #F6EBD3; color: #2E5C8A; }
.ag-meter .c { background: #E7DDCB; color: #1E3A5F; }
.ag-meter b { font-size: 18px; font-weight: 900; margin-left: 2px; }
.ag-qn { margin: 20px 0 0; text-align: center; font-size: 13px; font-weight: 800; color: #8A7A44; }
.ag-card { position: relative; margin-top: 22px; padding: 26px 22px 20px; border-radius: 22px; background: linear-gradient(160deg, #F7F2E8, #E7DDCB); border: 1.5px solid #C9B99B; animation: agIn .35s ease; }
.ag-card.tm { background: linear-gradient(160deg, #FBF6EC, #F1DEB8); border-color: #D6C6A6; }
.ag-card.tm .ag-card-tag { background: #2E5C8A; }
.ag-card-tag, .ag-story-tag, .ag-hist-tag { position: absolute; top: -12px; left: 18px; padding: 4px 12px; border-radius: 999px; background: #1E3A5F; color: #fff; font-size: 12px; font-weight: 800; }
.ag-card h2 { margin: 0; font-size: 21px; line-height: 1.45; font-weight: 900; }
.ag-card p { margin: 10px 0 0; font-size: 16px; line-height: 1.75; color: #374151; }
.ag-legend { margin-top: 14px; padding: 10px 14px; border-radius: 12px; background: #FBF6EC; font-size: 14px; line-height: 1.7; color: #4A4A44; text-align: center; }
.ag-legend span { font-weight: 900; }
.ag-legend .a { color: #1E3A5F; } .ag-legend .b { color: #2E5C8A; }

/* 🎬 대화 장면 (공통 cookie_story.jsp 의 .hcvn 위에 세피아·숲 초록 색을 덧입힘): 배경 그림 + 인물 초상 + 아래 대사창 */
.ag-vntag { margin: 18px 0 8px; font-size: 13px; font-weight: 900; color: #1E3A5F; }
.ag-vn { margin: 0; }
.ag-vn .hcvn { background: #2A2318; }
.ag-vn .hcvn-box { z-index: 3; border-color: #1E3A5F; background: rgba(255, 253, 245, .97); }
.ag-vn .hcvn-name { background: #1E3A5F; color: #FFFDF5; border-color: #EF7461; }
.ag-vn .hcvn-text.narr { color: #1E3A5F; }
.ag-vn .hcvn-who.talk { z-index: 2; }
.ag-vn .hcvn-ask button { border-color: #EF7461; background: rgba(42, 35, 24, .93); }
.ag-vn .hcvn-ask button:hover, .ag-vn .hcvn-ask button:focus-visible { background: #2E6E9E; }
/* 인물 셋: 조금 작게, 왼쪽 · 가운데 · 오른쪽 */
.ag-vn.n3 .hcvn-who { height: 66%; }
@media (max-width: 640px) { .ag-vn.n3 .hcvn-who { height: 64%; } }
/* 실패 엔딩: 어두운 대사창 */
.ag-vn.dark .hcvn { background: #140F0B; }
.ag-vn.dark .hcvn-box { background: rgba(38, 30, 24, .96); color: #E6EEF6; border-color: #7A2E24; }
.ag-vn.dark .hcvn-text.narr { color: #DCE6F0; }
.ag-vn.dark .hcvn-name { background: #4A2A22; }
.ag-vn.dark .hcvn-next { color: #DCE6F0; }
.ag-vn.dark .hcvn-who > svg { filter: grayscale(.45) brightness(.8) drop-shadow(0 6px 14px rgba(0,0,0,.5)); }
.ag-vnnote { margin: 8px 0 0; font-size: 12.5px; font-weight: 700; color: #2E5C8A; text-align: center; }
/* 공통 엔진이 없을 때 */
.ag-vnfb { padding: 18px; border-radius: 18px; background: #FBF6EC; border: 1.5px solid #D6C6A6; }
.ag-vnfb p { margin: 0 0 10px; font-size: 15px; line-height: 1.7; } .ag-vnfb p b { display: block; font-size: 13px; color: #2E5C8A; }
.ag-after { animation: agIn .3s ease; }

/* 대사 말풍선 */
.ag-talk { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ag-say { display: flex; align-items: flex-start; gap: 10px; animation: agIn .35s ease both; }
.ag-say:nth-child(2) { animation-delay: .1s; } .ag-say:nth-child(3) { animation-delay: .2s; } .ag-say:nth-child(4) { animation-delay: .3s; }
.ag-say .av { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: #F1DEB8; border: 2px solid #D6C6A6; font-size: 24px; }
.ag-say.real .av { background: #E7DDCB; border-color: #1E3A5F; }
.ag-say .bub { position: relative; min-width: 0; padding: 10px 14px; border-radius: 4px 16px 16px 16px; background: #FBF6EC; border: 1px solid #E6DAC2; }
.ag-say .bub b { display: block; font-size: 13px; font-weight: 900; color: #2E5C8A; }
.ag-say .bub b em { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: #1E3A5F; color: #fff; font-style: normal; font-size: 11px; font-weight: 800; vertical-align: 1px; }
.ag-say .bub p { margin: 3px 0 0; font-size: 15px; line-height: 1.65; color: #1F2937; }
.ag-say.me { flex-direction: row-reverse; }
.ag-say.me .bub { border-radius: 16px 4px 16px 16px; background: #1E3A5F; border-color: #1E3A5F; }
.ag-say.me .bub b { color: #EF7461; text-align: right; }
.ag-say.me .bub p { color: #FFFDF5; }
.ag-askq { margin: 20px 0 0; font-size: 17px; font-weight: 900; color: #1B1F1C; text-align: center; }
.ag-opts { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ag-opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 14px 18px; border-radius: 16px; border: 1.5px solid #DCD2C0; background: #FFFDF8; text-align: left; font-size: 16px; font-weight: 600; line-height: 1.5; color: #1B1F1C; cursor: pointer; transition: border-color .15s, background .15s; }
.ag-opt i { flex: none; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: #E7DDCB; color: #1E3A5F; font-style: normal; font-size: 14px; font-weight: 900; }
.ag-opt:hover:not(:disabled) { border-color: #1E3A5F; background: #F7F2E8; }

/* 통과 · 실패 */
.ag-pickres { margin-top: 14px; padding: 16px 18px; border-radius: 20px; background: #EEF4FA; border: 1.5px solid #B9CFE4; animation: agIn .3s ease; }
.ag-ok { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #DCFCE7; color: #166534; font-size: 13px; font-weight: 900; }
.ag-pickres p { margin: 8px 0 0; font-size: 15px; line-height: 1.75; color: #374151; }
.ag-got { margin-top: 14px; padding: 14px 16px; border-radius: 18px; background: #E7DDCB; border: 1.5px solid #C9B99B; animation: agPop .45s ease; }
.ag-got > b { font-size: 15px; color: #1E3A5F; }
.ag-got ul, .ag-cards, .ag-lesson { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.ag-got li, .ag-cards li, .ag-lesson li { display: flex; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #fff; }
.ag-got i, .ag-cards i, .ag-lesson i { font-style: normal; font-size: 24px; flex: none; }
.ag-got li b, .ag-cards b, .ag-lesson b { display: block; font-size: 15px; color: #1E3A5F; }
.ag-got li span, .ag-cards span, .ag-lesson span { display: block; font-size: 14px; line-height: 1.6; color: #374151; }
.ag-cards small { display: block; margin-top: 4px; font-size: 13px; line-height: 1.55; color: #2E5C8A; font-weight: 700; }
.ag-cards li { border: 1px solid #E6DAC2; }
.ag-story { position: relative; margin-top: 26px; padding: 26px 20px 20px; border-radius: 20px; background: #F6EBD3; border: 1.5px solid #D6C6A6; animation: agIn .4s ease; }
.ag-story-tag { background: #2E5C8A; }
.ag-story h3 { margin: 0; font-size: 18px; font-weight: 900; color: #3A3226; }
.ag-story p { margin: 8px 0 0; font-size: 15px; line-height: 1.8; color: #2E2A24; }
.ag-story p.ag-fn, .ag-fn { margin-top: 8px; font-size: 12px !important; line-height: 1.5 !important; color: #6B604E !important; }
.ag-hist { position: relative; margin: 26px 0 0; padding: 22px 14px 14px; border-radius: 18px; background: #3A3226; }
.ag-hist-tag { background: #8FB8DE; color: #2E2A24; }
.ag-hist img { display: block; width: 100%; height: auto; border-radius: 8px; filter: sepia(.25); }
.ag-hist figcaption { margin-top: 10px; font-size: 14px; line-height: 1.6; color: #FFF8E0; }
.ag-hist figcaption small { display: block; margin-top: 4px; font-size: 12px; color: #A9C8E6; }
.ag-hist figcaption a { color: #EF7461; }
/* 📷 사진 2장: 넓은 화면에서는 나란히, 640px 이하에서는 위아래 */
.ag-hists { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; margin-top: 26px; }
.ag-hists .ag-hist { margin: 0; min-width: 0; }
.ag-hist[hidden] { display: none; }
.ag-hist figcaption { overflow-wrap: anywhere; word-break: keep-all; }
@media (max-width: 640px) { .ag-hists { grid-template-columns: 1fr; gap: 26px; } }
.ag-failcard { margin-top: 18px; padding: 24px 22px; border-radius: 22px; background: linear-gradient(160deg, #3A3226, #2A2119); color: #FFF8E0; text-align: center; animation: agShake .5s ease; }
.ag-failcard .tag { display: inline-block; padding: 4px 12px; border-radius: 999px; background: #D9534F; color: #fff; font-size: 12px; font-weight: 900; }
.ag-failcard .e { display: block; margin-top: 12px; font-size: 54px; line-height: 1.1; }
.ag-failcard h2 { margin: 8px 0 0; font-size: 23px; font-weight: 900; color: #FFF0B3; }
.ag-failcard p { margin: 10px 0 0; font-size: 15px; line-height: 1.75; text-align: left; color: #E6EEF6; }
.ag-failcard p.me { padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.08); font-size: 14px; font-weight: 700; color: #EF7461; }
.ag-failcard p.warn { font-size: 13px; color: #A9C8E6; text-align: center; }
.ag-why { margin-top: 14px; padding: 16px 18px; border-radius: 18px; background: #F1EBE0; border: 1.5px solid #C9B99B; }
.ag-why b { font-size: 16px; color: #1E3A5F; }
.ag-why p { margin: 6px 0 0; font-size: 15px; line-height: 1.75; color: #374151; }

/* 엔딩 */
.ag-time { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.ag-time li { position: relative; display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 10px 0 10px; border-bottom: 1px dashed #D6C6A6; }
.ag-time li:last-child { border-bottom: 0; }
.ag-time .y { align-self: start; padding: 3px 8px; border-radius: 8px; background: #1E3A5F; color: #FFFDF5; font-size: 13px; font-weight: 900; text-align: center; }
.ag-time b { display: block; font-size: 15px; color: #3A3226; }
.ag-time p { margin: 2px 0 0 !important; font-size: 14px !important; line-height: 1.6 !important; }
.ag-root { margin-top: 18px; padding: 16px 18px; border-radius: 18px; background: #EAF1F8; border: 1.5px solid #B9CFE4; }
.ag-root b { font-size: 16px; color: #1E3A5F; }
.ag-root p { margin: 6px 0 0; font-size: 15px; line-height: 1.7; color: #374151; }

.ag-busy { text-align: center; padding: 70px 20px !important; }
.ag-busy p { margin: 16px 0 0; font-size: 18px; font-weight: 700; color: #3A3226; }
.ag-crumb { font-size: 64px; animation: agWiggle .6s ease-in-out infinite; }

/* 결과 */
.ag-res { text-align: center; }
.ag-shared { display: inline-block; margin: 0 0 10px; padding: 4px 12px; border-radius: 999px; background: #F6EBD3; color: #2E5C8A; font-size: 13px; font-weight: 700; }
.ag-type .e { display: block; font-size: 56px; line-height: 1.15; margin-top: 8px; }
.ag-type h1 { margin: 8px 0 0; font-size: 30px; font-weight: 900; color: var(--tc); }
.ag-type p { margin: 6px 0 0; font-size: 16px; font-weight: 700; color: #4E5E72; }
.ag-kpi { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 8px; margin-top: 16px; }
.ag-kpi div { padding: 14px 6px; border-radius: 18px; background: #F1DEB8; text-align: center; }
.ag-kpi span { display: block; font-size: 13px; font-weight: 800; color: #2E5C8A; }
.ag-kpi b { display: block; font-size: 28px; font-weight: 900; color: #1B1F1C; }
.ag-kpi b em { font-style: normal; font-size: 16px; color: #6B604E; }
.ag-kpi small { font-size: 12px; color: #6B604E; }
.ag-desc { margin: 16px 0 0; font-size: 16px; line-height: 1.75; color: #374151; text-align: left; }
.ag-cardbox { margin-top: 20px; padding: 20px 18px; border-radius: 20px; border: 1px solid #E6DAC2; text-align: left; }
.ag-cardbox.center { text-align: center; }
.ag-cardbox h2 { margin: 0 0 10px; font-size: 17px; font-weight: 800; }
.ag-cardbox p { margin: 8px 0 0; font-size: 15px; line-height: 1.7; color: #374151; }
.ag-cardbox.gift { background: #F6EBD3; border-color: #D6C6A6; }
.ag-journey { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.ag-journey li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 10px; padding: 10px 12px; border-radius: 12px; background: #EEF4FA; }
.ag-journey li.no { background: #F8EDE6; }
.ag-journey small { grid-column: 1 / -1; font-size: 12px; font-weight: 800; color: #8A7A44; }
.ag-journey b { font-size: 15px; line-height: 1.5; }
.ag-journey span { font-size: 13px; font-weight: 800; color: #166534; white-space: nowrap; }
.ag-journey li.no span { color: #D9534F; }
.ag-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.ag-links span { font-size: 13px; font-weight: 800; color: #2E5C8A; margin-right: 4px; }
.ag-links a { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid #D6C6A6; color: #1E3A5F; font-size: 14px; font-weight: 700; text-decoration: none; }
.ag-refnote { margin: 18px 0 0; padding: 10px 14px; border-radius: 12px; background: #F6EBD3; font-size: 14px; font-weight: 700; color: #2E5C8A; }

/* 함께하기 · 모임 결과 */
.ag-title { margin: 6px 0 0; font-size: 26px; font-weight: 900; line-height: 1.35; }
.ag-howto { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 10px; }
.ag-howto li { counter-increment: s; position: relative; padding: 12px 14px 12px 48px; border-radius: 14px; background: #FBF6EC; font-size: 14px; line-height: 1.6; color: #4A4A44; }
.ag-howto li::before { content: counter(s); position: absolute; left: 14px; top: 12px; width: 24px; height: 24px; border-radius: 50%; background: #1E3A5F; color: #fff; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.ag-howto b { display: block; color: #1B1F1C; font-size: 15px; }
.ag-label { display: block; margin: 4px 0 6px; font-size: 14px; font-weight: 700; color: #4A4A44; }
.ag-input { width: 100%; min-height: 50px; padding: 0 14px; border-radius: 14px; border: 1.5px solid #D9CBB0; background: #FBF6EC; font-size: 16px; }
.ag-glist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ag-glist li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 14px; background: #FBF6EC; border: 1px solid #E6DAC2; }
.ag-glist b { display: block; font-size: 15px; }
.ag-glist small { font-size: 13px; color: #6B604E; }
.ag-glist em { font-style: normal; color: #B91C1C; }
.ag-glist .act { display: flex; gap: 6px; }
.ag-gmeta { margin: 8px 0 0; font-size: 15px; color: #4E5E72; }
.ag-gmeta b { color: #1E3A5F; font-size: 18px; }
.ag-wait { font-size: 40px; margin: 0 !important; }
.ag-big { font-size: 64px !important; font-weight: 900; color: #1E3A5F !important; margin: 4px 0 0 !important; line-height: 1.1 !important; }
.ag-big small { font-size: 26px; }
.ag-tdist { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ag-tdist li { display: grid; grid-template-columns: 180px 1fr 44px; align-items: center; gap: 10px; font-size: 14px; }
.ag-tdist .n { font-weight: 700; color: #4A4A44; }
.ag-tdist li.me .n { color: #D9534F; font-weight: 900; }
.ag-tdist .b { height: 12px; border-radius: 6px; background: #DDE8F2; overflow: hidden; }
.ag-tdist .b i { display: block; height: 100%; border-radius: 6px; }
.ag-tdist b { text-align: right; font-weight: 800; }
.ag-tdist b small { display: block; font-size: 11px; font-weight: 700; color: #6B604E; }
.ag-tdist.q li { grid-template-columns: 1fr 100px 52px; }
.ag-tdist.q .n { font-size: 13px; line-height: 1.45; }
.ag-worst { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: #F8EDE6; border: 1px solid #E5C3B3; }
.ag-worst b { font-size: 15px; color: #D9534F; }
.ag-worst p { font-size: 14px !important; }
.ag-talkq { margin: 6px 0 0; padding-left: 20px; font-size: 15px; line-height: 1.8; color: #374151; }

@keyframes agIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes agPop { 0% { transform: scale(.92); opacity: 0; } 70% { transform: scale(1.03); opacity: 1; } 100% { transform: none; } }
@keyframes agShake { 0%,100% { transform: none; } 20% { transform: translateX(-6px) rotate(-1deg); } 40% { transform: translateX(6px) rotate(1deg); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
@keyframes agWiggle { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
@media (prefers-reduced-motion: reduce) {
	.ag-card, .ag-story, .ag-pickres, .ag-say, .ag-after, .ag-got, .ag-failcard, .ag-crumb, .ag-badge.big svg, .ag-must > summary, .ag-people { animation: none !important; }
}

@media (max-width: 520px) {
	body { background-image: linear-gradient(180deg, #1E3A5F 0, #1E3A5F 160px, #EFE4CF 160px); }
	.ag-top { padding: 12px 14px; }
	.ag-top { gap: 8px; }
	.ag-top .logo { font-size: 13px; }
	.ag-top .home { font-size: 13px; }
	.ag-top .hcst-tg { padding: 0 9px; }
	.ag-top .hcst-tg .eq { display: none; }
	.ag-main { padding: 0 10px; }
	.ag-main > section { padding: 26px 16px; border-radius: 22px; }
	.ag-logo { font-size: 26px; }
	.ag-logo span { font-size: 31px; }
	.ag-series { font-size: 12px; padding: 6px 12px; }
	.ag-badge .tx b { font-size: 14px; } .ag-badge.big .tx b { font-size: 15px; } .ag-badge .tx small { font-size: 12px; }
	.ag-badge.big svg { width: 50px; height: 50px; }
	.ag-modes, .ag-uses, .ag-how { grid-template-columns: 1fr; }
	.ag-card { padding: 24px 16px 18px; }
	.ag-card h2 { font-size: 18px; }
	.ag-card p { font-size: 15px; }
	.ag-say .av { width: 38px; height: 38px; font-size: 20px; }
	.ag-say .bub p { font-size: 14px; }
	.ag-opt { font-size: 15px; padding: 12px 14px; }
	.ag-time li { grid-template-columns: 74px 1fr; gap: 10px; }
	.ag-time .y { font-size: 12px; padding: 3px 4px; }
	.ag-type h1 { font-size: 24px; }
	.ag-kpi b { font-size: 22px; }
	.ag-kpi span { font-size: 12px; }
	.ag-tdist li { grid-template-columns: 124px 1fr 38px; font-size: 13px; }
	.ag-tdist.q li { grid-template-columns: 1fr 60px 48px; }
	.ag-row .ag-btn { flex: 1 1 100%; }
	.ag-start-ab > :not(summary), .ag-about > :not(summary) { margin-left: 16px !important; margin-right: 16px !important; }
}

/* 📚 출처 · 엔딩의 우리나라에 주는 교훈 · 생각 넓히기 (antigonish) */
.ag-src { display: block; margin-top: 10px; font-size: 11.5px; line-height: 1.5; color: #6B604E; }
.ag-time .ag-src { margin-top: 2px; }
.ag-uses2 { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.ag-uses2 li { display: flex; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #fff; }
.ag-uses2 i { font-style: normal; font-size: 24px; flex: none; }
.ag-uses2 b { display: block; font-size: 15px; color: #1E3A5F; }
.ag-uses2 span { display: block; font-size: 14px; line-height: 1.6; color: #374151; }
.ag-think { margin-top: 18px; padding: 16px 18px; border-radius: 18px; background: #F6EBD3; border: 1.5px dashed #D9483B; }
.ag-think b { font-size: 16px; color: #1E3A5F; }
.ag-think ol { margin: 6px 0 0; padding-left: 22px; font-size: 15px; line-height: 1.8; color: #374151; }

/* 👤 함께하기 닉네임 · 👥 참여자별 결과 (모임을 만든 사람에게만) */
.ag-nick { margin: 14px 0 6px; text-align: left; }
.ag-nick .ag-muted { margin: 2px 0 8px; font-size: 13px; }
.ag-nickerr { margin: 6px 0 0; font-size: 13px; font-weight: 800; color: #B4483A; }
.ag-nickexp { margin: 10px 0 0; font-size: 12px; }
.ag-nickfix { border: 1.5px solid #EF7461; }
.ag-members { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.ag-members li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; background: #FBF6EC; border: 1px solid #E6DAC2; min-width: 0; }
.ag-members .no { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #1E3A5F; color: #F6EBD2; font-size: 12px; font-weight: 900; display: inline-flex; align-items: center; justify-content: center; }
.ag-members li > div { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.ag-members b { font-size: 15px; }
.ag-members span { font-size: 13px; font-weight: 700; color: #2E5C8A; }
.ag-members small { font-size: 12px; color: #6B604E; }

/* 👤 인물 카드 (실존 인물이 처음 나온 장면 뒤) · 👥 엔딩의 실존 인물 목록 · 더 배우기 강조 */
.ag-people { position: relative; margin-top: 26px; padding: 24px 14px 14px; border-radius: 20px; background: #EAF1F8; border: 1.5px solid #B9CFE4; animation: agIn .4s ease; }
.ag-people-tag { position: absolute; top: -12px; left: 18px; padding: 4px 12px; border-radius: 999px; background: #1E3A5F; color: #fff; font-size: 12px; font-weight: 800; }
.ag-people > ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ag-person { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; background: #fff; border: 1px solid #D6E2EE; min-width: 0; }
.ag-person .pic { flex: none; width: 72px; height: 96px; border-radius: 12px; overflow: hidden; background: #F1DEB8; line-height: 0; }
.ag-person .pic svg { display: block; width: 100%; height: 100%; }
.ag-person .tx { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.ag-person .nm { display: block; font-size: 16px; font-weight: 900; color: #1E3A5F; }
.ag-person .orig { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 700; color: #6B604E; }
.ag-person .one { margin: 6px 0 0; font-size: 14px; font-weight: 700; line-height: 1.55; color: #23364F; }
.ag-person .facts { margin: 6px 0 0; padding-left: 18px; font-size: 13.5px; line-height: 1.65; color: #374151; }
.ag-person .coop { margin: 8px 0 0; padding: 8px 10px; border-radius: 10px; background: #F6EBD3; font-size: 13.5px; line-height: 1.6; color: #374151; }
.ag-person .coop b { display: block; font-size: 13px; color: #2E5C8A; }
.ag-person .q { margin: 8px 0 0; font-size: 13px; font-style: italic; line-height: 1.55; color: #1E3A5F; }
.ag-person .q span { display: block; font-style: normal; font-size: 12.5px; color: #6B604E; }
.ag-person .ag-src { margin-top: 8px; }
.ag-reallist ul { list-style: none; margin: 14px 0 0 !important; padding: 0; display: grid; gap: 8px; }
.ag-reallist li { padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid #E6DAC2; font-size: 15px; }
.ag-reallist li b { color: #1E3A5F; }
.ag-reallist li span { font-size: 13px; font-weight: 700; color: #6B604E; }
.ag-reallist li small { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.55; color: #374151; }
.ag-tlink { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 800; color: #C0392B; text-decoration: none; }
.ag-tlink:hover { text-decoration: underline; }
.ag-links a.hi { flex: 1 1 100%; background: #FDECE8; border: 2px solid #D9483B; color: #A3271C; font-weight: 900; }
@media (max-width: 520px) {
	.ag-person { gap: 10px; padding: 10px; }
	.ag-person .pic { width: 56px; height: 75px; }
}
