/* Shared layout: fluid surfaces, stable typography and touch-friendly controls. */
:root{--shell-width:92%;--shell-max:2240px;--layout-gap:20px}
.shell,.site-header.shell{width:var(--shell-width);max-width:var(--shell-max)}
.content-layout{margin-left:0;gap:var(--layout-gap);grid-template-columns:minmax(0,2.7fr) minmax(300px,1fr)}
.main-column,.sidebar,.sidebar-banner-list{gap:16px}
.homepage .servers-section{margin-top:0}
.site-header{height:80px;padding-inline:24px;gap:24px;background:#040e19f5;transition:background .25s,border-color .25s,box-shadow .25s;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
@media(min-width:1400px){.site-header.is-scrolled{background:#040e19cc;border-bottom-color:#00c8ff40;box-shadow:0 8px 28px #0004}.site-header.is-scrolled:focus-within{background:#040e19eb}}
.brand-symbol{width:54px;height:62px}
.brand-wordmark>span{font-size:28px}
.brand-wordmark small{font-size:8px;letter-spacing:2.6px}
.header-navigation{gap:16px}
.nav-link{font-size:11px;gap:7px;padding-inline:9px;min-height:46px}
.nav-link>.bi{font-size:15px}
.header-actions{gap:12px}
.search-form:not(.search-page-form){width:180px;height:38px}
.search-form input{font-size:12px}
.search-form button{width:38px;height:36px}
.login-link,.register-button{font-size:11px}
.login-link span{display:inline}
.register-button{min-height:38px;padding-inline:14px}
.hero{width:100%;height:auto;min-height:268px;aspect-ratio:6/1;margin-bottom:20px}
.hero-content{height:100%;display:flex;flex-direction:column;justify-content:center;max-width:850px;padding:28px 70px 40px 80px}
.hero h1,.hero h2{font-size:38px;line-height:1.18;margin-bottom:10px}
.hero-description{font-size:14px;line-height:1.6}
.hero-actions{margin-top:22px;flex-wrap:wrap}
.hero-actions .button{font-size:13px;min-height:44px}
.eyebrow{font-size:11px;margin-bottom:8px}
.hero-motto{top:50%;transform:translateY(-50%);right:6%;font-size:15px}
.section-heading,.servers-section .section-heading,.sidebar .section-heading{min-height:48px;padding:10px 16px;gap:12px;flex-wrap:wrap}
.section-heading h2,.sidebar .section-heading h2{font-size:14px;line-height:1.4;letter-spacing:.6px}
.section-link,.sidebar .section-link,.categories-section .section-link{font-size:11px;min-height:24px;white-space:normal}
.category-grid{padding:14px;gap:14px}
.category-card{min-height:200px;padding:18px}
.category-card h3{font-size:18px;line-height:1.35;margin-bottom:8px}
.category-card p{font-size:13px;line-height:1.55;max-width:260px;margin-bottom:16px}
.category-cta{font-size:12px}
.category-icon{margin-bottom:10px}
.news-list{padding:12px;gap:10px}
.news-item{padding:7px;gap:16px;min-height:106px}
.news-image{width:160px;height:90px}
.news-upload-image{width:100%;height:100%;object-fit:cover}
.news-title{flex-wrap:wrap;gap:6px 10px;margin-bottom:5px}
.news-title h3,.page-content .news-title h3{font-size:15px;line-height:1.4}
.news-content>p,.page-content .news-content>p{font-size:13px;line-height:1.5}
.tag{font-size:9px}
.news-meta,.page-content .news-meta{font-size:11px;gap:8px 18px;margin-top:8px}
.news-arrow{width:32px;min-height:32px}
.server-grid{padding:12px;gap:12px}
.server-card,.server-directory .server-card{padding:12px}
.server-top,.server-directory .server-top{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:10px;min-height:74px;padding-bottom:10px;align-items:start}
.server-card .server-avatar,.server-directory .server-avatar{width:40px;height:40px;align-self:start}
.server-labels{position:static;gap:8px;min-width:35px}
.server-details h3,.server-directory .server-details h3{font-size:13px;padding-right:0;margin-bottom:4px}
.copy-address,.server-directory .copy-address{font-size:11px;white-space:normal;overflow-wrap:anywhere;line-height:1.4}
.server-map,.server-directory .server-map{font-size:11px;padding-right:0;margin-top:4px}
.game-badge{font-size:9px;padding:2px 5px}
.server-bottom{gap:10px;padding-top:10px;flex-wrap:wrap}
.player-count,.server-directory .player-count{font-size:12px}
.connect-button,.homepage .connect-button,.server-directory .connect-button{font-size:11px;min-height:34px;padding:7px 10px;margin-left:auto}
.video-preview{aspect-ratio:2.15;margin:12px;width:calc(100% - 24px)}
.video-caption strong{font-size:16px}
.video-caption>span{font-size:12px}
.partner-list{padding:12px;gap:10px}
.partner-card{min-height:70px;padding:12px;gap:12px}
.partner-card strong{font-size:14px;overflow-wrap:anywhere}
.partner-card small{font-size:12px;line-height:1.5}
.partner-icon{width:40px;height:40px;font-size:25px;flex-shrink:0}
.page-slider{margin-top:0}
.page-banner-wide{min-height:260px}
.page-banner-copy p{font-size:14px}
.page-banner .page-banner-button{font-size:12px;min-height:42px}
.page-banner-compact{min-height:172px;padding:22px}
.page-banner-compact .page-banner-copy h2{font-size:20px}
.page-banner-compact .page-banner-button{font-size:12px;min-height:38px}
.site-footer{margin-top:32px;padding:28px 24px 0}
.footer-grid{gap:32px;grid-template-columns:2fr 1fr 1fr 1fr}
.footer-about p{font-size:13px;max-width:390px}
.footer-grid h2{font-size:13px}
.footer-grid>div:not(:first-child) a{font-size:13px;min-height:32px}
.footer-bottom{font-size:12px;flex-wrap:wrap;gap:16px}
.footer-bottom>div{flex-wrap:wrap;gap:12px 22px}
.footer-bottom a{min-height:28px}
.footer-bottom .developer-credit{gap:5px;color:var(--cyan);font-size:12px}
.developer-credit .bi{font-size:16px;line-height:1;flex-shrink:0}
.footer-bottom .developer-credit:hover{color:#8deaff}
.inner-page{padding-top:24px}
.page-content{max-width:1120px;margin-inline:0}
.page-content:has(>.news-list),.page-content:has(>.partner-list),.page-content:has(>.directory-links){max-width:none}
.page-heading>p{font-size:15px;max-width:760px}
.breadcrumbs{font-size:12px;flex-wrap:wrap}
.page-content>p,.page-content ul,.article-body{font-size:15px;line-height:1.85}
.page-content .news-image{width:180px;height:108px}
.filter-tabs a{min-height:42px;display:inline-flex;align-items:center;font-size:13px}
.search-page-form{max-width:none}
.search-page-form input{font-size:16px}
.button{white-space:normal;text-align:center;overflow-wrap:anywhere}
.directory-link{min-width:0;overflow-wrap:anywhere}
.slider-dots button,.slider-pause{min-width:24px;min-height:24px}
.slider-dots button::before{top:11px}
@media(min-width:2000px){.hero{aspect-ratio:6.5/1}.category-card{min-height:210px}.news-image{width:200px;height:110px}.news-item{min-height:126px}.page-banner-wide{min-height:300px}.page-banner-compact{min-height:195px}}
@media(max-width:1699px){.server-grid,.server-directory .server-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1399px){
    .site-header{justify-content:space-between;height:74px;padding-inline:18px}
    .menu-toggle{display:inline-grid;width:44px;height:44px}
    .header-navigation{display:none;position:absolute;left:0;right:0;top:calc(100% - 1px);padding:16px;background:#06111ffb;border:1px solid #165373;border-radius:0 0 8px 8px;max-height:calc(100dvh - 80px);overflow-y:auto;overscroll-behavior:contain}
    .header-navigation.is-open{display:block}
    .main-nav{display:grid;grid-template-columns:1fr;gap:4px}
    .nav-link{width:100%;justify-content:flex-start;font-size:14px;min-height:44px;padding-inline:12px;gap:12px}
    .nav-link>.bi-chevron-down{margin-left:auto}
    .dropdown-menu{position:static;margin:0 8px 6px;box-shadow:none}
    .dropdown-menu a{font-size:13px;min-height:44px}
    .header-actions{display:flex;flex-wrap:wrap;margin-top:12px;padding-top:14px;border-top:1px solid var(--line);gap:14px}
    .header-actions .search-form{flex:1;width:auto;min-width:180px;height:44px}
    .header-actions .search-form input{font-size:16px}
    .login-link,.register-button{font-size:13px;min-height:44px}
    .hero-motto{display:none}
    .hero-art .scene-agent{right:3%;max-width:48%}
    .category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .hero h1,.hero h2{white-space:normal}
}
@media(max-width:1100px){
    .content-layout{grid-template-columns:1fr}
    .homepage .sidebar{grid-template-columns:1fr}
    .hero{aspect-ratio:auto;min-height:290px}
    .hero-content{padding-inline:56px;max-width:740px}
    .hero-description br{display:none}
    .video-preview{aspect-ratio:2.5}
    .page-banner-wide{grid-template-columns:minmax(0,1fr) auto}
}
@media(max-width:768px){
    :root{--shell-width:calc(100% - 32px);--layout-gap:16px}
    .hero-content{padding:28px 42px 48px;max-width:none}
    .hero h1,.hero h2{font-size:30px;max-width:510px}
    .hero-description{font-size:14px;max-width:430px}
    .hero-art .scene-agent{opacity:.55}
    .footer-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 16px}
    .footer-about{grid-column:1/-1;display:block}
    .footer-about p{margin-top:12px}
    .page-content .news-image{width:130px;height:104px}
    .page-banner-wide{grid-template-columns:1fr;gap:20px}
    .page-banner-wide .page-banner-button{justify-self:end}
}
@media(max-width:576px){
    :root{--shell-width:calc(100% - 24px)}
    .site-header{height:70px;padding-inline:12px}
    .brand-symbol{width:42px;height:50px}
    .brand-wordmark>span{font-size:23px}
    .brand-wordmark small{font-size:7px;letter-spacing:2px}
    .hero{min-height:360px;margin-bottom:16px}
    .hero-content{padding:28px 32px 48px}
    .hero h1,.hero h2{font-size:28px;line-height:1.2;max-width:100%;margin-bottom:12px}
    .hero h1 span,.hero h2 span{display:inline}
    .eyebrow{font-size:9px;letter-spacing:1.3px;margin-bottom:12px}
    .hero-description{font-size:13px;max-width:none;line-height:1.6}
    .hero-actions{gap:10px;margin-top:18px}
    .hero-actions .button{font-size:11px;min-height:42px;padding-inline:12px;gap:8px}
    .hero .slider-arrow{width:25px;height:34px;top:calc(50% - 17px)}
    .hero .slider-arrow.previous{left:3px}.hero .slider-arrow.next{right:3px}
    .section-heading,.sidebar .section-heading{padding:10px 12px;flex-wrap:wrap;gap:6px 12px}
    .section-heading h2,.sidebar .section-heading h2{font-size:13px}
    .section-link,.sidebar .section-link,.categories-section .section-link{font-size:11px}
    .category-grid{grid-template-columns:1fr;padding:12px;gap:12px}
    .category-card{padding:18px;min-height:170px}
    .category-card h3{margin:0 0 8px}
    .category-card p{max-width:none;padding-right:46px;font-size:13px}
    .category-icon{right:16px;top:18px;width:40px;height:40px;font-size:26px}
    .news-list{padding:10px}
    .news-item,.page-content .news-item{display:grid;grid-template-columns:76px minmax(0,1fr);align-items:start;padding:10px;gap:12px;position:relative}
    .news-image,.page-content .news-image{width:76px;height:80px;margin:0}
    .news-title{display:flex;padding:0}
    .news-title h3,.page-content .news-title h3{font-size:14px;margin:0}
    .news-content>p,.page-content .news-content>p{font-size:12px}
    .news-meta,.page-content .news-meta{font-size:10px;gap:8px 12px;padding-right:24px}
    .news-arrow{top:auto;bottom:5px;right:4px;min-height:28px;width:26px;height:28px;font-size:13px}
    .server-grid,.server-directory .server-grid{grid-template-columns:1fr}
    .server-top,.server-directory .server-top{grid-template-columns:40px minmax(0,1fr) auto;gap:10px}
    .server-details h3,.server-directory .server-details h3{font-size:13px}
    .copy-address{min-height:24px}
    .connect-button,.homepage .connect-button,.server-directory .connect-button{min-height:40px;font-size:12px}
    .video-preview{aspect-ratio:1.9}
    .video-caption strong{font-size:15px}
    .video-caption>span{font-size:11px}
    .partner-card{gap:10px}
    .partner-card strong{font-size:14px}
    .partner-card small{font-size:12px}
    .page-banner-wide{min-height:300px;padding:28px 36px 48px}
    .page-banner-copy p{font-size:13px}
    .page-banner-compact{min-height:170px;padding:20px}
    .site-footer{padding:24px 12px 0}
    .footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .footer-grid>div:not(:first-child) a{min-height:36px;font-size:13px}
    .footer-bottom{font-size:11px}
    .footer-bottom>div{gap:8px 16px}
    .page-heading h1{font-size:28px}
    .page-heading>p{font-size:14px}
    .page-content{padding-inline:0}
    .directory-links{grid-template-columns:1fr}
}
@media(max-width:360px){.hero{min-height:410px}.hero-actions{flex-direction:column;align-items:flex-start}.hero-actions .button{min-width:154px}.news-item,.page-content .news-item{grid-template-columns:60px minmax(0,1fr);gap:10px}.news-image,.page-content .news-image{width:60px;height:72px}.brand-wordmark>span{font-size:21px}}

.hero .slider-arrow,.page-slider .slider-arrow{width:36px;height:36px;min-width:36px;min-height:36px;aspect-ratio:1;padding:0;border-radius:50%;top:var(--slider-arrow-y,50%);transform:translateY(-50%);font-size:16px;line-height:1}
.slider-arrow .bi{display:grid;place-items:center;width:1em;height:1em;line-height:1}
.slider-arrow .bi::before{display:block;line-height:1;vertical-align:0}
.hero .slider-arrow:active,.page-slider .slider-arrow:active{transform:translateY(-50%)}
@media(max-width:576px){.hero .slider-arrow,.page-slider .slider-arrow{width:28px;height:28px;min-width:28px;min-height:28px;font-size:14px}}
