:root {
  --ink: #f8f0ff;
  --muted: #d8caee;
  --gold: #f2d38d;
  --gold-deep: #b78335;
  --violet: #7e61d8;
  --midnight: #080717;
  --panel: rgba(13, 12, 31, 0.78);
  --line: rgba(242, 211, 141, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  background: var(--midnight);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

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

.site-header {
  position: relative;
  z-index: 80;
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 76px;
  grid-template-columns: 260px auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid rgba(242, 211, 141, 0.18);
  background:
    linear-gradient(180deg, rgba(7, 6, 18, 0.88), rgba(7, 6, 18, 0.52)),
    rgba(7, 6, 18, 0.6);
  backdrop-filter: blur(16px);
}

.brand,
.main-nav,
.account-actions,
.header-account-area {
  display: flex;
  align-items: center;
}

.language-switcher {
  position: relative;
  z-index: 90;
  justify-self: end;
  color: #f8eacd;
  font-weight: 700;
}

.language-switcher summary {
  display: flex;
  min-height: 38px;
  cursor: pointer;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 8px 10px;
  border: 1px solid rgba(242, 211, 141, 0.32);
  border-radius: 8px;
  background: rgba(21, 18, 41, 0.72);
}

.language-switcher summary::-webkit-details-marker {
  display: none;
}

.language-switcher summary:hover,
.language-switcher[open] summary {
  border-color: rgba(247, 214, 137, 0.86);
  color: #fff8df;
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  min-width: 132px;
  padding: 6px;
  border: 1px solid rgba(242, 211, 141, 0.28);
  border-radius: 10px;
  background: rgba(14, 12, 29, 0.98);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.42);
}

.language-menu button {
  border: 0;
  border-radius: 6px;
  padding: 9px 11px;
  color: #eee8fc;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.language-menu button:hover,
.language-menu button:focus-visible,
.language-menu button.is-active {
  color: #1b1428;
  background: linear-gradient(135deg, #ffe8a8, #d8a94c);
}

.brand {
  justify-self: start;
}

.brand-logo {
  display: block;
  width: auto;
  height: 58px;
  filter: drop-shadow(0 0 12px rgba(92, 170, 255, 0.46)) drop-shadow(0 3px 10px rgba(0, 0, 0, 0.45));
}

.main-nav {
  justify-self: start;
  gap: 30px;
  color: #f8eacd;
  font-weight: 700;
}

.main-nav a {
  position: relative;
  padding: 10px 0;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  background: var(--gold);
  transition: transform 180ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.main-nav a[aria-current="page"] {
  color: #ffffff;
}

.account-actions,
.header-account-area {
  position: relative;
  justify-self: end;
  gap: 12px;
  font-weight: 700;
}

.header-account-area .account-actions {
  justify-self: auto;
}

.header-account-area .language-switcher {
  flex: 0 0 auto;
  justify-self: auto;
}

.marketing-daily-title {
  margin: 28px 0 4px;
  color: #fff1bd;
  font-size: 1.05rem;
}

.login-link {
  padding: 10px 4px;
  color: #f4e9ff;
}

.text-action {
  border: 0;
  padding: 10px 4px;
  color: #f4e9ff;
  font: inherit;
  font-weight: 800;
  background: transparent;
  cursor: pointer;
}

.register-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-weight: 800;
}

.register-link {
  border: 1px solid rgba(255, 236, 179, 0.72);
  color: #1b1025;
  background: linear-gradient(180deg, #fff2bd 0%, #d9a64e 100%);
  box-shadow: 0 10px 28px rgba(9, 7, 18, 0.34);
}

.register-link {
  min-width: 112px;
  padding: 0 18px;
}

.member-menu {
  position: relative;
}

.member-trigger {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 236, 179, 0.36);
  border-radius: 999px;
  padding: 4px 13px 4px 5px;
  color: #fff8db;
  font: inherit;
  font-weight: 900;
  background:
    linear-gradient(135deg, rgba(92, 170, 255, 0.16), transparent 48%),
    rgba(255, 255, 255, 0.06);
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(9, 7, 18, 0.28);
}

.member-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 236, 179, 0.62);
  border-radius: 50%;
  color: #1b1025;
  background: linear-gradient(180deg, #fff2bd 0%, #d9a64e 100%);
  box-shadow: 0 0 18px rgba(92, 170, 255, 0.24);
}

.member-name {
  max-width: 132px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 120;
  display: grid;
  width: 218px;
  padding: 10px;
  border: 1px solid rgba(255, 236, 179, 0.58);
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  background:
    radial-gradient(circle at 18% 0%, rgba(92, 170, 255, 0.28), transparent 34%),
    linear-gradient(180deg, rgba(44, 38, 78, 0.98), rgba(21, 19, 46, 0.98)),
    rgba(21, 19, 46, 0.98);
  box-shadow:
    0 24px 54px rgba(0, 0, 0, 0.58),
    0 0 28px rgba(92, 170, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    visibility 160ms ease;
}

.member-menu:hover .member-dropdown,
.member-menu:focus-within .member-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.member-dropdown::before {
  position: absolute;
  right: 24px;
  bottom: 100%;
  width: 14px;
  height: 14px;
  content: "";
  transform: translateY(7px) rotate(45deg);
  border-top: 1px solid rgba(242, 211, 141, 0.24);
  border-left: 1px solid rgba(242, 211, 141, 0.24);
  background: rgba(44, 38, 78, 0.98);
}

.member-dropdown-account {
  margin: 0 0 8px;
  padding: 4px 8px 10px;
  border-bottom: 1px solid rgba(242, 211, 141, 0.14);
  color: #fff2bd;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.member-dropdown a,
.member-dropdown button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  padding: 0 10px;
  color: #fff7e0;
  font: inherit;
  font-weight: 800;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.member-dropdown a:hover,
.member-dropdown a:focus-visible,
.member-dropdown button:hover,
.member-dropdown button:focus-visible {
  color: #fff8db;
  background: rgba(255, 236, 179, 0.16);
}

.hero {
  position: relative;
  overflow: hidden;
  background: #050411;
}

.hero::before {
  position: absolute;
  z-index: 4;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(5, 4, 17, 0.98) 0%,
      rgba(5, 4, 17, 0.72) 9%,
      rgba(5, 4, 17, 0.2) 25%,
      rgba(5, 4, 17, 0) 48%,
      rgba(5, 4, 17, 0.26) 76%,
      rgba(5, 4, 17, 0.78) 91%,
      var(--midnight) 100%
    ),
    linear-gradient(
      90deg,
      rgba(5, 4, 17, 0.9) 0%,
      rgba(5, 4, 17, 0.42) 7%,
      rgba(5, 4, 17, 0.06) 20%,
      rgba(5, 4, 17, 0) 50%,
      rgba(5, 4, 17, 0.08) 78%,
      rgba(5, 4, 17, 0.5) 93%,
      rgba(5, 4, 17, 0.92) 100%
    ),
    radial-gradient(ellipse at center, transparent 42%, rgba(5, 4, 17, 0.22) 70%, rgba(5, 4, 17, 0.72) 100%);
}

.hero::after {
  position: absolute;
  z-index: 3;
  inset: -12%;
  content: "";
  pointer-events: none;
  opacity: 0.78;
  background:
    radial-gradient(circle at 12% 28%, rgba(255, 236, 179, 0.52) 0 1px, transparent 3px),
    radial-gradient(circle at 38% 18%, rgba(149, 180, 255, 0.48) 0 1px, transparent 3px),
    radial-gradient(circle at 62% 44%, rgba(255, 255, 255, 0.46) 0 1px, transparent 3px),
    radial-gradient(circle at 84% 30%, rgba(180, 123, 255, 0.44) 0 1px, transparent 3px),
    radial-gradient(circle at 46% 76%, rgba(255, 236, 179, 0.34) 0 2px, transparent 4px);
  background-size:
    220px 220px,
    280px 260px,
    240px 300px,
    320px 260px,
    360px 320px;
  animation: star-drift 18s linear infinite;
  mix-blend-mode: screen;
}

.hero-glow {
  position: absolute;
  z-index: 3;
  inset: -18% -10%;
  pointer-events: none;
  opacity: 0.72;
  background:
    linear-gradient(112deg, transparent 18%, rgba(121, 91, 255, 0.2) 42%, rgba(255, 232, 176, 0.16) 50%, transparent 66%),
    radial-gradient(circle at 78% 18%, rgba(80, 136, 255, 0.2), transparent 28%),
    radial-gradient(circle at 22% 72%, rgba(255, 224, 166, 0.16), transparent 24%);
  animation: aurora-sweep 13s ease-in-out infinite;
  mix-blend-mode: screen;
}

.hero-image {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  min-width: 0;
  height: auto;
  animation: hero-breathe 12s ease-in-out infinite;
}

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

h1,
h2 {
  font-family: "Noto Serif TC", serif;
  letter-spacing: 0;
}

@keyframes hero-breathe {
  0%,
  100% {
    filter: brightness(0.9) saturate(1.02);
  }

  50% {
    filter: brightness(1.12) saturate(1.18);
  }
}

@keyframes star-drift {
  0% {
    transform: translate3d(-1.5%, -1%, 0);
    background-position:
      0 0,
      40px 20px,
      80px 60px,
      120px 30px,
      160px 90px;
  }

  100% {
    transform: translate3d(2.8%, 1.8%, 0);
    background-position:
      220px 160px,
      320px 220px,
      280px 340px,
      420px 240px,
      520px 380px;
  }
}

@keyframes aurora-sweep {
  0%,
  100% {
    transform: translate3d(-5%, -1%, 0);
    opacity: 0.45;
  }

  50% {
    transform: translate3d(5%, 1%, 0);
    opacity: 0.88;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::after,
  .hero-glow,
  .hero-image {
    animation: none;
  }
}

.download-page {
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}

.download-stage {
  position: relative;
  display: grid;
  min-height: calc(100vh - 86px);
  place-items: center;
  overflow: hidden;
  padding: 72px 82px;
  background: var(--midnight);
}

.download-stage::before {
  position: absolute;
  z-index: 2;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 4, 17, 0.94), rgba(5, 4, 17, 0.22) 36%, rgba(5, 4, 17, 0.92)),
    linear-gradient(90deg, rgba(5, 4, 17, 0.92), rgba(5, 4, 17, 0.08) 30%, rgba(5, 4, 17, 0.12) 70%, rgba(5, 4, 17, 0.94)),
    radial-gradient(ellipse at center, rgba(5, 4, 17, 0.08), rgba(5, 4, 17, 0.78) 78%);
}

.download-bg {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.76;
  animation: hero-breathe 12s ease-in-out infinite;
}

.download-glow {
  position: absolute;
  z-index: 1;
  inset: -18%;
  pointer-events: none;
  background:
    radial-gradient(circle at 22% 30%, rgba(92, 170, 255, 0.2), transparent 24%),
    radial-gradient(circle at 72% 38%, rgba(255, 232, 176, 0.18), transparent 28%),
    linear-gradient(112deg, transparent 22%, rgba(121, 91, 255, 0.18) 46%, transparent 68%);
  animation: aurora-sweep 13s ease-in-out infinite;
  mix-blend-mode: screen;
}

.download-modal {
  position: relative;
  z-index: 5;
  width: 760px;
  padding: 34px;
  border: 1px solid rgba(242, 211, 141, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(20, 20, 42, 0.92), rgba(8, 7, 20, 0.94)),
    rgba(8, 7, 20, 0.94);
  box-shadow:
    0 26px 80px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 36px rgba(92, 170, 255, 0.14);
  backdrop-filter: blur(18px);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(248, 240, 255, 0.22);
  border-radius: 50%;
  color: #f8f0ff;
  font-size: 1.5rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.06);
}

.modal-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-weight: 800;
}

