:root {
  --bg-color: #050710;
  --bg-gradient: radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.18), transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(165, 180, 252, 0.25), transparent 52%),
    linear-gradient(160deg, #020617, #0b1120 55%, #111827 100%);
  --surface-glass: rgba(15, 23, 42, 0.68);
  --surface-solid: rgba(15, 23, 42, 0.9);
  --accent: #38bdf8;
  --accent-strong: #0ea5e9;
  --accent-soft: rgba(56, 189, 248, 0.16);
  --accent-gradient: linear-gradient(135deg, #38bdf8, #0ea5e9 55%, #60a5fa);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5f5;
  --text-muted: #94a3b8;
  --border: rgba(148, 163, 184, 0.2);
  --shadow-lg: 0 20px 45px rgba(15, 23, 42, 0.55);
  --shadow-md: 0 18px 30px rgba(15, 23, 42, 0.35);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: min(1200px, 100vw - 48px);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans TC", "Segoe UI", "PingFang TC", "Microsoft JhengHei", sans-serif;
  background: var(--bg-gradient);
  color: var(--text-primary);
  min-height: 100vh;
  position: relative;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.74);
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--accent);
}

img {
    min-height:150px;
  max-width: 100%;
  display: block;
  border-radius: var(--radius-sm);
}

figure {
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(2, 6, 23, 0.75);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.site-header--solid {
  background: rgba(2, 6, 23, 0.9);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--max-width);
  margin: 0 auto;
  padding: 18px 0;
  gap: 24px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
}

.logo span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
}

.nav-dropdown__toggle--link {
  text-decoration: none;
  color: inherit;
}

.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    letter-spacing: 0.08em;
    background: rgba(248, 113, 113, 0.18);
    color: #fca5a5;
    border: 1px solid rgba(248, 113, 113, 0.4);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.3);
    position: absolute;
    left: -12%;
    top: 5px;
    transform: rotate(-36deg);
    font-size: 5pt;
}

.nav-dropdown {
  position: relative;
  display: flex;
}

.nav-dropdown__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-dropdown__toggle:hover,
.nav-dropdown__toggle:focus,
.nav-dropdown.is-open .nav-dropdown__toggle {
  background: rgba(56, 189, 248, 0.12);
  color: var(--text-primary);
}

.nav-dropdown__icon {
  width: 14px;
  height: 14px;
  display: inline-block;
  transition: transform 0.2s ease;
}

.nav-dropdown.is-open .nav-dropdown__icon {
  transform: rotate(180deg);
}

.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  display: none;
  flex-direction: column;
  gap: 4px;
  min-width: 200px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: rgba(2, 6, 23, 0.92);
  border: 1px solid rgba(56, 189, 248, 0.16);
  box-shadow: var(--shadow-lg);
  z-index: 10;
}

.nav-dropdown.is-open .nav-dropdown__menu {
  display: flex;
}

.nav-dropdown__menu a {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  color: var(--text-secondary);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-dropdown__menu a:hover,
.nav-dropdown__menu a:focus {
  background: rgba(56, 189, 248, 0.12);
  color: var(--text-primary);
}

.nav-links a:hover,
.nav-links a:focus {
  background: rgba(56, 189, 248, 0.12);
  color: var(--text-primary);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(15, 23, 42, 0.6);
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-toggle:hover,
.nav-toggle:focus {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.5);
}

.nav-toggle__icon {
  width: 24px;
  height: 24px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-toggle__icon--close {
  display: none;
}

.navbar.is-open .nav-toggle__icon--menu {
  display: none;
}

.navbar.is-open .nav-toggle__icon--close {
  display: block;
}

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.nav-actions__link {
  color: var(--text-secondary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}

.nav-actions__link:hover,
.nav-actions__link:focus-visible {
  color: var(--text-primary);
}

.online-indicator {
    display:none;
/*  display: inline-flex;*/
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  background: rgba(56, 189, 248, 0.08);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
  position: relative;
}

.online-indicator__label {
  pointer-events: none;
}

.online-indicator.has-tooltip {
  cursor: pointer;
}

.online-indicator__tooltip {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  max-width: 320px;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(56, 189, 248, 0.4);
  background: rgba(2, 6, 23, 0.95);
  box-shadow: 0 20px 40px rgba(2, 6, 23, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 30;
}

.online-indicator.has-tooltip:hover .online-indicator__tooltip,
.online-indicator.has-tooltip:focus .online-indicator__tooltip,
.online-indicator.has-tooltip:focus-within .online-indicator__tooltip {
  opacity: 1;
}

.online-indicator__tooltip-title {
  font-size: 0.8rem;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.online-indicator__tooltip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.online-indicator__tooltip-list li {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.online-indicator.is-loading {
  opacity: 0.75;
}

.online-indicator.is-error {
  border-color: rgba(248, 113, 113, 0.6);
  background: rgba(248, 113, 113, 0.1);
  color: #fecaca;
}

.btn {
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  background: var(--accent-gradient);
  color: #041225;
  box-shadow: var(--shadow-md);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 30px rgba(14, 165, 233, 0.35);
}

.btn:active {
  transform: translateY(1px);
}

.btn--ghost {
  background: rgba(56, 189, 248, 0.1);
  color: var(--text-secondary);
  box-shadow: none;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.btn--ghost:hover {
  color: var(--text-primary);
  background: rgba(56, 189, 248, 0.2);
  box-shadow: none;
}

.btn--secondary {
  background: rgba(15, 23, 42, 0.85);
  color: var(--text-primary);
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: none;
}

.btn--secondary:hover {
  background: rgba(15, 23, 42, 0.95);
  color: var(--accent);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.18);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  padding: 140px 0 120px;
  overflow: hidden;
}

.hero-layout {
  width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: 48px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
  position: relative;
  z-index: 1;
}

.hero-media {
  margin: 0;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(148, 163, 184, 0.18);
  top:30px;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.65));
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  z-index:2;
  position:relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0) 0%, rgba(2, 6, 23, 0.85) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  display: grid;
  gap: 28px;
  max-width: 560px;
  text-align: left;
}

.hero h1 {
  font-size: clamp(2.6rem, 5vw, 3.4rem);
  line-height: 1.12;
  margin: 0;
  text-shadow: 0 16px 40px rgba(2, 6, 23, 0.7);
}

.hero p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.status-card {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(56, 189, 248, 0.2);
  box-shadow: var(--shadow-md);
  max-width: 420px;
}

.status-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text-secondary);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
  display: inline-block;
}

.status-dot.is-online {
  background: #4ade80;
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.5);
}
.server-status__indicator.is-online {
    background: #4ade80;
    box-shadow: 0 0 12px rgba(74, 222, 128, 0.5);
}
.status-dot.is-offline {
  background: #f87171;
  box-shadow: 0 0 12px rgba(248, 113, 113, 0.4);
}

