/* Starmix – vmesnik: zvezdni atlas (zlata gravura) na črnem steklu. Barva poudarka (--acc) pride iz planeta, ki igra. */
@font-face { font-family: Unbounded; src: url(../fonts/unbounded-ext.woff2) format('woff2'); font-weight: 200 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Unbounded; src: url(../fonts/unbounded.woff2) format('woff2'); font-weight: 200 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Sans"; src: url(../fonts/instrument-ext.woff2) format('woff2'); font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Sans"; src: url(../fonts/instrument.woff2) format('woff2'); font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #eef0ff; --dim: rgb(220 226 255 / .62); --faint: rgb(220 226 255 / .38); --line: rgb(240 210 150 / .17); --gold: #f1d193; --acc: 241 209 147;
  --glass: rgb(8 10 22 / .74); --D: Unbounded, system-ui, sans-serif; --T: "Instrument Sans", system-ui, sans-serif;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px); --sal: env(safe-area-inset-left, 0px); --sar: env(safe-area-inset-right, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: #04050b; color: var(--ink); font: 400 15px/1.45 var(--T); overflow: hidden; overscroll-behavior: none; -webkit-user-select: none; user-select: none; -webkit-text-size-adjust: 100%; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; touch-action: manipulation; }
button:focus-visible, input:focus-visible, [tabindex]:focus-visible, a:focus-visible { outline: 2px solid rgb(var(--acc)); outline-offset: 3px; }
a { color: var(--gold); }
h1, h2, h3, p { margin: 0; }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; display: block; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }

