:root {
    --primary-color: #c0c0c0;
    --secondary-color: #ff0a5b;
    --bg-color: #d8d8d8;
    --card-bg: #ffffff;
    --header-height: 80px;
}

body {
    margin: 0;
    padding: 0;
    font-family: Tahoma, Verdana, Arial, sans-serif;
    font-size: 14px;
    background: var(--bg-color);
    color: #1f1f1f;
    height: 100vh;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

a {
    color: var(--secondary-color);
}

a:hover {
    color: var(--primary-color);
}

/* Hlavička - spoločné štýly */
#main-header {
    position: fixed;
    width: 100%;
    z-index: 100;
    transition: all 0.25s ease;
}

.header-content {
    display: flex;
    align-items: center;
    transition: all 1.5s ease;
}

/* Loading State (Úvodná obrazovka) */
.loading-state {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: auto;
    width: min(760px, calc(100vw - 32px));
    padding: 26px 22px 22px;
    background: linear-gradient(180deg, #f7f7f7, #e9e9e9);
    border: 2px solid #a9a9a9;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 10px 28px rgba(0, 0, 0, 0.14);
}

.loading-state .header-content {
    flex-direction: column;
    text-align: center;
}

.loading-state .logo-container img {
    max-width: 200px;
    height: auto;
    border-radius: 0;
    margin-bottom: 22px;
    border: 2px solid #a9a9a9;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset, 0 2px 0 rgba(0, 0, 0, 0.12);
    animation: none;
}

.loading-state .server-name {
    font-size: clamp(2.4rem, 6vw, 4rem);
    text-transform: uppercase;
    letter-spacing: 6px;
    margin: 0;
    color: #111;
    text-shadow: none;
    animation: none;
}

.loading-state .slogan {
    font-size: 1.05rem;
    color: #333;
    letter-spacing: 0.2px;
    margin: 10px 0 0;
    font-weight: 800;
    text-transform: none;
    max-width: 620px;
    line-height: 1.5;
}

.loading-panel {
    margin-top: 16px;
    width: min(560px, 100%);
    padding: 12px;
    background: #f7f7f7;
    border: 2px solid #a9a9a9;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset, 0 2px 0 rgba(0, 0, 0, 0.08);
}

.loading-label {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #111;
}

.loading-bar {
    margin-top: 10px;
    height: 14px;
    background: #ffffff;
    border: 2px solid #8c8c8c;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
    overflow: hidden;
}

.loading-bar-fill {
    height: 100%;
    width: 42%;
    background: repeating-linear-gradient(90deg, var(--secondary-color) 0 12px, #ff7aa6 12px 24px);
    animation: loadingScan 900ms linear infinite;
}

.loading-state .main-nav {
    display: none;
    opacity: 0;
}

/* Header State (Po načítaní) */
.header-loaded {
    top: 0;
    left: 0;
    transform: none;
    background: linear-gradient(180deg, #f7f7f7, #e2e2e2);
    border-bottom: 2px solid #a9a9a9;
    padding: 10px 24px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset, 0 2px 0 rgba(0, 0, 0, 0.12);
    position: relative;
}

.header-loaded::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 10px;
    height: 100%;
    background: linear-gradient(180deg, #ff4a86, #ff0a5b);
    border-right: 1px solid rgba(0, 0, 0, 0.18);
}

.header-loaded .header-content {
    flex-direction: row;
    gap: 20px;
}

.header-loaded .logo-container img {
    max-width: 60px;
    margin-bottom: 0;
    border: 2px solid #8c8c8c;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 1px 0 rgba(0, 0, 0, 0.16);
}

.header-loaded .server-name {
    font-size: 1.8rem;
    margin: 0;
    letter-spacing: 2px;
    color: #111;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
    animation: none; /* Vypneme blikanie v headeri pre lepšiu čitateľnosť */
}

.header-loaded .slogan {
    display: none; /* V headeri slogan schováme, aby nezaberal miesto */
}

.header-loaded .loading-panel {
    display: none;
}

.header-loaded .main-nav {
    display: block;
    opacity: 1;
    animation: fadeIn 1s ease 1s forwards; /* Oneskorenie zobrazenia menu */
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

.nav-mta-link::after {
    content: '▾';
    margin-left: 10px;
    font-size: 0.85em;
    opacity: 0.85;
}

.subnav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-height);
    display: none;
    background: linear-gradient(180deg, #f7f7f7, #e2e2e2);
    border-bottom: 2px solid #a9a9a9;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset, 0 6px 18px rgba(0, 0, 0, 0.08);
    z-index: 95;
}

.subnav.is-open {
    display: block;
}

.subnav-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 8px 24px;
    display: flex;
    gap: 14px;
    align-items: center;
}

.subnav-link {
    text-decoration: none;
    color: #111;
    font-weight: 900;
    letter-spacing: 0.4px;
    padding: 6px 10px;
    border: 2px solid transparent;
}

.subnav-link:hover {
    border-color: rgba(255, 10, 91, 0.45);
    background: rgba(255, 255, 255, 0.6);
}

.factions-section {
    padding: 0 20px;
}

.factions-section h2 {
    font-size: 2.2rem;
    margin: 0 0 28px;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.factions-group {
    margin: 0 auto 22px;
    max-width: 980px;
    text-align: left;
}

.factions-group-title {
    border: 2px solid #a9a9a9;
    background: linear-gradient(180deg, #ffffff, #e9e9e9);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset, 0 2px 0 rgba(0, 0, 0, 0.08);
    border-left: 10px solid var(--secondary-color);
    padding: 10px 12px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #111;
    margin-bottom: 14px;
}

.factions-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
}

.faction-card {
    border: 2px solid #a9a9a9;
    background: linear-gradient(180deg, #ffffff, #e9e9e9);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset, 0 2px 0 rgba(0, 0, 0, 0.08);
    padding: 16px 16px 14px;
}

.faction-title {
    font-weight: 900;
    color: #111;
    letter-spacing: 0.4px;
    font-size: 1.05rem;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.faction-type {
    color: #333;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.faction-lead {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: baseline;
    color: #222;
}

.faction-label {
    font-weight: 900;
    color: #111;
}

.faction-desc {
    color: #222;
    line-height: 1.6;
}

.faction-desc-admin {
    color: #c3001f;
    font-weight: 900;
}

.shop-section {
    padding: 0 20px;
}

.shop-section h2 {
    font-size: 2.2rem;
    margin: 0 0 28px;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.shop-list {
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
}

.shop-card {
    border: 2px solid #a9a9a9;
    background: linear-gradient(180deg, #ffffff, #e9e9e9);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset, 0 2px 0 rgba(0, 0, 0, 0.08);
    padding: 16px 16px 14px;
}

.shop-title {
    font-weight: 900;
    color: #111;
    letter-spacing: 0.4px;
    font-size: 1.05rem;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.shop-price {
    color: #333;
    font-weight: 900;
    text-transform: none;
}

.shop-bullets {
    margin: 0 0 12px;
    padding-left: 18px;
    color: #222;
    line-height: 1.6;
}

.shop-bullets li {
    margin: 6px 0;
}

.shop-warning {
    color: #222;
    font-weight: 900;
    line-height: 1.6;
    margin: 0 0 12px;
}

.shop-buy {
    padding: 10px 16px;
    border-radius: 0;
    border: 2px solid #a9a9a9;
    background: linear-gradient(180deg, #ffffff, #e9e9e9);
    color: #111;
    font-weight: 900;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    cursor: pointer;
}

.shop-buy:hover {
    border-color: rgba(255, 10, 91, 0.75);
    background: linear-gradient(180deg, #ffffff, #c0c0c0);
}

.tutorials-section {
    padding: 0 20px;
}

.tutorials-section h2 {
    font-size: 2.2rem;
    margin: 0 0 28px;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.tutorials-note {
    max-width: 980px;
    margin: 0 auto;
    border: 2px solid #a9a9a9;
    background: linear-gradient(180deg, #ffffff, #e9e9e9);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset, 0 2px 0 rgba(0, 0, 0, 0.08);
    padding: 16px;
    font-weight: 900;
    color: #111;
    text-align: left;
}

.discord-hover {
    position: relative;
    font-weight: 900;
    color: #111;
    cursor: help;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
}

.discord-hover::after {
    content: '';
    display: none;
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    padding: 8px 10px;
    border: 2px solid #a9a9a9;
    background: #111;
    color: #ffffff;
    font-weight: 900;
    white-space: nowrap;
    z-index: 200;
}

.discord-hover:hover::after,
.discord-hover:focus::after {
    display: block;
    content: 'Discord: ' attr(data-discord);
}

.nav-dropdown {
    position: relative;
    display: inline-flex;
}

.nav-dropdown-toggle {
    appearance: none;
    border: 2px solid #a9a9a9;
    background: linear-gradient(180deg, #ffffff, #e9e9e9);
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 9px 16px;
    border-radius: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset, 0 2px 0 rgba(0, 0, 0, 0.08);
    cursor: pointer;
    font-family: inherit;
}

.nav-dropdown-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: rgba(192, 192, 192, 0.35);
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: -1;
    transform: none;
    transform-origin: left;
}

.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown:focus-within .nav-dropdown-toggle {
    color: #111;
    background: linear-gradient(180deg, #ffffff, #c0c0c0);
    border-color: rgba(255, 10, 91, 0.75);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset, 0 2px 0 rgba(0, 0, 0, 0.08);
    transform: translateY(0);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

.nav-dropdown:hover .nav-dropdown-toggle::before,
.nav-dropdown:focus-within .nav-dropdown-toggle::before {
    width: 100%;
}

.nav-dropdown-menu {
    list-style: none;
    margin: 10px 0 0;
    padding: 10px;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    display: none;
    flex-direction: column;
    gap: 10px;
    border: 2px solid #a9a9a9;
    background: linear-gradient(180deg, #f7f7f7, #e2e2e2);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset, 0 10px 20px rgba(0, 0, 0, 0.12);
    z-index: 120;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    display: flex;
}

.nav-dropdown-menu .nav-link {
    width: 100%;
    justify-content: flex-start;
}

.main-nav a {
    text-decoration: none;
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 9px 16px;
    background: linear-gradient(180deg, #ffffff, #e9e9e9);
    border: 2px solid #a9a9a9;
    border-radius: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset, 0 2px 0 rgba(0, 0, 0, 0.08);
}

.main-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: rgba(192, 192, 192, 0.35);
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: -1;
    transform: none;
    transform-origin: left;
}

.main-nav a:hover, .main-nav a.active {
    color: #111;
    background: linear-gradient(180deg, #ffffff, #c0c0c0);
    border-color: rgba(255, 10, 91, 0.75);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset, 0 2px 0 rgba(0, 0, 0, 0.08);
    transform: translateY(0);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

.main-nav a:hover::before, .main-nav a.active::before {
    width: 100%;
}

/* Discord Login Button & Profile */
.auth-item {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.discord-login {
    border-color: #5865F2 !important;
    color: #fff !important;
    background-color: rgba(88, 101, 242, 0.22) !important;
    box-shadow: 0 0 5px rgba(88, 101, 242, 0.4) !important;
    border-radius: 0 !important;
}

.discord-login::before {
    background-color: #5865F2 !important;
}

.discord-login:hover {
    box-shadow: 0 0 20px #5865F2 !important;
    border-color: #5865F2 !important;
}

/* User Profile Styling */
#user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0;
    border: 2px solid #a9a9a9;
    background: linear-gradient(180deg, #ffffff, #e9e9e9);
    animation: fadeInProfile 0.5s ease-out;
}

.user-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid #5865F2;
}

.user-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #000000;
}

.user-role {
    margin-top: 2px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
    padding: 3px 10px;
    border-radius: 0;
    background: rgba(192, 192, 192, 0.4);
    border: 1px solid rgba(192, 192, 192, 0.7);
}

@keyframes fadeInProfile {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* Obsah stránky */
#main-content {
    opacity: 0;
    transition: opacity 2s ease;
    padding-top: calc(var(--header-height) + 50px); /* Aby obsah nebol pod fixným headerom */
    max-width: 1600px;
    margin: 0 auto;
    text-align: center;
    visibility: hidden;
    padding-bottom: 100px;
    position: relative;
    z-index: 2;
}

.content-visible {
    opacity: 1 !important;
    visibility: visible !important;
}

.team-section {
    margin-bottom: 100px;
}

.team-subtitle {
    color: #555;
    margin: 12px auto 28px;
    max-width: 720px;
    line-height: 1.6;
}

.team-status {
    color: #555;
    margin: 0 auto 18px;
    max-width: 720px;
}

.team-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 0 10px;
    max-width: 980px;
    margin: 0 auto;
    text-align: left;
}

.team-desktop {
    gap: 22px;
}

.team-group-heading {
    padding: 10px 12px;
    border: 2px solid #a9a9a9;
    background: linear-gradient(180deg, #ffffff, #e9e9e9);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset, 0 2px 0 rgba(0, 0, 0, 0.08);
    border-left: 10px solid var(--secondary-color);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #111;
}

.team-window {
    position: relative;
    border-radius: 0;
    border: 2px solid #a9a9a9;
    background: #f7f7f7;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 2px 0 rgba(0, 0, 0, 0.08);
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px);
}

.team-list-loaded .team-window {
    animation: teamAppear 620ms cubic-bezier(0.2, 0.9, 0.25, 1) forwards;
}

.team-window-titlebar {
    width: 100%;
    border: none;
    padding: 12px 14px;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: #fff;
    background: linear-gradient(180deg, #ff4a86, #ff0a5b);
    border-bottom: 2px solid #a9a9a9;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset;
}

.team-window-titlebar:focus-visible {
    outline: 2px dotted rgba(0, 0, 0, 0.75);
    outline-offset: 3px;
}

.team-window-title {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-window-meta {
    flex: 0 0 auto;
    font-weight: 800;
    letter-spacing: 0.4px;
    opacity: 0.92;
}

.team-window-body {
    padding: 14px;
    background: linear-gradient(180deg, #f7f7f7, #e9e9e9);
}

.team-window.is-collapsed .team-window-body {
    display: none;
}

.team-icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 12px;
}

.team-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px 8px 12px;
    border-radius: 0;
    border: 2px solid #a9a9a9;
    background: #f7f7f7;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset, 0 2px 0 rgba(0, 0, 0, 0.08);
}

.team-icon:hover {
    border-color: rgba(255, 10, 91, 0.55);
}

.team-icon-avatar {
    width: 54px;
    height: 54px;
    border-radius: 0;
    border: 2px solid #8c8c8c;
    background: #ffffff;
    object-fit: cover;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.team-icon-name {
    width: 100%;
    text-align: center;
    font-weight: 800;
    font-size: 0.9rem;
    color: #222;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-window-empty {
    font-weight: 800;
    color: #555;
}

.team-role-group {
    position: relative;
    border-radius: 0;
    border: 2px solid #a9a9a9;
    background: #f7f7f7;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 2px 0 rgba(0, 0, 0, 0.08);
    backdrop-filter: none;
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px);
}

.team-list-loaded .team-role-group {
    animation: teamAppear 620ms cubic-bezier(0.2, 0.9, 0.25, 1) forwards;
}

.team-role-group::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 22px;
    background: linear-gradient(90deg, var(--secondary-color), rgba(255, 10, 91, 0.12), transparent);
    border-bottom: 1px solid rgba(0, 0, 0, 0.18);
}

.team-role-group::after {
    content: '';
    position: absolute;
    inset: -120px -120px auto auto;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle at center, rgba(192, 192, 192, 0.14), transparent 62%);
    pointer-events: none;
}

.team-role-header {
    width: 100%;
    border: none;
    background: linear-gradient(180deg, #ffffff, #e9e9e9);
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 18px 14px;
    cursor: pointer;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.18);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.team-role-header:focus-visible {
    outline: 2px solid rgba(255, 10, 91, 0.55);
    outline-offset: 3px;
    border-radius: 0;
}

.team-role-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.team-role-title {
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #1b1b1b;
    text-shadow: none;
}

.team-role-subtitle {
    color: #666;
    font-weight: 700;
    letter-spacing: 0.2px;
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-role-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.team-chevron {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 0;
    background: linear-gradient(180deg, #ffffff, #e9e9e9);
    border: 1px solid #8c8c8c;
    color: #333;
    transition: transform 260ms ease, background 260ms ease, border-color 260ms ease;
    transform: rotate(0deg);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset;
}

.team-role-group:hover .team-chevron {
    background: linear-gradient(180deg, #ffffff, #dcdcdc);
    border-color: rgba(255, 10, 91, 0.55);
}

.team-role-group.is-open .team-chevron {
    transform: rotate(180deg);
}

.team-role-body {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height 360ms ease, opacity 260ms ease, transform 260ms ease;
}

.team-role-group.is-open .team-role-body {
    max-height: 900px;
    opacity: 1;
    transform: translateY(0);
}

.team-people {
    padding: 0 18px 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.team-person {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 0;
    background: #f7f7f7;
    border: 2px solid #a9a9a9;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 2px 0 rgba(0, 0, 0, 0.08);
    transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease, background 260ms ease;
    min-width: 220px;
    max-width: 320px;
}

.team-person:hover {
    transform: translateY(-2px);
    background: #f3f3f3;
    border-color: rgba(255, 10, 91, 0.55);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.team-person-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid #8c8c8c;
    box-shadow: none;
}

.team-person-name {
    font-weight: 700;
    color: #222;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-empty {
    padding: 0 18px 18px;
    color: #666;
    font-weight: 700;
}

@keyframes teamAppear {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero {
    margin-bottom: 100px;
    padding: 28px;
    border: 2px solid #a9a9a9;
    background: linear-gradient(180deg, #f7f7f7, #e9e9e9);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset, 0 2px 0 rgba(0, 0, 0, 0.08);
    border-radius: 0;
}

.hero-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-text {
    flex: 1 1 560px;
    text-align: left;
}

.hero-text p {
    margin: 0;
}

.hero-image {
    flex: 0 1 520px;
    display: flex;
    justify-content: flex-end;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    max-height: 460px;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #111;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero p {
    font-size: 1.2rem;
    color: #444;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.home-os {
    padding-bottom: 60px;
}

.home-os {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
    column-gap: 24px;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
}

.home-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 980px;
    margin: 0 auto;
    padding: 0 10px;
    grid-column: 1;
    grid-row: 1;
}

.right-rail {
    position: static;
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
}

.vip-panel {
    border: 2px solid #8a6b00;
    background: linear-gradient(180deg, #fff6b0, #f4c542);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset, 0 10px 28px rgba(0, 0, 0, 0.16);
    max-height: calc(100vh - var(--header-height) - 50px - 24px - 240px);
    overflow: auto;
}

.vip-titlebar {
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #8a6b00;
    background: linear-gradient(180deg, #ffe88a, #f1c40f);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
    border-left: 10px solid #ff0a5b;
}

.vip-title {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #111;
}

.vip-body {
    padding: 12px;
    background: linear-gradient(180deg, #fff6b0, #f4c542);
}

.vip-group + .vip-group {
    margin-top: 12px;
}

.vip-group-title {
    padding: 8px 10px;
    border: 2px solid #8a6b00;
    background: linear-gradient(180deg, #fffdf0, #ffe88a);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset, 0 2px 0 rgba(0, 0, 0, 0.08);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #111;
}

.vip-list {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vip-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 2px solid #8a6b00;
    background: linear-gradient(180deg, #fffdf0, #ffe88a);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 2px 0 rgba(0, 0, 0, 0.08);
}

.vip-avatar {
    width: 32px;
    height: 32px;
    border-radius: 0;
    border: 2px solid #8a6b00;
    background: #ffffff;
    object-fit: cover;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset;
}

.vip-name {
    font-weight: 900;
    color: #111;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vip-empty {
    padding: 8px 10px;
    border: 2px solid #8a6b00;
    background: linear-gradient(180deg, #fffdf0, #ffe88a);
    font-weight: 800;
    color: #333;
}

.vip-status {
    margin-top: 12px;
    font-weight: 800;
    color: #333;
}

.meniny-panel {
    border: 2px solid #a9a9a9;
    background: linear-gradient(180deg, #f7f7f7, #e9e9e9);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset, 0 10px 28px rgba(0, 0, 0, 0.16);
}

.meniny-titlebar {
    padding: 10px 10px;
    border-bottom: 2px solid #a9a9a9;
    background: linear-gradient(180deg, #ffffff, #e9e9e9);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset, 0 2px 0 rgba(0, 0, 0, 0.08);
    border-left: 10px solid #ff0a5b;
}

.meniny-title {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #111;
}

.meniny-body {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.meniny-line {
    padding: 8px 10px;
    border: 2px solid #a9a9a9;
    background: linear-gradient(180deg, #ffffff, #f1f1f1);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset, 0 2px 0 rgba(0, 0, 0, 0.08);
    font-weight: 800;
    color: #111;
}

.activity-panel {
    border: 2px solid #a9a9a9;
    background: linear-gradient(180deg, #f7f7f7, #e9e9e9);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset, 0 10px 28px rgba(0, 0, 0, 0.16);
    max-height: calc(100vh - var(--header-height) - 50px - 24px);
    overflow: auto;
}

.activity-titlebar {
    padding: 10px 10px;
    border-bottom: 2px solid #a9a9a9;
    background: linear-gradient(180deg, #ffffff, #e9e9e9);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset, 0 2px 0 rgba(0, 0, 0, 0.08);
    border-left: 10px solid #ff0a5b;
}

.activity-title {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #111;
}

.activity-body {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 2px solid #a9a9a9;
    background: linear-gradient(180deg, #ffffff, #f1f1f1);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset, 0 2px 0 rgba(0, 0, 0, 0.08);
}

.activity-avatar {
    width: 32px;
    height: 32px;
    border-radius: 0;
    border: 2px solid #8c8c8c;
    background: #ffffff;
    object-fit: cover;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset;
}

.activity-name {
    font-weight: 900;
    color: #111;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.activity-empty {
    padding: 8px 10px;
    border: 2px solid #a9a9a9;
    background: linear-gradient(180deg, #ffffff, #f1f1f1);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset, 0 2px 0 rgba(0, 0, 0, 0.08);
    font-weight: 800;
    color: #333;
}

.activity-status {
    font-weight: 800;
    color: #555;
}

.mta-panel {
    position: relative;
    border-radius: 0;
    border: 2px solid #a9a9a9;
    background: #f7f7f7;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 2px 0 rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

.mta-titlebar {
    padding: 10px 10px;
    border-bottom: 2px solid #a9a9a9;
    background: linear-gradient(180deg, #ffffff, #e9e9e9);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset, 0 2px 0 rgba(0, 0, 0, 0.08);
    border-left: 10px solid #ff0a5b;
}

.mta-title {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #111;
}

.mta-body {
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mta-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.95rem;
    color: #222;
}

.mta-info strong {
    color: #111;
}

.mta-btn {
    display: block;
    text-align: center;
    padding: 10px 0;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(180deg, #ff0a5b, #cc0849);
    color: #ffffff;
    border: 2px solid #a00033;
    border-radius: 0;
    text-decoration: none;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 2px 0 rgba(0, 0, 0, 0.1);
    transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.mta-btn:hover {
    background: linear-gradient(180deg, #ff1a66, #d90a50);
    transform: translateY(-2px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 4px 8px rgba(0, 0, 0, 0.2);
}

.mta-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset;
}

@media (min-width: 900px) {
    .home-os {
        width: 100%;
        margin-left: 0;
    }

    .home-stack {
        max-width: none;
        margin: 0;
        padding: 0;
    }
}

@media (max-width: 899px) {
    .home-os {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
        column-gap: 18px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .right-rail {
        position: static;
        width: 100%;
        max-width: 320px;
        margin: 0;
        grid-column: 2;
        justify-self: end;
    }

    .vip-panel {
        max-height: none;
        box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset, 0 2px 0 rgba(0, 0, 0, 0.12);
    }

    .home-stack {
        margin: 0;
        padding: 0;
        grid-column: 1;
    }
}

.home-card {
    position: relative;
    border-radius: 0;
    border: 2px solid #a9a9a9;
    background: #f7f7f7;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 2px 0 rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.home-card-header {
    width: 100%;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #111;
    background: linear-gradient(180deg, #ffffff, #e9e9e9);
    border-bottom: 2px solid #a9a9a9;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
    border-left: 10px solid var(--secondary-color);
}

.home-card-title {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-card-body {
    padding: 16px;
    background: linear-gradient(180deg, #f7f7f7, #e9e9e9);
}

.home-card-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.home-card-split.is-reverse {
    flex-direction: row-reverse;
}

.home-card-copy {
    flex: 1 1 520px;
    text-align: left;
}

.home-headline {
    margin: 0 0 12px 0;
}

.home-lead {
    margin: 0;
    font-size: 1.05rem;
    color: #333;
    line-height: 1.7;
    max-width: 720px;
}

.home-subheadline {
    margin: 0 0 12px 0;
    font-size: 1.35rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.home-cta-row {
    margin-top: 14px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.home-card-copy p {
    margin: 0;
    color: #333;
    line-height: 1.7;
}

.home-card-media {
    flex: 0 1 520px;
    display: flex;
    justify-content: flex-end;
}

.home-card-split.is-reverse .home-card-media {
    justify-content: flex-start;
}

.home-card-media img {
    max-width: 100%;
    height: auto;
    max-height: 320px;
    border: 2px solid #a9a9a9;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 2px 0 rgba(0, 0, 0, 0.12);
}

.home-steps {
    margin: 0 0 14px;
    padding-left: 22px;
    color: #333;
    line-height: 1.7;
    font-weight: 700;
}

.home-os .youtube-cta,
.home-os .tiktok-cta {
    border-radius: 0;
    background: linear-gradient(180deg, #ffffff, #c0c0c0);
    color: #111;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset, 0 2px 0 rgba(0, 0, 0, 0.08);
}

.home-os .youtube-cta:hover {
    background: linear-gradient(180deg, #ffffff, #b5b5b5);
    box-shadow: 0 0 18px rgba(255, 0, 0, 0.35);
}

.home-os .tiktok-cta:hover {
    background: linear-gradient(180deg, #ffffff, #b5b5b5);
    box-shadow: 0 0 18px rgba(37, 244, 238, 0.35);
}

.home-section {
    margin-top: 80px;
    padding: 35px;
    border-radius: 0;
    background-color: #f7f7f7;
    border: 2px solid #a9a9a9;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 2px 0 rgba(0, 0, 0, 0.08);
    backdrop-filter: none;
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.35s ease, background-color 0.35s ease;
}

.home-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 22px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    opacity: 0.95;
    border-bottom: 1px solid rgba(0, 0, 0, 0.18);
}

.home-section::after {
    content: none;
}

.home-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14);
    border-color: rgba(255, 10, 91, 0.55);
    background-color: #f7f7f7;
}

.home-section:hover::after {
    opacity: 0;
    transform: none;
}

.home-section-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.home-section-text {
    flex: 1 1 620px;
    text-align: left;
}

.home-section-text h3 {
    margin: 0 0 14px 0;
    font-size: 2rem;
    color: var(--secondary-color);
    text-shadow: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 12px;
    border: 1px solid rgba(0, 0, 0, 0.18);
    background: linear-gradient(180deg, #ffffff, #e9e9e9);
}

.home-section-text p {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
    line-height: 1.7;
    max-width: 720px;
}

.home-section-image {
    flex: 0 1 520px;
    display: flex;
    justify-content: flex-end;
}

.home-section-image img {
    max-width: 100%;
    height: auto;
    max-height: 420px;
    transform: translateY(0) scale(1);
    border: 2px solid #a9a9a9;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 2px 0 rgba(0, 0, 0, 0.12);
    transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1), filter 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.home-section:hover .home-section-image img {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.discord-cta {
    margin-top: 18px;
    text-decoration: none;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 34px;
    border: 1px solid var(--secondary-color);
    border-radius: 0;
    background: linear-gradient(180deg, #ff4a86, #ff0a5b);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset;
}

.discord-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    background: linear-gradient(180deg, #ff6b9c, #ff0a5b);
}

.discord-cta:focus-visible,
.ticket-cta:focus-visible,
.youtube-cta:focus-visible,
.tiktok-cta:focus-visible {
    outline: 2px dotted rgba(0, 0, 0, 0.75);
    outline-offset: 3px;
}

.ticket-cta {
    margin-top: 18px;
    text-decoration: none;
    color: #111;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 34px;
    border: 1px solid #8c8c8c;
    border-radius: 0;
    background: linear-gradient(180deg, #ffffff, #c0c0c0);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset;
}

.ticket-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    background: linear-gradient(180deg, #ffffff, #b5b5b5);
}

.social-ctas {
    margin-top: 18px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.youtube-cta,
.tiktok-cta {
    text-decoration: none;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 28px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.youtube-cta {
    border: 2px solid #ff0000;
    background-color: rgba(255, 0, 0, 0.12);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.22);
}

.youtube-cta:hover {
    transform: translateY(-2px);
    background-color: rgba(255, 0, 0, 0.22);
    box-shadow: 0 0 24px rgba(255, 0, 0, 0.55);
}

.tiktok-cta {
    border: 2px solid #25F4EE;
    background-color: rgba(37, 244, 238, 0.12);
    box-shadow: 0 0 10px rgba(37, 244, 238, 0.22);
}

.tiktok-cta:hover {
    transform: translateY(-2px);
    background-color: rgba(37, 244, 238, 0.2);
    box-shadow: 0 0 24px rgba(37, 244, 238, 0.55);
}

@media (prefers-reduced-motion: reduce) {
    .home-section,
    .home-section::after,
    .home-section-image img,
    .discord-cta,
    .ticket-cta,
    .youtube-cta,
    .tiktok-cta {
        transition: none !important;
    }

    .home-section:hover {
        transform: none;
    }

    .home-section:hover .home-section-image img {
        transform: none;
    }

    .team-role-group,
    .team-chevron,
    .team-role-body,
    .team-person {
        transition: none !important;
        animation: none !important;
    }
}

@media (max-width: 900px) {
    .hero-layout {
        flex-direction: column;
        gap: 30px;
    }

    .home-stack {
        padding: 0;
    }

    .home-card-split {
        flex-direction: column;
        align-items: stretch;
    }

    .home-card-media {
        justify-content: center;
    }

    .home-card-media img {
        max-height: 320px;
    }

    .hero-text {
        text-align: center;
    }

    .hero-image {
        justify-content: center;
    }

    .hero-image img {
        max-height: 360px;
    }

    .team-list {
        padding: 0;
        gap: 14px;
    }

    .team-window-titlebar {
        padding: 12px 12px;
    }

    .team-window-body {
        padding: 12px;
    }

    .team-icon-grid {
        grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
        gap: 10px;
    }

    .team-role-header {
        padding: 16px 14px 12px;
    }

    .team-people {
        padding: 0 14px 14px;
        flex-direction: column;
    }

    .team-person {
        width: 100%;
        max-width: none;
    }

    .home-section {
        padding: 25px;
        margin-top: 50px;
    }

    .home-section-layout {
        flex-direction: column;
        gap: 22px;
    }

    .home-section-text {
        text-align: center;
    }

    .home-section-image {
        justify-content: center;
    }

    .home-section-image img {
        max-height: 320px;
    }

    .discord-cta {
        width: 100%;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .ticket-cta {
        width: 100%;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .social-ctas {
        justify-content: center;
    }

    .youtube-cta,
    .tiktok-cta {
        width: 100%;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
}

.site-footer {
    position: relative;
    z-index: 2;
    margin-top: 48px;
    border-top: 2px solid #a9a9a9;
    background: linear-gradient(180deg, #f7f7f7, #e9e9e9);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset, 0 -2px 0 rgba(0, 0, 0, 0.12);
}

.site-footer::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    border-bottom: 1px solid rgba(0, 0, 0, 0.18);
}

.site-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 22px 16px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    border: 2px solid #a9a9a9;
    background: linear-gradient(180deg, #f7f7f7, #e9e9e9);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset, 0 2px 0 rgba(0, 0, 0, 0.12);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 240px;
    padding: 10px;
    border: 2px solid #a9a9a9;
    background: linear-gradient(180deg, #ffffff, #e9e9e9);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset, 0 2px 0 rgba(0, 0, 0, 0.08);
    border-left: 10px solid var(--secondary-color);
}

.footer-logo {
    width: 44px;
    height: 44px;
    border-radius: 0;
    border: 2px solid #8c8c8c;
    background: #ffffff;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset, 0 2px 0 rgba(0, 0, 0, 0.08);
}

.footer-title {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-subtitle {
    margin-top: 3px;
    color: #555;
    font-size: 0.85rem;
}

.footer-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 200px;
    padding: 10px;
    border: 2px solid #a9a9a9;
    background: linear-gradient(180deg, #ffffff, #e9e9e9);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset, 0 2px 0 rgba(0, 0, 0, 0.08);
    border-left: 10px solid var(--secondary-color);
}

.footer-heading {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.82rem;
    color: #111;
    padding: 7px 9px;
    border: 2px solid #a9a9a9;
    background: linear-gradient(180deg, #f7f7f7, #e2e2e2);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset, 0 2px 0 rgba(0, 0, 0, 0.08);
}

.footer-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.site-footer .discord-cta,
.site-footer .ticket-cta,
.site-footer .youtube-cta,
.site-footer .tiktok-cta {
    margin-top: 0;
    padding: 8px 16px;
    border-radius: 0;
}

.site-footer-bottom {
    border-top: 2px solid #a9a9a9;
    background: linear-gradient(180deg, #f7f7f7, #e2e2e2);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset;
}

.site-footer-bottom-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 16px;
    color: #444;
    font-size: 0.85rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-credit {
    color: #222;
    font-weight: 700;
    letter-spacing: 0.3px;
}

@media (max-width: 900px) {
    .site-footer-inner {
        padding: 34px 20px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-brand {
        flex-direction: column;
        text-align: center;
    }

    .footer-ctas {
        justify-content: center;
    }

    .site-footer .discord-cta,
    .site-footer .ticket-cta,
    .site-footer .youtube-cta,
    .site-footer .tiktok-cta {
        width: 100%;
        max-width: 320px;
    }
}

/* Pravidlá Section */
.rules-section {
    padding: 0 20px;
}

.rules-section h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    display: inline-block;
}

.rules-section h2::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    bottom: -10px;
    left: 25%;
    background-color: var(--primary-color);
    box-shadow: none;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: left;
}

.interiors-section {
    padding: 0 20px;
}

.interiors-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.interiors-grid img {
    width: 100%;
    height: auto;
    display: block;
    border: 2px solid #9b9b9b;
    background: transparent;
    box-shadow: none;
}

.interiors-status {
    max-width: 1200px;
    margin: 14px auto 0;
    color: #444;
    font-weight: 800;
}

@media (max-width: 1100px) {
    .interiors-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.rule-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 4px;
    border: 1px solid #bdbdbd;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.rule-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
    border-color: rgba(255, 10, 91, 0.45);
}

.rule-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

.rule-card h3 {
    color: var(--secondary-color);
    margin-top: 0;
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 1px solid #d0d0d0;
    padding-bottom: 10px;
}

.rule-card p {
    color: #333;
    line-height: 1.6;
    margin-bottom: 15px;
}

.rule-card strong {
    color: #111;
    font-weight: bold;
}

.rule-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.rule-item {
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    background: #f7f7f7;
    overflow: hidden;
}

.rule-item > summary {
    cursor: pointer;
    padding: 10px 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: linear-gradient(180deg, #ffffff, #f1f1f1);
    border: 0;
}

.rule-item > summary::-webkit-details-marker {
    display: none;
}

.rule-item > summary::after {
    content: '▾';
    flex: 0 0 auto;
    color: #444;
    transition: transform 160ms ease;
    transform: rotate(0deg);
}

.rule-item[open] > summary::after {
    transform: rotate(180deg);
}

.rule-item > summary:focus-visible {
    outline: 2px dotted rgba(0, 0, 0, 0.75);
    outline-offset: 3px;
}

.rule-term {
    color: var(--secondary-color);
}

.rule-desc {
    padding: 10px 12px 12px;
    background: #ffffff;
    border-top: 1px solid #d0d0d0;
    color: #333;
    line-height: 1.6;
}

/* Animácie */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes glow {
    from { box-shadow: 0 0 20px rgba(0, 0, 0, 0.5), 0 0 20px var(--primary-color); }
    to { box-shadow: 0 0 30px rgba(0, 0, 0, 0.7), 0 0 60px var(--primary-color); }
}

@keyframes flicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% { text-shadow: 0 0 4px #fff, 0 0 11px #fff, 0 0 19px #fff, 0 0 40px var(--primary-color), 0 0 80px var(--primary-color); }
    20%, 24%, 55% { text-shadow: none; }
}

@keyframes fadeInSlogan {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes loadingScan {
    0% { transform: translateX(-60%); }
    100% { transform: translateX(160%); }
}

/* Pozadie pre častice */
#particles-canvas {
    display: none;
}

/* Tab Content Animation */
.tab-content {
    animation: fadeInTab 0.5s ease-in-out;
}

@keyframes fadeInTab {
    from { opacity: 0; }
    to { opacity: 1; }
}

:root {
    --primary-color: rgba(245, 247, 255, 0.92);
    --secondary-color: #ff2b95;
    --bg-color: #05050b;
    --card-bg: rgba(8, 8, 14, 0.62);
    --header-height: 84px;

    --text: rgba(249, 249, 252, 0.92);
    --muted: rgba(196, 197, 212, 0.78);
    --border: rgba(255, 255, 255, 0.10);
    --border-strong: rgba(255, 255, 255, 0.18);
    --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.55);
    --shadow-md: 0 14px 40px rgba(0, 0, 0, 0.44);
    --shadow-sm: 0 10px 26px rgba(0, 0, 0, 0.34);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;

    --fx-accent: #ff2b95;
    --fx-accent-2: #ff5bb6;
    --fx-accent-3: rgba(255, 255, 255, 0.92);
}

html {
    color-scheme: dark;
}

body {
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
    font-size: 15px;
    background: radial-gradient(1300px 820px at 8% 10%, rgba(255, 43, 149, 0.22), transparent 56%),
        radial-gradient(1100px 760px at 92% 18%, rgba(255, 91, 182, 0.14), transparent 60%),
        radial-gradient(900px 900px at 55% 100%, rgba(255, 255, 255, 0.06), transparent 62%),
        linear-gradient(180deg, #030307, #07070f 32%, #05050b 100%);
    color: var(--text);
}

::selection {
    background: rgba(255, 45, 149, 0.32);
}

a {
    color: rgba(245, 247, 255, 0.92);
}

a:hover {
    color: #ffffff;
}

#particles-canvas {
    display: block;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.46;
}

#main-header {
    z-index: 110;
}

.loading-state {
    width: min(920px, calc(100vw - 28px));
    padding: 34px 28px 26px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-xl);
    background: radial-gradient(920px 560px at 18% 10%, rgba(255, 43, 149, 0.18), transparent 62%),
        radial-gradient(920px 560px at 82% 18%, rgba(255, 91, 182, 0.12), transparent 60%),
        rgba(8, 8, 14, 0.62);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(14px);
}

.loading-state .logo-container img {
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
}

.loading-state .server-name {
    letter-spacing: 10px;
    color: rgba(255, 255, 255, 0.96);
    text-shadow: 0 18px 60px rgba(255, 43, 149, 0.22);
}

.loading-state .slogan {
    color: var(--muted);
    font-weight: 700;
}

.loading-panel {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.34);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.40);
}

.loading-bar {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
}

.loading-bar-fill {
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 43, 149, 0.12), rgba(255, 43, 149, 0.96), rgba(255, 91, 182, 0.86), rgba(255, 255, 255, 0.70));
}

.header-loaded {
    background: rgba(6, 6, 10, 0.64);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 14px 50px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(16px);
}

.header-loaded::before {
    display: none;
}

.header-loaded .logo-container img {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.header-loaded .server-name {
    color: rgba(255, 255, 255, 0.96);
    letter-spacing: 3px;
    text-shadow: none;
}

.main-nav a,
.nav-dropdown-toggle {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(245, 247, 255, 0.86);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(12px);
}

.main-nav a::before,
.nav-dropdown-toggle::before {
    background-color: rgba(255, 255, 255, 0.10);
}

.main-nav a:hover,
.main-nav a.active,
.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown:focus-within .nav-dropdown-toggle {
    background: linear-gradient(90deg, rgba(255, 43, 149, 0.26), rgba(255, 91, 182, 0.16), rgba(255, 255, 255, 0.08));
    border-color: rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.96);
    text-shadow: none;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(255, 43, 149, 0.14);
}

.discord-login {
    border-color: rgba(88, 101, 242, 0.55) !important;
    background: rgba(88, 101, 242, 0.16) !important;
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.44), 0 0 0 1px rgba(88, 101, 242, 0.18) inset !important;
}

#user-profile {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.40);
    backdrop-filter: blur(12px);
}

.user-name {
    color: rgba(255, 255, 255, 0.92);
}

.user-role {
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
}

.subnav {
    background: rgba(6, 6, 10, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(16px);
}

.subnav-link {
    border-radius: 999px;
    color: rgba(245, 247, 255, 0.86);
}

.subnav-link:hover {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
}

.subnav {
    display: block;
    opacity: 0;
    transform: translateY(-6px) scale(0.992);
    pointer-events: none;
    visibility: hidden;
    will-change: transform, opacity;
    transition: opacity 260ms ease, transform 420ms cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 420ms;
}

.subnav.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    visibility: visible;
    transition: opacity 320ms ease, transform 520ms cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0s;
}

.subnav-inner {
    position: relative;
}

.subnav-inner::after {
    content: '';
    position: absolute;
    inset: -80% -40%;
    background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.20), transparent 65%);
    transform: translateX(-72%) rotate(10deg);
    opacity: 0;
    pointer-events: none;
}

.subnav.is-open .subnav-inner::after {
    opacity: 0.14;
    animation: subnavSweep 1100ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.subnav-link {
    opacity: 0;
    transform: translateY(-6px) scale(0.995);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 14px 42px rgba(0, 0, 0, 0.42);
    will-change: transform, opacity;
    transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease, background 280ms ease;
}

.subnav.is-open .subnav-link {
    animation: subnavItemIn 640ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.subnav.is-open .subnav-link:nth-child(1) { animation-delay: 30ms; }
.subnav.is-open .subnav-link:nth-child(2) { animation-delay: 110ms; }
.subnav.is-open .subnav-link:nth-child(3) { animation-delay: 190ms; }
.subnav.is-open .subnav-link:nth-child(4) { animation-delay: 270ms; }
.subnav.is-open .subnav-link:nth-child(5) { animation-delay: 350ms; }

.subnav-link:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(255, 43, 149, 0.14) inset;
}

@keyframes subnavItemIn {
    0% { opacity: 0; transform: translateY(-8px) scale(0.995); }
    70% { opacity: 1; transform: translateY(1px) scale(1.004); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes subnavSweep {
    0% { transform: translateX(-72%) rotate(10deg); }
    100% { transform: translateX(72%) rotate(10deg); }
}

@media (prefers-reduced-motion: reduce) {
    .subnav,
    .subnav.is-open {
        transition: none !important;
        transform: none !important;
    }

    .subnav-inner::after,
    .subnav.is-open .subnav-inner::after,
    .subnav.is-open .subnav-link {
        animation: none !important;
    }

    .subnav-link {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}

#main-content {
    position: relative;
    z-index: 2;
    padding-top: calc(var(--header-height) + 36px);
}

.home-os {
    column-gap: 18px;
}

.home-card,
.team-window,
.team-role-group,
.rule-card,
.faction-card,
.shop-card,
.tutorials-note,
.meniny-panel,
.activity-panel,
.mta-panel {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(14px);
}

.home-card-header,
.team-window-titlebar,
.team-role-header,
.factions-group-title,
.vip-titlebar,
.meniny-titlebar,
.activity-titlebar,
.mta-titlebar,
.footer-heading {
    border-radius: calc(var(--radius-lg) - 6px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: linear-gradient(90deg, rgba(255, 43, 149, 0.22), rgba(255, 91, 182, 0.12), rgba(255, 255, 255, 0.07));
    color: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42);
}

.home-card-header,
.vip-titlebar,
.meniny-titlebar,
.activity-titlebar,
.mta-titlebar {
    border-left: none;
}

.home-card-title,
.vip-title,
.meniny-title,
.activity-title,
.mta-title,
.team-group-heading,
.faction-title,
.shop-title,
.team-window-title,
.team-role-title {
    color: rgba(255, 255, 255, 0.92);
}

.home-card-body,
.team-window-body,
.team-role-body,
.vip-body,
.meniny-body,
.activity-body,
.mta-body {
    background: transparent;
}

.home-card-copy p,
.team-subtitle,
.team-status,
.faction-desc,
.shop-bullets,
.shop-warning,
.rules-section p,
.rule-card p,
.tutorials-note,
.meniny-line,
.activity-status,
.vip-status,
.mta-info,
.site-footer-bottom-inner {
    color: var(--muted);
}

.home-card-copy strong,
.mta-info strong,
.rule-card strong {
    color: rgba(255, 255, 255, 0.92);
}

.home-card-media img,
.interiors-grid img {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.55);
    transform: translateZ(0);
    transition: transform 320ms ease, box-shadow 320ms ease, filter 320ms ease;
}

.home-card:hover .home-card-media img,
.interiors-grid img:hover {
    transform: translateY(-3px) scale(1.012);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.62);
    filter: saturate(1.06) contrast(1.03);
}

.interiors-grid {
    gap: 14px;
}

.team-icon,
.team-person,
.vip-item,
.activity-item,
.meniny-line {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
}

.team-icon-avatar,
.vip-avatar,
.activity-avatar,
.team-person-avatar,
.user-avatar {
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.discord-cta,
.ticket-cta,
.youtube-cta,
.tiktok-cta,
.mta-btn,
.shop-buy {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.45);
}

.discord-cta,
.mta-btn {
    background: linear-gradient(90deg, rgba(255, 43, 149, 0.96), rgba(255, 91, 182, 0.86), rgba(255, 255, 255, 0.55));
    color: rgba(255, 255, 255, 0.96);
}

.discord-cta:hover,
.mta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 62px rgba(0, 0, 0, 0.56), 0 0 0 1px rgba(255, 45, 149, 0.14) inset;
}

.ticket-cta,
.shop-buy {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92);
}

.ticket-cta:hover,
.shop-buy:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
}

.shop-price {
    color: rgba(245, 247, 255, 0.82);
}

.site-footer,
.site-footer-inner,
.footer-brand,
.footer-group,
.site-footer-bottom {
    border-color: rgba(255, 255, 255, 0.10);
    background: rgba(0, 0, 0, 0.44);
    box-shadow: none;
    backdrop-filter: blur(16px);
}

.site-footer::before {
    height: 8px;
    background: linear-gradient(90deg, rgba(255, 43, 149, 0.92), rgba(255, 91, 182, 0.78), rgba(255, 255, 255, 0.46));
}

.footer-logo {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-subtitle,
.site-footer-bottom-inner,
.footer-credit {
    color: var(--muted);
}

.rules-section h2,
.factions-section h2,
.shop-section h2,
.tutorials-section h2,
.team-section h2 {
    color: rgba(255, 255, 255, 0.92);
}

.rules-section h2::after {
    background-color: rgba(255, 255, 255, 0.16);
}

.rule-card {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.rule-card h3 {
    color: rgba(255, 255, 255, 0.92);
    border-bottom-color: rgba(255, 255, 255, 0.10);
}

.rule-item,
.rule-desc {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
}

.rule-item > summary {
    background: rgba(255, 255, 255, 0.06);
}

.rule-term {
    color: rgba(255, 255, 255, 0.92);
}

.vip-panel {
    border-color: rgba(255, 255, 255, 0.14);
    background: radial-gradient(900px 520px at 20% 10%, rgba(255, 43, 149, 0.16), transparent 62%),
        radial-gradient(900px 520px at 80% 18%, rgba(255, 91, 182, 0.10), transparent 60%),
        rgba(8, 8, 14, 0.62);
}

.vip-titlebar,
.vip-group-title {
    background: linear-gradient(90deg, rgba(255, 43, 149, 0.24), rgba(255, 91, 182, 0.14), rgba(255, 255, 255, 0.08));
}

.vip-item,
.vip-empty {
    border-color: rgba(255, 255, 255, 0.14);
}

.reveal {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    filter: blur(8px);
    transition: opacity 520ms cubic-bezier(0.2, 0.9, 0.25, 1), transform 520ms cubic-bezier(0.2, 0.9, 0.25, 1), filter 520ms ease;
    will-change: opacity, transform, filter;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.shop-card.reveal {
    transition-delay: var(--reveal-delay, 0ms);
}

.shop-card.reveal.is-visible {
    transition-delay: var(--reveal-delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
    #particles-canvas {
        display: none !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }
}

@media (max-width: 899px) {
    .home-os {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 18px;
    }

    .home-stack {
        grid-row: 1;
    }

    .right-rail {
        width: 100%;
        max-width: none;
        grid-column: 1;
        grid-row: 2;
        justify-self: stretch;
    }
}

.shop-section {
    padding: 0 24px;
}

.shop-list {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    text-align: left;
}

.shop-list .shop-card {
    grid-column: auto;
}

.shop-card {
    position: relative;
    overflow: hidden;
    padding: 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transform: translateZ(0);
    transition: transform 320ms ease, box-shadow 320ms ease, border-color 320ms ease;
}

.shop-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: radial-gradient(720px 260px at 18% 0%, rgba(255, 43, 149, 0.18), transparent 58%),
        radial-gradient(720px 260px at 82% 0%, rgba(255, 91, 182, 0.10), transparent 60%);
    opacity: 0.75;
    pointer-events: none;
}

.shop-card.reveal.is-visible::before {
    animation: shopGlowIn 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: var(--reveal-delay, 0ms);
}

@keyframes shopGlowIn {
    from { opacity: 0.0; }
    to { opacity: 0.75; }
}

.shop-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 44%, rgba(0, 0, 0, 0.16));
    opacity: 0.7;
    pointer-events: none;
}

.shop-card > * {
    position: relative;
    z-index: 1;
}

.shop-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 43, 149, 0.20);
    box-shadow: 0 30px 76px rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(255, 43, 149, 0.12);
}

.shop-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    font-size: 1.05rem;
    margin: 0;
}

.shop-price {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.86);
    font-weight: 800;
    letter-spacing: 0.2px;
    text-transform: none;
    white-space: nowrap;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.40);
}

.shop-bullets {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.7;
}

.shop-bullets li {
    margin: 8px 0;
}

.shop-warning {
    padding: 12px 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.74);
    font-weight: 700;
    line-height: 1.6;
}

.shop-buy {
    position: relative;
    overflow: hidden;
    align-self: flex-start;
    padding: 12px 18px;
    background: linear-gradient(90deg, rgba(255, 43, 149, 0.96), rgba(255, 91, 182, 0.86), rgba(255, 255, 255, 0.55));
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.96);
    letter-spacing: 1px;
    transition: transform 200ms ease, box-shadow 260ms ease, filter 260ms ease;
    box-shadow: 0 20px 62px rgba(0, 0, 0, 0.56), 0 0 0 1px rgba(255, 43, 149, 0.12) inset;
}

.shop-buy::before {
    content: '';
    position: absolute;
    inset: -40% -30%;
    background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.26), transparent 65%);
    transform: translateX(-62%) rotate(12deg);
    opacity: 0;
}

.shop-buy:hover {
    transform: translateY(-2px);
    filter: saturate(1.04);
}

.shop-buy:hover::before {
    opacity: 1;
    animation: shopSheen 900ms cubic-bezier(0.2, 0.9, 0.25, 1);
}

.shop-buy.is-clicked {
    transform: translateY(0) scale(0.985);
}

@keyframes shopSheen {
    from { transform: translateX(-62%) rotate(12deg); }
    to { transform: translateX(62%) rotate(12deg); }
}

@media (max-width: 980px) {
    .shop-list .shop-card {
        grid-column: span 12;
    }
}

@media (prefers-reduced-motion: reduce) {
    .shop-card,
    .shop-buy {
        transition: none !important;
    }

    .shop-buy:hover::before {
        animation: none !important;
    }
}

.factions-section {
    padding: 0 24px;
}

.factions-group {
    max-width: 1200px;
}

.factions-group-title {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 43, 149, 0.22), rgba(255, 91, 182, 0.12), rgba(255, 255, 255, 0.07));
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: 1.2px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.40);
    padding: 12px 16px;
}

.factions-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.factions-list .faction-card {
    grid-column: auto;
}

.faction-card {
    position: relative;
    overflow: hidden;
    padding: 18px 18px;
    display: flex;
    gap: 14px;
    align-items: center;
    transform: translateZ(0);
    transition: transform 320ms ease, box-shadow 320ms ease, border-color 320ms ease, background 320ms ease;
}

.faction-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: radial-gradient(700px 240px at 18% 0%, rgba(255, 43, 149, 0.18), transparent 58%),
        radial-gradient(700px 240px at 82% 0%, rgba(255, 91, 182, 0.10), transparent 60%);
    opacity: 0.9;
    pointer-events: none;
}

.faction-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 44%, rgba(0, 0, 0, 0.12));
    opacity: 0.65;
    pointer-events: none;
}

.faction-card > * {
    position: relative;
    z-index: 1;
}

.faction-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 43, 149, 0.20);
    box-shadow: 0 30px 76px rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(255, 43, 149, 0.12);
}

.faction-logo {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.50);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.faction-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    filter: saturate(1.05) contrast(1.02);
}

.faction-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faction-title {
    margin: 0;
    font-size: 1.05rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
}

.faction-type {
    margin: 0;
    color: var(--muted);
}

.faction-lead {
    color: var(--muted);
}

.faction-desc {
    color: var(--muted);
    line-height: 1.6;
}

.faction-desc-admin {
    color: rgba(255, 255, 255, 0.86);
    font-weight: 800;
}

.faction-label {
    color: rgba(255, 255, 255, 0.92);
}

.discord-hover {
    color: rgba(255, 255, 255, 0.92);
    text-decoration-color: rgba(255, 43, 149, 0.55);
}

.discord-hover::after {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.78);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.65);
    border-radius: 14px;
    backdrop-filter: blur(12px);
}

@media (max-width: 980px) {
    .factions-list .faction-card {
        grid-column: span 12;
    }
}

@media (max-width: 520px) {
    .faction-card {
        padding: 16px 14px;
    }

    .faction-logo {
        width: 56px;
        height: 56px;
        border-radius: 16px;
    }
}

.discord-hover::after {
    display: none !important;
}

.discord-tooltip {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9999;
    pointer-events: none;
    min-width: 180px;
    max-width: min(420px, calc(100vw - 24px));
    padding: 12px 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: radial-gradient(900px 360px at 20% 0%, rgba(255, 43, 149, 0.18), transparent 60%),
        radial-gradient(900px 360px at 80% 0%, rgba(255, 91, 182, 0.10), transparent 62%),
        rgba(0, 0, 0, 0.78);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(255, 43, 149, 0.10) inset;
    backdrop-filter: blur(16px);
    opacity: 0;
    transform: translateY(10px) scale(0.98);
    transition: opacity 180ms ease, transform 220ms cubic-bezier(0.2, 0.9, 0.25, 1);
}

.discord-tooltip[aria-hidden="true"] {
    visibility: hidden;
}

.discord-tooltip.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.discord-tooltip.is-hiding {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
}

.discord-tooltip-kicker {
    font-weight: 900;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.72);
}

.discord-tooltip-value {
    margin-top: 4px;
    font-weight: 900;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.94);
    letter-spacing: 0.2px;
    word-break: break-word;
}

@media (prefers-reduced-motion: reduce) {
    .discord-tooltip {
        transition: none !important;
        transform: none !important;
    }
}

.team-section {
    padding: 0 24px;
}

.team-section .team-list {
    max-width: 1560px;
    padding: 0;
    margin: 0 auto;
}

.team-subtitle,
.team-status {
    color: var(--muted);
}

.team-premium {
    max-width: 1560px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.team-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.team-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.team-metric {
    min-width: 120px;
    padding: 10px 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(12px);
}

.team-metric-value {
    font-weight: 950;
    font-size: 1.25rem;
    letter-spacing: 0.2px;
    color: rgba(255, 255, 255, 0.94);
}

.team-metric-label {
    margin-top: 2px;
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.70);
}

.team-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.team-filter {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    padding: 10px 12px;
    display: inline-flex;
    gap: 10px;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.44);
    transition: transform 200ms ease, background 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
    backdrop-filter: blur(12px);
    font-family: inherit;
}

.team-filter:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 43, 149, 0.22);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

.team-filter[aria-pressed="true"] {
    background: linear-gradient(90deg, rgba(255, 43, 149, 0.26), rgba(255, 91, 182, 0.14), rgba(255, 255, 255, 0.08));
    border-color: rgba(255, 255, 255, 0.20);
    box-shadow: 0 22px 68px rgba(0, 0, 0, 0.60), 0 0 0 1px rgba(255, 43, 149, 0.12) inset;
}

.team-filter-label {
    font-weight: 900;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.team-filter-count {
    padding: 5px 9px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.30);
    font-weight: 900;
    letter-spacing: 0.2px;
}

.team-sections {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.team-cat {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.team-cat.is-hidden {
    display: none;
}

.team-cat-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(90deg, rgba(255, 43, 149, 0.22), rgba(255, 91, 182, 0.12), rgba(255, 255, 255, 0.07));
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
    color: rgba(255, 255, 255, 0.92);
    align-self: flex-start;
}

.team-cat-title-text {
    font-weight: 950;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.team-cat-title-count {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.30);
    font-weight: 900;
}

.team-role-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 14px;
}

.team-role-card {
    grid-column: span 6;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(8, 8, 14, 0.62);
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.52);
    backdrop-filter: blur(16px);
    overflow: hidden;
    transform: translateZ(0);
    opacity: 0;
    transform: translateY(12px) scale(0.99);
}

.team-role-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: radial-gradient(720px 260px at 18% 0%, rgba(255, 43, 149, 0.18), transparent 58%),
        radial-gradient(720px 260px at 82% 0%, rgba(255, 91, 182, 0.10), transparent 60%);
    opacity: 0.9;
    pointer-events: none;
}

.team-role-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 44%, rgba(0, 0, 0, 0.16));
    opacity: 0.7;
    pointer-events: none;
}

.team-role-card {
    position: relative;
}

.team-role-card > * {
    position: relative;
    z-index: 1;
}

.team-premium.is-ready .team-role-card {
    animation: teamRoleIn 620ms cubic-bezier(0.2, 0.9, 0.25, 1) forwards;
    animation-delay: var(--delay, 0ms);
}

@keyframes teamRoleIn {
    from { opacity: 0; transform: translateY(12px) scale(0.99); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.team-role-card:hover {
    border-color: rgba(255, 43, 149, 0.20);
    box-shadow: 0 30px 86px rgba(0, 0, 0, 0.66), 0 0 0 1px rgba(255, 43, 149, 0.10) inset;
}

.team-role-head {
    width: 100%;
    border: none;
    background: transparent;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 16px;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

.team-role-head:focus-visible {
    outline: 2px solid rgba(255, 43, 149, 0.45);
    outline-offset: 4px;
    border-radius: 16px;
}

.team-role-head-left {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.team-role-title {
    font-weight: 950;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.94);
    line-height: 1.15;
}

.team-role-meta {
    color: rgba(255, 255, 255, 0.68);
    font-weight: 800;
    letter-spacing: 0.2px;
}

.team-role-head-right {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    flex: 0 0 auto;
}

.team-role-pill {
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.84);
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.74rem;
}

.team-role-chevron {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    display: grid;
    place-items: center;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
    transition: transform 260ms ease, background 260ms ease, border-color 260ms ease;
}

.team-role-chevron::before {
    content: '▾';
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.78);
    transform: translateY(-1px);
}

.team-role-card.is-open .team-role-chevron {
    transform: rotate(180deg);
    border-color: rgba(255, 43, 149, 0.18);
    background: rgba(255, 255, 255, 0.07);
}

.team-role-collapse {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 360ms cubic-bezier(0.2, 0.9, 0.25, 1);
}

.team-role-collapse-inner {
    overflow: hidden;
    padding: 0 16px 16px;
}

.team-role-card.is-open .team-role-collapse {
    grid-template-rows: 1fr;
}

.team-member-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.team-member {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
    transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease, background 240ms ease;
    color: rgba(255, 255, 255, 0.92);
    min-width: 0;
}

.team-member:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 43, 149, 0.18);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 22px 64px rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(255, 43, 149, 0.10) inset;
}

.team-member-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    object-fit: cover;
    flex: 0 0 auto;
}

.team-member-name {
    font-weight: 900;
    letter-spacing: 0.2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

@media (max-width: 980px) {
    .team-role-card {
        grid-column: span 12;
    }
}

@media (max-width: 560px) {
    .team-member-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .team-premium.is-ready .team-role-card {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .team-role-collapse,
    .team-filter,
    .team-member,
    .team-role-chevron {
        transition: none !important;
    }
}

.team-simple {
    width: 100%;
    max-width: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

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

.team-section-title {
    align-self: flex-start;
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(90deg, rgba(255, 43, 149, 0.22), rgba(255, 91, 182, 0.12), rgba(255, 255, 255, 0.07));
    color: rgba(255, 255, 255, 0.92);
    font-weight: 950;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-size: 0.92rem;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
}

.team-role-block {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(8, 8, 14, 0.62);
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.52);
    backdrop-filter: blur(16px);
    overflow: hidden;
    position: relative;
    transform: translateZ(0);
    transition: transform 320ms ease, box-shadow 320ms ease, border-color 320ms ease;
}

.team-role-block::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: radial-gradient(720px 220px at 18% 0%, rgba(255, 43, 149, 0.18), transparent 58%),
        radial-gradient(720px 220px at 82% 0%, rgba(255, 91, 182, 0.10), transparent 60%);
    opacity: 0.9;
    pointer-events: none;
}

.team-role-block::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 44%, rgba(0, 0, 0, 0.16));
    opacity: 0.7;
    pointer-events: none;
}

.team-role-block > * {
    position: relative;
    z-index: 1;
}

.team-role-block:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 43, 149, 0.20);
    box-shadow: 0 30px 86px rgba(0, 0, 0, 0.66), 0 0 0 1px rgba(255, 43, 149, 0.10) inset;
}

.team-role-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    background: linear-gradient(90deg, rgba(255, 43, 149, 0.20), rgba(255, 91, 182, 0.10), rgba(255, 255, 255, 0.06));
}

.team-role-block-title {
    min-width: 0;
    font-weight: 950;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.94);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-role-block-count {
    flex: 0 0 auto;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.30);
    color: rgba(255, 255, 255, 0.90);
    font-weight: 900;
    letter-spacing: 0.2px;
}

.team-profile-grid {
    padding: 14px 14px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px;
}

.team-profile {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
    transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease, background 240ms ease;
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.team-profile::before {
    content: '';
    position: absolute;
    inset: -50% -40%;
    background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.18), transparent 65%);
    transform: translateX(-62%) rotate(12deg);
    opacity: 0;
}

.team-profile:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 43, 149, 0.18);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 22px 64px rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(255, 43, 149, 0.10) inset;
}

.team-profile:hover::before {
    opacity: 1;
    animation: teamProfileSheen 900ms cubic-bezier(0.2, 0.9, 0.25, 1);
}

@keyframes teamProfileSheen {
    from { transform: translateX(-62%) rotate(12deg); }
    to { transform: translateX(62%) rotate(12deg); }
}

.team-profile:focus-visible {
    outline: 2px solid rgba(255, 43, 149, 0.45);
    outline-offset: 4px;
}

.team-profile-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    object-fit: cover;
    flex: 0 0 auto;
}

.team-profile-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.team-profile-name {
    font-weight: 950;
    letter-spacing: 0.2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-profile-role {
    color: rgba(255, 255, 255, 0.70);
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-size: 0.72rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 520px) {
    .team-profile-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .team-role-block,
    .team-profile {
        transition: none !important;
    }

    .team-profile:hover::before {
        animation: none !important;
    }
}

#main-header.loading-state {
    position: fixed;
    inset: 0;
    width: auto;
    height: 100dvh;
    display: grid;
    place-items: center;
    padding: 26px 18px;
    transform: none;
    background: transparent;
}

#main-header.loading-state::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(1200px 720px at 10% 10%, rgba(255, 43, 149, 0.18), transparent 56%),
        radial-gradient(1100px 720px at 90% 18%, rgba(255, 91, 182, 0.12), transparent 60%),
        radial-gradient(900px 900px at 55% 100%, rgba(255, 255, 255, 0.05), transparent 62%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.86), rgba(6, 6, 10, 0.92));
    z-index: 0;
}

#main-header.loading-state::after {
    content: 'HS';
    position: fixed;
    inset: auto 0 8%;
    text-align: center;
    font-weight: 1000;
    letter-spacing: 0.18em;
    font-size: clamp(92px, 16vw, 220px);
    color: rgba(255, 255, 255, 0.06);
    text-shadow: 0 60px 140px rgba(255, 43, 149, 0.14);
    transform: translateZ(0);
    z-index: 0;
    pointer-events: none;
    user-select: none;
}

#main-header.loading-state .header-content {
    width: min(980px, calc(100vw - 28px));
    padding: 38px 30px 28px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: radial-gradient(900px 520px at 18% 10%, rgba(255, 43, 149, 0.16), transparent 62%),
        radial-gradient(900px 520px at 82% 18%, rgba(255, 91, 182, 0.10), transparent 60%),
        rgba(8, 8, 14, 0.68);
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(255, 43, 149, 0.08) inset;
    backdrop-filter: blur(18px);
    position: relative;
    z-index: 2;
}

#main-header.loading-state .header-content::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 28px;
    background: conic-gradient(from 180deg, rgba(255, 43, 149, 0.0), rgba(255, 43, 149, 0.55), rgba(255, 255, 255, 0.18), rgba(255, 43, 149, 0.0));
    filter: blur(14px);
    opacity: 0.7;
    pointer-events: none;
    animation: loadingAura 3.4s linear infinite;
}

