* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000000;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Main Website Background Image (Основной вебсайт) */
.main-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('assets/bg.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(22px) brightness(0.35);
    transform: scale(1.05);
    opacity: 0;
    transition: opacity 1.25s ease-in-out;
    z-index: 1;
}

.main-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
}

#eyeCanvas {
    position: fixed;
    top: 0;
    left: 0;
    display: block;
    width: 100vw;
    height: 100vh;
    z-index: 2;
}

body.website-active #eyeCanvas,
html.website-active #eyeCanvas {
    display: none !important;
}

.hidden {
    display: none !important;
}

/* Left-Aligned Sub-Panel under left eye */
.sub-panel {
    position: absolute;
    left: calc(50% - 265px - 155px);
    top: calc(50% + 105px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 6px;
    z-index: 10;
    transition: opacity 0.4s ease;
}

.type-text {
    font-family: 'Segoe UI', sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: #ffffff;
    text-align: left;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.9), 0 0 24px rgba(255, 255, 255, 0.7);
}

/* Center Panel (Dark Screen Error Messages) */
.center-panel {
    position: absolute;
    left: 50%;
    top: calc(50% + 60px);
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    width: 90%;
    max-width: 860px;
    z-index: 10;
}

.center-text {
    color: #ffffff;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.95), 0 0 30px rgba(255, 255, 255, 0.8);
}

.main-msg {
    font-size: 21px;
}

.sub-msg {
    font-size: 19px;
    font-weight: 600;
}

/* REAL VECTOR DIVIDER LINE WITH WHITE GLOW */
.divider-line {
    width: 100%;
    max-width: 650px;
    height: 2px;
    background-color: #ffffff;
    margin: 16px 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.95), 0 0 28px rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   MAIN WEBSITE CONTENT & CARDS (ОСНОВНОЙ САЙТ)
   ========================================================================== */

.main-website {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    opacity: 0;
    transform: translateZ(0);
    transition: opacity 1.25s ease-in-out;
    will-change: opacity;
    backface-visibility: hidden;
}

/* --------------------------------------------------------------------------
   Top-Right 3-Bar Strip Widget (Темный глубокий цвет, аватар близко к нику)
   -------------------------------------------------------------------------- */
.top-right-widget {
    position: absolute;
    top: 32px;
    right: 32px;
    display: flex;
    flex-direction: column;
    gap: 0; /* 0px расстояние между полосками */
    align-items: flex-end;
    z-index: 30;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6);
}

.bar-strip {
    width: 320px; /* Одинаковая ширина */
    height: 28px; /* Уменьшенная высота */
    border-radius: 0 !important; /* Без закругления */
    padding: 0 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.strip-nav-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.strip-sep {
    color: rgba(255, 255, 255, 0.35);
    font-size: 11px;
}

.bar-strip:last-child {
    border-bottom: none;
}

/* Полоска 1 и 3: Более темный глубокий серо-черный */
.strip-dark {
    background: rgba(12, 14, 20, 0.95);
}

/* Полоска 2: Чуть светлее темно-серой (но значительно темнее чем ранее) */
.strip-light {
    background: rgba(26, 30, 42, 0.95);
}

/* Группа автор + аватарка (аватарка близко к нику!) */
.author-group {
    display: flex;
    align-items: center;
    gap: 6px; /* Аватарка близко вплотную к нику */
}

.pfp-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.85);
}

.strip-link {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: 13px;
    font-weight: 600;
    transition: color 0.25s ease, text-shadow 0.25s ease;
}

/* При наводке берут САЛАТНЫЙ цвет (#a8ff35), НЕ синий! */
.strip-link:hover {
    color: #a8ff35 !important;
    text-shadow: 0 0 10px rgba(168, 255, 53, 0.85);
}

/* --------------------------------------------------------------------------
   Card 1: Contacts Card (Top-Left Corner, Small Rounding 8px)
   -------------------------------------------------------------------------- */
