/* =========================================================
   Dudu Potian Yijian - portal layout
   Original wuxia game portal styling
   ========================================================= */

html {
  scroll-padding-top: 24px;
}

.portal-page {
  background:
    radial-gradient(ellipse at 10% 12%, rgba(157, 58, 49, 0.045), transparent 34%),
    radial-gradient(ellipse at 88% 4%, rgba(214, 179, 111, 0.04), transparent 38%),
    #05090a;
}

.portal-page .mobile-menu-bg {
  overflow: hidden;
}

/* ---------- Header overrides ---------- */
.portal-header {
  padding: 0;
  background: linear-gradient(180deg, rgba(4, 8, 9, 0.95), rgba(5, 10, 11, 0.78));
  border-bottom: 1px solid rgba(214, 179, 111, 0.14);
}

.portal-header.is-scrolled {
  padding: 0;
  background: rgba(5, 9, 10, 0.94);
  border-bottom-color: rgba(214, 179, 111, 0.18);
}

.portal-header .nav-shell {
  width: min(1240px, calc(100% - 64px));
  height: 76px;
  gap: 18px;
}

.portal-header .brand-copy strong {
  font-size: 15px;
  letter-spacing: 0.1em;
}

.portal-header .desktop-nav a {
  padding: 12px 11px;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.portal-header .desktop-nav {
  margin-right: auto;
}

.portal-header .desktop-nav a::after {
  left: 11px;
  right: 11px;
  bottom: 4px;
}

.portal-header .nav-cta {
  height: 38px;
  padding: 0 16px;
}

.portal-header .nav-cta svg {
  width: 13px;
  height: 13px;
}

/* ---------- Banner ---------- */
.portal-hero {
  min-height: 260px;
  padding-top: 0;
  background: #05090a;
  border-bottom: 1px solid rgba(214, 179, 111, 0.13);
}

.portal-hero .hero-bg-img {
  object-position: center 45%;
}

.portal-hero .hero-vignette {
  background:
    linear-gradient(180deg, rgba(4, 8, 9, 0.82) 0%, transparent 22%, transparent 64%, rgba(4, 8, 9, 0.94) 100%),
    radial-gradient(ellipse at 50% 44%, transparent 0%, rgba(3, 7, 8, 0.08) 48%, rgba(3, 7, 8, 0.46) 100%);
}

.portal-hero .hero-inner {
  max-width: 940px;
  padding-top: 24px;
  padding-bottom: 38px;
}

.portal-hero .hero-eyebrow {
  font-size: 10px;
  letter-spacing: 0.3em;
}

.portal-hero .hero-title {
  margin-top: 20px;
  font-size: clamp(2.9rem, 7vw, 5.7rem);
  letter-spacing: 0.11em;
}

.portal-hero .hero-title-line {
  display: inline-block;
  transform: scaleX(1.06);
  transform-origin: center;
}

.portal-hero .hero-subtitle {
  margin-top: 18px;
}

.portal-hero .hero-actions {
  margin-top: 30px;
}

.portal-hero .hero-tags {
  margin-top: 24px;
}

.portal-hero .hero-side {
  top: 54%;
  opacity: 0.8;
}

.hero-sword {
  position: absolute;
  top: -44px;
  left: 50%;
  z-index: 1;
  width: 260px;
  transform: translateX(-50%);
  opacity: 0.3;
  pointer-events: none;
}

.hero-sword img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 26px rgba(214, 179, 111, 0.18));
}

/* ---------- Notice bar ---------- */
.notice-bar {
  position: relative;
  z-index: 2;
  background: #0a1112;
  border-top: 1px solid rgba(214, 179, 111, 0.13);
  border-bottom: 1px solid rgba(214, 179, 111, 0.13);
}

.notice-bar .container {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 46px;
}

.notice-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  padding: 4px 9px;
  background: #96372f;
  color: #f4e6cd;
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: 0.12em;
  box-shadow: inset 0 0 0 1px rgba(255, 240, 215, 0.18);
}

.notice-bar p {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  color: #969184;
  font-size: 10.5px;
  letter-spacing: 0.02em;
}

.notice-dot {
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: #84b59c;
  box-shadow: 0 0 7px rgba(132, 181, 156, 0.45);
}

