:root {
  color-scheme: dark;
  --bg: #090a0c;
  --bg-soft: #101317;
  --bg-panel: #171a1e;
  --bg-panel-2: #20242a;
  --line: #343943;
  --line-soft: rgba(255, 255, 255, 0.08);
  --text: #f4efe6;
  --muted: #aeb3bb;
  --dim: #777f88;
  --red: #bd171b;
  --red-dark: #721113;
  --gold: #d8a64a;
  --gold-soft: #f4d089;
  --blue: #5ba7c8;
  --green: #46b76a;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  --wrap: 1180px;
  font-family: "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 72% 18%, rgba(189, 23, 27, 0.18), transparent 34rem),
    linear-gradient(180deg, #060607 0%, #11151a 48%, #08090b 100%);
  font-size: 14px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.protect-content,
.protect-content * {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.protect-content input,
.protect-content textarea,
.protect-content select {
  -webkit-user-select: text;
  user-select: text;
}

.protect-content img {
  -webkit-user-drag: none;
  user-drag: none;
}

.site-shell {
  min-height: 100vh;
}

.entry-loader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #ffe3a8;
  background:
    radial-gradient(circle at 50% 45%, rgba(122, 16, 18, 0.34), transparent 22rem),
    radial-gradient(circle at 50% 105%, rgba(221, 71, 19, 0.24), transparent 28rem),
    linear-gradient(180deg, #020203 0%, #100506 58%, #020203 100%);
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.entry-loader.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.entry-loader__smoke,
.entry-loader__flame,
.entry-loader__sparks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.entry-loader__smoke {
  background:
    radial-gradient(circle at 28% 46%, rgba(255, 255, 255, 0.07), transparent 17rem),
    radial-gradient(circle at 74% 40%, rgba(255, 210, 122, 0.06), transparent 20rem),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 94px);
  filter: blur(1px);
  opacity: 0.72;
  animation: entrySmoke 5.2s ease-in-out infinite alternate;
}

.entry-loader__flame {
  width: min(78vw, 520px);
  aspect-ratio: 1;
  inset: auto;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 213, 101, 0.34) 0 9%, rgba(209, 34, 30, 0.24) 24%, transparent 63%),
    conic-gradient(from 20deg, transparent, rgba(211, 45, 21, 0.22), transparent, rgba(255, 177, 61, 0.2), transparent);
  filter: blur(2px);
  animation: entryFlame 2.8s linear infinite;
}

.entry-loader__core {
  position: relative;
  z-index: 2;
  width: min(78vw, 330px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin-top: -50px;
}

.entry-loader__ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(244, 208, 137, 0.28);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(0, 0, 0, 0.78) 0 42%, transparent 43%),
    conic-gradient(from 0deg, rgba(244, 208, 137, 0.95), transparent 28%, rgba(201, 37, 31, 0.7), transparent 64%, rgba(244, 208, 137, 0.95));
  box-shadow: 0 0 34px rgba(209, 50, 28, 0.38), inset 0 0 30px rgba(244, 208, 137, 0.12);
  animation: entrySpin 3.6s linear infinite;
}

.entry-loader__logo {
  position: relative;
  z-index: 2;
  width: min(82vw, 340px);
  height: 170px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 16px rgba(244, 208, 137, 0.34));
  animation: entryLogoPulse 1.9s ease-in-out infinite alternate;
}

.entry-loader__copy {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: calc(50% + 170px);
  width: min(88vw, 480px);
  display: grid;
  justify-items: center;
  gap: 4px;
  transform: translateX(-50%);
  text-align: center;
}

.entry-loader__copy strong {
  color: #ffdf8b;
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.05;
  font-weight: 900;
  text-shadow: 0 3px 0 rgba(74, 6, 7, 0.94), 0 0 18px rgba(255, 206, 111, 0.46);
}

.entry-loader__copy span {
  color: #c9a861;
  font-size: 12px;
  letter-spacing: 4px;
}

.entry-loader__copy em {
  margin-top: 10px;
  color: #cfc2b3;
  font-style: normal;
  font-size: 15px;
}

.entry-loader__bar {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: calc(50% + 258px);
  width: min(70vw, 420px);
  height: 8px;
  overflow: hidden;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(244, 208, 137, 0.24);
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.72);
}

.entry-loader__bar span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #7b1012, #e13d2e 44%, #ffd36d 72%, #7b1012);
  box-shadow: 0 0 18px rgba(255, 188, 73, 0.5);
  transform-origin: left center;
  animation: entryBar 1.65s ease-in-out forwards;
}

.entry-loader__sparks {
  background:
    radial-gradient(circle at 24% 70%, rgba(255, 213, 101, 0.9) 0 2px, transparent 3px),
    radial-gradient(circle at 42% 64%, rgba(231, 63, 40, 0.8) 0 2px, transparent 3px),
    radial-gradient(circle at 62% 72%, rgba(255, 213, 101, 0.74) 0 2px, transparent 3px),
    radial-gradient(circle at 77% 58%, rgba(231, 63, 40, 0.72) 0 2px, transparent 3px);
  animation: entrySparks 1.8s ease-in-out infinite alternate;
}

@keyframes entrySmoke {
  from { transform: translate3d(-16px, 8px, 0) scale(1); }
  to { transform: translate3d(16px, -12px, 0) scale(1.05); }
}

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

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

@keyframes entryLogoPulse {
  from { transform: scale(0.96); opacity: 0.86; }
  to { transform: scale(1.03); opacity: 1; }
}

@keyframes entryBar {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes entrySparks {
  from { opacity: 0.38; transform: translateY(10px); }
  to { opacity: 0.9; transform: translateY(-14px); }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(9, 10, 12, 0.94);
  border-bottom: 1px solid rgba(216, 166, 74, 0.22);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(12px);
}

.topbar__inner {
  width: min(var(--wrap), calc(100% - 28px));
  height: 88px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px 1fr 150px;
  gap: 18px;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand--logo {
  height: 82px;
  justify-content: center;
  overflow: visible;
}

.brand-logo {
  width: 246px;
  height: 82px;
  display: block;
  object-fit: cover;
  object-position: center 56%;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 10px rgba(216, 166, 74, 0.22));
}

.brand-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--gold-soft);
  background:
    linear-gradient(145deg, rgba(219, 31, 31, 0.8), rgba(25, 16, 12, 0.95)),
    radial-gradient(circle, rgba(255, 226, 143, 0.9), transparent 66%);
  border: 1px solid rgba(244, 208, 137, 0.52);
  box-shadow: 0 0 28px rgba(189, 23, 27, 0.35);
  font-size: 27px;
  font-weight: 900;
  transform: skew(-8deg);
}

.brand-copy {
  margin-left: 12px;
  min-width: 0;
}

.brand-title {
  display: block;
  color: #fff8e8;
  font-size: 25px;
  font-weight: 900;
  line-height: 1.05;
  text-shadow: 0 2px 0 #5a090a, 0 0 20px rgba(216, 166, 74, 0.35);
  white-space: nowrap;
}