#ytwrap { position: fixed; left: 0; top: 0; width: 320px; height: 180px; z-index: 0; overflow: hidden; pointer-events: none; background: #000; transform-origin: 0 0; }
#ytwrap iframe, #yt { width: 100%; height: 100%; border: 0; display: block; }
body.ytfront #ytwrap { z-index: 50; pointer-events: auto; left: 50%; top: 42%; width: min(92vw, 720px); height: min(51.75vw, 405px); transform: translate(-50%, -50%); border-radius: 20px; box-shadow: 0 0 0 1px var(--line), 0 20px 90px #000; }
/* naprava brez WebGL 2: video kot planet na mirnem nebu */
body.nogl { background: radial-gradient(circle at 50% 40%, #1b1738, #04050b 70%); }
body.nogl #ytwrap { left: 50%; top: 40%; width: min(88vw, 760px); height: min(49.5vw, 427px); transform: translate(-50%, -50%); border-radius: 32px; box-shadow: 0 0 70px rgb(var(--acc) / .4); }
#cosmos, #names { position: fixed; inset: 0; width: 100%; height: 100%; }
#cosmos { z-index: 1; touch-action: none; outline: none; cursor: grab; }
#cosmos:active { cursor: grabbing; }
#names { z-index: 2; pointer-events: none; }
#arc { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .4s; }
#arcT { fill: #fff6df; font: 500 18px var(--T); letter-spacing: .02em; paint-order: stroke; stroke: rgb(3 4 12 / .78); stroke-width: 5px; stroke-linejoin: round; }
#arcT.in { animation: lin .5s ease-out; }
@keyframes lin { from { opacity: 0; letter-spacing: .16em; } }

/* ---------- vrh ---------- */
#top { position: fixed; z-index: 10; left: 0; right: 0; top: 0; padding: calc(10px + var(--sat)) calc(14px + var(--sar)) 10px calc(16px + var(--sal)); display: flex; align-items: center; gap: 12px; justify-content: space-between; pointer-events: none; }
#top > * { pointer-events: auto; }
#crumbs { display: flex; align-items: center; min-width: 0; flex: 1; font-size: 13px; color: var(--dim); overflow: hidden; mask-image: linear-gradient(90deg, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); }
#crumbs button { padding: 9px 4px; white-space: nowrap; display: flex; align-items: center; gap: 7px; text-shadow: 0 1px 8px #000; transition: color .2s; flex: none; }
#crumbs button:hover { color: #fff; }
#crumbs button[aria-current] { color: var(--ink); font-weight: 600; flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; display: block; }
#crumbs button:first-child { font: 500 12px var(--D); letter-spacing: .16em; color: var(--gold); }
#crumbs button:first-child[aria-current] { display: flex; }
#crumbs i { opacity: .4; padding: 0 3px; font-style: normal; flex: none; }
.tr { display: flex; gap: 8px; }
.rnd { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgb(8 10 22 / .5); border: 1px solid var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: border-color .2s, background .2s; flex: none; }
.rnd:hover { border-color: rgb(240 210 150 / .5); background: rgb(22 24 44 / .7); }
.rnd .ic { width: 20px; height: 20px; }
#yearTag { position: fixed; z-index: 11; left: 50%; top: calc(62px + var(--sat)); transform: translate(-50%, -16px); opacity: 0; pointer-events: none; display: flex; gap: 8px; align-items: center; padding: 7px 14px; border-radius: 99px; background: var(--glass); border: 1px solid var(--line); color: var(--gold); transition: .3s; }
#yearTag.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
#yearTag b { font: 500 13px var(--D); }
#yearTag .ic { width: 16px; height: 16px; }

/* ---------- kartica pogleda ---------- */
#card { position: fixed; z-index: 9; left: calc(14px + var(--sal)); right: calc(14px + var(--sar)); bottom: calc(var(--deckH, 190px) + 8px); max-width: 430px; margin: 0 auto; display: flex; align-items: center; gap: 4px; padding: 8px 8px 8px 16px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .3s, transform .3s; }
#card.on { opacity: 1; transform: none; pointer-events: auto; }
#card .c-t { flex: 1; min-width: 0; padding: 2px 6px 2px 0; }
#card b { display: block; font: 500 14px/1.25 var(--D); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#card i { display: block; font-style: normal; font-size: 12.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#card .cx { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--dim); }
#card .cx:hover { color: #fff; background: rgb(255 255 255 / .06); }
#card .cx.on { color: #ff7d8e; } #card .cx.on .ic { fill: currentColor; }
#card .cx.go { background: rgb(var(--acc)); color: #0b0a12; }

/* ---------- krmilna plošča ---------- */
#deck { position: fixed; z-index: 8; left: 0; right: 0; bottom: 0; padding: 34px calc(16px + var(--sar)) calc(12px + var(--sab)) calc(16px + var(--sal)); display: grid; gap: 8px; justify-items: center; pointer-events: none; background: linear-gradient(transparent, rgb(3 4 10 / .55) 34%, rgb(3 4 10 / .86)); }
#deck button, #deck input, #astro { pointer-events: auto; }
.nowb { text-align: center; width: 100%; max-width: 560px; min-width: 0; }
h1 { font: 400 22px/1.16 var(--D); letter-spacing: -.01em; text-wrap: balance; }
h1 button { max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; text-align: inherit; margin: 0 auto; text-shadow: 0 2px 18px rgb(0 0 0 / .7); padding: 2px 4px; }
.by { font-size: 14px; color: var(--dim); margin-top: 3px; }
.by button { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 2px 6px; }
.by b { color: var(--ink); font-weight: 600; }
#subline { font-size: 14px; padding: 0 6px; color: #ffeec4; min-height: 0; max-height: 0; opacity: 0; transition: opacity .3s, max-height .3s; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
body:not(.arcing) #subline.on { max-height: 24px; opacity: .95; }
.ctl { display: flex; align-items: center; justify-content: center; gap: clamp(6px, 3vw, 18px); }
.cb { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); transition: color .2s, transform .15s, background .2s; }
.cb:hover { background: rgb(255 255 255 / .07); }
.cb:active { transform: scale(.9); }
.cb .ic { width: 25px; height: 25px; }
.cb.gold { color: var(--gold); }
#like.on { color: #ff7d8e; } #like.on .ic { fill: currentColor; }
#like.pop { animation: pop .5s; }
@keyframes pop { 30% { transform: scale(1.4); } 60% { transform: scale(.9); } }
#astro { position: relative; width: 112px; height: 112px; border-radius: 50%; touch-action: none; cursor: pointer; flex: none; }
#cov { position: absolute; inset: 23%; width: 54%; height: 54%; border-radius: 50%; object-fit: cover; box-shadow: inset 0 0 0 1px #000; filter: saturate(1.05); animation: spin 40s linear infinite; animation-play-state: paused; background: radial-gradient(circle at 35% 30%, rgb(var(--acc) / .5), #0a0c18 70%); }
body.playing #cov { animation-play-state: running; }
@keyframes spin { to { transform: rotate(360deg); } }
#astro::after { content: ""; position: absolute; inset: 23%; border-radius: 50%; background: radial-gradient(circle at 34% 28%, rgb(255 255 255 / .22), transparent 42%), radial-gradient(circle at 62% 68%, rgb(2 3 10 / .78), transparent 62%); box-shadow: 0 0 22px rgb(var(--acc) / .35), inset -8px -8px 18px rgb(0 0 0 / .6); pointer-events: none; }
#dial { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
#dial .r1 { fill: none; stroke: rgb(240 210 150 / .34); stroke-width: .8; }
#dial .tk { stroke: rgb(240 210 150 / .5); stroke-width: .9; }
#dial .trk { fill: none; stroke: rgb(255 255 255 / .13); stroke-width: 3; }
#dial .prg { fill: none; stroke: rgb(var(--acc)); stroke-width: 3.4; stroke-linecap: round; filter: drop-shadow(0 0 4px rgb(var(--acc) / .8)); }
#dial .kn { fill: #fff; filter: drop-shadow(0 0 6px rgb(var(--acc))); }
#dial .rete { transform-origin: 0 0; animation: spin 180s linear infinite; }
#dial .rete circle { transition: r .4s, opacity .4s; }
#astro.seek #dial .kn { r: 8; }
#play { position: absolute; inset: 23%; border-radius: 50%; display: grid; place-items: center; z-index: 2; color: #fff; pointer-events: none !important; }
#play .ic { width: 30px; height: 30px; filter: drop-shadow(0 1px 6px rgb(0 0 0 / .9)); transition: opacity .3s; }
body.playing #play .ic { opacity: .0; }
#astro:hover #play .ic, #astro:focus-visible #play .ic { opacity: 1 !important; }
#play.load .ic { animation: spin 1.1s linear infinite; }
#clock { position: fixed; z-index: 12; left: 50%; bottom: calc(var(--deckH, 190px) - 10px); transform: translate(-50%, 8px); padding: 5px 14px; border-radius: 99px; background: var(--glass); border: 1px solid var(--line); font: 500 14px var(--D); opacity: 0; transition: .2s; pointer-events: none; font-variant-numeric: tabular-nums; }
#clock.on { opacity: 1; transform: translate(-50%, 0); }
.nx { width: 100%; display: flex; justify-content: center; min-width: 0; }
#nxt { max-width: 100%; font-size: 12.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 5px 8px; border-radius: 10px; }
#nxt b { color: var(--dim); font-weight: 500; } #nxt em { color: var(--gold); font-style: normal; opacity: .85; }
#nxt:hover b { color: #fff; }
.volbox { display: none; }
input[type=range] { -webkit-appearance: none; appearance: none; background: transparent; height: 28px; width: 100%; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, rgb(var(--acc)) var(--p, 50%), rgb(255 255 255 / .18) var(--p, 50%)); border-radius: 2px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; margin-top: -7px; box-shadow: 0 0 10px rgb(var(--acc) / .8); }
input[type=range]::-moz-range-track { height: 2px; background: rgb(255 255 255 / .18); border-radius: 2px; }
input[type=range]::-moz-range-progress { height: 2px; background: rgb(var(--acc)); }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: #fff; }