.status-updated {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.status-expand {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(56, 189, 248, 0.25);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.status-expand:hover {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.4);
}

.status-expand__label {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.status-expand__chevron {
  transition: transform 0.2s ease;
}

.status-expand.is-open .status-expand__chevron {
  transform: rotate(180deg);
}

.popularity-panel {
  display: grid;
  gap: 12px;
  margin-top: 10px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: var(--radius-md);
}

.popularity-panel[hidden] {
  display: none;
}

.popularity-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.popularity-panel__title {
  font-weight: 700;
  color: #e2e8f0;
}

.popularity-day-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
}

.popularity-day {
  font-weight: 600;
}

.icon-button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(148, 163, 184, 0.12);
  color: #e2e8f0;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.icon-button:hover {
  transform: translateY(-1px);
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.35);
}

.popularity-chart {
  min-height: 180px;
  padding: 12px 8px 10px;
  border-radius: var(--radius-sm);
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.popularity-view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 2px;
}

.chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.chip.is-active {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.5);
  color: #67e8f9;
}

.chip:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.8);
  outline-offset: 2px;
}

.popularity-chart__bars {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: 6px;
  align-items: end;
  height: 160px;
  position: relative;
}

.popularity-chart__empty {
  text-align: center;
  color: var(--text-muted);
  padding: 24px 12px;
}

.popularity-bar {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  height: 100%;
  cursor: pointer;
  position: relative;
  padding-bottom: 24px;
}

.popularity-bar__body {
  width: 100%;
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.9) 0%, rgba(56, 189, 248, 0.65) 100%);
  box-shadow: 0 8px 20px rgba(56, 189, 248, 0.25);
  min-height: 10px;
  height: var(--bar-height, 0%);
  transition: height 120ms ease-out;
  position: relative;
}

.popularity-bar--current .popularity-bar__body,
.popularity-bar__body--current {
  background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
  box-shadow: 0 10px 26px rgba(251, 191, 36, 0.35);
}

.popularity-bar__body--empty {
  background: rgba(148, 163, 184, 0.25);
  box-shadow: none;
  min-height: 4px;
}

.popularity-bar__live-marker {
    position: absolute;
    left: var(--marker-left, 50%);
    bottom: calc(var(--marker-bottom, 0%) + 24px);
    transform: translate(-50%, 50%);
    width: 130%;
    max-width: none;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f472b6 0%, #fb7185 100%);
    box-shadow: 0 6px 18px rgba(251, 113, 133, 0.35);
    pointer-events: none;
    z-index: 1;
}

.popularity-bar__label {
  font-size: 0.7rem;
  text-align: center;
  white-space: nowrap;
  color: #cbd5e1;
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  width: 100%;
  pointer-events: none;
}

.popularity-bar__label--muted {
  color: rgba(203, 213, 225, 0.5);
}

.popularity-bar__label--spacer {
  letter-spacing: 2px;
}

.popularity-bar--current .popularity-bar__label {
  color: #fbbf24;
  font-weight: 700;
}

