@charset "UTF-8";
/* Inventio — гостевая главная Gitea («/» без входа) в стиле портала. 2026-11-16, v=1; 2026-11-17, v=2: окно — карточка
   портала на живом небе (вид окна, кнопка, эффекты — fx.css и login.js), цвет Gitea — зелёный.
   По тому же адресу вошедшему
   пользователю Gitea отдаёт ленту, поэтому каждое правило здесь срабатывает только на гостевой главной
   (html:has(.page-content.home)) — ленту файл не трогает.
   Кнопку «Войти» и текст карточки вставляет nginx (блок .ik-home, по умолчанию скрыт: без этого файла
   страница остаётся стоковой). Небо, шапка и подвал — те же, что в skin.css и gitea.css. */

@font-face {
    font-family: "Unbounded";
    src: url("fonts/unbounded-cyrillic-wght-normal.woff2") format("woff2-variations"), url("fonts/unbounded-cyrillic-wght-normal.woff2") format("woff2");
    font-weight: 200 900; font-style: normal; font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Unbounded";
    src: url("fonts/unbounded-latin-wght-normal.woff2") format("woff2-variations"), url("fonts/unbounded-latin-wght-normal.woff2") format("woff2");
    font-weight: 200 900; font-style: normal; font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Manrope";
    src: url("fonts/manrope-cyrillic-wght-normal.woff2") format("woff2-variations"), url("fonts/manrope-cyrillic-wght-normal.woff2") format("woff2");
    font-weight: 200 800; font-style: normal; font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Manrope";
    src: url("fonts/manrope-latin-wght-normal.woff2") format("woff2-variations"), url("fonts/manrope-latin-wght-normal.woff2") format("woff2");
    font-weight: 200 800; font-style: normal; font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@keyframes ik-appear { from { opacity: 0; } }
@keyframes ik-twinkle { from { opacity: 0.55; } to { opacity: 1; } }
@keyframes ik-city { from { opacity: 0; transform: translateY(40px); } }
@keyframes ik-meteor {
    0% { opacity: 0; translate: 0 0; }
    1% { opacity: 1; }
    6% { opacity: 0; translate: -260px 140px; }
    100% { opacity: 0; translate: -260px 140px; }
}
@keyframes ik-rise { from { opacity: 0; transform: translateY(30px) scale(0.97); filter: blur(8px); } }
@keyframes ik-up { from { opacity: 0; transform: translateY(12px); } }
@keyframes ik-scan { from { top: -20%; opacity: 1; } 85% { opacity: 1; } to { top: 110%; opacity: 0; } }
@keyframes ik-float { 50% { transform: translateY(-5px); } }
@property --ik-orbit { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes ik-orbit { to { --ik-orbit: 360deg; } }

/* ── ночное небо: как на экранах входа ── */
html:has(.page-content.home) {
    --ik-bg: #060f1c;
    --ik-ink: #04101e;
    --ik-text: #e8f0fa;
    --ik-muted: #93a8c3;
    --ik-line: rgba(120, 170, 230, 0.2);
    --ik-cyan: #3ad0f5;
    --ik-cyan-soft: #9fe6fb;
    --ik-display: "Unbounded", "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --ik-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --ik-acc: #45d483;
    color-scheme: dark;
    background: var(--ik-bg) !important;
}
html:has(.page-content.home) body {
    min-height: 100vh;
    background:
        radial-gradient(1200px 700px at 72% -10%, rgba(58, 208, 245, 0.11), transparent 60%),
        radial-gradient(900px 600px at 0% 100%, rgba(169, 139, 250, 0.1), transparent 60%),
        linear-gradient(180deg, #040b16 0%, #071528 55%, #0a1d33 100%) fixed !important;
    color: var(--ik-text) !important;
    font-family: var(--ik-body) !important;
}
html:has(.page-content.home) body::before { /* звёзды */
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: url("stars.svg") 0 0 / 1600px 1000px repeat;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 92%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 92%);
    animation: ik-twinkle 6s ease-in-out infinite alternate, ik-appear 1.6s ease-out backwards;
}
html:has(.page-content.home) body::after { /* Млечный Путь */
    content: "";
    position: fixed;
    left: -20%; right: -20%; top: 18%;
    height: 46%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 18% 40% at 22% 55%, rgba(255, 110, 160, 0.09), transparent 70%),
        radial-gradient(ellipse 16% 36% at 74% 45%, rgba(90, 200, 255, 0.08), transparent 70%),
        radial-gradient(ellipse 50% 50% at 50% 50%, rgba(170, 185, 255, 0.11), transparent 70%);
    filter: blur(6px);
    transform: rotate(-22deg);
    animation: ik-appear 2.2s ease-out 0.2s backwards;
}
html:has(.page-content.home)::after { /* силуэт города */
    content: "";
    position: fixed;
    left: 0; right: 0; bottom: 0;
    height: 120px;
    z-index: 0;
    pointer-events: none;
    background: url("skyline.svg") 0 100% / auto 120px repeat-x;
    opacity: 0.85;
    -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, #000 45%);
    mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, #000 45%);
    animation: ik-city 1.3s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s backwards;
}
html:has(.page-content.home)::before { /* падающая звезда */
    content: "";
    position: fixed;
    top: 12%; left: 62%;
    width: 140px; height: 1.5px;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(159, 230, 251, 0.9));
    border-radius: 2px;
    opacity: 0;
    transform: rotate(-28deg);
    animation: ik-meteor 14s linear 3s infinite;
}