/* ---------- gravitacija, leto, način ---------- */
#grav { position: fixed; z-index: 14; left: 0; top: 0; pointer-events: none; opacity: 0; transition: opacity .25s; }
#grav.on { opacity: 1; }
#grav > * { position: absolute; transform: translate(-50%, -100%); white-space: nowrap; text-shadow: 0 2px 16px #000; }
#grav b { font: 500 24px var(--D); color: #ffe6b4; }
#grav i { font-style: normal; font-size: 13px; color: var(--dim); transform: translate(-50%, 0); }
#bigyear { position: fixed; z-index: 6; left: 0; right: 0; bottom: 12%; text-align: center; pointer-events: none; opacity: 0; transition: opacity .8s; text-shadow: 0 0 40px rgb(0 0 0 / .9); }
#bigyear.on { opacity: 1; }
#bigyear b { display: block; font: 200 clamp(64px, 15vw, 150px)/1 var(--D); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
#bigyear span { font: 500 15px var(--T); color: var(--gold); }
#mode { position: fixed; z-index: 20; left: calc(12px + var(--sal)); right: calc(12px + var(--sar)); bottom: calc(14px + var(--sab)); max-width: 620px; margin: 0 auto; padding: 14px 16px; border-radius: 20px; background: var(--glass); border: 1px solid rgb(240 210 150 / .34); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; opacity: 0; transform: translateY(20px); pointer-events: none; transition: .3s; }
#mode.on { opacity: 1; transform: none; pointer-events: auto; }
#mode > div:first-child { flex: 1 1 240px; min-width: 0; }
#mode b { font: 500 14px var(--D); color: var(--gold); }
#mode p { font-size: 13.5px; color: var(--dim); margin-top: 2px; }
#mode input { width: 100%; background: rgb(255 255 255 / .07); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 16px; user-select: text; -webkit-user-select: text; }
body.moding #deck, body.moding #card { opacity: 0; pointer-events: none; visibility: hidden; }
#deck, #card, #top { transition: opacity .35s, transform .35s, visibility .35s; }
body.graving #deck, body.graving #card, body.graving #top { opacity: .12; }
body.banging #deck, body.banging #card, body.banging #top, body.kino #deck, body.kino #card, body.kino #top, body.booting #deck, body.booting #card, body.booting #top, body.birth #deck, body.birth #card, body.birth #top { opacity: 0; visibility: hidden; }
body.kino #cosmos { cursor: none; }

