/* Amarof na vlastnej doméne: logo, prihlásenie, sprievodca piatimi oblasťami, Sieň slávy so skupinami */

.brand-logo { width: 30px; height: 30px; display: block; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }
.gate-logo { justify-self: center; width: 72px; height: 72px; animation: logo-breathe 2.4s ease-in-out infinite; }
@keyframes logo-breathe { 50% { transform: scale(1.05); filter: drop-shadow(0 0 14px color-mix(in srgb, var(--gold) 45%, transparent)); } }

/* ---------- jazyk a prepínače ---------- */
.lang-switch, .fame-mode, .fame-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.lang-btn { font: inherit; font-size: var(--fs-xs); min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 80%, transparent); color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.lang-btn:hover { color: var(--gold-hi); border-color: var(--gold-lo); }
.lang-btn[aria-pressed="true"] { color: var(--bg); background: var(--gold); border-color: var(--gold); }
.lang-btn .ico { width: 16px; height: 16px; }
.lang-btn small { opacity: .75; }

/* ---------- prihlásenie ---------- */
body.is-login .topbar { display: none; }
body.is-login { padding-bottom: 0; }
.login-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; background:
  radial-gradient(ellipse at 50% 18%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 55%),
  linear-gradient(180deg, rgba(20,16,12,.55), var(--bg) 70%), url("../assets/city.webp") center 30% / cover no-repeat; }
.login { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; padding: var(--s-4) 0 var(--s-7); display: grid; gap: var(--s-5); }
.login-top { display: flex; justify-content: flex-end; }
.login-hero { text-align: center; display: grid; justify-items: center; gap: var(--s-2); }
.login-hero h2 { font-size: clamp(2.6rem, 2rem + 4vw, 4rem); color: var(--gold-hi); letter-spacing: .14em; margin: 0; text-shadow: 0 4px 30px rgba(0,0,0,.7); }
.login-hero .sec-over { margin: var(--s-3) 0 0; }
.login-lead { max-width: 46ch; color: var(--text); margin: 0; font-size: var(--fs-m); text-shadow: 0 1px 10px rgba(0,0,0,.8); }
.login-emblem { position: relative; width: 132px; height: 132px; display: grid; place-items: center; }
.login-emblem img { width: 112px; height: 112px; position: relative; z-index: 1; animation: emblem-in 900ms cubic-bezier(.2,.8,.2,1) both, logo-breathe 3.2s 900ms ease-in-out infinite; }
.login-glow { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--gold) 40%, transparent), transparent 65%); animation: glow-pulse 3.2s ease-in-out infinite; }
@keyframes emblem-in { from { opacity: 0; transform: translateY(16px) scale(.8) rotate(-6deg); } to { opacity: 1; transform: none; } }
@keyframes glow-pulse { 50% { transform: scale(1.18); opacity: .6; } }
.login-card { background: color-mix(in srgb, var(--panel) 90%, transparent); border: 1px solid var(--line); border-radius: var(--r-2); padding: var(--s-5) var(--s-4); display: grid; gap: var(--s-3); justify-items: center; box-shadow: var(--shadow); backdrop-filter: blur(6px); }
.login-google { color-scheme: light; min-height: 44px; width: 100%; max-width: 320px; display: flex; justify-content: center; }
.login-dev { width: 100%; max-width: 320px; display: grid; gap: var(--s-2); }
.login-dev:empty { display: none; }
.login-status { margin: 0; min-height: 1.4em; color: var(--muted); text-align: center; }
.login-card > .sec-note { text-align: center; max-width: 44ch; margin: 0; }
.login-invite { display: flex; gap: var(--s-2); align-items: center; padding: var(--s-3) var(--s-4); border: 1px solid var(--gold-lo); border-radius: var(--r-2); background: color-mix(in srgb, var(--gold) 12%, var(--panel)); color: var(--gold-hi); margin: 0; }
.login-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.login-feats li { display: grid; grid-template-columns: auto 1fr; gap: var(--s-3); align-items: start; padding: var(--s-3); background: color-mix(in srgb, var(--panel) 75%, transparent); border: 1px solid color-mix(in srgb, var(--line) 70%, transparent); border-radius: var(--r-2); animation: sec-in 600ms both; }
.login-feats li:nth-child(2) { animation-delay: 120ms; } .login-feats li:nth-child(3) { animation-delay: 240ms; }
.login-feats b { display: block; font-family: var(--f-display); color: var(--gold-hi); font-weight: 600; }
.login-feats span:not(.sec-emb) { color: var(--muted); }