.download-modal h1 {
  margin: 0 0 16px;
  font-family: "Noto Serif TC", serif;
  font-size: 2.7rem;
  line-height: 1.18;
}

.modal-copy {
  max-width: 620px;
  margin-bottom: 26px;
  color: var(--muted);
  line-height: 1.85;
}

.download-options {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.download-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: 24px 38px 25px;
  min-height: 156px;
  align-content: center;
  gap: 7px;
  padding: 24px 26px;
  border: 1px solid rgba(248, 240, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(92, 170, 255, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.download-card::after {
  position: absolute;
  inset: auto 18px 16px 18px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 236, 179, 0.48), transparent);
}

.download-card:hover,
.download-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 236, 179, 0.56);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28), 0 0 24px rgba(92, 170, 255, 0.16);
}

.download-card span {
  display: flex;
  align-items: center;
  color: #dfeaff;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.download-card strong {
  display: flex;
  align-items: center;
  color: #fff8db;
  font-size: 1.28rem;
  line-height: 1.35;
  white-space: nowrap;
}

.download-card small {
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: nowrap;
}

.primary-download {
  border-color: rgba(255, 236, 179, 0.54);
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 244, 200, 0.2), transparent 28%),
    linear-gradient(180deg, rgba(255, 242, 189, 0.2), rgba(217, 166, 78, 0.08)),
    rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 28px rgba(217, 166, 78, 0.12);
}

