.lucy-drawer-link { width: 100%; min-height: 70px; margin-top: 10px; padding: 10px; display: grid; grid-template-columns: 45px 1fr 24px; align-items: center; gap: 12px; text-align: left; color: #eefcff; border: 1px solid rgba(87,218,239,.34); border-radius: 17px; background: linear-gradient(115deg,rgba(42,111,158,.2),rgba(205,83,192,.08)); cursor: pointer; }
.lucy-drawer-link > span { display: grid; place-items: center; width: 45px; height: 45px; border: 1px solid rgba(114,234,245,.4); border-radius: 50%; color: #a9f4ff; background: rgba(84,217,236,.08); box-shadow: 0 0 24px rgba(57,197,231,.18); font: 15px Georgia,serif; }
.lucy-drawer-link div { display: grid; gap: 3px; }
.lucy-drawer-link small { color: #75e6f2; letter-spacing: .13em; font-size: 7px; }
.lucy-drawer-link b { font: 14px/1.2 Georgia,serif; }
.lucy-drawer-link i { color: #ed8fdf; font-style: normal; }

.lucy-preview-host { position: relative; z-index: 2; display: none; padding: clamp(22px,4vw,56px) clamp(16px,5vw,64px) clamp(96px,8vw,134px); color: #eefcff; background: radial-gradient(circle at 16% 24%,rgba(38,173,221,.2),transparent 34%),radial-gradient(circle at 87% 78%,rgba(210,72,187,.17),transparent 36%),linear-gradient(150deg,#060b17,#0c1727 55%,#080710); overflow: hidden; }
body[data-wild-screen="home"] .lucy-preview-host,body[data-wild-screen="map"] .lucy-preview-host { display: block; }
.lucy-preview-host::before { content: "IX"; position: absolute; left: 1vw; bottom: -4vw; color: transparent; -webkit-text-stroke: 1px rgba(182,244,255,.05); font: 700 clamp(130px,28vw,430px)/.75 Georgia,serif; pointer-events: none; }
.lucy-preview-card { position: relative; max-width: 1250px; margin: auto; display: grid; grid-template-columns: minmax(330px,.8fr) minmax(0,1.15fr); gap: clamp(24px,5vw,72px); align-items: center; padding: 13px; border: 1px solid rgba(190,244,255,.16); border-radius: 30px; background: linear-gradient(135deg,rgba(96,203,230,.07),rgba(7,13,27,.68)); box-shadow: 0 34px 105px rgba(0,0,0,.48),inset 0 1px rgba(255,255,255,.08); backdrop-filter: blur(22px); overflow: hidden; }
.lucy-card-copy { padding: clamp(18px,3vw,38px) 0 clamp(18px,3vw,38px) clamp(15px,3vw,34px); }
.lucy-card-copy > small { color: #75e6f2; letter-spacing: .22em; font-size: 8px; font-weight: 850; }
.lucy-card-copy h2 { margin: 10px 0 18px; font: 500 clamp(34px,4.3vw,61px)/1.02 Georgia,serif; letter-spacing: -.025em; }
.lucy-card-copy p { max-width: 540px; color: #c6d6df; font-size: 15px; line-height: 1.7; }
.lucy-card-signal { display: flex; align-items: center; gap: 7px; margin-top: 18px; color: #8398a8; }
.lucy-card-signal i { width: 10px; height: 10px; border: 1px solid rgba(117,230,242,.52); border-radius: 50%; background: rgba(117,230,242,.08); box-shadow: 0 0 13px rgba(117,230,242,.25); }
.lucy-card-signal span { margin-left: 4px; letter-spacing: .13em; font-size: 7px; }
.lucy-preview-host.completed .lucy-card-signal i { background: #8cf1f8; box-shadow: 0 0 17px rgba(117,230,242,.65); }
.lucy-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 15px 20px; margin-top: 24px; }
.lucy-card-actions button,.lucy-start,.lucy-continue,.lucy-keep,.lucy-replay,.lucy-repeat-route { min-height: 50px; padding: 0 21px; border-radius: 999px; cursor: pointer; letter-spacing: .13em; font-size: 9px; font-weight: 900; }
.lucy-card-actions button,.lucy-start,.lucy-continue,.lucy-keep { color: #071923; border: 0; background: linear-gradient(120deg,#9cf4ff,#e787dc); box-shadow: 0 12px 42px rgba(75,206,229,.25); }
.lucy-card-actions em { color: #8394a2; letter-spacing: .11em; font-size: 8px; font-style: normal; }
.lucy-preview-host.completed .lucy-card-actions em { color: #8df2d4; }
.lucy-card-image { position: relative; aspect-ratio: 16/9; min-height: 290px; border-radius: 21px; background: #060b15; overflow: hidden; }
.lucy-card-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(5,10,20,.28),transparent 45%),linear-gradient(0deg,rgba(4,8,17,.68),transparent 46%); }
.lucy-card-image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% center; filter: saturate(.9) contrast(1.04); transition: transform 1.2s ease,filter .8s ease; }
.lucy-preview-card:hover .lucy-card-image img { transform: scale(1.035); filter: saturate(1.08) contrast(1.04); }
.lucy-card-image > span { position: absolute; z-index: 2; right: 20px; bottom: 16px; color: #aaf4ff; letter-spacing: .25em; font-size: 10px; text-shadow: 0 0 18px rgba(102,226,240,.7); }

.lucy-modal { position: fixed; inset: 0; z-index: 510; display: grid; place-items: center; padding: max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left)); color: #eefcff; background: rgba(2,6,14,.84); backdrop-filter: blur(13px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .35s ease,visibility .35s ease; }
body.lucy-preview-open { overflow: hidden; }
body.lucy-preview-open .lucy-modal { opacity: 1; visibility: visible; pointer-events: auto; }
body.lucy-preview-open .tap-flare { border-color: #86ecf7; box-shadow: 0 0 20px #63d8ee; }
.lucy-experience { position: relative; width: min(1120px,100%); height: min(790px,calc(100svh - 24px)); min-height: 570px; border: 1px solid rgba(184,242,255,.2); border-radius: 30px; background: #050a14; box-shadow: 0 45px 135px rgba(0,0,0,.76); overflow: hidden; }
.lucy-close { position: absolute; z-index: 30; top: 16px; right: 16px; display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid rgba(190,244,255,.24); border-radius: 50%; color: #effdff; background: rgba(3,9,18,.54); backdrop-filter: blur(14px); cursor: pointer; font-size: 20px; }
.lucy-visual { position: absolute; inset: 0; }
.lucy-hero-image,.lucy-reveal-blur,.lucy-reveal-image { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity 1s ease,transform 6s ease; }
.lucy-hero-image { object-fit: cover; opacity: 1; }
.lucy-reveal-blur { object-fit: cover; opacity: 0; filter: blur(28px) brightness(.35) saturate(.8); transform: scale(1.12); }
.lucy-reveal-image { z-index: 1; object-fit: contain; object-position: 78% center; opacity: 0; }
.lucy-modal[data-phase="reveal"] .lucy-hero-image { opacity: 0; }
.lucy-modal[data-phase="reveal"] .lucy-reveal-blur,.lucy-modal[data-phase="reveal"] .lucy-reveal-image { opacity: 1; }
.lucy-modal[data-phase="reveal"] .lucy-reveal-image { transform: scale(1.025); }
.lucy-vignette { position: absolute; z-index: 2; inset: 0; background: linear-gradient(90deg,rgba(2,7,16,.91) 0%,rgba(2,7,16,.56) 46%,rgba(2,7,16,.12)),linear-gradient(0deg,rgba(2,6,14,.8),transparent 52%); pointer-events: none; }
.lucy-modal[data-phase="breach"] .lucy-vignette { background: linear-gradient(0deg,rgba(2,6,14,.84),rgba(2,8,18,.52)),radial-gradient(circle at 50% 48%,transparent,rgba(1,5,12,.72)); }
.lucy-modal[data-phase="fragment"] .lucy-vignette { background: linear-gradient(90deg,rgba(2,7,16,.9),rgba(2,7,16,.38) 62%,rgba(2,7,16,.12)),linear-gradient(0deg,rgba(2,6,14,.84),transparent 55%); }
.lucy-modal[data-phase="reveal"] .lucy-vignette { background: linear-gradient(90deg,rgba(2,7,16,.94),rgba(2,7,16,.68) 42%,rgba(2,7,16,.1) 74%),linear-gradient(0deg,rgba(2,6,14,.8),transparent 54%); }
.lucy-phase { position: absolute; z-index: 5; inset: 0; padding: clamp(30px,7vw,92px); }
.lucy-phase[hidden] { display: none !important; }
.lucy-phase:not([hidden]) { display: flex; }
.lucy-phase > small { color: #75e6f2; letter-spacing: .23em; font-size: 8px; font-weight: 850; }
.lucy-intro-phase { flex-direction: column; justify-content: end; align-items: start; max-width: 760px; }
.lucy-intro-phase h2 { max-width: 710px; margin: 11px 0 16px; font: 500 clamp(45px,7vw,88px)/.94 Georgia,serif; letter-spacing: -.04em; }
.lucy-intro-phase p { max-width: 590px; margin: 0 0 25px; color: #d1dce3; font-size: clamp(14px,1.6vw,18px); line-height: 1.7; }
.lucy-experience button:focus-visible { outline: 2px solid #a8f5ff; outline-offset: 3px; }

.lucy-breach-phase { flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.lucy-breach-heading { width: min(660px,86vw); display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.lucy-breach-heading small { color: #75e6f2; letter-spacing: .2em; font-size: 7px; font-weight: 850; }
.lucy-breach-heading b { color: #d6faff; letter-spacing: .15em; font-size: 9px; }
.lucy-console { position: relative; width: min(450px,68vw); max-height: 52svh; aspect-ratio: 1; display: grid; grid-template-columns: repeat(3,1fr); grid-template-rows: repeat(3,1fr); align-items: center; justify-items: center; gap: clamp(7px,1.4vw,16px); margin: 10px auto 4px; padding: clamp(18px,3vw,34px); border: 1px solid rgba(124,232,244,.14); border-radius: 34px; background: linear-gradient(rgba(86,211,235,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(86,211,235,.035) 1px,transparent 1px),rgba(3,10,21,.48); background-size: 22px 22px; box-shadow: inset 0 0 70px rgba(63,188,224,.08),0 24px 70px rgba(0,0,0,.28); backdrop-filter: blur(11px); }
.lucy-orbit-ring { position: absolute; z-index: 0; inset: 12%; border: 1px solid rgba(118,229,242,.18); border-radius: 50%; box-shadow: 0 0 55px rgba(71,196,226,.08),inset 0 0 35px rgba(218,90,196,.05); animation: lucy-ring 18s linear infinite; }
.lucy-orbit-ring::before,.lucy-orbit-ring::after { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #8aedf7; box-shadow: 0 0 18px #62d9ee; }
.lucy-orbit-ring::before { left: 10%; top: 8%; }
.lucy-orbit-ring::after { right: 8%; bottom: 12%; background: #e887db; box-shadow: 0 0 18px #d86ac8; }
@keyframes lucy-ring { to { transform: rotate(360deg); } }
.lucy-console-core { position: absolute; z-index: 1; left: 50%; top: 50%; color: rgba(169,244,255,.13); transform: translate(-50%,-50%); font: 700 clamp(40px,7vw,76px)/1 Georgia,serif; pointer-events: none; }
.lucy-console button { position: relative; z-index: 3; display: grid; place-items: center; width: clamp(52px,6vw,68px); height: clamp(52px,6vw,68px); border: 1px solid rgba(185,245,255,.2); border-radius: 17px; color: #91aab7; background: rgba(3,10,21,.72); box-shadow: inset 0 1px rgba(255,255,255,.05); backdrop-filter: blur(10px); cursor: pointer; font: 10px/1 ui-monospace,SFMono-Regular,Menlo,monospace; transition: color .2s ease,border-color .2s ease,background .2s ease,box-shadow .2s ease,transform .2s ease,opacity .2s ease; }
.lucy-console button:disabled { cursor: wait; opacity: .52; }
.lucy-console button.demo { color: #06131d; border-color: #c8faff; background: #aaf4ff; box-shadow: 0 0 22px rgba(109,232,244,.82),0 0 70px rgba(73,192,224,.48); opacity: 1; animation: lucy-node-demo .38s ease; }
.lucy-console button.linked { color: #06141e; border-color: transparent; background: linear-gradient(135deg,#9af2fb,#d887d2); box-shadow: 0 0 22px rgba(103,224,240,.5); opacity: 1; }
.lucy-console button.noise { color: #fff; border-color: #ff7187; background: rgba(206,36,76,.4); animation: lucy-noise .35s ease; }
@keyframes lucy-node-demo { 50% { transform: scale(1.12); } }
@keyframes lucy-noise { 25% { transform: translateX(-5px); } 60% { transform: translateX(5px); } }
.lucy-breach-status { width: min(430px,78%); display: grid; grid-template-columns: 1fr auto; gap: 7px 14px; align-items: center; }
.lucy-breach-status > div { height: 4px; border-radius: 99px; background: rgba(255,255,255,.11); overflow: hidden; }
.lucy-breach-status > div span { display: block; width: 0; height: 100%; background: linear-gradient(90deg,#51d7ee,#e77bd7); box-shadow: 0 0 18px #58d8ec; transition: width .32s ease; }
.lucy-breach-status > b { color: #b7f5fb; letter-spacing: .14em; font-size: 9px; }
.lucy-breach-status > p { grid-column: 1/-1; min-height: 18px; margin: 0; color: #b3c5ce; font-size: 9px; }
.lucy-repeat-route { min-height: 44px; margin-top: 4px; color: #c9f9ff; border: 1px solid rgba(140,237,248,.28); background: rgba(86,211,235,.07); }

.lucy-fragment-phase { flex-direction: column; justify-content: end; align-items: start; max-width: 780px; }
.lucy-fragment-phase > b { margin-top: 18px; color: #a9f5ff; letter-spacing: .18em; font-size: 11px; }
.lucy-fragment-phase h2 { max-width: 720px; margin: 13px 0 19px; color: #f0fcff; font: 500 clamp(36px,6vw,70px)/1.03 Georgia,serif; letter-spacing: -.025em; }
.lucy-fragment-phase p { color: #8aa0ae; letter-spacing: .13em; font-size: 8px; }
.lucy-continue { margin-top: 7px; }

.lucy-reveal-phase { flex-direction: column; justify-content: end; align-items: start; max-width: 650px; }
.lucy-reveal-phase h2 { margin: 7px 0 0; color: #b9f7ff; font: 500 clamp(68px,12vw,150px)/.75 Georgia,serif; letter-spacing: .09em; text-shadow: 0 0 60px rgba(83,208,231,.38); }
.lucy-reveal-phase h3 { margin: 22px 0 12px; font: 500 clamp(26px,4vw,48px)/1 Georgia,serif; }
.lucy-reveal-phase > p { max-width: 590px; margin: 0; color: #d2dce3; font-size: 15px; line-height: 1.65; }
.lucy-reveal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 23px; }
.lucy-replay { color: #eefcff; border: 1px solid rgba(190,244,255,.23); background: rgba(255,255,255,.065); }
.lucy-reveal-phase > em { margin-top: 16px; color: #82949f; letter-spacing: .11em; font-size: 7px; font-style: normal; }

.lucy-toast { position: fixed; z-index: 520; left: 50%; bottom: max(24px,env(safe-area-inset-bottom)); max-width: calc(100% - 24px); padding: 10px 16px; border: 1px solid rgba(168,245,255,.22); border-radius: 999px; color: #dffbff; background: rgba(3,10,21,.92); box-shadow: 0 12px 45px rgba(0,0,0,.36); backdrop-filter: blur(16px); opacity: 0; pointer-events: none; transform: translate(-50%,18px); transition: opacity .25s ease,transform .25s ease; font-size: 9px; letter-spacing: .1em; text-align: center; }
.lucy-toast.show { opacity: 1; transform: translate(-50%,0); }

@media (max-width: 660px) {
  .lucy-preview-host { padding: 18px 12px calc(104px + env(safe-area-inset-bottom)); }
  .lucy-preview-card { grid-template-columns: 1fr; gap: 4px; border-radius: 24px; }
  .lucy-card-image { grid-row: 1; min-height: 220px; }
  .lucy-card-copy { grid-row: 2; padding: 20px 13px 23px; }
  .lucy-card-copy h2 { font-size: 38px; }
  .lucy-card-actions { display: grid; }
  .lucy-card-actions button { width: 100%; }
  .lucy-experience { min-height: 0; height: calc(100svh - max(20px,env(safe-area-inset-top)) - max(20px,env(safe-area-inset-bottom))); border-radius: 22px; }
  .lucy-phase { padding: 28px 22px 36px; }
  .lucy-intro-phase h2 { font-size: 47px; }
  .lucy-breach-phase { padding: 52px 15px 16px; }
  .lucy-breach-heading { width: 100%; padding-right: 42px; }
  .lucy-breach-heading small { max-width: 160px; text-align: left; }
  .lucy-console { width: min(360px,91vw); max-height: 45svh; gap: 7px; margin-top: 6px; padding: 15px; border-radius: 25px; }
  .lucy-console button { width: 52px; height: 52px; }
  .lucy-breach-status { width: min(360px,88%); }
  .lucy-fragment-phase h2 { font-size: 39px; }
  .lucy-reveal-image { object-position: 60% center; }
  .lucy-modal[data-phase="reveal"] .lucy-vignette { background: linear-gradient(0deg,rgba(2,7,16,.96),rgba(2,7,16,.56) 58%,rgba(2,7,16,.05)); }
  .lucy-reveal-phase h2 { font-size: 74px; }
  .lucy-reveal-phase h3 { font-size: 29px; }
  .lucy-reveal-phase > p { font-size: 12px; line-height: 1.5; }
  .lucy-reveal-actions { display: grid; width: 100%; }
  .lucy-reveal-actions button { width: 100%; }
}

@media (max-width: 660px) and (max-height: 650px) {
  .lucy-intro-phase h2 { font-size: 39px; }
  .lucy-intro-phase p { margin-bottom: 14px; font-size: 12px; line-height: 1.45; }
  .lucy-breach-phase { gap: 3px; padding-top: 49px; }
  .lucy-breach-heading small { display: none; }
  .lucy-console { width: min(290px,82vw); max-height: 39svh; margin: 2px auto; padding: 10px; }
  .lucy-console button { width: 48px; height: 48px; border-radius: 14px; }
  .lucy-breach-status > p { min-height: 13px; font-size: 7px; }
  .lucy-repeat-route { min-height: 44px; margin-top: 0; }
  .lucy-fragment-phase h2 { font-size: 32px; }
  .lucy-reveal-phase h2 { font-size: 58px; }
  .lucy-reveal-phase h3 { margin-top: 14px; font-size: 24px; }
  .lucy-reveal-phase > em { display: none; }
  .lucy-reveal-actions { margin-top: 13px; }
  .lucy-reveal-actions button { min-height: 44px; }
}

@media (min-width: 661px) and (max-height: 500px) {
  .lucy-experience { min-height: 0; }
  .lucy-breach-phase { display: grid !important; grid-template-columns: minmax(250px,42%) 1fr; grid-template-rows: auto 1fr auto; gap: 8px 30px; padding: 38px 64px 18px; text-align: left; }
  .lucy-breach-heading { grid-column: 2; width: 100%; }
  .lucy-console { grid-column: 1; grid-row: 1/4; width: min(340px,76vh); margin: auto; padding: 13px; }
  .lucy-console button { width: 48px; height: 48px; }
  .lucy-breach-status { grid-column: 2; width: 100%; }
  .lucy-repeat-route { grid-column: 2; justify-self: start; }
  .lucy-intro-phase h2,.lucy-fragment-phase h2 { font-size: 42px; }
  .lucy-reveal-phase h2 { font-size: 66px; }
  .lucy-reveal-phase > em { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .lucy-orbit-ring,.lucy-console button.demo,.lucy-console button.noise { animation: none !important; }
  .lucy-modal,.lucy-hero-image,.lucy-reveal-blur,.lucy-reveal-image,.lucy-toast,.lucy-card-image img,.lucy-console button,.lucy-breach-status > div span { transition-duration: .01ms !important; }
  .lucy-reveal-blur { transform: none; }
}