.popularity-bar__hint {
  position: absolute;
  transform: translate(-50%, -100%);
  background: #0ea5e9;
  color: #0b1220;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.85rem;
  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.35);
  display: inline-flex;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 2;
}

.popularity-bar__hint::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  border-width: 8px 8px 0 8px;
  border-style: solid;
  border-color: #0ea5e9 transparent transparent transparent;
}

.popularity-bar__hint-text {
  white-space: nowrap;
  font-weight: 600;
}

.popularity-bar__hint-close {
  background: rgba(11, 18, 32, 0.15);
  border: none;
  color: #0b1220;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 120ms ease-out, transform 120ms ease-out;
}

.popularity-bar__hint-close:hover,
.popularity-bar__hint-close:focus-visible {
  background: rgba(11, 18, 32, 0.25);
  transform: scale(1.05);
  outline: none;
}

.popularity-panel__footer {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.popularity-heatmap {
  margin-top: 10px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  overflow: hidden;
}

.popularity-heatmap__grid {
  display: grid;
  grid-template-columns: 60px repeat(var(--heatmap-columns, 24), minmax(0, 1fr));
  gap: 0px;
  align-items: center;
  width: 100%;
}

.popularity-heatmap__hour,
.popularity-heatmap__day {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-align: center;
}

.popularity-heatmap__corner {
  visibility: hidden;
}

.popularity-heatmap__hour {
  white-space: nowrap;
}

.popularity-heatmap__day {
  font-weight: 600;
  text-align: center;
}

.popularity-heatmap__cell {
  height: 22px;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.2);
  border: 1px solid rgba(148, 163, 184, 0.18);
  transition: transform 0.1s ease, border-color 0.1s ease, background 0.12s ease;
  cursor: pointer;
  position: relative;
  transform: translateZ(0);
  overflow: hidden;
}

.popularity-heatmap__cell:hover {
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.4);
}

.popularity-heatmap__cell::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.45), rgba(56, 189, 248, 0.15), transparent 65%);
  opacity: 0;
  transform: scale(0.45);
  pointer-events: none;
}

.popularity-heatmap__cell.is-rippling {
  animation: heatmapBounce 520ms ease-out var(--ripple-delay, 0ms);
}

.popularity-heatmap__cell.is-rippling::after {
  animation: heatmapRipple 650ms ease-out var(--ripple-delay, 0ms);
}

.popularity-heatmap__cell.is-selected {
  border-color: rgba(56, 189, 248, 0.8);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25);
}

@keyframes heatmapBounce {
  0% {
    transform: translateZ(0) translateY(0);
  }
  35% {
    transform: translateZ(10px) translateY(-6px) scale(1.02);
  }
  70% {
    transform: translateZ(0) translateY(2px);
  }
  100% {
    transform: translateZ(0) translateY(0);
  }
}

@keyframes heatmapRipple {
  0% {
    opacity: 0.55;
    transform: scale(0.45);
  }
  50% {
    opacity: 0.35;
    transform: scale(1.05);
  }
  100% {
    opacity: 0;
    transform: scale(1.35);
  }
}

.popularity-heatmap__hint {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin: 8px 2px 0;
}

.popularity-heatmap__actions {
  margin-top: 12px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.45);
  display: grid;
  gap: 10px;
}

.popularity-heatmap__actions-title {
  font-weight: 600;
  color: #e2e8f0;
  font-size: 0.95rem;
}

.popularity-heatmap__actions-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.popularity-heatmap__controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  flex-wrap: wrap;
  color: var(--text-muted);
}

.popularity-heatmap__controls-label {
  font-size: 0.82rem;
}

.popularity-heatmap__intervals {
  display: flex;
  gap: 6px;
}

.popularity-heatmap__legend {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.popularity-heatmap__legend-bar {
  height: 10px;
  width: 160px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.2), rgba(56, 189, 248, 0.6));
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 16px;
}

.modal-overlay.is-open {
  display: flex;
}

.modal {
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  max-width: 520px;
  width: min(90vw, 520px);
  color: #e2e8f0;
}

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px 8px;
}

.modal__title {
  font-size: 1.05rem;
  font-weight: 700;
}

.modal__close {
  border: none;
  background: transparent;
  color: #cbd5e1;
  font-size: 1rem;
  cursor: pointer;
  padding: 6px;
}

.modal__body {
  padding: 0 16px 18px;
  display: grid;
  gap: 12px;
}

.modal__subtitle {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.modal__list {
  margin: 0 0 4px 18px;
  color: #e2e8f0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.modal__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pie-chart {
  display: grid;
  gap: 12px;
}

.pie-chart__visual {
  display: grid;
  place-items: center;
  position: relative;
}

.pie-chart__svg {
  width: 220px;
  height: 220px;
}

.pie-chart__slice {
    transition: transform 160ms ease, filter 160ms ease;
    cursor: pointer;
    transform-origin: center;
}

.pie-chart__slice.is-active {
  transform: scale(1.08);
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.22));
}