.notice-bar a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  color: var(--gold);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  transition: color 0.3s;
}

.notice-bar a:hover {
  color: var(--gold-bright);
}

.notice-bar a svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Portal layout ---------- */
.portal-main {
  position: relative;
  z-index: 2;
  padding: 28px 0 6px;
}

.portal-grid {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 292px;
  gap: 18px;
  align-items: start;
}

.rail {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.portal-center {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.portal-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(214, 179, 111, 0.18);
  background:
    linear-gradient(165deg, rgba(19, 28, 29, 0.92), rgba(7, 12, 13, 0.97)),
    #0a1112;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.26);
}

.portal-panel::before {
  content: "";
  position: absolute;
  inset: 4px;
  z-index: 2;
  border: 1px solid rgba(214, 179, 111, 0.055);
  pointer-events: none;
}

.portal-panel::after {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  z-index: 2;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 220, 174, 0.24), transparent);
  pointer-events: none;
}

.panel-head {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(214, 179, 111, 0.12);
  background: rgba(5, 10, 11, 0.24);
}

.panel-head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.05em;
  color: var(--gold-bright);
}

.panel-seal {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  border: 1px solid rgba(255, 238, 210, 0.24);
  background: #8f342d;
  color: #f4e6cd;
  font-family: var(--serif);
  font-size: 9px;
  font-weight: 400;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(244, 230, 205, 0.12);
}

.panel-en {
  margin-left: 2px;
  color: rgba(214, 179, 111, 0.38);
  font-family: var(--sans);
  font-size: 6.5px;
  font-weight: 400;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.panel-more {
  flex: none;
  color: #807b6d;
  font-size: 8.5px;
  letter-spacing: 0.04em;
  transition: color 0.3s;
}

.panel-more span {
  color: var(--gold);
  font-size: 11px;
}

.panel-more:hover {
  color: var(--gold);
}

.panel-note {
  flex: none;
  color: #625f55;
  font-size: 7.5px;
  letter-spacing: 0.03em;
}

.panel-body {
  position: relative;
  z-index: 3;
  padding: 16px;
}

/* ---------- Quick actions ---------- */
.quick-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 15px;
  border: 1px solid rgba(214, 179, 111, 0.18);
  background:
    linear-gradient(135deg, rgba(21, 31, 32, 0.86), rgba(8, 13, 14, 0.92)),
    #0b1213;
  color: #d8d1c1;
  overflow: hidden;
  transition:
    border-color 0.35s,
    transform 0.35s var(--ease),
    background 0.35s;
}

.quick-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 13%;
  right: 13%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 220, 174, 0.3), transparent);
  opacity: 0.5;
}

.quick-card:hover {
  border-color: rgba(214, 179, 111, 0.42);
  background:
    linear-gradient(135deg, rgba(29, 39, 38, 0.9), rgba(9, 14, 15, 0.95)),
    #0b1213;
  transform: translateX(3px);
}

.quick-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border: 1px solid rgba(214, 179, 111, 0.22);
  background:
    radial-gradient(circle at 50% 50%, rgba(214, 179, 111, 0.08), transparent 70%),
    rgba(5, 10, 11, 0.3);
  color: var(--gold);
}

.quick-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quick-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.quick-copy strong {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: #e6ddca;
  white-space: nowrap;
}

.quick-copy small {
  color: rgba(214, 179, 111, 0.5);
  font-size: 7px;
  letter-spacing: 0.16em;
}

.quick-arrow {
  margin-left: auto;
  color: rgba(214, 179, 111, 0.55);
  font-size: 12px;
}

.quick-card--gold {
  border-color: rgba(255, 240, 205, 0.42);
  background: linear-gradient(135deg, #f0dba7 0%, #d3af68 48%, #b48743 100%);
  color: #181107;
  box-shadow: 0 14px 36px rgba(157, 116, 48, 0.12);
}

.quick-card--gold::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
}