/* ---------- účet ---------- */
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; border: 1px solid var(--gold-lo); background: var(--panel-2); }
.avatar--empty { display: inline-grid; place-items: center; color: var(--gold); font-family: var(--f-display); font-size: .85rem; }
.avatar--empty .ico { width: 20px; height: 20px; }
.account { display: grid; gap: var(--s-3); padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--r-2); background: var(--panel-2); }
.account-who { display: flex; gap: var(--s-3); align-items: center; min-width: 0; }
.account-who b { display: block; }
.account-who .sec-note { margin: 0; word-break: break-all; }
.account-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.btn--danger-text { color: var(--ember); }

/* ---------- sprievodca ---------- */
body.is-start .topbar .hud { visibility: hidden; }
.ob { width: 100%; max-width: 980px; margin: 0 auto; display: grid; gap: var(--s-4); }
.ob-scene { position: relative; overflow: hidden; border-radius: var(--r-2); border: 1px solid var(--line); aspect-ratio: 16 / 7; background: #0e0b08; box-shadow: var(--shadow); }
.ob-pan { position: absolute; inset: 0; transition: transform 1400ms cubic-bezier(.45,.05,.2,1), transform-origin 1400ms cubic-bezier(.45,.05,.2,1); will-change: transform; }
.ob-city { width: 100%; height: 100%; object-fit: cover; display: block; animation: city-drift 18s ease-in-out infinite alternate; }
@keyframes city-drift { to { transform: scale(1.03) translate(-0.6%, 0.4%); } }
.ob-scene-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(14,11,8,.65)); pointer-events: none; }
.ob-marker { position: absolute; transform: translate(-50%, -50%); transition: left 1400ms cubic-bezier(.45,.05,.2,1), top 1400ms cubic-bezier(.45,.05,.2,1); z-index: 2; color: var(--c, var(--gold)); }
.ob-marker[hidden] { display: none; }
.ob-marker i { display: block; width: 26px; height: 26px; border-radius: 50%; border: 2px solid currentColor; box-shadow: 0 0 18px currentColor, inset 0 0 10px currentColor; animation: marker-pulse 1.8s ease-out infinite; }
.ob-marker b { position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(-50%); white-space: nowrap; font-family: var(--f-display); font-weight: 600; letter-spacing: .08em; font-size: .9rem; color: #f3e7cb; background: rgba(14,11,8,.78); padding: 3px 10px; border: 1px solid currentColor; border-radius: 999px; }
@keyframes marker-pulse { 0% { transform: scale(.7); opacity: 1; } 100% { transform: scale(1.9); opacity: 0; } }
.ob-body { display: grid; gap: var(--s-4); }
.ob-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.ob-steps[hidden] { display: none; }
.ob-steps li { display: grid; justify-items: center; gap: 4px; padding: 6px 2px; border-bottom: 2px solid var(--line); color: var(--muted); transition: border-color var(--t-med), color var(--t-med); min-width: 0; }
.ob-step-ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--panel); transition: transform var(--t-med), box-shadow var(--t-med); }
.ob-step-ico .ico { width: 18px; height: 18px; }
.ob-step-name { font-size: .78rem; text-align: center; line-height: 1.15; overflow-wrap: anywhere; }
.ob-steps li.is-on { border-color: var(--gold); color: var(--gold-hi); }
.ob-steps li.is-on .ob-step-ico { transform: scale(1.15); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 25%, transparent), 0 0 18px color-mix(in srgb, var(--gold) 35%, transparent); }
.ob-steps li.is-done { border-color: var(--gold-lo); }
.ob-steps li.is-done .ob-step-ico { background: color-mix(in srgb, var(--gold) 18%, var(--panel)); }
.ob-card { min-height: 280px; }
.ob-card-in { display: grid; gap: var(--s-4); animation: ob-in 520ms cubic-bezier(.2,.8,.2,1) both; }
.ob-card-in.from-left { animation-name: ob-in-left; }
@keyframes ob-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes ob-in-left { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
.ob-card-in > * { margin: 0; }
.ob-card-in h2 { font-size: var(--fs-xxl); color: var(--gold-hi); display: flex; align-items: center; gap: var(--s-3); }
.ob-card-in h2 .ico { width: 1em; height: 1em; color: var(--c); }
.ob-card-in h2:focus { outline: none; }
.ob-lead { font-size: var(--fs-m); max-width: 62ch; }
.ob-points { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-2); }
.ob-points li { position: relative; padding-left: 22px; animation: sec-in 500ms both; }
.ob-points li:nth-child(2) { animation-delay: 90ms; } .ob-points li:nth-child(3) { animation-delay: 180ms; }
.ob-points li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; transform: rotate(45deg); border: 1.5px solid var(--gold); }
.ob-rose { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.ob-rose-item { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--c) 55%, var(--line)); color: var(--c); background: color-mix(in srgb, var(--c) 10%, var(--panel)); animation: gem-pop 500ms both; }
.ob-rose-item:nth-child(2) { animation-delay: 80ms; } .ob-rose-item:nth-child(3) { animation-delay: 160ms; } .ob-rose-item:nth-child(4) { animation-delay: 240ms; } .ob-rose-item:nth-child(5) { animation-delay: 320ms; }
.ob-rose-item .ico { width: 18px; height: 18px; }