.cloud-download {
  border-color: rgba(92, 170, 255, 0.3);
}

.local-download {
  border-color: rgba(92, 170, 255, 0.3);
}

.download-card.is-disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.download-card.is-disabled:hover {
  transform: none;
  border-color: rgba(92, 170, 255, 0.3);
  box-shadow: none;
}

.download-note {
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid rgba(242, 211, 141, 0.16);
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

@media (prefers-reduced-motion: reduce) {
  .download-bg,
  .download-glow {
    animation: none;
  }
}

.announcements-modal {
  width: 820px;
}

.announcement-list {
  display: grid;
  gap: 12px;
}

.announcement-loading {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.announcement-item {
  position: relative;
  display: grid;
  width: 100%;
  grid-template-columns: 82px 1fr 116px;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(248, 240, 255, 0.16);
  border-radius: 8px;
  color: var(--ink);
  text-align: left;
  background:
    linear-gradient(135deg, rgba(92, 170, 255, 0.11), transparent 46%),
    rgba(255, 255, 255, 0.045);
  cursor: pointer;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.announcement-item::after {
  content: "›";
  position: absolute;
  right: 18px;
  color: rgba(255, 236, 179, 0.72);
  font-size: 1.55rem;
}

.announcement-item:hover,
.announcement-item:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 236, 179, 0.5);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28), 0 0 22px rgba(92, 170, 255, 0.14);
}