#main-header.loading-state .header-content::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 40%, rgba(0, 0, 0, 0.18));
    opacity: 0.7;
    pointer-events: none;
}

#main-header.loading-state .logo-container {
    position: relative;
}

#main-header.loading-state .logo-container::before {
    content: '';
    position: absolute;
    inset: -16px;
    border-radius: 28px;
    background: conic-gradient(from 90deg, rgba(255, 43, 149, 0.86), rgba(255, 255, 255, 0.34), rgba(255, 91, 182, 0.72), rgba(255, 43, 149, 0.86));
    filter: blur(10px);
    opacity: 0.52;
    animation: loadingSpin 2.6s linear infinite;
    pointer-events: none;
}

#main-header.loading-state .logo-container::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.62);
    pointer-events: none;
}

#main-header.loading-state .logo-container img {
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 30px 86px rgba(0, 0, 0, 0.66);
    transform: translateZ(0);
    animation: loadingFloat 2.8s ease-in-out infinite;
}

#main-header.loading-state .server-name {
    position: relative;
    letter-spacing: 0.22em;
    text-shadow: 0 22px 80px rgba(255, 43, 149, 0.24);
    animation: loadingTitleEnter 720ms cubic-bezier(0.2, 0.9, 0.25, 1) both;
}

#main-header.loading-state .server-name::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    color: rgba(255, 255, 255, 0.92);
    pointer-events: none;
    opacity: 0;
    filter: blur(0);
    background: linear-gradient(90deg, transparent 0%, rgba(255, 43, 149, 0.0) 30%, rgba(255, 43, 149, 0.65) 50%, rgba(255, 255, 255, 0.55) 62%, transparent 80%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: translateX(-22%) skewX(-12deg);
}

