/* 백도어 번외편 「그 커피」 — 본편 시안(style.css)의 아이폰 화면 규격을 이어받고, 내 눈(POV) 영상 + 선택지를 더한 화면
   치수는 iPhone 390×844(상태바 54) 기준. 본편 파일은 건드리지 않고 이 파일만 씀 */
:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Apple SD Gothic Neo", "Pretendard Variable", Pretendard, "Noto Sans KR", sans-serif;
  --ink: #fff;
  --sub: rgba(235, 235, 245, .6);
  --sub2: rgba(235, 235, 245, .3);
  --blue: #0a84ff;
  --kakao: #fee500;
  --gold: #e8c98a;
  --tint: #e9eeff;
  --tint2: #c3cde6;
  --t: 0px;
  --b: 0px;
  --kb: 0px;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; background: #000; color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; overscroll-behavior: none; touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input { -webkit-user-select: text; user-select: text; }
body { display: grid; place-items: center; overflow: hidden; background: radial-gradient(ellipse at 50% 40%, #15171d, #050506 70%); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; }
a { color: inherit; text-decoration: none; }

/* SF Symbols 마스크 */
.sym { display: inline-block; width: 1.25em; height: 1.25em; flex: none; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.s-lock { --m: url(../img/sf/lock.fill.png); } .s-flash { --m: url(../img/sf/flashlight.off.fill.png); } .s-camera { --m: url(../img/sf/camera.fill.png); }
.s-person { --m: url(../img/sf/person.fill.png); } .s-again { --m: url(../img/sf/arrow.clockwise.png); } .s-vid { --m: url(../img/sf/video.fill.png); }
.s-plus { --m: url(../img/sf/plus.png); } .s-up { --m: url(../img/sf/arrow.up.png); }
.s-back { --m: url(sf/chevron.left.png); } .s-search { --m: url(sf/magnifyingglass.png); } .s-cup { --m: url(sf/cup.and.saucer.fill.png); }
.s-menu { --m: url(sf/line.3.horizontal.png); } .s-skip { --m: url(sf/forward.fill.png); }

/* ───────── 무대: 폰은 화면 꽉, 큰 화면은 아이폰 테두리 ───────── */
.stage { position: fixed; inset: 0; overflow: hidden; overflow: clip; background: #000; isolation: isolate;
  --t: calc(env(safe-area-inset-top, 0px) - 40px); --b: calc(env(safe-area-inset-bottom, 0px) - 20px); }
@media (min-width: 600px) {
  .stage { position: relative; inset: auto; width: 390px; height: 844px; border-radius: 55px; transform: scale(var(--k, 1)); flex: none;
    --t: 0px; --b: 0px;
    box-shadow: 0 0 0 10px #0d0d0f, 0 0 0 11.5px #3b3b40, 0 0 0 13px #1a1a1d, 0 50px 120px rgba(0, 0, 0, .75); }
}
.stage > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; z-index: 0; opacity: 0;
  transition: opacity .6s, filter .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); }
.stage.vid > video { opacity: 1; }
.stage.freeze > video { filter: brightness(.48) saturate(.75) blur(1.5px); transform: scale(1.025); }
.stage.blink > video { animation: blink .55s ease-in-out; }
.stage.memory > video { animation: memIn 1.6s cubic-bezier(.2,.8,.2,1); }
@keyframes memIn { 0% { filter: brightness(2.4) blur(14px) saturate(.6); } 100% { filter: none; } }
@keyframes blink { 0% { filter: brightness(1); } 45% { filter: brightness(0); } 100% { filter: brightness(1); } }

.sb, .island, .homebar { display: none; }
@media (min-width: 600px) {
  .sb { position: absolute; top: 0; left: 0; right: 0; height: 54px; z-index: 90; display: flex; align-items: center; justify-content: space-between;
    padding: 4px 30px 0 52px; font-size: 17px; font-weight: 600; letter-spacing: -.3px; color: #fff; pointer-events: none; transition: opacity .4s; }
  .stage.pov-on .sb { opacity: 0; }
  .sb-r { display: flex; align-items: center; gap: 7px; }
  .bat { position: relative; width: 27px; height: 13px; border-radius: 4.2px; display: inline-block; margin-right: 3px;
    background: linear-gradient(90deg, #fff 0 64%, rgba(255,255,255,.36) 64% 100%); }
  .bat::after { content: ""; position: absolute; right: -3px; top: 4.2px; width: 1.7px; height: 4.6px; border-radius: 0 1.5px 1.5px 0; background: #fff; opacity: .4; }
  .bat i { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 700 11px/1 -apple-system, "SF Pro Text", sans-serif; color: #000; font-style: normal; letter-spacing: -.35px; }
  .island { display: block; position: absolute; top: 11px; left: 50%; width: 126px; height: 37px; margin-left: -63px; border-radius: 20px; background: #000; z-index: 95; pointer-events: none; }
  .homebar { display: block; position: absolute; bottom: 8px; left: 50%; width: 140px; height: 5px; margin-left: -70px; border-radius: 3px; background: #fff; opacity: .85; z-index: 95; pointer-events: none; }
}

.grain { position: absolute; inset: -50%; z-index: 5; pointer-events: none; opacity: .05; mix-blend-mode: overlay; background-size: 160px 160px; animation: grain .9s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0,0); } 20% { transform: translate(-4%,3%); } 40% { transform: translate(3%,-5%); } 60% { transform: translate(-6%,-2%); } 80% { transform: translate(5%,4%); } 100% { transform: translate(0,0); } }

/* ───────── 내 눈(POV): 자막 · 속마음 · 선택 ───────── */
.pov { position: absolute; inset: 0; z-index: 10; pointer-events: none; opacity: 0; transition: opacity .5s; }
.pov.on { opacity: 1; }
.pov::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 120% 90% at 50% 45%, transparent 55%, rgba(0,0,0,.45)), linear-gradient(180deg, rgba(0,0,0,.25), transparent 18%, transparent 62%, rgba(0,0,0,.55)); }
.place { position: absolute; z-index: 2; left: 22px; top: calc(66px + var(--t)); font-size: 11px; letter-spacing: .26em; color: rgba(255,255,255,.72);
  opacity: 0; transform: translateY(-6px); transition: opacity .8s, transform .8s; }
.place.on { opacity: 1; transform: none; }
.place::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 9px 1px 0; border-radius: 50%; background: #ff453a; box-shadow: 0 0 8px rgba(255,69,58,.8); animation: rec 1.6s ease-in-out infinite; vertical-align: middle; }
@keyframes rec { 50% { opacity: .25; } }

.cap { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: calc(118px + var(--b)); text-align: center; opacity: 0; transition: opacity .25s; }
.cap.on { opacity: 1; }
.cap-who { font-size: 11px; letter-spacing: .2em; color: rgba(255,255,255,.62); margin-bottom: 6px; }
.cap-text { display: inline; font-size: 19px; font-weight: 600; line-height: 1.45; letter-spacing: -.3px; color: #fff; word-break: keep-all;
  text-shadow: 0 1px 2px rgba(0,0,0,.9), 0 0 18px rgba(0,0,0,.65); }

.think { position: absolute; z-index: 3; left: 26px; right: 26px; top: 40%; text-align: center; font-size: 17px; line-height: 1.55; letter-spacing: -.25px;
  color: rgba(255,255,255,.92); word-break: keep-all; opacity: 0; transform: translateY(8px); transition: opacity .6s, transform .6s; text-shadow: 0 1px 12px rgba(0,0,0,.8); }
.think.on { opacity: 1; transform: none; }
.think .who { display: block; font-size: 11px; letter-spacing: .2em; color: rgba(255,255,255,.55); margin-bottom: 8px; }
.think.narr { font-style: italic; font-weight: 400; color: rgba(235,235,245,.82); }

.choose { position: absolute; z-index: 4; left: 18px; right: 18px; bottom: calc(46px + var(--b)); pointer-events: none; opacity: 0; transform: translateY(14px);
  transition: opacity .45s, transform .55s cubic-bezier(.2,1,.32,1); }
.choose.on { opacity: 1; transform: none; pointer-events: auto; }
.choose-q { margin: 0 6px 12px; font-size: 13px; letter-spacing: -.1px; color: rgba(235,235,245,.7); text-align: center; }
.choose-list { display: flex; flex-direction: column; gap: 9px; }
.opt { display: flex; align-items: center; justify-content: center; min-height: 54px; padding: 12px 18px; border-radius: 27px; font-size: 16px; font-weight: 600; letter-spacing: -.3px;
  color: #fff; text-align: center; word-break: keep-all;
  background: rgba(255,255,255,.13); backdrop-filter: blur(24px) saturate(1.5); -webkit-backdrop-filter: blur(24px) saturate(1.5); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.26);
  transition: transform .15s, background .2s; animation: optIn .5s cubic-bezier(.2,1,.32,1) both; }
.opt:nth-child(2) { animation-delay: .08s; } .opt:nth-child(3) { animation-delay: .16s; }
.opt:active { transform: scale(.97); background: rgba(255,255,255,.22); }
.opt.quiet { font-weight: 500; color: rgba(255,255,255,.75); }
.opt.picked { background: #fff; color: #000; }
.opt.gone { opacity: 0; transform: scale(.96); transition: opacity .25s, transform .25s; }
@keyframes optIn { from { opacity: 0; transform: translateY(10px); } }

.skip { position: absolute; z-index: 4; right: 16px; top: calc(60px + var(--t)); height: 30px; padding: 0 12px; border-radius: 15px; font-size: 12px; color: rgba(255,255,255,.75);
  background: rgba(0,0,0,.28); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.22); pointer-events: auto; opacity: 0; transition: opacity .4s; }
.pov.on .skip.on { opacity: 1; }
.skip:not(.on) { pointer-events: none; }

/* ───────── 카톡 대화방(다크) ───────── */
.room { position: absolute; inset: 0; z-index: 35; display: flex; flex-direction: column; background: #1b1b1d; opacity: 0; pointer-events: none;
  transform: translateX(30px); transition: opacity .35s, transform .45s cubic-bezier(.2,1,.32,1); }
.room.on { opacity: 1; transform: none; pointer-events: auto; }
.rm-head { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; height: calc(98px + var(--t)); padding: calc(46px + var(--t)) 8px 0; background: #1b1b1d; border-bottom: .5px solid rgba(255,255,255,.08); }
.rm-back, .rm-r { display: grid; place-items: center; height: 44px; color: rgba(255,255,255,.9); font-size: 17px; }
.rm-who { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 17px; font-weight: 600; letter-spacing: -.4px; }
.rm-av { width: 28px; height: 28px; border-radius: 11px; object-fit: cover; }
.rm-body { flex: 1; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 12px 12px 10px; }
.rm-day { align-self: center; margin: 4px 0 10px; padding: 4px 12px; border-radius: 12px; font-size: 12px; color: rgba(255,255,255,.62); background: rgba(255,255,255,.07); }
.msg { display: flex; align-items: flex-end; gap: 6px; max-width: 82%; animation: msgIn .35s cubic-bezier(.2,1,.32,1) both; }
.msg.them { align-self: flex-start; }
.msg.me { align-self: flex-end; flex-direction: row-reverse; }
.msg .av { width: 36px; height: 36px; border-radius: 14px; object-fit: cover; align-self: flex-start; flex: none; }   /* 10/14 이어진 말풍선도 첫 줄과 같은 자리(GL 검증 때 발견) */
.msg.cont .av { visibility: hidden; height: 0; }
.msg .col { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.msg .nm { font-size: 12px; color: rgba(255,255,255,.62); margin: 0 0 2px 2px; }
.msg.cont .nm { display: none; }
.bub { padding: 8px 11px; border-radius: 14px; font-size: 15px; line-height: 1.38; letter-spacing: -.2px; word-break: keep-all; overflow-wrap: anywhere; }
.them .bub { background: #333336; color: #fff; border-top-left-radius: 4px; }
.me .bub { background: var(--kakao); color: #191919; border-top-right-radius: 4px; }
.msg .meta { font-size: 10px; color: rgba(255,255,255,.45); white-space: nowrap; padding-bottom: 2px; text-align: right; }
.msg .meta b { display: block; font-weight: 600; color: var(--kakao); }
.typing .bub { display: flex; gap: 4px; padding: 13px 13px; }
.typing .bub i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.55); animation: dot 1.2s infinite; }
.typing .bub i:nth-child(2) { animation-delay: .15s; } .typing .bub i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } }
.rm-quick { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; padding: 0 12px; min-height: 0; transition: min-height .3s; }
.rm-quick:not(:empty) { padding-bottom: 10px; }
.chip { padding: 9px 14px; border-radius: 18px; font-size: 15px; letter-spacing: -.2px; color: #191919; background: var(--kakao); box-shadow: 0 2px 10px rgba(0,0,0,.25);
  animation: optIn .45s cubic-bezier(.2,1,.32,1) both; transition: transform .15s; }
.chip.ghost { background: rgba(255,255,255,.12); color: #fff; }
.chip:active { transform: scale(.96); }
.rm-bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px calc(30px + var(--b)); background: #232325; }
.rm-plus, .rm-send { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; color: rgba(255,255,255,.65); }
.rm-send { background: rgba(255,255,255,.08); }
.rm-field { flex: 1; height: 36px; padding: 0 14px; display: flex; align-items: center; border-radius: 18px; background: #2f2f32; }
.rm-field input { width: 100%; background: none; border: 0; outline: none; color: #fff; font-size: 16px; letter-spacing: -.2px; caret-color: var(--kakao); }
.rm-field input::placeholder { color: rgba(255,255,255,.35); }
.rm-field input:disabled { opacity: .5; }
.rm-send { border: 0; cursor: pointer; transition: background .2s, color .2s; }
.rm-bar.has-text .rm-send { background: var(--kakao); color: #191919; }
.room { bottom: var(--kb); }  /* 폰 키보드가 올라오면 대화방이 그 위로 줄어듦 */
.rm-hint { align-self: center; margin: 2px 0 4px; font-size: 11.5px; color: rgba(255,255,255,.4); }

/* ───────── 잠금화면 ───────── */
.lock { position: absolute; inset: 0; z-index: 30; color: var(--tint); opacity: 0; pointer-events: none; transition: opacity .7s; }
.lock.on { opacity: 1; pointer-events: auto; }
.lock .wallp { position: absolute; inset: -3%; background: #0b0d14 url(../img/wall.jpg) center / cover no-repeat; transform: scale(1.12); filter: brightness(.2);
  transition: transform 1.2s cubic-bezier(.2,1,.32,1), filter 1.2s; animation: drift 18s ease-in-out infinite alternate; }
.lock.on .wallp { transform: scale(1); filter: none; }
.lock.day .wallp { filter: brightness(1.18) saturate(.85) hue-rotate(-8deg); }
@keyframes drift { from { translate: 0 0; } to { translate: -5px -7px; } }
.lock::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.08), transparent 30%, rgba(0,0,0,.14) 70%, rgba(0,0,0,.34)); }
.lk-glyph { position: absolute; top: calc(60px + var(--t)); left: 50%; margin-left: -7px; width: 14px; height: 18px; z-index: 2; color: var(--tint); }
.lk-date, .lk-time { position: absolute; left: 0; right: 0; text-align: center; z-index: 2; transform: translateY(-14px); opacity: 0; transition: transform .9s cubic-bezier(.2,1,.32,1) .15s, opacity .6s .15s; }
.lock.on .lk-date, .lock.on .lk-time { transform: none; opacity: 1; }
.lk-date { top: calc(84px + var(--t)); font-size: 20px; font-weight: 600; letter-spacing: -.1px; }
.lk-time { top: calc(101px + var(--t)); font-size: 112px; font-weight: 500; letter-spacing: -2.5px; line-height: 1; font-variant-numeric: tabular-nums; }
.lk-notis { position: absolute; left: 17px; right: 17px; bottom: calc(190px + var(--b)); display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.lk-act { position: absolute; z-index: 3; left: 50%; bottom: calc(118px + var(--b)); translate: -50% 0; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px;
  border-radius: 23px; font-size: 15px; font-weight: 600; letter-spacing: -.3px; color: #fff; white-space: nowrap;
  background: rgba(255,255,255,.16); backdrop-filter: blur(24px) saturate(1.5); -webkit-backdrop-filter: blur(24px) saturate(1.5); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.26);
  opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .45s, transform .5s cubic-bezier(.2,1,.32,1); }
.lk-act.on { opacity: 1; pointer-events: auto; transform: none; animation: actPulse 2.4s ease-in-out 1s infinite; }
.lk-act .sym { font-size: 16px; }
@keyframes actPulse { 50% { box-shadow: inset 0 0 0 .5px rgba(255,255,255,.26), 0 0 0 7px rgba(255,255,255,.06); } }
.noti { display: flex; gap: 14px; align-items: flex-start; padding: 13px 12px 15px; border-radius: 20px; color: #fff; text-align: left; cursor: pointer;
  background: rgba(28, 30, 40, .55); backdrop-filter: blur(30px) saturate(1.4); -webkit-backdrop-filter: blur(30px) saturate(1.4);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.13); animation: notiIn .7s cubic-bezier(.2,1,.32,1) both; transition: transform .15s; }
.noti:active { transform: scale(.98); }
.noti.still { animation: none; }
.noti.hot { box-shadow: inset 0 0 0 .5px rgba(255,255,255,.13), 0 0 0 2px rgba(254,229,0,.0); animation: notiIn .7s cubic-bezier(.2,1,.32,1) both, hot 2.2s ease-in-out .8s infinite; }
@keyframes hot { 50% { box-shadow: inset 0 0 0 .5px rgba(255,255,255,.13), 0 0 0 2px rgba(254,229,0,.45); } }
@keyframes notiIn { from { opacity: 0; transform: translateY(30px) scale(.94); } }
.nic { width: 38px; height: 38px; border-radius: 10px; flex: none; overflow: hidden; object-fit: cover; }
.nb { flex: 1; min-width: 0; padding-top: 1px; }
.nh { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 15px; font-weight: 600; letter-spacing: -.2px; }
.nh em { font-style: normal; font-weight: 400; font-size: 13px; color: var(--tint2); white-space: nowrap; }
.nr { font-size: 13px; color: rgba(255,255,255,.7); margin-top: 1px; }
.nm { font-size: 15px; line-height: 1.33; margin-top: 3px; letter-spacing: -.15px; word-break: keep-all; overflow-wrap: anywhere; }
.lk-bottom { position: absolute; left: 0; right: 0; bottom: calc(48px + var(--b)); display: flex; justify-content: space-between; padding: 0 45px; z-index: 2; }
.lk-btn { width: 51px; height: 51px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 19px;
  background: rgba(40, 42, 56, .55); backdrop-filter: blur(30px) saturate(1.4); -webkit-backdrop-filter: blur(30px) saturate(1.4); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.12); }

/* 사원 정보 시트 */
.sh-dim { position: absolute; inset: 0; z-index: 4; background: rgba(0,0,0,.42); opacity: 0; pointer-events: none; transition: opacity .4s; }
.lock.sheet-open .sh-dim { opacity: 1; pointer-events: auto; }
.sheet { position: absolute; left: 8px; right: 8px; bottom: calc(8px + max(var(--kb), env(safe-area-inset-bottom, 0px))); z-index: 5; padding: 7px 16px 18px; border-radius: 34px; color: #fff;
  background: rgba(32, 32, 36, .82); backdrop-filter: blur(40px) saturate(1.6); -webkit-backdrop-filter: blur(40px) saturate(1.6);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.12), 0 -10px 40px rgba(0,0,0,.35);
  transform: translateY(115%); transition: transform .55s cubic-bezier(.2,1,.32,1), bottom .25s; }
.lock.sheet-open .sheet { transform: none; }
.grab { width: 36px; height: 5px; margin: 0 auto 6px; border-radius: 3px; background: rgba(255,255,255,.28); }
.sh-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 40px; }
.sh-head b { font-size: 17px; font-weight: 600; letter-spacing: -.4px; }
.sh-head button { justify-self: end; font-size: 17px; font-weight: 600; color: var(--blue); padding: 6px 4px; }
.sh-head button:disabled { color: var(--sub2); cursor: default; }
.sh-av { width: 84px; height: 84px; margin: 12px auto 8px; border-radius: 50%; display: grid; place-items: center; font-size: 32px; font-weight: 600; letter-spacing: -1px;
  background: linear-gradient(180deg, #a8acb5, #7b7f88); color: #fff; }
.sh-av .sym { font-size: 34px; }
.sh-org { text-align: center; font-size: 15px; color: var(--sub); letter-spacing: -.2px; }
.sh-group { margin: 18px 0 6px; border-radius: 14px; background: rgba(118,118,128,.18); overflow: hidden; }
.sh-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 0 16px; font-size: 17px; letter-spacing: -.4px; position: relative; }
.sh-row + .sh-row::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: .5px; background: rgba(84,84,88,.65); }
.sh-row input { flex: 1; min-width: 0; text-align: right; color: #fff; background: none; border: 0; outline: none; font-size: 17px; letter-spacing: -.4px; caret-color: var(--blue); }
.sh-row input::placeholder { color: var(--sub2); }
.sh-row em { font-style: normal; color: var(--sub); }
.sh-foot { padding: 0 16px; font-size: 13px; color: var(--sub); letter-spacing: -.1px; word-break: keep-all; }
.sh-btn { display: block; width: 100%; height: 50px; margin-top: 18px; border-radius: 25px; background: var(--blue); color: #fff; font-size: 17px; font-weight: 600; letter-spacing: -.4px; transition: transform .15s; }
.sh-btn:active { transform: scale(.98); }
.sheet.shake { animation: shake .35s; }
@keyframes shake { 20% { translate: -8px 0; } 40% { translate: 7px 0; } 60% { translate: -5px 0; } 80% { translate: 3px 0; } }

/* ───────── 시간 카드 ───────── */
.card { position: absolute; inset: 0; z-index: 60; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; background: #000;
  opacity: 0; pointer-events: none; transition: opacity .6s; }
.card.on { opacity: 1; pointer-events: auto; }
.card-time { font-size: 40px; font-weight: 300; letter-spacing: -1px; font-variant-numeric: tabular-nums; color: #fff; opacity: 0; transform: translateY(6px); transition: opacity .8s .15s, transform .8s .15s; }
.card-text { font-size: 13px; letter-spacing: .22em; color: rgba(235,235,245,.55); opacity: 0; transition: opacity .8s .45s; text-align: center; padding: 0 30px; line-height: 1.7; }
.card.on .card-time, .card.on .card-text { opacity: 1; transform: none; }

/* ───────── 제목 ───────── */
.title { position: absolute; inset: 0; z-index: 70; display: flex; flex-direction: column; justify-content: center; align-items: center; background: #000; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .9s; }
.title.on { opacity: 1; }
.tt-logo { width: 132px; opacity: .9; margin-bottom: 26px; filter: drop-shadow(0 0 12px rgba(160,190,255,.35)); }
.tt-kicker { font-size: 12px; letter-spacing: .5em; padding-left: .5em; color: var(--gold); }
.tt-name { margin-top: 10px; font-size: 44px; font-weight: 700; letter-spacing: -1.5px; }
.tt-sub { margin-top: 12px; font-size: 13px; color: rgba(235,235,245,.5); letter-spacing: -.1px; }
.title.on .tt-name { animation: ttIn 1.4s cubic-bezier(.2,.8,.2,1) both .2s; }
@keyframes ttIn { from { opacity: 0; filter: blur(10px); letter-spacing: 6px; } }

/* ───────── 알림 배너 · 토스트 ───────── */
.banner { position: absolute; left: 8px; right: 8px; top: calc(54px + var(--t)); z-index: 62; cursor: pointer; transform: translateY(calc(-100% - 80px)); transition: transform .55s cubic-bezier(.2,1,.32,1); }
.banner.on { transform: none; }
.banner .noti { background: rgba(30,30,34,.78); animation: none; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.14), 0 10px 30px rgba(0,0,0,.35); }
.banner .nh em { color: var(--sub); }
.toast { position: absolute; left: 50%; top: calc(64px + var(--t)); z-index: 63; max-width: 86%; padding: 10px 16px; border-radius: 20px; font-size: 14px; letter-spacing: -.2px; text-align: center; white-space: normal; width: max-content; word-break: keep-all; overflow-wrap: anywhere;
  background: rgba(30,30,34,.82); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); opacity: 0; transform: translate(-50%, -10px); transition: opacity .3s, transform .3s; pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ───────── 끝 화면 ───────── */
.endcard { position: absolute; inset: 0; z-index: 72; display: grid; place-items: center; padding: 0 24px; text-align: center;
  background: rgba(0,0,0,.84); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); opacity: 0; pointer-events: none; transition: opacity .8s; }
.endcard.open { opacity: 1; pointer-events: auto; }
.end-in { width: 100%; }
.end-logo { width: 140px; margin-bottom: 22px; opacity: .94; filter: drop-shadow(0 0 12px rgba(160,190,255,.4)); }
.end-kicker { margin-bottom: 6px; font-size: 11px; letter-spacing: .28em; color: var(--sub); }
.end-title { font-size: 30px; font-weight: 700; letter-spacing: -.6px; }
.end-title .lt { display: inline-block; opacity: 0; transform: translateY(10px); filter: blur(6px); animation: lt .6s cubic-bezier(.2,.8,.2,1) forwards; white-space: pre; }
@keyframes lt { to { opacity: 1; transform: none; filter: none; } }
.end-sub { margin: 10px 0 14px; font-size: 15px; line-height: 1.5; color: rgba(235,235,245,.78); word-break: keep-all; }
.end-hidden { min-height: 18px; margin-bottom: 18px; font-size: 13px; color: var(--gold); letter-spacing: -.1px; word-break: keep-all; opacity: 0; transition: opacity 1s 1.2s; }
.endcard.open .end-hidden { opacity: 1; }
.end-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 7px; height: 48px; padding: 0 22px; border-radius: 24px; font-size: 16px; font-weight: 600; letter-spacing: -.3px; background: #fff; color: #000; transition: transform .15s; }
.pill .sym { font-size: 14px; }
.pill:active { transform: scale(.97); }
.pill.glass { color: #fff; background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.28); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.end-found { margin-top: 18px; font-size: 12px; color: rgba(235,235,245,.45); }

/* ───────── 탭해서 시작 ───────── */
.tap { position: absolute; inset: 0; z-index: 85; display: flex; flex-direction: column; justify-content: center; align-items: center; background: #000; cursor: pointer; transition: opacity .5s; }
.tap.hide { opacity: 0; pointer-events: none; }
.tap-in { text-align: center; }
.tap-ring { position: relative; width: 74px; height: 74px; margin: 0 auto 22px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); }
.tap-ring::before, .tap-ring::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid rgba(232,201,138,.55); animation: tapPulse 2.2s ease-out infinite; }
.tap-ring::after { animation-delay: 1.1s; }
.tap-ring span { position: absolute; inset: 30px; border-radius: 50%; background: #fff; box-shadow: 0 0 18px rgba(232,201,138,.9); }
@keyframes tapPulse { from { transform: scale(1); opacity: 1; } to { transform: scale(1.9); opacity: 0; } }
.tap-text { font-size: 12px; letter-spacing: .5em; padding-left: .5em; color: rgba(255,255,255,.85); }
.tap-sub { margin-top: 10px; font-size: 12px; color: rgba(255,255,255,.38); }
.tap-foot { position: absolute; bottom: calc(40px + var(--b)); font-size: 10px; letter-spacing: .3em; color: rgba(255,255,255,.25); }

/* 짧은 화면(작은 폰) */
@media (max-height: 700px) {
  .lk-time { font-size: 92px; }
  .lk-notis { bottom: calc(160px + var(--b)); }
  .cap { bottom: calc(100px + var(--b)); }
}

/* 폰을 가로로 들면 세로로 돌려 달라고 */
.rotate { display: none; position: fixed; inset: 0; z-index: 200; background: #000; color: rgba(235,235,245,.85); flex-direction: column; align-items: center; justify-content: center; gap: 14px; font-size: 15px; letter-spacing: -.2px; }
.rotate i { width: 34px; height: 56px; border: 2px solid rgba(255,255,255,.7); border-radius: 8px; animation: rot 1.8s ease-in-out infinite; }
@keyframes rot { 0%, 30% { transform: rotate(-90deg); } 60%, 100% { transform: rotate(0deg); } }
@media (orientation: landscape) and (max-height: 520px) and (pointer: coarse) { .rotate { display: flex; } }

/* ───────── 다국어(10/14): 시작 화면 언어 고르기 · 일본어 글꼴 · 자막 한 줄 ───────── */
.tap-langs { display: flex; gap: 8px; justify-content: center; margin-top: 22px; }
.tap-langs button { height: 36px; padding: 0 16px; border-radius: 18px; font-size: 13px; letter-spacing: -.1px; color: rgba(255,255,255,.78);
  background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.22); transition: background .2s, color .2s, transform .15s; }
.tap-langs button.on { background: #fff; color: #000; font-weight: 600; }
.tap-langs button:active { transform: scale(.96); }
html[lang="ja"] { --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif; }
html[lang=ja] .bub, html[lang=ja] .nm, html[lang=ja] .end-sub, html[lang=ja] .end-hidden, html[lang=ja] .sh-foot, html[lang=ja] .think, html[lang=ja] .opt, html[lang=ja] .choose-q { word-break: normal; line-break: strict; }   /* 일본어는 keep-all이면 문장이 통째로 한 낱말 취급(10/14) */
.cap-text { white-space: nowrap; }          /* 자막은 한 줄만 — 넘치면 bonus.js fitCap()이 글자를 줄임 */
.think, .opt, .choose-q { text-wrap: balance; }

/* 10/14 검증 반영: 작은 버튼은 보이는 크기는 그대로, 누르는 영역만 넓힘 */
.rm-send { position: relative; }
.skip::after, .rm-send::after { content: ''; position: absolute; inset: -8px; }
html[lang=ja] .bub[lang=ko] { word-break: keep-all; }   /* 10/14 페이블: 일본어 화면의 한국어 입력 */

/* 10/14 안내 문구(사용자 "AI 캐릭터는 예시, 본 서비스는 바뀔 수 있다 — 보조 안전장치"): 첫 화면 아래·엔딩 아래 */
.tap-disc { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(64px + var(--b)); width: min(320px, 84vw); margin: 0; font-size: 10.5px; line-height: 1.55; color: rgba(255,255,255,.34); text-align: center; word-break: keep-all; }
.end-disc { margin: 18px auto 0; max-width: 300px; font-size: 10.5px; line-height: 1.55; color: rgba(255,255,255,.34); text-align: center; word-break: keep-all; }
html[lang="ja"] .tap-disc, html[lang="ja"] .end-disc { word-break: normal; line-break: strict; }
