﻿: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: #2db5b0;
  --red-dark: #0f4245;
  --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;
}

/* Shadow Realm homepage remake layer. This copied homepage stays independent from the original Glory files. */
:root {
  --bg: #070b0d;
  --bg-soft: #0e1719;
  --bg-panel: #131b1d;
  --bg-panel-2: #1b282a;
  --line: #2f4b4d;
  --text: #f2efe6;
  --muted: #b7b6ab;
  --dim: #7f918f;
  --red: #2db5b0;
  --red-dark: #0f4245;
  --gold: #d9aa55;
  --gold-soft: #f4d28a;
}

body {
  background:
    radial-gradient(circle at 76% 8%, rgba(45, 181, 176, 0.18), transparent 34rem),
    radial-gradient(circle at 16% 22%, rgba(217, 170, 85, 0.1), transparent 30rem),
    linear-gradient(180deg, #061014 0%, #0a0d10 54%, #090705 100%);
}

.entry-loader {
  background:
    radial-gradient(circle at 50% 44%, rgba(45, 181, 176, 0.24), transparent 22rem),
    radial-gradient(circle at 50% 105%, rgba(217, 170, 85, 0.14), transparent 28rem),
    linear-gradient(180deg, #020506 0%, #071719 58%, #020506 100%);
}

.entry-loader__flame {
  background:
    radial-gradient(circle, rgba(87, 226, 213, 0.3) 0 9%, rgba(217, 170, 85, 0.18) 24%, transparent 63%),
    conic-gradient(from 20deg, transparent, rgba(45, 181, 176, 0.24), transparent, rgba(217, 170, 85, 0.2), transparent);
}

.brand--logo {
  position: relative;
  display: grid;
  place-items: center;
  width: 246px;
  min-height: 74px;
  overflow: hidden;
  color: #f4d28a;
  background:
    linear-gradient(135deg, rgba(217, 170, 85, 0.18), rgba(45, 181, 176, 0.12)),
    rgba(4, 8, 10, 0.44);
  border: 1px solid rgba(217, 170, 85, 0.28);
}

.brand--logo::before {
  content: "闇境天堂";
  position: relative;
  z-index: 2;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 0 18px rgba(45, 181, 176, 0.42), 0 2px 0 rgba(0, 0, 0, 0.85);
}

.brand--logo::after {
  content: "SHADOW REALM";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  color: rgba(220, 233, 226, 0.68);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.brand-logo {
  display: none;
}

.hero::before,
.portal-landing::before,
.hero-video-bg {
  background:
    linear-gradient(90deg, rgba(4, 8, 10, 0.9) 0%, rgba(4, 8, 10, 0.42) 45%, rgba(4, 8, 10, 0.66) 100%),
    linear-gradient(180deg, rgba(4, 8, 10, 0.04), rgba(4, 8, 10, 0.8)),
    url("./assets/shadowrealm-hero.png") center 44% / cover no-repeat !important;
}

.hero h1,
.portal-center-hero h1,
.hero-title__top,
.hero-title__bottom {
  color: #f4d28a !important;
  -webkit-text-fill-color: initial !important;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.82), 0 0 22px rgba(45, 181, 176, 0.4) !important;
}

.hero-button--red,
.hero-video-btn.btn-red,
.primary-nav a:hover,
.primary-nav a.is-active {
  background: linear-gradient(180deg, #279d9a, #0f4245) !important;
  border-color: rgba(107, 230, 221, 0.62) !important;
}

.panel-title,
.forum-panel__head {
  background: linear-gradient(180deg, rgba(15, 66, 69, 0.9), rgba(17, 20, 22, 0.94)) !important;
}

@media (max-width: 720px) {
  .brand--logo {
    width: min(100%, 246px);
  }

  .brand--logo::before {
    font-size: 24px;
  }
}

* {
  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(72vw, 270px);
  height: 155px;
  object-fit: cover;
  object-position: center 55%;
  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/shadowrealm-hero.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/shadowrealm-hero.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/shadowrealm-hero.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, #279d9a, #0f4245);
  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, #2db5b0 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, #2db5b0, 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, #2db5b0, 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, #279d9a, #0f4245);
  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-coin {
  position: relative;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin: 0 0 14px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 26%, #fff1a8 0 9%, transparent 10%),
    radial-gradient(circle at 38% 32%, #ffe08b 0 22%, #e2a83e 42%, #8b4b13 76%, #3b1b07 100%);
  border: 2px solid rgba(255, 225, 137, 0.78);
  box-shadow:
    inset 0 0 0 5px rgba(95, 44, 8, 0.34),
    inset 0 -11px 18px rgba(70, 27, 5, 0.46),
    0 0 18px rgba(216, 166, 74, 0.45),
    0 0 48px rgba(156, 34, 38, 0.4);
  transform: rotate(-8deg);
}

.sponsor-coin::before {
  content: "";
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  border: 2px solid rgba(86, 43, 10, 0.42);
  box-shadow: inset 0 0 0 2px rgba(255, 238, 164, 0.32);
}

.sponsor-coin::after {
  content: "$";
  color: #5b2c08;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 242, 174, 0.72);
}

.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 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 10px;
  margin: 0 0 7px;
  line-height: 1.6;
}

.footer-mark {
  width: 34px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  margin-right: 2px;
}

.footer-logo {
  max-width: 34px;
  max-height: 26px;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 6px rgba(216, 166, 74, 0.22));
}

.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 #1d6466;
  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 {
  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/shadowrealm-hero.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, #2db5b0, #0f4245);
  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;
  }
}

/* Final Shadow Realm overrides: placed last so the copied homepage is visibly remade. */
body {
  background:
    radial-gradient(circle at 76% 8%, rgba(45, 181, 176, 0.18), transparent 34rem),
    radial-gradient(circle at 16% 22%, rgba(217, 170, 85, 0.1), transparent 30rem),
    linear-gradient(180deg, #061014 0%, #0a0d10 54%, #090705 100%) !important;
}

.entry-loader {
  background:
    radial-gradient(circle at 50% 44%, rgba(45, 181, 176, 0.24), transparent 22rem),
    radial-gradient(circle at 50% 105%, rgba(217, 170, 85, 0.14), transparent 28rem),
    linear-gradient(180deg, #020506 0%, #071719 58%, #020506 100%) !important;
}

.entry-loader__logo,
.brand-logo,
.footer-logo {
  display: none !important;
}

.brand--logo {
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  width: 246px !important;
  min-height: 74px !important;
  color: #f4d28a !important;
  background:
    linear-gradient(135deg, rgba(217, 170, 85, 0.18), rgba(45, 181, 176, 0.12)),
    rgba(4, 8, 10, 0.44) !important;
  border: 1px solid rgba(217, 170, 85, 0.28) !important;
}

.brand--logo::before {
  content: "闇境天堂";
  position: relative;
  z-index: 2;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 0 18px rgba(45, 181, 176, 0.42), 0 2px 0 rgba(0, 0, 0, 0.85);
}

.brand--logo::after {
  content: "SHADOW REALM";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  color: rgba(220, 233, 226, 0.68);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.hero::before,
.portal-landing::before,
.hero-video-bg {
  background:
    linear-gradient(90deg, rgba(4, 8, 10, 0.9) 0%, rgba(4, 8, 10, 0.42) 45%, rgba(4, 8, 10, 0.66) 100%),
    linear-gradient(180deg, rgba(4, 8, 10, 0.04), rgba(4, 8, 10, 0.8)),
    url("./assets/shadowrealm-hero.png") center 44% / cover no-repeat !important;
}

.hero h1,
.portal-center-hero h1,
.hero-title__top,
.hero-title__bottom {
  color: #f4d28a !important;
  -webkit-text-fill-color: initial !important;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.82), 0 0 22px rgba(45, 181, 176, 0.4) !important;
}

.hero-button--red,
.hero-video-btn.btn-red,
.primary-nav a:hover,
.primary-nav a.is-active {
  background: linear-gradient(180deg, #279d9a, #0f4245) !important;
  border-color: rgba(107, 230, 221, 0.62) !important;
}

.panel-title,
.forum-panel__head,
.block-title {
  background: linear-gradient(180deg, rgba(15, 66, 69, 0.9), rgba(17, 20, 22, 0.94)) !important;
}

/* Shadow Realm layout remake v2 */
.shadow-home {
  min-height: auto !important;
  padding: 0 0 54px !important;
  background:
    linear-gradient(180deg, rgba(3, 7, 9, 0.74), rgba(3, 7, 9, 0.96)),
    url("./assets/shadowrealm-hero.png") center top / cover fixed no-repeat !important;
}

.shadow-home::before {
  content: none !important;
}

.shadow-home__inner {
  width: min(1240px, calc(100% - 28px));
  margin: 0 auto;
  padding-top: 34px;
}

.shadow-hero {
  position: relative;
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: end;
  overflow: hidden;
  border: 1px solid rgba(45, 181, 176, 0.32);
  background: #05090b;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.shadow-hero::before,
.shadow-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.shadow-hero::before {
  z-index: 1;
  background:
    radial-gradient(circle at 72% 60%, rgba(35, 181, 176, 0.38), transparent 18rem),
    radial-gradient(circle at 84% 34%, rgba(244, 210, 138, 0.24), transparent 15rem),
    radial-gradient(ellipse at 58% 44%, rgba(118, 255, 244, 0.16), transparent 26rem),
    radial-gradient(circle at 38% 76%, rgba(39, 123, 255, 0.16), transparent 16rem);
  mix-blend-mode: screen;
  opacity: 0.78;
  animation: shadowHeroAether 4.2s ease-in-out infinite alternate;
}

.shadow-hero::after {
  z-index: 2;
  background:
    radial-gradient(circle at 23% 72%, rgba(244, 210, 138, 0.18), transparent 15rem),
    radial-gradient(ellipse at 74% 48%, rgba(84, 231, 221, 0.16), transparent 19rem),
    radial-gradient(circle at 48% 18%, rgba(255, 255, 255, 0.08), transparent 14rem),
    radial-gradient(circle at 68% 86%, rgba(255, 122, 42, 0.12), transparent 10rem);
  opacity: 0.64;
  mix-blend-mode: screen;
  animation: shadowHeroPulse 3.6s ease-in-out infinite alternate;
}

.shadow-hero__media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 8, 10, 0.92) 0%, rgba(4, 8, 10, 0.48) 48%, rgba(4, 8, 10, 0.78) 100%),
    linear-gradient(180deg, rgba(4, 8, 10, 0.05), rgba(4, 8, 10, 0.82)),
    url("./assets/shadowrealm-hero.png") center 42% / cover no-repeat;
  transform: scale(1.03);
  animation: shadowHeroDrift 8s ease-in-out infinite alternate;
}

.shadow-hero__media::before,
.shadow-hero__media::after {
  content: "";
  position: absolute;
  inset: -12%;
  pointer-events: none;
}

.shadow-hero__media::before {
  z-index: 1;
  background:
    radial-gradient(ellipse at 28% 72%, rgba(210, 229, 225, 0.14), transparent 24rem),
    radial-gradient(ellipse at 62% 42%, rgba(123, 255, 244, 0.12), transparent 30rem),
    radial-gradient(ellipse at 78% 78%, rgba(255, 178, 83, 0.12), transparent 18rem);
  filter: blur(12px);
  mix-blend-mode: screen;
  animation: shadowHeroMist 7s ease-in-out infinite alternate;
}

.shadow-hero__media::after {
  z-index: 2;
  background:
    radial-gradient(circle at 22% 82%, rgba(255, 185, 74, 0.24) 0 0.18rem, transparent 0.24rem),
    radial-gradient(circle at 46% 70%, rgba(104, 255, 238, 0.2) 0 0.13rem, transparent 0.2rem),
    radial-gradient(circle at 68% 84%, rgba(255, 214, 126, 0.22) 0 0.16rem, transparent 0.22rem),
    radial-gradient(circle at 86% 66%, rgba(117, 238, 255, 0.18) 0 0.12rem, transparent 0.2rem);
  background-size: 190px 160px, 240px 210px, 220px 180px, 260px 230px;
  opacity: 0.42;
  mix-blend-mode: screen;
  animation: shadowHeroEmbers 5.8s linear infinite;
}

.shadow-hero__media video {
  display: none;
}

.shadow-hero__character {
  position: absolute;
  z-index: 2;
  right: clamp(-28px, 1.4vw, 34px);
  bottom: 78px;
  width: clamp(390px, 35vw, 570px);
  max-width: none;
  pointer-events: none;
  opacity: 1;
  object-fit: contain;
  filter:
    drop-shadow(-22px 18px 28px rgba(0, 0, 0, 0.58))
    drop-shadow(0 0 18px rgba(45, 181, 176, 0.16));
  animation: shadowCharacterFloat 5.4s ease-in-out infinite alternate;
}

.shadow-hero__copy {
  position: relative;
  z-index: 3;
  max-width: 720px;
  padding: clamp(34px, 6vw, 72px);
}

.shadow-kicker {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 12px;
  color: #071012;
  background: #f4d28a;
  font-weight: 900;
}

.shadow-hero .hero-title {
  margin: 18px 0 18px;
  font-size: clamp(50px, 7.2vw, 92px);
  line-height: 0.98;
  animation: shadowTitleGlow 2.8s ease-in-out infinite alternate;
}

.shadow-hero__copy p {
  max-width: 560px;
  margin: 0;
  color: #e7dfcf;
  font-size: 19px;
  line-height: 1.8;
}

.shadow-hero__actions {
  margin-top: 30px;
}

.shadow-hero__stats {
  position: relative;
  z-index: 5;
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  padding: 22px;
  background: linear-gradient(180deg, rgba(5, 10, 12, 0.18), rgba(5, 10, 12, 0.82));
  border-left: 1px solid rgba(217, 170, 85, 0.24);
}

@keyframes shadowHeroDrift {
  0% {
    transform: scale(1.035) translate3d(-12px, -5px, 0);
    filter: brightness(0.9) saturate(1.05) contrast(1.03);
  }
  100% {
    transform: scale(1.09) translate3d(16px, 8px, 0);
    filter: brightness(1.18) saturate(1.24) contrast(1.08);
  }
}

@keyframes shadowHeroAether {
  0% {
    opacity: 0.48;
    transform: translate3d(-2%, 2%, 0) scale(1);
  }
  100% {
    opacity: 0.9;
    transform: translate3d(3%, -2%, 0) scale(1.08);
  }
}

@keyframes shadowHeroSweep {
  0% {
    opacity: 0.38;
    transform: translate3d(-1%, 1%, 0) scale(1);
  }
  100% {
    opacity: 0.72;
    transform: translate3d(2%, -1%, 0) scale(1.06);
  }
}

@keyframes shadowHeroPulse {
  0% {
    opacity: 0.38;
    transform: scale(1) translate3d(-1%, 1%, 0);
  }
  100% {
    opacity: 0.82;
    transform: scale(1.08) translate3d(1.5%, -1.5%, 0);
  }
}

@keyframes shadowHeroMist {
  0% {
    opacity: 0.34;
    transform: translate3d(-4%, 2%, 0) scale(1);
  }
  50% {
    opacity: 0.56;
  }
  100% {
    opacity: 0.48;
    transform: translate3d(5%, -2%, 0) scale(1.08);
  }
}

@keyframes shadowHeroEmbers {
  0% {
    background-position: 0 90px, 0 140px, 0 120px, 0 180px;
    opacity: 0.18;
    transform: translate3d(0, 4%, 0);
  }
  35% {
    opacity: 0.52;
  }
  100% {
    background-position: 70px -130px, -90px -170px, 110px -150px, -60px -210px;
    opacity: 0.28;
    transform: translate3d(0, -5%, 0);
  }
}

@keyframes shadowTitleGlow {
  0% {
    text-shadow: 0 4px 0 rgba(0, 0, 0, 0.72), 0 0 16px rgba(217, 170, 85, 0.22);
  }
  100% {
    text-shadow: 0 4px 0 rgba(0, 0, 0, 0.82), 0 0 26px rgba(244, 210, 138, 0.36), 0 0 34px rgba(45, 181, 176, 0.18);
  }
}

@keyframes shadowCharacterFloat {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    filter:
      drop-shadow(-28px 18px 32px rgba(0, 0, 0, 0.64))
      drop-shadow(0 0 16px rgba(45, 181, 176, 0.15));
  }
  100% {
    transform: translate3d(-8px, -7px, 0) scale(1.018);
    filter:
      drop-shadow(-30px 21px 36px rgba(0, 0, 0, 0.72))
      drop-shadow(0 0 30px rgba(45, 181, 176, 0.28));
  }
}

@media (prefers-reduced-motion: reduce) {
  .shadow-hero::before,
  .shadow-hero::after,
  .shadow-hero__media::before,
  .shadow-hero__media::after,
  .shadow-hero__media,
  .shadow-hero__character,
  .shadow-hero .hero-title {
    animation: none !important;
  }
}

@media (max-width: 1100px) {
  .shadow-hero__character {
    right: -158px;
    bottom: 106px;
    width: 470px;
    opacity: 0.42;
  }
}

@media (max-width: 760px) {
  .shadow-hero__character {
    display: none;
  }
}

.shadow-hero__stats .stats-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  margin: 0;
  padding: 0;
  gap: 10px;
  background: transparent;
  border: 0;
}

.shadow-hero__stats .stat {
  min-height: 92px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.shadow-quickbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 18px;
}

.shadow-quickbar a {
  position: relative;
  min-height: 116px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  color: #f4ead6;
  background: linear-gradient(180deg, rgba(15, 66, 69, 0.74), rgba(11, 15, 17, 0.86));
  border: 1px solid rgba(45, 181, 176, 0.28);
  font-weight: 900;
  overflow: hidden;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.32);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.shadow-quickbar a.is-image-button {
  min-height: clamp(112px, 9.2vw, 146px);
  background:
    linear-gradient(90deg, rgba(2, 7, 8, 0.12), rgba(2, 7, 8, 0.04)),
    var(--quick-image) center / cover no-repeat;
  border-color: rgba(45, 181, 176, 0.44);
}

.shadow-quickbar a.is-image-button::before,
.shadow-quickbar a.is-image-button::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.shadow-quickbar a.is-image-button::before {
  background:
    linear-gradient(90deg, rgba(244, 210, 138, 0.16), transparent 34%),
    radial-gradient(circle at 76% 36%, rgba(45, 181, 176, 0.18), transparent 36%);
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity 0.18s ease;
}

.shadow-quickbar a.is-image-button::after {
  inset: 1px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.shadow-quickbar a.is-image-button .quick-icon,
.shadow-quickbar a.is-image-button strong {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.shadow-quickbar a:hover {
  border-color: rgba(244, 210, 138, 0.62);
  transform: translateY(-1px);
  filter: brightness(1.08) saturate(1.08);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.42), 0 0 22px rgba(45, 181, 176, 0.22);
}

.shadow-quickbar a.is-image-button:hover::before {
  opacity: 1;
}

.shadow-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: start;
}

.shadow-main-column {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.shadow-side-column {
  display: grid;
  gap: 14px;
}

.shadow-side-column .side-panel + .side-panel {
  margin-top: 0;
}

.shadow-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 330px);
  gap: 18px;
  align-items: stretch;
  overflow: hidden;
}