.announcement-type {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 236, 179, 0.34);
  border-radius: 999px;
  color: #ffe6a9;
  font-size: 0.88rem;
  font-weight: 800;
  background: rgba(255, 236, 179, 0.08);
}

.announcement-item strong {
  padding-right: 18px;
  color: #fff8db;
  font-size: 1.05rem;
}

.announcement-item small,
.announcement-date {
  color: var(--muted);
}

.announcement-detail[hidden],
.announcement-list-view[hidden] {
  display: none;
}

.detail-back {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  margin-bottom: 18px;
  padding: 0 14px;
  border: 1px solid rgba(248, 240, 255, 0.2);
  border-radius: 999px;
  color: #f8f0ff;
  font: inherit;
  font-size: 0.92rem;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.announcement-detail h1 {
  margin: 0 0 10px;
  font-family: "Noto Serif TC", serif;
  font-size: 2.35rem;
  line-height: 1.2;
}

.announcement-date {
  margin-bottom: 22px;
}

.detail-body {
  display: grid;
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid rgba(242, 211, 141, 0.16);
}

.detail-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

.account-modal {
  width: 520px;
}

.register-modal {
  width: 680px;
  padding: 28px 30px;
}

.reset-modal,
.admin-modal {
  width: 680px;
}

.account-form {
  display: grid;
  gap: 16px;
}

.compact-form {
  gap: 12px;
}

.form-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field span,
.remember-option,
.terms-option {
  color: #f8eacd;
  font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0 16px;
  border: 1px solid rgba(248, 240, 255, 0.2);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
    rgba(5, 4, 17, 0.72);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.form-field input,
.form-field select {
  min-height: 48px;
}

.form-field textarea {
  min-height: 140px;
  padding-top: 14px;
  resize: vertical;
  line-height: 1.7;
}

.form-field select {
  appearance: none;
}

.compact-form .form-field {
  gap: 6px;
}

.compact-form .form-field input,
.compact-form .form-field select,
.compact-form .code-button,
.compact-form .account-submit {
  min-height: 42px;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(216, 202, 238, 0.68);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: rgba(255, 236, 179, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 3px rgba(242, 211, 141, 0.12),
    0 0 24px rgba(92, 170, 255, 0.12);
}

.verification-row {
  display: grid;
  grid-template-columns: 1fr 144px;
  align-items: end;
  gap: 12px;
}

.code-button,
.account-submit {
  min-height: 48px;
  border: 1px solid rgba(255, 236, 179, 0.6);
  border-radius: 6px;
  color: #1b1025;
  font: inherit;
  font-weight: 900;
  background: linear-gradient(180deg, #fff2bd 0%, #d9a64e 100%);
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(9, 7, 18, 0.32);
}

.code-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.verification-hint {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.account-status,
.admin-status {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
  text-align: center;
}

.compact-form .verification-hint {
  margin-top: -4px;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.form-row a,
.account-switch a {
  color: #ffe6a9;
  font-weight: 800;
}

.remember-option,
.terms-option {
  display: flex;
  align-items: center;
  gap: 9px;
  line-height: 1.6;
}

.remember-option input,
.terms-option input {
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
}

.account-submit {
  width: 100%;
  margin-top: 4px;
  font-size: 1.05rem;
}

.account-submit:hover,
.account-submit:focus-visible,
.code-button:hover,
.code-button:focus-visible {
  filter: brightness(1.05);
}

.account-switch {
  margin: 18px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(242, 211, 141, 0.16);
  color: var(--muted);
  text-align: center;
}

.dashboard-modal {
  width: 1040px;
}

.member-modal {
  width: 880px;
}

.admin-grid,
.member-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 18px;
}

.admin-panel {
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(248, 240, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(92, 170, 255, 0.08), transparent 44%),
    rgba(255, 255, 255, 0.04);
}

.admin-panel h2 {
  margin: 0 0 16px;
  color: #fff8db;
  font-family: "Noto Serif TC", serif;
  font-size: 1.35rem;
}

.admin-table {
  overflow: hidden;
  border: 1px solid rgba(242, 211, 141, 0.12);
  border-radius: 8px;
}

.admin-table table {
  width: 100%;
  border-collapse: collapse;
  color: var(--ink);
  font-size: 0.92rem;
}

.admin-table th,
.admin-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(248, 240, 255, 0.1);
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  color: #ffe6a9;
  font-weight: 800;
  background: rgba(255, 236, 179, 0.07);
}

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

.status-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid rgba(248, 240, 255, 0.18);
  border-radius: 999px;
  color: var(--muted);
  font-weight: 800;
}

.status-pill[data-status="active"] {
  border-color: rgba(120, 224, 160, 0.45);
  color: #bff5cd;
  background: rgba(120, 224, 160, 0.1);
}

.status-pill[data-status="pending"] {
  border-color: rgba(255, 236, 179, 0.42);
  color: #ffe6a9;
  background: rgba(255, 236, 179, 0.08);
}

.status-pill[data-status="rejected"] {
  border-color: rgba(255, 132, 132, 0.4);
  color: #ffc5c5;
  background: rgba(255, 132, 132, 0.09);
}

.table-actions {
  white-space: nowrap;
}

.table-actions button {
  min-height: 30px;
  margin-right: 8px;
  padding: 0 10px;
  border: 1px solid rgba(255, 236, 179, 0.42);
  border-radius: 6px;
  color: #ffe6a9;
  font: inherit;
  font-weight: 800;
  background: rgba(255, 236, 179, 0.08);
  cursor: pointer;
}

.profile-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.profile-list div {
  display: grid;
  gap: 5px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(248, 240, 255, 0.1);
}

.profile-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.profile-list dt {
  color: #ffe6a9;
  font-size: 0.9rem;
  font-weight: 800;
}

.profile-list dd {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.profile-gem-balance dd {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.profile-gem-balance dd strong {
  color: #fff0bd;
  font-size: 1.25rem;
}

.gem-recharge-button {
  margin-left: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 224, 141, 0.62);
  border-radius: 999px;
  color: #fff5d0;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, rgba(231, 162, 54, 0.42), rgba(122, 77, 15, 0.46));
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.gem-recharge-button:hover,
.gem-recharge-button:focus-visible {
  transform: translateY(-1px);
  border-color: #ffe9a9;
  box-shadow: 0 6px 18px rgba(231, 162, 54, 0.25);
}

.member-tools {
  display: grid;
  gap: 12px;
}

.member-tool-card {
  display: grid;
  width: 100%;
  min-height: 78px;
  align-content: center;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid rgba(248, 240, 255, 0.14);
  border-radius: 8px;
  color: inherit;
  font: inherit;
  text-align: left;
  background:
    linear-gradient(135deg, rgba(92, 170, 255, 0.12), transparent 48%),
    rgba(255, 255, 255, 0.045);
  cursor: pointer;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.member-tool-card strong {
  color: #fff8db;
  font-size: 1.05rem;
}

.member-tool-card span {
  color: var(--muted);
  line-height: 1.55;
}

.member-tool-card:hover,
.member-tool-card:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 236, 179, 0.46);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24), 0 0 18px rgba(92, 170, 255, 0.14);
}

.password-dialog[hidden],
.email-dialog[hidden],
.redeem-dialog[hidden],
.referral-dialog[hidden],
.redeem-character-step[hidden] {
  display: none;
}

.password-dialog,
.email-dialog,
.redeem-dialog,
.referral-dialog {
  position: fixed;
  z-index: 140;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 80px;
}

.password-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 4, 17, 0.68);
  backdrop-filter: blur(8px);
}

.password-dialog-panel {
  width: 520px;
  padding: 30px;
}

.email-dialog-panel {
  width: min(620px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 30px;
  overflow-y: auto;
}

.email-change-form {
  gap: 14px;
}

.email-change-step {
  display: grid;
  gap: 13px;
  padding: 17px;
  border: 1px solid rgba(248, 240, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(92, 170, 255, 0.09), transparent 55%),
    rgba(255, 255, 255, 0.035);
  transition: border-color 180ms ease, opacity 180ms ease;
}

.email-change-step[aria-disabled="true"] {
  opacity: 0.58;
}

.email-change-step[aria-disabled="false"] {
  border-color: rgba(255, 236, 179, 0.32);
}

.email-step-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.email-step-heading > span {
  display: inline-grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(255, 236, 179, 0.48);
  border-radius: 50%;
  color: #fff1bd;
  font-weight: 900;
  background: rgba(255, 236, 179, 0.08);
}

.email-step-heading h2 {
  margin: 2px 0 4px;
  color: #fff8db;
  font-family: "Noto Serif TC", serif;
  font-size: 1.08rem;
}

.email-step-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.email-step-heading strong {
  color: #ffe6a9;
  overflow-wrap: anywhere;
}

.email-change-status[data-state="success"] {
  color: #bff5cd;
}

.email-change-status[data-state="error"] {
  color: #ffc5c5;
}

.redeem-dialog-panel {
  width: min(620px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 30px;
  overflow-y: auto;
}

.referral-dialog-panel {
  width: min(1120px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  padding: 30px;
  overflow-y: auto;
}

.redeem-owned-panel {
  margin: 22px 0;
  padding: 18px;
  border: 1px solid rgba(248, 240, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(92, 170, 255, 0.1), transparent 58%),
    rgba(255, 255, 255, 0.035);
}

.redeem-owned-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.redeem-owned-heading h2 {
  margin: 0;
  color: #fff8db;
  font-family: "Noto Serif TC", serif;
  font-size: 1.25rem;
}

.redeem-owned-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.redeem-owned-count {
  flex: 0 0 auto;
  color: #fff1bd;
  font-size: 1rem;
}

.redeem-owned-count span {
  font-size: 1.45rem;
}

.redeem-owned-list {
  display: grid;
  gap: 8px;
  max-height: 190px;
  overflow-y: auto;
}

.redeem-owned-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid rgba(248, 240, 255, 0.11);
  border-radius: 7px;
  background: rgba(7, 7, 20, 0.28);
}

.redeem-owned-code > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.redeem-owned-code code {
  color: #fff1bd;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.redeem-owned-code span {
  color: var(--muted);
  font-size: 0.76rem;
}

.redeem-owned-code button {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(255, 236, 179, 0.38);
  border-radius: 6px;
  color: #ffe6a9;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  background: rgba(255, 236, 179, 0.07);
  cursor: pointer;
}

.redeem-cdk-info {
  margin: 14px 0;
  padding: 14px 16px;
  border: 1px solid rgba(92, 170, 255, 0.26);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(92, 170, 255, 0.12), transparent 60%),
    rgba(255, 255, 255, 0.03);
}

.redeem-cdk-info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
}

.redeem-cdk-info-row span {
  color: var(--muted);
  font-size: 0.84rem;
  min-width: 36px;
}

.redeem-cdk-info-row strong {
  color: #fff1bd;
  font-size: 0.92rem;
  font-weight: 700;
}

.redeem-cooldown {
  margin-top: 8px;
  color: #ffb74d !important;
  font-weight: 600;
}

.redeem-character-step {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(248, 240, 255, 0.14);
}

.redeem-step-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.redeem-step-heading h2 {
  margin: 4px 0 0;
  color: #fff8db;
  font-family: "Noto Serif TC", serif;
  font-size: 1.35rem;
}

.redeem-step-number {
  color: #d8c5ff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.redeem-character-step select {
  width: 100%;
  min-height: 48px;
  padding: 0 42px 0 14px;
  border: 1px solid rgba(248, 240, 255, 0.2);
  border-radius: 8px;
  color: #fff8db;
  font: inherit;
  background-color: #17162b;
  cursor: pointer;
}

.redeem-character-help {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.redeem-character-card {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.7fr;
  gap: 10px;
  margin: 16px 0;
}

.redeem-character-card div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(248, 240, 255, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(92, 170, 255, 0.1), transparent 58%),
    rgba(255, 255, 255, 0.035);
}

.redeem-character-card span {
  color: var(--muted);
  font-size: 0.8rem;
}

.redeem-character-card strong {
  color: #fff1bd;
  overflow-wrap: anywhere;
}

.redeem-status {
  margin-bottom: 0;
}

.password-close {
  border: 1px solid rgba(248, 240, 255, 0.22);
  cursor: pointer;
}

/* Announcement management improvements */
.announcement-admin-modal {
  width: 1120px;
  padding: 30px;
}

.announcement-admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
  gap: 18px;
  align-items: start;
}