.pie-chart__active-label {
   display:none;
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 12px;
  color: #e2e8f0;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  pointer-events: none;
}

.pie-chart__legend {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.pie-chart__legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e2e8f0;
  border-radius: 8px;
  padding: 4px 6px;
  transition: background 140ms ease, color 140ms ease;
}

.pie-chart__legend-item.is-active {
  background: rgba(59, 130, 246, 0.16);
  color: #f8fafc;
}

.pie-chart__legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.pie-chart__legend-swatch.is-active {
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.4);
  border-color: rgba(255, 255, 255, 0.7);
}

.section {
  padding: 96px 0;
}

.section--narrow {
  padding: 72px 0 120px;
}

.section.dark {
  background: rgba(2, 6, 23, 0.6);
}

.section .container {
  width: var(--max-width);
  margin: 0 auto;
}

.policy-content {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 40px;
}

.policy-section {
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 16px;
}

.policy-section h2 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 1.6rem);
}

.policy-section p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.7;
}

.policy-section ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 12px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.policy-section li {
  margin-left: 4px;
}

.policy-section a {
  color: var(--accent-light);
  font-weight: 500;
}

.section-header {
  display: grid;
  gap: 12px;
  margin-bottom: 40px;
  text-align: left;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin: 0;
}

.section-subtitle {
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.7;
}

.card-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.dungeon-guide {
  display: grid;
  gap: 36px;
}

.dungeon-tier {
  background: var(--surface-glass);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 32px;
}

.dungeon-tier__header {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.dungeon-tier__title {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2rem);
}

.dungeon-tier__note {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

.dungeon-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.dungeon-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.dungeon-table th,
.dungeon-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.dungeon-table thead th {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.dungeon-table tbody tr:last-child td {
  border-bottom: none;
}

.dungeon-table tbody tr:hover {
  background: rgba(56, 189, 248, 0.08);
}

.dungeon-name {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.badge--recommended {
  background: rgba(250, 204, 21, 0.18);
  color: #facc15;
}

.feature-card,
.event-card,
.info-card {
    background: var(--surface-glass);
    border: 1px solid rgba(148, 163, 184, 0.18);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.tilt-card {
  transform-style: preserve-3d;
  transform: perspective(1000px);
  will-change: transform;
}

.tilt-card__content {
  transform: translateZ(35px);
}

.blade-mark {
    --blade-opacity: 1;
    --blade-rotate-x: 0deg;
    --time: 6s;
    animation-duration: var(--time);
    position: absolute;
    bottom: -30%;
    left: -25%;
    width: 76%;
    height: 82%;
    z-index: 2;
    opacity: var(--blade-opacity);
    transform: translateZ(55px) rotateZ(162deg) rotateY(359deg) rotateX(var(--blade-rotate-x));
    animation: blade-mark-oscillate var(--time) ease-in-out infinite alternate;
}

@keyframes blade-mark-oscillate {
    from {
        opacity: var(--blade-opacity);
        transform: translateZ(55px) rotateZ(162deg) rotateY(368deg) rotateX(var(--blade-rotate-x));
    }

    to {
        opacity: var(--blade-opacity)-0.5;
        transform: translateZ(55px) rotateZ(162deg) rotateY(358deg) rotateX(var(--blade-rotate-x));
    }
}

.feature-card:hover,
.event-card:hover,
.info-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.45);
}

.feature-visual {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 180px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: var(--shadow-md);
}

.feature-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
  border-radius: 0;
}

.feature-visual--character {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 20%, rgba(56, 189, 248, 0.15), transparent 60%),
    rgba(2, 6, 23, 0.8);
}

.feature-visual--character img {
  width: auto;
  max-width: 90%;
  height: 100%;
  object-fit: contain;
}

.feature-card:hover .feature-visual img {
  transform: scale(1.05);
}

.feature-card:hover .feature-visual--character img {
  transform: scale(1.02);
}

.feature-card h3,
.event-card h3,
.info-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.feature-card p,
.event-card p,
.info-card p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.65;
}

.feature-card :where(h3, p, li, span, strong, a, small),
.event-card :where(h3, p, li, span, strong, a, small),
.info-card :where(h3, p, li, span, strong, a, small,ul),
.stat-card :where(span, strong, p),
.status-card :where(h3, p, span, strong),
.lookup-card :where(h2, h3, p, li, span, strong, a) {
  position: relative;
  transform: translateZ(35px);
  text-shadow: 0 8px 22px rgba(2, 6, 23, 0.58);
  transition: transform 0.25s ease, text-shadow 0.25s ease;
}