.brand-subtitle {
  display: block;
  margin-top: 5px;
  color: var(--gold);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.primary-nav {
  display: grid;
  grid-template-columns: repeat(7, minmax(70px, 1fr));
  gap: 4px;
  align-items: stretch;
}

.primary-nav a {
  min-height: 62px;
  padding: 10px 7px 9px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  color: #f5ead3;
  border: 1px solid transparent;
  border-radius: 4px;
}

.primary-nav a:hover,
.primary-nav a.is-active {
  color: #fff;
  background: linear-gradient(180deg, rgba(189, 23, 27, 0.38), rgba(216, 166, 74, 0.12));
  border-color: rgba(216, 166, 74, 0.25);
}

.nav-symbol {
  color: var(--gold-soft);
  font-size: 17px;
  line-height: 1;
}

.nav-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.nav-en {
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0;
}

.user-search {
  display: grid;
  gap: 8px;
  justify-items: end;
  align-content: center;
}

.visitor-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: var(--muted);
  white-space: nowrap;
}

.visitor-row a {
  color: var(--gold-soft);
  font-weight: 700;
}

.search-form {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 40px;
  border: 1px solid rgba(216, 166, 74, 0.25);
  background: #0d0f12;
}

.search-form input {
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.search-form button {
  width: 40px;
  border: 0;
  color: #1c1110;
  background: linear-gradient(180deg, #f1c367, #b77a21);
  font-weight: 900;
}

.hero {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-bottom: 1px solid rgba(216, 166, 74, 0.22);
  background: #09090a;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.38) 42%, rgba(0, 0, 0, 0.22) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.72)),
    url("./assets/hero-fantasy-forum.png") center 46% / cover no-repeat;
  transform: scale(1.02);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 68px;
  background: linear-gradient(180deg, transparent, rgba(9, 10, 12, 0.96));
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: min(var(--wrap), calc(100% - 28px));
  min-height: 360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 230px 1fr 300px;
  gap: 28px;
  align-items: stretch;
}

.hero-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px 0 58px;
}

.hero-kicker {
  display: inline-flex;
  width: max-content;
  padding: 4px 10px;
  color: #ffe9af;
  background: rgba(151, 24, 25, 0.45);
  border: 1px solid rgba(216, 166, 74, 0.36);
  font-size: 12px;
  font-weight: 700;
}

.hero h1 {
  margin: 14px 0 12px;
  color: #fff6df;
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.16;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 4px 0 rgba(81, 8, 8, 0.88), 0 0 24px rgba(216, 166, 74, 0.22);
}

.hero p {
  max-width: 620px;
  margin: 0;
  color: #e4d6bf;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-button {
  min-width: 146px;
  min-height: 58px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 8px 18px;
  color: #fff;
  border: 1px solid rgba(255, 231, 168, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 24px rgba(0, 0, 0, 0.32);
  font-weight: 900;
  border-radius: 5px;
}

.hero-button span {
  display: block;
  font-size: 12px;
  color: rgba(255, 244, 222, 0.78);
  line-height: 1;
  text-transform: uppercase;
}

.hero-button--red {
  background: linear-gradient(180deg, #e43032, #8d0f12);
}

.hero-button--gold {
  color: #231812;
  background: linear-gradient(180deg, #ffd96e, #b87925);
}

.hero-button--gold span {
  color: rgba(29, 19, 10, 0.7);
}

.hero-pill {
  margin-top: 22px;
  width: max-content;
  max-width: 100%;
  padding: 8px 12px;
  color: #ffdba0;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(216, 166, 74, 0.22);
  font-size: 13px;
}

.hero-pill a {
  color: #ffcf78;
  font-weight: 800;
}

.portal-landing {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: #090909;
  border-top: 1px solid #260708;
  border-bottom: 1px solid #2b2b2b;
}

.portal-landing::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.28) 38%, rgba(0, 0, 0, 0.34) 72%, rgba(0, 0, 0, 0.82) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.82)),
    url("./assets/hero-fantasy-forum.png") center 42% / cover no-repeat;
  transform: scale(1.02);
}

.portal-landing__inner {
  position: relative;
  z-index: 1;
  width: min(var(--wrap), calc(100% - 28px));
  min-height: 560px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: start;
  padding: 24px 0 32px;
}

.portal-left,
.portal-right {
  display: grid;
  gap: 12px;
}

.portal-center {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.portal-center-hero.hero-video-section {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin: 0 0 18px;
  padding: 0;
  color: #e9ddd2;
  background: #090304;
  border: 1px solid rgba(170, 54, 48, 0.45);
  box-shadow: none;
}

.portal-center-hero.hero-video-section::before,
.portal-center-hero.hero-video-section::after {
  content: none;
}

.hero-video-bg,
.hero-video-mask,
.hero-video-dark {
  position: absolute;
  inset: 0;
}

.hero-video-bg {
  z-index: 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5, 0, 0, 0.76), rgba(0, 0, 0, 0.2)),
    url("./assets/hero-fantasy-forum.png") center 42% / cover no-repeat;
}

.hero-video-bg video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hero-video-mask {
  z-index: 1;
  background: linear-gradient(90deg, rgba(5, 0, 0, 0.94) 0%, rgba(20, 0, 0, 0.78) 55%, rgba(0, 0, 0, 0.35) 100%);
}

.hero-video-dark {
  z-index: 2;
  background:
    radial-gradient(circle at 78% 50%, rgba(180, 0, 0, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.42));
}

.portal-center-hero .hero-inner {
  position: relative;
  z-index: 3;
  width: min(456px, 100%);
  padding: 0 24px;
}

.portal-center-hero h1 {
  display: grid;
  gap: 6px;
  margin: 0 0 18px;
  color: #ffd48a;
  font-family: "Noto Serif TC", "Songti TC", STSong, serif;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.08;
  font-weight: 900;
  background: none;
  -webkit-text-fill-color: initial;
  text-shadow: 0 3px 0 rgba(70, 5, 6, 0.92), 0 0 18px rgba(255, 208, 128, 0.42);
}

.hero-title span {
  display: block;
}

.hero-title__top {
  color: #ffd48a;
}

.hero-title__bottom {
  color: #ff5146;
  text-shadow: 0 3px 0 rgba(62, 3, 4, 0.96), 0 0 22px rgba(232, 65, 63, 0.46);
}

.portal-center-hero .sub {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 34px;
  color: #ab9a90;
  font-size: 16px;
  line-height: 1.6;
}