.quick-card--gold .quick-icon {
  border-color: rgba(64, 40, 10, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #23180b;
}

.quick-card--gold .quick-copy strong {
  color: #1b1107;
}

.quick-card--gold .quick-copy small,
.quick-card--gold .quick-arrow {
  color: rgba(35, 22, 6, 0.58);
}

/* ---------- Community / status ---------- */
.community-body {
  text-align: center;
}

.community-seal {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin: 1px auto 12px;
  border: 1px solid rgba(255, 238, 210, 0.38);
  background: #8f342d;
  color: #f4e6cd;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.1;
  letter-spacing: 0.08em;
  transform: rotate(-2deg);
  box-shadow:
    inset 0 0 0 3px rgba(244, 230, 205, 0.1),
    0 8px 22px rgba(80, 30, 24, 0.22);
}

.community-body > p {
  color: #8b877a;
  font-size: 9.5px;
  letter-spacing: 0.05em;
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px dashed rgba(214, 179, 111, 0.12);
  font-size: 9.5px;
}

.contact-row span {
  color: #706d62;
}

.contact-row strong {
  color: var(--gold);
  font-weight: 500;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(214, 179, 111, 0.1);
  font-size: 10px;
}

.status-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.status-row span {
  color: #726f64;
}

.status-row strong {
  color: #c4bcaa;
  font-weight: 500;
}

.status-row .is-gold {
  color: var(--gold);
}

.rail-left {
  align-self: stretch;
}

.status-preview {
  position: relative;
  flex: 1 1 0;
  min-height: 96px;
  margin: 0;
  border: 1px solid rgba(214, 179, 111, 0.18);
  background: #0a1112;
  overflow: hidden;
}

.status-preview::after {
  content: "";
  position: absolute;
  inset: 4px;
  z-index: 1;
  border: 1px solid rgba(255, 240, 215, 0.12);
  pointer-events: none;
}

.status-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 52%;
  filter: saturate(0.86) brightness(0.88) contrast(1.04);
  transition: transform 0.6s var(--ease);
}

.status-preview:hover img {
  transform: scale(1.035);
}

/* ---------- News ---------- */
.notice-highlight {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  margin-bottom: 8px;
  border: 1px solid rgba(157, 58, 49, 0.24);
  background: linear-gradient(90deg, rgba(157, 58, 49, 0.12), rgba(157, 58, 49, 0.02));
}

.notice-highlight p {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: #c0b5a1;
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice-highlight a {
  flex: none;
  color: var(--gold);
  font-size: 8.5px;
}

.news-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  flex: none;
  padding: 2px 5px;
  border: 1px solid rgba(214, 179, 111, 0.18);
  background: rgba(214, 179, 111, 0.035);
  color: #b79a68;
  font-size: 8px;
  line-height: 1.4;
  letter-spacing: 0.03em;
}

.news-tag--red {
  border-color: rgba(157, 58, 49, 0.35);
  background: rgba(157, 58, 49, 0.12);
  color: #d29a8e;
}

.news-list li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(214, 179, 111, 0.09);
}

.news-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.news-list a {
  overflow: hidden;
  color: #b5b0a3;
  font-size: 10.8px;
  letter-spacing: 0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.3s;
}

.news-list a:hover {
  color: var(--gold-bright);
}