.info-card ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.info-card ul li + li {
  margin-top: 6px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.stat-card {
  background: var(--surface-solid);
  border-radius: var(--radius-md);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 28px 24px;
  display: grid;
  gap: 10px;
  text-align: left;
  box-shadow: var(--shadow-md);
}

.card-media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: var(--shadow-md);
  margin: -24px -24px 16px;
  aspect-ratio: 16 / 9;
  background: rgba(15, 23, 42, 0.6);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

.card-media--interactive {
  cursor: zoom-in;
  outline: none;
}

.card-media--interactive::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 60%, rgba(15, 23, 42, 0.25));
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.card-media--interactive:hover::after,
.card-media--interactive:focus-visible::after {
  opacity: 1;
}

.card-media--interactive:focus-visible {
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.45);
}

.card-media--interactive .card-media__zoom-hint {
  position: absolute;
  inset: auto 12px 12px auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  background: rgba(15, 23, 42, 0.75);
  color: var(--text-primary);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.28);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.card-media--interactive:hover .card-media__zoom-hint,
.card-media--interactive:focus-visible .card-media__zoom-hint {
  opacity: 1;
  transform: translateY(0);
}

.event-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.event-list__item {
  background: var(--surface-glass);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius-lg);
  padding: 18px 18px 20px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: minmax(140px, 250px) 1fr;
  gap: 18px;
  align-items: flex-start;
}

.event-list__item--no-media {
  grid-template-columns: 1fr;
}

.event-list__media {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.65);
  box-shadow: var(--shadow-sm);
}

    .event-list__media img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: contain;
    }

.event-list__content {
  display: grid;
  gap: 6px;
}

.event-list__media figcaption {
  margin: 0;
  padding: 10px 12px 12px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.event-list__header {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.event-list__header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.event-list__date {
  margin: 4px 0 8px;
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.event-list__description {
  margin: 0 0 12px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.event-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.event-label--limited {
  background: rgba(248, 113, 113, 0.12);
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.3);
}

.event-label--permanent {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.35);
}

.event-detail {
  background: var(--surface-glass);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 20px;
}

.event-detail__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.event-detail__meta {
  display: grid;
  gap: 6px;
  color: var(--text-secondary);
}

.event-detail__meta strong {
  color: var(--text-primary);
}

.event-detail__section {
  display: grid;
  gap: 12px;
}

.event-detail__section h2 {
  margin: 0;
  font-size: 1.1rem;
}

.event-detail__section p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.75;
}

.event-detail__list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-secondary);
  display: grid;
  gap: 8px;
  line-height: 1.65;
}

.event-detail__callout {
  background: linear-gradient(120deg, rgba(56, 189, 248, 0.1), rgba(56, 189, 248, 0.02));
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: grid;
  gap: 6px;
}

.event-detail__callout strong {
  color: var(--text-primary);
}

.event-detail__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.event-detail__gallery figure {
  margin: 0;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(15, 23, 42, 0.6);
  box-shadow: var(--shadow-md);
}

.event-detail__gallery img {
  width: 100%;
  height: auto;
  display: block;
}

.event-detail__gallery figcaption {
  padding: 10px 12px 12px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  .event-list__item {
    grid-template-columns: 1fr;
  }

  .event-list__header {
    align-items: flex-start;
  }

  .event-detail {
    padding: 22px;
  }
}

.card-media--interactive .card-media__zoom-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.stat-card span {
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.stat-card strong {
  font-size: 2rem;
  line-height: 1;
}

.community-gallery {
  margin: 32px 0 8px;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.community-gallery figure {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: var(--shadow-md);
}

.community-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(2, 6, 23, 0.85);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox.is-active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__dialog {
  position: relative;
  max-width: min(960px, 100%);
  width: min(960px, 100%);
}

.lightbox__img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.lightbox__caption {
  margin-top: 12px;
  color: var(--text-secondary);
  text-align: center;
  font-size: 0.95rem;
}

.lightbox__close {
  position: absolute;
  top: -12px;
  right: -12px;
  border: none;
  border-radius: 999px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.lightbox__close:hover,
.lightbox__close:focus-visible {
  transform: scale(1.05);
  background: rgba(30, 64, 175, 0.9);
}

.lightbox__close-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.grid-media {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.media-highlight {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.media-highlight {
  display: block;
  position: relative;
}

.media-highlight img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}

.list li {
  padding-left: 24px;
  position: relative;
  color: var(--text-secondary);
}

.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
}

.page {
  width: var(--max-width);
  margin: 0 auto;
  padding: 72px 0 120px;
}

.page-hero {
  margin-bottom: 48px;
  background: rgba(2, 6, 23, 0.65);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid rgba(56, 189, 248, 0.18);
  box-shadow: var(--shadow-md);
}

.page-hero--with-media {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
}

.page-hero__content {
  display: grid;
  gap: 16px;
}

.page-hero__media {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: var(--shadow-lg);
  min-height: 260px;
}

.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2.2rem, 4vw, 2.7rem);
}

.page-hero p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.7;
}

.page-section {
  background: rgba(2, 6, 23, 0.6);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 24px;
}

.page-section--accent {
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.5), rgba(17, 24, 39, 0.7));
  border-color: rgba(96, 165, 250, 0.5);
}