.card-contacts {
    position: absolute;
    top: 32px;
    left: 32px;
    border-radius: 8px;
    padding: 22px 30px;
    background: rgba(12, 16, 26, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(168, 255, 53, 0.15);
    min-width: 320px;
    font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
}

.card-contacts::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    padding: 2px;
    background: linear-gradient(135deg, #ffffff, #a8ff35, #00ff87, #e0ff9e, #ffffff);
    background: linear-gradient(135deg, #ffffff, #a8ff35, #00ff87, #e0ff9e, #ffffff);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.prefix {
    color: #a8ff35;
    font-weight: 800;
}

.content {
    color: #ffffff;
}

/* @ilcel Кликабельная ссылка с подчёркиванием и салатовым ховером */
.tg-link {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 700;
    transition: color 0.25s ease, text-shadow 0.25s ease;
}

.tg-link:hover {
    color: #a8ff35 !important;
    text-shadow: 0 0 12px rgba(168, 255, 53, 0.9);
}

.tag-temp {
    font-size: 14px;
    color: #888888;
    margin-right: 4px;
}

/* Social Badges Row (Desktop default: contents so children retain absolute coordinates) */
.social-badges-row {
    display: contents;
}

/* VNDB image link */
.vndb-image-link {
    position: absolute;
    top: 155px;
    left: 32px;
    width: 96px;
    height: 96px;
    overflow: hidden;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: #0a0e1e;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55), 0 0 20px rgba(0, 114, 255, 0.2);
    transition: box-shadow 0.55s ease, transform 0.35s ease;
}

.vndb-image-link:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55), 0 0 34px rgba(0, 162, 255, 0.7), 0 0 58px rgba(0, 114, 255, 0.35);
}

.vndb-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* FunPay image link */
.funpay-image-link {
    position: absolute;
    top: 155px;
    left: 140px;
    width: 96px;
    height: 96px;
    overflow: hidden;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: #171b2a;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55), 0 0 20px rgba(255, 190, 65, 0.18);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.funpay-image-link:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55), 0 0 34px rgba(255, 190, 65, 0.72), 0 0 58px rgba(255, 190, 65, 0.35);
}

.funpay-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Lolz image link */
.lolz-image-link {
    position: absolute;
    top: 155px;
    left: 248px;
    width: 96px;
    height: 96px;
    overflow: hidden;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: #101518;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55), 0 0 20px rgba(0, 186, 120, 0.22);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.lolz-image-link:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55), 0 0 34px rgba(0, 186, 120, 0.72), 0 0 58px rgba(0, 186, 120, 0.35);
}

.lolz-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* VNDB embedded page */
.live-cam {
    position: absolute;
    top: 78px;
    left: 50%;
    width: min(820px, calc(100vw - 32px));
    aspect-ratio: 16 / 9;
    transform: translateX(-50%);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 10px;
    background: #080a10;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.65), 0 0 28px rgba(168, 255, 53, 0.14);
}

.live-cam iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ==========================================================================
   SUBPAGES & CUSTOM PANELS (/vicont, /EleanorMay, /our/diahem)
   Панелька: тонкими рамками по умолчанию черным фоном и минимальным закруглением (почти квадратная)
   ========================================================================== */

html.subpage-html,
body.subpage-body {
    width: 100% !important;
    height: auto !important;
    min-height: 100% !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    background-color: #000000;
}

.subpage-container {
    position: relative !important;
    z-index: 10 !important;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: visible;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 60px 48px 80px 48px;
    box-sizing: border-box;
}

/* Фон для vicont: розовый заблюренный фон */
.vicont-bg {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background:
        radial-gradient(ellipse 65% 55% at 20% 30%, rgba(255, 30, 130, 0.58), transparent 60%),
        radial-gradient(ellipse 60% 50% at 75% 70%, rgba(255, 105, 180, 0.44), transparent 65%),
        radial-gradient(circle at 50% 45%, rgba(200, 15, 95, 0.32), transparent 70%),
        #090106;
    filter: blur(44px);
    transform: scale(1.15);
    z-index: 1;
    pointer-events: none;
}

.vicont-bg-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(12, 2, 8, 0.45);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 2;
    pointer-events: none;
}