.news-meta {
  color: rgba(214, 179, 111, 0.42);
  font-size: 7.5px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* ---------- New server ---------- */
.newserver-body {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 18px;
  padding: 20px;
  background: radial-gradient(ellipse at 85% 50%, rgba(157, 58, 49, 0.09), transparent 42%);
}

.panel-kicker {
  color: rgba(214, 179, 111, 0.52);
  font-size: 7px;
  letter-spacing: 0.24em;
}

.newserver-copy h3 {
  margin-top: 7px;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: #f0e5cf;
}

.newserver-copy h3 em {
  font-style: normal;
  color: var(--gold-bright);
  background: linear-gradient(180deg, #f4dfb2, #c9a35e);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.newserver-copy > p:not(.panel-kicker) {
  margin-top: 9px;
  color: #8d897b;
  font-size: 10.8px;
  line-height: 1.9;
}

.newserver-copy .server-points {
  max-width: none;
  margin-top: 13px;
}

.newserver-copy .server-points li {
  padding: 6px 0;
  border-bottom-color: rgba(214, 179, 111, 0.09);
  font-size: 10px;
}

.newserver-copy .server-points li:last-child {
  border-bottom: 0;
}

.newserver-copy .check-dot {
  width: 19px;
  height: 19px;
}

.newserver-copy .btn {
  height: 44px;
  margin-top: 15px;
  padding: 0 18px;
  font-size: 10.5px;
}

.newserver-stamp {
  align-self: center;
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 132px;
  height: 132px;
  border: 1px solid rgba(255, 238, 210, 0.38);
  outline: 1px solid rgba(157, 58, 49, 0.3);
  outline-offset: 4px;
  background:
    radial-gradient(circle at 40% 30%, rgba(255, 240, 215, 0.12), transparent 42%),
    #8f342d;
  color: #f4e6cd;
  transform: rotate(-3deg);
  box-shadow:
    inset 0 0 0 3px rgba(244, 230, 205, 0.1),
    0 12px 30px rgba(80, 30, 24, 0.2);
}

.newserver-stamp span {
  font-size: 9px;
  letter-spacing: 0.2em;
  opacity: 0.8;
}

.newserver-stamp strong {
  margin: 3px 0;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.12em;
}

.newserver-stamp small {
  font-size: 7px;
  letter-spacing: 0.14em;
  opacity: 0.6;
}

.server-meta-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(214, 179, 111, 0.11);
  background: rgba(5, 10, 11, 0.26);
}

.server-meta-grid > div {
  padding: 10px 14px;
  border-right: 1px solid rgba(214, 179, 111, 0.09);
}

.server-meta-grid > div:last-child {
  border-right: 0;
}

.server-meta-grid span {
  display: block;
  color: #706d62;
  font-size: 7.5px;
  letter-spacing: 0.06em;
}

.server-meta-grid strong {
  display: block;
  margin-top: 3px;
  color: #c8c0ae;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* ---------- Server list ---------- */
.table-wrap {
  overflow-x: auto;
}

.server-table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
}

.server-table th,
.server-table td {
  padding: 8px 6px;
  border-bottom: 1px dashed rgba(214, 179, 111, 0.1);
  text-align: left;
  font-size: 10px;
}

.server-table th {
  border-bottom: 1px solid rgba(214, 179, 111, 0.16);
  color: #87795e;
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.server-table td {
  color: #a8a294;
}

.server-table td:first-child {
  color: #d8cdb7;
}

.server-table tr:last-child td {
  border-bottom: 0;
}

.status-wait {
  color: var(--gold);
}

.table-note {
  margin-top: 9px;
  color: #625f55;
  font-size: 8.5px;
  line-height: 1.7;
}

/* ---------- Countdown ---------- */
.countdown-panel .panel-body {
  padding: 8px 14px 14px;
}

.portal-panel .launch-display {
  min-height: 0;
  padding: 8px 0 4px;
  margin: 0;
  border: 0;
}

.portal-panel .launch-pending span {
  font-size: 8px;
}

.portal-panel .launch-pending strong {
  margin: 3px 0 2px;
  font-size: 2.45rem;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
}

.portal-panel .launch-pending small {
  font-size: 8px;
  line-height: 1.6;
}

.portal-panel .countdown {
  gap: 3px;
}

.portal-panel .count-cell {
  min-width: 36px;
}

.portal-panel .count-cell strong {
  font-size: 1.2rem;
}

.portal-panel .count-cell span {
  margin-top: 3px;
  font-size: 7px;
}

.portal-panel .countdown > i {
  margin-top: 3px;
  font-size: 10px;
}

.portal-panel .launch-note {
  margin-top: 8px;
  font-size: 8px;
}

.panel-text-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  padding-top: 9px;
  border-top: 1px dashed rgba(214, 179, 111, 0.1);
  color: #7e796b;
  font-size: 9px;
  transition: color 0.3s;
}

.panel-text-link span {
  color: var(--gold);
}

.panel-text-link:hover {
  color: var(--gold-bright);
}

/* ---------- Service / guide / links ---------- */
.service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(214, 179, 111, 0.1);
  font-size: 9.5px;
}

.service-row span {
  color: #706d62;
}

.service-row strong {
  color: #c5bdaa;
  font-weight: 500;
}

.service-note {
  margin-top: 9px;
  color: #625f55;
  font-size: 8.5px;
  line-height: 1.7;
}

.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
  padding-top: 10px;
  padding-bottom: 12px;
}

