/* ORIONAS.LT – bendras CSS (be Tailwind/React): fonas, tipografija, animacijos, scrollbar'as ir pagrindiniai komponentai.
   Naudoja kintamuosius iš orionas-tokens.css (įkelti PIRMA).
   Klasės turi prefiksą .ox-, kad nesikirstų su esamu statistikos (.orx-) ir paslaugų CSS.

   Naudojimas:  <body class="ox"> ... </body>   (ox = tamsus kosminis fonas + šriftas)  */

/* ───────────── Pagrindas ───────────── */
html { color-scheme: dark; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.ox {
	margin: 0;
	min-height: 100vh;
	background: var(--ox-bg);
	color: var(--ox-fg);
	font-family: var(--ox-font);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
.ox *, .ox *::before, .ox *::after { box-sizing: border-box; }
.ox a { color: inherit; text-decoration: none; }
.ox ::selection { background: rgba(var(--ox-blue-rgb), .35); color: #fff; }

/* ───────────── Slinkties juosta (plona, su mėlynu-violetiniu slankikliu) ───────────── */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
	background: linear-gradient(to bottom, rgba(91,141,239,.55), rgba(140,100,230,.45));
	border: 4px solid transparent;
	background-clip: padding-box;
	border-radius: 999px;
	transition: background .2s;
}
::-webkit-scrollbar-thumb:hover {
	background: linear-gradient(to bottom, rgba(120,165,255,.9), rgba(160,120,250,.8));
	background-clip: padding-box;
	border: 3px solid transparent;
}
::-webkit-scrollbar-corner { background: transparent; }
@supports not selector(::-webkit-scrollbar) {
	html { scrollbar-width: thin; scrollbar-color: rgba(91,141,239,.55) transparent; }
}

/* ───────────── Animacijos ───────────── */
@keyframes ox-shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@keyframes ox-twinkle { 0%, 100% { opacity: .65; } 50% { opacity: 1; } }
@keyframes ox-orbit { to { transform: rotate(360deg); } }
@keyframes ox-row-flash { from { background-color: rgba(91,141,239,.28); } to { background-color: transparent; } }
@keyframes ox-join-ping { from { transform: scale(.5); opacity: .95; } to { transform: scale(2.6); opacity: 0; } }
@keyframes ox-pulse { 50% { opacity: .5; } }

/* Antraštės „shimmer“: balta su mėlynu blyksniu. Reikia: -webkit-text-fill-color/ color: transparent */
.ox-shimmer {
	background-image: linear-gradient(105deg, #ffffff 35%, var(--ox-shimmer) 48%, #ffffff 52%, #ffffff 65%);
	background-size: 250% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	animation: ox-shimmer 7s linear infinite;
}
.ox-star-pulse { animation: ox-twinkle 4.5s ease-in-out infinite; }       /* Oriono diržo žvaigždės */
.ox-orbit-spin { animation: ox-orbit 16s linear infinite; }               /* žemėlapio planetos palydovas */
.ox-row-flash { animation: ox-row-flash 3.2s ease-out 1; }                /* naujas žaidėjas sąraše */
.ox-join-ping { transform-box: fill-box; transform-origin: center; animation: ox-join-ping 1.7s ease-out 3; }
@media (prefers-reduced-motion: reduce) {
	.ox-shimmer, .ox-star-pulse, .ox-orbit-spin, .ox-row-flash, .ox-join-ping { animation: none; }
}

/* ───────────── Tipografija ───────────── */
.ox-eyebrow {                                   /* mažas antraštinis užrašas: „GERIAUSI ŽAIDĖJAI“ */
	font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ox-primary);
}
.ox-label {                                     /* etiketė virš reikšmės: „ŽEMĖLAPIS“ */
	font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ox-muted-fg);
}
.ox-muted { color: var(--ox-muted-fg); }
.ox-mono { font-family: var(--ox-font-mono); font-variant-numeric: tabular-nums; }
.ox-h1 {                                        /* puslapio antraštė (vidiniai puslapiai) */
	font-size: clamp(28px, 5vw, 44px); line-height: 1.15; font-weight: 700; letter-spacing: .06em; margin: 0;
}
.ox-hero-title {                                /* pagrindinio puslapio „ORIONAS.LT“ */
	font-size: clamp(26px, 7vw, 76px); line-height: 1; font-weight: 700; letter-spacing: .12em; margin: 0;
}
.ox-lead { font-size: 15px; line-height: 1.65; color: rgba(236,238,241,.8); }

/* ───────────── Nuorodos ir mygtukai ───────────── */
.ox-link { color: var(--ox-link); transition: color .15s; }
.ox-link:hover { color: #fff; }
.ox-link-caps {                                 /* ← ORIONAS.LT, DISCORD */
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
	color: var(--ox-link); transition: color .15s;
}
.ox-link-caps:hover { color: #fff; }

/* „JUNGTIS“: didelė nuoroda su švytinčia linija apačioje (pagrindinis veiksmas) */
.ox-cta {
	position: relative; display: inline-flex; align-items: center; gap: 14px; padding-bottom: 12px;
	font-size: 17px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: #fff;
	text-shadow: 0 0 28px rgba(91,141,239,.55);
	transition: color .2s;
}
.ox-cta:hover { color: var(--ox-primary); }
.ox-cta::after {
	content: ""; position: absolute; left: 50%; bottom: 0; width: 100%; height: 1px;
	background: linear-gradient(to right, transparent, var(--ox-primary), transparent);
	transform: translateX(-50%) scaleX(.55); transition: transform .5s;
}
.ox-cta:hover::after { transform: translateX(-50%) scaleX(1); }
.ox-cta svg { width: 22px; height: 22px; color: var(--ox-primary); transition: transform .3s; }
.ox-cta:hover svg { transform: translate(4px, -4px); }

/* Pilnas mygtukas (formoms, „Pirkti“ ir pan.) */
.ox-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 10px 20px; border-radius: var(--ox-radius-pill);
	background: var(--ox-primary); color: var(--ox-primary-fg);
	font: 700 13px/1 var(--ox-font); letter-spacing: .06em; border: 0; cursor: pointer;
	box-shadow: 0 6px 20px -8px rgba(91,141,239,.7);
	transition: transform .15s, box-shadow .15s, background .15s;
}
.ox-btn:hover { background: #7aa3ff; transform: translateY(-1px); box-shadow: 0 10px 26px -8px rgba(91,141,239,.85); }
.ox-btn-ghost {
	background: rgba(255,255,255,.04); color: var(--ox-fg); box-shadow: none; border: 1px solid var(--ox-line-3);
}
.ox-btn-ghost:hover { background: rgba(91,141,239,.12); border-color: rgba(91,141,239,.6); box-shadow: none; transform: none; }
.ox-btn-icon {                                  /* apskritas ikonų mygtukas (meniu) */
	display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%;
	border: 1px solid var(--ox-line-3); background: transparent; color: var(--ox-fg); cursor: pointer; transition: border-color .15s;
}
.ox-btn-icon:hover { border-color: rgba(91,141,239,.6); }
.ox-btn-warm { background: var(--ox-warm); color: #1a0f08; box-shadow: 0 6px 20px -8px rgba(255,165,115,.7); }
.ox-btn-warm:hover { background: #ffb98f; }

/* Kalbų/žymių „piliulės“ (LT EN PL ...) */
.ox-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.ox-pill {
	display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: var(--ox-radius-pill);
	border: 1px solid var(--ox-line-2); background: rgba(255,255,255,.04);
	font: 600 12px/1 var(--ox-font); letter-spacing: .6px; color: var(--ox-muted-fg); cursor: pointer; transition: all .15s;
}
.ox-pill:hover { border-color: rgba(91,141,239,.6); color: var(--ox-fg); }
.ox-pill[aria-pressed="true"], .ox-pill.is-active { border-color: rgba(91,141,239,.7); color: var(--ox-fg); cursor: default; }

/* Iškylantis užrašas prie žvaigždės (navigacijos pill'as) */
.ox-tip {
	display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: var(--ox-radius-pill);
	background: rgba(7,10,16,.85); border: 1px solid var(--ox-line-2); backdrop-filter: blur(12px);
	font-size: 12px; font-weight: 600; letter-spacing: .02em; box-shadow: var(--ox-shadow-glow);
}

/* ───────────── Plokštumos ───────────── */
.ox-divider { height: 1px; background: linear-gradient(to right, transparent, rgba(255,255,255,.2), transparent); border: 0; margin: 0; }
.ox-divider-soft { height: 1px; background: linear-gradient(to right, transparent, rgba(255,255,255,.15), transparent); border: 0; margin: 0; }
.ox-card {                                      /* švelnus „stiklas“ ant žvaigždėto fono */
	background: rgba(13,18,27,.72); border: 1px solid var(--ox-line-2); border-radius: var(--ox-radius-lg);
	backdrop-filter: blur(10px); box-shadow: var(--ox-shadow-card);
}
.ox-glass-header {                              /* siauro ekrano viršutinė juosta */
	position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--ox-line-2);
	background: rgba(7,10,16,.6); backdrop-filter: blur(16px);
}

/* ───────────── Sąrašai (reitingas, lentelės) ───────────── */
.ox-list { list-style: none; margin: 0; padding: 0; }
.ox-row {                                       /* # | vardas | taškai; apačioje taškų linija */
	position: relative; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px;
	padding: 10px 0; border-top: 1px solid var(--ox-line); font-size: 14px;
}
.ox-row .ox-rank { font: 12px var(--ox-font-mono); font-variant-numeric: tabular-nums; color: var(--ox-muted-fg); }
.ox-row.is-first .ox-rank, .ox-row.is-first .ox-score { color: var(--ox-warm); }
.ox-row .ox-name { font-weight: 600; color: rgba(236,238,241,.9); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .15s; }
.ox-row:hover .ox-name { color: var(--ox-primary); }
.ox-row .ox-score { font: 12px var(--ox-font-mono); color: var(--ox-muted-fg); }
.ox-row .ox-score b { margin-right: 4px; font-size: 14px; font-weight: 600; color: var(--ox-fg); }
.ox-row::before {                               /* užvedus – švelnus užpildymas */
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
	background: linear-gradient(to right, rgba(91,141,239,.15), rgba(91,141,239,.05), transparent);
}
.ox-row:hover::before { opacity: 1; }
.ox-row > * { position: relative; }
.ox-row .ox-bar {                               /* taškų linija apačioje: width inline stiliumi, pvz. style="width:62%" */
	position: absolute; left: 0; bottom: 0; height: 2px; border-radius: 999px; opacity: .55; transition: all .5s;
	background: linear-gradient(to right, var(--ox-primary), transparent);
}
.ox-row:hover .ox-bar { opacity: 1; }
.ox-skeleton { display: block; height: 10px; border-radius: 999px; background: rgba(255,255,255,.1); animation: ox-pulse 2s ease-in-out infinite; }

/* Kopijuojamas laukelis (adresas / IP) */
.ox-copy {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left;
	padding: 0 0 12px; background: none; border: 0; border-bottom: 1px solid var(--ox-line-2); color: inherit; cursor: pointer; transition: border-color .15s;
}
.ox-copy:hover { border-bottom-color: rgba(91,141,239,.7); }
.ox-copy .ox-label { display: block; }
.ox-copy.is-done .ox-label { color: var(--ox-good); }
.ox-copy .ox-value { display: block; font: 600 15px var(--ox-font-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* DUK / išskleidžiami blokai */
.ox-faq { border-top: 1px solid var(--ox-line-2); border-bottom: 1px solid var(--ox-line-2); }
.ox-faq details { padding: 16px 0; }
.ox-faq details + details { border-top: 1px solid var(--ox-line-2); }
.ox-faq summary {
	display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none;
	font-size: 14px; font-weight: 500; color: rgba(236,238,241,.9); transition: color .15s;
}
.ox-faq summary::-webkit-details-marker { display: none; }
.ox-faq summary:hover { color: #fff; }
.ox-faq summary::after {
	content: ""; flex: none; width: 8px; height: 8px; border: solid var(--ox-primary); border-width: 0 2px 2px 0;
	transform: rotate(45deg); transition: transform .3s; margin-right: 4px;
}
.ox-faq details[open] summary::after { transform: rotate(-135deg); }
.ox-faq details p { margin: 12px 0 0; font-size: 14px; line-height: 1.65; color: var(--ox-muted-fg); }

/* Žingsniai / taisyklės: švytintis taškelis vietoj skaičių */
.ox-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ox-line-2); border-bottom: 1px solid var(--ox-line-2); }
.ox-steps li { display: flex; gap: 20px; padding: 20px 0; }
.ox-steps li + li { border-top: 1px solid var(--ox-line-2); }
.ox-steps li::before {
	content: ""; flex: none; margin-top: 9px; width: 6px; height: 6px; border-radius: 50%;
	background: var(--ox-star); box-shadow: 0 0 10px 2px rgba(91,141,239,.75);
}
.ox-steps h2 { margin: 0; font-size: 16px; font-weight: 600; }
.ox-steps p { margin: 4px 0 0; font-size: 14px; line-height: 1.65; color: var(--ox-muted-fg); }
.ox-code {
	display: inline-block; margin-top: 8px; padding: 6px 12px; border-radius: 6px;
	background: rgba(255,255,255,.04); border: 1px solid var(--ox-line-2); font: 14px var(--ox-font-mono);
}

/* Būsenos taškas (online/offline) ir žvaigždės formos žymė */
.ox-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ox-good); box-shadow: 0 0 8px var(--ox-good); }
.ox-dot.is-off { background: rgba(170,190,235,.45); box-shadow: none; }
.ox-tag-new { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--ox-primary); }

/* ───────────── Fono sluoksniai ───────────── */
.ox-bg-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; display: block; }
/* Puslapis iframe viduje (hub'as): permatomas, kad matytųsi tėvinis dangus. js/orionas-space.js uždeda <html class="ox-embed">. */
html.ox-embed, html.ox-embed body { background: transparent !important; background-image: none !important; }
