:root {
  --ink: #17191d;
  --paper: #f4f5f6;
  --white: #fff;
  --red: #c92925;
  --red-dark: #9e1d1a;
  --gold: #d7a83e;
  --line: #e2e4e7;
  --muted: #70747b;
  --shell: 1200px;
  --shadow: 0 12px 35px rgba(18, 22, 28, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Microsoft YaHei", "PingFang SC", sans-serif; font-size: 15px; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a { touch-action: manipulation; }
img { max-width: 100%; height: auto; }
.shell { width: min(var(--shell), calc(100% - 32px)); margin: auto; }
.sr-only { position: absolute!important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 9999; left: 12px; top: -70px; padding: 10px 16px; background: var(--red); color: #fff; transition: top .2s; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.topline { background: #111318; color: #aeb2ba; font-size: 12px; }
.topline .shell { min-height: 34px; display: flex; align-items: center; justify-content: space-between; }
.brandbar { min-height: 92px; display: flex; align-items: center; gap: 40px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 300px; }
.brand-mark, .brand-logo { width: 52px; height: 52px; flex: 0 0 52px; }
.brand-mark { display: grid; place-items: center; background: var(--red); color: #fff; font: 800 30px Georgia, serif; transform: skew(-7deg); }
.brand-logo { display: block; object-fit: contain; }
.brand strong { display: block; font-size: 25px; line-height: 1.2; }
.brand small { display: block; margin-top: 4px; max-width: 420px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search { margin-left: auto; width: min(440px, 42vw); display: flex; border: 2px solid var(--ink); background: #fff; }
.search input { min-width: 0; flex: 1; height: 42px; border: 0; padding: 0 14px; outline: 0; }
.search button { width: 76px; border: 0; background: var(--ink); color: #fff; font-weight: 700; cursor: pointer; }
.search button:hover { background: var(--red); }
.menu-toggle { display: none; }

.nav { position: relative; z-index: 50; background: var(--ink); color: #fff; border-bottom: 3px solid var(--red); }
.nav .shell, .nav ul, .nav-shortcuts { display: flex; align-items: center; min-height: 50px; }
.nav ul { margin: 0; padding: 0; }
.nav-shortcuts { margin-left: auto; }
.nav li { list-style: none; }
.nav a { display: flex; align-items: center; height: 50px; padding: 0 22px; font-weight: 700; white-space: nowrap; }
.nav a:hover, .page-index .nav-module li:first-child > a { background: var(--red); }

.intro-band { background: #fff; border-bottom: 1px solid var(--line); }
.intro-band .shell { display: flex; align-items: center; gap: 18px; min-height: 48px; }
.intro-band p { margin: 0; color: #555b62; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.intro-label, .guide-tag { display: inline-block; background: var(--red); color: #fff; padding: 4px 9px; font-size: 12px; font-style: normal; }

.hero { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(300px, .8fr); gap: 18px; padding-top: 22px; }
.slider { position: relative; height: 400px; overflow: hidden; background: #2a2d32; box-shadow: var(--shadow); }
.slide { position: absolute; inset: 0; display: flex; align-items: flex-end; background: linear-gradient(125deg, #262b32, #6f2220 58%, #c99b38); background-position: center; background-size: cover; opacity: 0; visibility: hidden; transition: opacity .45s ease; }
.slide::after { content: "GAME / GUIDE"; position: absolute; right: 30px; top: 26px; color: rgba(255,255,255,.08); font: 800 54px Georgia, serif; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,10,14,.88) 0%, rgba(8,10,14,.08) 72%); }
.slide-copy { position: relative; z-index: 1; display: grid; gap: 9px; padding: 36px; color: #fff; }
.slide-copy em { color: #f0c45c; font: 700 12px Georgia, serif; }
.slide-copy strong { max-width: 720px; font-size: 34px; line-height: 1.3; }
.slide-copy small { font-size: 15px; line-height: 1.7; }
.slide-arrow { position: absolute; z-index: 3; top: 46%; width: 40px; height: 50px; border: 0; background: rgba(17,17,17,.65); color: #fff; font-size: 30px; cursor: pointer; }
.slide-arrow:hover { background: var(--red); }
.slide-arrow.prev { left: 0; }
.slide-arrow.next { right: 0; }
.dots { position: absolute; z-index: 3; right: 24px; bottom: 22px; display: flex; gap: 8px; }
.dot { width: 24px; height: 5px; border: 0; background: rgba(255,255,255,.4); padding: 0; cursor: pointer; }
.dot.is-active { background: var(--gold); }

.headline-panel, .recommend { background: #fff; border-top: 3px solid var(--red); padding: 0 18px; box-shadow: var(--shadow); }
.panel-title { min-height: 50px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.panel-title span { font-size: 18px; font-weight: 800; }
.panel-title a, .section-more { font-size: 13px; color: var(--muted); }
.panel-title a:hover, .section-more:hover { color: var(--red); }
.headline { display: flex; gap: 10px; align-items: center; min-width: 0; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.headline span { flex: 0 0 auto; color: var(--red); font-size: 12px; }
.headline strong { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.headline:hover strong { color: var(--red); }
.headline.lead { display: block; text-align: center; padding: 18px 0; }
.headline.lead span { display: inline-block; margin-bottom: 8px; }
.headline.lead strong { display: block; color: var(--red); font-size: 19px; line-height: 1.45; }

.section { padding-top: 46px; scroll-margin-top: 18px; }
.section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 18px; border-bottom: 2px solid var(--ink); }
.section-head > div { border-bottom: 4px solid var(--red); padding: 0 14px 11px 0; margin-bottom: -3px; }
.section-head small { color: var(--red); font: 700 11px Georgia, serif; }
.section-head h1, .section-head h2 { margin: 3px 0 0; font-size: 26px; }
.section-head p { color: var(--muted); font-size: 13px; }
.section-more { padding-bottom: 13px; }

.server-table { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.server-row { display: grid; grid-template-columns: 2fr 1.1fr 1fr .8fr .7fr; align-items: center; min-height: 58px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.server-row:last-child { border: 0; }
.server-row:not(.server-header):hover { background: #fff8f7; }
.server-header { min-height: 44px; background: var(--ink); color: #fff; font-size: 13px; }
.server-row strong { color: #26282c; }
.server-row b { color: var(--red); }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #32a65a; box-shadow: 0 0 0 4px rgba(50,166,90,.1); }
.empty-state { padding: 36px 22px; background: #fff; color: var(--muted); text-align: center; border: 1px dashed var(--line); }

.guide-section { padding-bottom: 55px; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.guide-card { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; background: #fff; border: 1px solid var(--line); padding: 14px; transition: transform .2s, box-shadow .2s; }
.guide-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.guide-thumb { min-height: 126px; background: center / cover no-repeat; }
.guide-thumb.placeholder, .list-thumb-empty { display: grid; place-items: center; background: linear-gradient(135deg, #292d33, var(--red)); color: rgba(255,255,255,.45); font: 800 30px Georgia, serif; }
.guide-card h3 { margin: 10px 0 7px; font-size: 17px; line-height: 1.45; }
.guide-card h3 a:hover { color: var(--red); }
.guide-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.guide-card time { display: block; margin-top: 9px; color: #999; font-size: 12px; }
.recommend > a { display: block; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.recommend > a:hover strong { color: var(--red); }
.recommend > a small { display: block; margin-top: 5px; color: var(--muted); line-height: 1.5; }
.empty-note { color: var(--muted); font-size: 13px; line-height: 1.7; }
.rank-title { margin-top: 8px; }
.recommend .rank { display: flex; align-items: center; gap: 10px; }
.rank i { color: #aaa; font: italic 700 17px Georgia, serif; }
.rank:nth-of-type(-n+3) i { color: var(--red); }

.inner-page { padding-top: 26px; padding-bottom: 55px; }
.breadcrumb { margin-bottom: 18px; color: var(--muted); font-size: 13px; }
.breadcrumb a:hover { color: var(--red); }
.article-list, .article-main { min-width: 0; }
.article-list { background: #fff; }
.article-list .section-head { padding: 20px 20px 0; margin-bottom: 0; }
.list-item { display: flex; gap: 20px; background: #fff; padding: 20px; border-bottom: 1px solid var(--line); }
.list-thumb { flex: 0 0 210px; min-height: 132px; background: center / cover no-repeat; }
.list-item h2 { font-size: 20px; margin: 10px 0; line-height: 1.45; }
.list-item h2 a:hover { color: var(--red); }
.list-item p { color: var(--muted); line-height: 1.7; }
.list-item time, .article-meta { color: #999; font-size: 12px; }
.side-module { margin-bottom: 18px; }
.side-content ul { padding: 0; margin: 0; }
.side-content li { list-style: none; border-bottom: 1px dashed var(--line); padding: 10px 0; }
.pagebar { display: flex; flex-wrap: wrap; gap: 7px; padding: 25px 20px; }
.pagebar a, .pagebar span { min-width: 38px; height: 38px; display: grid; place-items: center; background: var(--paper); }
.pagebar .now { background: var(--red); color: #fff; }

.article { background: #fff; padding: 34px; box-shadow: var(--shadow); }
.article header { text-align: center; border-bottom: 1px solid var(--line); padding-bottom: 24px; }
.article h1 { font-size: 30px; line-height: 1.45; overflow-wrap: anywhere; }
.article-body { font-size: 16px; line-height: 1.95; padding-top: 22px; overflow-wrap: anywhere; }
.article-body img { display: block; margin: 20px auto; }
.article-body table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.article-body th, .article-body td { padding: 10px; border: 1px solid var(--line); }
.article-body pre { max-width: 100%; overflow: auto; padding: 16px; background: #22252a; color: #f5f5f5; }
.article-body iframe, .article-body video { max-width: 100%; }
.article-tags { margin-top: 25px; padding-top: 18px; border-top: 1px solid var(--line); }
.article-tags a { display: inline-block; margin: 4px; padding: 5px 10px; background: var(--paper); }
.article-tags a:hover { background: var(--red); color: #fff; }
.post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.post-navigation div:last-child { text-align: right; }
.post-navigation span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; }
.post-navigation a:hover { color: var(--red); }
.post-navigation em { color: #aaa; font-style: normal; }

.site-footer { background: #17191d; color: #aeb2ba; padding: 38px 0; }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; }
.site-footer strong { color: #fff; font-size: 20px; }
.site-footer p { max-width: 660px; line-height: 1.7; }
.site-footer a:hover { color: #fff; }
.footer-meta { text-align: right; line-height: 1.8; }
.back-top { position: fixed; z-index: 100; right: 22px; bottom: 22px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--red); color: #fff; font-size: 20px; box-shadow: var(--shadow); cursor: pointer; }
.back-top[hidden] { display: none; }
.not-found { min-height: 58vh; text-align: center; padding: 80px 0; }
.not-found > strong { font: 800 100px Georgia, serif; color: var(--red); }
.not-found p { color: var(--muted); }
.not-found a { display: inline-block; margin: 8px 4px; background: var(--ink); color: #fff; padding: 12px 24px; }
.not-found .not-found-search { background: #fff; color: var(--ink); border: 1px solid var(--line); }

@media (max-width: 1024px) {
  .nav a { padding: 0 15px; }
  .hero { grid-template-columns: minmax(0, 1.55fr) minmax(280px, .85fr); }
  .guide-card { grid-template-columns: 125px minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .brandbar { min-height: 76px; }
  .brand { min-width: 0; }
  .brand small, .search { display: none; }
  .menu-toggle { display: grid; gap: 4px; margin-left: auto; width: 44px; height: 44px; padding: 10px; background: transparent; border: 1px solid var(--line); }
  .menu-toggle span { height: 2px; background: var(--ink); }
  .nav { display: none; }
  .nav.is-open { display: block; }
  .nav .shell, .nav ul, .nav-shortcuts { display: grid; width: 100%; }
  .nav-shortcuts { margin-left: 0; }
  .nav a { height: 48px; padding: 0 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .hero { grid-template-columns: 1fr; }
  .slider { height: 340px; }
  .headline-panel { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 18px; }
  .headline-panel .panel-title, .headline-panel .empty-note { grid-column: 1 / -1; }
  .content-layout { grid-template-columns: 1fr; }
  .recommend { margin-top: 12px; }
  .guide-grid { grid-template-columns: 1fr 1fr; }
  .guide-card { grid-template-columns: 120px 1fr; }
  .server-row { grid-template-columns: 1.7fr 1fr 1fr .8fr; }
  .server-row > *:last-child { display: none; }
}

@media (max-width: 640px) {
  .shell { width: min(calc(100% - 20px), var(--shell)); }
  .topline-right { display: none; }
  .brand strong { max-width: 230px; font-size: 20px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .brand-mark, .brand-logo { width: 42px; height: 42px; flex-basis: 42px; }
  .intro-band .shell { align-items: flex-start; padding: 12px 0; }
  .intro-band p { white-space: normal; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .hero { width: 100%; padding-top: 0; gap: 10px; }
  .slider { height: 280px; }
  .slide-copy { padding: 25px 20px; }
  .slide-copy strong { font-size: 26px; }
  .slide-copy small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .slide::after { font-size: 32px; }
  .headline-panel { grid-template-columns: 1fr; margin: 0 10px; }
  .headline.lead { text-align: left; }
  .section { padding-top: 34px; }
  .section-head { align-items: center; }
  .section-head p { display: none; }
  .section-head h1, .section-head h2 { font-size: 23px; }
  .server-table { background: transparent; border: 0; display: grid; gap: 10px; box-shadow: none; }
  .server-header { display: none; }
  .server-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; background: #fff; padding: 15px; min-height: 0; border: 1px solid var(--line); }
  .server-row > * { display: block!important; }
  .server-row strong { grid-column: 1 / -1; font-size: 17px; }
  .server-row span::before, .server-row time::before { content: attr(data-label) "："; color: #999; }
  .server-row b { text-align: right; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-card { grid-template-columns: 112px 1fr; padding: 10px; }
  .guide-card p { display: none; }
  .guide-thumb { min-height: 108px; }
  .content-layout { gap: 10px; }
  .list-item { padding: 14px; gap: 13px; }
  .list-thumb { flex-basis: 110px; min-height: 90px; }
  .list-item p { display: none; }
  .list-item h2 { font-size: 17px; }
  .article { padding: 22px 16px; }
  .article h1 { font-size: 25px; }
  .article-body { font-size: 16px; line-height: 1.85; }
  .article-body table { display: block; overflow-x: auto; white-space: nowrap; }
  .post-navigation { grid-template-columns: 1fr; }
  .post-navigation div:last-child { text-align: left; }
  .footer-grid { display: block; }
  .footer-meta { text-align: left; margin-top: 20px; }
  .back-top { right: 14px; bottom: 14px; }
}

@media (max-width: 420px) {
  .slider { height: 250px; }
  .slide-copy strong { font-size: 22px; }
  .slide-arrow { width: 34px; height: 44px; }
  .dots { right: 16px; bottom: 14px; }
  .guide-card { grid-template-columns: 96px 1fr; }
  .guide-thumb { min-height: 96px; }
  .list-thumb { flex-basis: 88px; min-height: 78px; }
}

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

/* 1.2.0 screenshot-matched dark portal home */
:root { --accent: #f4bf23; --portal-bg: #080d14; --portal-panel: #111b29; --portal-card: #131e2d; --portal-line: #273548; --portal-text: #f4f7fb; --portal-subtle: #91a0b5; }
body.page-index { background: var(--portal-bg); color: var(--portal-text); }
.portal-shell { width: min(1180px, calc(100% - 110px)); margin-inline: auto; }
.portal-header { height: 70px; background: var(--portal-header, #141b26); color: #dce3ee; border-bottom: 1px solid #f4bf23; }
.header-inner { height: 70px; display: flex; align-items: center; }
.portal-brand { height: 70px; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.portal-brand img { width: 25px; height: 25px; object-fit: contain; }
.brand-swords { color: #fff; font-size: 23px; line-height: 1; filter: drop-shadow(0 1px 0 #000); }
.portal-brand strong { color: var(--accent); font-size: 26px; letter-spacing: 1px; }
.portal-brand small { color: #8e99aa; font-size: 12px; }
.portal-nav { height: 70px; margin-left: auto; display: flex; align-items: center; gap: 4px; }
.portal-nav a { min-width: 76px; height: 40px; display: grid; place-items: center; padding: 0 14px; color: #b8c1cd; font-size: 16px; font-weight: 700; border: 1px solid transparent; border-radius: 3px; }
.portal-nav a:hover, .portal-nav a.active { color: #f4bf23; border-color: #f4bf23; background: rgba(244,191,35,.04); }
.portal-header .menu-toggle { margin-left: auto; border-color: #4a5668; }
.portal-header .menu-toggle span { background: #fff; }

.dark-home { min-height: 70vh; padding-bottom: 38px; }
.portal-slider { height: 300px; margin-top: 16px; background: #111b29; border: 1px solid var(--portal-line); border-radius: 7px; box-shadow: 0 12px 28px rgba(0,0,0,.24); }
.portal-slider .portal-slide { background-image: linear-gradient(120deg, #132238, #343021 62%, #8b6711); }
.portal-slider .portal-slide::after { content: "GAME / FEATURED"; color: rgba(255,255,255,.07); }
.portal-slider .slide-shade { background: linear-gradient(90deg, rgba(5,10,17,.94) 0%, rgba(5,10,17,.55) 50%, rgba(5,10,17,.14) 100%); }
.portal-slider .slide-copy { max-width: 760px; padding: 34px 54px; }
.portal-slider .slide-copy em { color: var(--accent); letter-spacing: 1.5px; }
.portal-slider .slide-copy strong { font-size: 30px; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.portal-slider .slide-copy small { color: #d1d9e5; }
.portal-slider .slider-dots { position: absolute; z-index: 3; right: 24px; bottom: 20px; display: flex; gap: 8px; }
.portal-slider .dot.is-active { background: var(--accent); }
.portal-slider .slide-arrow:hover { background: var(--accent); color: #111; }
.promo-panel { min-height: 124px; position: relative; display: flex; align-items: center; overflow: hidden; margin-top: 14px; padding: 20px 28px; background: linear-gradient(110deg, #101c2b, #101926); border-left: 3px solid var(--accent); border-radius: 7px; }
.promo-panel::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 75% 0, rgba(32,88,142,.16), transparent 38%); pointer-events: none; }
.promo-copy { position: relative; z-index: 1; }
.promo-copy h1 { margin: 0 0 8px; color: var(--accent); font-size: 23px; line-height: 1.3; }
.promo-copy h1::first-letter { color: #ff512f; }
.promo-copy p { margin: 0 0 12px; color: #ced7e4; font-size: 13px; }
.promo-fire { position: absolute; right: 28px; top: 24px; font-size: 58px; opacity: .09; filter: grayscale(1); }
.gold-button, .mini-gold-button { display: inline-grid; place-items: center; border: 0; border-radius: 5px; background: linear-gradient(180deg, #ffcb35, #e6aa13); color: #17191d; font-weight: 800; box-shadow: 0 7px 18px rgba(244,191,35,.25); }
.gold-button { min-width: 142px; min-height: 31px; padding: 6px 17px; font-size: 13px; }
.gold-button:hover, .mini-gold-button:hover { transform: translateY(-1px); filter: brightness(1.06); }

.home-section { padding-top: 23px; }
.home-section-head { min-height: 42px; display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 15px; border-bottom: 1px solid var(--portal-line); }
.home-section-head h2 { margin: 0; padding: 0 0 11px; color: #f4bf23; font-size: 21px; line-height: 1.35; }
.home-section-head h2 .triangle { margin-right: 7px; color: #ff5b38; font-size: 10px; }
.home-section-head a { padding-top: 7px; color: #9ba9bb; font-size: 13px; }
.home-section-head a:hover { color: var(--accent); }
.server-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.server-card { min-width: 0; min-height: 152px; position: relative; padding: 18px 20px 17px; overflow: hidden; background: var(--portal-card); border: 1px solid var(--portal-line); border-radius: 7px; box-shadow: 0 5px 15px rgba(0,0,0,.12); transition: border-color .2s ease,box-shadow .2s ease,transform .2s ease; }
.server-card:hover { z-index: 1; border-color: var(--accent); box-shadow: 0 8px 24px rgba(244,191,35,.17),inset 0 0 0 1px rgba(244,191,35,.08); transform: translateY(-2px); }
.server-card h3 { margin: 0 58px 10px 0; color: #fff; font-size: 19px; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-badge { position: absolute; right: 20px; top: 0; min-width: 58px; height: 18px; display: grid; place-items: center; padding: 0 8px; background: #24d98b; color: #fff; border-radius: 0 0 5px 5px; font-size: 11px; font-weight: 900; letter-spacing: 1px; }
.card-badge.hot { background: #ff9f0a; }
.server-meta { min-height: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 13px; padding-bottom: 12px; color: #17d786; font-size: 14px; border-bottom: 1px solid #253345; }
.server-meta strong { color: var(--accent); }
.server-meta time { color: #59b9ff; }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 11px; }
.card-actions a { min-height: 34px; display: grid; place-items: center; border-radius: 4px; font-size: 14px; font-weight: 800; }
.card-actions > span { min-height: 34px; display: grid; place-items: center; border-radius: 4px; font-size: 14px; font-weight: 800; }
.enter-button { background: linear-gradient(180deg, #f65348, #d83a31); color: #fff; }
.detail-button { background: linear-gradient(180deg, #ffcb35, #e9ad14); color: #17191d; }
.card-actions a:hover { filter: brightness(1.09); }
.card-actions .disabled { opacity: .58; cursor: default; }
.dark-empty { min-height: 126px; display: grid; place-items: center; align-content: center; gap: 5px; background: var(--portal-card); border: 1px dashed var(--portal-line); border-radius: 6px; color: var(--portal-subtle); text-align: center; }
.dark-empty strong { color: #fff; }
.dark-empty p { margin: 0; font-size: 12px; }

.popular-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.popular-card { min-width: 0; min-height: 118px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px; background: var(--portal-card); border: 1px solid var(--portal-line); border-radius: 5px; text-align: center; }
.rank-number { width: 21px; height: 21px; display: grid; place-items: center; margin-bottom: 7px; border-radius: 50%; background: #ffc83d; color: #111; font: 800 12px Georgia, serif; }
.popular-card h3 { width: 100%; margin: 0; color: #fff; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.popular-card p { width: 100%; margin: 3px 0 8px; color: var(--portal-subtle); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-gold-button { min-width: 69px; min-height: 25px; padding: 4px 10px; font-size: 11px; }
.mini-gold-button.disabled { opacity: .75; box-shadow: none; }

.home-cta { min-height: 128px; display: grid; place-items: center; align-content: center; gap: 5px; margin-top: 22px; background: var(--portal-card); border: 1px solid var(--portal-line); border-radius: 7px; text-align: center; }
.home-cta strong { color: var(--accent); font-size: 15px; }
.home-cta p { margin: 0 0 7px; color: var(--portal-subtle); font-size: 12px; }
.portal-footer { padding: 23px 0 16px; background: #080d14; color: #61738a; border-top: 1px solid #1c2735; text-align: center; }
.portal-footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-bottom: 8px; }
.portal-footer nav a { color: #7790aa; font-size: 12px; }
.portal-footer nav a:hover { color: var(--accent); }
.portal-footer p { margin: 4px 0; font-size: 11px; }

body:not(.page-index) .portal-header { border-bottom-color: #f4bf23; }
body:not(.page-index) .portal-brand strong { color: var(--red); }
body:not(.page-index) .portal-nav a:hover, body:not(.page-index) .portal-nav a.active { color: #f4bf23; border-color: #f4bf23; }
body:not(.page-index) .portal-footer { background: #17191d; }

@media (max-width: 900px) {
  .portal-shell { width: calc(100% - 32px); }
  .portal-slider { height: 260px; }
  .portal-header .menu-toggle { display: grid; }
  .portal-nav { display: none; position: absolute; z-index: 100; left: 0; right: 0; top: 70px; height: auto; margin: 0; padding: 8px 16px; background: #141b26; border-bottom: 1px solid #f4bf23; }
  .portal-nav.is-open { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
  .portal-nav a { height: 42px; }
  .server-card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .popular-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 620px) {
  .portal-shell { width: calc(100% - 20px); }
  .portal-brand strong { font-size: 21px; }
  .portal-slider { height: 210px; margin-top: 10px; }
  .portal-slider .slide-copy { gap: 6px; padding: 25px 38px; }
  .portal-slider .slide-copy strong { font-size: 22px; }
  .portal-slider .slide-copy small { max-width: 92%; font-size: 13px; line-height: 1.5; }
  .portal-slider .portal-slide::after { right: 15px; top: 16px; font-size: 30px; }
  .portal-slider .slider-dots { right: 14px; bottom: 13px; }
  .portal-slider .dot { width: 18px; }
  .promo-panel { min-height: 155px; padding: 20px; }
  .promo-copy h1 { font-size: 20px; }
  .promo-copy p { max-width: 88%; line-height: 1.7; }
  .promo-fire { right: 12px; }
  .home-section-head { align-items: flex-start; }
  .home-section-head h2 { font-size: 16px; }
  .home-section-head a { max-width: 105px; text-align: right; line-height: 1.5; }
  .server-card-grid, .popular-grid { grid-template-columns: 1fr; }
  .popular-grid.is-placeholder { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .server-card { min-height: 145px; padding: 17px 16px 15px; }
  .server-card h3 { font-size: 18px; }
  .server-meta { font-size: 13px; }
  .card-actions a { min-height: 34px; }
  .home-cta { padding: 22px 14px; }
  .home-cta strong { line-height: 1.6; }
}