.guide-grid a {
  position: relative;
  padding: 7px 0 7px 12px;
  border-bottom: 1px dashed rgba(214, 179, 111, 0.09);
  color: #948e80;
  font-size: 9.5px;
  transition: color 0.3s;
}

.guide-grid a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 3px;
  height: 3px;
  background: var(--gold);
  opacity: 0.48;
  transform: translateY(-50%) rotate(45deg);
}

.guide-grid a:hover {
  color: var(--gold-bright);
}

.friend-empty {
  color: #8b8679;
  font-size: 9.5px;
  letter-spacing: 0.03em;
}

.compliance {
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px dashed rgba(214, 179, 111, 0.1);
  color: #5f5c53;
  font-size: 8px;
  line-height: 1.9;
}

.portal-page .section {
  padding: clamp(64px, 7vw, 86px) 0;
}


/* ---------- Game intro manual ---------- */
.portal-page .intro-sheet-side::before {
  content: "则";
}

.intro-doc-body {
  position: relative;
  z-index: 2;
  padding: clamp(34px, 4.5vw, 52px) clamp(28px, 4vw, 54px);
  color: #25251f;
}

.intro-doc-warning {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 15px 17px;
  margin-bottom: 18px;
  border: 1px solid rgba(157, 58, 49, 0.28);
  background: linear-gradient(90deg, rgba(157, 58, 49, 0.08), rgba(157, 58, 49, 0.02));
}

.intro-doc-warning-mark {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  flex: none;
  border: 1px solid rgba(157, 58, 49, 0.35);
  border-radius: 50%;
  color: #9d3a31;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1;
}

.intro-doc-warning p {
  color: #6d3d36;
  font-size: 11.5px;
  line-height: 1.9;
  font-weight: 500;
}

.intro-rule-list {
  border-top: 1px solid rgba(59, 48, 29, 0.16);
}

.intro-rule-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(59, 48, 29, 0.16);
}

.intro-rule-row:last-child {
  border-bottom: 0;
}

.intro-rule-row h3 {
  margin: 0;
  padding-top: 2px;
  font-family: var(--serif);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.06em;
  color: #986f33;
}

.intro-rule-row p {
  margin: 0;
  color: #444037;
  font-size: 12.5px;
  line-height: 1.95;
  letter-spacing: 0.015em;
}

.skill-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.skill-map span {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border: 1px solid rgba(110, 80, 40, 0.15);
  background: rgba(80, 60, 30, 0.04);
  color: #4b4538;
  font-size: 10.5px;
  line-height: 1.6;
  white-space: nowrap;
}

.skill-map i {
  color: #9a7137;
  font-style: normal;
  opacity: 0.6;
}

.intro-doc-closing {
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid rgba(59, 48, 29, 0.16);
  color: #6f5a38;
  font-family: var(--serif);
  font-size: 12.5px;
  line-height: 1.8;
  letter-spacing: 0.05em;
  text-align: center;
}


/* ---------- Opening list ---------- */
.serverlist-body {
  position: relative;
  z-index: 3;
  padding: 20px;
}

.serverlist-body h3 {
  margin-top: 7px;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: #f0e5cf;
}

.serverlist-body h3 em {
  font-style: normal;
  color: var(--gold-bright);
  background: linear-gradient(180deg, #f4dfb2, #c9a35e);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.serverlist-copy {
  margin-top: 9px;
  color: #8d897b;
  font-size: 10.5px;
  line-height: 1.8;
}

.server-name-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 15px;
}

.server-name-grid li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(214, 179, 111, 0.12);
  background:
    linear-gradient(135deg, rgba(21, 31, 32, 0.6), rgba(8, 13, 14, 0.5)),
    rgba(5, 10, 11, 0.2);
}

.server-name-grid span {
  color: rgba(214, 179, 111, 0.5);
  font-family: var(--serif);
  font-size: 8px;
  letter-spacing: 0.04em;
}