.page-section--note {
  background: rgba(2, 6, 23, 0.5);
  border-style: dashed;
  border-color: rgba(56, 189, 248, 0.28);
}

.gallery-page {
  padding: 120px 0 96px;
}

.gallery-hero {
  padding-bottom: 32px;
}

.gallery-hero__inner {
  width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: 18px;
  text-align: center;
}

.gallery-hero__inner h1 {
  font-size: 2.25rem;
  margin: 0;
}

.gallery-hero__inner p {
  margin: 0;
  color: var(--text-secondary);
}

.gallery-hero__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.gallery-hero__tags span {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  background: rgba(15, 23, 42, 0.6);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.guide-steps {
  display: grid;
  gap: 28px;
}

.guide-step {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 0;
  align-items: stretch;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.guide-step__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.guide-step__body {
  display: grid;
  gap: 12px;
  padding: 28px 32px;
  height:10%;
}

.guide-step__body h2 {
  margin: 0;
  font-size: 1.6rem;
}

.guide-step__body p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.8;
}

.guide-step:nth-child(even) .guide-step__media {
  order: 2;
}

.guide-step:nth-child(even) .guide-step__body {
  order: 1;
}

.guide-outro {
  display: grid;
  gap: 18px;
  text-align: center;
}

.guide-outro p {
  margin: 0 auto;
  max-width: 720px;
  color: rgba(226, 232, 240, 0.85);
  line-height: 1.8;
}

.guide-upgrade {
  margin-top: 48px;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(30, 64, 175, 0.22));
  border: 1px solid rgba(56, 189, 248, 0.28);
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 14px;
  text-align: left;
}

.guide-upgrade h3 {
  margin: 0;
}

.guide-upgrade p {
  margin: 0;
  color: rgba(226, 232, 240, 0.9);
  line-height: 1.7;
}

.guide-upgrade .cta-group {
  justify-content: flex-start;
}

code {
  background: rgba(148, 163, 184, 0.18);
  border-radius: 6px;
  padding: 0 6px;
  font-family: "JetBrains Mono", "Noto Sans TC", monospace;
  font-size: 0.9rem;
  color: #f8fafc;
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 10px;
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.16);
  border: 1px solid rgba(148, 163, 184, 0.35);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #e2e8f0;
}

@media (max-width: 1024px) {
  .guide-step {
    grid-template-columns: 1fr;
  }

  .guide-step:nth-child(even) .guide-step__media,
  .guide-step:nth-child(even) .guide-step__body {
    order: initial;
  }

  .guide-step__body {
    padding: 24px;
  }
}

@media (max-width: 640px) {
  .guide-step__body {
    padding: 20px 18px;
  }

  .guide-step__body h2 {
    font-size: 1.35rem;
  }
}

.gallery-browser {
  width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.gallery-filter {
  position: sticky;
  top: 96px;
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(2, 6, 23, 0.86);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
}

.gallery-filter__button {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(56, 189, 248, 0.2);
  background: rgba(15, 23, 42, 0.6);
  color: var(--text-secondary);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease,
    color 0.2s ease, background 0.2s ease;
}

.gallery-filter__button:hover,
.gallery-filter__button:focus {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 20px 32px rgba(14, 165, 233, 0.25);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.gallery-filter__button.is-active {
  background: var(--accent-soft);
  border-color: rgba(56, 189, 248, 0.65);
  color: var(--text-primary);
  box-shadow: 0 22px 36px rgba(56, 189, 248, 0.28);
}

.gallery-filter__label {
  font-weight: 600;
  font-size: 1.05rem;
}

.gallery-filter__hint {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.gallery-filter__button.is-active .gallery-filter__hint {
  color: rgba(226, 232, 240, 0.9);
}

.gallery-browser__content {
  background: var(--surface-glass);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: var(--shadow-md);
  padding: 32px;
  display: grid;
  gap: 24px;
}

.gallery-browser__header {
  display: grid;
  gap: 8px;
}

.gallery-browser__header h2 {
  margin: 0;
  font-size: 1.75rem;
}

.gallery-browser__header p {
  margin: 0;
  color: var(--text-secondary);
}

.patch-log {
/*  width: var(--max-width);*/
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.patch-entry {
  background: var(--surface-glass);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: var(--shadow-md);
  padding: 28px 32px;
  display: grid;
  gap: 16px;
}

.patch-entry__header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.patch-entry__header time {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.patch-entry ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  color: var(--text-secondary);
}

.patch-entry li strong {
  color: var(--text-primary);
}

.patch-entry a {
  color: var(--accent);
}

.patch-entry a:hover,
.patch-entry a:focus {
  color: var(--text-primary);
}

.gallery-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.gallery-tile {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.gallery-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.18), transparent 35%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.gallery-tile img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  background: rgba(2, 6, 23, 0.85);
  transition: transform 0.35s ease;
}

.gallery-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 24px 40px rgba(14, 165, 233, 0.28);
}

.gallery-tile:hover::after {
  opacity: 1;
}

.gallery-tile:hover img {
  transform: scale(1.04);
}

.gallery-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  margin: 40px auto 0;
  width: var(--max-width);
}

.gallery-loader__spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid rgba(148, 163, 184, 0.2);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}