/* ukážka */
.ob-try { border: 1px solid color-mix(in srgb, var(--gold) 35%, var(--line)); border-radius: var(--r-2); padding: var(--s-4); background: linear-gradient(160deg, color-mix(in srgb, var(--gold) 8%, var(--panel)), var(--panel)); display: grid; gap: var(--s-3); }
.ob-try-head { margin: 0; font-family: var(--f-display); color: var(--gold-hi); letter-spacing: .06em; display: flex; align-items: center; gap: 8px; }
.ob-try-head .ico { color: var(--ember); animation: ico-nudge 2s ease-in-out infinite; }
.ob-demo { display: grid; grid-template-columns: minmax(120px, 170px) minmax(0, 1fr); gap: var(--s-4); align-items: center; }
.ob-demo-vis { display: grid; justify-items: center; gap: var(--s-2); }
.ob-demo-ctl { display: grid; gap: var(--s-3); min-width: 0; }
.ob-slider { display: grid; gap: 4px; }
.ob-sl-top { display: flex; justify-content: space-between; gap: var(--s-2); }
.ob-out { color: var(--gold-hi); font-weight: 600; white-space: nowrap; }
.ob-range { width: 100%; accent-color: var(--gold); min-height: 32px; }
.ob-note { margin: 0; color: var(--muted); font-style: italic; min-height: 2.6em; }
.ob-q { margin: 0; }
.ob-xp { display: flex; align-items: baseline; gap: 4px; color: var(--gold-hi); }
.ob-xp b { font-family: var(--f-display); font-size: 2rem; }
.ob-xp small { color: var(--muted); }
.ob-xp.is-neg { color: var(--ember); }
.ob-xp.is-pop b { animation: xp-pop 380ms ease-out; }
@keyframes xp-pop { 40% { transform: scale(1.25); text-shadow: 0 0 18px currentColor; } }
.ob-medal { width: 110px; height: 110px; color: var(--c); }
.ob-medal-track { fill: none; stroke: var(--line); stroke-width: 6; }
.ob-medal-prog { fill: none; stroke: currentColor; stroke-width: 6; stroke-linecap: round; transform: rotate(-90deg); transition: stroke-dasharray 500ms cubic-bezier(.2,.8,.2,1); filter: drop-shadow(0 0 4px currentColor); }
.ob-medal-core { fill: var(--panel-2); stroke: color-mix(in srgb, currentColor 50%, transparent); }
.ob-medal-lvl { fill: var(--gold-hi); font-family: var(--f-display); font-size: 22px; font-weight: 600; }
.ob-flame { width: 70px; height: 104px; --w: 1; overflow: visible; }
.ob-flame-glow { fill: #ffb45a; opacity: calc(var(--w) * .28); filter: blur(8px); transition: opacity 500ms; }
.ob-flame-outer { fill: #f08a3c; transform-origin: 30px 80px; transform: scale(calc(.35 + var(--w) * .65)); transition: transform 500ms cubic-bezier(.2,.8,.2,1); animation: flicker 1.6s ease-in-out infinite; }
.ob-flame-inner { fill: #ffe0a0; transform-origin: 30px 80px; transform: scale(calc(.3 + var(--w) * .7)); transition: transform 500ms; animation: flicker 1.1s ease-in-out infinite reverse; }
.ob-flame.is-out .ob-flame-outer, .ob-flame.is-out .ob-flame-inner { fill: #4a3a2c; animation: none; }
.ob-flame.is-out .ob-flame-glow { opacity: 0; }
@keyframes flicker { 0%, 100% { rotate: -2deg; } 50% { rotate: 2.5deg; translate: 0 -1px; } }
.ob-candle { display: grid; justify-items: center; }
.ob-candle .ob-flame { width: 54px; height: 80px; margin-bottom: -6px; }
.ob-candle-body { display: block; width: 26px; height: 56px; border-radius: 3px 3px 2px 2px; background: linear-gradient(90deg, #e9dcc0, #f8efdb 40%, #cdbd9b); box-shadow: 0 6px 14px rgba(0,0,0,.4); }
.ob-lamp { width: 92px; height: 112px; display: grid; place-items: center; border: 2px solid var(--gold-lo); border-radius: 20px 20px 8px 8px; background: rgba(0,0,0,.25); }
.ob-lamp .ob-flame { width: 50px; height: 76px; }
.ob-checks { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.ob-check { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; min-height: 44px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; background: var(--panel); }
.ob-check:has(input:checked) { border-color: var(--gold); color: var(--gold-hi); background: color-mix(in srgb, var(--gold) 14%, var(--panel)); }
.ob-check input { accent-color: var(--gold); width: 18px; height: 18px; }
.ob-rod .rod { margin: 0; }

/* výber */
.ob-pick { display: grid; gap: var(--s-2); }
.ob-pick-head { margin: var(--s-2) 0 0; font-family: var(--f-display); color: var(--gold-hi); letter-spacing: .05em; }
.ob-pick-head.is-bad { color: var(--ember); }
.ob-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--s-2); }
.ob-chip { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--panel); cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast); }
.ob-chip:hover { border-color: var(--gold-lo); }
.ob-chip:has(input:checked) { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 13%, var(--panel)); }
.ob-chip:active { transform: scale(.98); }
.ob-chip input { accent-color: var(--gold); width: 18px; height: 18px; flex: none; }
.ob-chip b { display: block; font-weight: 600; }
.ob-chip small { display: block; color: var(--muted); font-size: .8rem; }
.ob-summary { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.ob-summary li { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3); border: 1px solid var(--line); border-left: 3px solid var(--c); border-radius: var(--r-2); background: var(--panel); animation: sec-in 500ms both; }
.ob-summary li:nth-child(2) { animation-delay: 80ms; } .ob-summary li:nth-child(3) { animation-delay: 160ms; } .ob-summary li:nth-child(4) { animation-delay: 240ms; } .ob-summary li:nth-child(5) { animation-delay: 320ms; }
.ob-summary .ico { color: var(--c); }
.ob-summary span { flex: 1; }
.ob-summary b { color: var(--gold-hi); }
.ob-nav { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-3) 0; background: linear-gradient(0deg, var(--bg) 70%, transparent); z-index: 3; }
.ob-nav .btn[hidden] { visibility: hidden; display: inline-flex; }
.ob-count { color: var(--muted); }
.ob-nav .btn--primary { min-width: 9rem; }

/* farby oblastí pre --c */
.area-c-telo { --c: var(--o-telo); } .area-c-mysel { --c: var(--o-mysel); } .area-c-vztahy { --c: var(--o-vztahy); }
.area-c-duch { --c: var(--o-duch); } .area-c-povol { --c: var(--o-povol); } .area-c-posl { --c: var(--o-posl); }

@media (max-width: 640px) {
  .ob-scene { aspect-ratio: 4 / 3; margin: 0 calc(var(--s-4) * -1); border-radius: 0; border-left: 0; border-right: 0; }
  .ob-demo { grid-template-columns: 1fr; }
  .ob-demo-vis { grid-auto-flow: column; justify-content: center; align-items: center; gap: var(--s-4); }
  .ob-step-name { display: none; }
  .ob-chips { grid-template-columns: 1fr; }
}

/* ---------- Sieň slávy ---------- */
.fame-tabs { margin: 0 0 var(--s-3); }
.fame-new { border-style: dashed; }
.fame-board { display: grid; gap: var(--s-3); }
.fame-head { display: flex; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; align-items: flex-start; }
.fame-head h3 { margin: 0; font-size: var(--fs-l); color: var(--gold-hi); }
.fame-head .sec-note { margin: 2px 0 0; }
.fame-list { counter-reset: none; }
.fame-list li { gap: var(--s-3); animation: sec-in 420ms both; }
.fame-list li:nth-child(2) { animation-delay: 50ms; } .fame-list li:nth-child(3) { animation-delay: 100ms; } .fame-list li:nth-child(4) { animation-delay: 150ms; } .fame-list li:nth-child(n+5) { animation-delay: 200ms; }
.fame-list .place { font-family: var(--f-display); width: 2.2ch; text-align: right; color: var(--muted); font-variant-numeric: lining-nums; font-size: 1.1rem; flex: none; }
.fame-list li.is-top .place { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; text-align: center; color: #1a130c; font-weight: 700; font-size: .95rem; }
.fame-list li.is-top-1 .place { background: radial-gradient(circle at 35% 30%, #fff1c4, #d6a93f 60%, #8a6420); box-shadow: 0 0 14px rgba(214,169,63,.5); }
.fame-list li.is-top-2 .place { background: radial-gradient(circle at 35% 30%, #ffffff, #b9bcc2 60%, #6e7279); }
.fame-list li.is-top-3 .place { background: radial-gradient(circle at 35% 30%, #ffd9b8, #c07a43 60%, #7a4520); }
.fame-list li.is-hero { background: linear-gradient(90deg, color-mix(in srgb, var(--gold) 12%, transparent), transparent); }
.fame-list li.is-hero .li-title { color: var(--gold-hi); }
.fame-list .li-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fame-role { font-size: .72rem; letter-spacing: .04em; }
.fame-xp { display: grid; justify-items: end; line-height: 1.1; flex: none; }
.fame-xp b { font-family: var(--f-display); color: var(--gold-hi); font-size: 1.15rem; }
.fame-xp small { color: var(--muted); font-size: .75rem; }
.fame-more { flex: none; }
.fame-areas { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 4px; }
.fame-pip { display: inline-flex; align-items: center; gap: 2px; color: var(--c); font-size: .8rem; }
.fame-pip .ico { width: 14px; height: 14px; }
.fame-pip b { color: var(--text); font-weight: 600; }
.fame-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.fame-pending summary { cursor: pointer; color: var(--gold); }
.fame-empty { display: grid; justify-items: center; text-align: center; gap: var(--s-3); padding: var(--s-6) var(--s-4); }
.fame-empty h3 { margin: 0; color: var(--gold-hi); font-size: var(--fs-l); }
.fame-empty p { margin: 0; max-width: 52ch; color: var(--muted); }
.fame-empty-art img { animation: logo-breathe 3s ease-in-out infinite; }
.fame-invites { border-color: var(--gold-lo); }
.fame-invites li { flex-wrap: wrap; }
.fame-loading { min-height: 120px; display: grid; place-items: center; }

@media (prefers-reduced-motion: reduce) {
  .ob-pan, .ob-marker { transition: none; }
  .ob-city, .gate-logo, .login-emblem img, .login-glow, .ob-marker i, .ob-flame-outer, .ob-flame-inner, .fame-empty-art img { animation: none; }
}
.ob-summary li { color: var(--text); }
