/* Belső Iránytű – iOS-szerű üvegfelület, sötétkék → lila → rózsaszín ombre */
:root {
  --ink: #f7f5ff;
  --ink-2: rgba(240, 236, 255, 0.86);
  --ink-3: rgba(236, 231, 255, 0.78);
  --accent: #c9b6ff;
  --accent-2: #ff9cc8;
  --violet: #c4b2ff;
  --violet-2: #a98bff;
  --teal: #6ee7e0;
  --glass: rgba(255, 255, 255, 0.11);
  --glass-2: rgba(255, 255, 255, 0.07);
  --glass-hi: rgba(255, 255, 255, 0.18);
  --glass-line: rgba(255, 255, 255, 0.22);
  --glass-line-2: rgba(255, 255, 255, 0.10);
  --shadow: 0 18px 40px -18px rgba(8, 6, 40, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  --grad: linear-gradient(135deg, #6f86ff 0%, #a274f0 50%, #ff8fc0 100%);
  --grad-soft: linear-gradient(135deg, rgba(111, 134, 255, 0.28), rgba(255, 143, 192, 0.28));
  --r: 24px;
  --r-s: 16px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Nunito Sans", "Segoe UI", Roboto, sans-serif;
  --font-d: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Nunito Sans", "Segoe UI", Roboto, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --bg: #120f3a;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
html { background: #0b1230; }
body {
  font-family: var(--font); color: var(--ink); background: transparent;
  font-size: 16px; line-height: 1.5; min-height: 100vh; min-height: 100dvh;
  -webkit-font-smoothing: antialiased; overscroll-behavior-y: none; -webkit-text-size-adjust: 100%;
}
button, input, textarea, select { font: inherit; color: inherit; }
button, a, .chip, .card.tap, .li, [onclick] { touch-action: manipulation; cursor: pointer; }
a { color: var(--accent-2); }
.hidden { display: none !important; }
::selection { background: rgba(255, 156, 200, 0.4); }

/* háttér: sötétkék → lila → rózsaszín */
.bg-ombre { position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background: linear-gradient(172deg, #0b1230 0%, #18215e 26%, #3a2a86 52%, #8a4aa6 76%, #e58ab6 100%); }
.blob { position: absolute; border-radius: 50%; will-change: transform; }
.b1 { width: 80vmax; height: 80vmax; left: -35vmax; top: -35vmax; background: radial-gradient(circle, rgba(90,120,255,.45), rgba(90,120,255,0) 62%); animation: drift 24s ease-in-out infinite alternate; }
.b2 { width: 70vmax; height: 70vmax; right: -30vmax; top: 18vh; background: radial-gradient(circle, rgba(170,110,255,.42), rgba(170,110,255,0) 62%); animation: drift 28s ease-in-out infinite alternate-reverse; }
.b3 { width: 70vmax; height: 70vmax; left: -10vw; bottom: -38vmax; background: radial-gradient(circle, rgba(255,140,190,.5), rgba(255,140,190,0) 62%); animation: drift 32s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate3d(5vw, 4vh, 0) scale(1.08); } }

/* elrendezés */
#app { max-width: 560px; margin: 0 auto; padding: calc(var(--safe-t) + 14px) 16px calc(var(--safe-b) + 112px); }
.screen { animation: screenIn .38s cubic-bezier(.2,.8,.2,1); }
@keyframes screenIn { from { opacity: 0; transform: translateY(12px) scale(.995); } to { opacity: 1; transform: none; } }
.topbar { display: flex; align-items: center; gap: 10px; margin: 4px 0 14px; min-height: 48px; }
.topbar h1 { flex: 1; margin: 0; }
h1, h2, h3 { font-family: var(--font-d); color: var(--ink); line-height: 1.15; letter-spacing: -0.3px; }
h1 { font-size: 32px; font-weight: 800; } h2 { font-size: 21px; font-weight: 700; margin: 24px 0 10px; } h3 { font-size: 18px; font-weight: 700; margin: 0 0 6px; }
.muted { color: var(--ink-3); } .small { font-size: 14.5px; } .tiny { font-size: 12.5px; }
.center { text-align: center; }
.row { display: flex; gap: 10px; align-items: center; } .row.wrap { flex-wrap: wrap; } .grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sp { height: 14px; }

/* üvegkártya – iOS-szerű */
.card { position: relative; background: linear-gradient(rgba(255,255,255,.11), rgba(255,255,255,.06)), rgba(16, 10, 52, .22); border: 1px solid var(--glass-line-2); border-radius: var(--r); padding: 16px;
  box-shadow: var(--shadow); -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%); }
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(160deg, rgba(255,255,255,.14), rgba(255,255,255,0) 40%); }
.card + .card { margin-top: 12px; }
.card.tint { background: linear-gradient(135deg, rgba(111,134,255,.22), rgba(255,143,192,.20)); }
.card.tap { transition: transform .15s ease, background .2s; }
.card.tap:active { transform: scale(.98); background: var(--glass-hi); }
.card-title { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 6px; }
.card-title svg { width: 20px; height: 20px; flex: none; color: var(--accent-2); }

/* gombok – nagy, jól koppintható */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 20px;
  border-radius: 999px; border: 1px solid var(--glass-line); background: var(--glass); color: var(--ink); font-weight: 700; font-size: 16px;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); transition: transform .12s ease, background .2s, box-shadow .2s;
  text-decoration: none; user-select: none; -webkit-user-select: none; }
.btn:active { transform: scale(.96); background: var(--glass-hi); }
.btn.primary { background: var(--grad); color: #fff; border-color: rgba(255,255,255,.3); box-shadow: 0 10px 26px -10px rgba(255,120,190,.7), inset 0 1px 0 rgba(255,255,255,.35); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--accent); -webkit-backdrop-filter: none; backdrop-filter: none; }
.btn.danger { color: #ffb3cc; }
.btn.block { width: 100%; }
.btn.sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn:disabled { opacity: .5; }
.iconbtn { width: 48px; height: 48px; border-radius: 50%; display: inline-grid; place-items: center; border: 1px solid var(--glass-line);
  background: var(--glass); color: var(--ink); flex: none; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); transition: transform .12s; }
.iconbtn:active { transform: scale(.92); }
.iconbtn svg, .btn svg { width: 21px; height: 21px; }

/* űrlap */
label.f { display: block; margin: 16px 0 7px; font-weight: 700; font-size: 14.5px; color: var(--ink-2); }
.input, textarea.input, select.input { width: 100%; border: 1px solid var(--glass-line); background: rgba(255,255,255,.08); color: var(--ink);
  border-radius: var(--r-s); padding: 13px 15px; font-size: 16px; outline: none; transition: border .2s, box-shadow .2s, background .2s; min-height: 50px; }
.input::placeholder { color: rgba(240,236,255,.45); }
.input:focus { border-color: rgba(255,156,200,.7); box-shadow: 0 0 0 4px rgba(255,156,200,.18); background: rgba(255,255,255,.12); }
select.input { -webkit-appearance: none; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
select.input option { color: #1a1640; }
textarea.input { min-height: 88px; resize: vertical; line-height: 1.45; }
.hint { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; border: 1px solid var(--glass-line); background: var(--glass-2); border-radius: 999px;
  padding: 8px 15px; font-size: 14.5px; user-select: none; -webkit-user-select: none; transition: all .15s; color: var(--ink); }
.chip:active { transform: scale(.95); }
.chip.on { background: var(--grad); color: #fff; border-color: rgba(255,255,255,.3); }
.seg { display: flex; background: rgba(255,255,255,.07); border: 1px solid var(--glass-line-2); border-radius: 999px; padding: 4px; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: 1; border: 0; background: transparent; border-radius: 999px; min-height: 40px; padding: 0 14px; font-weight: 700; font-size: 14.5px; color: var(--ink-3); white-space: nowrap; }
.seg button.on { background: rgba(255,255,255,.18); color: var(--ink); box-shadow: 0 2px 10px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.2); }
.switch { position: relative; width: 52px; height: 32px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: rgba(255,255,255,.18); border-radius: 999px; transition: .2s; }
.switch span::before { content: ""; position: absolute; width: 26px; height: 26px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.switch input:checked + span { background: #5fd8a0; }
.switch input:checked + span::before { transform: translateX(20px); }
.setting { display: flex; align-items: center; gap: 12px; padding: 12px 0; min-height: 56px; border-bottom: 1px solid var(--glass-line-2); }
.setting:last-child { border-bottom: 0; }
.range { width: 100%; accent-color: #ff9cc8; height: 36px; }
input[type=checkbox] { accent-color: #ff9cc8; }

/* lista */
.li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 2px; min-height: 52px; border-bottom: 1px solid var(--glass-line-2); }
.li:last-child { border-bottom: 0; }
.li:active { background: rgba(255,255,255,.05); }
.dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 7px; flex: none; box-shadow: 0 0 10px currentColor; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.12); color: var(--ink-2); }
.badge { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(110,231,224,.18); color: #9ff3ec; white-space: nowrap; }
.badge.warn { background: rgba(255,156,200,.2); color: #ffc2dc; }
.badge.ok { background: rgba(95,216,160,.2); color: #a8f0cc; }

/* tabbar – úszó üvegsáv */
.tabbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--safe-b) + 10px); width: calc(100% - 20px); max-width: 520px;
  display: flex; justify-content: space-around; align-items: stretch; padding: 6px; border-radius: 30px; z-index: 40;
  background: rgba(30, 24, 80, .55); border: 1px solid var(--glass-line); box-shadow: 0 20px 40px -14px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.18);
  -webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%); }
.tabbar button { flex: 1; border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 11px; font-weight: 700; color: var(--ink-3); min-height: 56px; border-radius: 22px; }
.tabbar button svg { width: 25px; height: 25px; }
.tabbar button.on { color: #fff; background: rgba(255,255,255,.12); }
.tabbar .mid .orb { width: 54px; height: 54px; margin-top: -24px; border-radius: 50%; background: var(--grad); display: grid; place-items: center;
  box-shadow: 0 12px 26px -8px rgba(255,120,190,.8); border: 2px solid rgba(255,255,255,.55); color: #fff; }
.tabbar .mid.on { background: transparent; }

/* sheet – üveg alsó panel */
.sheet-bg { position: fixed; inset: 0; background: rgba(5,4,25,.45); z-index: 60; animation: fade .2s; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; max-height: 92vh; max-height: 92dvh; overflow-y: auto; -webkit-overflow-scrolling: touch; z-index: 61;
  background: rgba(32, 26, 82, .78); border: 1px solid var(--glass-line); border-bottom: 0; border-radius: 30px 30px 0 0;
  padding: 10px 18px calc(var(--safe-b) + 24px); animation: up .32s cubic-bezier(.2,.8,.2,1); max-width: 560px; margin: 0 auto;
  box-shadow: 0 -20px 50px rgba(0,0,0,.45); -webkit-backdrop-filter: blur(30px) saturate(170%); backdrop-filter: blur(30px) saturate(170%); }
.sheet .grab { width: 42px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.35); margin: 0 auto 12px; }
.sheet .card { background: rgba(255,255,255,.08); }
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } }

.toast { position: fixed; left: 50%; bottom: calc(var(--safe-b) + 104px); transform: translateX(-50%) translateY(20px); opacity: 0;
  background: rgba(20,16,60,.85); border: 1px solid var(--glass-line); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: 14.5px; z-index: 80; pointer-events: none;
  transition: all .3s; max-width: 90vw; text-align: center; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.toast.show { opacity: 1; transform: translateX(-50%); }

/* Lumi */
.lumi-wrap { position: relative; display: grid; place-items: center; perspective: 700px; user-select: none; -webkit-user-select: none; cursor: pointer; }
.lumi-tilt { transition: transform .5s cubic-bezier(.2,.8,.2,1); transform-style: preserve-3d; will-change: transform; }
.lumi { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 10px 22px rgba(255,140,200,.25)); }
.lumi .ln { fill: none; stroke: #2b1f4a; stroke-width: 3.4; stroke-linecap: round; }
.lumi .float { animation: float 5s ease-in-out infinite; transform-origin: 0 0; }
.lumi .squash { animation: breathe 3.6s ease-in-out infinite; transform-origin: 0 60px; }
.lumi .shadow { animation: shadow 5s ease-in-out infinite; transform-origin: 0 70px; }
.lumi .blink { animation: blink 4.8s infinite; transform-origin: 0 -4px; }
.lumi .antenna { animation: sway 3.2s ease-in-out infinite; }
.lumi .antenna.r { animation-delay: -1.2s; }
.lumi .sprout { animation: sway 3s ease-in-out infinite; }
.lumi .wing { animation: flap 1.6s ease-in-out infinite; transform-box: fill-box; }
.lumi .wing.l { transform-origin: right center; } .lumi .wing.r { transform-origin: left center; }
.lumi .tail { animation: sway 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: left top; }
.lumi .arm { animation: armIdle 3.6s ease-in-out infinite; }
.lumi .arm.r { animation-delay: -1.8s; }
.lumi.mood-happy .arm.r, .lumi.mood-celebrate .arm.r { animation: wave .5s ease-in-out infinite alternate; }
.lumi.mood-celebrate .arm.l { animation: wave .5s ease-in-out infinite alternate-reverse; }
.lumi.mood-thinking .arm.r { animation: none; transform: rotate(-60deg) translate(6px, -6px); }
.lumi .orbit circle { animation: orbit calc(9s + var(--i) * .7s) linear infinite; animation-delay: calc(var(--i) * -1.3s); }
.lumi .aura { animation: pulse 4s ease-in-out infinite; transform-origin: 0 0; }
.lumi .stars path { animation: twinkle 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.lumi .dots circle { fill: #ffc2dc; animation: twinkle 1.4s ease-in-out infinite; }
.lumi .dots circle:nth-child(2) { animation-delay: .2s; } .lumi .dots circle:nth-child(3) { animation-delay: .4s; }
.lumi.mood-calm .float { animation-duration: 8s; } .lumi.mood-calm .squash { animation-duration: 7s; }
.lumi.mood-celebrate .float { animation: hop .7s ease-in-out 3; }
.lumi.mood-thinking .squash { animation-duration: 2.2s; }
.lumi-wrap.poke .lumi-tilt { animation: poke .55s cubic-bezier(.3,1.6,.5,1); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes shadow { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.88); opacity: .7; } }
@keyframes breathe { 0%,100% { transform: scale(1, 1); } 50% { transform: scale(1.035, .965); } }
@keyframes flap { 0%,100% { transform: rotate(0); } 50% { transform: rotate(-14deg) scaleX(.9); } }
@keyframes armIdle { 0%,100% { transform: rotate(0); } 50% { transform: rotate(8deg); } }
@keyframes wave { from { transform: rotate(-20deg); } to { transform: rotate(-95deg); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes sway { 0%,100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes orbit { from { transform: rotate(calc(360deg / var(--n) * var(--i))) translateX(92px) rotate(0); } to { transform: rotate(calc(360deg / var(--n) * var(--i) + 360deg)) translateX(92px); } }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.06); opacity: 1; } }
@keyframes twinkle { 0%,100% { opacity: .3; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.1); } }
@keyframes hop { 0%,100% { transform: translateY(0) scale(1); } 15% { transform: translateY(4px) scale(1.12,.86); } 45% { transform: translateY(-30px) scale(.94,1.08); } 75% { transform: translateY(2px) scale(1.08,.92); } }
@keyframes poke { 0% { transform: scale(1); } 30% { transform: scale(1.1, .88); } 60% { transform: scale(.95, 1.06); } 100% { transform: scale(1); } }
.bubble { position: relative; background: var(--glass); border: 1px solid var(--glass-line); border-radius: 20px; padding: 11px 15px; font-size: 15px;
  box-shadow: var(--shadow); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); animation: screenIn .4s; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 90; overflow: hidden; }
.confetti i { position: absolute; top: -10px; width: 8px; height: 12px; border-radius: 3px; animation: fall 1.8s ease-in forwards; }
@keyframes fall { to { transform: translateY(105vh) rotate(540deg); opacity: .4; } }

/* kezdőlap */
.hero { display: grid; grid-template-columns: 140px 1fr; gap: 10px; align-items: center; }
.hero .lumi-wrap { width: 150px; height: 170px; margin-left: -10px; }
.progress { height: 8px; border-radius: 99px; background: rgba(255,255,255,.14); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--grad); border-radius: 99px; transition: width .8s ease; }
.moods { display: flex; justify-content: space-between; gap: 6px; }
.moods button { flex: 1; border: 1px solid var(--glass-line-2); background: rgba(255,255,255,.06); border-radius: 18px; padding: 10px 0 8px; font-size: 12px; color: var(--ink-2); font-weight: 700; min-height: 64px; }
.moods button .m { display: block; width: 26px; height: 26px; margin: 0 auto 4px; border-radius: 50%; box-shadow: 0 0 14px currentColor; }
.moods button.on { background: var(--grad); color: #fff; border-color: rgba(255,255,255,.35); }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.quick button { border: 1px solid var(--glass-line-2); background: var(--glass); border-radius: 20px; padding: 14px 6px; min-height: 86px; font-weight: 700; font-size: 13px; color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; box-shadow: var(--shadow); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); transition: transform .12s; }
.quick button:active { transform: scale(.95); }
.quick svg { width: 26px; height: 26px; color: var(--accent-2); }
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.menu-grid .card { margin: 0; padding: 15px; min-height: 108px; }
.menu-grid .card svg { width: 26px; height: 26px; color: var(--accent-2); }
.sos { background: linear-gradient(135deg, rgba(111,134,255,.35), rgba(255,143,192,.35)) !important; }

/* chat */
.chat { display: flex; flex-direction: column; gap: 10px; padding-bottom: 8px; }
.msg { max-width: 86%; padding: 11px 15px; border-radius: 22px; font-size: 15.5px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; animation: screenIn .3s; }
.msg.user { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 7px; box-shadow: 0 8px 20px -10px rgba(255,120,190,.6); }
.msg.ai { align-self: flex-start; background: var(--glass); border: 1px solid var(--glass-line-2); border-bottom-left-radius: 7px; box-shadow: var(--shadow); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.msg.sys { align-self: center; font-size: 13px; color: var(--ink-3); background: transparent; text-align: center; max-width: 95%; }
.msg.err { align-self: center; background: rgba(255,120,160,.18); color: #ffd0e0; font-size: 14px; }
.chat-head { display: flex; align-items: center; gap: 10px; }
.chat-head .lumi-wrap { width: 60px; height: 66px; }
.composer { position: sticky; bottom: calc(var(--safe-b) + 92px); margin-top: 10px; z-index: 30; }
.composer .card { padding: 10px; background: rgba(40,32,96,.6); }
.composer textarea { min-height: 48px; max-height: 160px; border: 0; background: transparent; padding: 10px 8px; resize: none; }
.composer textarea:focus { box-shadow: none; background: transparent; }
.ctxbar { font-size: 12.5px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 2px 4px 6px; }
.ctxbar button { border: 0; background: rgba(255,255,255,.1); color: var(--ink); font-weight: 700; font-size: 12.5px; padding: 8px 12px; border-radius: 999px; min-height: 40px; }
.qchips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; }
.qchips::-webkit-scrollbar { display: none; }
.qchips .chip { white-space: nowrap; flex: none; }
.typing span { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); margin: 0 2px; animation: twinkle 1s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; } .typing span:nth-child(3) { animation-delay: .3s; }
pre.preview { white-space: pre-wrap; font-size: 12.5px; background: rgba(0,0,0,.25); border-radius: 14px; padding: 12px; max-height: 50vh; overflow: auto; font-family: ui-monospace, Menlo, monospace; color: var(--ink-2); }

/* kártyák */
.deck-tile { position: relative; overflow: hidden; }
.deck-tile .letter { position: absolute; right: 8px; bottom: -14px; font-size: 64px; opacity: .12; font-weight: 800; }
.flip { perspective: 1200px; height: 370px; margin: 8px 0 14px; cursor: pointer; }
.flip-inner { position: relative; width: 100%; height: 100%; transition: transform .8s cubic-bezier(.3,1.2,.4,1); transform-style: preserve-3d; }
.flip.open .flip-inner { transform: rotateY(180deg); }
.face-a, .face-b { position: absolute; inset: 0; border-radius: 28px; -webkit-backface-visibility: hidden; backface-visibility: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 26px; border: 1px solid var(--glass-line); box-shadow: var(--shadow); }
.face-a { background: var(--grad); color: #fff; }
.face-a .big { font-size: 84px; line-height: 1; font-weight: 800; opacity: .9; }
.face-b { transform: rotateY(180deg); background: rgba(255,255,255,.12); -webkit-backdrop-filter: blur(26px); backdrop-filter: blur(26px); }
.face-b .q { font-size: 26px; font-weight: 700; line-height: 1.28; letter-spacing: -.3px; }
.starter .face-a { background: #f6f1ea; color: #1d1a2e; }
.starter .face-a .big { font-size: 22px; letter-spacing: 6px; text-transform: lowercase; font-weight: 700; opacity: 1; }
.starter .face-b { background: #fbf8f3; color: #1d1a2e; }
.starter .face-b .q { font-family: Georgia, "Iowan Old Style", serif; font-weight: 500; }
.starter .face-b .muted { color: #6a6580; }

/* légzés */
.breath { display: grid; place-items: center; height: 260px; }
.breath .circle { width: 120px; height: 120px; border-radius: 50%; background: var(--grad); opacity: .9; box-shadow: 0 0 70px rgba(255,140,200,.6);
  transition: transform 4s ease-in-out; display: grid; place-items: center; color: #fff; font-weight: 700; }

/* lock */
.lock { min-height: 82vh; display: flex; flex-direction: column; justify-content: center; }
.lock .lumi-wrap { width: 170px; height: 190px; margin: 0 auto; }
.faceid { width: 76px; height: 76px; border-radius: 22px; margin: 6px auto 10px; display: grid; place-items: center; background: var(--glass); border: 1px solid var(--glass-line); }
.faceid svg { width: 44px; height: 44px; }

/* idővonal & diagram */
.legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--ink-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
.stackbar { display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: rgba(255,255,255,.1); }
.stackbar > div { height: 100%; }
.vid { display: grid; grid-template-columns: 120px 1fr; gap: 12px; }
.vid img { width: 120px; height: 68px; object-fit: cover; border-radius: 14px; background: rgba(255,255,255,.1); }
.prose p { margin: 0 0 10px; }
.likert { display: flex; gap: 6px; justify-content: space-between; margin-top: 10px; }
.likert button { flex: 1; min-height: 46px; border-radius: 14px; border: 1px solid var(--glass-line); background: rgba(255,255,255,.06); color: var(--ink); font-weight: 700; }
.likert button.on { background: var(--grad); border-color: rgba(255,255,255,.35); }
.likert-l { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }
.axis { position: relative; width: 100%; aspect-ratio: 1; max-width: 300px; margin: 8px auto; border-radius: 20px; overflow: hidden; border: 1px solid var(--glass-line-2); }
.axis .q { position: absolute; width: 50%; height: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--ink-2); text-align: center; padding: 6px; }
.axis .pt { position: absolute; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid #ff8fc0; transform: translate(-50%, -50%); box-shadow: 0 0 20px #ff8fc0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