.shadow-action-row > .side-panel,
.shadow-action-row > .sponsor-card {
  height: 100%;
  min-height: 338px;
  min-width: 0;
}

.shadow-action-row > .side-panel {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.shadow-action-row > .side-panel .panel-body {
  display: grid;
  align-items: center;
  min-width: 0;
}

.shadow-download {
  background: linear-gradient(180deg, rgba(6, 12, 14, 0.96), rgba(5, 7, 9, 0.98));
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.shadow-download .panel-title {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 52px;
  padding: 12px 18px 10px;
  background: linear-gradient(180deg, rgba(13, 67, 67, 0.9), rgba(8, 20, 22, 0.88));
}

.shadow-download .panel-title::after {
  left: 18px;
  bottom: 8px;
  width: 74px;
  background: linear-gradient(90deg, #2db5b0, rgba(45, 181, 176, 0));
}

.shadow-download .panel-body {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding: 24px 22px 32px;
  overflow: hidden;
}

.shadow-download .download-card {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 236px;
  display: grid;
  grid-template-columns: minmax(118px, 0.72fr) minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  column-gap: clamp(18px, 3vw, 30px);
  padding: 6px 0 4px;
  text-align: center;
  overflow: hidden;
}

.shadow-download .download-circle {
  grid-row: span 3;
  width: 120px;
  height: 120px;
  margin: 0;
  background:
    radial-gradient(circle at 50% 44%, rgba(92, 33, 23, 0.88), rgba(31, 12, 11, 0.96) 62%, #0b0708 100%);
  border-color: rgba(216, 166, 74, 0.5);
  box-shadow:
    inset 0 0 0 1px rgba(216, 166, 74, 0.16),
    inset 0 0 28px rgba(216, 166, 74, 0.1),
    0 0 22px rgba(216, 166, 74, 0.48),
    0 0 58px rgba(164, 68, 28, 0.32),
    0 12px 28px rgba(0, 0, 0, 0.42);
}

.shadow-download .download-circle::before {
  inset: 15px;
  border-color: rgba(216, 166, 74, 0.28);
  box-shadow: inset 0 0 0 1px rgba(216, 166, 74, 0.1);
}

.shadow-download .download-arrow {
  width: 52px;
  height: 52px;
}

.shadow-download .download-arrow::before {
  left: 23px;
  top: 5px;
  width: 6px;
  height: 30px;
}

.shadow-download .download-arrow::after {
  left: 13px;
  top: 24px;
  width: 24px;
  height: 24px;
  border-right-width: 6px;
  border-bottom-width: 6px;
}

.shadow-download .download-title,
.shadow-download .download-version {
  max-width: 100%;
  justify-self: center;
  align-self: center;
}

.shadow-download .download-title {
  color: #fff7d9;
  font-size: 22px;
  font-weight: 900;
  text-shadow: 0 0 12px rgba(216, 166, 74, 0.22);
}

.shadow-download .download-version {
  margin: 18px 0 30px;
  color: #eee2d1;
  font-size: 14px;
}

.shadow-download .download-main {
  width: min(240px, 100%);
  max-width: 100%;
  justify-self: center;
  align-self: center;
  box-sizing: border-box;
  min-height: 64px;
  margin: 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: rgba(236, 74, 55, 0.68);
  background: linear-gradient(180deg, rgba(42, 180, 176, 0.98), rgba(20, 122, 124, 0.98));
  color: #fff;
  font-size: 20px;
  letter-spacing: 0;
  box-shadow: 0 0 22px rgba(45, 181, 176, 0.24);
}

.shadow-download .download-main:hover {
  background: linear-gradient(180deg, rgba(55, 204, 197, 1), rgba(24, 138, 139, 1));
  box-shadow: 0 0 28px rgba(45, 181, 176, 0.36);
}

.shadow-sponsor {
  min-height: 338px;
  display: grid;
  align-content: center;
  margin-top: 0;
}

.shadow-sponsor .sponsor-coin {
  width: 86px;
  height: 86px;
  margin-bottom: 18px;
  animation: sponsorCoinGlow 2.8s ease-in-out infinite alternate;
}

@keyframes sponsorCoinGlow {
  0% {
    filter: brightness(0.95) saturate(1);
    transform: rotate(-8deg) translateY(0);
  }
  100% {
    filter: brightness(1.13) saturate(1.18);
    transform: rotate(-8deg) translateY(-4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .shadow-sponsor .sponsor-coin {
    animation: none;
  }
}

.shadow-home .portal-ad-banner {
  margin: 0;
}

.shadow-home .portal-ad-banner img {
  width: min(100%, 620px);
}

@media (max-width: 1050px) {
  .shadow-hero,
  .shadow-content-grid,
  .shadow-action-row {
    grid-template-columns: 1fr;
  }

  .shadow-hero__stats {
    border-left: 0;
    border-top: 1px solid rgba(217, 170, 85, 0.24);
  }

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

@media (max-width: 620px) {
  .shadow-home__inner {
    width: min(100%, calc(100% - 20px));
    padding-top: 18px;
  }

  .shadow-hero {
    min-height: auto;
  }

  .shadow-hero__copy {
    padding: 28px 20px 24px;
  }

  .shadow-hero .hero-title {
    font-size: clamp(40px, 13vw, 58px);
  }

  .shadow-hero__stats .stats-strip,
  .shadow-quickbar {
    grid-template-columns: 1fr 1fr;
  }

  .shadow-quickbar a {
    min-height: 68px;
    flex-direction: column;
    gap: 5px;
  }

  .shadow-download .download-card {
    grid-template-columns: 1fr;
    text-align: center;
    row-gap: 14px;
  }

  .shadow-download .download-circle {
    grid-row: auto;
    margin: 0 auto;
    width: 100px;
    height: 100px;
  }

  .shadow-download .download-main {
    width: 100%;
  }
}

/* Shadow Realm layout remake v3: portal uses a side command menu, not the copied topbar silhouette. */
.shadow-portal-shell .footer {
  margin-left: 0;
}

.shadow-console-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.shadow-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  padding: 22px 18px;
  background:
    linear-gradient(180deg, rgba(5, 11, 13, 0.96), rgba(7, 9, 11, 0.98)),
    url("./assets/shadowrealm-hero.png") 58% center / cover no-repeat;
  border-right: 1px solid rgba(45, 181, 176, 0.32);
  box-shadow: 16px 0 46px rgba(0, 0, 0, 0.36);
}

.shadow-sidebar__brand {
  min-height: 112px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  color: #f4d28a;
  background:
    linear-gradient(135deg, rgba(217, 170, 85, 0.18), rgba(45, 181, 176, 0.1)),
    rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(217, 170, 85, 0.3);
}

.shadow-sidebar__brand span {
  font-size: 31px;
  font-weight: 900;
  text-shadow: 0 0 18px rgba(45, 181, 176, 0.42), 0 2px 0 rgba(0, 0, 0, 0.85);
}

.shadow-sidebar__brand em {
  color: rgba(235, 230, 211, 0.72);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 2px;
}

.shadow-sidebar__brand--image {
  min-height: 126px;
  padding: 16px 18px;
  overflow: hidden;
}

.shadow-sidebar__brand--image img {
  width: 100%;
  max-width: 238px;
  max-height: 92px;
  object-fit: contain;
  filter:
    drop-shadow(0 0 10px rgba(55, 171, 255, 0.62))
    drop-shadow(0 6px 14px rgba(0, 0, 0, 0.82));
}

.shadow-sidebar__nav {
  display: grid;
  align-content: start;
  gap: 8px;
}

.shadow-sidebar__nav a {
  min-height: 62px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: #efe6d2;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.shadow-sidebar__nav .nav-symbol {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #f6d77f;
  background:
    radial-gradient(circle at 50% 42%, rgba(246, 215, 127, 0.16), transparent 54%),
    linear-gradient(145deg, rgba(246, 215, 127, 0.13), rgba(45, 181, 176, 0.08));
  border: 1px solid rgba(246, 215, 127, 0.28);
  box-shadow: inset 0 0 10px rgba(246, 215, 127, 0.08), 0 0 12px rgba(45, 181, 176, 0.08);
  font-size: 16px;
  line-height: 1;
}

.shadow-sidebar__nav a:hover,
.shadow-sidebar__nav a.is-active {
  color: #fff;
  background: linear-gradient(90deg, rgba(45, 181, 176, 0.48), rgba(217, 170, 85, 0.12));
  border-color: rgba(45, 181, 176, 0.5);
}

.shadow-sidebar__nav a:hover .nav-symbol,
.shadow-sidebar__nav a.is-active .nav-symbol {
  color: #fff1b8;
  border-color: rgba(246, 215, 127, 0.58);
  background:
    radial-gradient(circle at 50% 42%, rgba(246, 215, 127, 0.34), transparent 56%),
    linear-gradient(145deg, rgba(246, 215, 127, 0.22), rgba(45, 181, 176, 0.24));
  box-shadow: inset 0 0 12px rgba(246, 215, 127, 0.16), 0 0 18px rgba(45, 181, 176, 0.28);
}

.shadow-sidebar__nav strong,
.shadow-sidebar__nav em {
  display: block;
  line-height: 1.2;
}

.shadow-sidebar__nav strong {
  font-size: 16px;
}

.shadow-sidebar__nav em {
  margin-top: 3px;
  color: rgba(231, 223, 207, 0.58);
  font-size: 10px;
  font-style: normal;
  text-transform: uppercase;
}

.shadow-sidebar__member {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #d9d0be;
}

.shadow-sidebar__member strong {
  flex: 1 0 100%;
  color: #f4d28a;
}

.shadow-sidebar__member a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: #071012;
  background: #d9aa55;
  font-weight: 900;
}

.shadow-console-layout .shadow-home__inner {
  width: min(1180px, calc(100% - 38px));
  padding: 34px 0 56px;
}

.shadow-console-layout .shadow-hero {
  min-height: 620px;
  grid-template-columns: minmax(0, 1fr);
  align-content: end;
  align-items: stretch;
}

.shadow-console-layout .shadow-hero__copy {
  max-width: 820px;
  padding-bottom: 72px;
}

.shadow-console-layout .shadow-hero__stats {
  position: relative;
  right: auto;
  bottom: auto;
  width: 100%;
  padding: 16px 0 0;
  background: transparent;
  border: 0;
}

.shadow-console-layout .shadow-hero__stats .stats-strip {
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.shadow-console-layout .shadow-hero__stats .stat {
  min-height: 82px;
}

.shadow-console-layout .shadow-quickbar {
  margin: 18px 24px 22px;
  position: relative;
  z-index: 2;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shadow-console-layout .shadow-quickbar a {
  min-height: 92px;
  justify-content: flex-start;
  padding: 16px 18px;
}

.shadow-console-layout .shadow-content-grid {
  grid-template-columns: minmax(0, 1fr) 360px;
}

@media (max-width: 1100px) {
  .shadow-portal-shell .footer {
    margin-left: 0;
  }

  .shadow-console-layout {
    grid-template-columns: 1fr;
  }

  .shadow-sidebar {
    position: relative;
    min-height: auto;
    grid-template-rows: auto auto auto;
  }

  .shadow-sidebar__nav {
    grid-template-columns: repeat(4, 1fr);
  }

  .shadow-sidebar__nav a {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

@media (max-width: 760px) {
  .shadow-sidebar {
    padding: 12px;
  }

  .shadow-sidebar__brand {
    min-height: 82px;
  }

  .shadow-sidebar__brand--image {
    min-height: 96px;
  }

  .shadow-sidebar__brand--image img {
    max-height: 74px;
  }

  .shadow-sidebar__brand span {
    font-size: 26px;
  }

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

  .shadow-console-layout .shadow-home__inner {
    width: min(100%, calc(100% - 20px));
    padding-top: 18px;
  }

  .shadow-console-layout .shadow-hero {
    min-height: auto;
    display: block;
  }

  .shadow-console-layout .shadow-hero__copy {
    padding: 28px 20px 24px;
  }

  .shadow-console-layout .shadow-hero__stats {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: auto;
    padding: 0 20px 20px;
  }

  .shadow-console-layout .shadow-hero__stats .stats-strip,
  .shadow-console-layout .shadow-quickbar,
  .shadow-console-layout .shadow-content-grid {
    grid-template-columns: 1fr;
  }

  .shadow-console-layout .shadow-quickbar {
    margin: 14px 0;
  }
}

/* Distinct Shadow Realm action buttons */
.shadow-home .hero-video-btn,
.shadow-home .hero-button {
  position: relative !important;
  min-width: 194px !important;
  min-height: 74px !important;
  overflow: hidden !important;
  isolation: isolate !important;
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  border-radius: 0 !important;
  text-shadow: none !important;
}

.shadow-home .hero-video-btn::before,
.shadow-home .hero-button::before {
  content: "";
  position: absolute;
  inset: 9px auto 9px 12px;
  z-index: -1;
  width: 4px;
  background: currentColor;
  opacity: 0.72;
  box-shadow: 0 0 16px currentColor;
}

.shadow-home .hero-video-btn::after,
.shadow-home .hero-button::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.16), transparent 28%, transparent 72%, rgba(255, 255, 255, 0.08));
  opacity: 0.65;
}

.shadow-home .hero-video-btn .t,
.shadow-home .hero-button {
  font-size: 18px !important;
  letter-spacing: 0 !important;
}

.shadow-home .hero-video-btn .e,
.shadow-home .hero-button span {
  margin-top: 4px !important;
  font-size: 11px !important;
  letter-spacing: 3px !important;
}

.shadow-home .hero-video-btn.btn-red,
.shadow-home .hero-button--red {
  color: #8df5ec !important;
  background:
    linear-gradient(180deg, rgba(10, 48, 52, 0.96), rgba(5, 20, 24, 0.96)) !important;
  border: 1px solid rgba(100, 238, 225, 0.72) !important;
  box-shadow:
    0 0 0 1px rgba(5, 14, 16, 0.94),
    inset 0 0 28px rgba(45, 181, 176, 0.24),
    0 14px 30px rgba(45, 181, 176, 0.16) !important;
}

.shadow-home .hero-video-btn.btn-gold,
.shadow-home .hero-button--gold {
  color: #ffe0a0 !important;
  background:
    linear-gradient(180deg, rgba(83, 57, 24, 0.98), rgba(30, 21, 12, 0.98)) !important;
  border: 1px solid rgba(244, 210, 138, 0.72) !important;
  box-shadow:
    0 0 0 1px rgba(11, 8, 4, 0.94),
    inset 0 0 28px rgba(217, 170, 85, 0.24),
    0 14px 30px rgba(217, 170, 85, 0.14) !important;
}

.shadow-home .hero-video-btn.btn-gold .e,
.shadow-home .hero-button--gold span {
  color: rgba(255, 224, 160, 0.68) !important;
}

.shadow-home .hero-video-btn:hover,
.shadow-home .hero-button:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

/* Bottom alignment cleanup */
.shadow-home {
  padding-bottom: 28px !important;
}

.shadow-console-layout {
  background:
    linear-gradient(90deg, rgba(4, 8, 10, 0.98) 0 280px, transparent 280px),
    linear-gradient(180deg, rgba(4, 8, 10, 0.18), rgba(4, 8, 10, 0.92));
}

.shadow-console-layout .shadow-home__inner {
  padding-bottom: 34px;
}

/* v28 action button restyle */
.shadow-home .hero-cta {
  gap: 34px !important;
}

.shadow-home .hero-video-btn,
.shadow-home .hero-button {
  min-width: 236px !important;
  min-height: 88px !important;
  padding: 16px 34px 15px 52px !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 0 !important;
  clip-path: polygon(18px 0, 100% 0, calc(100% - 18px) 100%, 0 100%) !important;
  background-size: 100% 100% !important;
}

.shadow-home .hero-video-btn::before,
.shadow-home .hero-button::before {
  inset: 14px auto 14px 18px !important;
  width: 5px !important;
  opacity: 0.95 !important;
}

.shadow-home .hero-video-btn::after,
.shadow-home .hero-button::after {
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.18), transparent 24%, transparent 72%, rgba(255, 255, 255, 0.08)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 46%, rgba(0, 0, 0, 0.18)) !important;
  opacity: 1 !important;
}

.shadow-home .hero-video-btn .t,
.shadow-home .hero-button {
  font-size: 22px !important;
  line-height: 1.2 !important;
  font-weight: 900 !important;
}

.shadow-home .hero-video-btn .e,
.shadow-home .hero-button span {
  margin-top: 7px !important;
  font-size: 14px !important;
  line-height: 1 !important;
  letter-spacing: 5px !important;
}

.shadow-home .hero-video-btn.btn-red,
.shadow-home .hero-button--red {
  color: #9ef8f0 !important;
  background:
    linear-gradient(100deg, rgba(27, 155, 150, 0.90), rgba(9, 60, 65, 0.82) 54%, rgba(5, 28, 34, 0.92)) !important;
  border: 1px solid rgba(104, 244, 235, 0.78) !important;
  box-shadow:
    inset 0 0 34px rgba(88, 236, 226, 0.22),
    inset 0 1px 0 rgba(201, 255, 250, 0.32),
    0 16px 32px rgba(0, 0, 0, 0.35),
    0 0 22px rgba(45, 181, 176, 0.22) !important;
}

.shadow-home .hero-video-btn.btn-red::before,
.shadow-home .hero-button--red::before {
  color: #9ef8f0 !important;
}

.shadow-home .hero-video-btn.btn-red .e,
.shadow-home .hero-button--red span {
  color: rgba(236, 255, 252, 0.78) !important;
}

.shadow-home .hero-video-btn.btn-gold,
.shadow-home .hero-button--gold {
  color: #f7d98a !important;
  background:
    linear-gradient(100deg, rgba(135, 92, 36, 0.92), rgba(83, 55, 22, 0.86) 54%, rgba(38, 25, 11, 0.94)) !important;
  border: 1px solid rgba(246, 204, 124, 0.78) !important;
  box-shadow:
    inset 0 0 34px rgba(217, 170, 85, 0.24),
    inset 0 1px 0 rgba(255, 237, 190, 0.34),
    0 16px 32px rgba(0, 0, 0, 0.35),
    0 0 22px rgba(217, 170, 85, 0.18) !important;
}

.shadow-home .hero-video-btn.btn-gold::before,
.shadow-home .hero-button--gold::before {
  color: #f8dda2 !important;
}

.shadow-home .portal-ad-banner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 10px 0;
  background: transparent;
  border: 0;
}

.shadow-home .portal-ad-banner img {
  width: min(100%, 620px);
  max-height: 64px;
  object-fit: contain;
  opacity: 0.9;
  border: 0;
  box-shadow: none;
}

.shadow-portal-shell .footer {
  width: 100%;
  margin: 0;
  padding: 26px max(18px, calc((100vw - 1180px) / 2)) 30px;
  background:
    linear-gradient(180deg, rgba(7, 11, 13, 0.94), #050607) !important;
  border-top: 1px solid rgba(45, 181, 176, 0.26);
  box-sizing: border-box;
}

.shadow-portal-shell .footer-brand-line,
.shadow-portal-shell .footer p {
  justify-content: center;
  text-align: center;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.shadow-portal-shell .footer-company {
  width: min(100%, 1180px);
  margin-top: 18px;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
  background: rgba(255, 255, 255, 0.045);
  box-sizing: border-box;
}

.shadow-portal-shell .footer-company-copy {
  text-align: left;
}

@media (max-width: 1100px) {
  .shadow-console-layout {
    background: linear-gradient(180deg, rgba(4, 8, 10, 0.2), rgba(4, 8, 10, 0.92));
  }

  .shadow-portal-shell .footer {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (max-width: 720px) {
  .shadow-portal-shell .footer {
    padding-left: 12px;
    padding-right: 12px;
  }

  .shadow-portal-shell .footer-company {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .shadow-portal-shell .footer-company-logo {
    width: min(180px, 100%);
  }
}

/* v47: lock the download/sponsor row so the download card cannot spill into the sponsor card. */
.shadow-home .shadow-action-row {
  display: flex !important;
  align-items: stretch !important;
  gap: 18px !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important;
}

.shadow-home .shadow-action-row > .shadow-download {
  flex: 1 1 0 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: calc(100% - 348px) !important;
  grid-column: auto !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.shadow-home .shadow-action-row > .shadow-sponsor {
  flex: 0 0 330px !important;
  width: 330px !important;
  min-width: 0 !important;
  max-width: 330px !important;
  grid-column: auto !important;
  box-sizing: border-box !important;
}

.shadow-home .shadow-download .panel-title,
.shadow-home .shadow-download .panel-body,
.shadow-home .shadow-download .download-card {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  transform: none !important;
  left: auto !important;
  right: auto !important;
  overflow: hidden !important;
}

.shadow-home .shadow-download .panel-title {
  display: flex !important;
}

.shadow-home .shadow-download .download-card {
  display: grid !important;
  grid-template-columns: minmax(112px, 150px) minmax(0, 1fr) !important;
  column-gap: 22px !important;
}

.shadow-home .shadow-download .download-main {
  width: min(220px, 100%) !important;
  max-width: 100% !important;
  justify-self: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

@media (max-width: 980px) {
  .shadow-home .shadow-action-row {
    flex-direction: column !important;
  }

  .shadow-home .shadow-action-row > .shadow-download,
  .shadow-home .shadow-action-row > .shadow-sponsor {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 620px) {
  .shadow-home .shadow-download .download-card {
    grid-template-columns: 1fr !important;
  }
}

/* v57: keep loader and footer logos visible and uncropped. */
.entry-loader__logo {
  display: block !important;
  width: min(86vw, 430px) !important;
  height: min(28vw, 180px) !important;
  object-fit: contain !important;
  object-position: center !important;
}

.entry-loader__core {
  width: min(82vw, 390px) !important;
}

.footer-logo {
  display: block !important;
  width: 34px !important;
  height: 26px !important;
  object-fit: contain !important;
  object-position: center !important;
}

/* v59: keep the hero character sword fully visible on the homepage. */
.shadow-home .shadow-hero {
  overflow: visible !important;
}

.shadow-home .shadow-hero__media {
  overflow: hidden !important;
}

.shadow-home .shadow-hero::before,
.shadow-home .shadow-hero::after {
  overflow: visible !important;
}

.shadow-home .shadow-hero__character {
  right: clamp(-96px, -4vw, -34px) !important;
  bottom: 74px !important;
  width: clamp(350px, 32vw, 520px) !important;
  max-width: none !important;
  object-fit: contain !important;
  object-position: center bottom !important;
}

@media (max-width: 980px) {
  .shadow-home .shadow-hero {
    overflow: hidden !important;
  }

  .shadow-home .shadow-hero__character {
    right: -96px !important;
    width: min(74vw, 420px) !important;
  }
}
