/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ed1835;
    --primary-hover: #ff4058;
    --secondary-color: #101426;
    --accent-color: #ff4058;
    --text-primary: #e7e9ef;
    --text-secondary: #a0a9bd;
    --background-primary: #0e1326;
    --background-secondary: #111426;
    --background-tertiary: #0a0a1a;
    --border-color: #1d263b;
    --success-color: #4ade80;
    --warning-color: #fbbf24;
    --error-color: #fb7185;
    --shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
    --shadow-hover: 0 18px 42px rgba(0, 0, 0, 0.42);
}

body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--background-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(8, 9, 11, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.04em;
}

.nav-logo span::first-letter {
    color: var(--primary-color);
}

.nav-logo i {
    margin-right: 10px;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-item {
    position: relative;
    margin: 0 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 999px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    background: transparent;
    color: var(--primary-color);
    transform: none;
}

.nav-link.active {
    position: relative;
}

.nav-link.active::after {
    position: absolute;
    content: '';
    left: 12px;
    right: 12px;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--primary-color);
}

.nav-link i {
    margin-right: 6px;
    font-size: 0.9rem;
}


.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    display: block;
    padding: 10px 16px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    white-space: nowrap;
}

.dropdown-content a:hover {
    background: var(--primary-color);
    color: white;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

/* 英雄区域样式 */
.hero {
    min-height: 0;
    display: flex;
    align-items: center;
    padding: 150px 0 54px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 4% 45%, rgba(255, 110, 20, 0.11) 0%, transparent 46%),
                radial-gradient(ellipse at 88% 12%, rgba(255, 157, 47, 0.035) 0%, transparent 35%);
    z-index: -1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 28px 48px;
    align-items: end;
}

.hero-content {
    animation: slideInLeft 1s ease-out;
}

.hero-title {
    font-size: clamp(3.5rem, 7vw, 5rem);
    font-weight: 750;
    margin-bottom: 12px;
    line-height: 1.04;
    letter-spacing: -0.055em;
}

.title-main {
    display: block;
    color: var(--text-primary);
}

.title-sub {
    display: block;
    color: var(--text-primary);
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.04em;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    padding: 5px 12px;
    border: 1px solid rgba(255, 121, 24, 0.28);
    border-radius: 999px;
    color: #ff9b4a;
    background: rgba(255, 121, 24, 0.055);
    font-size: 0.7rem;
    font-weight: 750;
    letter-spacing: 0.13em;
}

.hero-kicker-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 121, 24, 0.65);
}

.hero-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.75;
    max-width: 660px;
}

.hero-stats {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 30px;
}

