/* The landing's phone: the iPhone screens around the app's call screen (duri-journey.js). Laid out
   in the phone's own 393x852 points; the script scales .dj to the drawn phone. */
.dj { position:absolute; left:0; top:0; width:393px; height:852px; overflow:hidden; transform-origin:0 0; background:#000; color:#fff;
  font-family:-apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Inter, "Apple SD Gothic Neo", "Noto Sans KR", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing:antialiased; line-height:normal; letter-spacing:normal; text-align:left; user-select:none; -webkit-user-select:none; }
.dj *, .dj *::before, .dj *::after { box-sizing:border-box; }
.dj svg { display:block; width:100%; height:100%; fill:currentColor; }
.dj [hidden] { display:none !important; }
.dj.buzz { animation:dj-buzz .46s linear; }
/* Two pulses, with the gap between them, matching vibe() in duri-journey.js. */
@keyframes dj-buzz { 0%,40%,56%,100% { translate:0 0; } 5%,15%,25%,35%,61%,71%,81%,91% { translate:-1.5px 0; } 10%,20%,30%,66%,76%,86%,96% { translate:1.5px 0; } }

/* The app sits under the status bar and above the home indicator, as on an iPhone. */
.dj-app { position:absolute; left:0; right:0; top:0; bottom:0; padding-top:54px; padding-bottom:20px; background:#F5F0E9; z-index:1;
  opacity:0; transform:scale(.25); border-radius:44px; transition:transform .42s cubic-bezier(.2,.8,.2,1), opacity .25s, border-radius .42s; }
.dj-app > .dc { height:100%; }
.dj[data-scene="app"] .dj-app { opacity:1; transform:none; border-radius:0; }

