:root {
  --bg: #0f172a;
  --card: #1e293b;
  --text: #f8fafc;
  --muted: #94a3b8;
  --uni: #1f5aa6;
  --gold: #fbbf24;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; }
button { font: inherit; color: inherit; border: 0; cursor: pointer; }
#app { max-width: 480px; margin: 0 auto; padding: 16px 16px 40px; }
[hidden] { display: none !important; }

/* 홈 */
.home-head { padding: 12px 0 8px; }
.logo { font-weight: 800; font-size: 15px; color: var(--gold); }
.home-head h1 { font-size: 26px; line-height: 1.35; margin: 12px 0 16px; letter-spacing: -0.5px; }
.dday-box { background: var(--card); border-radius: 16px; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.dday { font-weight: 800; font-size: 20px; color: var(--gold); }
.nation { font-size: 13px; color: var(--muted); text-align: right; }
.nation b { color: var(--text); font-size: 15px; }

.tabs { display: flex; gap: 8px; margin: 20px 0 12px; }
.tab { background: var(--card); padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--muted); }
.tab.active { background: var(--text); color: var(--bg); font-weight: 700; }

.uni-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.uni-item { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 14px; padding: 12px 14px; cursor: pointer; transition: transform .1s; }
.uni-item:active { transform: scale(.98); }
.rank { width: 26px; font-weight: 800; color: var(--muted); text-align: center; }
.rank.top { color: var(--gold); }
.swatch { width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center; font-size: 18px; }
.swatch.has-logo { background: #fff !important; padding: 4px; }
.swatch img { width: 100%; height: 100%; object-fit: contain; }
.uni-name { flex: 1; font-weight: 700; }
.uni-name small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; margin-top: 2px; }
.uni-count { font-weight: 700; font-variant-numeric: tabular-nums; }
.uni-count small { color: var(--muted); font-weight: 400; font-size: 12px; }

/* ───────── 캠퍼스: 화면 전체를 쓰는 3D + HUD ─────────
   브레이크포인트
   - 기본(~599px): 모바일 세로. HUD 촘촘하게, 소원·공유는 아래 시트
   - 600~1023px: 태블릿/모바일 가로. 문 상태를 오른쪽 위 카드로
   - 1024px~: PC. 오른쪽에 소원·공유 패널 고정, 3D가 나머지 전체
   - 높이 520px 이하(폰 가로): HUD 최소화 */
html.in-campus, html.in-campus body { height: 100%; overflow: hidden; overscroll-behavior: none; }
.campus { position: fixed; inset: 0; z-index: 5; display: flex; background: #0b1220; }
.stage { position: relative; flex: 1; min-width: 0; height: 100%; overflow: hidden; }
.scene { position: absolute; inset: 0; background: #bfdbfe; user-select: none; -webkit-user-select: none; touch-action: none; cursor: pointer; }

.hud-top, .hud-info, .hud-bottom { position: absolute; left: 0; right: 0; pointer-events: none; z-index: 2; }
.hud-top > *, .hud-info > *, .actions, .hud-bottom button { pointer-events: auto; }
.hud-top { top: 0; display: flex; align-items: center; gap: 8px; padding: calc(env(safe-area-inset-top) + 10px) calc(env(safe-area-inset-right) + 12px) 14px calc(env(safe-area-inset-left) + 12px); background: linear-gradient(rgba(15,23,42,.6), transparent); }
.hud-title { flex: 1; min-width: 0; pointer-events: none !important; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.top-title { font-weight: 800; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live { margin-top: 2px; font-size: 12px; color: rgba(255,255,255,.85); display: flex; align-items: center; gap: 6px; }
.live b { color: #fff; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 #22c55e; animation: pulse 1.6s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.6); } 100% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } }
.icon-btn { width: 40px; height: 40px; flex: none; border-radius: 12px; font-size: 18px; color: #fff; background: rgba(15,23,42,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.12); }

.hud-info { top: calc(env(safe-area-inset-top) + 60px); display: flex; gap: 8px; align-items: flex-start; padding: 0 calc(env(safe-area-inset-right) + 12px) 0 calc(env(safe-area-inset-left) + 12px); }
.counter, .door-status { padding: 8px 12px; border-radius: 14px; background: rgba(15,23,42,.62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.1); }
.counter { flex: none; text-align: left; }
.counter-label { font-size: 11px; color: var(--muted); }
.counter-num { font-size: 24px; font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: -.5px; line-height: 1.15; }
.me { font-size: 11px; color: var(--muted); }
.me b { color: var(--text); }
.door-status { flex: 1; min-width: 0; font-size: 12px; }
.door-row { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.door-row b { white-space: nowrap; }
.door-row span { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.door-bar { position: relative; height: 7px; margin-top: 6px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; }
.door-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, #f59e0b, #ef4444); transition: width .2s; }
.door-bar s { position: absolute; top: 0; bottom: 0; width: 2px; background: rgba(15,23,42,.9); }
.door-next { margin-top: 5px; font-size: 11px; color: rgba(255,255,255,.8); line-height: 1.4; }
.door-meta { margin-top: 3px; font-size: 11px; color: var(--gold); line-height: 1.4; }

.hud-bottom { bottom: 0; padding: 24px calc(env(safe-area-inset-right) + 12px) calc(env(safe-area-inset-bottom) + 12px) calc(env(safe-area-inset-left) + 12px); background: linear-gradient(transparent, rgba(15,23,42,.65) 45%); }
.hint { text-align: center; font-size: 12px; color: #fff; margin: 0 auto 8px; max-width: 560px; line-height: 1.45; text-shadow: 0 1px 4px rgba(0,0,0,.7); }
.keys { text-align: center; font-size: 11px; color: rgba(255,255,255,.7); margin: 8px 0 0; }
@media (hover: none) { .keys { display: none; } }

.actions { display: flex; gap: 8px; max-width: 600px; margin: 0 auto; }
.actions > button { min-width: 0; }
.pray-btn, .knock-btn { flex: 1; padding: 14px 8px; border-radius: 16px; color: #fff; font-size: 16px; font-weight: 800; box-shadow: 0 5px 0 rgba(0,0,0,.35); transition: transform .06s, box-shadow .06s, background .2s; user-select: none; -webkit-user-select: none; touch-action: manipulation; white-space: nowrap; }
.pray-btn { background: var(--uni); }
.knock-btn { background: #92400e; }
.pray-btn:active, .knock-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 rgba(0,0,0,.35); }
.actions .far::after { content: "정문까지 걸어가요"; display: block; font-size: 11px; font-weight: 600; opacity: .75; margin-top: 2px; }
.pray-btn .sw { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; font-size: 12px; background: rgba(0,0,0,.25); }
.pray-btn.on { background: #16a34a; }
.pray-btn.on .sw { background: #fff; color: #16a34a; }
.more-btn { flex: 0 0 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 16px; font-size: 18px; color: #fff; background: rgba(15,23,42,.7); border: 1px solid rgba(255,255,255,.15); }
.more-btn span { font-size: 10px; font-weight: 700; }

/* 3D 화면 위 효과 */
.scene canvas.c3d { display: block; width: 100%; height: 100%; touch-action: none; }
.scene-loading { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; text-align: center; color: #334155; font-weight: 700; font-size: 14px; line-height: 1.6; background: linear-gradient(#7dd3fc, #e0f2fe); transition: opacity .4s ease; }
.scene-loading.out { opacity: 0; pointer-events: none; }
.ld { width: min(280px, 76vw); }
.ld-emoji { font-size: 44px; line-height: 1; margin-bottom: 10px; animation: ldbob 1s ease-in-out infinite; }
@keyframes ldbob { 50% { transform: translateY(-6px) rotate(-4deg); } }
.ld-name { font-size: 20px; font-weight: 900; color: var(--uni); margin-bottom: 4px; }
.ld-msg { min-height: 1.6em; font-size: 14px; color: #334155; }
.ld-bar { height: 12px; margin: 12px 0 6px; border-radius: 999px; background: rgba(255,255,255,.75); box-shadow: inset 0 1px 3px rgba(15,23,42,.18); overflow: hidden; }
.ld-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--gold), #f59e0b); }
.ld-pct { font-size: 12px; font-weight: 800; color: #475569; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .ld-emoji { animation: none; } }
.gate-hint { position: absolute; top: 46%; padding: 6px 12px; border-radius: 999px; background: rgba(15,23,42,.8); color: var(--gold); font-weight: 800; font-size: 13px; pointer-events: none; animation: nudge 1s ease-in-out infinite; z-index: 1; }
.gate-hint.r { right: 10px; }
.gate-hint.l { left: 10px; }
@keyframes nudge { 50% { transform: translateX(4px); } }
.plus { position: absolute; font-weight: 800; color: var(--gold); text-shadow: 0 2px 6px rgba(0,0,0,.4); pointer-events: none; animation: floatup .9s ease-out forwards; font-size: 22px; z-index: 1; }
@keyframes floatup { from { opacity: 1; transform: translate(-50%, 0) scale(1); } to { opacity: 0; transform: translate(-50%, -70px) scale(1.3); } }
.plus.knock-txt { color: #fff; font-size: 18px; text-shadow: 0 2px 4px rgba(0,0,0,.6); }
.plus.break-txt { color: #ef4444; font-size: 40px; font-weight: 900; text-shadow: 0 0 2px #fff, 0 3px 8px rgba(0,0,0,.5); animation-duration: 1.1s; }

/* 소원·공유 패널: 모바일은 아래에서 올라오는 시트 */
.panel { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; max-height: 80dvh; overflow-y: auto; -webkit-overflow-scrolling: touch; background: var(--bg); border-radius: 20px 20px 0 0; padding: 8px calc(env(safe-area-inset-right) + 16px) calc(env(safe-area-inset-bottom) + 20px) calc(env(safe-area-inset-left) + 16px); transform: translateY(105%); transition: transform .28s ease; box-shadow: 0 -10px 30px rgba(0,0,0,.4); }
.campus.panel-open .panel { transform: none; }
.panel-grip { width: 40px; height: 5px; border-radius: 99px; background: rgba(255,255,255,.25); margin: 4px auto 14px; }
.panel-dim { position: fixed; inset: 0; z-index: 7; background: rgba(0,0,0,.45); }
.panel .foot { margin-top: 20px; }

.wish { background: var(--card); border-radius: 16px; padding: 14px; }
.wish-title { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.07); font-size: 13px; }
.chip.on { background: var(--uni); color: #fff; font-weight: 700; outline: 2px solid rgba(255,255,255,.5); }

.share-row { display: flex; gap: 8px; margin-top: 14px; }
.share-btn { flex: 1; padding: 16px; border-radius: 16px; background: var(--gold); color: #1c1917; font-weight: 800; font-size: 16px; }
.ghost-btn { padding: 16px; border-radius: 16px; background: var(--card); font-weight: 700; font-size: 14px; }

/* BM 슬롯 */
.sponsor { display: block; text-align: center; font-size: 12px; color: var(--muted); background: rgba(255,255,255,.04); border-radius: 10px; padding: 8px; margin: 0 0 14px; text-decoration: none; }
.donate { display: block; text-align: center; margin-top: 10px; padding: 12px; border-radius: 14px; border: 1px dashed rgba(255,255,255,.2); color: var(--text); text-decoration: none; font-size: 14px; }
.ad-item { display: flex; align-items: center; gap: 12px; background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.25); border-radius: 14px; padding: 12px 14px; color: var(--text); text-decoration: none; }
.ad-badge { font-size: 10px; font-weight: 800; color: var(--gold); border: 1px solid var(--gold); border-radius: 4px; padding: 1px 4px; }

.foot { margin-top: 28px; text-align: center; font-size: 12px; color: var(--muted); line-height: 1.6; }

.toast { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); background: rgba(15,23,42,.95); border: 1px solid rgba(255,255,255,.15); padding: 12px 18px; border-radius: 12px; font-size: 14px; z-index: 20; max-width: calc(100% - 32px); text-align: center; }
html.in-campus .toast { top: calc(env(safe-area-inset-top) + 150px); bottom: auto; }

/* ── 600px~ : 태블릿 / 모바일 가로 */
@media (min-width: 600px) {
  .hud-info { justify-content: space-between; }
  .door-status { flex: 0 1 360px; }
  .counter-num { font-size: 28px; }
  .pray-btn, .knock-btn { font-size: 17px; padding: 16px 10px; }
  .panel { left: 50%; right: auto; width: min(560px, 100%); transform: translate(-50%, 105%); }
  .campus.panel-open .panel { transform: translate(-50%, 0); }
}

/* ── 1024px~ : PC. 오른쪽 패널 고정 + 3D가 나머지 화면 전체 */
@media (min-width: 1024px) {
  .panel { position: relative; left: auto; right: auto; bottom: auto; transform: none !important; width: 360px; flex: none; height: 100%; max-height: none; border-radius: 0; padding: 20px 20px 24px; box-shadow: none; border-left: 1px solid rgba(255,255,255,.08); z-index: 1; }
  .panel-grip, .panel-dim, .more-btn { display: none !important; }
  .hud-top { padding: 16px 20px 20px; }
  .top-title { font-size: 20px; }
  .live { font-size: 13px; }
  .hud-info { top: 76px; padding: 0 20px; }
  .counter { padding: 12px 16px; }
  .counter-label { font-size: 12px; }
  .counter-num { font-size: 34px; }
  .me { font-size: 12px; }
  .door-status { flex-basis: 380px; padding: 12px 16px; font-size: 14px; }
  .door-next, .door-meta { font-size: 12px; }
  .hud-bottom { padding: 30px 20px 18px; }
  .hint { font-size: 13px; }
  .pray-btn, .knock-btn { font-size: 18px; padding: 18px 12px; }
}

/* ── 높이가 낮은 화면(폰 가로 등): HUD 최소화 */
@media (max-height: 520px) {
  .hud-top { padding-top: calc(env(safe-area-inset-top) + 6px); padding-bottom: 6px; }
  .icon-btn { width: 34px; height: 34px; font-size: 15px; }
  .hud-info { top: calc(env(safe-area-inset-top) + 46px); }
  .counter-label, .door-next, .keys { display: none; }
  .counter-num { font-size: 20px; }
  .counter, .door-status { padding: 6px 10px; }
  .hud-bottom { padding-top: 10px; padding-bottom: calc(env(safe-area-inset-bottom) + 8px); }
  .hint { display: none; }
  .pray-btn, .knock-btn { padding: 10px 8px; font-size: 15px; }
  .actions .far::after { display: none; }
  html.in-campus .toast { top: calc(env(safe-area-inset-top) + 60px); }
}

/* ── 홈도 PC에서는 넓게 */
@media (min-width: 768px) {
  #app { max-width: 820px; padding: 32px 24px 60px; }
  .home-head h1 { font-size: 34px; }
  .uni-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
}

/* 아주 좁은 폰: 버튼 글자 줄이기 */
@media (max-width: 399px) {
  .lbl-long { display: none; }
  .pray-btn, .knock-btn { font-size: 15px; }
}

/* 이름표·말풍선 (3D 위에 겹치는 HTML) */
.ov { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.name-tag, .bubble { position: absolute; left: 0; top: 0; will-change: transform; }
.name-tag::before, .bubble::before { content: none; }
.name-tag { margin-top: -6px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; color: #fff; white-space: nowrap; background: rgba(15,23,42,.6); translate: -50% -100%; }
.name-tag.mine { background: var(--gold); color: #1c1917; font-weight: 800; }
.bubble { margin-top: -30px; max-width: 180px; padding: 7px 11px; border-radius: 14px; font-size: 12px; font-weight: 700; line-height: 1.35; color: #1c1917; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.25); translate: -50% -100%; text-align: center; word-break: keep-all; }
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -6px; margin-left: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: #fff; }
.bubble.mine { background: #fffbeb; box-shadow: 0 0 0 2px var(--gold), 0 4px 12px rgba(0,0,0,.25); }
.bubble.mine::after { border-top-color: #fffbeb; }
.bubble.pop { animation: bubblepop .3s ease-out; }
@keyframes bubblepop { from { scale: .4; opacity: 0; } to { scale: 1; opacity: 1; } }

.knock-btn.fix { background: #0f766e; }
.jump-btn { flex-basis: 56px; }
@media (hover: hover) and (min-width: 1024px) { .jump-btn { display: none; } } /* PC는 Space */

.nick-row { display: flex; align-items: center; gap: 8px; background: var(--card); border-radius: 16px; padding: 10px 14px; margin-bottom: 12px; font-size: 13px; }
.nick-row span { color: var(--muted); }
.nick-row b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nick-btn { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.08); font-size: 18px; }
.wish-title small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; margin-top: 2px; }

/* 입장 정원 (항상 보임 → 열릴 때쯤 대기하다가 우다다) */
.door-seats { margin: 4px 0 2px; padding: 3px 8px; border-radius: 8px; background: rgba(255,255,255,.08); font-size: 12px; font-weight: 700; display: inline-block; }
.door-seats b { color: var(--gold); font-size: 14px; }
.door-seats.soon { background: rgba(251,191,36,.18); animation: seatpulse 1.2s ease-in-out infinite; }
.door-seats.open { background: #16a34a; color: #fff; animation: seatpulse .6s ease-in-out infinite; }
.door-seats.open b { color: #fff; font-size: 16px; }
@keyframes seatpulse { 50% { transform: scale(1.06); } }
.knock-btn.go { background: #16a34a; animation: seatpulse .6s ease-in-out infinite; }
.knock-btn.done { background: #475569; }
@media (min-width: 1024px) { .door-seats { font-size: 13px; } }

/* 27학번 신입생 (정문 통과) 이름표 · 교직원 이름표 */
.name-tag.grad { background: linear-gradient(180deg, #fde68a, #f59e0b); color: #1c1917; box-shadow: 0 0 0 1.5px #fff7d6, 0 2px 8px rgba(245,158,11,.5); }
.name-tag.mine.grad { box-shadow: 0 0 0 2px #fff, 0 2px 10px rgba(245,158,11,.7); }
.name-tag.staff { background: #1e293b; color: #fff; box-shadow: 0 0 0 1.5px #94a3b8; }

/* ── 오늘의 합격 운세 */
.fortune-mini { display: block; width: 100%; margin-top: 6px; padding: 0; text-align: left; font-size: 11px; font-weight: 700; color: var(--gold); background: none; }
.fortune-bar { display: block; height: 4px; margin-top: 3px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; }
.fortune-bar i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .25s ease; }
.fortune-mini.ready { animation: fglow 1.6s ease-in-out infinite; }
@keyframes fglow { 50% { text-shadow: 0 0 8px rgba(251,191,36,.9); } }
@media (min-width: 1024px) { .fortune-mini { font-size: 12px; } }
@media (max-height: 520px) { .fortune-bar { display: none; } }

.fortune-modal { position: fixed; inset: 0; z-index: 15; display: grid; place-items: center; padding: 16px; background: rgba(2,6,23,.72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.fortune-modal[hidden] { display: none; }
.fortune-card { width: min(360px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; overflow-x: hidden; padding: 22px 18px 16px; border-radius: 24px; text-align: center; background: radial-gradient(120% 80% at 50% 30%, #7f1d1d, #2a0f0a 75%); border: 2px solid rgba(251,191,36,.7); box-shadow: 0 0 40px rgba(251,191,36,.35), 0 20px 40px rgba(0,0,0,.5); }
.fortune-modal.fresh .fortune-card { animation: fflip .8s cubic-bezier(.2,.9,.3,1.2); }
@keyframes fflip { from { transform: perspective(800px) rotateY(180deg) scale(.6); opacity: 0; } 60% { opacity: 1; } to { transform: perspective(800px) rotateY(0) scale(1); } }
.fc-top { font-size: 14px; font-weight: 800; color: var(--gold); }
.fc-uni { margin-top: 4px; font-size: 12px; color: rgba(255,255,255,.7); }
/* 포춘쿠키: 닫힌 쿠키 → 톡 → 반으로 쪼개지며 양옆으로 벌어지고, 가운데서 쪽지가 펼쳐짐 */
.cookie-stage:focus { outline: none; }
.cookie-stage:focus-visible .cookie { filter: drop-shadow(0 0 10px rgba(251,191,36,.9)); }
.cookie-stage { position: relative; display: block; width: 100%; height: 250px; margin-top: 8px; padding: 0; background: none; border: 0; color: inherit; cursor: pointer; }
.cookie { position: absolute; left: 50%; top: 34px; width: 210px; transform: translateX(-50%); overflow: visible; filter: drop-shadow(0 10px 14px rgba(0,0,0,.45)); }
.cookie g { transform-box: view-box; transform-origin: 100px 100px; transition: transform .55s cubic-bezier(.2,.9,.3,1.25), opacity .5s; }
.cookie-stage:not(.cracked) .cookie { animation: wobble 1.4s ease-in-out infinite; }
@keyframes wobble { 0%, 100% { transform: translateX(-50%) rotate(-4deg); } 50% { transform: translateX(-50%) rotate(4deg) scale(1.04); } }
.cookie-stage.cracked .ck-l { transform: translate(-82px, 78px) rotate(-30deg) scale(.6); }
.cookie-stage.cracked .ck-r { transform: translate(82px, 78px) rotate(30deg) scale(.6); }
.cookie-hint { position: absolute; left: 0; right: 0; bottom: 18px; font-size: 14px; font-weight: 800; color: var(--gold); animation: fglow 1.6s ease-in-out infinite; }
.cookie-stage.cracked .cookie-hint { display: none; }
.slip { position: absolute; left: 6px; right: 6px; top: 26px; padding: 14px 14px 12px; color: #3b2314; background: repeating-linear-gradient(0deg, #fffdf5 0 22px, #f7f1e1 22px 23px); border-radius: 4px; box-shadow: 0 8px 20px rgba(0,0,0,.4); border-top: 3px solid #dc2626; border-bottom: 3px solid #dc2626; transform: scaleX(.04) scaleY(.5) rotate(-2deg); opacity: 0; transition: transform .6s cubic-bezier(.2,.9,.3,1.15) .3s, opacity .2s .3s; pointer-events: none; }
.cookie-stage.cracked .slip { transform: scaleX(1) scaleY(1) rotate(-1.5deg); opacity: 1; }
.cookie-stage.cracked { cursor: default; }
.fortune-modal:not(.opened) .fc-btns, .fortune-modal:not(.opened) .fc-note { visibility: hidden; }
.fc-grade { margin: 0 0 6px; font-size: 32px; font-weight: 900; color: #b91c1c; }
.fc-msg { margin: 0; font-size: 17px; font-weight: 800; line-height: 1.45; word-break: keep-all; }
.fc-item { margin-top: 10px; padding-top: 8px; border-top: 1px dashed rgba(59,35,20,.3); font-size: 12px; color: #7c5a3c; }
.fc-item b { display: block; margin-top: 2px; font-size: 15px; color: #3b2314; }
.fc-btns { display: flex; gap: 8px; margin-top: 18px; }
.fc-btns .share-btn { padding: 14px; font-size: 15px; }
.fc-btns .ghost-btn { padding: 14px 16px; }
.fc-note { margin-top: 10px; font-size: 11px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .fortune-modal.fresh .fortune-card, .fortune-mini.ready, .cookie-stage .cookie, .cookie-hint { animation: none; } .cookie g, .slip { transition: none; } }

/* ── 과잠 도감 / 다른 학교 과잠 */
.jackets { margin-top: 12px; }
.jacket-chip { display: inline-flex; align-items: center; gap: 6px; }
.jacket-chip i { width: 10px; height: 10px; border-radius: 3px; background: var(--jc); box-shadow: 0 0 0 1px rgba(255,255,255,.5); }
.jacket-chip.on { background: var(--jc); }
.jacket-empty { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.name-tag.visit { background: var(--jc, #334155); color: #fff; box-shadow: 0 0 0 1.5px rgba(255,255,255,.75), 0 2px 6px rgba(0,0,0,.35); }