/* Фон для EleanorMay: темный эстетичный заблюренный фон */
.eleanormay-bg {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('assets/bg.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(22px) brightness(0.35);
    transform: scale(1.05);
    z-index: 1;
    pointer-events: none;
}

.eleanormay-bg-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.55);
    z-index: 2;
    pointer-events: none;
}

/* Фон для Diahem: глубокий чистый черный фон */
.diahem-bg {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000000;
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(120, 120, 120, 0.15), transparent 70%),
        radial-gradient(circle at 50% 120%, rgba(30, 30, 30, 0.5), transparent 60%);
    z-index: 1;
    pointer-events: none;
}

/* Контейнер для панелек */
.panels-layout {
    position: relative;
    z-index: 20;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
    max-width: 900px;
}

/* Базовый стиль панельки: тонкие рамки, черный фон, чуть более закругленные углы (8px) */
.custom-panel {
    background-color: #000000;
    border-radius: 8px;
    box-sizing: border-box;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    color: #ffffff;
    user-select: none;
}

/* Кнопка возврата в главное меню */
.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #000000;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    color: #ffffff;
    font-family: 'Segoe UI', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    padding: 7px 16px;
    text-decoration: none;
    margin-bottom: 20px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
    transition: border-color 0.25s ease, color 0.25s ease;
    cursor: pointer;
    width: fit-content;
}

.btn-back-home:hover {
    border-color: #a8ff35;
    color: #a8ff35;
}

.btn-back-home svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    transition: transform 0.2s ease;
}

.btn-back-home:hover svg {
    transform: translateX(-2px);
}

/* Панелька с розовыми рамками (vicont: Other nnames) */
.panel-pink {
    border: 1px solid #ff429a;
    border-radius: 8px;
    padding: 24px 28px;
    min-width: 250px;
    box-shadow: 0 0 14px rgba(255, 66, 154, 0.25), 0 10px 24px rgba(0, 0, 0, 0.7);
}

/* Вторая панелька с белыми рамками чуть меньше прошлой (vicont: Short bio) */
.panel-white {
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 8px;
    padding: 20px 24px;
    min-width: 280px;
    max-width: 420px;
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.18), 0 10px 24px rgba(0, 0, 0, 0.7);
}

/* Панелька с салатовыми рамками (EleanorMay: Other nnames / Info) */
.panel-lime {
    border: 1px solid #a8ff35;
    border-radius: 8px;
    padding: 24px 28px;
    min-width: 250px;
    box-shadow: 0 0 14px rgba(168, 255, 53, 0.25), 0 10px 24px rgba(0, 0, 0, 0.7);
}

/* Панелька для фото EleanorMay с салатовыми рамками */
.panel-photo {
    border: 1px solid #a8ff35;
    border-radius: 8px;
    padding: 8px;
    background-color: #000000;
    box-shadow: 0 0 14px rgba(168, 255, 53, 0.25), 0 10px 24px rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 280px;
    box-sizing: border-box;
}

.eleanormay-photo {
    width: 100%;
    height: auto;
    border-radius: 5px;
    display: block;
    object-fit: cover;
    pointer-events: none;
}

.panel-pink .panel-title {
    color: #ff5da8;
    text-shadow: 0 0 10px rgba(255, 93, 168, 0.6);
}

.panel-white .panel-title {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

.panel-lime .panel-title {
    color: #a8ff35;
    text-shadow: 0 0 10px rgba(168, 255, 53, 0.6);
}

/* Элементы внутри панельки */
.panel-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.2px;
}

.panel-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.panel-line {
    font-size: 15px;
    font-weight: 600;
    color: #efefef;
    line-height: 1.45;
}

/* Чуть меньше шрифт для белой панельки (чуть меньше прошлой) */
.panel-white .panel-title {
    font-size: 16px;
    margin-bottom: 10px;
}

.panel-white .panel-line {
    font-size: 14px;
    line-height: 1.4;
}