#main-header.loading-state.loading-title-burst .server-name {
    animation: loadingTitleBurst 720ms cubic-bezier(0.2, 0.9, 0.25, 1) both;
}

#main-header.loading-state.loading-title-burst .server-name::after {
    opacity: 1;
    animation: loadingTitleSweep 720ms cubic-bezier(0.2, 0.9, 0.25, 1) both;
}

#main-header.loading-state .slogan {
    color: rgba(255, 255, 255, 0.76);
    font-weight: 750;
}

#main-header.loading-state .loading-panel {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.34);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.62);
    overflow: hidden;
    padding: 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#main-header.loading-state .loading-toprow {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

#main-header.loading-state .loading-label {
    color: rgba(255, 255, 255, 0.82);
    letter-spacing: 0.12em;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.78rem;
}

#main-header.loading-state .loading-percent {
    flex: 0 0 auto;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.92);
    font-weight: 950;
    letter-spacing: 0.3px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.40);
}

#main-header.loading-state .loading-bar {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    height: 12px;
}

#main-header.loading-state .loading-bar-fill {
    width: var(--loading-progress, 42%);
    transition: width 540ms cubic-bezier(0.2, 0.9, 0.25, 1);
    border-radius: 999px;
    animation: none;
    background: linear-gradient(90deg, rgba(255, 43, 149, 0.96), rgba(255, 91, 182, 0.86), rgba(255, 255, 255, 0.55));
    position: relative;
    overflow: hidden;
}