/* ── шапка и подвал Gitea — как на экранах входа ── */
html:has(.page-content.home) .full.height { position: relative; z-index: 1; display: flex; flex-direction: column; background: transparent !important; }
html:has(.page-content.home) #navbar {
    background: rgba(7, 18, 34, 0.72) !important;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(58, 208, 245, 0.22) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    animation: ik-up 0.6s ease-out backwards;
}
html:has(.page-content.home) #navbar .item { color: var(--ik-muted) !important; }
html:has(.page-content.home) #navbar .item:hover { color: var(--ik-text) !important; background: rgba(58, 208, 245, 0.09) !important; }
html:has(.page-content.home) #navbar .ui.button,
html:has(.page-content.home) #navbar .navbar-right a.item[href$="/user/login"] {
    border: 1px solid rgba(58, 208, 245, 0.45) !important;
    border-radius: 10px !important;
    background: rgba(58, 208, 245, 0.1) !important;
    color: var(--ik-cyan-soft) !important;
}
html:has(.page-content.home) #navbar .navbar-right a.item[href$="/user/login"] { margin: 7px 0; padding: 0 14px !important; }
html:has(.page-content.home) .page-footer {
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(58, 208, 245, 0.14) !important;
    background: rgba(5, 13, 25, 0.62) !important;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #6f839e !important;
}
html:has(.page-content.home) .page-footer a { color: var(--ik-muted) !important; }

/* ── главная: карточка по центру, рекламные блоки Gitea («Easy to install» и т. п.) скрыты ── */
.page-content.home {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4vh 18px 130px;
}
.page-content.home::before {
    content: "INVENTIO · ПОРТАЛ КОМАНДЫ";
    display: block;
    margin-bottom: 18px;
    text-align: center;
    font-family: var(--ik-display);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: var(--ik-cyan);
    text-shadow: 0 0 12px rgba(58, 208, 245, 0.5);
    animation: ik-up 0.7s ease-out 0.15s backwards;
}
.page-content.home > .ui.grid { display: none !important; }

/* окно — шириной и отступами как карточка портала (вид окна — fx.css) */
.page-content.home > .tw-mb-8 {
    width: 100%;
    max-width: 560px;
    margin: 0 !important;
    padding: 36px 36px 32px !important;
}

/* логотип Gitea — небольшой, со свечением, слегка парит */
.page-content.home .center { text-align: center; }
.page-content.home img.logo {
    width: 78px;
    height: 78px;
    filter: drop-shadow(0 0 16px rgba(58, 208, 245, 0.35)) drop-shadow(0 6px 14px rgba(0, 0, 0, 0.4));
    animation: ik-up 0.8s ease-out 0.45s backwards, ik-float 5s ease-in-out 1.4s infinite;
}

/* стоковые заголовки (имя сервера и «Удобный сервис…») прячем, когда nginx вставил свой текст;
   без вставки — просто уменьшаем, чтобы влезли в карточку */
.page-content.home .hero:has(> .ik-home) > :is(h1, h2) { display: none !important; }
.page-content.home .hero h1 { margin: 18px 0 6px !important; font-family: var(--ik-display) !important; font-size: 20px !important; color: var(--ik-text) !important; overflow-wrap: anywhere; }
.page-content.home .hero h2 { margin: 0 !important; font-family: var(--ik-body) !important; font-size: 15px !important; font-weight: 500 !important; color: var(--ik-muted) !important; }

.page-content.home .ik-home {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.page-content.home .ik-home-title {
    margin: 16px 0 10px;
    font-family: var(--ik-display);
    font-size: 34px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.01em;
    color: transparent;
    background: linear-gradient(90deg, var(--accent, var(--ik-acc)) 0%, color-mix(in srgb, var(--accent, var(--ik-acc)) 45%, #fff) 40%, var(--ik-text) 80%);
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 0 18px rgba(58, 208, 245, 0.25));
    animation: ik-up 0.7s ease-out 0.55s backwards;
}
.page-content.home .ik-home-text {
    max-width: 340px;
    margin: 0;
    color: var(--ik-muted);
    font-family: var(--ik-body);
    font-size: 15px;
    line-height: 1.55;
    text-wrap: pretty;
    animation: ik-up 0.7s ease-out 0.65s backwards;
}

/* «Войти» — основная кнопка карточки портала (вид — fx.css), во всю ширину окна */
.page-content.home a.ik-home-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 26px;
    text-decoration: none !important;
    animation: ik-up 0.7s ease-out 0.75s backwards;
}
.page-content.home a.ik-home-btn svg { position: relative; z-index: 2; width: 18px; height: 18px; transition: translate 0.2s ease; }
.page-content.home a.ik-home-btn:hover svg { translate: 3px 0; }
.page-content.home a.ik-home-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

@media (max-width: 719px) {
    html:has(.page-content.home)::after { height: 80px; background-size: auto 80px; }
    .page-content.home { justify-content: flex-start; padding-top: 7vh; }
    .page-content.home > .tw-mb-8 { padding: 28px 22px 26px !important; }
    .page-content.home .ik-home-title { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
    html:has(.page-content.home) body::before, html:has(.page-content.home) body::after,
    html:has(.page-content.home)::after, html:has(.page-content.home) #navbar,
    .page-content.home::before,
    .page-content.home img.logo, .page-content.home .ik-home-title, .page-content.home .ik-home-text,
    .page-content.home a.ik-home-btn { animation: none !important; }
    html:has(.page-content.home)::before { display: none; }
}