/* Кликабельная ссылка для tg */
.panel-tg-link {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 700;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.panel-tg-link:hover {
    color: #ff429a;
    text-shadow: 0 0 10px rgba(255, 66, 154, 0.85);
}

/* Панелька для Diahem (our/diahem) */
.panel-diahem {
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    background-color: #000000;
    padding: 30px 32px;
    max-width: 820px;
    width: 100%;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.04), 0 12px 36px rgba(0, 0, 0, 0.85);
    box-sizing: border-box;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.panel-diahem:hover {
    border-color: rgba(255, 255, 255, 0.42);
    box-shadow: 0 0 28px rgba(255, 255, 255, 0.08), 0 16px 44px rgba(0, 0, 0, 0.95);
}

.diahem-logo-box {
    width: 100%;
    background: #050505;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    overflow: hidden;
}

.diahem-logo-img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    object-fit: contain;
}

.diahem-header-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.diahem-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.diahem-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.diahem-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #cfcfcf;
}

.diahem-badge-accent {
    background: rgba(168, 255, 53, 0.1);
    border-color: rgba(168, 255, 53, 0.35);
    color: #a8ff35;
}

.diahem-tagline {
    font-size: 14.5px;
    font-weight: 600;
    color: #b0b0b0;
    line-height: 1.45;
}

.diahem-meta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13.5px;
    color: #888888;
}

.diahem-contrib-link {
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.diahem-contrib-link:hover {
    color: #a8ff35;
    text-decoration: underline;
}

.diahem-desc-text {
    font-size: 14.5px;
    line-height: 1.6;
    color: #dedede;
    margin-bottom: 22px;
}

.diahem-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.diahem-section-title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 14px;
    background: #ffffff;
    border-radius: 2px;
}

.diahem-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.diahem-feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 14px 16px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.diahem-feature-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.25);
}

.diahem-card-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #f0f0f0;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.diahem-card-check {
    color: #a8ff35;
    font-weight: 700;
}

.diahem-card-desc {
    font-size: 12.5px;
    color: #aaaaaa;
    line-height: 1.45;
}

.diahem-disclaimer-box {
    background: rgba(255, 80, 80, 0.05);
    border: 1px solid rgba(255, 80, 80, 0.25);
    border-radius: 6px;
    padding: 14px 18px;
    margin-bottom: 22px;
}

.diahem-disclaimer-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #ff6b6b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.diahem-disclaimer-text {
    font-size: 12.5px;
    color: #cf9b9b;
    line-height: 1.45;
}

.diahem-actions-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.diahem-github-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.diahem-github-btn:hover {
    background: #161b22;
    border-color: #a8ff35;
    color: #a8ff35;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(168, 255, 53, 0.15);
}

.diahem-github-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ==========================================================================
   PROJECTS LIST (our/list) & BILINGUAL SHOWCASE PAGES
   ========================================================================== */

.projects-page-container {
    width: 100%;
    max-width: 980px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.projects-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 8px;
}

.projects-title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.4px;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

/* Filter Bar: All / General / EleanorMay / vicont */
.projects-filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #080808;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    padding: 4px;
}

.filter-btn {
    background: transparent;
    border: 1px solid transparent;
    color: #888888;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Segoe UI', -apple-system, sans-serif;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.filter-btn.active {
    background: #000000;
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), 0 0 10px rgba(255, 255, 255, 0.12);
}

/* Wide compact project strip in column */
.projects-list-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.project-strip-link {
    text-decoration: none;
    display: block;
    width: 100%;
}

.project-strip-item {
    display: grid;
    grid-template-columns: minmax(180px, 2.2fr) minmax(140px, 1.8fr) minmax(120px, 1.2fr) minmax(160px, 1.4fr);
    align-items: center;
    background-color: #000000;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    padding: 12px 20px;
    gap: 16px;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}

.project-strip-item:hover {
    border-color: rgba(255, 255, 255, 0.45);
    background-color: #080808;
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.8), 0 0 14px rgba(255, 255, 255, 0.08);
}