#main-header.loading-state .loading-bar-fill::after {
    content: '';
    position: absolute;
    inset: -60% -40%;
    background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.26), transparent 65%);
    transform: translateX(-62%) rotate(12deg);
    opacity: 0.9;
    animation: loadingSheen 1.4s cubic-bezier(0.2, 0.9, 0.25, 1) infinite;
}

#main-header.loading-state .loading-steps {
    margin-top: 2px;
    display: grid;
    gap: 8px;
}

#main-header.loading-state .loading-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
    transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

#main-header.loading-state .loading-step.is-active {
    border-color: rgba(255, 43, 149, 0.22);
    background: rgba(255, 255, 255, 0.07);
}

#main-header.loading-state .loading-step.is-done {
    border-color: rgba(255, 255, 255, 0.16);
}

#main-header.loading-state .loading-step-indicator {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.30);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.44);
    flex: 0 0 auto;
    position: relative;
}

#main-header.loading-state .loading-step.is-active .loading-step-indicator {
    background: rgba(255, 43, 149, 0.38);
    border-color: rgba(255, 43, 149, 0.40);
    box-shadow: 0 0 0 6px rgba(255, 43, 149, 0.10), 0 18px 44px rgba(0, 0, 0, 0.55);
    animation: loadingPulse 1.2s ease-in-out infinite;
}