/* Lock screen */
.dj-lock { position:absolute; inset:0; z-index:2; transition:opacity .35s, transform .42s cubic-bezier(.2,.8,.2,1); }
.dj[data-scene="app"] .dj-lock { opacity:0; transform:translateY(-60px); pointer-events:none; }
.dj-wall { position:absolute; inset:0; background:
  radial-gradient(120% 60% at 20% 8%, rgba(120,160,255,.55), transparent 60%),
  radial-gradient(90% 55% at 90% 100%, rgba(245,176,130,.75), transparent 65%),
  linear-gradient(170deg, #142554 0%, #2B4790 48%, #8E7BB0 78%, #E9B08C 100%); }
.dj-lockicon { position:absolute; left:50%; top:62px; width:22px; height:22px; margin-left:-11px; color:#fff; transition:transform .25s; }
.dj-lockicon.open { transform:scale(1.15); }
.dj-date { position:absolute; left:0; right:0; top:96px; text-align:center; font-size:21px; font-weight:600; color:rgba(255,255,255,.92); }
.dj-time { position:absolute; left:0; right:0; top:112px; text-align:center; font-size:98px; font-weight:700; letter-spacing:-2px; line-height:1.08;
  color:rgba(255,255,255,.95); font-family:"SF Pro Rounded", ui-rounded, -apple-system, BlinkMacSystemFont, Inter, sans-serif; }
.dj-notes { position:absolute; left:10px; right:10px; bottom:132px; display:flex; flex-direction:column; gap:8px; opacity:0; transform:translateY(40px) scale(.94); transition:opacity .3s, transform .45s cubic-bezier(.2,1.25,.4,1); }
.dj-notes.in { opacity:1; transform:none; }
.dj-note { display:flex; gap:11px; padding:13px 14px 14px; border-radius:24px; background:rgba(246,246,248,.82); color:#000;
  -webkit-backdrop-filter:blur(24px) saturate(1.6); backdrop-filter:blur(24px) saturate(1.6); box-shadow:0 2px 20px rgba(0,0,0,.12);
  font-size:15px; line-height:1.3; }
.dj-note img { flex:none; width:38px; height:38px; border-radius:9px; margin-top:1px; }
.dj-note-main { flex:1; min-width:0; }
.dj-note-top { display:flex; gap:8px; align-items:baseline; }
.dj-note-top b { flex:1; min-width:0; font-weight:600; }
.dj-note-top span { flex:none; font-size:13px; color:rgba(0,0,0,.45); }
.dj-qa { position:absolute; bottom:46px; width:50px; height:50px; border-radius:50%; background:rgba(0,0,0,.28); color:#fff; padding:13px;
  -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); }
.dj-qa.l { left:46px; } .dj-qa.r { right:46px; }

/* Asleep: the screen is off */
.dj-sleep { position:absolute; inset:0; z-index:7; background:#000; opacity:0; pointer-events:none; transition:opacity .35s; }
.dj[data-scene="asleep"] .dj-sleep { opacity:1; transition:opacity .2s; }

/* Status bar, Dynamic Island, home indicator */
.dj-status { position:absolute; left:0; right:0; top:0; height:54px; z-index:5; display:flex; align-items:center; justify-content:space-between;
  padding:4px 30px 0 46px; color:#000; font-size:17px; font-weight:600; transition:color .3s; pointer-events:none; }
.dj-icons { display:flex; align-items:center; gap:6px; }
.dj-icons svg { width:auto; height:12px; }
.dj-icons svg:first-child { height:11px; }
.dj[data-scene="lock"] .dj-status, .dj[data-scene="asleep"] .dj-status, .dj[data-scene="incoming"] .dj-status, .dj[data-scene="incall"] .dj-status { color:#fff; }
.dj[data-scene="lock"] .dj-clock, .dj[data-scene="asleep"] .dj-clock { visibility:hidden; }
.dj-island { position:absolute; top:11px; left:50%; width:124px; height:36px; margin-left:-62px; border-radius:20px; background:#000; z-index:6; }
.dj-home { position:absolute; bottom:8px; left:50%; width:136px; height:5px; margin-left:-68px; border-radius:3px; background:#000; z-index:6; transition:background .3s; }
.dj[data-scene="lock"] .dj-home, .dj[data-scene="incoming"] .dj-home, .dj[data-scene="incall"] .dj-home { background:#fff; }

/* The iPhone's incoming-call banner (phone unlocked) */
.dj-banner { position:absolute; left:8px; right:8px; top:52px; z-index:4; opacity:0; transform:translateY(-120px) scale(.9);
  transition:transform .45s cubic-bezier(.2,1.2,.4,1), opacity .25s; pointer-events:none; }
.dj-banner.on { opacity:1; transform:none; }
.dj-banner.accepted .dj-cb { background:rgba(36,36,38,.9); }
.dj-cb { display:flex; align-items:center; gap:12px; padding:12px 12px 12px 14px; border-radius:40px; background:rgba(28,28,30,.96);
  box-shadow:0 10px 30px rgba(0,0,0,.25); color:#fff; }
.dj-cb-avatar { flex:none; width:48px; height:48px; border-radius:50%; background:linear-gradient(#A5A9B2,#80858F); color:#fff; padding:10px; }
.dj-cb-text { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.dj-cb-text b { font-size:17px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dj-cb-text span { font-size:14px; color:rgba(235,235,245,.6); }
.dj-round { flex:none; width:52px; height:52px; border-radius:50%; border:0; padding:13px; color:#fff; font:inherit; }
.dj-round.no { background:#FF3B30; }
.dj-round.no svg { transform:rotate(135deg); }
.dj-round.yes { background:#34C759; }

/* Full-screen incoming call (locked) and the iPhone call screen */
.dj-call { position:absolute; inset:0; z-index:3; pointer-events:none; }
/* Solid colors that read as the wallpaper blurred and darkened (a real blur costs too much on phones). */
.dj-full { position:absolute; inset:0; animation:dj-fade .35s ease-out;
  background:radial-gradient(110% 50% at 50% 0%, rgba(80,110,190,.45), transparent 70%), linear-gradient(175deg, #0D1733 0%, #1A2A5A 45%, #3B3657 78%, #5A4148 100%); }
.dj-full.incall { background:radial-gradient(110% 50% at 50% 0%, rgba(70,90,150,.35), transparent 70%), linear-gradient(175deg, #10131C 0%, #1B2033 55%, #2A2533 100%); }
@keyframes dj-fade { from { opacity:0; } to { opacity:1; } }
.dj-full-top { position:absolute; left:24px; right:24px; top:104px; text-align:center; }
.dj-full-name { font-size:33px; font-weight:400; line-height:1.15; color:#fff; }
.dj-full-sub { margin-top:6px; font-size:17px; color:rgba(255,255,255,.65); font-variant-numeric:tabular-nums; }
.dj-full-small { position:absolute; left:56px; right:56px; bottom:180px; display:flex; justify-content:space-between; }
.dj-full-small div { display:flex; flex-direction:column; align-items:center; gap:7px; font-size:13px; color:#fff; width:96px; text-align:center; }
.dj-full-small i { width:28px; height:28px; color:#fff; }
.dj-slider { position:absolute; left:28px; right:28px; bottom:72px; height:76px; border-radius:38px; background:rgba(255,255,255,.2); overflow:hidden; }
.dj-knob { position:absolute; left:6px; top:6px; width:64px; height:64px; border-radius:50%; background:#fff; color:#34C759; padding:17px; z-index:1;
  transition:transform .65s cubic-bezier(.4,0,.2,1); }
.dj.sliding .dj-knob { transform:translateX(261px); }
.dj-slide-text { position:absolute; inset:0; display:grid; place-items:center; padding-left:60px; font-size:21px; color:rgba(255,255,255,.95);
  background:linear-gradient(90deg, rgba(255,255,255,.45) 0%, #fff 50%, rgba(255,255,255,.45) 100%) 0 0/200% 100%; -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent; animation:dj-shine 2.2s linear infinite; transition:opacity .3s; }
.dj.sliding .dj-slide-text { opacity:0; }
@keyframes dj-shine { from { background-position:200% 0; } to { background-position:-200% 0; } }
.dj-grid { position:absolute; left:34px; right:34px; top:440px; display:grid; grid-template-columns:repeat(3, 1fr); row-gap:26px; justify-items:center; }
.dj-cbtn { display:flex; flex-direction:column; align-items:center; gap:8px; font-size:13px; color:#fff; }
.dj-cbtn i { width:78px; height:78px; border-radius:50%; background:rgba(255,255,255,.18); padding:24px; color:#fff; display:block; }
.dj-cbtn.appbtn i { padding:0; background:none; overflow:hidden; }
.dj-cbtn.appbtn img { display:block; width:78px; height:78px; }
/* The keypad over the call screen (pressKeys in duri-journey.js) */
.dj-full.keypad .dj-grid, .dj-full.keypad .dj-full-top { visibility:hidden; }
.dj-keys { position:absolute; left:50px; right:50px; top:150px; display:grid; grid-template-columns:repeat(3, 78px); justify-content:space-between; row-gap:16px; animation:dc-fade .2s ease-out; }
.dj-typed { grid-column:1 / -1; height:56px; text-align:center; font-size:38px; font-weight:300; letter-spacing:6px; color:#fff; }
.dj-key { width:78px; height:78px; border-radius:50%; background:rgba(255,255,255,.18); display:flex; align-items:center; justify-content:center; font-size:34px; font-weight:400; color:#fff; transition:background .1s; }
.dj-key.down { background:rgba(255,255,255,.55); }
@keyframes dc-fade { from { opacity:0; } }
.dj-end { position:absolute; left:50%; bottom:86px; width:78px; height:78px; margin-left:-39px; border-radius:50%; background:#FF3B30; color:#fff; padding:22px; }
.dj-end svg { transform:rotate(135deg); }

/* The finger that taps */
.dj-finger { position:absolute; left:0; top:0; z-index:9; width:46px; height:46px; border-radius:50%; pointer-events:none; opacity:0;
  background:rgba(255,255,255,.55); border:2px solid rgba(20,30,60,.35); box-shadow:0 4px 14px rgba(0,0,0,.25); }
.dj-finger.on { opacity:1; }
.dj-finger::after { content:""; position:absolute; inset:-2px; border-radius:50%; border:3px solid rgba(255,255,255,.9); opacity:0; }
.dj-finger.press { background:rgba(255,255,255,.8); scale:.82; }
.dj-finger.press::after { animation:dj-ripple .5s ease-out; }
@keyframes dj-ripple { from { opacity:.9; transform:scale(.8); } to { opacity:0; transform:scale(2.1); } }

/* Play, over the lock screen before anything starts */
.dj-start { position:absolute; inset:0; z-index:10; border:0; margin:0; padding:0; background:rgba(0,0,0,.18); color:#fff; cursor:pointer; font:inherit;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; }
.dj-start-btn { display:flex; align-items:center; gap:10px; height:64px; padding:0 30px 0 22px; border-radius:32px; background:#fff; color:#071737;
  font-size:22px; box-shadow:0 10px 30px rgba(0,0,0,.3); transition:transform .15s; }
.dj-start-btn svg { width:28px; height:28px; color:#1261D8; }
.dj-start:hover .dj-start-btn { transform:scale(1.04); }
.dj-start small { font-size:15px; color:rgba(255,255,255,.85); }

/* What's happening: a dark bubble over the bottom of the screen that comes and goes */
.dj-coach { position:absolute; left:22px; right:22px; bottom:36px; z-index:8; display:flex; justify-content:center; pointer-events:none;
  opacity:0; transform:translateY(10px) scale(.97); transition:opacity .28s, transform .36s cubic-bezier(.3,.7,.3,1); }
.dj-coach.on { opacity:1; transform:none; }
/* Over the bottom bar, except while a tap happens down there (clearTap in duri-journey.js) */
.dj.tapping .dj-coach.on, .dj:has(.dc-ctrl.muted) .dj-coach.on, .dj:has(.dc-interp) .dj-coach.on { transform:translateY(-400px); }
.dj-coach div { max-width:340px; padding:15px 19px; border-radius:20px; background:rgba(10,12,20,.88); color:#fff; font-size:19px; line-height:1.38;
  font-weight:600; text-align:center; box-shadow:0 14px 40px rgba(0,0,0,.35); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); }
.dj :lang(ko) .dj-coach div, .dj[lang="ko"] .dj-coach div { word-break:keep-all; }