.project-strip-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-strip-type {
    font-size: 13.5px;
    font-weight: 500;
    color: #9e9e9e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-strip-date {
    font-size: 13px;
    font-family: Consolas, 'Cascadia Code', monospace, sans-serif;
    color: #6e6e6e;
    white-space: nowrap;
}

.project-strip-author {
    font-size: 13.5px;
    font-weight: 600;
    color: #cfcfcf;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.author-accent-eleanor {
    color: #a8ff35;
}

.author-accent-vicont {
    color: #ff5da8;
}

.projects-empty-state {
    display: none;
    padding: 40px 20px;
    text-align: center;
    color: #777777;
    font-size: 14px;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    background: #040404;
}

/* Bilingual Project Detail Showcase Page (/EleanorMay/projectname) */
.panel-project-detail {
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    background-color: #000000;
    padding: 28px 32px;
    max-width: 820px;
    width: 100%;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.04), 0 12px 36px rgba(0, 0, 0, 0.85);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bilingual-switcher {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
}

.lang-tab-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    color: #888888;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-tab-btn.active {
    background: rgba(255, 255, 255, 0.12);
    border-color: #ffffff;
    color: #ffffff;
}

.lang-content-box {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.lang-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lang-block.hidden {
    display: none;
}

.lang-label-tag {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 700;
    color: #a8ff35;
}

.project-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 12px 16px;
}

.project-meta-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.project-meta-key {
    font-size: 11.5px;
    color: #777777;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-meta-val {
    font-size: 13.5px;
    font-weight: 600;
    color: #dedede;
}

/* ==========================================================================
   MOBILE PHONES & SMALL SCREENS NORMALIZATION (<= 768px)
   ========================================================================== */