#main-header.loading-state .loading-step.is-done .loading-step-indicator {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.30);
    animation: none;
}

#main-header.loading-state .loading-step.is-done .loading-step-indicator::after {
    content: '✓';
    position: absolute;
    inset: -1px 0 0 0;
    display: grid;
    place-items: center;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.92);
}

#main-header.loading-state .loading-step-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

#main-header.loading-state .loading-step-name {
    font-weight: 950;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.86rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#main-header.loading-state .loading-step-meta {
    color: rgba(255, 255, 255, 0.66);
    font-weight: 800;
    letter-spacing: 0.2px;
    font-size: 0.82rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@keyframes loadingPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

body.is-loading #particles-canvas {
    opacity: 0.78;
}

#main-header.loading-state.loading-exit::before {
    opacity: 0;
    transition: opacity 520ms ease;
}

#main-header.loading-state.loading-exit .header-content {
    animation: loadingExit 520ms cubic-bezier(0.2, 0.9, 0.25, 1) forwards;
}

@keyframes loadingFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes loadingSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes loadingAura {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes loadingSheen {
    from { transform: translateX(-62%) rotate(12deg); }
    to { transform: translateX(62%) rotate(12deg); }
}

@keyframes loadingTitleEnter {
    from { opacity: 0; transform: translateY(12px) scale(0.98); filter: blur(10px); letter-spacing: 0.32em; }
    to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); letter-spacing: 0.22em; }
}