.portal-center-hero .sub::before {
  content: "";
  width: 38px;
  height: 1px;
  flex: 0 0 auto;
  background: rgba(216, 166, 74, 0.46);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.hero-video-btn {
  min-width: 160px;
  min-height: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 14px 30px;
  border-radius: 4px;
  text-align: center;
  transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease;
}

.hero-video-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.hero-video-btn .t {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
}

.hero-video-btn .e {
  font-size: 11px;
  line-height: 1;
  letter-spacing: 2px;
}

.hero-video-btn.btn-red {
  color: #ffe9e3;
  background: linear-gradient(180deg, #9c2226, #5e1013);
  border: 1px solid #c95a4d;
  box-shadow: 0 0 18px rgba(180, 40, 40, 0.3), inset 0 1px 0 rgba(255, 200, 180, 0.25);
}

.hero-video-btn.btn-gold {
  min-width: 184px;
  color: #2a1c08;
  background: linear-gradient(180deg, #d9b25a, #8a6322);
  border: 1px solid #f0d28a;
  box-shadow: 0 0 18px rgba(201, 162, 75, 0.35), inset 0 1px 0 rgba(255, 240, 200, 0.5);
}

.hero-video-btn.btn-red .e {
  color: rgba(255, 232, 221, 0.76);
}

.hero-video-btn.btn-gold .e {
  color: rgba(42, 28, 8, 0.62);
}

.portal-news {
  background: rgba(17, 19, 22, 0.92);
}

.portal-ad-banner {
  display: flex;
  justify-content: center;
  margin: 0 auto;
  padding: 4px 0 0;
}

.portal-ad-banner img {
  width: min(100%, 468px);
  height: auto;
  display: block;
  border: 1px solid rgba(216, 166, 74, 0.28);
}

.portal-shortcuts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.quick-side {
  align-self: end;
  margin-bottom: 34px;
}

.right-side {
  align-self: end;
  margin-bottom: 34px;
}

.side-panel {
  background: rgba(12, 14, 17, 0.82);
  border: 1px solid rgba(216, 166, 74, 0.22);
  box-shadow: var(--shadow);
}

.side-panel + .side-panel {
  margin-top: 12px;
}

.panel-title {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  color: #ffe4a7;
  background: linear-gradient(180deg, rgba(74, 18, 18, 0.9), rgba(21, 22, 25, 0.92));
  border-bottom: 1px solid rgba(216, 166, 74, 0.2);
  font-size: 15px;
  font-weight: 800;
}

.panel-title-label {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 7px;
}

.panel-icon {
  position: relative;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(250, 215, 144, 0.42);
  background: linear-gradient(145deg, rgba(216, 166, 74, 0.2), rgba(96, 21, 21, 0.45));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 8px rgba(216, 166, 74, 0.14);
}

.panel-icon::before,
.panel-icon::after {
  content: "";
  position: absolute;
  display: block;
}

.panel-icon--online::before {
  top: 4px;
  left: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffe2a2;
  box-shadow: 6px 1px 0 #d8a64a;
}

.panel-icon--online::after {
  left: 3px;
  bottom: 4px;
  width: 7px;
  height: 4px;
  border-radius: 7px 7px 3px 3px;
  background: #ffe2a2;
  box-shadow: 6px 0 0 #d8a64a;
}

.panel-icon--server::before {
  top: 4px;
  left: 3px;
  width: 12px;
  height: 2px;
  background: #ffe2a2;
  box-shadow: 0 5px 0 #d8a64a, 0 10px 0 #b94d3f;
}

.panel-icon--server::after {
  top: 3px;
  right: 3px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #6fe08d;
  box-shadow: 0 5px 0 #6fe08d, 0 10px 0 #6fe08d;
}

.panel-icon--line {
  border-radius: 50%;
  border-color: rgba(177, 255, 195, 0.45);
  background: #06c755;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 0 8px rgba(6, 199, 85, 0.2);
}

.panel-icon--line::before {
  top: 5px;
  left: 4px;
  width: 10px;
  height: 7px;
  border-radius: 6px;
  background: #fff;
}

.panel-icon--line::after {
  left: 9px;
  bottom: 4px;
  width: 0;
  height: 0;
  border-top: 4px solid #fff;
  border-right: 4px solid transparent;
}

.panel-icon--social {
  border-color: rgba(232, 65, 63, 0.48);
  background:
    radial-gradient(circle at 5px 5px, #ffe2a2 0 2px, transparent 2.4px),
    radial-gradient(circle at 13px 6px, #d8a64a 0 2px, transparent 2.4px),
    radial-gradient(circle at 9px 13px, #e8413f 0 2.3px, transparent 2.7px),
    linear-gradient(145deg, rgba(216, 166, 74, 0.18), rgba(96, 21, 21, 0.48));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 9px rgba(232, 65, 63, 0.18);
}

.panel-icon--social::before {
  top: 6px;
  left: 6px;
  width: 7px;
  height: 1px;
  background: rgba(255, 226, 162, 0.9);
  transform: rotate(6deg);
  transform-origin: left center;
}

.panel-icon--social::after {
  top: 9px;
  left: 8px;
  width: 7px;
  height: 1px;
  background: rgba(216, 166, 74, 0.9);
  transform: rotate(118deg);
  transform-origin: left center;
}

.panel-icon--download::before {
  top: 3px;
  left: 8px;
  width: 2px;
  height: 9px;
  background: #ffe2a2;
}

.panel-icon--download::after {
  left: 5px;
  bottom: 4px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #d8a64a;
  border-bottom: 2px solid #d8a64a;
  transform: rotate(45deg);
}

.panel-icon--guide::before {
  top: 4px;
  left: 4px;
  width: 10px;
  height: 10px;
  border: 1px solid #ffe2a2;
  border-radius: 2px;
  background:
    linear-gradient(90deg, transparent 48%, rgba(216, 166, 74, 0.9) 48% 52%, transparent 52%),
    linear-gradient(180deg, rgba(255, 226, 162, 0.28), rgba(185, 77, 63, 0.18));
}

.panel-icon--guide::after {
  top: 6px;
  left: 7px;
  width: 1px;
  height: 7px;
  background: #d8a64a;
  box-shadow: 4px 0 0 #b94d3f;
}

.panel-title a {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.block-title {
  position: relative;
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 14px 16px 12px;
  color: #e9ddd2;
  background: transparent;
}

.block-title::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 64px;
  height: 2px;
  background: linear-gradient(90deg, #e8413f, rgba(0, 0, 0, 0));
}

.block-title h3 {
  margin: 0;
  color: #e9ddd2;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 700;
}

.block-title .panel-icon {
  flex-basis: 16px;
  width: 16px;
  height: 16px;
}

.server-status-panel {
  background: linear-gradient(180deg, rgba(40, 20, 22, 0.55), rgba(14, 8, 9, 0.85));
  border-color: rgba(120, 50, 52, 0.45);
  box-shadow: inset 0 0 0 1px rgba(201, 162, 75, 0.06), 0 6px 24px rgba(0, 0, 0, 0.5);
}

.server-status-panel .panel-body {
  padding: 12px 14px 14px;
}

.panel-body {
  padding: 12px;
}

.quick-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.quick-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  color: #eee0c8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
}

.quick-list a:hover {
  border-color: rgba(216, 166, 74, 0.28);
  background: rgba(189, 23, 27, 0.18);
}

.quick-list small {
  color: var(--gold);
  text-transform: uppercase;
}

.quick-guide-panel .quick-list a {
  justify-content: flex-start;
  min-height: 38px;
  padding: 8px 11px;
}

.quick-item-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.quick-icon {
  position: relative;
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(216, 166, 74, 0.34);
  background: linear-gradient(145deg, rgba(216, 166, 74, 0.16), rgba(80, 20, 20, 0.48));
}

.quick-icon::before,
.quick-icon::after {
  content: "";
  position: absolute;
  display: block;
}

.quick-icon--settings::before {
  width: 8px;
  height: 8px;
  border: 2px solid #d8a64a;
  border-radius: 50%;
}

.quick-icon--settings::after {
  width: 13px;
  height: 2px;
  background: #ffe2a2;
  box-shadow: 0 5px 0 #b94d3f, 0 -5px 0 #b94d3f;
}

.quick-icon--feature::before {
  width: 11px;
  height: 11px;
  background: #d8a64a;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 56%, 79% 91%, 50% 69%, 21% 91%, 32% 56%, 2% 35%, 39% 35%);
}

.quick-icon--gear::before {
  left: 3px;
  top: 2px;
  width: 11px;
  height: 13px;
  background: linear-gradient(180deg, #ffe2a2, #b94d3f);
  clip-path: polygon(50% 0, 88% 16%, 82% 66%, 50% 100%, 18% 66%, 12% 16%);
}

.quick-icon--gear::after {
  left: 8px;
  top: 5px;
  width: 1px;
  height: 7px;
  background: #fff6db;
  box-shadow: -3px 3px 0 rgba(255, 246, 219, 0.72), 3px 3px 0 rgba(255, 246, 219, 0.72);
}

.quick-icon--map::before {
  left: 3px;
  top: 4px;
  width: 11px;
  height: 9px;
  border: 1px solid #ffe2a2;
  border-radius: 1px;
  background:
    linear-gradient(90deg, transparent 31%, rgba(216, 166, 74, 0.76) 31% 39%, transparent 39% 62%, rgba(216, 166, 74, 0.76) 62% 70%, transparent 70%),
    linear-gradient(180deg, rgba(216, 166, 74, 0.2), rgba(185, 77, 63, 0.28));
}

.quick-icon--map::after {
  left: 6px;
  top: 7px;
  width: 3px;
  height: 1px;
  border-radius: 50%;
  background: #fff6db;
  box-shadow: 4px -2px 0 #fff6db;
}

.quick-icon--item::before {
  left: 3px;
  top: 6px;
  width: 11px;
  height: 7px;
  border: 1px solid #ffe2a2;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(216, 166, 74, 0.74), rgba(185, 77, 63, 0.66));
}

.quick-icon--item::after {
  left: 5px;
  top: 3px;
  width: 7px;
  height: 5px;
  border: 1px solid #d8a64a;
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
}

.quick-icon--newbie::before {
  top: 3px;
  left: 5px;
  width: 7px;
  height: 5px;
  border-radius: 7px 7px 2px 2px;
  background: #ffe2a2;
}

.quick-icon--newbie::after {
  left: 3px;
  bottom: 3px;
  width: 11px;
  height: 7px;
  border-radius: 8px 8px 3px 3px;
  background: #d8a64a;
}

.download-mini {
  display: grid;
  gap: 8px;
}

.download-mini strong {
  color: #fff;
}

.download-mini span {
  color: var(--muted);
  font-size: 12px;
}

.mini-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.mini-buttons a {
  padding: 7px 5px;
  text-align: center;
  color: #1b1210;
  background: linear-gradient(180deg, #f0bf60, #b87824);
  font-size: 12px;
  font-weight: 800;
}

.download-panel {
  background: linear-gradient(180deg, rgba(40, 20, 22, 0.62), rgba(14, 8, 9, 0.88));
  border-color: rgba(120, 50, 52, 0.48);
  box-shadow: inset 0 0 0 1px rgba(201, 162, 75, 0.06), 0 6px 24px rgba(0, 0, 0, 0.5);
}

.download-panel .panel-title {
  position: relative;
  min-height: 54px;
  padding: 14px 16px 12px;
  justify-content: flex-start;
  background: transparent;
  border-bottom: 0;
}

.download-panel .panel-title::after {
  content: "";
  position: absolute;
  left: 16px;
  bottom: 9px;
  width: 64px;
  height: 2px;
  background: linear-gradient(90deg, #e8413f, rgba(0, 0, 0, 0));
}

.download-panel .panel-body {
  padding: 22px 18px;
  text-align: center;
}

.download-card {
  display: grid;
  justify-items: center;
}

.download-circle {
  position: relative;
  isolation: isolate;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #2a1416, #120a0b);
  border: 1px solid rgba(216, 166, 74, 0.44);
  box-shadow:
    inset 0 0 0 1px rgba(216, 166, 74, 0.12),
    inset 0 0 24px rgba(216, 166, 74, 0.08),
    0 0 18px rgba(216, 166, 74, 0.42),
    0 0 42px rgba(156, 34, 38, 0.36),
    0 10px 26px rgba(0, 0, 0, 0.34);
}

.download-circle::before {
  content: "";
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  border: 1px solid rgba(216, 166, 74, 0.16);
}

.download-circle::after {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 166, 74, 0.34), rgba(156, 34, 38, 0.14) 45%, rgba(0, 0, 0, 0) 72%);
  filter: blur(5px);
  opacity: 0.62;
  transform: scale(0.92);
  animation: downloadGlowBreath 2.6s ease-in-out infinite;
}

@keyframes downloadGlowBreath {
  0%,
  100% {
    opacity: 0.48;
    transform: scale(0.9);
  }

  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .download-circle::after {
    animation: none;
    opacity: 0.78;
    transform: scale(1);
  }
}

.download-arrow {
  position: relative;
  width: 40px;
  height: 40px;
  display: block;
  filter: drop-shadow(0 0 8px rgba(216, 166, 74, 0.68));
}

.download-arrow::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 4px;
  width: 5px;
  height: 22px;
  border-radius: 2px;
  background: #d8a64a;
}

.download-arrow::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 17px;
  width: 18px;
  height: 18px;
  border-right: 5px solid #d8a64a;
  border-bottom: 5px solid #d8a64a;
  transform: rotate(45deg);
}

.download-title {
  color: #fff4df;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 800;
}

.download-version {
  margin: 4px 0 16px;
  color: #ab9a90;
  font-size: 13px;
}

.download-main {
  width: 100%;
  min-height: 51px;
  display: grid;
  place-items: center;
  padding: 12px;
  color: #ffe9e3;
  background: linear-gradient(180deg, #9c2226, #5e1013);
  border: 1px solid #c95a4d;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.download-main:hover {
  color: #fff;
  background: linear-gradient(180deg, #b52b30, #741418);
}

.download-sub {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.download-sub a {
  min-height: 40px;
  display: grid;
  place-items: center;
  padding: 9px;
  color: #ab9a90;
  border: 1px solid rgba(120, 50, 52, 0.45);
  border-radius: 4px;
  font-size: 13px;
  text-align: center;
  text-decoration: none;
}

.download-sub a:hover {
  color: #f7e9c9;
  border-color: rgba(216, 166, 74, 0.34);
  background: rgba(255, 255, 255, 0.035);
}

.sponsor-card {
  min-height: 103px;
  display: grid;
  align-content: center;
  justify-items: center;
  margin-top: 12px;
  padding: 22px 16px;
  color: #e9ddd2;
  text-align: center;
  text-decoration: none;
  background:
    radial-gradient(400px 200px at 50% 0%, rgba(160, 30, 32, 0.4), rgba(0, 0, 0, 0)),
    linear-gradient(180deg, rgba(40, 16, 18, 0.7), rgba(14, 8, 9, 0.9));
  border: 1px solid rgba(120, 50, 52, 0.45);
  border-radius: 6px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.sponsor-card:hover {
  border-color: rgba(216, 166, 74, 0.38);
  box-shadow: 0 0 20px rgba(160, 30, 32, 0.22);
  transform: translateY(-1px);
}

.sponsor-card h3 {
  margin: 0 0 6px;
  color: #ecca77;
  font-size: 20px;
  line-height: 1.6;
  font-weight: 700;
}

.sponsor-card p {
  margin: 0;
  color: #75655f;
  font-size: 12px;
  line-height: 1.55;
}

.status-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.status-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 31px;
  padding: 6px 0;
  color: var(--muted);
  border-bottom: 1px dashed rgba(216, 166, 74, 0.22);
  font-size: 15px;
  line-height: 1.35;
}

.status-list li:last-child {
  border-bottom: 0;
}

.status-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.server-light {
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #55e978;
  border: 1px solid rgba(207, 255, 213, 0.8);
  box-shadow: 0 0 0 2px rgba(85, 233, 120, 0.12), 0 0 9px rgba(85, 233, 120, 0.76);
}

.status-list strong {
  color: #fff5df;
  font-size: 15px;
  font-weight: 800;
}

.server-ok {
  color: #7be092;
}

.line-service {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.line-service-link {
  display: block;
  color: inherit;
}

.line-service-link:hover {
  border-color: rgba(32, 214, 106, 0.5);
  box-shadow: 0 0 20px rgba(32, 214, 106, 0.12);
}

.line-service img {
  width: min(100%, 190px);
  aspect-ratio: 1;
  display: block;
  padding: 8px;
  background: #fff;
  border: 1px solid rgba(216, 166, 74, 0.32);
}

.line-service strong {
  width: 100%;
  min-height: 34px;
  display: grid;
  place-items: center;
  color: #fff5df;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-soft);
  font-size: 16px;
  letter-spacing: 0;
}

.layout {
  width: min(var(--wrap), calc(100% - 28px));
  margin: 18px auto 40px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 38px;
  margin-bottom: 10px;
  padding: 0 12px;
  color: var(--muted);
  background: #111418;
  border: 1px solid var(--line);
}

.breadcrumb a {
  color: #f3ca79;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin: 14px 0;
  border: 1px solid var(--line);
  background: #111418;
}

.stat {
  min-height: 76px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  padding: 8px;
  border-right: 1px solid var(--line-soft);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

.stat span {
  color: var(--muted);
  font-size: 12px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 16px;
  align-items: start;
}

.portal-grid {
  display: grid;
  grid-template-columns: 230px 1fr 300px;
  gap: 16px;
  align-items: start;
}

.stack {
  display: grid;
  gap: 14px;
}

.forum-panel {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.26);
}

.forum-panel__head {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  background: linear-gradient(180deg, #282d33, #15181d);
  border-bottom: 1px solid rgba(216, 166, 74, 0.2);
}

.forum-panel__head h2,
.forum-panel__head h3 {
  margin: 0;
  color: #ffe6ac;
  font-size: 17px;
  line-height: 1.25;
}

.forum-panel__head small {
  color: var(--muted);
}

.forum-panel__body {
  padding: 14px;
}

.headline-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.headline-item {
  display: grid;
  grid-template-columns: 72px 1fr 72px;
  gap: 12px;
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid var(--line-soft);
}

.headline-item:last-child {
  border-bottom: 0;
}

.badge {
  display: inline-grid;
  place-items: center;
  min-width: 54px;
  height: 24px;
  padding: 0 8px;
  color: #fff1cf;
  background: linear-gradient(180deg, #9a1719, #641012);
  border: 1px solid rgba(216, 166, 74, 0.25);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.headline-link {
  min-width: 0;
  color: #f4efe6;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.headline-link:hover,
.thread-title:hover,
.board-name:hover {
  color: #ffd17c;
}

.date {
  color: var(--dim);
  text-align: right;
  white-space: nowrap;
}

.ad-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ad-link {
  min-height: 70px;
  padding: 12px;
  display: grid;
  align-content: center;
  gap: 3px;
  background:
    linear-gradient(135deg, rgba(189, 23, 27, 0.72), rgba(32, 36, 42, 0.92)),
    repeating-linear-gradient(45deg, transparent 0 10px, rgba(255, 255, 255, 0.04) 10px 11px);
  border: 1px solid rgba(216, 166, 74, 0.26);
}

.ad-link strong {
  color: #fff;
  font-size: 17px;
}

.ad-link span {
  color: #f4d7a8;
  font-size: 12px;
}

.forum-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.forum-table th,
.forum-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}

.forum-table th {
  color: #dacba9;
  background: rgba(255, 255, 255, 0.035);
  font-weight: 700;
  text-align: left;
}

.forum-table tr:last-child td {
  border-bottom: 0;
}

.forum-table td.meta,
.forum-table th.meta {
  width: 112px;
  color: var(--muted);
  text-align: center;
}

.forum-table td.lastpost,
.forum-table th.lastpost {
  width: 230px;
  color: var(--muted);
}

.board-cell {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
}

.board-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #ffdf91;
  background: linear-gradient(145deg, #7c1516, #252931);
  border: 1px solid rgba(216, 166, 74, 0.28);
  font-size: 22px;
  font-weight: 900;
}

.board-name {
  display: inline-block;
  color: #fff4dc;
  font-size: 17px;
  font-weight: 800;
}

.board-desc,
.thread-desc,
.lastpost small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.subboards {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.subboards a {
  padding: 2px 8px;
  color: #ecd09c;
  background: rgba(216, 166, 74, 0.1);
  border: 1px solid rgba(216, 166, 74, 0.2);
  font-size: 12px;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 13px;
  border: 1px solid rgba(216, 166, 74, 0.22);
  color: #ffe7b0;
  background: linear-gradient(180deg, #2c3037, #15181d);
  font-weight: 800;
  border-radius: 4px;
}

.btn:hover {
  border-color: rgba(216, 166, 74, 0.48);
  color: #fff;
}

.btn--red {
  color: #fff;
  background: linear-gradient(180deg, #d82125, #821114);
  border-color: rgba(255, 215, 132, 0.35);
}

.btn--gold {
  color: #21140e;
  background: linear-gradient(180deg, #f2c56a, #bb7f24);
}

.filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.filters a {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
}

.filters a.is-active,
.filters a:hover {
  color: #fff0cc;
  border-color: rgba(216, 166, 74, 0.3);
  background: rgba(189, 23, 27, 0.2);
}

.thread-table .thread-main {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
}

.thread-dot {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: #ffe4a0;
  background: rgba(189, 23, 27, 0.24);
  border: 1px solid rgba(216, 166, 74, 0.2);
  font-size: 12px;
}

.thread-title {
  color: #f8ead0;
  font-weight: 800;
}

.thread-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}

.thread-tag {
  color: #d6bd8a;
  font-size: 12px;
}

.notice-box {
  padding: 12px;
  color: #d9caa5;
  background: rgba(91, 167, 200, 0.08);
  border: 1px solid rgba(91, 167, 200, 0.22);
}

.online-users {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.online-users li {
  padding: 5px 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-soft);
}

.online-panel .panel-body {
  padding: 8px 12px 9px;
}

.online-count-only {
  min-height: 54px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}

.online-count-only > span {
  font-size: 14px;
}

.online-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.online-person {
  position: relative;
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  display: inline-block;
}

.online-person::before,
.online-person::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: #55e978;
  box-shadow: 0 0 7px rgba(85, 233, 120, 0.72);
}

.online-person::before {
  top: 1px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.online-person::after {
  bottom: 0;
  width: 10px;
  height: 7px;
  border-radius: 8px 8px 3px 3px;
}

.online-count-only strong {
  color: #fff6db;
  font-size: 32px;
  line-height: 1;
  text-shadow: 0 0 18px rgba(216, 166, 74, 0.28);
  transform: translateY(-2px);
}

.online-count-only em {
  color: #d8a64a;
  font-style: normal;
  font-weight: 800;
}

.social {
  display: flex;
  gap: 10px;
}

.social a {
  min-height: 40px;
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 4px;
  color: #fff;
  border-radius: 5px;
  font-size: 12.5px;
  line-height: 1;
  text-decoration: none;
  transition: filter 0.16s ease, transform 0.16s ease;
}

.social a:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.s-fb {
  background: linear-gradient(180deg, #2a5298, #1a3a6e);
}

.s-line {
  background: linear-gradient(180deg, #06c755, #03963f);
}

.social-icon {
  position: relative;
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  line-height: 1;
}

.social-icon--fb {
  font-size: 18px;
}

.social-icon--line::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 3px;
  width: 14px;
  height: 10px;
  border-radius: 7px;
  background: #fff;
}

.social-icon--line::after {
  content: "";
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 0;
  height: 0;
  border-top: 5px solid #fff;
  border-left: 5px solid transparent;
}

.profile-mini {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  align-items: center;
}

.avatar {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: #26110e;
  background: linear-gradient(145deg, #f7d391, #ca6754);
  border: 3px solid #d7dce4;
  box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.11);
  font-weight: 900;
  border-radius: 50%;
}

.profile-mini strong {
  display: block;
  color: #fff;
}

.profile-mini span {
  color: var(--muted);
  font-size: 12px;
}

.thread-header {
  display: grid;
  grid-template-columns: 160px 1fr;
  background: var(--bg-panel);
  border: 1px solid var(--line);
}

.thread-header__count {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  min-height: 74px;
  padding: 10px;
  color: var(--muted);
  background: #e9eef5;
  border-right: 1px solid var(--line);
}

.thread-header__count strong {
  color: #8a1113;
}

.thread-header__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 0 18px;
  border-bottom: 4px solid #e8eef6;
}

.thread-header__title h1 {
  margin: 0;
  min-width: 0;
  color: #fff4db;
  font-size: 22px;
  line-height: 1.25;
}

.thread-actions {
  display: flex;
  gap: 8px;
  color: var(--muted);
  white-space: nowrap;
}

.post {
  display: grid;
  grid-template-columns: 160px 1fr;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-top: 0;
}

.post-author {
  padding: 14px;
  background: #12161b;
  border-right: 1px solid var(--line);
}

.post-author .avatar {
  width: 92px;
  height: 92px;
  margin: 10px auto;
  font-size: 30px;
}

.author-name {
  display: block;
  color: #ef686b;
  font-weight: 900;
  text-align: center;
}

.author-rank {
  margin: 8px auto 10px;
  width: max-content;
  max-width: 100%;
  padding: 2px 8px;
  color: #24130b;
  background: #e7bb5e;
  font-size: 12px;
  font-weight: 900;
}

.author-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 10px 0;
  border: 1px solid var(--line-soft);
}

.author-stats span {
  display: grid;
  place-items: center;
  padding: 5px 2px;
  color: var(--muted);
  border-right: 1px solid var(--line-soft);
  font-size: 11px;
  text-align: center;
}

.author-stats span:last-child {
  border-right: 0;
}

.author-stats strong {
  color: #fff;
  font-size: 15px;
}

.post-body {
  min-width: 0;
}

.post-meta {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px;
  color: var(--muted);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
}

.post-content {
  padding: 24px 28px 32px;
  color: #f0eadf;
  font-size: 16px;
}

.post-content h2,
.article h2 {
  margin: 0 0 12px;
  color: #67cafa;
  font-size: 32px;
  line-height: 1.15;
}

.post-content p,
.article p {
  margin: 0 0 12px;
}

.post-content ul,
.article ul {
  margin: 0 0 14px;
  padding-left: 22px;
}

.post-content li,
.article li {
  margin: 5px 0;
}

.post-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 10px 14px;
  border-top: 1px solid var(--line-soft);
}

.reply-box,
.form-panel {
  background: var(--bg-panel);
  border: 1px solid var(--line);
}

.editor-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 10px;
  background: #111418;
  border-bottom: 1px solid var(--line);
}

.tool-btn {
  min-width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0 8px;
  color: #e7d3a5;
  background: #20242a;
  border: 1px solid var(--line);
  font-weight: 800;
}

.form-grid {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: #e8d5a9;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  color: var(--text);
  background: #0d1014;
  border: 1px solid #3a404a;
  outline: 0;
}

.field input,
.field select {
  height: 40px;
  padding: 0 10px;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
  padding: 10px;
}

.inline-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.checkbox-line input {
  width: 16px;
  height: 16px;
}

.search-results {
  display: grid;
  gap: 10px;
}

.result-item {
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line-soft);
}

.result-item h3 {
  margin: 0 0 5px;
  font-size: 17px;
}

.result-item p {
  margin: 0;
  color: var(--muted);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.info-card {
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-soft);
}

.info-card strong {
  display: block;
  color: #fff3d0;
  font-size: 17px;
}

.info-card span {
  color: var(--muted);
}

.article {
  padding: 18px;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.download-item {
  padding: 14px;
  background: #12161b;
  border: 1px solid var(--line-soft);
}

.download-item h3 {
  margin: 0 0 6px;
  color: #ffe1a1;
}

.download-item p {
  margin: 0 0 12px;
  color: var(--muted);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  max-width: min(360px, calc(100% - 36px));
  padding: 12px 14px;
  color: #fff5dc;
  background: #1b1f25;
  border: 1px solid rgba(216, 166, 74, 0.45);
  box-shadow: var(--shadow);
  transform: translateY(120%);
  transition: transform 180ms ease;
}

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

.footer {
  margin-top: 36px;
  padding: 22px 0 28px;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.26);
}

.footer strong {
  color: #f2d087;
}

.footer-brand-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 7px;
}

.footer-logo {
  width: 76px;
  height: 42px;
  display: inline-block;
  object-fit: cover;
  object-position: center 54%;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 7px rgba(216, 166, 74, 0.18));
}

.footer-company {
  width: min(760px, calc(100% - 28px));
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin: 16px auto 0;
  padding: 14px 16px;
  text-align: left;
  background: linear-gradient(180deg, rgba(24, 26, 31, 0.82), rgba(10, 10, 12, 0.92));
  border: 1px solid rgba(216, 166, 74, 0.2);
}

.footer-company-logo {
  width: 180px;
  height: 78px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.48));
}

.footer-company-copy {
  display: grid;
  gap: 4px;
  color: #c9bba6;
  font-size: 13px;
  line-height: 1.7;
}

.footer-company-copy strong {
  color: #f2d087;
  font-size: 16px;
}

.site-map {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 10px;
}

.site-map a {
  color: #d7c399;
}

.empty-state {
  padding: 26px 14px;
  color: var(--muted);
  text-align: center;
}

.mobile-menu {
  display: none;
}

/* Closer Discuz/game-forum skin pass */
.discuz-prebar {
  height: 18px;
  color: #b7b7b7;
  background: #030303;
  border-bottom: 1px solid #1d0506;
  font-size: 12px;
}

.discuz-prebar__inner {
  width: min(var(--wrap), calc(100% - 28px));
  height: 18px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar {
  position: relative;
  background:
    linear-gradient(180deg, rgba(44, 4, 5, 0.72), rgba(5, 5, 6, 0.98) 34%, rgba(6, 6, 7, 0.98)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 82px);
  border-bottom: 1px solid #4b0809;
  box-shadow: inset 0 -1px 0 rgba(216, 166, 74, 0.18);
  backdrop-filter: none;
}

.topbar__inner {
  height: 92px;
  grid-template-columns: 260px minmax(580px, 1fr) 150px;
  gap: 12px;
}

.brand {
  height: 78px;
  padding-left: 4px;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.5));
}

.brand-logo-custom {
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
  object-position: center;
  max-width: none;
  max-height: none;
  will-change: transform;
}

.glory-index-page > .topbar {
  width: 100%;
  min-height: 92px;
  display: grid;
  grid-template-columns: minmax(14px, 1fr) 260px minmax(580px, 920px) 150px minmax(14px, 1fr);
  gap: 12px;
  align-items: center;
}

.glory-index-page > .topbar > .brand {
  grid-column: 2;
  min-width: 0;
  overflow: visible;
  justify-content: center;
}

.glory-index-page > .topbar > .brand > span {
  display: none;
}

.glory-index-page > .topbar > .brand > a {
  width: 100%;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.glory-index-page > .topbar > .nav {
  grid-column: 3;
  display: grid;
  grid-template-columns: repeat(7, minmax(70px, 1fr));
  gap: 0;
  height: 92px;
  align-items: stretch;
}

.glory-index-page > .topbar > .nav a {
  min-height: 92px;
  padding: 10px 7px 9px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  color: #f5ead3;
  border-left: 1px solid rgba(255, 255, 255, 0.04);
  border-right: 1px solid rgba(0, 0, 0, 0.45);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0));
}

.glory-index-page > .topbar > .nav a:hover {
  color: #fff;
  background: linear-gradient(180deg, rgba(84, 13, 14, 0.5), rgba(13, 13, 14, 0.1));
}

.glory-index-page > .topbar > .account-box {
  grid-column: 4;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  color: #b7afa2;
  font-size: 13px;
}

.glory-index-page > .topbar > .account-box a {
  color: var(--gold-soft);
  font-weight: 700;
}

@media (max-width: 980px) {
  .glory-index-page > .topbar {
    grid-template-columns: 1fr;
    padding: 10px 14px;
  }

  .glory-index-page > .topbar > .brand,
  .glory-index-page > .topbar > .nav,
  .glory-index-page > .topbar > .account-box {
    grid-column: 1;
  }

  .glory-index-page > .topbar > .nav {
    height: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .glory-index-page > .topbar > .nav a {
    min-height: 54px;
  }

  .glory-index-page > .topbar > .account-box {
    justify-content: center;
  }
}

.brand--logo {
  height: 92px;
  padding-left: 0;
}

.brand-logo {
  width: 250px;
  height: 90px;
}

.brand-mark {
  width: 58px;
  height: 58px;
  color: #ffe7a2;
  background:
    radial-gradient(circle at 64% 28%, rgba(255, 244, 188, 0.52), transparent 24px),
    linear-gradient(145deg, #d51d20 0%, #5e0709 56%, #140a0b 100%);
  border-color: rgba(255, 218, 132, 0.72);
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.48), 0 0 24px rgba(178, 11, 14, 0.42);
}

.brand-title {
  color: #fff2db;
  font-size: 30px;
  text-shadow: 0 2px 0 #6a0a0c, 0 0 18px rgba(255, 206, 111, 0.42);
}

.brand-subtitle {
  color: #c7a56c;
  font-size: 11px;
}

.primary-nav {
  gap: 0;
  height: 92px;
}

.primary-nav a {
  min-height: 92px;
  border-left: 1px solid rgba(255, 255, 255, 0.04);
  border-right: 1px solid rgba(0, 0, 0, 0.45);
  border-radius: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0));
}

.primary-nav a:hover,
.primary-nav a.is-active {
  background: linear-gradient(180deg, rgba(84, 13, 14, 0.5), rgba(13, 13, 14, 0.1));
  border-color: rgba(216, 166, 74, 0.12);
}

.nav-symbol {
  color: #dec47b;
  font-size: 16px;
}

.nav-title {
  color: #f3ead9;
  font-size: 16px;
}

.nav-en {
  color: #9a948a;
}

.user-search {
  position: relative;
  gap: 7px;
}

.visitor-row {
  color: #b7afa2;
  font-size: 13px;
}

.search-form {
  border-color: #28211a;
  background: #090a0c;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.search-form input {
  height: 34px;
}

.search-form button {
  height: 34px;
}

.top-status-dot {
  position: absolute;
  right: -12px;
  bottom: 8px;
  color: #b40008;
  font-size: 13px;
}

.hero {
  min-height: 362px;
  background: #090909;
  border-top: 1px solid #260708;
  border-bottom-color: #2b2b2b;
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.35) 42%, rgba(0, 0, 0, 0.2) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.76)),
    url("./assets/hero-fantasy-forum.png") center 42% / cover no-repeat;
}

.hero__inner {
  min-height: 362px;
}

.hero h1 {
  color: #fff2da;
  text-shadow: 0 3px 0 #5e0809, 0 0 22px rgba(232, 180, 80, 0.3);
}

.hero-button {
  border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.38);
}