.admin-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.admin-panel-heading h2 {
  margin-bottom: 0;
}

.announcement-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 138px 138px 82px;
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
}

.announcement-search-field input {
  min-height: 42px;
}

.toolbar-button {
  min-height: 42px;
}

.admin-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 236, 179, 0.42);
  border-radius: 6px;
  color: #ffe6a9;
  font: inherit;
  font-weight: 800;
  background: rgba(255, 236, 179, 0.08);
  cursor: pointer;
}

.admin-secondary-button:hover,
.admin-secondary-button:focus-visible,
.table-actions button:hover,
.table-actions button:focus-visible {
  border-color: rgba(255, 236, 179, 0.66);
  background: rgba(255, 236, 179, 0.14);
}

.announcement-stats {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.announcement-admin-table {
  max-height: 565px;
  overflow: auto;
}

.announcement-admin-table table {
  min-width: 720px;
}

.announcement-admin-table tr.is-editing td {
  background: rgba(255, 236, 179, 0.08);
}

.announcement-admin-table th:nth-child(1),
.announcement-admin-table td:nth-child(1) {
  width: 82px;
}

.announcement-admin-table th:nth-child(2),
.announcement-admin-table td:nth-child(2) {
  width: 70px;
}

.announcement-admin-table th:nth-child(4),
.announcement-admin-table td:nth-child(4) {
  width: 96px;
}

.announcement-admin-table th:nth-child(5),
.announcement-admin-table td:nth-child(5) {
  width: 150px;
}

.compact-type {
  min-height: 26px;
  padding: 0 10px;
  font-size: 0.82rem;
}

.announcement-title-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  color: #fff8db;
  font: inherit;
  font-weight: 850;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.announcement-title-button:hover,
.announcement-title-button:focus-visible {
  color: #ffe6a9;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.announcement-row-summary {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.45;
}

.announcement-actions button {
  margin: 0 6px 6px 0;
}

.announcement-actions .danger-button {
  border-color: rgba(255, 132, 132, 0.38);
  color: #ffc5c5;
  background: rgba(255, 132, 132, 0.08);
}

.announcement-actions .danger-button:hover,
.announcement-actions .danger-button:focus-visible {
  border-color: rgba(255, 132, 132, 0.62);
  background: rgba(255, 132, 132, 0.14);
}

.announcement-editor-panel textarea {
  min-height: 250px;
}

.editor-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.editor-actions .account-submit {
  margin-top: 0;
}

.admin-status[data-state="error"] {
  color: #ffc5c5;
}

.register-success-layer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 3, 14, 0.68);
  backdrop-filter: blur(8px);
}