@keyframes loadingTitleBurst {
    0% { transform: translateY(0) scale(1); filter: blur(0); text-shadow: 0 22px 80px rgba(255, 43, 149, 0.24); }
    35% { transform: translateY(-2px) scale(1.06); filter: blur(0); text-shadow: 0 28px 110px rgba(255, 43, 149, 0.34), 0 0 18px rgba(255, 255, 255, 0.14); }
    100% { transform: translateY(0) scale(1); filter: blur(0); text-shadow: 0 22px 80px rgba(255, 43, 149, 0.22); }
}

@keyframes loadingTitleSweep {
    0% { opacity: 0; transform: translateX(-28%) skewX(-14deg); filter: blur(2px); }
    20% { opacity: 0.95; }
    100% { opacity: 0; transform: translateX(28%) skewX(-14deg); filter: blur(10px); }
}

@keyframes loadingExit {
    from { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
    to { opacity: 0; transform: translateY(10px) scale(0.98); filter: blur(10px); }
}

@media (prefers-reduced-motion: reduce) {
    #main-header.loading-state .header-content::before,
    #main-header.loading-state .logo-container::before,
    #main-header.loading-state .logo-container img,
    #main-header.loading-state .loading-bar-fill::after,
    #main-header.loading-state .server-name,
    #main-header.loading-state.loading-title-burst .server-name,
    #main-header.loading-state.loading-title-burst .server-name::after,
    #main-header.loading-state .loading-step.is-active .loading-step-indicator {
        animation: none !important;
    }

    #main-header.loading-state .loading-bar-fill {
        transition: none !important;
    }
}

