/* 끝난 뒤: 서우의 휴대폰. 본편에는 휴대폰 틀이 없고, 여기서 처음 창 둘레에 테두리가 생깁니다 */
#scr-after { background: #17181c; color: #eceef2; }
.af-top { min-height: 100%; display: grid; justify-items: center; align-content: center; gap: 14px; padding: 22px 16px 26px; }
.af-kicker { font-size: 13px; color: #9499a6; }
.af-cap { min-height: 3.2em; max-width: 340px; text-align: center; font-size: 15px; line-height: 1.6; color: #d5d8de; }
.af-next { font-size: 13.5px; font-weight: 700; color: #17181c; background: var(--pt); padding: 9px 22px; border-radius: 99px; animation: rise .5s var(--ease); }

.phone { position: relative; width: min(340px, 100%); height: min(660px, 100vh - 190px); min-height: 430px; border-radius: 44px; border: 9px solid #05060a; background: #05060a; overflow: hidden; box-shadow: 0 0 0 1.5px #3a3d47, 0 30px 70px rgba(0, 0, 0, .55); transition: scale 1.5s var(--ease), border-color 1.5s, box-shadow 1.5s, border-radius 1.5s; }
.phone.zoom { scale: 1.16; border-color: transparent; box-shadow: none; border-radius: 22px; }
.ph-status { position: absolute; z-index: 5; inset: 0 0 auto; display: flex; justify-content: space-between; padding: 9px 22px 0; font-size: 11.5px; font-weight: 600; color: #fff; mix-blend-mode: difference; transition: opacity 1s; }
.phone.zoom .ph-status, .phone.zoom .ph-bar { opacity: 0; }
.ph-bar { position: absolute; z-index: 6; left: 50%; bottom: 3px; translate: -50% 0; width: 38%; height: 22px; display: grid; place-items: center; transition: opacity 1s; }
.ph-bar::before { content: ''; width: 100%; height: 5px; border-radius: 3px; background: #8a8f9c; }
.ph-view { position: absolute; inset: 0; display: none; flex-direction: column; background: #f6f3ec; color: #1e2026; padding-top: 30px; border-radius: 34px; overflow: hidden; }
.phone[data-view=app] .v-app, .phone[data-view=home] .v-home, .phone[data-view=ttok] .v-ttok, .phone[data-view=log] .v-log,
.phone[data-view=tok] .v-tok, .phone[data-view=chat] .v-chat, .phone[data-view=pic] .v-pic { display: flex; animation: fadein .3s; }
.ph-view header { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid #e6e1d6; font-size: 15px; }
.ph-view header b { font-weight: 800; }
.ph-back { font-size: 13px; font-weight: 700; color: var(--pt); padding: 4px 8px 4px 0; }
.ph-back::before { content: '‹ '; }

/* 서우 쪽에서 본 똑똑 */
.v-app-body { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 14px; }
.v-app-in { margin: 0 14px 34px; padding: 12px 16px; border: 1px solid #e6e1d6; border-radius: 22px; background: #fffdf9; color: #9a9da6; font-size: 14.5px; }
.t-me, .t-you { display: grid; margin-top: 5px; font-size: 14px; line-height: 1.45; }
.t-me { justify-items: end; } .t-you { justify-items: start; }
.t-me span, .t-you span { max-width: 84%; padding: 7px 12px; border-radius: 16px; }
.t-me span { background: var(--pt); color: #fff; }
.t-you span { background: #ebe6da; }
.t-you b { font-size: 11px; font-weight: 600; color: #7d8089; padding-left: 4px; }
.t-day { text-align: center; font-size: 11.5px; color: #7d8089; margin: 14px 0 4px; }

/* 홈 화면 */
.v-home { background-size: cover; background-position: center; color: #fff; padding: 0; justify-content: space-between; }
.phone[data-view=home] .v-home { background-color: #2a2c33; }
.h-clock { text-align: center; padding-top: 66px; }
.h-clock b { display: block; font-size: 62px; font-weight: 300; letter-spacing: -.02em; line-height: 1; }
.h-clock span { font-size: 14px; opacity: .9; }
.h-apps { display: flex; justify-content: center; gap: 22px; padding: 0 0 54px; }
.app { position: relative; display: grid; justify-items: center; gap: 6px; font-size: 12px; color: #fff; }
.ic { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; background: #fffdf9; position: relative; transition: scale .15s; }
.app:active .ic { scale: .92; }
.ic-ttok { font-size: 15px; }
.ic-tok { background: #cfe6d2; } .ic-tok::before { content: ''; width: 28px; height: 22px; border-radius: 11px 11px 11px 3px; background: #2f5d3a; }
.ic-pic { background: #dfe6ee; } .ic-pic::before { content: ''; width: 28px; height: 22px; border-radius: 4px; border: 3px solid #44566e; } .ic-pic::after { content: ''; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #44566e; translate: -5px -3px; }
.app em { position: absolute; right: -6px; top: -6px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--pt); font-style: normal; font-size: 11.5px; font-weight: 700; line-height: 20px; text-align: center; }

/* 똑똑의 지난 대화와 그때 서우는 */
.tt-list { flex: 1; overflow-y: auto; padding: 6px 8px; }
.tt-list button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px; padding: 10px; border-radius: 12px; }
.tt-list button:active { background: #ebe6da; }
@media (hover: hover) { .tt-list button:hover { background: #ebe6da; } }
.tt-list span { display: grid; line-height: 1.35; min-width: 0; }
.tt-list b { font-size: 15px; } .tt-list small { font-size: 12px; color: #7d8089; }
.tt-list em, .d-steps .t { flex: none; font-style: normal; font-size: 12px; font-weight: 700; color: #fff; background: #1e2026; padding: 3px 10px; border-radius: 99px; font-variant-numeric: tabular-nums; }
.tt-sum { font-size: 12px; line-height: 1.55; color: #7d8089; padding: 10px 16px 34px; border-top: 1px solid #e6e1d6; }
.tt-sum b { color: #1e2026; }
#log-body { flex: 1; overflow-y: auto; padding: 16px 18px 40px; }
#log-body h4 { font-size: 21px; font-weight: 900; letter-spacing: -.02em; }
#log-body small { font-size: 12px; color: #7d8089; }
.d-me { margin-top: 12px; font-size: 13.5px; line-height: 1.6; color: #5d616b; background: #ebe6da; border-radius: 12px; padding: 10px 12px; }
.d-me b { display: block; font-size: 11.5px; color: var(--pt); }
.d-k { margin-top: 18px; font-size: 12px; font-weight: 700; color: #7d8089; }
.d-then { margin-top: 4px; font-size: 15px; line-height: 1.75; }
.d-steps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.d-steps span { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: #ebe6da; }

/* 톡과 사진 */
.tk-list { padding: 6px 8px; }
.tk-list button { display: flex; width: 100%; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; }
.tk-list button > span:last-child { display: grid; line-height: 1.35; }
.tk-list b { font-size: 15px; } .tk-list small { font-size: 12.5px; color: #7d8089; }
@media (hover: hover) { .tk-list button:hover { background: #ebe6da; } }
#chat-body { flex: 1; overflow-y: auto; padding: 4px 14px 40px; background: #dfe6ee; }
#chat-body .t-you span { background: #fff; }
#chat-body .t-me span { background: #2f5d3a; }
.pic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 3px; align-content: start; flex: 1; }
.pic-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }

/* 휴대폰 아래로 이어지는 글 */
.af-sec { width: min(620px, 100% - 32px); margin: 0 auto; padding: 6vh 0 14vh; }
.af-block { padding: 34px 0; border-top: 1px solid #30333c; }
.af-block h2 { font-size: clamp(24px, 5.4vw, 32px); font-weight: 900; letter-spacing: -.03em; margin-bottom: 10px; color: #fff; }
.af-block h3 { font-size: 15px; color: var(--pt); margin: 18px 0 4px; }
.af-block p { color: #c9ccd4; line-height: 1.8; }
.af-block p + p { margin-top: 10px; }
.af-block p b { color: #fff; }
.sd-list { display: grid; gap: 12px; margin-top: 16px; }
.sd { padding: 16px 18px 17px; border: 1px solid #3a3e49; border-radius: 12px; background: #2b2e37; }
.sd small { display: block; font-family: var(--pix); font-size: 13px; color: #9aa0ad; margin-bottom: 4px; }
.af-block .sd p { margin: 0; font-size: 14.5px; line-height: 1.7; }
.af-block .sd .sd-me { color: #9aa0ad; }
.sd > b { display: block; margin: 12px 0 3px; font-size: 17px; line-height: 1.45; color: var(--pt); }
.wh-list { display: grid; gap: 6px; margin: 18px 0 14px; }
.wh { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 11px 16px; border-radius: 12px; background: #22242a; border: 1.5px solid transparent; }
.wh b { font-size: 15.5px; color: #eceef2; } .wh small { font-size: 12px; color: #9499a6; flex: none; }
.wh.hit { border-color: var(--pt); background: #33221b; }
@media (hover: hover) { .wh:hover { background: #2b2e36; } }
.wh-say, .ask-say { font-size: 14.5px; animation: rise .5s var(--ease); }
.ask-box { margin: 18px 0 14px; background: #f6f3ec; color: #1e2026; border-radius: 20px; padding: 14px; }
.ask-chat { min-height: 70px; padding-bottom: 10px; }
.ask-chat .t-you span { white-space: normal; }
.af-block .ask-chat p { color: #1e2026; margin-top: 5px; }
.af-block .ask-chat .t-me span { color: #fff; }
.ask-picks { display: grid; gap: 6px; }
.ask-picks button { padding: 11px 15px; border: 1.5px solid #e6e1d6; border-radius: 14px; background: #fffdf9; font-size: 15px; font-weight: 600; }
.ask-picks button.hit { border-color: var(--pt); background: var(--pt-soft); }
.qs { display: grid; gap: 12px; margin: 14px 0 26px; counter-reset: q; }
.qs li { counter-increment: q; padding-left: 34px; position: relative; color: #dfe1e6; line-height: 1.75; }
.qs li::before { content: counter(q); position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%; background: #30333c; color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.end-card { background: #fffdf9; color: #1e2026; border-radius: 20px; padding: 20px 22px; }
.end-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; margin-bottom: 14px; }
.end-card small { font-size: 12.5px; color: #7d8089; }
.end-card > b { display: block; font-size: 34px; font-weight: 900; letter-spacing: -.03em; line-height: 1.25; margin-bottom: 12px; }
.end-card dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.end-card dl div { background: #f0ece3; border-radius: 12px; padding: 9px 8px; text-align: center; }
.end-card dt { font-size: 11.5px; color: #7d8089; } .end-card dd { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.af-small { font-size: 12.5px; color: #868b98 !important; margin-top: 16px; }
.af-again { display: block; margin-top: 22px; font-weight: 800; background: var(--pt); color: #17181c; padding: 12px 26px; border-radius: 99px; text-align: center; }
/* 끝난 뒤의 엔딩 도감 한 줄 */
.af-dex { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 16px; padding: 12px 16px; border: 1px solid #30333c; border-radius: 14px; }
.af-dex p { font-size: 15px; color: #d5d8de; }
.af-dex p b { color: #fff; margin-left: .2em; }
.af-dex small { display: block; font-size: 12.5px; color: #868b98; }
.af-dex button { font-size: 14px; font-weight: 800; color: var(--pt); border: 1.5px solid var(--pt); padding: 8px 18px; border-radius: 99px; }
@media (hover: hover) { .af-dex button:hover { background: var(--pt); color: #17181c; } }
/* 나의 한 학기 카드 (js/card.js) */
.af-card .cd-write { display: grid; gap: 14px; margin: 18px 0 20px; }
.af-card .cd-write label { display: grid; gap: 6px; }
.af-card .cd-write span { font-size: 14px; font-weight: 700; color: #dfe1e6; }
.af-card .cd-write textarea { width: 100%; resize: none; font: inherit; font-size: 16px; line-height: 1.55; color: #1e2026; background: #fffdf9; border: 1.5px solid #3a3d47; border-radius: 12px; padding: 10px 12px; }
.af-card .cd-write textarea:focus { outline: none; border-color: var(--pt); box-shadow: 0 0 0 3px rgba(242, 98, 46, .25); }
.af-card .cd-write textarea::placeholder { color: #a3a6ae; }
.af-card .cd-write small { justify-self: end; font-size: 12px; color: #868b98; font-variant-numeric: tabular-nums; }
.af-card .cd-write small b { color: #c9ccd4; font-weight: 700; }
.af-block .cd-note { font-size: 13px; line-height: 1.6; color: #868b98; }
#cd-canvas { display: block; width: 100%; height: auto; border-radius: 16px; background: #f6f3ec; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.cd-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 16px; }
.cd-btns button { font-weight: 800; background: var(--pt); color: #17181c; padding: 12px 26px; border-radius: 99px; }
.cd-btns span { font-size: 13.5px; color: #c9ccd4; }
@media (hover: hover) { .cd-btns button:hover { filter: brightness(1.08); } }
.af-last { padding-top: 26px; }
.af-last .af-dex { margin-top: 0; }
