.home-checkin { --checkin-caption-height: 72px; padding: 72px 0 24px; border-bottom: 1px solid var(--border); background: var(--bg); }
.home-checkin .home-checkin-heading { max-width: 720px; margin: 0 auto 24px; text-align: center; }
.home-checkin-track { position: relative; }
.home-checkin-stage { position: relative; display: flex; flex-direction: column; align-items: center; max-width: 940px; margin: 0 auto; }
.home-checkin.is-checkin-story .home-checkin-track { height: calc(var(--checkin-stage-height) + var(--checkin-distance)); }
.home-checkin.is-checkin-story .home-checkin-stage { position: sticky; top: var(--checkin-pin-top); height: var(--checkin-stage-height); }
.home-checkin.is-static-checkin .home-checkin-track { height: var(--checkin-stage-height); }
.home-checkin.is-static-checkin .home-checkin-stage { position: relative; top: auto; }
.home-checkin-copy { display: flex; flex: 0 0 auto; flex-direction: column; align-items: center; justify-content: center; gap: 12px; width: 100%; height: var(--checkin-caption-height); min-width: 0; }
.home-checkin-front { position: relative; flex-shrink: 0; width: var(--checkin-device-width,276px); max-width: 100%; padding-bottom: 14px; pointer-events: none; }
.home-checkin-front .home-front-device { width: 100%; }
.home-checkin-front .home-front-base { top: auto; bottom: 0; left: 6%; width: 88%; }
.home-checkin-screen { position: relative; height: calc(var(--checkin-device-width,276px) * 1.28); overflow: hidden; border: 1px solid #d9e5f4; border-radius: 12px; background: linear-gradient(165deg,#f0f6ff,#fff 65%); color: #314969; }
.home-checkin-student, .home-checkin-complete { position: absolute; inset: 54px 12px 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.home-checkin-screen[data-checkin-state="input"] { background: #fff; }
.home-checkin-screen[data-checkin-state="input"] > .home-front-wordmark { display: none; }
.home-checkin-entry { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 12px; text-align: center; }
.home-checkin-back { flex-shrink: 0; width: 14px; height: 14px; margin-bottom: clamp(8px,calc(var(--checkin-device-width,276px) * .035),10px); fill: none; stroke: #3c4859; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.home-checkin-entry .home-checkin-help { flex-shrink: 0; margin: 0; color: #3182f6; font-size: clamp(8px,calc(var(--checkin-device-width,276px) * .032),9px); font-weight: 700; line-height: 1.5; white-space: nowrap; }
.home-checkin-help em { color: #05a7b7; font-style: normal; }
.home-checkin-prompt { flex-shrink: 0; margin-top: 4px; color: #303c4c; font-size: clamp(12px,calc(var(--checkin-device-width,276px) * .052),15px); font-weight: 800; line-height: 1.35; letter-spacing: -.04em; }
.home-checkin-digits { position: relative; display: flex; align-items: center; flex-shrink: 0; gap: 2px; width: 100%; height: clamp(28px,calc(var(--checkin-device-width,276px) * .12),34px); margin-top: 8px; padding-bottom: 3px; border-bottom: 1px solid #e8edf3; text-align: left; }
.home-checkin-digits > span { color: #435267; font-size: clamp(17px,calc(var(--checkin-device-width,276px) * .074),21px); font-weight: 600; line-height: 1; }
.home-checkin-digits.is-empty::before { content: "4자리 입력"; color: #9aa6b5; font-size: clamp(13px,calc(var(--checkin-device-width,276px) * .06),17px); font-weight: 600; }
.home-checkin-keypad { display: grid; flex: 1; grid-template-columns: repeat(3,minmax(0,1fr)); grid-template-rows: repeat(4,minmax(0,1fr)); gap: 0; min-height: 0; width: 100%; margin-top: 8px; }
.home-checkin-keypad > span { position: relative; display: grid; place-items: center; min-width: 0; min-height: 0; border-radius: 8px; color: #536172; font-size: clamp(18px,calc(var(--checkin-device-width,276px) * .078),23px); font-weight: 600; line-height: 1; }
.home-checkin-keypad .is-action > svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.home-checkin-keypad .is-pressed { background: #edf5ff; color: #267cd9; }
.home-checkin-lookup { position: relative; display: grid; place-items: center; flex-shrink: 0; height: clamp(30px,calc(var(--checkin-device-width,276px) * .13),36px); margin-top: 10px; border-radius: 10px; background: #c2d9fc; color: #fff; font-size: 12px; font-weight: 700; }
.home-checkin-lookup.is-ready { background: #3182f6; }
.home-checkin-lookup.is-pressed { background: #216ed8; }
.home-checkin-student, .home-checkin-complete { display: none; }
.home-checkin-screen[data-checkin-state="checking"] .home-checkin-entry, .home-checkin-screen[data-checkin-state="complete"] .home-checkin-entry { display: none; }
.home-checkin-screen[data-checkin-state="checking"] .home-checkin-student, .home-checkin-screen[data-checkin-state="complete"] .home-checkin-complete { display: flex; }
.home-checkin-avatar { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 12px; border-radius: 50%; background: #e4efff; }
.home-checkin-avatar svg { width: 36px; height: 36px; stroke: #538bc9; stroke-width: 1.7; stroke-linecap: round; }
.home-checkin-student > strong { color: #2e4d73; font-size: 22px; }
.home-checkin-student > span { margin-top: 6px; color: #7d8fa6; font-size: 11px; }
.home-checkin-verifying { width: 90px; height: 4px; overflow: hidden; margin-top: 24px; border-radius: 3px; background: #dfebfa; }
.home-checkin-verifying i { display: block; width: calc(var(--checkin-verifying,0) * 100%); height: 100%; border-radius: inherit; background: #5d9fe8; }
.home-checkin-student > p { margin: 10px 0 0; color: #7b8fa9; font-size: 11px; }
.home-checkin-complete > svg { width: 56px; height: 56px; margin-bottom: 14px; }
.home-checkin-complete > svg circle { fill: #e1f5eb; }
.home-checkin-complete > svg path { stroke: #30a875; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: calc(40 * (1 - var(--checkin-complete,0))); }
.home-checkin-complete > strong { color: #24845d; font-size: 21px; }
.home-checkin-complete > p { margin: 9px 0 14px; color: #546c87; font-size: 12px; }
.home-checkin-complete > span { padding: 6px 10px; border-radius: 5px; background: #edf5ff; color: #4e7db2; font-size: 11px; }
.home-checkin-complete > small { margin-top: 14px; color: #8292a6; font-size: 10px; }
@media (max-width: 860px) {
 .home-checkin { --checkin-caption-height: 96px; }
 .home-checkin-steps { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 640px) {
 .home-checkin { padding: 48px 0 16px; }
 .home-checkin .home-checkin-heading { margin-bottom: 12px; }
}
@media (max-height: 740px) {
 .home-checkin { --checkin-caption-height: 36px; }
 .home-checkin-copy > p { display: none; }
}
@media (max-height: 740px) and (max-width: 860px) {
 .home-checkin { --checkin-caption-height: 44px; }
}
