:root {
  color-scheme: dark;
  --bg: #070504;
  --gold: #e7bd6f;
  --gold-soft: #f3d99c;
  --red: #9d1e18;
  --red-soft: #e14b35;
  --text: #f6ead8;
  --muted: #c3ae97;
  --line: rgba(231, 189, 111, .28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Serif TC", "Microsoft JhengHei", "PingFang TC", serif;
  letter-spacing: 0;
}

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

img {
  display: block;
  max-width: 100%;
}

.portal {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(231, 189, 111, .04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(231, 189, 111, .035) 1px, transparent 1px),
    #070504;
  background-size: 96px 96px;
}

.duel-hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(0deg, rgba(7, 5, 4, .88) 0%, rgba(7, 5, 4, .22) 42%, rgba(7, 5, 4, .58) 100%),
    linear-gradient(90deg, rgba(7, 5, 4, .46), transparent 28%, transparent 72%, rgba(7, 5, 4, .42)),
    url("hero.png") center / cover no-repeat;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.duel-hero::before,
.duel-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 4;
}

.duel-hero::before {
  inset: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(246, 208, 125, .14), transparent 18%),
    linear-gradient(90deg, rgba(7, 5, 4, .3), transparent 30%, transparent 70%, rgba(7, 5, 4, .3));
}

.duel-hero::after {
  left: 50%;
  top: 8%;
  bottom: 8%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, rgba(231, 189, 111, .62), rgba(157, 30, 24, .7), rgba(231, 189, 111, .62), transparent);
  box-shadow: 0 0 42px rgba(225, 75, 53, .72);
}

.realm {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  overflow: hidden;
}

.realm-shade {
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 1;
}

.realm-one .realm-shade {
  background:
    radial-gradient(circle at 35% 52%, transparent 0 24%, rgba(7, 5, 4, .18) 56%, rgba(7, 5, 4, .48) 100%),
    linear-gradient(90deg, rgba(7, 5, 4, .28), rgba(7, 5, 4, .08) 42%, rgba(7, 5, 4, .42));
}

.realm-two .realm-shade {
  background:
    radial-gradient(circle at 66% 52%, transparent 0 24%, rgba(7, 5, 4, .14) 56%, rgba(7, 5, 4, .44) 100%),
    linear-gradient(270deg, rgba(7, 5, 4, .24), rgba(7, 5, 4, .06) 42%, rgba(7, 5, 4, .42));
}

.realm-copy {
  position: absolute;
  z-index: 3;
  left: clamp(20px, 5vw, 70px);
  right: auto;
  bottom: clamp(26px, 7vh, 80px);
  width: min(470px, calc(100% - 40px));
}

.realm-two .realm-copy {
  left: auto;
  right: clamp(20px, 5vw, 70px);
  margin-left: auto;
  text-align: right;
}

.realm-copy span,
.kicker,
.notice-band span {
  color: var(--gold-soft);
  font-weight: 900;
  font-size: 15px;
  line-height: 1.4;
}

h1,
h2,
p {
  margin-top: 0;
}

.realm-copy h2 {
  margin: 8px 0 12px;
  font-size: clamp(42px, 4.4vw, 62px);
  line-height: 1;
  text-shadow: 0 22px 42px rgba(0, 0, 0, .78);
}

.realm-copy p {
  color: #eadac6;
  font-size: 18px;
  line-height: 1.8;
  text-shadow: 0 10px 22px rgba(0, 0, 0, .8);
  overflow-wrap: anywhere;
}

.realm-copy ul {
  display: grid;
  gap: 8px;
  margin: 20px 0 24px;
  padding: 0;
  list-style: none;
  color: var(--gold-soft);
  font-weight: 800;
}

.realm-copy li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  overflow-wrap: anywhere;
}

.realm-two .realm-copy li {
  justify-content: flex-end;
}

.realm-copy li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-soft), var(--red-soft));
  box-shadow: 0 0 14px rgba(225, 75, 53, .68);
}

.realm-actions,
.center-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.realm-two .realm-actions {
  justify-content: flex-end;
}

.btn,
.center-actions a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border: 1px solid rgba(231, 189, 111, .34);
  border-radius: 6px;
  font-weight: 900;
}