.gallery-empty {
  margin: 0;
  padding: 32px;
  text-align: center;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.6);
  color: var(--text-secondary);
  grid-column: 1 / -1;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

form {
  display: grid;
  gap: 16px;
}

input,
textarea,
select {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.85);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-status {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.7);
  color: var(--text-primary);
  font-weight: 600;
}

.form-status--info {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
}

.form-status--success {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.12);
  color: #34d399;
}

.form-status--error {
  border-color: rgba(239, 68, 68, 0.55);
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
}

.form-note {
  margin: 0;
  color: var(--text-muted);
}

ol,
ul {
  margin: 0;
  padding-left: 22px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.footer {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 36px 0 48px;
  background: rgba(2, 6, 23, 0.8);
}

.footer .container {
  width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer nav {
  display: flex;
  gap: 16px;
}

pre {
  background: rgba(2, 6, 23, 0.75);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid rgba(56, 189, 248, 0.18);
  overflow-x: auto;
  font-family: "JetBrains Mono", "Fira Code", monospace;
  color: var(--accent);
}
.custom-pet-box {
    margin-top: 0.5em;
    padding: 0.75em 1em;
    background: rgba(255, 255, 255, 0.06);
    border-left: 4px solid #ff7a7a;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.6;
    box-shadow: 0 0 6px rgba(255, 100, 100, 0.2);
    backdrop-filter: blur(4px);
}

    .custom-pet-box strong {
        color: #ffaaaa;
        font-weight: 600;
    }

    .custom-pet-box em {
        display: block;
        margin-top: 4px;
        color: #ccc;
        font-size: 0.85rem;
    }

@media (max-width: 960px) {
  .navbar {
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
  }
  .navbar > .logo {
    flex: 1 1 auto;
  }
  .navbar.is-open {
    align-items: stretch;
  }
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }
  .nav-links,
  .nav-actions {
    display: none;
    width: 100%;
  }
  .navbar.is-open .nav-links,
  .navbar.is-open .nav-actions {
    display: flex;
  }
  .nav-links {
    order: 3;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 16px;
    margin-top: 8px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: var(--radius-md);
    background: rgba(2, 6, 23, 0.9);
    box-shadow: var(--shadow-md);
  }
  .nav-links a {
    width: 100%;
  }
  .nav-dropdown {
    width: 100%;
  }
  .nav-dropdown__toggle {
    display: none;
  }
  .nav-dropdown__menu {
    position: static;
    display: flex;
    width: 100%;
    padding: 0;
    gap: 8px;
    background: transparent;
    border: none;
    box-shadow: none;
  }
  .nav-dropdown__menu a {
    width: 100%;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.08);
  }
  .nav-actions {
    order: 4;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 0;
  }
  .nav-actions__link {
    width: 100%;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.08);
    text-align: center;
  }
  .online-indicator {
      display:none !important;
    width: 100%;
    text-align: center;
  }
  .online-indicator__tooltip {
    top: auto;
    bottom: calc(100% + 10px);
    max-width: min(320px, 90vw);
  }
  .gallery-browser {
    grid-template-columns: 1fr;
  }
  .gallery-filter {
    position: static;
    top: auto;
    z-index: auto;
  }
  .nav-actions .btn,
  .navbar.is-open .nav-links,
  .navbar.is-open .nav-actions {
    width: 100%;
  }
  .navbar.is-open .nav-actions {
    padding: 16px;
    margin-top: 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: var(--radius-md);
    background: rgba(2, 6, 23, 0.9);
    box-shadow: var(--shadow-md);
  }
  .hero {
    padding: 120px 0 96px;
  }
  .hero-layout {
    grid-template-columns: 1fr;
  }
  .hero-media {
    max-height: 360px;
    top:30px;
  }
  .hero-content {
    max-width: none;
  }
  .page-hero--with-media {
    grid-template-columns: 1fr;
  }
  .page-hero__media {
    max-height: 320px;
    order: -1;
  }
}