#vip-panel.vip-panel {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: radial-gradient(900px 520px at 18% 10%, rgba(255, 43, 149, 0.14), transparent 62%),
        radial-gradient(900px 520px at 82% 18%, rgba(255, 91, 182, 0.08), transparent 60%),
        rgba(8, 8, 14, 0.62);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(16px);
    overflow: hidden;
}

#vip-panel .vip-titlebar {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    background: linear-gradient(90deg, rgba(255, 43, 149, 0.24), rgba(255, 91, 182, 0.12), rgba(255, 255, 255, 0.06));
    box-shadow: 0 16px 46px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}

#vip-panel .vip-titlebar::after {
    content: '';
    position: absolute;
    inset: -60% -40%;
    background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.18), transparent 65%);
    transform: translateX(-62%) rotate(12deg);
    opacity: 0.32;
    animation: vipSheen 3.2s cubic-bezier(0.2, 0.9, 0.25, 1) infinite;
    pointer-events: none;
}

#vip-panel .vip-title {
    font-weight: 950;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
}

#vip-panel .vip-body {
    padding: 12px 12px;
    background: transparent;
}

#vip-panel .vip-group + .vip-group {
    margin-top: 12px;
}

#vip-panel .vip-group-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.90);
    font-weight: 950;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

#vip-panel .vip-group-title::after {
    content: attr(data-count);
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.30);
    color: rgba(255, 255, 255, 0.88);
    font-weight: 950;
    letter-spacing: 0.2px;
}

#vip-panel .vip-list {
    margin-top: 10px;
    display: grid;
    gap: 8px;
}

#vip-panel .vip-item,
#vip-panel .vip-empty {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
}

#vip-panel .vip-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    transform: translateY(8px);
    opacity: 0;
}

#vip-panel .vip-list.is-ready .vip-item {
    animation: vipIn 520ms cubic-bezier(0.2, 0.9, 0.25, 1) forwards;
    animation-delay: var(--d, 0ms);
}

#vip-panel .vip-item:hover {
    border-color: rgba(255, 43, 149, 0.18);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 22px 64px rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(255, 43, 149, 0.10) inset;
    transform: translateY(-2px);
    transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease, background 240ms ease;
}

#vip-panel .vip-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(0, 0, 0, 0.24);
    object-fit: cover;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
    flex: 0 0 auto;
}

#vip-panel .vip-name {
    font-weight: 950;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: 0.2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

#vip-panel .vip-empty {
    padding: 12px 10px;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 900;
    text-align: center;
}

#vip-panel .vip-list.is-ready .vip-empty {
    animation: vipIn 520ms cubic-bezier(0.2, 0.9, 0.25, 1) forwards;
}

#vip-panel .vip-status {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(0, 0, 0, 0.26);
    color: rgba(255, 255, 255, 0.70);
    font-weight: 800;
}

#vip-panel.vip-panel::-webkit-scrollbar {
    width: 10px;
}

#vip-panel.vip-panel::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.22);
}

#vip-panel.vip-panel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.10);
}

@keyframes vipIn {
    from { opacity: 0; transform: translateY(10px); filter: blur(8px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes vipSheen {
    from { transform: translateX(-62%) rotate(12deg); }
    to { transform: translateX(62%) rotate(12deg); }
}

@media (prefers-reduced-motion: reduce) {
    #vip-panel .vip-titlebar::after,
    #vip-panel .vip-list.is-ready .vip-item,
    #vip-panel .vip-list.is-ready .vip-empty {
        animation: none !important;
    }

    #vip-panel .vip-item {
        opacity: 1 !important;
        transform: none !important;
    }
}

#meniny-panel.meniny-panel {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: radial-gradient(900px 520px at 18% 10%, rgba(255, 43, 149, 0.12), transparent 62%),
        radial-gradient(900px 520px at 82% 18%, rgba(255, 91, 182, 0.06), transparent 60%),
        rgba(8, 8, 14, 0.62);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(16px);
    overflow: hidden;
}

