@font-face { font-family: "Rye"; font-style: normal; font-weight: 400; font-display: swap; src: url("https://cdn.jsdelivr.net/npm/@fontsource/rye@5.0.8/files/rye-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Orbitron"; font-style: normal; font-weight: 700; font-display: swap; src: url("https://cdn.jsdelivr.net/npm/@fontsource/orbitron@5.0.8/files/orbitron-latin-700-normal.woff2") format("woff2"); }
:root {
  --ink: #05061a;
  --cyan: #35f3ff;
  --pink: #ff4fa8;
  --violet: #9a5bff;
  --gold: #ffd34d;
  --red: #ff4d5e;
  --font: "Arial Rounded MT Bold", "Trebuchet MS", "Avenir Next", system-ui, sans-serif;
  --sl: env(safe-area-inset-left, 0px);
  --sr: env(safe-area-inset-right, 0px);
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; background: var(--ink); overflow: hidden; overscroll-behavior: none; }
body { font-family: var(--font); color: #fff; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
#app { position: fixed; inset: 0; overflow: hidden; touch-action: none; }
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: var(--ink); }
button { font-family: inherit; color: inherit; border: 0; background: none; cursor: pointer; touch-action: manipulation; }

.screen { position: absolute; inset: 0; display: none; padding: 10px calc(16px + var(--sr)) 10px calc(16px + var(--sl)); }
.screen.on { display: flex; }
.crystal {
  background:
    radial-gradient(ellipse at 50% 46%, rgba(5,6,26,0.25) 0, rgba(5,6,26,0.7) 45%, #05061a 85%),
    repeating-conic-gradient(from 8deg at 50% 46%, #0c2a8a 0 9deg, #1b0f66 9deg 17deg, #0a47a8 17deg 24deg, #2b1390 24deg 36deg, #071a5c 36deg 45deg);
}
.veil { background: rgba(5,6,26,0.78); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); align-items: center; justify-content: center; }

.btn {
  font-size: clamp(13px, 4.2vh, 18px); letter-spacing: 0.06em; font-weight: 700;
  padding: 0.62em 1.25em; border-radius: 999px; white-space: nowrap;
  background: linear-gradient(180deg, rgba(53,243,255,0.22), rgba(53,243,255,0.06));
  border: 2px solid var(--cyan); color: #eaffff;
  box-shadow: 0 0 12px rgba(53,243,255,0.55), inset 0 0 10px rgba(53,243,255,0.25);
  text-shadow: 0 0 8px rgba(53,243,255,0.9);
}
.btn:active { transform: scale(0.96); }
.btn.big { font-size: clamp(20px, 8vh, 32px); padding: 0.4em 1.9em; border-color: var(--pink); background: linear-gradient(180deg, rgba(255,79,168,0.35), rgba(154,91,255,0.18)); box-shadow: 0 0 18px rgba(255,79,168,0.75), inset 0 0 14px rgba(255,79,168,0.35); text-shadow: 0 0 10px rgba(255,79,168,0.95); }
.btn.hot { border-color: var(--gold); background: linear-gradient(180deg, rgba(255,211,77,0.3), rgba(255,79,168,0.12)); box-shadow: 0 0 14px rgba(255,211,77,0.6), inset 0 0 10px rgba(255,211,77,0.25); text-shadow: 0 0 8px rgba(255,211,77,0.9); }
.btn.ghost { border-color: rgba(154,91,255,0.9); background: rgba(154,91,255,0.12); box-shadow: 0 0 8px rgba(154,91,255,0.45); text-shadow: none; }
.btn.small { font-size: clamp(11px, 3.4vh, 14px); }
.btn:disabled { opacity: 0.35; filter: grayscale(0.6); }
.tiny { font-size: clamp(10px, 2.9vh, 12px); letter-spacing: 0.08em; color: #a9b6ff; min-height: 1.2em; }
.tiny.warn { color: var(--gold); }

#s-title { flex-direction: column; align-items: center; justify-content: center; gap: 1.5vh; }
#s-title .neon { --fs: min(17vh, 7.6vw); margin-bottom: 1vh; animation: glow 2.6s ease-in-out infinite; }
@keyframes glow { 50% { filter: brightness(1.25) saturate(1.15); } }
.neon { --fs: 40px; display: flex; flex-direction: column; align-items: center; font-family: "Rye", "Cooper Black", "Rockwell Extra Bold", Georgia, serif; font-size: var(--fs); line-height: 1; white-space: nowrap; pointer-events: none; }
.neon .n-the { display: flex; align-items: center; gap: 0.18em; font-size: 0.5em; margin-bottom: -0.06em; }
.neon .n-the svg { width: 1.7em; height: 0.7em; overflow: visible; }
.neon .n-the svg path { fill: none; stroke: var(--pink); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 3px var(--pink)); }
.neon .n-the svg.flip { transform: scaleX(-1); }
.neon .n-main { display: flex; align-items: flex-end; padding: 0.06em 0.3em 0.2em; }
.neon i { font-style: normal; display: inline-block; color: var(--c); margin: 0 0.035em; -webkit-text-stroke: 0.04em #ffd34d; paint-order: stroke fill; text-shadow: 0 0.045em 0 #45167e, 0 0.09em 0 #2a0a55, 0 0 0.22em var(--c), 0 0 0.55em var(--c); transform: translateY(var(--y, 0)) rotate(var(--r, 0deg)) scale(var(--s, 1)); }
.neon i.gap { width: 0.26em; }
.neon .n-tag { font-family: "Trebuchet MS", "Avenir Next", system-ui, sans-serif; font-weight: 400; font-size: 0.27em; letter-spacing: 0.14em; color: #d9fbff; -webkit-text-stroke: 0.03em #35f3ff; text-shadow: 0 0 0.3em #35f3ff, 0 0 0.9em #35f3ff, 0 0 1.6em rgba(53,243,255,0.7); margin-top: 0.1em; }
.title-row { display: flex; gap: 14px; }
.glasses { display: flex; align-items: center; gap: 12px; padding: 6px 16px; border-radius: 14px; background: rgba(5,6,26,0.6); border: 1px solid rgba(53,243,255,0.35); }
.specs { display: flex; align-items: center; }
.lens { display: block; width: 34px; height: 22px; border-radius: 6px; border: 2px solid #fff; }
.lens.red { background: #ff1e2d; box-shadow: 0 0 10px #ff1e2d; }
.lens.cyan { background: #19e6ff; box-shadow: 0 0 10px #19e6ff; }
.bridge { display: block; width: 8px; height: 3px; background: #fff; }
.glasses-txt { display: flex; flex-direction: column; gap: 2px; }
.glasses-txt b { font-size: clamp(12px, 3.9vh, 16px); letter-spacing: 0.08em; color: #fff; text-shadow: 0 0 8px var(--cyan); }
.glasses-txt span { font-size: clamp(9px, 2.7vh, 11px); letter-spacing: 0.1em; color: #b9c4ff; }

#s-capture { align-items: center; justify-content: center; gap: 4vw; }
.cap-left { height: 100%; display: flex; align-items: center; }
.mirror-box { position: relative; height: min(86vh, 420px); aspect-ratio: 1 / 2; border-radius: 10px; overflow: hidden; background: #0a0d33; border: 3px solid var(--cyan); box-shadow: 0 0 22px rgba(53,243,255,0.7), inset 0 0 30px rgba(154,91,255,0.4); }
#cam { position: absolute; left: 0; top: 0; width: 2px; height: 2px; opacity: 0; pointer-events: none; }
.cam-off { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; letter-spacing: 0.12em; color: #7f8ae0; background: #0a0d33; }
.cam-off.hide { display: none; }
.count { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 22vh; color: #fff; text-shadow: 0 0 24px var(--pink), 0 0 6px #000; pointer-events: none; }
.rec { position: absolute; top: 8px; left: 8px; display: none; align-items: center; gap: 5px; font-size: 11px; letter-spacing: 0.1em; padding: 3px 8px; border-radius: 999px; background: rgba(0,0,0,0.55); }
.rec.on { display: flex; }
.rec i { width: 9px; height: 9px; border-radius: 50%; background: var(--red); animation: blink 0.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }
.rec-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: rgba(0,0,0,0.5); }
.rec-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--pink), var(--gold)); }
.cap-right { display: flex; flex-direction: column; gap: 2.2vh; max-width: 62vw; }
.prompt { font-size: clamp(22px, 10.5vh, 44px); line-height: 1; letter-spacing: 0.03em; color: #fff; text-shadow: 0 0 6px #fff, 0 0 18px var(--pink), 0 0 36px var(--pink); }
.idea { font-size: clamp(12px, 4.4vh, 18px); letter-spacing: 0.1em; color: var(--cyan); text-shadow: 0 0 10px rgba(53,243,255,0.8); min-height: 1.2em; }
.progress-row { display: flex; align-items: center; gap: 12px; }
.dots { display: flex; gap: 5px; }
.dots i { width: clamp(12px, 2.6vw, 20px); height: clamp(12px, 2.6vw, 20px); border-radius: 5px; border: 2px solid rgba(154,91,255,0.9); background: rgba(154,91,255,0.12); }
.dots i.done { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 10px var(--gold); }
.dots i.now { border-color: var(--pink); box-shadow: 0 0 10px var(--pink); animation: blink 0.5s steps(2) infinite; }
.cap-count { font-size: clamp(16px, 6vh, 24px); color: var(--gold); text-shadow: 0 0 10px rgba(255,211,77,0.8); }
.cap-btns { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; justify-content: flex-start; }
.privacy { font-size: clamp(10px, 3.1vh, 13px); letter-spacing: 0.08em; color: #d7ffe9; padding: 5px 10px; border-left: 3px solid #5dffb0; background: rgba(93,255,176,0.08); }

#s-process { flex-direction: column; align-items: center; justify-content: center; gap: 3vh; }
.cards { display: flex; gap: 12px; height: 30vh; align-items: center; }
.cards i { display: block; width: 9vh; height: 22vh; border-radius: 6px; border: 2px solid var(--cyan); background: linear-gradient(160deg, rgba(53,243,255,0.5), rgba(154,91,255,0.25) 50%, rgba(255,79,168,0.45)); box-shadow: 0 0 14px rgba(53,243,255,0.6); animation: wob 1.1s ease-in-out infinite; }
.cards i:nth-child(2) { animation-delay: -0.2s; } .cards i:nth-child(3) { animation-delay: -0.4s; } .cards i:nth-child(4) { animation-delay: -0.6s; } .cards i:nth-child(5) { animation-delay: -0.8s; }
@keyframes wob { 0%, 100% { transform: scale(1, 1) skewX(0); } 25% { transform: scale(1.35, 0.7) skewX(8deg); } 50% { transform: scale(0.7, 1.3) skewX(-8deg); } 75% { transform: scale(1.15, 0.9) rotate(6deg); } }
.proc-title { font-size: clamp(20px, 8vh, 34px); text-shadow: 0 0 6px #fff, 0 0 18px var(--violet), 0 0 36px var(--violet); letter-spacing: 0.05em; }
.proc-line { font-size: clamp(12px, 4.2vh, 17px); letter-spacing: 0.12em; color: var(--cyan); min-height: 1.3em; }
.bar { width: min(60vw, 460px); height: 12px; border-radius: 999px; border: 2px solid var(--cyan); overflow: hidden; background: rgba(53,243,255,0.08); }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--pink), var(--gold)); transition: width 0.15s linear; }

.hud { position: absolute; inset: 0; pointer-events: none; }
.hud.off { display: none; }
.hud > * { pointer-events: auto; }
.pause { position: absolute; top: 8px; left: calc(10px + var(--sl)); width: 44px; height: 44px; border-radius: 10px; background: rgba(12,20,60,0.75); border: 2px solid rgba(53,243,255,0.6); display: flex; align-items: center; justify-content: center; gap: 6px; }
.pause i { width: 6px; height: 18px; border-radius: 2px; background: #cfe6ff; }
.hud .hud-logo { --fs: min(7vh, 3.3vw); position: absolute; top: 5px; left: 50%; transform: translateX(-50%); pointer-events: none; }
.stats { position: absolute; top: 8px; right: calc(10px + var(--sr)); display: flex; flex-direction: column; align-items: flex-end; gap: 4px; pointer-events: none; }
.stat { min-width: 96px; text-align: right; padding: 2px 12px; border-radius: 9px; background: rgba(8,14,44,0.82); border: 2px solid rgba(53,243,255,0.55); font-family: "Orbitron", "Courier New", ui-monospace, monospace; font-weight: 700; font-size: clamp(18px, 6.6vh, 28px); color: var(--cyan); text-shadow: 0 0 10px rgba(53,243,255,0.9); letter-spacing: 0.06em; }
.stat.sm { min-width: 74px; font-size: clamp(15px, 5.2vh, 22px); }
.stat.low { color: var(--red); border-color: var(--red); text-shadow: 0 0 10px var(--red); }
.stat.bump { animation: bump 0.25s ease-out; }
@keyframes bump { 40% { transform: scale(1.18); } }
.lvl { font-size: clamp(10px, 3.2vh, 13px); font-weight: 700; letter-spacing: 0.14em; color: var(--gold); padding: 2px 10px; border-radius: 999px; background: rgba(8,14,44,0.82); border: 1px solid rgba(255,211,77,0.6); }
.hint { position: absolute; left: calc(12px + var(--sl)); bottom: 8px; font-size: clamp(10px, 3.2vh, 13px); letter-spacing: 0.1em; color: #fff; padding: 4px 10px; border-radius: 999px; background: rgba(8,14,44,0.7); border: 1px solid rgba(255,79,168,0.7); pointer-events: none; }
.tools { position: absolute; right: calc(10px + var(--sr)); bottom: 8px; display: flex; gap: 8px; }
.tool { width: clamp(54px, 17vh, 70px); height: clamp(54px, 17vh, 70px); border-radius: 12px; background: rgba(12,20,60,0.8); border: 2px solid rgba(120,140,220,0.5); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.tool svg, .tool img { width: 58%; height: 58%; }
.tool img { width: 70%; height: 70%; object-fit: contain; margin: -6% 0; pointer-events: none; }
.tool span { font-size: 9px; letter-spacing: 0.1em; color: #b9c4ff; }
.tool.sel { border-color: var(--cyan); background: rgba(20,60,110,0.9); box-shadow: 0 0 14px rgba(53,243,255,0.85), inset 0 0 10px rgba(53,243,255,0.35); }
.tool.sel span { color: #fff; }

#fxlayer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.float { position: absolute; transform: translate(-50%, -50%); font-size: clamp(16px, 6.5vh, 26px); font-weight: 700; color: var(--gold); text-shadow: 0 0 10px rgba(255,211,77,0.9), 0 2px 0 #000; animation: rise 0.8s ease-out forwards; white-space: nowrap; }
.float.bad { color: var(--red); text-shadow: 0 0 10px var(--red), 0 2px 0 #000; }
.float.info { color: #fff; font-size: clamp(12px, 4.4vh, 18px); text-shadow: 0 0 8px var(--cyan), 0 2px 0 #000; }
@keyframes rise { 0% { opacity: 0; margin-top: 8px; } 15% { opacity: 1; } 100% { opacity: 0; margin-top: -46px; } }
#tint { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
#tint.bad { background: radial-gradient(circle, rgba(255,40,60,0) 40%, rgba(255,40,60,0.55)); animation: tint 0.9s ease-out; }
#tint.good { background: radial-gradient(circle, rgba(80,255,170,0) 40%, rgba(80,255,170,0.5)); animation: tint 0.9s ease-out; }
@keyframes tint { 0% { opacity: 1; } 100% { opacity: 0; } }
.splash { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 1vh; pointer-events: none; }
.splash.on { display: flex; animation: pop 0.35s cubic-bezier(0.2, 1.6, 0.4, 1); }
.splash b { font-size: clamp(34px, 20vh, 84px); letter-spacing: 0.04em; color: #fff; text-shadow: 0 0 8px #fff, 0 0 24px var(--pink), 0 0 50px var(--pink), 0 4px 0 #2a0a4a; }
.splash span { font-size: clamp(14px, 6vh, 24px); letter-spacing: 0.14em; color: var(--gold); text-shadow: 0 0 12px rgba(255,211,77,0.9), 0 2px 0 #000; }
@keyframes pop { 0% { transform: scale(0.3); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

.panel { display: flex; flex-direction: column; align-items: center; gap: 2vh; padding: 2.4vh 5vw; max-height: 96vh; border-radius: 18px; background: rgba(10,14,48,0.9); border: 2px solid var(--violet); box-shadow: 0 0 26px rgba(154,91,255,0.7); }
.panel .cap-btns { justify-content: center; }
.panel-title { font-size: clamp(20px, 8.5vh, 36px); letter-spacing: 0.05em; text-shadow: 0 0 6px #fff, 0 0 20px var(--pink), 0 0 40px var(--pink); text-align: center; }
.fin-score { display: flex; align-items: baseline; gap: 14px; }
.fin-score span { font-size: clamp(11px, 3.6vh, 15px); letter-spacing: 0.14em; color: #b9c4ff; }
.fin-score b { font-family: "Orbitron", "Courier New", ui-monospace, monospace; font-size: clamp(30px, 14vh, 60px); line-height: 1; color: var(--cyan); text-shadow: 0 0 16px rgba(53,243,255,0.9); }
.fin-level { font-size: clamp(14px, 5.6vh, 22px); letter-spacing: 0.1em; color: var(--gold); text-shadow: 0 0 10px rgba(255,211,77,0.8); }

#rotate { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: var(--ink); z-index: 50; font-size: 16px; letter-spacing: 0.1em; text-shadow: 0 0 10px var(--cyan); }
#rotate .phone { width: 46px; height: 80px; border: 3px solid var(--cyan); border-radius: 9px; box-shadow: 0 0 14px var(--cyan); animation: turn 1.6s ease-in-out infinite; }
@keyframes turn { 0%, 20% { transform: rotate(0); } 60%, 100% { transform: rotate(90deg); } }
@media (orientation: portrait) { #rotate { display: flex; } }
a.btn { text-decoration: none; display: inline-block; }
.hint:empty { display: none; }

#s-rooms { flex-direction: column; align-items: center; justify-content: center; gap: 2.2vh; }
.rooms-head { font-family: "Rye", Georgia, serif; font-size: clamp(20px, 9vh, 38px); color: #fff; text-shadow: 0 0 6px #fff, 0 0 18px var(--pink), 0 0 36px var(--pink); letter-spacing: 0.04em; }
.doors { display: flex; gap: 3.5vw; align-items: flex-end; }
.door { position: relative; width: min(25vw, 220px); height: 56vh; padding: 0 8px 2.4vh; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 1vh; border-radius: 999px 999px 10px 10px; border: 3px solid var(--cyan); background: linear-gradient(180deg, rgba(53,243,255,0.28), rgba(154,91,255,0.2) 55%, rgba(5,6,26,0.9)); box-shadow: 0 0 22px rgba(53,243,255,0.75), inset 0 0 26px rgba(53,243,255,0.35); overflow: hidden; }
.door .door-arch { position: absolute; left: 12%; right: 12%; top: 7%; height: 36%; border-radius: 999px 999px 6px 6px; border: 2px solid rgba(255,255,255,0.35); background: repeating-conic-gradient(from 0deg at 50% 100%, rgba(255,79,168,0.5) 0 12deg, rgba(53,243,255,0.4) 12deg 24deg, rgba(154,91,255,0.5) 24deg 36deg); opacity: 0.9; }
.door b { position: relative; font-family: "Rye", Georgia, serif; font-weight: 400; font-size: clamp(13px, 5.6vh, 23px); line-height: 1.05; color: #fff; text-shadow: 0 0 10px var(--cyan), 0 2px 0 #2a0a55; }
.door em { position: relative; font-style: normal; font-size: clamp(8px, 2.5vh, 10.5px); letter-spacing: 0.1em; color: #cfd8ff; }
.door .door-tag { position: relative; font-size: clamp(10px, 3.3vh, 13px); letter-spacing: 0.14em; font-weight: 700; padding: 0.3em 1.1em; border-radius: 999px; background: var(--cyan); color: #05061a; box-shadow: 0 0 12px var(--cyan); }
.door.open { animation: doorglow 1.8s ease-in-out infinite; }
@keyframes doorglow { 50% { box-shadow: 0 0 34px rgba(53,243,255,1), inset 0 0 30px rgba(53,243,255,0.5); } }
.door.locked { border-color: rgba(154,91,255,0.75); box-shadow: 0 0 10px rgba(154,91,255,0.4); background: linear-gradient(180deg, rgba(40,30,90,0.75), rgba(5,6,26,0.92)); }
.door.locked .door-arch { filter: grayscale(1) brightness(0.45); }
.door.locked b { color: #b9b4d8; text-shadow: 0 2px 0 #000; }
.door.locked .door-tag { background: none; color: var(--gold); border: 1px solid var(--gold); box-shadow: none; }
.door .lock { position: absolute; top: 13%; left: 50%; width: 17%; transform: translateX(-50%); filter: drop-shadow(0 0 8px rgba(255,211,77,0.8)); }
.door.shake { animation: shake 0.35s linear; }
@keyframes shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }
.rooms-foot { display: flex; align-items: center; gap: 14px; min-height: 6vh; }
#s-wall { pointer-events: none; flex-direction: column; justify-content: space-between; align-items: center; padding-top: 6px; padding-bottom: 6px; }
#s-wall button, #s-wall .cap-btns { pointer-events: auto; }
.wall-top { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 16px; border-radius: 12px; background: rgba(5,6,26,0.55); }
.prompt.sm { font-size: clamp(15px, 6.4vh, 26px); }
.wall-top .idea { font-size: clamp(10px, 3.4vh, 14px); }
.wall-bottom { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 12px; background: rgba(5,6,26,0.72); max-width: 98vw; }
.wall-bottom .cap-btns { justify-content: center; gap: 6px 8px; }
.wall-bottom .rec-bar { position: static; width: 100%; height: 4px; border-radius: 4px; overflow: hidden; }
.wall-bottom .privacy { font-size: clamp(9px, 2.8vh, 12px); padding: 2px 8px; }
#s-wall .rec { top: 8px; left: calc(10px + var(--sl)); }
.count.wallc { inset: auto; left: 50%; top: 50%; width: 0; height: 0; font-size: 26vh; }