@media (max-width: 768px) {
    /* Global Mobile Scroll & Overflow Normalization */
    html, body {
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    /* Natural scroll enablement for main website & all subpages */
    html.website-active,
    body.website-active,
    html.subpage-html,
    body.subpage-body,
    html:has(body.website-active),
    html:has(body.subpage-body),
    body:has(.main-website:not(.hidden)),
    body:has(.subpage-container) {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        height: auto !important;
        min-height: 100% !important;
        min-height: 100vh !important;
        min-height: 100dvh !important;
    }

    /* --------------------------------------------------------------------------
       Intro Eye Animation Phase on Mobile
       -------------------------------------------------------------------------- */
    .sub-panel {
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 90% !important;
        max-width: 380px !important;
        align-items: center !important;
        text-align: center !important;
        top: calc(50% + 40px) !important;
    }

    .type-text {
        font-size: 15px !important;
        text-align: center !important;
        line-height: 1.4 !important;
    }

    .center-panel {
        top: calc(50% + 20px) !important;
        width: 92% !important;
        max-width: 380px !important;
        gap: 8px !important;
    }

    .main-msg {
        font-size: 14px !important;
        line-height: 1.4 !important;
        text-align: center !important;
    }

    .sub-msg {
        font-size: 12.5px !important;
        line-height: 1.4 !important;
        text-align: center !important;
    }

    .divider-line {
        margin: 8px auto !important;
        max-width: 240px !important;
    }

    /* --------------------------------------------------------------------------
       Main Website Mobile Layout
       -------------------------------------------------------------------------- */
    .main-website {
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        max-width: 100vw !important;
        min-height: 100vh !important;
        min-height: 100dvh !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 16px 12px 48px 12px !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
    }

    /* 1. Top Strip Navigation Widget */
    .top-right-widget {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        width: 100% !important;
        max-width: min(380px, calc(100vw - 24px)) !important;
        margin: 0 auto 16px auto !important;
        transform: none !important;
        align-items: stretch !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75) !important;
        border-radius: 6px !important;
        overflow: hidden !important;
        flex-shrink: 0 !important;
        z-index: 25 !important;
    }

    .bar-strip {
        width: 100% !important;
        height: 34px !important;
        padding: 0 12px !important;
        box-sizing: border-box !important;
    }

    .strip-link {
        font-size: 13px !important;
    }

    .pfp-thumb {
        width: 20px !important;
        height: 20px !important;
    }

    /* 2. Contacts Card */
    .card-contacts {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        max-width: min(380px, calc(100vw - 24px)) !important;
        min-width: 0 !important;
        padding: 14px 18px !important;
        margin: 0 auto 16px auto !important;
        box-sizing: border-box !important;
    }

    .contact-row {
        font-size: 14.5px !important;
    }

    /* 3. Social / Profile Badges Row */
    .social-badges-row {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 14px !important;
        width: 100% !important;
        max-width: min(380px, calc(100vw - 24px)) !important;
        margin: 0 auto 18px auto !important;
        box-sizing: border-box !important;
    }

    .vndb-image-link,
    .funpay-image-link,
    .lolz-image-link {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 76px !important;
        height: 76px !important;
        flex-shrink: 0 !important;
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.65) !important;
    }

    /* 4. YouTube Video */
    .live-cam {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: 100% !important;
        max-width: min(500px, calc(100vw - 24px)) !important;
        aspect-ratio: 16 / 9 !important;
        margin: 0 auto 16px auto !important;
        border-radius: 8px !important;
        box-sizing: border-box !important;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8), 0 0 16px rgba(168, 255, 53, 0.1) !important;
    }

    /* --------------------------------------------------------------------------
       Subpages Layout (/vicont, /EleanorMay, /our/diahem, /our/list, etc.)
       -------------------------------------------------------------------------- */
    body.subpage-body {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
    }

    body.subpage-body .top-right-widget,
    body:has(.subpage-container) .top-right-widget {
        order: 1 !important;
        position: relative !important;
        top: 0 !important;
        right: auto !important;
        width: 100% !important;
        max-width: min(380px, calc(100vw - 24px)) !important;
        margin: 14px auto 12px auto !important;
        transform: none !important;
        align-items: stretch !important;
        z-index: 25 !important;
        flex-shrink: 0 !important;
    }

    body.subpage-body .subpage-container,
    body:has(.subpage-container) .subpage-container {
        order: 2 !important;
        position: relative !important;
        z-index: 10 !important;
        width: 100% !important;
        max-width: 100vw !important;
        min-height: auto !important;
        padding: 0 12px 48px 12px !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        overflow: visible !important;
    }

    .subpage-container > div {
        width: 100% !important;
        max-width: min(640px, 100%) !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }

    .btn-back-home {
        align-self: flex-start !important;
        margin: 0 0 14px 0 !important;
        padding: 8px 16px !important;
        font-size: 13.5px !important;
        width: fit-content !important;
        display: inline-flex !important;
    }

    .panels-layout {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 14px !important;
        position: relative !important;
        z-index: 20 !important;
        box-sizing: border-box !important;
    }

    .custom-panel {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        padding: 18px 16px !important;
        box-sizing: border-box !important;
        word-break: break-word !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .panel-photo {
        max-width: min(320px, 100%) !important;
        margin: 0 auto !important;
        padding: 6px !important;
    }

    .panel-title {
        font-size: 15.5px !important;
        margin-bottom: 8px !important;
    }

    .panel-line {
        font-size: 13.5px !important;
        line-height: 1.48 !important;
    }

    /* --------------------------------------------------------------------------
       Diahem Project Page Mobile Normalization
       -------------------------------------------------------------------------- */
    .panel-diahem {
        padding: 18px 16px !important;
    }

    .diahem-logo-box {
        padding: 8px !important;
        margin-bottom: 16px !important;
    }

    .diahem-logo-img {
        max-height: 110px !important;
        object-fit: contain !important;
    }

    .diahem-title-row {
        gap: 8px !important;
    }

    .diahem-title {
        font-size: 20px !important;
    }

    .diahem-tagline {
        font-size: 13.5px !important;
    }

    .diahem-meta-row {
        font-size: 12px !important;
        gap: 8px !important;
    }

    .diahem-desc-text {
        font-size: 13.5px !important;
        line-height: 1.55 !important;
        margin-bottom: 18px !important;
    }

    .diahem-features-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        margin-bottom: 18px !important;
    }

    .diahem-feature-card {
        padding: 12px 14px !important;
    }

    .diahem-card-title {
        font-size: 13px !important;
    }

    .diahem-card-desc {
        font-size: 12px !important;
    }

    .diahem-disclaimer-box {
        padding: 12px 14px !important;
        margin-bottom: 18px !important;
    }

    .diahem-disclaimer-text {
        font-size: 12px !important;
    }

    .diahem-actions-row {
        width: 100% !important;
    }

    .diahem-github-btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 11px 16px !important;
        font-size: 13.5px !important;
        box-sizing: border-box !important;
    }

    /* --------------------------------------------------------------------------
       Projects List Directory Mobile Normalization (our/list)
       -------------------------------------------------------------------------- */
    .projects-page-container {
        width: 100% !important;
        max-width: 100% !important;
        gap: 12px !important;
    }

    .projects-header-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        margin-bottom: 4px !important;
    }

    .projects-title {
        font-size: 20px !important;
    }

    .projects-filter-bar {
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        overflow-x: auto !important;
        padding: 3px !important;
        box-sizing: border-box !important;
    }

    .filter-btn {
        padding: 7px 6px !important;
        font-size: 12px !important;
        flex: 1 !important;
        text-align: center !important;
        white-space: nowrap !important;
    }

    /* Responsive 2x2 strip layout for mobile */
    .project-strip-item {
        display: grid !important;
        grid-template-columns: 1fr auto !important;
        grid-template-rows: auto auto !important;
        row-gap: 5px !important;
        column-gap: 10px !important;
        padding: 11px 14px !important;
        border-radius: 6px !important;
        box-sizing: border-box !important;
        align-items: center !important;
    }

    .project-strip-title {
        grid-column: 1 / 2 !important;
        grid-row: 1 / 2 !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        color: #ffffff !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        min-width: 0 !important;
    }

    .project-strip-date {
        grid-column: 2 / 3 !important;
        grid-row: 1 / 2 !important;
        font-size: 11.5px !important;
        font-family: Consolas, 'Cascadia Code', monospace, sans-serif !important;
        color: #777777 !important;
        text-align: right !important;
        white-space: nowrap !important;
    }

    .project-strip-type {
        grid-column: 1 / 2 !important;
        grid-row: 2 / 3 !important;
        font-size: 12px !important;
        color: #9e9e9e !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        min-width: 0 !important;
    }

    .project-strip-author {
        grid-column: 2 / 3 !important;
        grid-row: 2 / 3 !important;
        font-size: 12px !important;
        text-align: right !important;
        white-space: nowrap !important;
    }

    /* --------------------------------------------------------------------------
       Bilingual Personal Project Showcases (/EleanorMay/*)
       -------------------------------------------------------------------------- */
    .panel-project-detail {
        padding: 18px 16px !important;
        gap: 16px !important;
    }

    .bilingual-switcher {
        width: 100% !important;
        display: flex !important;
        gap: 8px !important;
    }

    .lang-tab-btn {
        flex: 1 !important;
        text-align: center !important;
        padding: 6px 10px !important;
        font-size: 12px !important;
    }

    .project-meta-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        padding: 10px 12px !important;
    }

    .project-meta-key {
        font-size: 10.5px !important;
    }

    .project-meta-val {
        font-size: 12.5px !important;
    }
}

/* --------------------------------------------------------------------------
   EXTRA-SMALL PHONES (<= 380px, e.g. iPhone SE, compact Android)
   -------------------------------------------------------------------------- */
@media (max-width: 380px) {
    .social-badges-row {
        gap: 10px !important;
    }

    .vndb-image-link,
    .funpay-image-link,
    .lolz-image-link {
        width: 68px !important;
        height: 68px !important;
    }

    .project-meta-grid {
        grid-template-columns: 1fr !important;
    }

    .filter-btn {
        padding: 6px 4px !important;
        font-size: 11px !important;
    }

    .project-strip-title {
        font-size: 13px !important;
    }

    .project-strip-type {
        font-size: 11.5px !important;
    }

    .project-strip-author {
        font-size: 11.5px !important;
    }
}