#meniny-panel .meniny-titlebar {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    background: linear-gradient(90deg, rgba(255, 43, 149, 0.20), rgba(255, 91, 182, 0.10), rgba(255, 255, 255, 0.06));
    box-shadow: 0 16px 46px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}

#meniny-panel .meniny-titlebar::after {
    content: '';
    position: absolute;
    inset: -60% -40%;
    background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.18), transparent 65%);
    transform: translateX(-62%) rotate(12deg);
    opacity: 0.26;
    animation: vipSheen 3.6s cubic-bezier(0.2, 0.9, 0.25, 1) infinite;
    pointer-events: none;
}

#meniny-panel .meniny-title {
    font-weight: 950;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
}

#meniny-panel .meniny-body {
    padding: 12px 12px;
    display: grid;
    gap: 10px;
    background: transparent;
}

#meniny-panel .meniny-line {
    padding: 12px 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
    color: rgba(255, 255, 255, 0.84);
    font-weight: 850;
    line-height: 1.55;
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", Arial, sans-serif;
    font-variant-emoji: emoji;
}

#meniny-panel .flag {
    width: 1.05em;
    height: 1.05em;
    display: inline-block;
    border-radius: 999px;
    vertical-align: -0.15em;
    margin-right: 0.38em;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.44);
    border: 1px solid rgba(255, 255, 255, 0.14);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#meniny-panel .flag-sk {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cdefs%3E%3CradialGradient id='g' cx='30%25' cy='20%25' r='80%25'%3E%3Cstop offset='0%25' stop-color='%23ffffff' stop-opacity='0.22'/%3E%3Cstop offset='100%25' stop-color='%23000000' stop-opacity='0.00'/%3E%3C/radialGradient%3E%3C/defs%3E%3Crect width='64' height='64' rx='32' fill='%23ffffff'/%3E%3Crect y='21.33' width='64' height='21.34' fill='%230b4ea2'/%3E%3Crect y='42.66' width='64' height='21.34' fill='%23ee1c25'/%3E%3Cpath d='M25 18c0 0 6-5 14 0v18c0 8-6 13-7 14-1-1-7-6-7-14V18z' fill='%23ee1c25' opacity='0.85'/%3E%3Cpath d='M32 22c4 0 6 2 6 2s-2 2-6 2-6-2-6-2 2-2 6-2zm0 6c4 0 6 2 6 2s-2 2-6 2-6-2-6-2 2-2 6-2zm0 6c4 0 6 2 6 2s-2 2-6 2-6-2-6-2 2-2 6-2z' fill='%23ffffff' opacity='0.85'/%3E%3Ccircle cx='32' cy='32' r='31.5' fill='url(%23g)'/%3E%3C/svg%3E");
}

#meniny-panel .flag-cz {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cdefs%3E%3CradialGradient id='g' cx='30%25' cy='20%25' r='80%25'%3E%3Cstop offset='0%25' stop-color='%23ffffff' stop-opacity='0.22'/%3E%3Cstop offset='100%25' stop-color='%23000000' stop-opacity='0.00'/%3E%3C/radialGradient%3E%3C/defs%3E%3Crect width='64' height='64' rx='32' fill='%23ffffff'/%3E%3Crect y='32' width='64' height='32' fill='%23d7141a'/%3E%3Cpath d='M0 0l32 32L0 64z' fill='%231146b1'/%3E%3Ccircle cx='32' cy='32' r='31.5' fill='url(%23g)'/%3E%3C/svg%3E");
}

#meniny-panel .meniny-date {
    font-weight: 950;
    letter-spacing: 0.2px;
    color: rgba(255, 255, 255, 0.88);
}

#meniny-panel .meniny-split {
    margin-top: 10px;
    display: grid;
    gap: 8px;
}

#meniny-panel .meniny-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 10px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(0, 0, 0, 0.22);
}

#meniny-panel .meniny-country {
    color: rgba(255, 255, 255, 0.70);
    font-weight: 900;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    font-size: 0.72rem;
}

#meniny-panel .meniny-name {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 950;
    letter-spacing: 0.2px;
}

#meniny-panel .meniny-line[data-meniny="wish"] {
    border-color: rgba(255, 43, 149, 0.18);
    background: linear-gradient(90deg, rgba(255, 43, 149, 0.12), rgba(255, 255, 255, 0.06));
}

@media (prefers-reduced-motion: reduce) {
    #meniny-panel .meniny-titlebar::after {
        animation: none !important;
    }
}

#activity-panel.activity-panel {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: radial-gradient(900px 520px at 18% 10%, rgba(255, 43, 149, 0.12), transparent 62%),
        radial-gradient(900px 520px at 82% 18%, rgba(255, 91, 182, 0.06), transparent 60%),
        rgba(8, 8, 14, 0.62);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(16px);
    overflow: hidden;
}

#activity-panel .activity-titlebar {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    background: linear-gradient(90deg, rgba(255, 43, 149, 0.20), rgba(255, 91, 182, 0.10), rgba(255, 255, 255, 0.06));
    box-shadow: 0 16px 46px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}

#activity-panel .activity-titlebar::after {
    content: '';
    position: absolute;
    inset: -60% -40%;
    background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.18), transparent 65%);
    transform: translateX(-62%) rotate(12deg);
    opacity: 0.22;
    animation: vipSheen 3.8s cubic-bezier(0.2, 0.9, 0.25, 1) infinite;
    pointer-events: none;
}

#activity-panel .activity-title {
    font-weight: 950;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

#activity-panel .activity-title::after {
    content: attr(data-count);
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.30);
    color: rgba(255, 255, 255, 0.88);
    font-weight: 950;
    letter-spacing: 0.2px;
}

#activity-panel .activity-body {
    padding: 12px 12px;
    display: grid;
    gap: 10px;
    background: transparent;
}

#activity-panel .activity-list {
    display: grid;
    gap: 8px;
}

#activity-panel .activity-item,
#activity-panel .activity-empty {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
}

#activity-panel .activity-item {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    opacity: 0;
    transform: translateY(8px);
}

#activity-panel .activity-list.is-ready .activity-item {
    animation: vipIn 520ms cubic-bezier(0.2, 0.9, 0.25, 1) forwards;
    animation-delay: var(--d, 0ms);
}

#activity-panel .activity-item:hover {
    border-color: rgba(255, 43, 149, 0.18);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 22px 64px rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(255, 43, 149, 0.10) inset;
    transform: translateY(-2px);
    transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease, background 240ms ease;
}

#activity-panel .activity-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 43, 149, 0.38);
    box-shadow: 0 0 0 6px rgba(255, 43, 149, 0.10), 0 18px 44px rgba(0, 0, 0, 0.55);
    animation: loadingPulse 1.2s ease-in-out infinite;
    flex: 0 0 auto;
}

#activity-panel .activity-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(0, 0, 0, 0.24);
    object-fit: cover;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
    flex: 0 0 auto;
}

#activity-panel .activity-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

#activity-panel .activity-name {
    font-weight: 950;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: 0.2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#activity-panel .activity-role {
    color: rgba(255, 255, 255, 0.70);
    font-weight: 850;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    font-size: 0.72rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#activity-panel .activity-empty {
    padding: 12px 10px;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 900;
    text-align: center;
}

#activity-panel .activity-list.is-ready .activity-empty {
    animation: vipIn 520ms cubic-bezier(0.2, 0.9, 0.25, 1) forwards;
}

#activity-panel .activity-status {
    padding: 10px 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(0, 0, 0, 0.26);
    color: rgba(255, 255, 255, 0.70);
    font-weight: 800;
}

@media (prefers-reduced-motion: reduce) {
    #activity-panel .activity-titlebar::after,
    #activity-panel .activity-list.is-ready .activity-item,
    #activity-panel .activity-list.is-ready .activity-empty,
    #activity-panel .activity-dot {
        animation: none !important;
    }

    #activity-panel .activity-item {
        opacity: 1 !important;
        transform: none !important;
    }
}

#mta-panel.mta-panel {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: radial-gradient(900px 520px at 18% 10%, rgba(255, 43, 149, 0.12), transparent 62%),
        radial-gradient(900px 520px at 82% 18%, rgba(255, 91, 182, 0.06), transparent 60%),
        rgba(8, 8, 14, 0.62);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(16px);
    overflow: hidden;
    position: relative;
}

#mta-panel .mta-titlebar {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    background: linear-gradient(90deg, rgba(255, 43, 149, 0.20), rgba(255, 91, 182, 0.10), rgba(255, 255, 255, 0.06));
    box-shadow: 0 16px 46px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}

#mta-panel .mta-titlebar::after {
    content: '';
    position: absolute;
    inset: -60% -40%;
    background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.18), transparent 65%);
    transform: translateX(-62%) rotate(12deg);
    opacity: 0.20;
    animation: vipSheen 4.2s cubic-bezier(0.2, 0.9, 0.25, 1) infinite;
    pointer-events: none;
}

#mta-panel .mta-title {
    font-weight: 950;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
}

#mta-panel .mta-body {
    padding: 12px 12px;
    display: grid;
    gap: 12px;
    background: transparent;
}

#mta-panel .mta-info {
    display: grid;
    gap: 10px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
}

#mta-panel .mta-field {
    position: relative;
    padding: 12px 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
    overflow: hidden;
}

#mta-panel .mta-label {
    font-weight: 850;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.72rem;
    margin-bottom: 6px;
}

#mta-panel .mta-value {
    font-weight: 950;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: 0.2px;
    line-height: 1.2;
}

#mta-panel .mta-server-name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

#mta-panel .mta-field--players::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--mta-fill, 0%);
    background: linear-gradient(90deg, rgba(255, 43, 149, 0.22), rgba(255, 255, 255, 0.06));
    pointer-events: none;
    transition: width 520ms cubic-bezier(0.2, 0.9, 0.25, 1);
}

#mta-panel .mta-field--players > * {
    position: relative;
    z-index: 1;
}

#mta-panel .mta-btn {
    width: 100%;
    padding: 12px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(180deg, rgba(255, 43, 149, 0.92), rgba(209, 18, 118, 0.88));
    color: rgba(255, 255, 255, 0.96);
    font-weight: 950;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 43, 149, 0.16) inset;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    transition: transform 240ms ease, box-shadow 240ms ease, filter 240ms ease;
}

#mta-panel .mta-btn::after {
    content: '';
    position: absolute;
    inset: -60% -40%;
    background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.26), transparent 65%);
    transform: translateX(-68%) rotate(10deg);
    opacity: 0.22;
    animation: vipSheen 2.8s cubic-bezier(0.2, 0.9, 0.25, 1) infinite;
    pointer-events: none;
}

#mta-panel .mta-btn:hover {
    transform: translateY(-2px);
    filter: saturate(1.06) contrast(1.02);
    box-shadow: 0 26px 76px rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(255, 43, 149, 0.22) inset;
}

#mta-panel .mta-btn:active {
    transform: translateY(1px);
}

@media (prefers-reduced-motion: reduce) {
    #mta-panel .mta-titlebar::after {
        animation: none !important;
    }

    #mta-panel .mta-field--players::before {
        transition: none !important;
    }

    #mta-panel .mta-btn::after {
        animation: none !important;
    }
}
