/* 학생 화면: 에듀사파리 브랜드(딥그린 #104B3A, 오렌지 #FF6334, 라이트 #F3F5F6) */
.kid {
  --brand: #104b3a;
  --brand-2: #1b6a52;
  --brand-soft: #e2efe9;
  --accent: #ff6334;
  --accent-soft: #ffe8e0;
  --sky: #f3f5f6;
  --ink: #17302a;
  --muted: #5f706a;
  --white: #ffffff;
  min-height: 100dvh;
  background: var(--sky);
  color: var(--ink);
  font-size: 17px;
}
.kid button, .kid a { -webkit-tap-highlight-color: transparent; }
.kid .k-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 0 26px; border: 0; border-radius: 18px;
  font-size: 18px; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .12s ease, background .15s, opacity .15s;
}
.kid .k-btn:active { transform: scale(.97); }
.kid .k-btn:disabled { opacity: .45; cursor: default; transform: none; }
.kid .k-btn-go { background: var(--accent); color: #fff; }
@media (hover: hover) { .kid .k-btn-go:hover { background: #ff7149; } }
.kid .k-btn-go:active { transform: translateY(4px); }
.kid .k-btn-brand { background: var(--brand); color: #fff; }
.kid .k-btn-brand:active { transform: translateY(4px); }
.kid .k-btn-soft { background: var(--white); color: var(--brand); }
@media (hover: hover) { .kid .k-btn-soft:hover { background: #fafbfb; } }
.kid .k-btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; border-radius: 14px; box-shadow: none; }
.kid .k-btn-block { width: 100%; }

/* 머리 */
.k-top { position: sticky; top: 0; z-index: 30; background: rgba(243, 245, 246, .92); backdrop-filter: blur(8px); }
.k-top-in { max-width: 1040px; margin: 0 auto; height: 70px; padding: 0 16px; display: flex; align-items: center; gap: 12px; }
.k-top-in .logo { height: 40px; display: block; }
.k-top-in .sp { flex: 1; }
.k-chip { display: inline-flex; align-items: center; gap: 6px; background: #fff; padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--brand); }
.k-chip img { width: 26px; height: 26px; object-fit: contain; }
.k-main { max-width: 1040px; margin: 0 auto; padding: 8px 16px 80px; }
.k-back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; text-decoration: none; font-size: 15px; margin: 8px 0 12px; }

/* 여권 입장 */
.pp-wrap { min-height: 100dvh; display: grid; place-items: center; padding: 28px 16px 40px; }
.pp-stage { width: min(980px, 100%); display: grid; gap: 22px; justify-items: center; }
.pp-logo { width: min(420px, 82vw); display: block; }
.pp-tag { margin: -6px 0 0; font-size: 20px; font-weight: 700; color: var(--brand); text-align: center; }
.pp-tag b { color: var(--accent); font-weight: 700; }
.pp-row { width: 100%; display: grid; justify-items: center; }
@keyframes float { 50% { transform: translateY(-10px); } }
.passport { width: min(820px, 100%); display: grid; grid-template-columns: 260px 1fr; background: #fff; border-radius: 26px; overflow: hidden; box-shadow: 0 24px 50px rgba(16, 75, 58, .14); }
.pp-cover { background: var(--brand); color: #fff; padding: 26px 20px; display: grid; align-content: space-between; justify-items: center; text-align: center; gap: 16px; position: relative; }
.pp-cover::after { content: ''; position: absolute; top: 0; bottom: 0; right: 0; width: 10px; background: repeating-linear-gradient(#0c3c2e 0 8px, transparent 8px 14px); }
.pp-cover .t1 { font-size: 13px; letter-spacing: .28em; opacity: .85; }
.pp-cover img { width: 132px; }
.pp-cover .t2 { font-size: 22px; font-weight: 700; }
.pp-cover .t3 { font-size: 12px; letter-spacing: .2em; opacity: .7; }
.pp-page { padding: 34px 40px; display: grid; gap: 16px; align-content: start; }
.pp-page h1 { margin: 0; font-size: 26px; font-weight: 700; color: var(--brand); }
.pp-page .sub { margin: -8px 0 4px; color: var(--muted); font-size: 16px; }
.k-field { display: grid; gap: 8px; }
.k-field label { font-weight: 700; font-size: 16px; color: var(--brand); }
.k-input { width: 100%; height: 62px; border: 2px solid #e3e8e6; border-radius: 16px; padding: 0 18px; font-size: 22px; font-weight: 600; background: #fbfcfc; outline: none; transition: border-color .15s, background .15s; }
.k-input:focus { border-color: var(--brand); background: #fff; }
.k-input.pin { letter-spacing: .5em; font-variant-numeric: tabular-nums; }
.k-err { color: #c63b14; font-weight: 600; font-size: 15px; min-height: 20px; margin: 0; }
.pp-staff { text-align: center; font-size: 14px; }
.pp-staff a { color: var(--muted); }
.pp-demo { background: #fff4d6; color: #7a5a12; border-radius: 14px; padding: 10px 14px; font-size: 14px; width: min(820px, 100%); }

/* 사파리 선택 카드 */
.trip-list { display: grid; gap: 12px; }
.trip { display: flex; align-items: center; gap: 14px; text-align: left; width: 100%; border: 0; background: var(--sky); border-radius: 20px; padding: 16px 18px; cursor: pointer; transition: background .15s, transform .12s; }
@media (hover: hover) { .trip:hover { background: var(--brand-soft); } }
.trip:active { transform: scale(.98); }
.trip img { width: 54px; height: 54px; object-fit: contain; }
.trip .n { font-size: 19px; font-weight: 700; color: var(--brand); }
.trip .d { font-size: 14px; color: var(--muted); margin-top: 2px; }
.trip .go { margin-left: auto; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; }
.trip.off { opacity: .6; }

/* 홈 */
.hero { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; background: var(--brand); color: #fff; border-radius: 30px; padding: 28px 30px; position: relative; overflow: hidden; margin-top: 8px; }
.hero .hi { font-size: 16px; opacity: .85; }
.hero h1 { margin: 6px 0 10px; font-size: clamp(26px, 5vw, 36px); line-height: 1.25; font-weight: 700; }
.hero h1 b { color: #ffb59c; font-weight: 700; }
.hero .dday { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff; font-weight: 700; padding: 8px 16px; border-radius: 999px; font-size: 17px; }
.hero .camp-title { margin-top: 10px; font-size: 15px; opacity: .8; }
.hero .chars { display: flex; align-items: flex-end; gap: 0; position: relative; z-index: 1; }
.hero .chars img { height: 170px; }
.hero .chars img + img { margin-left: -26px; }
.steps-title { display: flex; align-items: center; gap: 10px; margin: 30px 4px 14px; font-size: 21px; font-weight: 700; color: var(--brand); }
.steps-title img { width: 34px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; position: relative; }
.steps::before { content: ''; position: absolute; left: 12%; right: 12%; top: 58px; border-top: 4px dashed rgba(255, 99, 52, .45); z-index: 0; }
.step { position: relative; z-index: 1; display: grid; gap: 10px; align-content: start; text-align: left; border: 0; background: #fff; border-radius: 26px; padding: 22px 20px 20px; text-decoration: none; color: var(--ink); cursor: pointer; transition: transform .15s; min-height: 250px; }
@media (hover: hover) { .step:hover { transform: translateY(-4px); } }
.step .num { width: 72px; height: 72px; border-radius: 22px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 26px; font-weight: 700; }
.step .nm { font-size: 26px; font-weight: 700; color: var(--brand); line-height: 1.1; }
.step .ko { font-size: 15px; color: var(--muted); font-weight: 600; }
.step .ds { font-size: 16px; }
.step .when { font-size: 14px; color: var(--muted); }
.step .st { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; width: max-content; }
.step.open { background: #fff; outline: 4px solid var(--accent); outline-offset: -4px; }
.step.open .num { background: var(--accent); color: #fff; }
.step.open .st { background: var(--accent-soft); color: #c63b14; }
.step.open .st::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.step.upcoming { background: #e9edee; cursor: default; }
@media (hover: hover) { .step.upcoming:hover { transform: none; } }
.step.upcoming .num { background: #dfe4e5; color: #8b9794; }
.step.upcoming .nm { color: #7d8a87; }
.step.upcoming .st { background: #dfe4e5; color: #66726f; }
.step.closed .st { background: var(--brand-soft); color: var(--brand); }
.step .bar { height: 10px; background: var(--sky); border-radius: 99px; overflow: hidden; }
.step .bar i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.step .go { margin-top: auto; font-weight: 700; color: var(--accent); display: inline-flex; align-items: center; gap: 4px; }

/* 단계 페이지 머리 */
.ph-head { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; background: #fff; border-radius: 28px; padding: 24px 26px; }
.ph-head .tag { font-size: 14px; font-weight: 700; color: var(--accent); letter-spacing: .08em; }
.ph-head h1 { margin: 2px 0 6px; font-size: clamp(28px, 5vw, 36px); font-weight: 700; color: var(--brand); }
.ph-head p { margin: 0; color: var(--muted); font-size: 16px; }
.ph-head .when { display: inline-block; margin-top: 10px; background: var(--brand-soft); color: var(--brand); font-weight: 700; padding: 6px 12px; border-radius: 999px; font-size: 14px; }
.ph-head img { height: 140px; }

/* 미션 카드 */
.mission { background: #fff; border-radius: 28px; padding: 24px 24px 26px; margin-top: 18px; display: grid; gap: 16px; }
.m-head { display: flex; align-items: center; gap: 14px; }
.m-no { flex: none; width: 58px; height: 58px; border-radius: 18px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; line-height: 1.1; text-align: center; }
.m-head h2 { margin: 0; font-size: 22px; font-weight: 700; color: var(--brand); }
.m-head p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.m-done { margin-left: auto; flex: none; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 14px; padding: 6px 12px; border-radius: 999px; }
.m-done.ok { background: var(--accent); color: #fff; }
.how { background: #fff1ea; border-radius: 20px; padding: 16px 20px; }
.how-t { font-weight: 700; color: #c63b14; font-size: 15px; margin-bottom: 10px; }
.how ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 18px; }
.how li { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.how b { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 15px; }
.slots { display: grid; grid-template-columns: repeat(2, minmax(0, 260px)); gap: 16px; justify-content: center; }
.slot { position: relative; border-radius: 22px; background: var(--sky); aspect-ratio: 3 / 4; overflow: hidden; display: grid; place-items: center; text-align: center; }
.slot.empty { cursor: pointer; background: repeating-linear-gradient(45deg, #f3f5f6 0 14px, #eef2f2 14px 28px); outline: 3px dashed #c8d3d0; outline-offset: -10px; transition: outline-color .15s; }
@media (hover: hover) { .slot.empty:hover { outline-color: var(--accent); } }
.slot .lbl { position: absolute; top: 12px; left: 12px; background: var(--brand); color: #fff; font-weight: 700; font-size: 14px; padding: 4px 10px; border-radius: 999px; z-index: 1; }
.slot .ph { display: grid; gap: 8px; justify-items: center; color: var(--brand); font-weight: 700; font-size: 17px; padding: 20px; }
.slot .ph svg { width: 48px; height: 48px; color: var(--accent); }
.slot .ph small { color: var(--muted); font-weight: 500; font-size: 14px; }
.slot img.photo { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.slot .acts { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; gap: 8px; justify-content: center; }
.slot .acts button { background: rgba(255, 255, 255, .94); color: var(--brand); }
.slot .busy { position: absolute; inset: 0; background: rgba(255, 255, 255, .8); display: grid; place-items: center; font-weight: 700; color: var(--brand); }
.cheer { display: flex; align-items: center; gap: 12px; background: var(--accent-soft); border-radius: 20px; padding: 12px 16px; font-weight: 700; color: #b8400f; }
.cheer img { width: 56px; }
.map-card { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; align-items: center; }
.map-card .pic { border-radius: 22px; overflow: hidden; position: relative; aspect-ratio: 1500 / 850; background: #cfe0c8; }
.map-card .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.map-card .pic .mascot { position: absolute; right: 10px; bottom: 6px; width: 70px; height: auto; animation: float 2.6s ease-in-out infinite; }
.prog { display: grid; gap: 12px; }
.prog .row { display: grid; gap: 6px; }
.prog .row .t { display: flex; justify-content: space-between; font-weight: 700; font-size: 15px; color: var(--brand); }
.prog .row .bar { height: 14px; background: var(--sky); border-radius: 99px; overflow: hidden; }
.prog .row .bar i { display: block; height: 100%; border-radius: 99px; background: var(--brand); transition: width .6s ease; }
.prog .row.o .bar i { background: var(--accent); }
.score-big { font-size: 34px; font-weight: 700; color: var(--accent); line-height: 1; }

/* 잠김 화면 */
.lock-card { background: #fff; border-radius: 30px; padding: 40px 24px; margin-top: 18px; display: grid; justify-items: center; gap: 12px; text-align: center; }
.lock-card img { height: 180px; }
.lock-card h2 { margin: 0; font-size: 26px; color: var(--brand); }
.lock-card p { margin: 0; color: var(--muted); font-size: 17px; }

/* 기존 화면(현장 퀴즈, 후기)을 학생 디자인에 맞춤 */
.kid .live-card, .kid .card { border: 0; border-radius: 26px; box-shadow: none; }
.kid .live-card h2 { font-size: 24px; color: var(--brand); }
.kid .live-card .big { color: var(--accent); }
.kid .btn { min-height: 48px; border-radius: 14px; font-size: 16px; border: 0; }
.kid .btn-primary { background: var(--accent); }
@media (hover: hover) { .kid .btn-primary:hover { background: #ff7149; } }
.kid .choice { border-radius: 16px; min-height: 60px; font-size: 18px; }
.kid .choice.right { border-color: var(--brand); background: var(--brand-soft); }
.kid .textarea, .kid .input { border-radius: 16px; font-size: 17px; border: 2px solid #e3e8e6; }
.kid .page { padding-top: 0; }
.kid .table-wrap { border: 0; border-radius: 20px; }
.kid table.data th { background: var(--brand-soft); color: var(--brand); }
.kid .timer { font-size: 22px; color: var(--accent); }

@media (max-width: 820px) {
  .pp-row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .step { min-height: 0; }
}
@media (max-width: 640px) {
  .passport { grid-template-columns: 1fr; }
  .pp-cover { grid-template-columns: auto 1fr; justify-items: start; text-align: left; align-items: center; padding: 16px 18px; }
  .pp-cover img { width: 54px; grid-row: span 3; }
  .pp-cover::after { display: none; }
  .pp-page { padding: 22px 18px; }
  .hero { grid-template-columns: 1fr; padding: 22px; }
  .hero .chars { justify-content: center; }
  .hero .chars img { height: 130px; }
  .ph-head { grid-template-columns: 1fr; }
  .ph-head img { display: none; }
  .how ol { grid-template-columns: 1fr; }
  .map-card { grid-template-columns: 1fr; }
  .k-top-in .logo { height: 32px; }
  .k-chip .nm { max-width: 6em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* 글꼴은 전부 에이투지체(A2Z). @font-face는 app.css에 있어요 */
.kid h1, .kid h2, .kid .k-btn, .kid .pp-tag, .kid .pp-cover .t2, .kid .tk-stub .s2, .kid .pp-stamp b, .kid .pd-t b, .kid .pd-fields dd.nm, .kid .pv-head b, .kid .trip .n, .kid .hero .dday, .kid .steps-title,
.kid .step .num, .kid .step .nm, .kid .step .st, .kid .step .go, .kid .m-no, .kid .m-done, .kid .score-big,
.kid .k-field label, .kid .ph-head .tag, .kid .ph-head .when, .kid .slot .lbl, .kid .slot .ph, .kid .cheer, .kid .k-chip,
.kid .live-card h2, .kid .live-card .big, .kid .result-banner, .kid .timer, .kid .how b, .kid .how-t,
.safari-root .hud-btn, .safari-root .hud-score .v, .safari-root .codex-book .t, .sheet-head h2, .quiz-q, .tagline,
.codex-head h2, .dept-card .n, .coach .h, .bld-label, .clear-badge {
  font-family: 'A2Z', sans-serif;
  letter-spacing: -0.01em;
}
.kid h1, .kid h2, .sheet-head h2, .codex-head h2 { line-height: 1.3; }
.kid .k-input { font-family: 'A2Z', sans-serif; font-weight: 500; }

.kid { word-break: keep-all; }

/* 모바일: 미션 머리는 [미션 번호 | 진행] 한 줄 + 제목과 설명은 아래 전체 폭 */
@media (max-width: 640px) {
  .mission { padding: 20px 18px 22px; border-radius: 24px; }
  .m-head { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px 10px; }
  .m-head > div { grid-column: 1 / -1; order: 3; }
  .m-head .m-done { justify-self: end; }
  .m-head h2 { font-size: 21px; line-height: 1.35; }
  .slots { gap: 10px; }
  .slot { aspect-ratio: auto; min-height: 200px; }
  .slot .ph { padding: 36px 10px 16px; font-size: 15px; gap: 6px; }
  .slot .ph svg { width: 40px; height: 40px; }
  .slot .ph small { font-size: 12px; }
  .slot img.photo { position: absolute; inset: 0; }
}
/* 후기 사진 첨부: 누를 수 있는 넓은 버튼으로 */
.kid .rv-attach { width: 100%; justify-content: center; min-height: 56px; background: #e3efe9; color: var(--brand); border-radius: 16px; font-size: 16px; font-weight: 700; cursor: pointer; }
@media (hover: hover) { .kid .rv-attach:hover { background: #d6e8df; } }

/* Pre-Log 미션 1: 탐험일지 6, 7쪽을 펼친 책처럼 보여 주고 채울 칸을 표시 */
.bk-guide { display: grid; gap: 14px; }
.bk-spread { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0; max-width: 640px; margin: 0 auto; width: 100%;
  padding: 14px 14px 12px; border-radius: 18px; background: #e9e2d6; box-shadow: inset 0 -6px 0 #ddd3c3; }
.bk-spread::after { content: ''; position: absolute; top: 14px; bottom: 40px; left: 50%; width: 28px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, .14) 45%, rgba(0, 0, 0, .2) 50%, rgba(0, 0, 0, .14) 55%, transparent); pointer-events: none; }
.bk-pg { margin: 0; display: grid; gap: 8px; }
.bk-sheet { position: relative; aspect-ratio: 794 / 1123; background: #fff; overflow: hidden; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }
.bk-pg:first-child .bk-sheet { border-radius: 6px 0 0 6px; }
.bk-pg:last-child .bk-sheet { border-radius: 0 6px 6px 0; }
.bk-sheet img { width: 100%; height: 100%; display: block; }
.bk-hl { position: absolute; border-radius: 6px; outline: 3px solid var(--accent); background: rgba(255, 99, 52, .14); animation: bkPulse 1.6s ease-in-out infinite; }
.bk-hl i, .bk-list i { font-style: normal; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 13px; }
.bk-hl i { position: absolute; top: -12px; left: -10px; box-shadow: 0 0 0 2px #fff; }
@keyframes bkPulse { 0%, 100% { outline-color: var(--accent); } 50% { outline-color: rgba(255, 99, 52, .35); } }
.bk-pg figcaption { text-align: center; font-size: 14px; color: #5b5346; }
.bk-pg figcaption b { display: inline-block; margin-right: 6px; padding: 2px 9px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 13px; }
.bk-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bk-list li { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; background: #fff1ea; font-size: 14.5px; line-height: 1.35; }
.bk-list li i { flex: none; }
.bk-list li b { color: var(--brand); margin-right: 2px; }
.slot .ghost { position: absolute; inset: 14% 18% auto; width: 64%; opacity: .16; pointer-events: none; }
.slot img.ghost + .ph { position: relative; }
@media (max-width: 640px) {
  .bk-spread { padding: 10px 10px 8px; }
  .bk-list { grid-template-columns: 1fr; }
  .bk-pg figcaption { font-size: 12.5px; }
}
.bk-open { display: flex; align-items: center; gap: 10px; width: 100%; padding: 14px 18px; border: 0; border-radius: 16px; background: #fff1ea;
  font: inherit; font-size: 15.5px; color: var(--text, #23302b); cursor: pointer; text-align: left; transition: background .15s; }
@media (hover: hover) { .bk-open:hover { background: #ffe3d6; } }
.bk-open svg { width: 22px; height: 22px; color: var(--accent); flex: none; }
.bk-open b { margin-left: auto; display: flex; align-items: center; gap: 4px; color: var(--accent); font-weight: 700; }
.bk-open .chev { width: 18px; height: 18px; transition: transform .2s; }
.bk-toggle.open .bk-open { border-radius: 16px 16px 0 0; }
.bk-toggle.open .chev { transform: rotate(180deg); }
.bk-panel { display: grid; gap: 14px; padding: 6px 14px 16px; border-radius: 0 0 16px 16px; background: #fff1ea; }
.bk-panel[hidden] { display: none; }
.bk-panel .bk-list li { background: #fff; }
.bk-panel .how { padding: 4px 6px 0; }

/* 1단계: 탐험 입장권(티켓) */
.ticket { width: min(820px, 100%); display: grid; grid-template-columns: 1fr 210px; filter: drop-shadow(0 22px 34px rgba(16, 75, 58, .16)); transition: transform .6s ease, opacity .6s ease; }
.tk-main { position: relative; background: #104B3A; color: #fff; border-radius: 26px 0 0 26px; padding: 30px 40px 32px; display: grid; gap: 14px;
  -webkit-mask: radial-gradient(circle at 100% 0, transparent 16px, #000 16.5px) top / 100% 51% no-repeat, radial-gradient(circle at 100% 100%, transparent 16px, #000 16.5px) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle at 100% 0, transparent 16px, #000 16.5px) top / 100% 51% no-repeat, radial-gradient(circle at 100% 100%, transparent 16px, #000 16.5px) bottom / 100% 51% no-repeat; }
.tk-main::after { content: ''; position: absolute; top: 22px; bottom: 22px; right: 0; border-right: 3px dashed rgba(255, 255, 255, .35); }
.tk-top { display: flex; justify-content: space-between; font-size: 13px; letter-spacing: .2em; font-weight: 700; color: #ffb59c; }
.tk-main h1 { margin: 0; font-size: 28px; font-weight: 700; color: #fff; }
.tk-main .k-field label { color: rgba(255, 255, 255, .9); }
.tk-main .k-input { color: #1f2a26; background: #fff; }
.tk-main .k-input::placeholder { color: #9aa5a0; }
.tk-main .k-err { color: #ffc2ad; }
.tk-main .sub { margin: -8px 0 2px; color: rgba(255, 255, 255, .72); font-size: 16px; }
.tk-form { display: grid; gap: 14px; }
.tk-stub { position: relative; background: #fff; color: var(--brand); border-radius: 0 26px 26px 0; padding: 26px 18px; display: grid; justify-items: center; align-content: center; gap: 8px; text-align: center;
  -webkit-mask: radial-gradient(circle at 0 0, transparent 16px, #000 16.5px) top / 100% 51% no-repeat, radial-gradient(circle at 0 100%, transparent 16px, #000 16.5px) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle at 0 0, transparent 16px, #000 16.5px) top / 100% 51% no-repeat, radial-gradient(circle at 0 100%, transparent 16px, #000 16.5px) bottom / 100% 51% no-repeat;
  transition: transform .6s cubic-bezier(.5, 0, .7, 1), opacity .6s; }
.tk-stub img { width: 92px; }
.tk-stub .s1 { font-size: 14px; letter-spacing: .3em; font-weight: 700; opacity: .9; }
.tk-stub .s2 { font-size: 18px; font-weight: 700; }
.tk-stub .bar { width: 120px; height: 42px; margin-top: 10px; background: repeating-linear-gradient(90deg, #104B3A 0 3px, transparent 3px 5px, #104B3A 5px 6px, transparent 6px 10px, #104B3A 10px 14px, transparent 14px 16px); opacity: .85; }
.ticket.torn .tk-stub { transform: translate(60px, 40px) rotate(14deg); opacity: 0; }
.ticket.torn .tk-main { transform: scale(.96); opacity: 0; transition: transform .5s ease .15s, opacity .5s ease .15s; }

/* 2단계: 탐험 여권. 열린 뒤는 도형으로(진초록 가죽 표지, 크림색 속지, 가운데 실 제본) */
.pass { position: relative; width: min(980px, 100%); container-type: inline-size; perspective: 2400px; }
/* 영상 속 여권(1152x768 중 x49~1104, y63~694)이 도형 여권과 같은 자리에 오도록 키우고 당겨요 */
.pass-vid { position: absolute; z-index: 6; left: -4.64%; top: -9.98%; width: 109.2%; height: auto; pointer-events: none; display: none; transition: opacity .35s ease;
  mix-blend-mode: darken;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 3.5%, #000 96.5%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 6.5%, #000 92%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent 0, #000 3.5%, #000 96.5%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 6.5%, #000 92%, transparent 100%); mask-composite: intersect; }
.pass.vid .pass-vid { display: block; }
.pass.vid .pass-in { visibility: hidden; }
.pass.vid.vid-end .pass-in { visibility: visible; }
.pass.vid-end .pass-vid { opacity: 0; }
.pass.vid .pass-cover { display: none; }
@media (min-width: 721px) { .pass-in { aspect-ratio: 1055 / 631; } .pass-page { min-height: 0; } }
.pass-in { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 1.2cqw; border-radius: 2.4cqw; background: #104B3A;
  box-shadow: 0 0 0 3px #0b2f25, 0 2.6cqw 5cqw rgba(16, 75, 58, .22); font-size: 1.45cqw; }
.pass-page { position: relative; min-height: 50cqw; padding: 2.8cqw 3cqw; display: flex; flex-direction: column; gap: 1.3cqw; overflow: hidden; background-color: #fbf3de;
  background-image: repeating-radial-gradient(ellipse at 50% 140%, rgba(16, 75, 58, .028) 0 1px, transparent 1px 7px); }
.pass-page::before { content: ''; position: absolute; left: 50%; top: 55%; width: 46%; aspect-ratio: 1; translate: -50% -50%; background: url('../brand/symbol.webp') center / contain no-repeat; opacity: .07; pointer-events: none; }
.pass-page > * { position: relative; z-index: 1; }
.pass-page.l { border-radius: 1.4cqw .3cqw .3cqw 1.4cqw; box-shadow: inset -2.2cqw 0 2cqw -1.8cqw rgba(0, 0, 0, .22), inset 0 0 0 1px rgba(0, 0, 0, .06); }
.pass-page.r { border-radius: .3cqw 1.4cqw 1.4cqw .3cqw; box-shadow: inset 2.2cqw 0 2cqw -1.8cqw rgba(0, 0, 0, .22), inset 0 0 0 1px rgba(0, 0, 0, .06);
  background-image: repeating-radial-gradient(ellipse at 50% -40%, rgba(16, 75, 58, .028) 0 1px, transparent 1px 7px); }
.pass-in::before { content: ''; position: absolute; top: 3cqw; bottom: 3cqw; left: 50%; width: .5cqw; translate: -50% 0; z-index: 2; pointer-events: none;
  background: repeating-linear-gradient(to bottom, #8a6a3d 0 2.2cqw, transparent 2.2cqw 4.2cqw); border-radius: 1cqw; opacity: .7; }
/* 일러스트 표지가 오른쪽 면을 덮고 있다가 왼쪽으로 넘어가요 */
.pass-cover { position: absolute; top: 0; bottom: 0; left: 50%; width: 50%; z-index: 4; transform-origin: left center; transition: transform 1.2s cubic-bezier(.55, .05, .25, 1); transform-style: preserve-3d; }
.pass-cover img { width: 100%; height: 100%; object-fit: fill; display: block; backface-visibility: hidden; filter: drop-shadow(0 1cqw 1.6cqw rgba(0, 0, 0, .25)); }
.pass-cover::after { content: ''; position: absolute; inset: 0; border-radius: 2.4cqw .4cqw .4cqw 2.4cqw; background: #104B3A; transform: rotateY(180deg); backface-visibility: hidden; box-shadow: inset 0 0 0 1.2cqw #0e4334; }
.pass.open .pass-cover { transform: rotateY(-180deg); }
.pass.done .pass-cover { opacity: 0; pointer-events: none; transition: opacity .3s; }
.pass .pass-page > * { opacity: 0; transition: opacity .4s ease; }
.pass.done .pass-page > * { opacity: 1; }
.pb-pager { display: flex; align-items: center; gap: .8em; align-self: flex-start; }
.pb-pager button { width: 2.4em; height: 2.4em; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); display: grid; place-items: center; cursor: pointer; color: var(--brand); }
.pb-pager button:disabled { opacity: .35; cursor: default; }
.pb-pager .icon { width: 1.2em; height: 1.2em; }
.pb-pager span { font-weight: 700; color: var(--brand); font-size: .95em; }
.pb-stamps.turn-r { animation: pgTurnR .45s ease; }
.pb-stamps.turn-l { animation: pgTurnL .45s ease; }
@keyframes pgTurnR { 0% { opacity: 0; transform: translateX(14%); } 100% { opacity: 1; transform: none; } }
@keyframes pgTurnL { 0% { opacity: 0; transform: translateX(-14%); } 100% { opacity: 1; transform: none; } }
/* 신원 면(진짜 여권 데이터 페이지처럼) */
.pd { display: flex; flex-direction: column; gap: 1.3em; height: 100%; color: #1f2a26; }
.pd-top { display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid rgba(16, 75, 58, .22); padding-bottom: .6em; }
.pd-t { display: grid; color: var(--brand); font-size: .8em; letter-spacing: .22em; font-weight: 600; }
.pd-t b { font-size: 1.75em; letter-spacing: 0; }
.pd-brand { display: inline-flex; align-items: center; gap: .4em; font-size: .78em; letter-spacing: .18em; font-weight: 700; color: var(--accent); }
.pd-brand img { width: 2em; }
.pd-codes { display: grid; grid-template-columns: auto auto 1fr; gap: 1.4em; }
.pd dt { font-size: .72em; color: #7a857f; letter-spacing: .02em; margin-bottom: .15em; white-space: nowrap; }
.pd dd { margin: 0; font-weight: 700; font-size: 1.05em; }
.pd-main { flex: 1; display: grid; grid-template-columns: 44% 1fr; gap: 1.4em; align-items: stretch; }
.pd-photo { aspect-ratio: 3 / 4; align-self: start; border-radius: .7em; overflow: hidden; background: #e7efe9; box-shadow: 0 0 0 2px rgba(16, 75, 58, .2); display: grid; place-items: end center; }
.pd-photo img.me { width: 100%; height: 100%; object-fit: cover; }
.pd-photo img.mascot { width: 88%; margin-bottom: -4%; }
.pd-fields { margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: .9em; }
.pd-fields dd { font-size: 1.3em; line-height: 1.25; word-break: keep-all; }
.pd-fields dt { font-size: .8em; }
.pd-fields dd.nm { font-size: 2.3em; color: var(--brand); line-height: 1.1; }
.pd-mrz { margin-top: 0; padding: .8em .9em; border-radius: .5em; background: rgba(16, 75, 58, .07); display: grid; gap: .2em; font-family: ui-monospace, Menlo, monospace; font-size: .86em; letter-spacing: .12em; color: #3e4c46; white-space: nowrap; overflow: hidden; }
/* 도장 면 */
.pv-head { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 2px solid rgba(16, 75, 58, .22); padding-bottom: .6em; color: var(--brand); }
.pv-head b { font-size: 1.75em; }
.pv-head span { font-size: .8em; letter-spacing: .22em; font-weight: 600; }
.pb-hint { margin: 0; color: #5f6b65; font-size: .95em; line-height: 1.45; }
.pb-stamps { display: flex; flex-wrap: wrap; gap: 1.6em 2em; padding-top: .6em; }
.pp-stamp { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; }
.pp-stamp .ink { width: 11.5em; aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; justify-items: center; gap: .2em; text-align: center; padding: 1em;
  border: .32em solid currentColor; box-shadow: inset 0 0 0 .3em rgba(255, 255, 255, .5), inset 0 0 0 .45em currentColor; background: rgba(255, 255, 255, .25);
  mix-blend-mode: multiply; rotate: calc(-10deg + var(--i, 0) * 9deg); }
.pp-stamp .sk { font-size: .72em; letter-spacing: .24em; font-weight: 700; }
.pp-stamp .sl { font-size: .62em; letter-spacing: .2em; font-weight: 700; opacity: .85; }
.pp-stamp .ink b { font-size: 1.22em; line-height: 1.2; padding: .15em 0; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; word-break: keep-all; }
.pp-stamp .sd { font-size: .8em; font-weight: 700; letter-spacing: .08em; }
.pp-stamp.c0 { color: var(--accent); }
.pp-stamp.c1 { color: var(--brand); }
.pp-stamp.c2 { color: #2f6fb3; }
@media (hover: hover) { .pp-stamp:hover .ink { background: rgba(255, 255, 255, .6); } }
.pp-stamp.off { opacity: .5; }
.pp-stamp.pressed .ink { animation: stampPress .35s ease; }
@keyframes stampPress { 40% { transform: scale(.92); } 100% { transform: scale(1); } }
/* 꽝: 위에서 크게 내려와 찍히고, 종이가 살짝 흔들려요 */
.pass .pp-stamp .ink { opacity: 0; transform: scale(2.4); }
.pass.done .pp-stamp .ink { animation: stampSlam .42s cubic-bezier(.5, 0, .75, 1.4) forwards; animation-delay: calc(.35s + var(--i, 0) * .45s); }
@keyframes stampSlam { 0% { opacity: 0; transform: scale(2.4); } 70% { opacity: 1; transform: scale(.94); } 100% { opacity: 1; transform: scale(1); } }
.pass.done .pass-page.r { animation: pageThud .3s ease .65s; }
@keyframes pageThud { 30% { transform: translateY(3px); } 60% { transform: translateY(-1px); } 100% { transform: none; } }
.pb-back { align-self: flex-start; border: 0; background: none; color: #5f6b65; font: inherit; font-size: .92em; display: inline-flex; align-items: center; gap: .3em; cursor: pointer; padding: .3em 0; margin-top: auto; }
.pb-back .icon { width: 1.1em; height: 1.1em; }
/* 마이페이지 */
.me-wrap { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 28px; align-items: start; }
.me-pass { position: relative; container-type: inline-size; border-radius: 18px; padding: 6% 6.4%; overflow: hidden; background-color: #fbf3de;
  background-image: repeating-radial-gradient(ellipse at 50% 140%, rgba(16, 75, 58, .028) 0 1px, transparent 1px 7px); box-shadow: 0 0 0 10px #104B3A, 0 0 0 13px #0b2f25, 0 20px 40px rgba(16, 75, 58, .2); margin: 14px; }
.me-pass::before { content: ''; position: absolute; left: 50%; top: 55%; width: 46%; aspect-ratio: 1; translate: -50% -50%; background: url('../brand/symbol.webp') center / contain no-repeat; opacity: .07; pointer-events: none; }
.me-pass > .pd { position: relative; }
  box-shadow: 0 0 0 10px #104B3A, 0 20px 40px rgba(16, 75, 58, .2); margin: 10px; }
.me-pass > .pd { font-size: 3.6cqw; min-height: 130cqw; }
.me-side { display: grid; gap: 14px; align-content: start; padding-top: 10px; }
.me-side h1 { margin: 0; font-size: 28px; color: var(--brand); }
.me-side p { margin: 0; line-height: 1.5; }
.me-side .k-btn { justify-self: start; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.me-side .k-btn .icon { width: 20px; height: 20px; }
.k-chip { text-decoration: none; color: inherit; }
@media (max-width: 720px) {
  .ticket { grid-template-columns: 1fr; }
  .tk-main { border-radius: 22px 22px 0 0; padding: 24px 20px; -webkit-mask: none; mask: none; }
  .tk-main::after { top: auto; left: 18px; right: 18px; bottom: 0; border-right: 0; border-bottom: 3px dashed rgba(255, 255, 255, .35); }
  .tk-stub { border-radius: 0 0 22px 22px; grid-template-columns: auto 1fr; justify-items: start; text-align: left; padding: 16px 20px; -webkit-mask: none; mask: none; }
  .tk-stub img { width: 54px; grid-row: span 2; }
  .tk-stub .bar { display: none; }
  /* 세로로 펼친 여권: 두 면 높이를 똑같이 맞춰야 가운데 실 제본과 표지가 접힘선에 정확히 와요 */
  .pass-in { grid-template-columns: 1fr; grid-auto-rows: 1fr; font-size: 3.6cqw; padding: 2.4cqw; border-radius: 5cqw; }
  .pass-page { min-height: 0; padding: 6cqw; gap: 3cqw; }
  .pass-page.l { border-radius: 3cqw 3cqw .6cqw .6cqw; box-shadow: inset 0 -4cqw 4cqw -3.6cqw rgba(0, 0, 0, .22); }
  .pass-page.r { border-radius: .6cqw .6cqw 3cqw 3cqw; box-shadow: inset 0 4cqw 4cqw -3.6cqw rgba(0, 0, 0, .22); }
  .pass-in::before { top: 50%; bottom: auto; left: 2.4cqw; right: 2.4cqw; width: auto; height: 3cqw; translate: 0 -50%; border-radius: 0; opacity: 1;
    background: repeating-linear-gradient(to right, #8a6a3d 0 3cqw, transparent 3cqw 6cqw) center / calc(100% - 8cqw) .8cqw no-repeat,
      linear-gradient(to bottom, transparent, rgba(0, 0, 0, .1) 45%, rgba(0, 0, 0, .14) 50%, rgba(0, 0, 0, .1) 55%, transparent); }
  .pass-vid { position: static; width: 100%; }
  .pass.vid:not(.vid-end) .pass-in { display: none; }
  .pass.vid-end .pass-vid { display: none; }
  .pass-cover { left: 0; width: 100%; top: 50%; bottom: 0; transform-origin: center top; }
  .pass-cover img { object-fit: cover; border-radius: 4cqw; }
  .pass.open .pass-cover { transform: rotateX(180deg); }
  .me-wrap { grid-template-columns: 1fr; }
}

/* 장학카드 안내 */
.rw { display: grid; gap: 16px; }
.rw-card { position: relative; justify-self: center; width: min(320px, 100%); aspect-ratio: 1.586; border-radius: 18px; padding: 18px 20px; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, #104B3A 0%, #17654d 60%, #104B3A 100%); box-shadow: 0 14px 30px rgba(16, 75, 58, .3); display: grid; align-content: space-between; }
.rw-card::after { content: ''; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255, 99, 52, .22); }
.rw-top { display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .14em; line-height: 1.3; }
.rw-top img { width: 34px; }
.rw-top b { font-size: 17px; letter-spacing: 0; }
.rw-chip { width: 42px; height: 30px; border-radius: 6px; background: linear-gradient(135deg, #f3d68a, #c9a24e); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.rw-amt { font-size: 30px; font-weight: 700; }
.rw-card.won .rw-amt { color: #ffd84d; }
.rw-sub { font-size: 12.5px; opacity: .85; }
.rw-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rw-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; line-height: 1.45; }
.rw-list li > b { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 13px; }
.rw-list li span b { color: var(--brand); }
.rw-now { text-align: center; font-weight: 700; color: var(--brand); background: var(--sky, #eef4f1); border-radius: 12px; padding: 10px; }
.rw-now.won { background: #fff1ea; color: var(--accent); }
.rw-open { display: inline-flex; align-items: center; gap: 6px; }
.rw-open .icon { width: 18px; height: 18px; }

/* 필드로그 미리보기 */
.fp-head .when { display: inline-flex; align-items: center; gap: 6px; }
.fp-head .when .icon { width: 16px; height: 16px; }
.mentor-row { display: flex; gap: 16px; flex-wrap: wrap; }
.mentor { display: grid; justify-items: center; gap: 4px; width: 128px; text-align: center; }
.mentor .mt-ph { position: relative; width: 112px; height: 112px; border-radius: 50%; overflow: hidden; background: linear-gradient(#e3ece7, #cfdcd5); box-shadow: 0 0 0 4px #fff, 0 6px 14px rgba(16, 75, 58, .15); }
.mentor .mt-ph img { width: 100%; height: 100%; object-fit: cover; filter: blur(14px) saturate(.8); transform: scale(1.25); user-select: none; pointer-events: none; }
.mentor .q { position: absolute; inset: 0; display: grid; place-items: center; font-size: 44px; font-weight: 700; color: #fff; text-shadow: 0 2px 8px rgba(16, 75, 58, .45); }
.mentor.none .q { color: var(--brand); text-shadow: none; opacity: .5; }
.mentor b { font-size: 16px; color: var(--brand); margin-top: 6px; }
.mentor span { font-size: 13px; color: var(--muted); }
.wish-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.k-chip-btn { border: 0; background: var(--sky, #eef4f1); color: var(--brand); font: inherit; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; cursor: pointer; }
@media (hover: hover) { .k-chip-btn:hover { background: #dfeee7; } }
.wish-ta { width: 100%; resize: vertical; min-height: 92px; font: inherit; font-size: 16px; line-height: 1.5; padding: 14px 16px; }
.wish-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wish-foot .k-btn { display: inline-flex; align-items: center; gap: 6px; }
.wish-foot .k-btn .icon { width: 18px; height: 18px; }
.gr-drafts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gr-draft { border: 0; text-align: left; font: inherit; font-size: 14.5px; line-height: 1.45; background: #fffaf0; color: #3c4a44; padding: 12px 14px; border-radius: 14px; cursor: pointer; box-shadow: 0 1px 3px rgba(0, 0, 0, .06); }
.gr-draft span { display: block; font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.gr-draft.on { background: #fff1ea; box-shadow: 0 0 0 2px var(--accent); }
.m-done.ok { background: #e3f4ea; color: #1d7a4a; }

/* 기대평 벽: 모바일 청첩장 방명록처럼 둥둥 */
.wall-title { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--brand); margin-top: 6px; }
.wall-title .icon { width: 18px; height: 18px; color: var(--accent); }
.wall { position: relative; height: 340px; border-radius: 22px; overflow: hidden; background: linear-gradient(180deg, #f6fbf8, #eef6f1); }
.wall.empty { height: auto; padding: 26px; text-align: center; color: var(--muted); }
.wall.empty p { margin: 0; }
.wb { position: absolute; bottom: -120px; max-width: 46%; padding: 12px 14px 10px; border-radius: 18px; box-shadow: 0 6px 16px rgba(16, 75, 58, .1); animation: wbFloat 18s linear infinite; }
.wb p { margin: 0 0 4px; font-size: 14.5px; line-height: 1.45; color: #23302b; word-break: keep-all; }
.wb span { font-size: 12px; font-weight: 700; color: var(--muted); }
.wb.c0 { background: #fff; }
.wb.c1 { background: #fff1ea; }
.wb.c2 { background: #eaf5ff; }
.wb.c3 { background: #fff8d9; }
.wb.mine { box-shadow: 0 0 0 2px var(--accent), 0 6px 16px rgba(16, 75, 58, .12); }
.wb.mine span { color: var(--accent); }
@keyframes wbFloat { 0% { transform: translate(0, 0); opacity: 0; } 8% { opacity: 1; } 50% { transform: translate(14px, -240px); } 92% { opacity: 1; } 100% { transform: translate(-6px, -500px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wb { animation: none; position: static; display: inline-block; margin: 6px; max-width: none; } .wall { height: auto; padding: 10px; } }
.home-wall { margin-top: 28px; display: grid; gap: 12px; }
.home-wall .steps-title { display: flex; align-items: center; gap: 8px; }
.home-wall .steps-title .icon { width: 22px; height: 22px; color: var(--accent); }
.hw-edit { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--muted); }
.hw-cta { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: 22px; background: #fff; text-decoration: none; color: inherit; box-shadow: 0 6px 18px rgba(16, 75, 58, .08); }
.hw-cta img { width: 74px; }
.hw-cta div { display: grid; gap: 2px; flex: 1; }
.hw-cta b { font-size: 19px; color: var(--brand); }
.hw-cta span { color: var(--muted); }
.hw-cta > .icon { width: 26px; height: 26px; color: var(--accent); }
.step.peek { cursor: pointer; }
.step.peek .go { color: var(--accent); }
@media (max-width: 640px) { .gr-drafts { grid-template-columns: 1fr; } .wb { max-width: 70%; } .mentor { width: 96px; } .mentor .mt-ph { width: 84px; height: 84px; } }

/* 프리로그 완주 보너스(미션과 구분되는 보상 칸) */
.bonus { scroll-margin-top: 80px; }
.bn-tag { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: #fff; background: var(--accent); padding: 4px 12px; border-radius: 999px; }
.bonus-lock { display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: 24px; background: #fff; border: 2px dashed #d6dfdb; }
.bonus-lock > .icon { width: 40px; height: 40px; flex: none; color: #9aa8a2; }
.bonus-lock h2 { margin: 8px 0 4px; font-size: 21px; color: var(--brand); }
.bonus-lock p { margin: 0; color: var(--muted); line-height: 1.5; }
.bonus-head { padding: 26px 24px 8px; border-radius: 26px 26px 0 0; background: linear-gradient(135deg, #104B3A, #17654d); color: #fff; }
.bonus-head h2 { margin: 10px 0 4px; font-size: 26px; color: #fff; }
.bonus-head p { margin: 0 0 14px; opacity: .85; }
.bonus { display: grid; gap: 0; }
.bonus .bonus-card { background: #fff; padding: 22px 24px; display: grid; gap: 12px; border-top: 1px solid #edf1ef; }
.bonus .bonus-card:last-child { border-radius: 0 0 26px 26px; }
.bonus .bonus-head + .bonus-card { border-top: 0; }
.bonus-card h3 { margin: 0; font-size: 20px; color: var(--brand); }
.bonus-card > p { margin: -4px 0 0; }
.bc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hw-cta.lock > .icon { color: #9aa8a2; }

/* 데모용 날짜 바꾸기(테스트 계정, 왼쪽 아래) */
.demo-date { position: fixed; left: 16px; bottom: 16px; z-index: 900; display: grid; gap: 8px; justify-items: start; }
.dd-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 14px; padding: 10px 14px; background: rgba(22, 25, 42, .86); color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: 0 6px 16px rgba(0, 0, 0, .2); }
.dd-btn b { color: #ffd84d; }
.dd-btn .icon { width: 17px; height: 17px; }
.dd-menu { order: -1; display: grid; gap: 4px; padding: 8px; border-radius: 16px; background: #fff; box-shadow: 0 10px 28px rgba(0, 0, 0, .18); min-width: 230px; }
.dd-menu[hidden] { display: none; }
.dd-menu button { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 0; background: none; font: inherit; text-align: left; padding: 9px 12px; border-radius: 10px; cursor: pointer; }
@media (hover: hover) { .dd-menu button:hover { background: #f3f6f4; } }
.dd-menu button.on { background: #fff1ea; }
.dd-menu button b { font-size: 14.5px; color: var(--brand); }
.dd-menu button span { font-size: 13px; color: var(--muted); }
.dd-pick { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px 4px; font-size: 13.5px; color: var(--muted); border-top: 1px solid #eef1ef; margin-top: 4px; }
.dd-pick input { font: inherit; font-size: 13px; border: 1px solid #dfe5e2; border-radius: 8px; padding: 4px 6px; }
@media (max-width: 640px) { .demo-date { left: 10px; bottom: 10px; } .dd-btn { font-size: 12.5px; padding: 8px 11px; } }

/* 보너스 포인트 미션: 위 카드와 띄우기, 작성 팁, 제출 줄 */
.bonus { margin-top: 26px; }
.bonus-card .tip { margin: -2px 0 0; display: flex; align-items: center; gap: 6px; font-size: 14.5px; color: #8a5a00; background: #fff6dc; padding: 8px 12px; border-radius: 10px; }
.bonus-card .tip .icon { width: 16px; height: 16px; flex: none; }
.bonus-submit { display: flex !important; align-items: center; justify-content: space-between; }
.bonus-submit .k-btn { display: inline-flex; align-items: center; gap: 6px; padding-left: 26px; padding-right: 26px; }
.bonus-submit .k-btn .icon { width: 18px; height: 18px; }

/* 기대평 말풍선: 파스텔 말풍선이 살랑살랑 떠올라요 */
.wall { height: 380px; background: linear-gradient(180deg, #f3faf6, #eaf4ef); }
.wb { bottom: -130px; max-width: 44%; padding: 12px 16px 10px; border-radius: 22px 22px 22px 6px; box-shadow: 0 8px 18px rgba(16, 75, 58, .1); animation-name: wbFloat2; }
.wb.r { border-radius: 22px 22px 6px 22px; }
.wb::after { content: ''; position: absolute; left: 14px; bottom: -8px; width: 16px; height: 12px; background: inherit; clip-path: polygon(0 0, 100% 0, 0 100%); }
.wb.r::after { left: auto; right: 14px; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.wb.c0 { background: #ffffff; }
.wb.c1 { background: #ffe9df; }
.wb.c2 { background: #e3f1ff; }
.wb.c3 { background: #fff3c4; }
.wb.c4 { background: #e6f6e9; }
.wb p { font-size: 15px; font-weight: 600; color: #26332e; }
.wb span { font-size: 12px; }
@keyframes wbFloat2 {
  0% { transform: translate(0, 0) rotate(-2deg); opacity: 0; }
  8% { opacity: 1; }
  25% { transform: translate(12px, -130px) rotate(2deg); }
  50% { transform: translate(-8px, -260px) rotate(-2deg); }
  75% { transform: translate(10px, -390px) rotate(2deg); }
  92% { opacity: 1; }
  100% { transform: translate(0, -520px) rotate(-1deg); opacity: 0; }
}

/* 장학카드 안내: 미션별 진행 */
.rw-steps { display: grid; gap: 6px; background: #f6f9f7; border-radius: 14px; padding: 12px 14px; }
.rw-step { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 15px; }
.rw-step b { color: var(--brand); margin-right: 4px; }
.rw-step em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 3px; }
.rw-step em.ok { color: #1d7a4a; }
.rw-step em .icon { width: 14px; height: 14px; }
.rw-sum { font-size: 13.5px; color: var(--accent); padding: 2px 0 6px; border-bottom: 1px dashed #dfe6e2; }
.rw-sum:last-child { border-bottom: 0; padding-bottom: 0; }

/* 필드로그 버스 퀴즈: 큰 두 버튼, 장학금 배지 */
.fr-badge { margin-left: auto; margin-right: 8px; font-size: 13.5px; font-weight: 700; color: #fff; background: var(--accent); padding: 5px 12px; border-radius: 999px; }
.fr-badge.full { background: #1d7a4a; }
.choices.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice.big-choice { min-height: 120px; flex-direction: column; justify-content: center; text-align: center; font-size: 19px; font-weight: 700; border-radius: 22px; gap: 8px; }
.choice.big-choice .no { width: 38px; height: 38px; font-size: 18px; }
.choice.big-choice.c0:not(:disabled) { background: #fff1ea; }
.choice.big-choice.c1:not(:disabled) { background: #e7f2ff; }
@media (max-width: 520px) { .choice.big-choice { min-height: 100px; font-size: 17px; } }

/* 포스트로그 미션 2: 실천 시간표 인증 */
.mission.practice { margin-top: 20px; }
.pr-plus { display: inline-block; font-size: 14px; color: #fff; background: var(--accent); padding: 2px 10px; border-radius: 999px; vertical-align: middle; }
.pr-photo img { max-width: 360px; width: 100%; border-radius: 14px; cursor: zoom-in; box-shadow: 0 4px 12px rgba(0, 0, 0, .1); }

/* 나의 작은 약속, 멘토 한마디 */
.notes-wrap { display: grid; gap: 12px; margin-top: 18px; }
.note-card { background: #fff; border-radius: 20px; padding: 18px 20px; display: grid; gap: 10px; }
.mission .note-card { background: var(--soft, #F7F9F8); }
.note-card.mentor { background: #FFF4EE !important; }
.nc-k { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--brand); font-size: 16px; }
.nc-k .icon { width: 18px; height: 18px; color: var(--accent); }
.nc-k .muted { font-weight: 500; font-size: 13px; }
.note-card p { margin: 0; font-size: 16px; line-height: 1.55; }
.nc-by { font-size: 13px; color: var(--muted); }
.nc-row { display: flex; gap: 8px; }
.nc-row .k-input { flex: 1; min-width: 0; }
.nc-tip { font-size: 13.5px !important; color: var(--muted); }

/* 프리로그 완료 도장(보너스 미션까지 끝냈을 때). 주황 고무도장이 꽝 찍히고 다음 갈 곳을 버튼 하나로 안내해요 */
.pl-stamp { display: inline-grid; place-items: center; width: 150px; height: 150px; flex: none; transform: rotate(-10deg); }
.pl-stamp .ink { width: 100%; height: 100%; border-radius: 50%; border: 5px double var(--accent); color: var(--accent); display: grid; place-content: center; text-align: center; gap: 2px; line-height: 1.1;
  -webkit-mask-image: radial-gradient(circle at 30% 30%, #000 60%, rgba(0, 0, 0, .78) 61%, #000 75%); mask-image: radial-gradient(circle at 30% 30%, #000 60%, rgba(0, 0, 0, .78) 61%, #000 75%); }
.pl-stamp .s1 { font-size: 11px; font-weight: 700; letter-spacing: .14em; }
.pl-stamp b { font-size: 23px; font-weight: 700; letter-spacing: .02em; }
.pl-stamp .s2 { font-size: 13px; font-weight: 700; letter-spacing: .12em; }
.pl-stamp .s3 { font-size: 11px; font-weight: 600; opacity: .85; }
.pl-clear { position: fixed; inset: 0; z-index: 2000; background: rgba(12, 32, 26, .62); display: grid; place-items: center; padding: 20px; animation: plFade .25s ease; }
.pl-card { width: 100%; max-width: 380px; background: #fffaf2; border-radius: 28px; padding: 30px 24px 22px; text-align: center; display: grid; justify-items: center; gap: 10px; }
.pl-card.thud { animation: pageThud .3s ease; }
.pl-stamp-wrap .pl-stamp { width: 170px; height: 170px; animation: plSlam .5s cubic-bezier(.5, 0, .75, 1.4) .1s both; }
.pl-stamp-wrap .pl-stamp b { font-size: 26px; }
.pl-kicker { margin-top: 6px; font-size: 15px; font-weight: 700; color: var(--accent); }
.pl-card h2 { margin: 0; font-size: 28px; color: var(--brand); }
.pl-card p { margin: 0 0 8px; font-size: 16px; line-height: 1.6; color: var(--ink); }
.pl-card p b { color: var(--brand); }
.pl-card .k-btn { min-height: 60px; font-size: 19px; }
.pl-sub { border: 0; background: none; color: var(--muted); font: inherit; font-size: 15px; font-weight: 600; padding: 10px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
@keyframes plSlam { 0% { opacity: 0; transform: rotate(-10deg) scale(2.6); } 70% { opacity: 1; transform: rotate(-10deg) scale(.92); } 100% { opacity: 1; transform: rotate(-10deg) scale(1); } }
@keyframes plFade { from { opacity: 0; } to { opacity: 1; } }
.pl-done { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px 16px; background: #fffaf2; }
.pl-done .pl-stamp { width: 96px; height: 96px; }
.pl-done .pl-stamp b { font-size: 17px; }
.pl-done .pl-stamp .s1, .pl-done .pl-stamp .s2 { font-size: 8px; }
.pl-done b { display: block; font-size: 19px; color: var(--brand); margin-bottom: 4px; }
.pl-done span { font-size: 15px; color: var(--muted); }
.pl-done .k-btn { grid-column: 1 / -1; }
.pl-banner { display: flex; align-items: center; gap: 14px; background: var(--brand); color: #fff; text-decoration: none; border-radius: 22px; padding: 14px 18px; margin-bottom: 14px; }
.pl-banner .pl-stamp { width: 70px; height: 70px; }
.pl-banner .pl-stamp .ink { border-color: #ffb59c; color: #ffb59c; border-width: 4px; }
.pl-banner .pl-stamp b { font-size: 13px; }
.pl-banner .pl-stamp .s1, .pl-banner .pl-stamp .s2 { font-size: 6px; }
.pl-banner > div { flex: 1; display: grid; gap: 2px; }
.pl-banner b { font-size: 18px; }
.pl-banner span { font-size: 14px; opacity: .85; }
.pl-banner .go { flex: none; display: inline-flex; align-items: center; gap: 4px; background: var(--accent); color: #fff; opacity: 1; font-size: 15px; font-weight: 700; padding: 10px 14px; border-radius: 14px; }
.pl-banner .go .icon { width: 16px; height: 16px; }
.step.cleared { position: relative; }
.step.cleared > .pl-stamp { position: absolute; right: 14px; top: 10px; width: 84px; height: 84px; pointer-events: none; }
.step.cleared > .pl-stamp b { font-size: 15px; }
.step.cleared > .pl-stamp .s1, .step.cleared > .pl-stamp .s2 { font-size: 7px; }
@media (max-width: 420px) {
  .pl-banner { flex-wrap: wrap; }
  .pl-banner .go { width: 100%; justify-content: center; }
}

/* 모바일 손가락 크기: 뒤로가기 링크를 누르기 쉽게 */
.k-back { min-height: 44px; padding: 0 4px; margin: 4px 0 8px; }

/* 친구들 기대평: 하나의 판 안에서 두 줄 말풍선이 서로 반대로 흘러가요 */
.ww { display: grid; gap: 22px; width: 100%; min-width: 0; overflow: hidden; background: #fff; border-radius: 26px; padding: 22px 0 26px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ww.empty { background: none; padding: 0; -webkit-mask-image: none; mask-image: none; }
.ww.empty p { margin: 0; padding: 18px; text-align: center; color: var(--muted); background: var(--sky); border-radius: 18px; }
.ww-row { overflow: hidden; }
.ww-lane { display: flex; gap: 14px; width: max-content; padding: 0 7px 12px; animation: wwFlow calc(var(--n) * 4.5s) linear infinite; }
.ww-row.rev .ww-lane { animation-direction: reverse; animation-duration: calc(var(--n) * 5.2s); }
@media (hover: hover) { .ww:hover .ww-lane, .ww.hold .ww-lane { animation-play-state: paused; } }
@keyframes wwFlow { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ww-card { flex: none; max-width: 300px; position: relative; border-radius: 20px; padding: 14px 18px 12px; display: grid; gap: 6px; text-align: left; background: #fff4d6; }
.ww-card::after { content: ''; position: absolute; left: 24px; bottom: -9px; border: 9px solid transparent; border-top-color: inherit; border-bottom: 0; }
.ww-card.c0 { background: #fff4d6; border-top-color: #fff4d6; } .ww-card.c1 { background: #e2f3ea; border-top-color: #e2f3ea; } .ww-card.c2 { background: #ffe8e0; border-top-color: #ffe8e0; }
.ww-card.c3 { background: #e6efff; border-top-color: #e6efff; } .ww-card.c4 { background: #f1e8ff; border-top-color: #f1e8ff; }
.ww-card.mine { background: var(--brand); border-top-color: var(--brand); color: #fff; }
.ww-card p { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.45; color: inherit; }
.ww-card span { font-size: 13px; font-weight: 700; opacity: .7; }
@media (prefers-reduced-motion: reduce) { .ww-row { overflow-x: auto; } .ww-lane { animation: none; } }
.pl-card.pl-wish .ww { margin: 4px 0; }
.pl-card.pl-ready img { width: 120px; height: 120px; object-fit: contain; }
.pl-card .pl-small { font-size: 14px; color: var(--muted); }
/* 포스트로그 책자 사진 6장 */
.bp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bp-slot { position: relative; display: grid; gap: 8px; background: var(--sky); border-radius: 18px; padding: 10px; }
.bp-no { position: absolute; left: 16px; top: 16px; z-index: 1; background: var(--brand); color: #fff; font-size: 13px; font-weight: 700; border-radius: 999px; padding: 3px 10px; }
.bp-slot img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; cursor: zoom-in; background: #fff; }
.bp-empty { aspect-ratio: 3 / 4; border-radius: 12px; background: #fff; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 12px; text-align: center; color: var(--muted); font-size: 13px; line-height: 1.4; }
.bp-empty .icon { width: 30px; height: 30px; color: var(--brand); }
.bp-btn { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 12px; background: var(--accent); color: #fff; font-weight: 700; font-size: 15px; cursor: pointer; }
.bp-slot.has .bp-btn { background: #fff; color: var(--brand); }
@media (max-width: 640px) { .bp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bp-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.bp-slot { padding: 8px; gap: 6px; }
.bp-no { left: 12px; top: 12px; font-size: 12px; padding: 2px 8px; }
.bp-btn { min-height: 38px; font-size: 13.5px; }
.bp-empty span { font-size: 12px; }
@media (max-width: 900px) { .bp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* 칸을 눌러 바로 올리기 */
.bp-slot.tap { cursor: pointer; transition: transform .12s, background .15s; }
@media (hover: hover) { .bp-slot.tap:hover { background: var(--brand-soft); } }
.bp-slot.tap:active { transform: scale(.97); }
.bp-slot img { cursor: pointer; }
.bp-empty { border: 0; }
.bp-empty b { font-size: 13px; color: var(--accent); }
.bp-re { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 4px; background: rgba(23, 48, 42, .78); color: #fff; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.bp-re .icon { width: 14px; height: 14px; }
.post-done .pd-in { display: flex; align-items: center; gap: 16px; }
.post-done img { width: 84px; height: auto; flex: none; }
.post-done b { font-size: 19px; color: var(--brand); }
.post-done span { display: block; font-size: 15px; line-height: 1.6; color: #3f544d; margin-top: 4px; }
.post-done { background: var(--brand-soft); }
.home-report { margin: 18px 0 6px; }
/* 버스 퀴즈 데모: 실시간 순위 */
.pr-board { margin-top: 14px; background: #fff; border-radius: 22px; padding: 16px 18px; display: grid; gap: 10px; }
.pr-bh { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.pr-bh b { color: var(--brand); font-size: 17px; }
.pr-bh span { font-size: 14px; color: var(--muted); }
.pr-bh span b { font-size: 14px; color: var(--accent); }
.pr-board ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pr-board li { display: grid; grid-template-columns: 32px 1fr auto 76px; align-items: center; gap: 10px; background: var(--sky); border-radius: 14px; padding: 9px 12px; font-size: 15px; transition: background .3s; }
.pr-board li.me { background: var(--accent-soft); font-weight: 700; }
.pr-board .r { width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.pr-board li:nth-child(1) .r { background: var(--accent); }
.pr-board .c { color: var(--muted); font-size: 13px; }
.pr-board .w { text-align: right; font-weight: 700; color: var(--brand); }
.pr-cnt { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--muted); }
/* 캠프 선생님 미리 소개: 멘토는 살짝 흐리게, 메아 대표님은 또렷하게 */
.mentor .mt-ph img { filter: blur(5px) saturate(.9); transform: scale(1.08); }
.mentor.clear .mt-ph img { filter: none; transform: none; object-position: center 20%; }
.mentor .mt-org { font-style: normal; font-size: 12px; font-weight: 700; color: #fff; background: #16167A; border-radius: 999px; padding: 2px 9px; margin-top: 6px; }
.mentor .mt-org + b { margin-top: 2px; }
.pr-res { font-size: 20px; padding: 16px; animation: apt-pop .4s ease; }
/* 홈 맨 위 큰 리포트 보기 버튼 */
.home-report-big { display: flex; align-items: center; gap: 16px; width: 100%; margin: 4px 0 22px; padding: 20px 22px; border: 0; border-radius: 22px; background: #FFE9DF; color: #1F2A26; text-align: left; cursor: pointer; font: inherit; box-shadow: 0 8px 20px rgba(255, 99, 52, .12); transition: transform .15s ease; }
@media (hover: hover) { .home-report-big:hover { transform: translateY(-2px); } }
.home-report-big img { width: 72px; height: 72px; object-fit: contain; flex: none; }
.home-report-big span { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.home-report-big small { font-size: 14px; font-weight: 600; color: #ff6334; }
.home-report-big b { font-size: 26px; font-weight: 700; }
.home-report-big em { font-style: normal; font-size: 13px; color: #6B5A52; }
.home-report-big .icon { width: 28px; height: 28px; flex: none; color: #ff6334; }

/* === 홈 개편(10-18): 3단계 진행 표시 + 지금 할 일 하나 === */
.hm-hero { display: flex; align-items: center; gap: 12px; background: var(--brand); color: #fff; border-radius: 26px; padding: 20px 20px 20px 24px; margin-top: 8px; overflow: hidden; }
.hm-hero > div { flex: 1; min-width: 0; }
.hm-hero .hi { font-size: 14px; opacity: .8; }
.hm-hero h1 { margin: 4px 0 10px; font-size: 24px; line-height: 1.3; font-weight: 700; }
.hm-hero h1 b { color: #ffb59c; font-weight: 700; }
.hm-hero .dday { display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: #fff; font-weight: 700; padding: 6px 14px; border-radius: 999px; font-size: 15px; }
.hm-hero .dday .icon { width: 18px; height: 18px; }
.hm-hero img { width: 104px; flex: none; margin: -6px -6px -24px 0; }
.hm-steps { display: flex; align-items: flex-start; margin: 22px 0 14px; }
.hm-line { flex: 1; height: 4px; border-radius: 2px; background: #dfe5e2; margin-top: 24px; min-width: 8px; }
.hm-st { flex: none; width: 92px; display: grid; justify-items: center; gap: 2px; text-align: center; text-decoration: none; color: var(--ink); cursor: pointer; position: relative; }
.hm-st .hm-dot { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #e6ebe9; color: #8a9692; font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.hm-st .hm-dot .icon { width: 24px; height: 24px; }
.hm-st b { font-size: 17px; }
.hm-st small { font-size: 11px; color: var(--muted); letter-spacing: .02em; }
.hm-st em { font-style: normal; font-size: 12px; color: var(--muted); }
.hm-st.open .hm-dot { background: var(--accent); color: #fff; box-shadow: 0 0 0 6px var(--accent-soft); }
.hm-st.open b { color: var(--accent); }
.hm-st.open em { color: var(--accent); font-weight: 700; }
.hm-st.closed .hm-dot { background: var(--brand); color: #fff; }
.hm-st.upcoming { opacity: .7; }
.hm-now { background: #fff; border-radius: 26px; padding: 22px 20px 18px; display: grid; gap: 14px; }
.hm-now-head { display: flex; align-items: flex-start; gap: 12px; }
.hm-now-head > div { flex: 1; min-width: 0; }
.hm-now-head img { width: 80px; flex: none; }
.hm-now-head .kk { font-size: 13px; font-weight: 700; color: var(--accent); }
.hm-now-head h2 { margin: 2px 0 4px; font-size: 26px; color: var(--brand); }
.hm-now-head p { margin: 0; font-size: 15px; color: var(--muted); }
.hm-count { flex: none; background: var(--brand-soft); color: var(--brand); border-radius: 16px; padding: 8px 12px; font-size: 15px; }
.hm-count b { font-size: 22px; }
.hm-mis { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hm-mis li { display: flex; align-items: center; gap: 12px; background: var(--sky); border-radius: 16px; padding: 12px 14px; }
.hm-mis .ck { width: 30px; height: 30px; flex: none; border-radius: 50%; background: #fff; display: grid; place-items: center; color: #fff; box-shadow: inset 0 0 0 2px #d3dbd8; }
.hm-mis .ck .icon { width: 18px; height: 18px; }
.hm-mis li.done { background: var(--brand-soft); }
.hm-mis li.done .ck { background: var(--brand); box-shadow: none; }
.hm-mis b { display: block; font-size: 16px; }
.hm-mis span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.hm-mis li.done b { color: var(--brand); }
.hm-go { min-height: 62px; font-size: 20px; }
.hm-won { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; width: 100%; border: 0; background: var(--accent-soft); border-radius: 16px; padding: 12px 16px; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.hm-won span { font-size: 14px; color: var(--muted); }
.hm-won b { font-size: 20px; color: var(--accent); }
.hm-won small { font-size: 13px; color: var(--muted); }
@media (min-width: 721px) { .hm-hero img { width: 140px; } .hm-st { width: 130px; } }

/* === 뎁스 구조(10-19): 단계 색, 단계 화면 앱 바, 아래 탭 바 === */
.kid { --c-prelog: #104b3a; --c-field: #ff6334; --c-review: #2f5d9e; --c-report: #f2a516; --c-me: #104b3a; }
.ph-prelog { --ph: var(--c-prelog); --ph-soft: #e2efe9; }
.ph-field { --ph: var(--c-field); --ph-soft: #ffe8e0; }
.ph-review { --ph: var(--c-review); --ph-soft: #e3ebf7; }
.ph-report { --ph: var(--c-report); --ph-soft: #fff3d6; }
.ph-me { --ph: var(--c-me); --ph-soft: #e2efe9; }
/* 1층 단계 화면: 로고 대신 단계 색 앱 바, 본문 위 '← 내 사파리' 줄은 숨김 */
.k-bar { position: sticky; top: 0; z-index: 30; background: var(--ph); color: #fff; padding-top: env(safe-area-inset-top); }
.k-bar-in { max-width: 1040px; margin: 0 auto; height: 62px; padding: 0 12px; display: flex; align-items: center; gap: 10px; }
.k-bar-in b { flex: 1; text-align: center; font-size: 19px; }
.k-bar-back { display: inline-flex; align-items: center; gap: 4px; height: 44px; padding: 0 14px 0 10px; border-radius: 999px; background: rgba(255, 255, 255, .2); color: #fff; text-decoration: none; font-weight: 700; font-size: 16px; }
.k-bar-back .icon { width: 20px; height: 20px; }
.k-bar-me { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .92); display: grid; place-items: center; }
.k-bar-me img { width: 32px; }
body.in-phase { background: var(--ph-soft); }
body.in-phase .k-back { display: none; }
body.in-phase .ph-head { background: #fff; }
body.in-phase .ph-head .tag { color: var(--ph); }
body.in-phase .ph-head h1 { color: var(--ph); }
/* 아래 탭 바 */
.k-main { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
.k-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(255, 255, 255, .97); box-shadow: 0 -4px 18px rgba(16, 75, 58, .08); padding-bottom: env(safe-area-inset-bottom); }
.k-tabs-in { max-width: 560px; margin: 0 auto; display: flex; }
.k-tab { flex: 1; min-width: 0; height: 66px; display: grid; justify-items: center; align-content: center; gap: 3px; border: 0; background: none; font: inherit; color: #8a9692; text-decoration: none; cursor: pointer; position: relative; }
.k-tab span { font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.k-tab .icon { width: 24px; height: 24px; }
.k-tab-num { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 14px; font-weight: 700; background: #e6ebe9; color: #6f7b77; }
.k-tab.now::after { content: ''; position: absolute; top: 8px; right: calc(50% - 20px); width: 9px; height: 9px; border-radius: 50%; background: var(--c-field); box-shadow: 0 0 0 2px #fff; }
.k-tab.on { color: var(--ph, var(--brand)); }
.k-tab.on .k-tab-num, .k-tab.now .k-tab-num { background: var(--ph); color: #fff; }
.k-tab.ph-home.on { color: var(--brand); }
.k-tab.lock { opacity: .55; }
.k-tab.glow { color: var(--c-report); }
.k-tab.glow .icon { animation: k-glow 1.6s ease-in-out infinite; }
@keyframes k-glow { 50% { transform: scale(1.18); filter: drop-shadow(0 0 6px rgba(255, 99, 52, .6)); } }
.demo-date { bottom: calc(84px + env(safe-area-inset-bottom)) !important; }
/* 홈 진행 표시: 단계마다 자기 색 */
.hm-st { width: 74px; }
.hm-st .hm-dot { width: 48px; height: 48px; font-size: 21px; }
.hm-st b { font-size: 15.5px; }
.hm-st.open .hm-dot { background: var(--ph); color: #fff; box-shadow: 0 0 0 6px var(--ph-soft); }
.hm-st.open b, .hm-st.open em { color: var(--ph); }
.hm-st.closed .hm-dot { background: var(--ph); color: #fff; opacity: .85; }
.hm-st.report { border: 0; background: none; font: inherit; padding: 0; }
.hm-st.report.open .hm-dot { animation: k-glow 1.6s ease-in-out infinite; }
.hm-st.report.wait .hm-dot { background: var(--ph-soft); color: var(--c-report); }
.hm-line { margin-top: 22px; }
/* 리포트 도착 카드 */
.hm-report { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; width: 100%; border: 0; text-align: left; font: inherit; color: #fff; cursor: pointer; background: linear-gradient(135deg, #f2a516, #ff6334); border-radius: 26px; padding: 22px 18px; margin: 4px 0 18px; }
.hm-report-ray { position: absolute; inset: -60%; background: repeating-conic-gradient(rgba(255, 255, 255, .12) 0 10deg, transparent 10deg 20deg); animation: spin 14s linear infinite; }
.hm-report img { position: relative; width: 96px; flex: none; }
.hm-report > span { position: relative; display: grid; gap: 4px; }
.hm-report small { font-size: 13px; font-weight: 700; opacity: .9; }
.hm-report b { font-size: 22px; line-height: 1.3; }
.hm-report em { font-style: normal; font-size: 13.5px; opacity: .92; line-height: 1.45; }
.hm-report .k-btn { justify-self: start; margin-top: 6px; min-height: 46px; background: #fff; color: var(--accent); font-size: 16px; font-style: normal; }
.hm-report.wait { background: #fff; color: var(--ink); cursor: default; }
.hm-report.wait small { color: var(--c-review); }
.hm-report.wait b { color: var(--brand); }
.hm-report.wait em { color: var(--muted); }
.me-out { margin-top: 18px; background: #fff; color: var(--muted); }
body.in-phase .ph-head h1 { display: none; }
body.in-phase .ph-head { margin-top: 10px; }

/* === 정리(10-19): 도형 위아래 줄 금지, 단어 단위 줄바꿈, 간격 통일, 반응형 === */
/* 줄바꿈: 한국어는 단어(어절) 단위로, 제목은 줄 길이를 고르게 */
.kid { word-break: keep-all; overflow-wrap: break-word; }
.kid h1, .kid h2, .kid h3, .hm-mis b, .hm-report b, .hm-now-head p, .th-card-head p { text-wrap: balance; }
.kid p, .kid li span, .kid em { text-wrap: pretty; }
/* 간격 규칙: 화면 여백 16px(웹 24px), 덩어리 사이 16px, 카드 안 여백 20px(웹 24px), 카드 안 요소 사이 12px */
.k-main { padding-top: 16px; }
.k-main:has(.hm-hero) { max-width: 720px; display: flex; flex-direction: column; gap: 16px; }
.k-main:has(.hm-hero) > * { margin: 0; }
.k-main:has(.hm-hero) > :empty { display: none; }
.hm-hero, .hm-now, .hm-report { border-radius: 24px; }
.hm-hero { padding: 20px; margin: 0; }
.hm-report { margin: 0; padding: 20px; }
.hm-steps { margin: 0; padding: 4px 0; }
.hm-now { padding: 20px; gap: 12px; }
.hm-mis { gap: 8px; }
.hm-mis li { padding: 12px 14px; border-radius: 14px; }
.hm-won { border-radius: 14px; }
.home-wall:empty { display: none; }
body.in-phase .k-main { max-width: 720px; }
body.in-phase .ph-head { margin-top: 0; border-radius: 24px; padding: 20px; }
body.in-phase .k-main > * + * { margin-top: 16px; }
/* 진행 표시: 좁은 폰에서도 4칸이 한 줄에 */
.hm-st { width: auto; flex: 0 0 68px; }
@media (max-width: 380px) { .hm-st { flex-basis: 60px; } .hm-st b { font-size: 14px; } .hm-st .hm-dot { width: 42px; height: 42px; } .hm-line { margin-top: 19px; } }
/* 웹(넓은 화면) */
@media (min-width: 721px) {
  .k-main { padding-left: 24px; padding-right: 24px; }
  .hm-hero, .hm-now, .hm-report, body.in-phase .ph-head { padding: 24px; }
  .hm-st { flex-basis: 96px; }
  .hm-hero img { width: 120px; margin-bottom: -28px; }
  .k-tabs-in { max-width: 720px; }
}
/* 색은 브랜드 두 가지만: 진초록(기본, 끝난 단계, 앱 바)과 주황(지금 단계, 강조) */
.ph-prelog, .ph-field, .ph-review, .ph-me { --ph: var(--brand); --ph-soft: var(--brand-soft); }
.ph-report { --ph: var(--accent); --ph-soft: var(--accent-soft); }
body.in-phase { background: var(--sky); }
.hm-st.open .hm-dot { background: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); }
.hm-st.open b, .hm-st.open em { color: var(--accent); }
.hm-st.closed .hm-dot { background: var(--brand); opacity: 1; }
.k-tab.now .k-tab-num { background: var(--accent); }
.k-tab.on { color: var(--brand); }
.k-tab.on .k-tab-num { background: var(--brand); color: #fff; }
.k-tab.glow { color: var(--accent); }
.hm-report { background: var(--accent); }
.hm-report.wait small { color: var(--accent); }
.hm-st.report.wait .hm-dot { color: var(--accent); }
.k-tab span { font-size: 12px; }
@media (max-width: 380px) { .k-tab span { font-size: 11px; letter-spacing: -.02em; } }
/* 웹에서도 머리글, 본문, 아래 탭 폭을 한 줄로 맞춰요 */
body.kid:not(.lp-body) .k-top-in, .k-bar-in { max-width: 720px; }
@media (min-width: 721px) { body.kid:not(.lp-body) .k-top-in, .k-bar-in { padding-left: 24px; padding-right: 24px; } }
/* 단계 화면 안: 카드 폭과 간격을 홈과 같게, 제목 줄이 어색하게 꺾이지 않게 */
body.in-phase .ph-head .tag { padding: 0; background: none; font-size: 15px; }
body.in-phase .live-wrap { max-width: none; padding: 0; }
body.in-phase .live-wrap > * + * { margin-top: 12px; }
body.in-phase .live-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0; }
body.in-phase .live-top > span:first-child { white-space: nowrap; font-size: 17px; }
body.in-phase .fr-badge { white-space: nowrap; font-size: 14px; padding: 6px 12px; }
body.in-phase .live-top [data-sound] { margin-left: auto; white-space: nowrap; }
body.in-phase .live-card { border-radius: 24px; box-shadow: none; padding: 20px; }
body.in-phase .fr-badge { margin: 0; } body.in-phase .ph-head .tag { letter-spacing: 0; }
body.in-phase .live-top .fr-badge { order: 3; } body.in-phase .live-top [data-sound] { order: 2; min-height: 36px; padding: 0 12px; } body.in-phase .live-top { row-gap: 10px; } body.in-phase .live-top::after { content: ""; order: 2; flex-basis: 100%; height: 0; }
body.in-phase .live-wrap { padding: 0 !important; }
body.in-phase .live-top::after { display: none; }
/* 책자 사진 칸: 칸 안 글자가 칸을 절대 넘지 않게(가운데 정렬 격자가 글자 길이만큼 늘어나던 문제) */
.bp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 520px) { .bp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.bp-slot, .bp-empty { min-width: 0; }
.bp-empty { grid-template-columns: minmax(0, 1fr); place-content: center; place-items: center; padding: 14px 10px; }
.bp-empty b, .bp-empty span { max-width: 100%; text-align: center; overflow-wrap: anywhere; }
.bp-empty span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* 홈도 단계 화면과 같은 진초록 상단 띠(로고와 이름) */
.k-bar { background: var(--brand); }
.k-bar-home .sp { flex: 1; }
.k-bar-logo img { height: 34px; display: block; }
.k-bar-chip { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px 0 6px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--brand); text-decoration: none; font-weight: 700; font-size: 15px; }
.k-bar-chip img { width: 32px; }
.hm-hero h1 { margin: 0; font-size: 22px; line-height: 1.4; }
.hm-hero h1 em { font-style: normal; color: #ffb59c; }
@media (min-width: 721px) { .hm-hero h1 { font-size: 26px; } }
/* 홈 띠: ← 내 여권 | 로고 | 이름 */
.k-bar-home .sp { display: flex; justify-content: center; }
.k-bar-home .k-bar-logo { height: 30px; width: auto; display: block; }
@media (max-width: 380px) { .k-bar-home .k-bar-logo { height: 24px; } .k-bar-chip span { display: none; } .k-bar-chip { padding: 0 6px; } }
/* 간소화: 단계 화면 안 머리 카드는 설명 한 줄만(단계 이름과 날짜는 위쪽 띠와 아래 탭에 이미 있어요) */
body.in-phase .ph-head .tag, body.in-phase .ph-head .when, body.in-phase .ph-head > img { display: none; }
body.in-phase .ph-head { grid-template-columns: 1fr; padding: 16px 20px; }
body.in-phase .ph-head p { margin: 0; font-size: 16px; }
.hm-now-head h2 { margin-bottom: 0; }
/* 간소화: 잠긴 보너스 카드도 점선 테두리 없이 연한 배경으로 */
.bonus-lock { border: 0; background: #e9eeec; }
/* 간소화: 책자 칸은 이중 테두리처럼 보이지 않게 칸 하나만 */
.bp-slot { background: none; padding: 0; }
.bp-no { left: 8px; top: 8px; }
@media (hover: hover) { .bp-slot.tap:hover { background: none; } .bp-slot.tap:hover .bp-empty { background: var(--brand-soft); } }
.bp-empty { background: var(--sky); }
/* 여권 더 빨리 열리기 */
.pass-cover { transition-duration: .7s; }
.pass.done .pp-stamp .ink { animation-duration: .32s; animation-delay: calc(.15s + var(--i, 0) * .22s); }
.pass.done .pass-page.r { animation-delay: .35s; }
/* 상단은 띠 없이 바탕색 그대로, 버튼만 연한 회색 */
.k-bar { background: rgba(243, 245, 246, .94); color: var(--brand); backdrop-filter: blur(8px); }
.k-bar-in b { color: var(--brand); }
.k-bar-back { background: #e6ebe9; color: var(--brand); }
.k-bar-me, .k-bar-chip { background: #e6ebe9; }