.register-success-layer[hidden] {
  display: none;
}

.register-success-box {
  width: min(420px, 100%);
  padding: 30px 28px;
  border: 1px solid rgba(255, 236, 179, 0.42);
  border-radius: 16px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 236, 179, 0.18), transparent 38%),
    linear-gradient(180deg, rgba(24, 16, 49, 0.96), rgba(8, 6, 22, 0.98));
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.register-success-box h2 {
  margin: 6px 0 10px;
  color: #fff5d5;
  font-size: 1.55rem;
}

.register-success-box p:not(.modal-kicker) {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.register-success-button {
  width: 100%;
  margin-top: 22px;
}

/* Referral registration, member rewards, and CDK inventory */
.referral-register-note {
  display: grid;
  gap: 5px;
  margin: -8px 0 18px;
  padding: 14px 16px;
  border: 1px solid rgba(120, 224, 160, 0.38);
  border-radius: 8px;
  color: #bff5cd;
  background: rgba(120, 224, 160, 0.08);
}

.referral-register-note[hidden] {
  display: none;
}

.referral-register-note strong {
  color: #ecfff1;
}

.referral-register-note span {
  color: var(--muted);
  line-height: 1.55;
}

.referral-register-note[data-state="invalid"] {
  border-color: rgba(255, 132, 132, 0.42);
  color: #ffc5c5;
  background: rgba(255, 132, 132, 0.08);
}

.member-modal {
  width: min(880px, calc(100vw - 48px));
}

.referral-center {
  margin-top: 18px;
}

.referral-dialog-panel .referral-center {
  margin-top: 22px;
}

.referral-subtitle,
.admin-help {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.referral-link-row {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 170px 110px;
  gap: 10px;
  align-items: end;
}

.referral-link-button,
.referral-copy-button {
  min-height: 48px;
  margin: 0;
}

.referral-copy-button:disabled,
.account-submit:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.referral-stats,
.cdk-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.referral-stats div,
.cdk-stat-grid div {
  display: grid;
  gap: 4px;
  min-width: 0;
  min-height: 76px;
  align-content: center;
  padding: 14px 16px;
  border: 1px solid rgba(248, 240, 255, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(92, 170, 255, 0.1), transparent 58%),
    rgba(255, 255, 255, 0.035);
}

.referral-stats strong,
.cdk-stat-grid strong {
  color: #fff1bd;
  font-size: 1.45rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.referral-stats span,
.cdk-stat-grid span {
  color: var(--muted);
  font-size: 0.88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.referral-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.referral-detail-grid h3 {
  margin: 0 0 10px;
  color: #fff8db;
  font-size: 1.05rem;
}

.referral-table {
  max-height: 300px;
  overflow: auto;
}

.referral-table table {
  min-width: 430px;
}

.cdk-code {
  color: #d9edff;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.status-pill[data-status="rewarded"],
.status-pill[data-status="assigned"] {
  border-color: rgba(120, 224, 160, 0.45);
  color: #bff5cd;
  background: rgba(120, 224, 160, 0.1);
}

.status-pill[data-status="redeemed"] {
  border-color: rgba(180, 160, 255, 0.45);
  color: #d5ceff;
  background: rgba(180, 160, 255, 0.1);
}

.status-pill[data-status="qualified"] {
  border-color: rgba(255, 236, 179, 0.42);
  color: #ffe6a9;
  background: rgba(255, 236, 179, 0.08);
}

.status-pill[data-status="available"] {
  border-color: rgba(92, 170, 255, 0.45);
  color: #c9e8ff;
  background: rgba(92, 170, 255, 0.1);
}

.cdk-admin-modal {
  width: min(1180px, calc(100vw - 48px));
  padding: 30px;
}

.cdk-stat-grid {
  grid-template-columns: repeat(6, 1fr);
}

.cdk-admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.cdk-table-panel {
  margin-top: 18px;
}

.cdk-inventory-table {
  max-height: 420px;
  overflow: auto;
}

.cdk-inventory-table table {
  min-width: 820px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 18px;
    padding: 12px 24px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .account-actions,
  .header-account-area {
    grid-column: 2;
    grid-row: 1;
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    justify-content: center;
    gap: clamp(16px, 5vw, 30px);
  }

  .hero-image {
    height: calc(100svh - 132px);
    min-height: 560px;
    object-fit: cover;
    object-position: 62% center;
  }

  .download-stage {
    min-height: calc(100svh - 132px);
    padding: 44px 24px;
  }

  .download-modal,
  .announcements-modal,
  .account-modal,
  .register-modal,
  .reset-modal,
  .admin-modal,
  .dashboard-modal {
    width: min(100%, 760px);
  }

  .download-options {
    grid-template-columns: 1fr;
  }

  .download-card {
    min-height: 142px;
  }

  .admin-grid,
  .member-grid,
  .referral-detail-grid,
  .cdk-admin-grid {
    grid-template-columns: 1fr;
  }

  .referral-link-row {
    grid-template-columns: 1fr 1fr;
  }

  .referral-link-field {
    grid-column: 1 / -1;
  }

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

  .admin-table {
    overflow-x: auto;
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 8px 12px;
    padding: 10px 14px;
  }

  .brand-logo {
    height: 44px;
  }

  .main-nav {
    justify-content: space-between;
    gap: 8px;
    font-size: 0.82rem;
  }

  .main-nav a {
    padding: 7px 0;
  }

  .account-actions,
  .header-account-area {
    gap: 4px;
    font-size: 0.9rem;
  }

  .header-account-area .language-switcher [data-language-current] {
    display: none;
  }

  .language-switcher summary {
    min-height: 32px;
    padding: 6px;
    font-size: 0.82rem;
  }

  .register-link {
    min-width: 72px;
    min-height: 38px;
    padding: 0 10px;
  }

  .member-trigger {
    min-height: 40px;
    padding-right: 10px;
  }

  .member-avatar {
    width: 30px;
    height: 30px;
  }

  .member-name {
    max-width: 82px;
  }

  .hero-image {
    height: calc(100svh - 116px);
    min-height: 520px;
    object-position: 64% center;
  }

  .download-stage {
    min-height: calc(100svh - 116px);
    padding: 28px 12px;
  }

  .download-modal {
    width: 100%;
    padding: 26px 18px;
  }

  .download-modal h1 {
    padding-right: 34px;
    font-size: 1.85rem;
  }

  .modal-copy {
    margin-bottom: 20px;
    line-height: 1.7;
  }

  .form-pair {
    grid-template-columns: 1fr;
  }

  .announcement-item {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px 12px;
    padding: 15px 38px 15px 14px;
  }

  .announcement-item small {
    grid-column: 2;
  }

  .announcement-detail h1 {
    font-size: 1.75rem;
  }

  .referral-center > .admin-panel-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .referral-center > .admin-panel-heading .admin-secondary-button {
    width: 100%;
  }

  .member-modal,
  .cdk-admin-modal {
    width: calc(100vw - 24px);
    padding: 22px 16px;
  }

  .referral-link-row,
  .referral-stats,
  .cdk-stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .referral-link-button,
  .referral-copy-button {
    width: 100%;
  }

  .password-dialog,
  .email-dialog,
  .redeem-dialog,
  .referral-dialog {
    padding: 12px;
  }

  .email-dialog-panel,
  .redeem-dialog-panel,
  .referral-dialog-panel {
    width: calc(100vw - 24px);
    padding: 24px 18px;
  }

  .email-verification-row {
    grid-template-columns: 1fr;
  }

  .email-verification-row .code-button {
    width: 100%;
  }

  .redeem-character-card {
    grid-template-columns: 1fr;
  }
}