.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 16px; border-radius: 99px; border: 1px solid var(--line); background: rgb(255 255 255 / .05); font-weight: 500; font-size: 14px; transition: .2s; }
.btn:hover { border-color: rgb(240 210 150 / .5); background: rgb(255 255 255 / .09); }
.btn .ic { width: 18px; height: 18px; }
.btn.pri { background: rgb(var(--acc)); color: #0b0a12; border-color: transparent; font-weight: 600; }
.btn.big { min-height: 52px; padding: 12px 26px; font: 500 15px var(--D); }

/* ---------- moči (krog) ---------- */
#powers { position: fixed; inset: 0; z-index: 46; display: grid; place-items: center; background: radial-gradient(circle at 50% 52%, rgb(5 6 16 / .80), rgb(3 4 10 / .94)); opacity: 0; pointer-events: none; transition: opacity .28s; -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); }
#powers.on { opacity: 1; pointer-events: auto; }
.pw-in { --rx: min(37vw, 34vh, 250px); --ry: min(34vh, 250px); position: relative; width: calc(var(--rx) * 2); height: calc(var(--ry) * 2); margin-bottom: 40px; }
.pw-ring { position: absolute; inset: 0; }
.pw-ring::before { content: ""; position: absolute; inset: 0; border: 1px solid rgb(240 210 150 / .26); border-radius: 50%; }
.pw-ring::after { content: ""; position: absolute; inset: -9px; border: 1px dashed rgb(240 210 150 / .18); border-radius: 50%; }
.pw { position: absolute; left: 50%; top: 50%; width: 88px; margin: -30px 0 0 -44px; display: grid; justify-items: center; gap: 4px; transform: translate(calc(var(--x) * var(--rx) * .5), calc(var(--y) * var(--ry) * .5)) scale(.5); opacity: 0; transition: transform .5s cubic-bezier(.2, 1.2, .3, 1), opacity .3s; transition-delay: calc(var(--i) * 20ms); z-index: 1; }
#powers.on .pw { transform: translate(calc(var(--x) * var(--rx)), calc(var(--y) * var(--ry))); opacity: 1; }
.pw span { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #0d1022; border: 1px solid rgb(240 210 150 / .42); color: var(--gold); transition: .2s; }
.pw span .ic { width: 27px; height: 27px; }
.pw:hover span, .pw:focus-visible span, .pw.sel span { background: var(--gold); color: #0b0a12; box-shadow: 0 0 34px rgb(240 210 150 / .55); }
.pw b { font-weight: 600; font-size: 12.5px; text-shadow: 0 1px 8px #000; white-space: nowrap; }
.pw-c { position: absolute; inset: 22% 24%; display: grid; align-content: center; justify-items: center; text-align: center; gap: 8px; pointer-events: none; }
.pw-c b { font: 400 clamp(17px, 4.4vw, 26px)/1.15 var(--D); }
.pw-c p { font-size: clamp(12.5px, 3.3vw, 15px); color: var(--dim); text-wrap: balance; }
#pwX { position: absolute; left: 50%; bottom: -108px; margin-left: -21px; }

/* ---------- okna ---------- */
#scrim { position: fixed; inset: 0; z-index: 39; pointer-events: none; opacity: 0; background: rgb(2 3 8 / .4); transition: opacity .3s; }
#scrim.on { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; max-height: min(84vh, 84dvh); display: flex; flex-direction: column; background: rgb(8 10 22 / .86); border-top: 1px solid var(--line); border-radius: 26px 26px 0 0; -webkit-backdrop-filter: blur(26px) saturate(1.35); backdrop-filter: blur(26px) saturate(1.35); transform: translateY(104%); visibility: hidden; transition: transform .36s cubic-bezier(.2, .9, .25, 1), visibility 0s .36s; padding-bottom: var(--sab); }
.sheet.on { transform: none; visibility: visible; transition: transform .36s cubic-bezier(.2, .9, .25, 1); }
.sheet.tall { height: 84vh; height: 84dvh; }
.grab { width: 40px; height: 4px; border-radius: 4px; background: rgb(255 255 255 / .22); margin: 9px auto 0; flex: none; }
.sh-h { display: flex; align-items: flex-start; gap: 12px; justify-content: space-between; padding: 12px 18px 10px; flex: none; touch-action: none; }
.sh-h > div:first-child { min-width: 0; flex: 1; }
.sh-h h2 { font: 400 20px/1.2 var(--D); overflow-wrap: anywhere; }
.sh-h p { color: var(--dim); font-size: 13.5px; margin-top: 3px; }
.sh-x { display: flex; gap: 8px; }
.sh-b { overflow-y: auto; overscroll-behavior: contain; padding: 4px 18px 26px; flex: 1; min-height: 0; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: rgb(255 255 255 / .2) transparent; }
h3 { font: 500 12px var(--D); letter-spacing: .06em; color: var(--gold); margin: 22px 0 8px; display: flex; gap: 10px; align-items: baseline; }
h3 i { font: 400 12.5px var(--T); color: var(--faint); letter-spacing: 0; }
.sh-b > h3:first-child { margin-top: 6px; }
.q { display: flex; align-items: center; gap: 10px; background: rgb(255 255 255 / .06); border: 1px solid var(--line); border-radius: 99px; padding: 0 16px; min-height: 46px; flex: 1; }
.q input { background: none; border: 0; outline: 0; flex: 1; min-width: 0; font-size: 16px; padding: 11px 0; user-select: text; -webkit-user-select: text; }
.q .ic { color: var(--gold); }
.rs { display: flex; align-items: center; gap: 4px; border-radius: 14px; margin: 0 -8px; }
.rs:hover { background: rgb(255 255 255 / .045); }
.r-m { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; padding: 7px 8px; min-height: 56px; border-radius: 14px; }
.th { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; background: rgb(255 255 255 / .06); }
.th.sq { border-radius: 10px; }
.orb { width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; }
.r-t { min-width: 0; flex: 1; }
.r-t b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-t i { display: block; font-style: normal; font-size: 13px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs.now .r-t b { color: var(--gold); }
.rs.past { opacity: .5; }
.r-x { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--faint); flex: none; }
.r-x:hover { color: #fff; background: rgb(255 255 255 / .07); }
.r-x .ic { width: 20px; height: 20px; }
.r-x.lk.on { color: #ff7d8e; } .r-x.lk.on .ic { fill: currentColor; }
.stp { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 500 12px var(--D); color: var(--dim); border: 1px solid var(--line); flex: none; }
.stp.on { background: rgb(var(--acc)); color: #0b0a12; border-color: transparent; }
.empty { color: var(--dim); padding: 14px 0; }
.fine { color: var(--dim); font-size: 13.5px; margin: 6px 0; }
.fine.err { color: #ff9a9a; }
.dests { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 4px 0 6px; }
.dest { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 13px 14px; border-radius: 18px; background: rgb(255 255 255 / .045); border: 1px solid var(--line); transition: .2s; min-width: 0; }
.dest:hover { border-color: rgb(240 210 150 / .5); background: rgb(255 255 255 / .08); }
.dest .ic { grid-row: span 2; color: var(--gold); width: 25px; height: 25px; }
.dest b { font-weight: 600; font-size: 14.5px; line-height: 1.2; }
.dest i { font-style: normal; font-size: 12.5px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.consts { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.kc { display: grid; justify-items: center; gap: 3px; padding: 10px 6px 11px; border-radius: 18px; border: 1px solid var(--line); background: rgb(255 255 255 / .03); transition: .2s; }
.kc:hover { background: rgb(255 255 255 / .07); }
.kc svg { width: 62px; height: 62px; overflow: visible; }
.kc b { font: 500 11.5px var(--D); } .kc i { font-style: normal; font-size: 11.5px; color: var(--dim); text-align: center; line-height: 1.2; }
.tabs { display: flex; gap: 4px; padding: 0 14px 8px; overflow-x: auto; flex: none; scrollbar-width: none; }
.tabs button { padding: 9px 14px; border-radius: 99px; color: var(--dim); font-weight: 500; white-space: nowrap; font-size: 14px; }
.tabs button[aria-selected=true] { background: rgb(255 255 255 / .1); color: #fff; }
.acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(78px, 1fr)); gap: 6px; margin: 12px 0 4px; }
.act { display: grid; justify-items: center; gap: 6px; padding: 12px 4px 10px; border-radius: 16px; font-size: 12px; color: var(--ink); background: rgb(255 255 255 / .04); text-decoration: none; text-align: center; line-height: 1.2; transition: .2s; }
.act:hover { background: rgb(255 255 255 / .09); }
.act .ic { color: var(--gold); } .act.on .ic { color: #ff7d8e; fill: currentColor; } .act.on.st .ic { color: var(--gold); fill: none; }
.hd { display: flex; gap: 16px; align-items: center; }
.hd img { width: 104px; height: 104px; border-radius: 20px; object-fit: cover; flex: none; background: rgb(255 255 255 / .05); }
.hd > div { min-width: 0; }
.hd b { display: block; font-weight: 600; } .hd span, .hd i { display: block; font-style: normal; color: var(--dim); font-size: 13.5px; }
.rosev { width: 100%; max-width: 300px; display: block; margin: 6px auto 0; }
.rosev circle, .rosev line { fill: none; stroke: rgb(240 210 150 / .2); stroke-width: 1; } .rosev polygon { fill: rgb(var(--acc) / .26); stroke: rgb(var(--acc)); stroke-width: 1.5; } .rosev text { fill: var(--dim); font: 400 11px var(--T); }
.wiki { color: var(--dim); font-size: 14px; } .wiki img { float: right; width: 92px; height: 92px; object-fit: cover; border-radius: 18px; margin: 2px 0 8px 14px; } .wiki p { user-select: text; -webkit-user-select: text; }
.trk { display: grid; }
.tk-r { display: flex; gap: 12px; align-items: center; padding: 9px 8px; margin: 0 -8px; border-radius: 12px; min-height: 42px; }
.tk-r:hover { background: rgb(255 255 255 / .05); }
.tk-r i { font-style: normal; color: var(--faint); width: 20px; text-align: right; font-size: 13px; } .tk-r b { flex: 1; font-weight: 500; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tk-r span { color: var(--faint); font-size: 13px; }
.tk-r.now b { color: var(--gold); } .tk-r em { font-style: normal; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.strip { display: flex; gap: 12px; overflow-x: auto; margin: 0 -18px; padding: 2px 18px 8px; scrollbar-width: none; }
.alb { width: 104px; flex: none; } .alb img { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; background: rgb(255 255 255 / .06); display: block; border: 1px solid var(--line); } .alb b { display: block; font-size: 12.5px; font-weight: 500; line-height: 1.25; margin-top: 6px; max-height: 2.5em; overflow: hidden; } .alb i { font-style: normal; font-size: 12px; color: var(--faint); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 6px 0; }
.chip { padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); font-size: 13.5px; transition: .2s; }
.chip:hover { border-color: rgb(240 210 150 / .5); } .chip.on { background: rgb(var(--acc)); color: #0b0a12; border-color: transparent; font-weight: 600; }
.tg { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid rgb(255 255 255 / .06); cursor: pointer; }
.tg b { display: block; font-weight: 500; } .tg i { font-style: normal; font-size: 13px; color: var(--dim); }
.tg input[type=checkbox] { appearance: none; -webkit-appearance: none; width: 46px; height: 27px; border-radius: 99px; background: rgb(255 255 255 / .14); position: relative; flex: none; cursor: pointer; transition: .2s; }
.tg input[type=checkbox]::after { content: ""; position: absolute; left: 3px; top: 3px; width: 21px; height: 21px; border-radius: 50%; background: #fff; transition: .2s; }
.tg input[type=checkbox]:checked { background: rgb(var(--acc)); } .tg input[type=checkbox]:checked::after { transform: translateX(19px); }
.tg select { background: #14172b; border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; color: inherit; font: inherit; }
.syn { display: flex; flex-wrap: wrap; gap: 8px; } .syn input { flex: 1 1 160px; min-width: 0; background: rgb(255 255 255 / .06); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; font-size: 16px; user-select: text; -webkit-user-select: text; }
.rank { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: center; padding: 14px; border-radius: 20px; background: rgb(255 255 255 / .04); border: 1px solid var(--line); margin: 4px 0 10px; }
.rank svg { width: 74px; height: 74px; grid-row: span 3; } .rank b { font: 400 18px var(--D); color: var(--gold); } .rank span, .rank i { font-style: normal; color: var(--dim); font-size: 13.5px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; } .stats div { padding: 10px 12px; border-radius: 14px; background: rgb(255 255 255 / .035); } .stats b { display: block; font: 400 18px var(--D); } .stats i { font-style: normal; font-size: 12px; color: var(--dim); }
.help { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; } .help li { display: flex; gap: 14px; align-items: flex-start; font-size: 14.5px; color: var(--dim); } .help .ic { color: var(--gold); margin-top: 1px; } .help b { color: var(--ink); font-weight: 600; }
kbd { font: 500 12px var(--T); padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line); margin-left: 8px; }
/* kovačnica, čas */
.sl { display: grid; grid-template-columns: 78px 1fr 78px; align-items: center; gap: 10px; font-size: 13px; } .sl span { color: var(--dim); } .sl span:first-child { text-align: right; }
#forge .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -18px 4px; padding: 0 18px; scrollbar-width: none; } #forge .chip { flex: none; padding: 7px 13px; } #forge input[type=range] { height: 27px; } #forge .sh-b { padding-bottom: 14px; } #forge .go { display: flex; gap: 10px; align-items: center; margin-top: 6px; } #forge .go .btn { flex: none; }
#fBest { min-height: 48px; flex: 1; min-width: 0; } #fBest .r-m { min-height: 44px; padding: 3px 8px; } #fBest .th { width: 34px; height: 34px; }
.yr { position: relative; height: 128px; touch-action: none; margin: 2px 0 4px; cursor: ew-resize; } .yr canvas { width: 100%; height: 100%; display: block; }
.big-y { font: 200 40px/1 var(--D); text-align: center; font-variant-numeric: tabular-nums; letter-spacing: .02em; }

.full { position: fixed; inset: 0; z-index: 44; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; background: rgb(3 4 11 / .78); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.full.on { opacity: 1; visibility: visible; transition: opacity .3s; }
.lyrhead { display: flex; justify-content: space-between; gap: 14px; padding: calc(16px + var(--sat)) 20px 12px; } .lyrhead b { display: block; font: 400 18px var(--D); } .lyrhead span { color: var(--dim); }
#lyrBody { flex: 1; overflow-y: auto; padding: 18vh 22px 40vh; max-width: 860px; width: 100%; margin: 0 auto; scrollbar-width: none; mask-image: linear-gradient(transparent, #000 14%, #000 80%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 80%, transparent); }
#lyrBody p { font: 500 clamp(21px, 5vw, 34px)/1.28 var(--T); color: rgb(226 231 255 / .32); padding: 7px 0; transition: color .35s, transform .35s; transform-origin: 0 50%; text-wrap: balance; }
#lyrBody.sync p { cursor: pointer; } #lyrBody p.on { color: #fff4d6; transform: scale(1.03); } #lyrBody p.pl { color: rgb(226 231 255 / .85); font-size: 19px; font-weight: 400; } #lyrBody .gap { height: 20px; } #lyrBody .lw { color: var(--dim); } #lyrBody .lsrc { font-size: 13px; padding-top: 40px; }

#toast { position: fixed; z-index: 60; left: 50%; top: calc(66px + var(--sat)); transform: translate(-50%, -18px); max-width: min(92vw, 560px); width: max-content; padding: 11px 18px; border-radius: 18px; background: rgb(14 17 34 / .94); border: 1px solid rgb(240 210 150 / .3); box-shadow: 0 10px 40px rgb(0 0 0 / .5); opacity: 0; pointer-events: none; transition: .3s; display: flex; gap: 14px; align-items: center; font-size: 14.5px; }
#toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; } #toast button { color: var(--gold); font-weight: 600; white-space: nowrap; padding: 4px; }

/* ---------- rojstvo ---------- */
#boot { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; text-align: center; transition: opacity .9s; }
#boot.off { opacity: 0; pointer-events: none; }
.b-in { display: grid; justify-items: center; gap: 22px; padding: 24px; margin-top: 34vh; }
.b-a { font: 300 clamp(15px, 3.6vw, 20px) var(--D); letter-spacing: .04em; color: rgb(235 239 255 / .82); text-wrap: balance; animation: rise 2.2s ease-out both; }
@keyframes rise { from { opacity: 0; letter-spacing: .22em; } }
.b-m { color: var(--faint); font-size: 13.5px; min-height: 1.4em; }
.b-go { display: grid; justify-items: center; gap: 14px; animation: rise2 1s ease-out both; }
@keyframes rise2 { from { opacity: 0; transform: translateY(14px); } }
#goMain { position: relative; padding: 18px 38px; border-radius: 99px; font: 400 clamp(17px, 4.6vw, 22px) var(--D); color: #fff; background: radial-gradient(ellipse at 50% 120%, rgb(240 210 150 / .45), rgb(255 255 255 / .04) 70%); border: 1px solid rgb(240 210 150 / .6); box-shadow: 0 0 50px rgb(240 210 150 / .22), inset 0 0 24px rgb(240 210 150 / .1); transition: .3s; }
#goMain:hover { box-shadow: 0 0 80px rgb(240 210 150 / .5), inset 0 0 30px rgb(240 210 150 / .25); transform: scale(1.03); }
#goSong { color: var(--dim); font-size: 14px; max-width: 80vw; } #goAlt { color: var(--gold); font-size: 14px; padding: 8px 14px; }
.b-w { position: absolute; top: calc(26px + var(--sat)); left: 0; right: 0; font: 500 13px var(--D); letter-spacing: .5em; text-indent: .5em; color: var(--gold); opacity: .9; }
#guide { position: fixed; inset: 0; z-index: 65; display: grid; place-items: center; padding: 20px; background: rgb(3 4 10 / .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.g-c { max-width: 470px; max-height: 92vh; overflow-y: auto; padding: 26px 24px; border-radius: 28px; background: rgb(10 12 26 / .95); border: 1px solid rgb(240 210 150 / .3); } .g-c h2 { font: 300 24px/1.2 var(--D); margin-bottom: 18px; text-wrap: balance; } .g-c .btn { margin-top: 22px; width: 100%; justify-content: center; }

/* ---------- računalnik in ležeče ---------- */
@media (min-width: 900px) and (min-height: 480px) {
  #deck { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 26px; padding: 70px 30px 22px; }
  .nowb { text-align: left; justify-self: start; max-width: 460px; } h1 { font-size: 25px; } h1 button { margin: 0; }
  #astro { width: 132px; height: 132px; }
  .nx { justify-self: end; flex-direction: column; align-items: flex-end; gap: 4px; max-width: 420px; } #nxt { text-align: right; white-space: normal; line-height: 1.4; font-size: 13.5px; }
  .volbox { display: flex; align-items: center; gap: 8px; width: 150px; } .volbox button { padding: 6px; color: var(--dim); } .volbox .ic { width: 19px; height: 19px; }
  #card { left: 30px; right: auto; margin: 0; width: 400px; bottom: calc(var(--deckH, 170px) - 22px); }
  #top { padding: 18px 26px; }
  .sheet { left: auto; right: 18px; top: 18px; bottom: 18px; width: 430px; max-height: none; height: auto !important; border: 1px solid var(--line); border-radius: 26px; transform: translateX(110%); }
  .sheet .grab { display: none; } .sheet .sh-h { padding: 18px 20px 10px; }
  .sheet.low { top: auto; bottom: 18px; }
  #scrim.on { background: transparent; pointer-events: none; }
  #mode { bottom: 26px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  #deck { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; padding-top: 18px; padding-bottom: calc(6px + var(--sab)); gap: 14px; }
  .nowb { text-align: left; } h1 { font-size: 16px; } h1 button { -webkit-line-clamp: 1; margin: 0; } .by { font-size: 12.5px; }
  #astro { width: 84px; height: 84px; } .cb { width: 42px; height: 42px; } .nx { justify-content: flex-end; }
  .sheet { left: auto; width: min(430px, 62vw); top: 0; max-height: none; border-radius: 22px 0 0 22px; transform: translateX(104%); } .sheet.low { top: 0; }
  .pw-in { --rx: min(40vw, 330px); --ry: 33vh; margin: 0; } .pw span { width: 44px; height: 44px; } .pw b { font-size: 11px; } .pw { margin-top: -26px; }
  .grab { display: none; } #top { padding-top: calc(6px + var(--sat)); } .b-in { margin-top: 22vh; gap: 10px; } #pwX { left: auto; right: -70px; bottom: auto; top: 0; }
  #card { left: calc(14px + var(--sal)); right: auto; margin: 0; width: 340px; bottom: calc(var(--deckH, 110px) + 2px); }
}
@media (max-width: 640px) and (orientation: portrait) { .pw-in { --rx: min(36.5vw, 190px); --ry: min(31vh, 300px); } .pw span { width: 54px; height: 54px; } .pw { margin-top: -27px; } }
@media (max-width: 359px) { .cb { width: 42px; height: 42px; } #astro { width: 98px; height: 98px; } h1 { font-size: 19px; } .pw { width: 72px; margin-left: -36px; } .pw span { width: 50px; height: 50px; } .pw b { font-size: 11.5px; } }
@media (prefers-reduced-motion: reduce) { #cov, #dial .rete, .pw-ring::after { animation: none; } .sheet, .full, #toast, #card, #mode, #deck { transition-duration: .01s; } }