@media (max-width: 680px) {
  .btn {
    width: 100%;
  }
  .cta-group {
    flex-direction: column;
    align-items: stretch;
  }
  .page-hero,
  .page-section,
  .policy-section {
    padding: 28px;
  }
  .policy-content {
    gap: 28px;
  }
  .gallery-browser__content {
    padding: 24px;
  }
  .gallery-filter {
    padding: 16px;
    grid-template-columns: 1fr;
  }
  .patch-entry {
    padding: 24px;
  }
  .patch-entry__header time {
    font-size: 1.15rem;
  }
  .dungeon-tier {
    padding: 24px;
  }
  .dungeon-table {
    min-width: 0;
    display: block;
  }
  .dungeon-table thead {
    display: none;
  }
  .dungeon-table tbody {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .dungeon-table tbody tr {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: var(--radius-md);
    background: rgba(56, 189, 248, 0.05);
  }
  .dungeon-table tbody tr:hover {
    background: rgba(56, 189, 248, 0.05);
  }
  .dungeon-table td {
    padding: 6px 0;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    border-bottom: none;
  }
  .dungeon-table td::before {
    content: attr(data-label);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    min-width: 92px;
  }
  .dungeon-table td:first-child {
    flex-direction: column;
    gap: 6px;
  }
  .dungeon-name {
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .navbar {
    padding: 16px 0;
  }
  .nav-links {
    gap: 6px;
  }
  .gallery-browser__content {
    padding: 20px;
  }
  .gallery-filter {
    top: auto;
    padding: 14px;
  }
  .patch-entry {
    padding: 20px;
    gap: 12px;
  }
  .patch-entry ul {
    gap: 6px;
  }
  .hero {
    padding: 100px 0 80px;
  }
  .section,
  .section--narrow {
    padding: 72px 0;
  }
  .policy-section {
    padding: 24px;
  }
  .footer .container {
    flex-direction: column;
    text-align: center;
  }
}

@media (min-width: 1100px) {
  .gallery-browser {
    grid-template-columns: minmax(240px, 320px) 1fr;
    align-items: start;
    gap: 32px;
  }

  .gallery-filter {
    top: 104px;
    height: fit-content;
    grid-template-columns: 1fr;
  }
}

.server-status {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding: 0.75rem 1rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  color: #fff;
  font-weight: 500;
}

.server-status__indicator {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: #9ca3af;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

.server-status__indicator[data-status="online"] {
  background: #34d399;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.6);
}

.server-status__indicator[data-status="offline"] {
  background: #f87171;
  box-shadow: 0 0 12px rgba(248, 113, 113, 0.6);
}

.server-status__indicator[data-status="loading"] {
  background: #fbbf24;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.6);
}

.ranking-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  align-items: start;
}

.lookup-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1rem;
  padding: 1.5rem;
  color: #e2e8f0;
  display:none;
}

.lookup-card h2 {
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.lookup-card__list {
  display: grid;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.lookup-card__list li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
}

.lookup-card__list strong {
  font-weight: 600;
  color: #f8fafc;
}

.lookup-card__list span {
  font-size: 0.875rem;
  color: rgba(226, 232, 240, 0.8);
}

.ranking-table {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1rem;
  overflow: hidden;
}

.ranking-table__header {
  padding: 1.5rem 1.75rem 0;
}

.ranking-table__header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: #f8fafc;
}

.ranking-table__header p {
  margin-top: 0.5rem;
  color: rgba(226, 232, 240, 0.7);
}

.table-wrapper {
  overflow-x: auto;
  padding: 1.5rem;
}

.ranking-table table {
  width: 100%;
  border-collapse: collapse;
  color: #e2e8f0;
}

.ranking-table th,
.ranking-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  white-space: nowrap;
}

.ranking-table thead {
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.ranking-table tbody tr:nth-child(even) {
  background: rgba(30, 41, 59, 0.5);
}

.ranking-table tbody tr:hover {
  background: rgba(59, 130, 246, 0.2);
}

.ranking-table td.is-empty,
.ranking-table td.is-loading,
.ranking-table td.is-error {
  text-align: center;
  font-weight: 500;
  color: rgba(226, 232, 240, 0.75);
}

.ranking-table td.is-error {
  color: #fda4af;
}

.ranking-table td.is-loading {
  color: #fcd34d;
}

@media (max-width: 768px) {
  .ranking-table table,
  .ranking-table thead {
    display: block;
  }

  .ranking-table thead {
    clip: rect(0 0 0 0);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
  }

  .ranking-table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 1rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  }

  .ranking-table td {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    white-space: normal;
    padding: 0;
  }

  .ranking-table td::before {
    content: attr(data-label);
    font-size: 0.75rem;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.8);
  }

  .ranking-table td.is-empty,
  .ranking-table td.is-loading,
  .ranking-table td.is-error {
    grid-column: 1 / -1;
    padding: 0.5rem 0;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field__label {
  font-weight: 600;
  color: #f8fafc;
}

.field__input {
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.6);
  color: #f8fafc;
  padding: 0.75rem 1rem;
  font-size: 1rem;
}

.field__input:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.8);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.lookup-card__list .is-error,
.lookup-card__list .is-loading {
  color: rgba(248, 113, 113, 0.9);
}

.lookup-card__list .is-loading {
  color: rgba(253, 224, 71, 0.9);
}

.online-indicator[hidden] {
    display: none !important;
}

@media (min-width: 768px) {
    .nav-dropdown__menu .nav-badge {
        left: 0;
        top: 15px;
    }
}

@media (max-width: 768px) {
    .nav-dropdown__menu .nav-badge {
        left: -15px;
        top: 3px;
    }
}
.event-detail__gallery img{

}