.btn.red {
  background: linear-gradient(180deg, #d14d38, #761711);
  color: #fff3e7;
  box-shadow: 0 18px 36px rgba(157, 30, 24, .28);
}

.btn.gold {
  background: linear-gradient(180deg, #f1ce83, #a87926);
  color: #160c05;
  box-shadow: 0 18px 36px rgba(231, 189, 111, .28);
}

.btn.ghost,
.center-actions a {
  background: rgba(8, 5, 4, .7);
  color: var(--gold-soft);
}

.center-panel {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 50%;
  width: min(390px, calc(100vw - 36px));
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  padding: 26px 26px 24px;
  border: 1px solid rgba(231, 189, 111, .36);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(30, 18, 10, .88), rgba(8, 5, 4, .82)),
    radial-gradient(circle at 50% 0%, rgba(231, 189, 111, .16), transparent 54%);
  box-shadow: 0 36px 80px rgba(0, 0, 0, .56);
  text-align: center;
  backdrop-filter: blur(10px);
}

.portal-logo {
  width: 154px;
  margin-bottom: 14px;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .7));
}

.center-panel h1 {
  margin: 8px 0 12px;
  font-size: clamp(38px, 4.4vw, 52px);
  line-height: 1.05;
  color: #fff4df;
}

.center-panel p {
  margin-bottom: 22px;
  color: var(--muted);
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.center-actions {
  justify-content: center;
}

.center-actions a {
  min-height: 42px;
  padding: 10px 14px;
  font-size: 15px;
}

.notice-band {
  display: grid;
  grid-template-columns: minmax(240px, .55fr) 1fr;
  gap: 28px;
  align-items: center;
  padding: 34px clamp(20px, 6vw, 72px);
  border-top: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(157, 30, 24, .44), rgba(231, 189, 111, .12)),
    #0b0705;
}

.notice-band h2 {
  margin: 6px 0 0;
  font-size: clamp(28px, 3vw, 40px);
}

.notice-band p {
  margin: 0;
  color: #e6d4bf;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.portal-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 34px 20px;
  border-top: 1px solid rgba(231, 189, 111, .18);
  background: #070504;
  color: var(--muted);
}

.recommend-wrap {
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
}

.private-recommend {
  width: min(260px, 100%);
  min-height: 92px;
  display: grid;
  place-items: center;
  gap: 3px;
  margin: 0 auto 12px;
  padding: 14px 22px 12px;
  border: 1px solid rgba(231, 189, 111, .38);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(35, 23, 13, .78), rgba(11, 7, 4, .88));
  box-shadow: 0 12px 28px rgba(0, 0, 0, .26);
  text-align: center;
}

.private-recommend span {
  color: var(--gold-soft);
  font-weight: 900;
}

.private-recommend a {
  display: block;
  line-height: 0;
}

.private-recommend img {
  width: 132px;
  height: auto;
  object-fit: contain;
}

.portal-footer p {
  margin: 0;
}

.portal-footer a {
  color: var(--gold-soft);
  font-weight: 800;
}

@media (max-width: 980px) {
  .duel-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    background:
      linear-gradient(0deg, rgba(7, 5, 4, .9), rgba(7, 5, 4, .38)),
      url("hero.png") center top / cover no-repeat fixed;
  }

  .duel-hero::after {
    display: none;
  }

  .realm {
    min-height: 560px;
  }

  .realm-one {
    order: 2;
  }

  .realm-two {
    order: 3;
  }

  .realm-two .realm-copy {
    margin-left: 0;
    text-align: left;
  }

  .realm-two .realm-actions,
  .realm-two .realm-copy li {
    justify-content: flex-start;
  }

  .center-panel {
    position: relative;
    left: auto;
    top: auto;
    order: 1;
    width: auto;
    margin: 18px;
    transform: none;
  }

  .realm-actions,
  .center-actions {
    flex-direction: column;
  }

  .notice-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .realm {
    min-height: 520px;
  }

  .realm-copy {
    left: 20px;
    right: 20px;
    width: auto;
    max-width: calc(100vw - 40px);
    bottom: 24px;
    overflow: hidden;
  }

  .realm-copy h2 {
    font-size: 38px;
  }

  .realm-copy p {
    font-size: 16px;
    max-width: 100%;
    white-space: normal;
    line-break: anywhere;
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .realm-copy li,
  .center-panel p {
    max-width: 100%;
    line-break: anywhere;
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .center-panel {
    padding: 24px 18px;
  }

  .portal-logo {
    width: 142px;
  }
}