.server-name-grid strong {
  color: #d8cebb;
  font-family: var(--serif);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.server-state {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
  margin-left: auto;
  font-style: normal;
  font-size: 7.5px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.server-state i {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.server-state--open {
  color: #91bea6;
}

.server-state--open i {
  background: #67b58b;
  box-shadow: 0 0 6px rgba(103, 181, 139, 0.55);
}

.server-state--closed {
  color: #b88d83;
}

.server-state--closed i {
  background: #a95044;
  box-shadow: 0 0 5px rgba(169, 80, 68, 0.4);
}

.serverlist-note {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(214, 179, 111, 0.1);
  color: #625f55;
  font-size: 8.5px;
  line-height: 1.7;
}

.friend-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border: 1px solid rgba(214, 179, 111, 0.14);
  background: rgba(214, 179, 111, 0.035);
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.03em;
  transition:
    border-color 0.3s,
    color 0.3s;
}

.friend-link span {
  color: rgba(214, 179, 111, 0.6);
  font-size: 11px;
}

.friend-link:hover {
  border-color: rgba(214, 179, 111, 0.34);
  color: var(--gold-bright);
}

/* ---------- Portal responsive ---------- */
@media (max-width: 1180px) {
  .portal-grid {
    grid-template-columns: 228px minmax(0, 1fr) 270px;
    gap: 14px;
  }

  .portal-header .nav-shell {
    width: calc(100% - 48px);
  }

  .portal-header .desktop-nav a {
    padding-inline: 8px;
    font-size: 11px;
  }

  .portal-header .desktop-nav a::after {
    left: 8px;
    right: 8px;
  }

  .portal-header .nav-cta {
    padding-inline: 12px;
  }

  .portal-hero {
    min-height: 250px;
  }
}

@media (max-width: 1080px) {
  .portal-grid {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  .rail-right {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
  }

  .rail-right .friend-panel {
    grid-column: span 1;
  }
}

@media (max-width: 900px) {
  .portal-header .nav-shell {
    width: calc(100% - 36px);
    height: 70px;
  }

  .portal-hero {
    min-height: 235px;
  }

  .portal-hero .hero-inner {
    padding-top: 18px;
    padding-bottom: 34px;
  }

  .portal-main {
    padding-top: 20px;
  }

  .portal-grid {
    gap: 14px;
  }

  .rail-right {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .rail-right .friend-panel {
    grid-column: 1 / -1;
  }

  .newserver-body {
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 12px;
    padding: 16px;
  }

  .newserver-stamp {
    width: 108px;
    height: 108px;
  }

  .intro-doc-body {
    padding: 30px 28px;
  }
}

@media (max-width: 760px) {
  .portal-grid {
    grid-template-columns: 1fr;
  }

  .portal-page .section {
    padding: 64px 0;
  }

  .newserver-stamp {
    justify-self: center;
  }

  .rail-left,
  .rail-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .rail-left > .portal-panel {
    grid-column: 1 / -1;
  }

  .rail-left .quick-card--gold {
    grid-column: 1 / -1;
  }

  .status-preview {
    grid-column: 1 / -1;
    flex: none;
    height: 200px;
    min-height: 0;
  }

  .portal-center {
    order: 1;
  }

  .rail-left {
    order: 2;
  }

  .rail-right {
    order: 3;
  }

  .portal-hero {
    min-height: 220px;
  }

  .portal-hero .hero-title {
    font-size: clamp(2.7rem, 9vw, 4.1rem);
  }

  .hero-sword {
    top: -20px;
    width: 190px;
    opacity: 0.22;
  }

  .portal-hero .hero-side {
    display: none;
  }

  .notice-bar .container {
    flex-wrap: wrap;
    gap: 8px 12px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .notice-bar p {
    order: 3;
    flex-basis: 100%;
    font-size: 10px;
  }

  .notice-bar a {
    margin-left: auto;
  }

  .newserver-body {
    grid-template-columns: 1fr;
  }

  .newserver-stamp {
    justify-self: center;
    width: 96px;
    height: 96px;
    margin-top: 4px;
  }

  .newserver-stamp strong {
    font-size: 19px;
  }

  .server-meta-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .server-meta-grid > div {
    padding: 9px 10px;
  }

  .panel-head {
    gap: 8px;
  }

  .panel-en {
    display: none;
  }

  .panel-note {
    display: none;
  }

  .news-list a {
    font-size: 10.2px;
  }

  .portal-panel .launch-pending strong {
    font-size: 2.2rem;
  }
}

@media (max-width: 600px) {
  .portal-page .section {
    padding: 56px 0;
  }

  .intro-doc-body {
    padding: 24px 18px;
  }

  .serverlist-body {
    padding: 16px 13px;
  }

  .serverlist-body h3 {
    font-size: 1.45rem;
  }

  .server-name-grid li {
    gap: 6px;
    padding: 6px 8px;
  }

  .server-name-grid strong {
    font-size: 12px;
  }

  .status-preview {
    height: 175px;
  }

  .friend-link {
    font-size: 9.5px;
  }

  .intro-doc-warning {
    gap: 9px;
    padding: 12px;
    margin-bottom: 14px;
  }

  .intro-doc-warning-mark {
    width: 24px;
    height: 24px;
    font-size: 13px;
  }

  .intro-doc-warning p {
    font-size: 10.8px;
    line-height: 1.85;
  }

  .intro-rule-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px 0;
  }

  .intro-rule-row h3 {
    padding-top: 0;
    font-size: 13px;
  }

  .intro-rule-row p {
    font-size: 11.5px;
    line-height: 1.9;
  }

  .skill-map {
    grid-template-columns: 1fr 1fr;
    margin-top: 3px;
  }

  .skill-map span {
    font-size: 10px;
  }

  .intro-doc-closing {
    margin-top: 15px;
    padding-top: 13px;
    font-size: 11px;
  }

  .portal-header .brand-copy strong {
    font-size: 13px;
    letter-spacing: 0.06em;
  }

  .portal-header .brand-seal {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }

  .portal-header .brand-copy small {
    font-size: 7px;
  }

  .portal-hero {
    min-height: 205px;
  }

  .portal-hero .hero-eyebrow {
    gap: 10px;
    font-size: 8.5px;
    letter-spacing: 0.2em;
  }

  .portal-hero .hero-title {
    margin-top: 16px;
    font-size: clamp(2.35rem, 10.5vw, 3.25rem);
    letter-spacing: 0.08em;
  }

  .portal-hero .hero-title-line {
    transform: scaleX(1.05);
  }

  .portal-hero .hero-subtitle {
    margin-top: 15px;
    font-size: 0.76rem;
    letter-spacing: 0.12em;
  }

  .portal-hero .hero-actions {
    margin-top: 24px;
  }

  .portal-hero .hero-tags {
    margin-top: 20px;
    font-size: 8.5px;
  }

  .hero-sword {
    width: 160px;
    opacity: 0.18;
  }

  .rail-left,
  .rail-right {
    grid-template-columns: 1fr;
  }

  .rail-left .quick-card--gold,
  .rail-left > .portal-panel,
  .rail-right .friend-panel {
    grid-column: auto;
  }

  .panel-head {
    padding: 11px 13px;
  }

  .panel-head h2 {
    font-size: 13px;
  }

  .panel-body {
    padding: 13px;
  }

  .notice-highlight p {
    font-size: 9.8px;
  }

  .news-list li {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 7px;
    padding: 8px 0;
  }

  .news-tag {
    min-width: 31px;
    padding-inline: 4px;
    font-size: 7.5px;
  }

  .news-list a {
    font-size: 9.8px;
  }

  .news-meta {
    display: none;
  }

  .newserver-copy h3 {
    font-size: 1.55rem;
  }

  .newserver-copy > p:not(.panel-kicker) {
    font-size: 10px;
  }

  .newserver-copy .btn {
    width: 100%;
    font-size: 9.5px;
  }

  .server-table {
    min-width: 0;
  }

  .server-table th:nth-child(4),
  .server-table td:nth-child(4) {
    display: none;
  }

  .server-table th,
  .server-table td {
    padding: 7px 4px;
    font-size: 9px;
  }

  .portal-panel .launch-pending strong {
    font-size: 2rem;
  }

  .guide-grid {
    gap: 0 10px;
  }

  .friend-panel .panel-body {
    padding-bottom: 14px;
  }
}

@media (max-width: 380px) {
  .portal-header .brand-copy strong {
    font-size: 12px;
  }

  .portal-hero .hero-title {
    font-size: 2.2rem;
  }

  .portal-hero .hero-actions .btn {
    flex: 1;
    min-width: 0;
    padding-inline: 12px;
  }
}