.hero-stats .stat-item {
    min-height: 108px;
    padding: 20px 24px;
    text-align: left;
    background: rgba(13, 14, 16, 0.72);
    border: 1px solid var(--border-color);
    border-radius: 13px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.hero-stats .stat-item:hover {
    border-color: rgba(255, 121, 24, 0.4);
    transform: translateY(-2px);
}

.hero-stats .stat-number {
    font-size: 1.8rem;
    margin: 5px 0 0;
}

.hero-stats .stat-label {
    color: var(--text-secondary);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.11em;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
    padding-bottom: 5px;
}

.hero-visual .hero-buttons {
    flex-wrap: nowrap;
    gap: 8px;
}

.hero-visual .btn {
    padding-right: 12px;
    padding-left: 12px;
    font-size: 0.85rem;
    white-space: nowrap;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 15px 30px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(110deg, #ff6d0a, #ff9d00);
    color: #17100a;
    box-shadow: 0 8px 24px rgba(255, 111, 0, 0.19);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 111, 0, 0.27);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(255, 121, 24, 0.55);
    transform: translateY(-2px);
}

.btn i {
    margin-right: 8px;
}

/* 浮动卡片动画 */
.hero-visual {
    position: relative;
    animation: slideInRight 1s ease-out;
}

.floating-cards {
    position: relative;
    height: 400px;
}

.card {
    position: absolute;
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    animation: float 3s ease-in-out infinite;
}

.card-1 {
    top: 20px;
    left: 20px;
    animation-delay: 0s;
}

.card-2 {
    top: 120px;
    right: 20px;
    animation-delay: 1s;
}

.card-3 {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 2s;
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.card-header i {
    color: var(--accent-color);
    margin-right: 10px;
    font-size: 1.2rem;
}

.card-header span {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.player-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.player-device {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* 特色功能区域 */
.features {
    padding: 100px 0;
    background: var(--background-primary);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

/* 定价卡片布局（购买页） */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.pricing-card {
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 30px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.pricing-badge {
    position: absolute;
    top: 16px;
    right: -40px;
    background: var(--primary-color);
    color: #fff;
    padding: 8px 60px;
    transform: rotate(35deg);
    font-weight: 700;
    font-size: 0.85rem;
}

.pricing-card.premium .pricing-badge { background: var(--error-color); }
.pricing-card.vip .pricing-badge { background: var(--warning-color); }
.pricing-card.pro .pricing-badge { background: var(--primary-color); }

.pricing-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.pricing-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.pricing-price span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-left: 4px;
}

.pricing-features {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
    color: var(--text-secondary);
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color);
}

.pricing-features li i { color: var(--success-color); }

.pricing-card.premium { border-color: rgba(209,52,56,0.5); }
.pricing-card.vip { border-color: rgba(255,140,0,0.5); }
.pricing-card.pro { border-color: rgba(0,120,212,0.5); }

.feature-card {
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 120, 212, 0.1), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 购买称号区域 */
.purchase-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--background-secondary) 0%, var(--background-tertiary) 100%);
}

.purchase-card {
    background: var(--background-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    box-shadow: var(--shadow);
}

.purchase-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.purchase-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.title-showcase {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.title-item {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.title-item.admin {
    background: var(--error-color);
    color: white;
}

.title-item.vip {
    background: var(--warning-color);
    color: white;
}

.title-item.pro {
    background: var(--primary-color);
    color: white;
}

.title-item i {
    margin-right: 8px;
}

.btn-purchase {
    background: var(--accent-color);
    color: white;
    font-size: 1.1rem;
    padding: 18px 35px;
}

.btn-purchase:hover {
    background: #e55a2b;
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.purchase-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.title-preview {
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.player-card {
    display: flex;
    align-items: center;
    gap: 20px;
}

.player-avatar {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.player-info {
    flex: 1;
}

.player-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.player-device {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* 页脚样式 */
.footer {
    background: var(--background-primary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* 动画效果 */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--background-primary);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 8px 0;
    }
    
    .nav-link {
        font-size: 0.95rem;
        padding: 10px 20px;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .title-sub {
        font-size: 2rem;
    }

    .hero-stats {
        justify-content: center;
        gap: 20px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .purchase-card {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 30px;
    }

    .title-showcase {
        flex-direction: column;
        align-items: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .title-sub {
        font-size: 1.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .purchase-card {
        padding: 30px 20px;
    }

    .purchase-content h2 {
        font-size: 2rem;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* EloTiers-inspired shared finish */
.features {
    padding: 58px 0 72px;
    background: var(--background-primary);
}

.section-title {
    margin-bottom: 32px;
    text-align: left;
    font-size: 1.5rem;
    letter-spacing: -0.025em;
}

.features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.feature-card {
    min-height: 174px;
    padding: 25px 24px 23px;
    text-align: left;
    background: rgba(13, 14, 16, 0.7);
    border-color: var(--border-color);
    border-radius: 13px;
}

.feature-card::before {
    display: none;
}

.feature-card::after {
    position: absolute;
    content: '';
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color), rgba(255, 121, 24, 0.12));
    opacity: 0.65;
}

.feature-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 121, 24, 0.42);
}

.feature-icon {
    width: auto;
    height: auto;
    margin: 0 0 15px;
    background: transparent;
    color: var(--primary-color);
    font-size: 1.15rem;
}

.feature-card h3 {
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.feature-card p {
    font-size: 0.88rem;
}

.purchase-section {
    padding: 64px 0;
    background: linear-gradient(180deg, var(--background-primary), #0b0b0c);
}

.purchase-card {
    background: rgba(13, 14, 16, 0.8);
    border-radius: 14px;
}

.footer {
    background: #070809;
}

@media (max-width: 768px) {
    .hero {
        padding: 122px 0 42px;
    }

    .hero-container {
        gap: 24px;
        text-align: left;
    }

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

    .hero-description {
        margin-right: auto;
        margin-left: auto;
    }

    .hero-visual {
        justify-self: center;
    }

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

    .hero-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        margin-top: 12px;
    }

    .hero-stats .stat-item {
        min-height: 94px;
        padding: 16px 13px;
    }

    .hero-stats .stat-number {
        font-size: 1.45rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 108px;
    }

    .hero-kicker {
        font-size: 0.62rem;
    }

    .hero-title {
        font-size: 3.15rem;
    }

    .title-sub {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .hero-buttons .btn {
        justify-content: center;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .hero-stats .stat-item {
        min-height: 0;
    }
}

/* 调整首页按钮交互：移除点击放大，仅悬停轻微上移 */
.btn:active {
    transform: none;
    box-shadow: none;
}

/* Shared dark competitive-platform theme */
html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    background:
        radial-gradient(ellipse at 8% 8%, rgba(255, 112, 20, 0.045), transparent 34rem),
        radial-gradient(ellipse at 95% 34%, rgba(255, 154, 50, 0.025), transparent 30rem),
        var(--background-primary);
}

.container,
.nav-container,
.hero-container {
    max-width: 1320px;
}

.hero-container {
    width: 100%;
}

.hero-visual {
    animation: none;
}

.navbar {
    background: rgba(8, 9, 11, 0.9);
    border-bottom-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
}

.nav-logo {
    color: var(--text-primary);
    letter-spacing: 0.04em;
}

.nav-logo i {
    color: var(--primary-color);
}

.nav-link {
    color: #a7a29c;
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background: transparent;
    transform: none;
}

.nav-toggle .bar {
    border-radius: 4px;
}

.hero {
    min-height: 0;
    padding: 220px 0 0;
    background:
        radial-gradient(ellipse at 9% 48%, rgba(255, 112, 20, 0.09), transparent 28rem),
        linear-gradient(180deg, rgba(20, 16, 12, 0.14), transparent 75%);
}

.hero::before {
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 126, 26, 0.055), transparent 34%),
        radial-gradient(circle at 80% 80%, rgba(255, 168, 75, 0.025), transparent 36%);
    z-index: 0;
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(3.2rem, 6vw, 5.4rem);
    letter-spacing: -0.055em;
    line-height: 1.03;
}

.title-main {
    color: var(--text-primary);
    text-shadow: none;
}

.title-sub {
    margin-top: 12px;
    font-size: clamp(2rem, 4vw, 3.3rem);
    letter-spacing: -0.04em;
}

.hero-description {
    max-width: 620px;
    font-size: 1.05rem;
    line-height: 1.85;
}

.hero-stats {
    gap: 18px;
    width: 100%;
    padding: 0;
    border: 0;
}

.hero-stats .stat-item {
    min-width: 0;
    padding: 20px 24px;
    text-align: left;
    border-right: 0;
}

.hero-stats .stat-item:first-child {
    padding-left: 24px;
}

.hero-stats .stat-item:last-child {
    padding-right: 24px;
}

.stat-number {
    color: var(--text-primary);
    font-size: 1.8rem;
    letter-spacing: -0.04em;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.78rem;
}

.btn {
    min-height: 48px;
    padding: 13px 21px;
    border-radius: 999px;
}

.btn-primary {
    background: linear-gradient(110deg, #ff6d0a, #ff9d00);
    color: #17100a;
}

.btn-primary:hover {
    background: var(--primary-hover);
    color: #17100a;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(255, 111, 0, 0.22);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 121, 24, 0.055);
    border-color: rgba(255, 121, 24, 0.45);
    transform: translateY(-2px);
}

.floating-cards .card {
    min-width: 210px;
    background: rgba(17, 24, 32, 0.92);
    border-color: rgba(148, 163, 184, 0.16);
    border-radius: 14px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
}

.card-header i,
.card-header span {
    color: var(--primary-color);
}

.features,
.purchase-section {
    background: transparent;
}

.features {
    padding: 20px 0 72px;
}

.section-title {
    margin-bottom: 8px;
    font-size: 1.5rem;
    letter-spacing: -0.035em;
}

.feature-card {
    min-height: 174px;
    padding: 25px 24px 23px;
    text-align: left;
    background: rgba(13, 14, 16, 0.7);
    border-color: var(--border-color);
    border-radius: 13px;
}

.feature-card::before {
    display: none;
}

.feature-card::after {
    position: absolute;
    content: '';
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color), rgba(255, 121, 24, 0.12));
    opacity: 0.65;
}

.feature-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 121, 24, 0.42);
}

.feature-icon {
    width: auto;
    height: auto;
    margin: 0 0 15px;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: var(--primary-color);
    font-size: 1.15rem;
}

.feature-card h3 {
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.feature-card p {
    font-size: 0.88rem;
}

.purchase-card {
    background: rgba(13, 14, 16, 0.8);
    border-color: var(--border-color);
    border-radius: 14px;
}

.title-preview {
    background: #0b0c0e;
    border-color: var(--border-color);
}

.footer {
    background: #070809;
    border-top-color: rgba(255, 255, 255, 0.08);
}

.footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.08);
}

::selection {
    color: #17100a;
    background: var(--primary-color);
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 122px 0 42px;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .hero-stats .stat-item {
        min-width: 0;
        padding: 16px 13px;
    }

    .features {
        padding: 40px 0 60px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        grid-template-columns: 1fr;
    }

    .hero-stats .stat-item {
        padding: 14px 16px;
    }

    .stat-number {
        font-size: 1.55rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* MCPVP-inspired navy, red, and compact competitive-platform treatment */
html {
    color-scheme: dark;
}

body {
    background:
        radial-gradient(ellipse at 50% -25%, rgba(58, 77, 125, 0.16), transparent 48rem),
        var(--background-primary);
    color: var(--text-primary);
}

.navbar {
    background: rgba(14, 19, 38, 0.94);
    border-bottom-color: rgba(104, 123, 164, 0.16);
    backdrop-filter: blur(16px);
}

.nav-link {
    color: #a8b0c3;
    border-radius: 7px;
}

.nav-link:hover,
.nav-link.active {
    color: #ff344c;
    background: transparent;
}

.nav-link.active::after {
    background: #ed1835;
}

.hero {
    min-height: 0;
    padding: 132px 0 42px;
    background:
        radial-gradient(ellipse at 50% 100%, rgba(34, 50, 83, 0.25), transparent 38rem),
        linear-gradient(180deg, rgba(17, 20, 38, 0.45), transparent 72%);
}

.hero::before {
    background:
        radial-gradient(circle at 20% 18%, rgba(60, 77, 120, 0.13), transparent 34%),
        radial-gradient(circle at 80% 80%, rgba(31, 46, 78, 0.13), transparent 36%);
    z-index: 0;
    pointer-events: none;
}

.hero-title .title-main {
    color: var(--text-primary);
    text-shadow: none;
}

.hero-kicker {
    color: #fb6376;
    border-color: rgba(237, 24, 53, 0.3);
    background: rgba(237, 24, 53, 0.07);
}

.hero-kicker-dot {
    background: #ed1835;
}

.hero-description {
    color: #a7aec0;
}

.btn {
    min-height: 44px;
    padding: 11px 20px;
    border-radius: 8px;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #f33145, #c90825);
    box-shadow: 0 8px 22px rgba(214, 15, 43, 0.22);
}

.btn-primary:hover {
    color: #fff;
    background: #ff344c;
    box-shadow: 0 10px 28px rgba(214, 15, 43, 0.3);
}

.btn-secondary {
    color: #dce1ed;
    background: #111426;
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    color: #fff;
    background: #171a2d;
    border-color: rgba(237, 24, 53, 0.45);
}

.hero-stats .stat-item,
.feature-card,
.purchase-card,
.title-preview,
.pricing-card {
    background: #111426;
    border-color: #1d263b;
    border-radius: 9px;
    box-shadow: none;
}

.hero-stats .stat-item:hover,
.feature-card:hover,
.pricing-card:hover {
    border-color: rgba(237, 24, 53, 0.48);
}

.hero-stats .stat-number,
.stat-number {
    color: var(--text-primary);
}

.hero-stats .stat-label {
    color: #919bb2;
}

.features,
.purchase-section {
    background: transparent;
}

.feature-card::after {
    background: linear-gradient(180deg, #ed1835, rgba(237, 24, 53, 0.08));
}

.feature-icon {
    color: #ff344c;
}

.section-title {
    color: #f1f2f7;
}

.footer {
    background: #0a0d19;
    border-top-color: rgba(104, 123, 164, 0.16);
}

.footer-bottom {
    border-top-color: rgba(104, 123, 164, 0.16);
}

.dropdown-content a:hover,
.social-link:hover {
    background: #ed1835;
}

.player-modal .modal-content,
.tester-modal .modal-content,
.guild-modal .modal-content {
    background: #111426;
    border-color: #1d263b;
    border-radius: 10px;
}

.player-modal .modal-header,
.tester-modal .modal-header,
.guild-modal .modal-header {
    border-bottom-color: #1d263b;
}

.player-modal .detail-section h4 {
    border-bottom-color: #ed1835;
}

.profile-heading {
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-skin {
    width: 58px;
    height: 76px;
    object-fit: cover;
    object-position: top;
    border: 1px solid #293653;
    border-radius: 7px;
    background: #0a0a1a;
}

.modal-mode-badge {
    background: #171a2d;
    border: 1px solid #252e45;
}

@media (max-width: 768px) {
    .hero {
        padding: 112px 0 34px;
    }
}

/* MCPVP-style centered brand mark and icon navigation */
.navbar {
    top: 12px;
    left: 50%;
    width: min(720px, calc(100% - 24px));
    padding: 0;
    transform: translateX(-50%);
    background: rgba(10, 11, 24, 0.96);
    border: 1px solid #20263a;
    border-radius: 14px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.32);
}

.nav-container {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 5px;
    height: auto;
    max-width: none;
    padding: 8px 12px 9px;
}

.nav-logo {
    grid-row: 1;
    justify-self: center;
    min-width: 114px;
    height: 35px;
    justify-content: center;
    margin: 0;
    padding: 2px 12px;
    background: #0e1020;
    border: 1px solid #282d42;
    border-radius: 999px;
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.nav-logo img {
    display: block;
    max-width: 120px;
    max-height: 29px;
    object-fit: contain;
}

.nav-logo img[hidden] {
    display: none;
}

.nav-logo span[hidden] {
    display: none;
}

.nav-menu {
    position: static;
    grid-row: 2;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 7px;
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: left;
    box-shadow: none;
    transition: none;
}

.nav-item {
    margin: 0;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 36px;
    padding: 0;
    color: #aeb5c7;
    background: transparent;
    border-radius: 8px;
    font-size: 0;
}

.nav-link i {
    margin: 0;
    font-size: 1rem;
}

.nav-link .nav-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: #ff344c;
    background: #171a2b;
    transform: none;
}

.nav-link.active::after {
    display: none;
}

.nav-toggle {
    display: none;
}

.home-top-players {
    padding: 30px 0 58px;
    background: linear-gradient(180deg, rgba(17, 20, 38, 0.42), transparent);
}

.home-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.home-section-kicker,
.stats-profile-kicker {
    color: #ef465e;
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.home-section-heading h2 {
    margin-top: 3px;
    color: #e7e9ef;
    font-size: 1.65rem;
}

.home-section-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #aab4c8;
    font-size: 0.82rem;
    text-decoration: none;
}

.home-section-link:hover {
    color: #ff4058;
}

.home-top-podium {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
    gap: 14px;
}

.home-podium-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 260px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 18px 14px 17px;
    overflow: hidden;
    color: #e7e9ef;
    background: #111426;
    border: 1px solid #1d263b;
    border-radius: 10px;
    cursor: pointer;
    font: inherit;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.home-podium-card:hover {
    transform: translateY(-3px);
    background: #151a30;
    border-color: #39445e;
}

.home-podium-card:focus-visible {
    outline: 2px solid #ed1835;
    outline-offset: 3px;
}

.home-podium-card.podium-place-1 {
    min-height: 300px;
    border-color: rgba(237, 24, 53, 0.5);
    background: linear-gradient(180deg, rgba(237, 24, 53, 0.08), #111426 58%);
}

.home-podium-rank {
    position: absolute;
    top: 12px;
    left: 13px;
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    color: #aab4c8;
    background: #0a0a1a;
    border: 1px solid #29344e;
    border-radius: 7px;
    font-size: 0.82rem;
    font-weight: 800;
}

.podium-place-1 .home-podium-rank {
    color: #ffd75e;
    border-color: rgba(255, 215, 94, 0.5);
}

.podium-place-2 .home-podium-rank {
    color: #dce5ef;
}

.podium-place-3 .home-podium-rank {
    color: #e8a77b;
}

.home-podium-skin-wrap {
    display: flex;
    width: 100%;
    height: 170px;
    align-items: end;
    justify-content: center;
    margin-bottom: 10px;
    background: radial-gradient(ellipse at 50% 100%, rgba(76, 93, 139, 0.18), transparent 72%);
}

.podium-place-1 .home-podium-skin-wrap {
    height: 196px;
}

.home-podium-skin {
    max-width: 100%;
    width: auto;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
}

.home-podium-name {
    max-width: 100%;
    overflow: hidden;
    color: #f0f1f6;
    font-size: 1.02rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-podium-region,
.home-podium-modes {
    margin-top: 3px;
    color: #909bb1;
    font-size: 0.68rem;
}

.home-podium-points {
    margin-top: 8px;
    color: #f4d36b;
    font-size: 1.14rem;
    font-weight: 800;
}

.home-podium-points small {
    color: #aab4c8;
    font-size: 0.68rem;
    font-weight: 500;
}

.stats-profile-dialog {
    overflow: hidden auto;
    background: #0e1326;
    border-color: #28314a;
    border-radius: 12px;
}

.stats-profile-dialog .modal-header {
    min-height: 110px;
    padding: 18px 22px;
    background: #111426;
    border-bottom-color: #202942;
}

.stats-profile-heading {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 16px;
}

.stats-profile-heading h3 {
    margin: 2px 0;
    color: #f0f1f6;
    font-size: 1.35rem;
    overflow-wrap: anywhere;
}

.stats-profile-heading p {
    margin: 0;
    color: #a0a9bd;
    font-size: 0.8rem;
}

.stats-profile-dialog .profile-skin {
    flex: 0 0 64px;
    width: 64px;
    height: 84px;
    object-fit: contain;
    object-position: center bottom;
    background: #0a0a1a;
    border-color: #2b3650;
    border-radius: 7px;
}

.stats-profile-guild-icon {
    flex: 0 0 70px;
    width: 70px;
    height: 70px;
    object-fit: contain;
    padding: 7px;
    background: #0a0a1a;
    border: 1px solid #2b3650;
    border-radius: 9px;
}

.stats-profile-dialog .modal-body {
    padding: 20px 22px 24px;
}

.stats-profile-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
}

.stats-profile-card {
    display: flex;
    min-width: 0;
    min-height: 76px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 12px;
    background: #111426;
    border: 1px solid #202942;
    border-radius: 8px;
}

.stats-profile-card > span {
    color: #929db3;
    font-size: 0.68rem;
}

.stats-profile-card strong {
    overflow-wrap: anywhere;
    color: #edf0f6;
    font-size: 1rem;
    font-weight: 800;
}

.stats-profile-card:first-child strong {
    color: #f4d36b;
}

.stats-profile-section {
    margin-top: 20px;
    padding: 16px;
    background: #111426;
    border: 1px solid #202942;
    border-radius: 9px;
}

.stats-profile-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.stats-profile-section-heading h4 {
    margin: 0;
    color: #e7e9ef;
    font-size: 0.92rem;
}

.stats-profile-section-heading > span {
    color: #8994aa;
    font-size: 0.68rem;
    text-transform: uppercase;
}

.stats-profile-modes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.stats-profile-modes .modal-mode-badge {
    min-width: 0;
    justify-content: flex-start;
    padding: 8px 10px;
    background: #0a0a1a;
    border: 1px solid #252e45;
    border-radius: 6px;
    color: #c6ccda;
    font-size: 0.74rem;
}

.stats-profile-description {
    margin: 0;
    color: #a0a9bd;
    font-size: 0.84rem;
    line-height: 1.7;
}

.player-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-modal-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(3, 5, 12, 0.82);
    backdrop-filter: blur(5px);
}

.player-modal .modal-content {
    position: relative;
    width: min(680px, 100%);
    max-height: min(82vh, 760px);
    overflow-y: auto;
    background: #0e1326;
    border: 1px solid #28314a;
    border-radius: 12px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.player-modal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    background: #111426;
    border-bottom: 1px solid #202942;
}

.player-modal .modal-close {
    flex: 0 0 auto;
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    color: #a0a9bd;
    background: #0a0a1a;
    border: 1px solid #29344e;
    border-radius: 7px;
    cursor: pointer;
}

.player-modal .modal-body {
    padding: 20px 22px 24px;
}

.player-modal-level-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.modal-mode-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 8px 10px;
    color: #c6ccda;
    background: #0a0a1a;
    border: 1px solid #252e45;
    border-radius: 6px;
    font-size: 0.74rem;
}

@media (max-width: 600px) {
    .navbar {
        top: 8px;
        width: calc(100% - 16px);
    }

    .nav-menu {
        gap: 4px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .nav-menu::-webkit-scrollbar {
        display: none;
    }

    .nav-link {
        width: 39px;
    }

    .home-top-players {
        padding: 22px 0 38px;
    }

    .home-top-podium {
        gap: 7px;
    }

    .home-podium-card,
    .home-podium-card.podium-place-1 {
        min-height: 225px;
        padding: 12px 6px;
    }

    .home-podium-skin-wrap,
    .podium-place-1 .home-podium-skin-wrap {
        height: 135px;
    }

    .home-podium-name {
        font-size: 0.8rem;
    }

    .home-podium-region,
    .home-podium-modes {
        font-size: 0.58rem;
    }

    .home-podium-points {
        font-size: 0.94rem;
    }

    .home-podium-rank {
        top: 8px;
        left: 8px;
        width: 25px;
        height: 25px;
    }

    .stats-profile-dialog .modal-header {
        padding: 14px;
    }

    .stats-profile-dialog .modal-body {
        padding: 14px;
    }

    .player-modal .modal-header,
    .player-modal .modal-body {
        padding: 14px;
    }

    .stats-profile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stats-profile-modes {
        grid-template-columns: 1fr;
    }

    .stats-profile-heading {
        gap: 11px;
    }

    .stats-profile-heading h3 {
        font-size: 1.05rem;
    }

    .stats-profile-dialog .profile-skin {
        flex-basis: 52px;
        width: 52px;
        height: 70px;
    }

    .stats-profile-guild-icon {
        flex-basis: 56px;
        width: 56px;
        height: 56px;
    }
}

@media (min-width: 769px) {
    .navbar {
        position: sticky;
        top: 12px;
        left: auto;
        width: min(1260px, calc(100% - 48px));
        margin: 12px auto 0;
        transform: none;
        background: rgba(10, 11, 24, 0.96);
        border: 1px solid #20263a;
        border-radius: 14px;
    }

    .nav-container {
        position: relative;
        display: flex;
        height: 76px;
        padding: 0 28px;
    }

    .nav-logo {
        position: absolute;
        z-index: 2;
        top: 50%;
        left: 50%;
        min-width: 136px;
        height: 58px;
        padding: 4px 14px;
        transform: translate(-50%, -50%);
        background: #0e1020;
        border-radius: 8px;
        font-size: 1.12rem;
    }

    .nav-logo img {
        max-width: 160px;
        max-height: 48px;
    }

    .nav-menu {
        display: flex;
        justify-content: space-between;
        gap: 8px;
        padding: 0;
    }

    .nav-item {
        margin: 0;
    }

    .nav-item:nth-child(2) {
        margin-right: auto;
    }

    .nav-item:nth-child(3) {
        margin-left: auto;
    }

    .nav-link {
        width: auto;
        height: 42px;
        padding: 0 15px;
        font-size: 0.9rem;
    }

    .nav-link i {
        margin-right: 8px;
        font-size: 0.9rem;
    }

    .nav-link .nav-label {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip: auto;
        font-size: inherit;
    }

    .nav-link:hover,
    .nav-link.active {
        background: #171a2b;
    }
}

#main > .page-header {
    padding: 46px 0 34px;
}

.ranking-hero {
    background:
        radial-gradient(ellipse at 12% 0%, rgba(50, 67, 112, 0.22), transparent 34rem),
        var(--background-primary);
    border: 0;
}

.ranking-hero .header-content {
    text-align: left;
}

.ranking-hero .page-title {
    justify-content: flex-start;
    margin-bottom: 8px;
}

.ranking-hero .page-description {
    max-width: 720px;
    margin: 0;
    font-size: 0.98rem;
}

.ranking-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #ff6478;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.ranking-kicker i {
    color: #ed1835;
    font-size: 0.45rem;
}

.ranking-hero .page-title,
#main > .page-header .page-title {
    align-items: center;
    font-size: clamp(2rem, 4vw, 3rem);
}

.hero {
    padding-top: 54px;
}

.hero-buttons .btn,
.hero-buttons .btn:hover,
.hero-buttons .btn:focus,
.hero-buttons .btn:active {
    flex: 0 0 auto;
    transform: none;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-buttons .btn-primary:hover {
    box-shadow: 0 10px 28px rgba(214, 15, 43, 0.3);
}

.home-section-heading {
    position: relative;
    display: block;
    margin-bottom: 22px;
    text-align: center;
}

.home-section-heading h2 {
    margin-top: 4px;
    color: #f1cf4a;
    font-size: clamp(1.7rem, 3vw, 2.1rem);
}

.home-section-heading .home-section-link {
    position: absolute;
    right: 0;
    bottom: 8px;
}

.home-top-podium {
    width: min(720px, 100%);
    margin: 0 auto;
    align-items: end;
    gap: 18px;
}

.home-podium-card,
.home-podium-card.podium-place-1 {
    min-height: 286px;
    justify-content: flex-end;
    padding: 14px 12px 10px;
    background: linear-gradient(180deg, #090b16, #111426);
    border-color: #1d263b;
    border-radius: 10px;
}

.home-podium-card.podium-place-1 {
    min-height: 320px;
}

.home-podium-card:hover {
    transform: translateY(-4px);
    border-color: rgba(241, 207, 74, 0.42);
}

.home-podium-card.scroll-reveal.is-visible:hover {
    transform: translateY(-4px);
}

.home-podium-skin-wrap,
.podium-place-1 .home-podium-skin-wrap {
    height: 190px;
    margin-bottom: 8px;
    background: radial-gradient(ellipse at 50% 100%, rgba(241, 207, 74, 0.13), transparent 72%);
}

.podium-place-1 .home-podium-skin-wrap {
    height: 216px;
}

.home-podium-skin {
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center bottom;
}

.home-guild-podium-card {
    color: #e7e9ef;
    text-decoration: none;
}

.home-guild-icon-wrap {
    display: flex;
    width: 112px;
    height: 112px;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    overflow: hidden;
    background: radial-gradient(circle, rgba(241, 207, 74, 0.12), transparent 72%);
    border-radius: 14px;
}

.podium-place-1 .home-guild-icon-wrap {
    width: 128px;
    height: 128px;
}

.home-guild-icon {
    width: 100%;
    height: 100%;
    border: 1px solid #29344e;
    border-radius: 14px;
    object-fit: cover;
}

.home-guild-members {
    color: #f1cf4a;
    font-size: 0.78rem;
    font-weight: 750;
    white-space: nowrap;
}

.home-guild-meta {
    color: #909bb1;
    font-size: 0.72rem;
    white-space: nowrap;
}

.home-guild-runner-up {
    grid-template-columns: 42px 38px minmax(100px, 1fr) auto auto;
    text-decoration: none;
}

.home-guild-runner-icon-wrap {
    display: flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
}

.home-guild-runner-icon {
    width: 100%;
    height: 100%;
    border: 1px solid #29344e;
    border-radius: 8px;
    object-fit: cover;
}

.home-podium-name {
    font-size: 1.04rem;
}

.home-podium-region {
    margin-top: 4px;
    color: #aab4c8;
    font-size: 0.72rem;
}

.home-podium-rank-label {
    display: block;
    margin-top: 2px;
    color: #aab4c8;
    font-size: 2.7rem;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.38);
}

.podium-place-1 .home-podium-rank-label {
    color: #f1cf4a;
    font-size: 3.5rem;
}

.podium-place-2 .home-podium-rank-label {
    color: #dce5ef;
}

.podium-place-3 .home-podium-rank-label {
    color: #e8a77b;
}

.home-runners-up {
    display: grid;
    width: min(550px, 100%);
    gap: 10px;
    margin: 24px auto 0;
}

.home-runner-up {
    display: grid;
    grid-template-columns: 42px 38px minmax(100px, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    min-height: 66px;
    padding: 8px 14px;
    color: #e7e9ef;
    background: #0a0a1a;
    border: 1px solid #202942;
    border-radius: 9px;
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.home-runner-up:hover {
    transform: translateY(-2px);
    background: #111426;
    border-color: #3b4660;
}

.home-runner-up.scroll-reveal.is-visible:hover {
    transform: translateY(-2px);
}

.home-runner-rank {
    color: #909bb1;
    font-size: 1.35rem;
    font-weight: 800;
    text-align: center;
}

.home-runner-skin-wrap {
    display: flex;
    width: 38px;
    height: 46px;
    align-items: end;
    justify-content: center;
}

.home-runner-skin {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.home-runner-name {
    overflow: hidden;
    font-size: 0.87rem;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-runner-modes {
    color: #909bb1;
    font-size: 0.72rem;
    white-space: nowrap;
}

.home-runner-points {
    color: #f1cf4a;
    font-size: 0.78rem;
    font-weight: 750;
    text-align: right;
    white-space: nowrap;
}

.nav-link.active,
.nav-link.active:hover,
.nav-link.active:focus-visible {
    position: relative;
    color: #ff344c;
    background: transparent;
}

.nav-link.active::after {
    position: absolute;
    display: block;
    right: 15px;
    bottom: 1px;
    left: 15px;
    height: 2px;
    border-radius: 2px;
    background: #ed1835;
    content: '';
}

.nav-link:hover {
    color: #ff344c;
    background: transparent;
}

@media (max-width: 768px) {
    .nav-link.active::after {
        right: 9px;
        left: 9px;
    }
}

.player-modal-overlay,
.guild-modal .stats-profile-overlay,
.tester-modal .modal-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.tester-modal .modal-content,
.guild-modal .stats-profile-dialog,
.player-modal .stats-profile-dialog {
    margin: auto;
    animation: profile-dialog-enter 0.24s ease-out both;
}

@keyframes profile-dialog-enter {
    from { opacity: 0; transform: scale(0.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.scroll-reveal {
    opacity: 1;
    transform: translateY(16px);
    transition: transform 0.55s cubic-bezier(0.2, 0.75, 0.25, 1);
}

.scroll-reveal.is-visible {
    transform: translateY(0);
}

.home-podium-card.scroll-reveal,
.home-runner-up.scroll-reveal,
.feature-card.scroll-reveal {
    transition-delay: var(--reveal-delay, 0ms);
}

@media (max-width: 768px) {
    .navbar {
        position: sticky;
        top: 8px;
        left: auto;
        width: calc(100% - 24px);
        margin: 8px auto 0;
        transform: none;
    }

    #main > .page-header {
        padding: 34px 0 26px;
    }

    .hero {
        padding-top: 38px;
    }
}

@media (max-width: 600px) {
    .navbar {
        margin-bottom: 0;
    }

    .home-section-heading {
        padding: 0 0 26px;
        margin-bottom: 12px;
    }

    .home-section-heading .home-section-link {
        right: 50%;
        bottom: 0;
        transform: translateX(50%);
        white-space: nowrap;
    }

    .home-top-podium {
        gap: 7px;
    }

    .home-podium-card,
    .home-podium-card.podium-place-1 {
        min-height: 245px;
        padding: 10px 5px 8px;
    }

    .home-podium-skin-wrap,
    .podium-place-1 .home-podium-skin-wrap {
        height: 145px;
    }

    .home-podium-rank-label {
        font-size: 2.2rem;
    }

    .podium-place-1 .home-podium-rank-label {
        font-size: 2.8rem;
    }

    .home-podium-region {
        font-size: 0.6rem;
    }

    .home-guild-icon-wrap,
    .podium-place-1 .home-guild-icon-wrap {
        width: 54px;
        height: 54px;
        margin-bottom: 8px;
    }

    .home-guild-podium-card .home-podium-name {
        font-size: 0.8rem;
    }

    .home-guild-members,
    .home-guild-meta {
        font-size: 0.58rem;
    }

    .home-runner-up {
        grid-template-columns: 28px 32px minmax(65px, 1fr) auto auto;
        gap: 7px;
        min-height: 58px;
        padding: 7px 8px;
    }

    .home-runner-skin-wrap {
        width: 32px;
        height: 40px;
    }

    .home-guild-runner-icon-wrap {
        width: 32px;
        height: 32px;
    }

    .home-runner-name {
        font-size: 0.74rem;
    }

    .home-runner-modes,
    .home-runner-points {
        font-size: 0.63rem;
    }

    .player-modal-overlay,
    .guild-modal .stats-profile-overlay,
    .tester-modal .modal-overlay {
        padding: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        transform: none;
        transition: none;
    }
}