.layout {
  margin-top: 12px;
}

.breadcrumb {
  min-height: 32px;
  padding: 0 10px 0 0;
  gap: 8px;
  color: #a9a9a9;
  background: linear-gradient(180deg, #191b1e, #101113);
  border-color: #2a2d31;
  border-left: 0;
}

.crumb-home {
  align-self: stretch;
  width: 31px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(180deg, #d51116, #7e090c);
  border-right: 1px solid #310607;
}

.stats-strip,
.forum-panel,
.side-panel,
.reply-box,
.form-panel {
  border-color: #2c2f35;
  box-shadow: none;
}

.forum-panel,
.reply-box,
.form-panel {
  background: #141619;
}

.side-panel {
  background: rgba(10, 11, 13, 0.9);
}

.forum-panel__head,
.panel-title {
  background: linear-gradient(180deg, #202328, #111315);
  border-bottom-color: #32363e;
}

.forum-panel__head h2,
.forum-panel__head h3,
.panel-title {
  color: #f4d89d;
}

.forum-table {
  background: #15171a;
}

.forum-table th {
  color: #cfc1a4;
  background: linear-gradient(180deg, #252a30, #1b1e23);
  border-bottom: 1px solid #32363e;
}

.forum-table td {
  background: #16191d;
}

.forum-table tr:nth-child(even) td {
  background: #191d22;
}

.board-icon,
.thread-dot {
  background: linear-gradient(145deg, #242932, #111417);
  border-color: #3b4048;
}

.thread-header {
  border-color: #32363e;
}

.thread-header__title {
  background: #15171a;
}

.post {
  background: #15171a;
  border-color: #32363e;
}

.post-author {
  background: #171c22;
}

.post-meta {
  min-height: 44px;
  background: #15171a;
}

.post-content {
  background: #17191d;
}

.footer {
  background: #090a0c;
}

@media (max-width: 1100px) {
  .topbar__inner {
    grid-template-columns: 230px 1fr;
    height: auto;
    min-height: 88px;
    padding: 10px 0;
  }

  .primary-nav {
    order: 3;
    grid-column: 1 / -1;
  }

  .user-search {
    justify-self: end;
  }

  .hero__inner,
  .portal-grid {
    grid-template-columns: 1fr 280px;
  }

  .quick-side {
    display: none;
  }

  .hero-main {
    padding-left: 0;
  }

  .portal-landing__inner {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .portal-right {
    display: none;
  }
}

@media (max-width: 820px) {
  body {
    font-size: 13px;
  }

  .topbar__inner {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .brand {
    justify-content: center;
  }

  .brand--logo {
    height: 84px;
  }

  .brand-logo {
    width: min(280px, 100%);
    height: 84px;
  }

  .primary-nav {
    height: auto;
    grid-template-columns: repeat(3, 1fr);
  }

  .primary-nav a {
    min-height: 54px;
  }

  .user-search {
    width: 100%;
    justify-items: stretch;
  }

  .visitor-row {
    justify-content: center;
    flex-wrap: wrap;
  }

  .footer-company {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .hero {
    min-height: 430px;
  }

  .hero__inner {
    min-height: 430px;
    grid-template-columns: 1fr;
  }

  .right-side {
    display: none;
  }

  .hero-main {
    padding: 40px 0 54px;
  }

  .hero p {
    font-size: 16px;
  }

  .portal-landing {
    min-height: auto;
  }

  .portal-landing__inner {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 18px 0 26px;
  }

  .portal-left,
  .portal-right {
    display: none;
  }

  .portal-center-hero.hero-video-section {
    min-height: 360px;
    margin-bottom: 14px;
  }

  .portal-center-hero .hero-inner {
    padding: 0 20px;
  }

  .portal-center-hero .sub {
    font-size: 16px;
  }

  .portal-shortcuts {
    grid-template-columns: 1fr;
  }

  .layout {
    width: min(100% - 18px, var(--wrap));
  }

  .content-grid,
  .portal-grid {
    grid-template-columns: 1fr;
  }

  .stats-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .stat {
    border-bottom: 1px solid var(--line-soft);
  }

  .forum-table,
  .forum-table thead,
  .forum-table tbody,
  .forum-table tr,
  .forum-table th,
  .forum-table td {
    display: block;
    width: 100%;
  }

  .forum-table thead {
    display: none;
  }

  .forum-table tr {
    border-bottom: 1px solid var(--line-soft);
  }

  .forum-table tr:last-child {
    border-bottom: 0;
  }

  .forum-table td {
    border-bottom: 0;
    padding: 10px 12px;
  }

  .forum-table td.meta,
  .forum-table td.lastpost {
    width: 100%;
    text-align: left;
    padding-top: 0;
  }

  .headline-item {
    grid-template-columns: 62px 1fr;
  }

  .headline-item .date {
    grid-column: 2;
    text-align: left;
  }

  .thread-header,
  .post {
    grid-template-columns: 1fr;
  }

  .thread-header__count,
  .post-author {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .thread-header__count {
    min-height: 48px;
  }

  .post-author {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 12px;
    align-items: center;
  }

  .post-author .avatar {
    width: 70px;
    height: 70px;
    margin: 0;
  }

  .author-name,
  .author-rank {
    text-align: left;
    margin-left: 0;
  }

  .author-stats {
    grid-column: 1 / -1;
  }

  .post-content {
    padding: 18px;
    font-size: 15px;
  }

  .post-content h2,
  .article h2 {
    font-size: 24px;
  }

  .inline-fields,
  .ad-row,
  .download-grid,
  .cards-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile portal panels: keep important index.php blocks visible */
@media (max-width: 820px) {
  .portal-landing__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .portal-center {
    order: 1;
  }

  .portal-right {
    order: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
  }

  .portal-left {
    order: 3;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
  }

  .portal-right .server-status-panel,
  .portal-right .line-service-panel,
  .portal-right .social-panel,
  .portal-left .quick-guide-panel,
  .portal-left .sponsor-card {
    display: block;
  }

  .portal-left .download-panel,
  .portal-right .online-panel {
    display: none;
  }

  .portal-right .side-panel,
  .portal-left .side-panel,
  .portal-left .sponsor-card {
    margin: 0;
  }
}

@media (max-width: 520px) {
  .brand-title {
    font-size: 21px;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
    font-size: 22px;
  }

  .primary-nav {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .hero-button {
    width: 100%;
  }

  .hero-video-btn {
    width: 100%;
    min-width: 0;
  }

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

  .thread-header__title {
    display: grid;
    min-height: 86px;
    align-content: center;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }
}
