:root {
  --bg: #0a0c14;
  --bg-soft: rgba(18, 24, 42, 0.86);
  --panel: rgba(15, 20, 35, 0.76);
  --panel-strong: rgba(20, 27, 48, 0.92);
  --line: rgba(255, 214, 102, 0.18);
  --text: #f5f0df;
  --muted: #c1b896;
  --gold: #f2c56d;
  --gold-strong: #ffde88;
  --blue: #76b8ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 1200px;
  --cursor-default: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cpath d='M5 3 L26 18 L18 19 L24 32 L19 34 L13 21 L7 28 Z' fill='%23f6d57c' stroke='%230d1322' stroke-width='2' stroke-linejoin='round'/%3E%3Ccircle cx='26' cy='9' r='4' fill='%2376b8ff' stroke='%23f6d57c' stroke-width='1.5'/%3E%3C/svg%3E") 4 2, auto;
  --cursor-pointer: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cpath d='M18 3 L22 12 L32 14 L24 21 L26 32 L18 27 L10 32 L12 21 L4 14 L14 12 Z' fill='%23ffde88' stroke='%230d1322' stroke-width='2' stroke-linejoin='round'/%3E%3Ccircle cx='18' cy='18' r='4.5' fill='%2376b8ff' stroke='%23f6d57c' stroke-width='1.5'/%3E%3C/svg%3E") 18 18, pointer;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(45, 77, 145, 0.28), transparent 35%),
    radial-gradient(circle at bottom right, rgba(255, 196, 90, 0.16), transparent 25%),
    linear-gradient(180deg, #090b12 0%, #0f1423 45%, #080a10 100%);
  background-attachment: fixed;
  cursor: var(--cursor-default);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.02)),
    repeating-linear-gradient(
      135deg,
      rgba(255, 214, 102, 0.03) 0,
      rgba(255, 214, 102, 0.03) 2px,
      transparent 2px,
      transparent 16px
    );
  mix-blend-mode: screen;
  opacity: 0.45;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: var(--cursor-pointer);
}

button,
.button,
.nav-toggle {
  cursor: var(--cursor-pointer);
}

img {
  max-width: 100%;
}

.cursor-sigil,
.cursor-orb {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-100px, -100px, 0);
  transition:
    opacity 0.2s ease,
    width 0.2s ease,
    height 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.cursor-sigil {
  width: 28px;
  height: 38px;
  margin-left: 0;
  margin-top: 0;
  background: linear-gradient(180deg, #ffe39a 0%, #d7a440 100%);
  clip-path: polygon(0 0, 0 29px, 7px 24px, 12px 37px, 17px 35px, 12px 22px, 22px 22px);
  filter:
    drop-shadow(0 0 10px rgba(118, 184, 255, 0.24))
    drop-shadow(0 0 18px rgba(255, 222, 136, 0.2));
}

.cursor-sigil::before,
.cursor-sigil::after {
  content: "";
  position: absolute;
  inset: 0;
}

.cursor-sigil::before {
  background: #0d1322;
  clip-path: polygon(0 0, 0 29px, 7px 24px, 12px 37px, 17px 35px, 12px 22px, 22px 22px);
  transform: translate(1.5px, 1.5px) scale(0.88);
  transform-origin: top left;
}

.cursor-sigil::after {
  width: 7px;
  height: 7px;
  inset: 7px auto auto 8px;
  border: 1px solid rgba(255, 222, 136, 0.8);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(118, 184, 255, 0.95), rgba(118, 184, 255, 0.18));
  box-shadow:
    0 0 10px rgba(118, 184, 255, 0.3),
    0 0 16px rgba(255, 222, 136, 0.2);
}

.cursor-orb {
  width: 34px;
  height: 34px;
  margin-left: -10px;
  margin-top: -8px;
  border: 1px solid rgba(255, 222, 136, 0.28);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(118, 184, 255, 0.14), rgba(118, 184, 255, 0.04) 44%, transparent 70%);
  box-shadow:
    inset 0 0 20px rgba(118, 184, 255, 0.08),
    0 0 18px rgba(255, 222, 136, 0.1);
}

.cursor-enabled {
  cursor: none;
}

.cursor-enabled a,
.cursor-enabled button,
.cursor-enabled .button,
.cursor-enabled .nav-toggle {
  cursor: none;
}

.cursor-enabled .cursor-sigil,
.cursor-enabled .cursor-orb {
  opacity: 1;
}

.cursor-enabled.cursor-hover .cursor-sigil {
  width: 31px;
  height: 42px;
  filter:
    drop-shadow(0 0 12px rgba(118, 184, 255, 0.3))
    drop-shadow(0 0 22px rgba(255, 222, 136, 0.24));
}

.cursor-enabled.cursor-hover .cursor-orb {
  width: 42px;
  height: 42px;
  margin-left: -14px;
  margin-top: -12px;
  border-color: rgba(255, 222, 136, 0.45);
  box-shadow:
    inset 0 0 24px rgba(118, 184, 255, 0.12),
    0 0 24px rgba(255, 222, 136, 0.16);
}

.cursor-enabled.cursor-active .cursor-sigil {
  width: 25px;
  height: 34px;
  filter:
    drop-shadow(0 0 8px rgba(118, 184, 255, 0.26))
    drop-shadow(0 0 16px rgba(255, 222, 136, 0.18));
}

.cursor-enabled.cursor-active .cursor-orb {
  width: 28px;
  height: 28px;
  margin-left: -8px;
  margin-top: -6px;
}

.page-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  margin-bottom: 28px;
  background: rgba(8, 11, 20, 0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 214, 102, 0.4);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 222, 136, 0.32), rgba(33, 40, 68, 0.95));
  color: var(--gold-strong);
  font-family: "Cinzel", serif;
  font-size: 1.1rem;
  font-weight: 700;
  overflow: hidden;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text strong,
.hero h1,
.section-heading h2,
.panel-card h2,
.schedule-card h3,
.card h3,
.role-card .role-badge,
.application-box h3 {
  font-family: "Cinzel", serif;
}

.brand-text strong {
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.brand-text small {
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav a {
  color: var(--muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--gold-strong);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

.hero,
.section,
.site-footer {
  position: relative;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: stretch;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(11, 16, 29, 0.9), rgba(17, 23, 40, 0.76)),
    radial-gradient(circle at top right, rgba(255, 214, 102, 0.12), transparent 28%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero::before,
.accent-section::before,
.card::before,
.role-card::before,
.schedule-card::before,
.panel-card::before,
.application-box::before,
.lore-card::before,
.progress-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 214, 102, 0.07);
  border-radius: inherit;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -80px -80px auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(118, 184, 255, 0.22), transparent 60%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 4.6vw, 4.8rem);
  line-height: 1.04;
}

.hero h1 span {
  color: var(--gold-strong);
}

.hero-text,
.section-heading p,
.card p,
.schedule-card p,
.schedule-card small,
.role-card p,
.application-box,
.panel-card p {
  color: var(--muted);
}

.hero-text {
  max-width: 62ch;
  font-size: 1.06rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0;
}

.countdown-card {
  position: relative;
  margin: 0 0 26px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(16, 22, 38, 0.92), rgba(11, 16, 28, 0.9));
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 30px rgba(118, 184, 255, 0.05);
}

.countdown-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 214, 102, 0.07);
  border-radius: inherit;
  pointer-events: none;
}

.countdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.countdown-head strong {
  color: var(--gold-strong);
  font-size: 1rem;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.countdown-grid article {
  padding: 16px 12px;
  border: 1px solid rgba(255, 214, 102, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}

.countdown-grid strong {
  display: block;
  margin-bottom: 6px;
  color: var(--gold-strong);
  font-family: "Cinzel", serif;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1;
}

.countdown-grid span,
.countdown-note {
  color: var(--muted);
}

.countdown-note {
  margin: 14px 0 0;
  font-size: 0.94rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #1d1402;
  background: linear-gradient(180deg, var(--gold-strong), #d8a644);
  box-shadow: 0 16px 40px rgba(255, 197, 109, 0.2);
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.button-large {
  min-width: 220px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hero-stats article,
.card,
.schedule-card,
.role-card,
.panel-card,
.application-box {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(10px);
}

.hero-stats article {
  padding: 18px;
  border-radius: var(--radius-md);
}

.hero-stats strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gold-strong);
  font-size: 1.8rem;
}

.hero-stats span {
  color: var(--muted);
}

.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-art-frame,
.feature-art-frame,
.raid-art-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 214, 102, 0.25);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(18, 26, 48, 0.95), rgba(11, 15, 25, 0.92));
  box-shadow: inset 0 0 50px rgba(255, 214, 102, 0.08);
}

.hero-art,
.feature-art,
.raid-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.08) brightness(0.84);
}

.hero-art-frame {
  min-height: 320px;
}

.hero-art-frame::after,
.feature-art-frame::after,
.raid-art-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 8, 15, 0.12), rgba(5, 8, 15, 0.5)),
    radial-gradient(circle at center, transparent 30%, rgba(5, 8, 15, 0.24));
  pointer-events: none;
}

.crest {
  position: absolute;
  inset: auto 24px 24px auto;
  display: grid;
  place-items: center;
  width: 168px;
  height: 168px;
  border: 1px solid rgba(255, 214, 102, 0.25);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255, 214, 102, 0.16), transparent 40%),
    linear-gradient(180deg, rgba(18, 26, 48, 0.95), rgba(11, 15, 25, 0.92));
  box-shadow: inset 0 0 50px rgba(255, 214, 102, 0.08);
  z-index: 1;
}

.crest-core {
  display: grid;
  place-items: center;
  width: 160px;
  height: 160px;
  border: 2px solid rgba(255, 214, 102, 0.35);
  border-radius: 50%;
  color: var(--gold-strong);
  font-family: "Cinzel", serif;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 222, 136, 0.35), rgba(29, 35, 61, 0.9));
  box-shadow:
    0 0 0 16px rgba(255, 214, 102, 0.05),
    0 0 40px rgba(255, 214, 102, 0.18);
}

.crest-logo-wrap {
  overflow: hidden;
}

.crest-logo-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.panel-card,
.card,
.role-card,
.schedule-card,
.application-box,
.lore-card,
.progress-card {
  position: relative;
  border-radius: var(--radius-md);
  padding: 24px;
}

.panel-label,
.day {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 10px;
  border: 1px solid rgba(118, 184, 255, 0.25);
  border-radius: 999px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.section {
  padding: 88px 0 0;
}

.ornament {
  display: flex;
  justify-content: center;
  padding-top: 34px;
}

.ornament span {
  position: relative;
  width: min(220px, 50vw);
  height: 18px;
}

.ornament span::before,
.ornament span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 214, 102, 0.55), transparent);
}

.ornament span::after {
  inset: 50% auto auto 50%;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: linear-gradient(135deg, rgba(255, 214, 102, 0.8), rgba(118, 184, 255, 0.65));
  box-shadow: 0 0 20px rgba(255, 214, 102, 0.25);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 3vw, 3rem);
}

.section-heading p {
  margin: 0;
  line-height: 1.7;
}

.grid.three-columns,
.schedule,
.roles {
  display: grid;
  gap: 18px;
}

.grid.three-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.accent-section {
  padding: 32px;
  margin-top: 88px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(14, 18, 31, 0.86), rgba(13, 18, 33, 0.98)),
    radial-gradient(circle at left, rgba(255, 214, 102, 0.08), transparent 30%);
  box-shadow: var(--shadow);
}

.schedule {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.schedule-card h3,
.card h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
}

.schedule-card p {
  margin: 0 0 8px;
  color: var(--text);
  font-weight: 700;
}

.schedule-card small {
  display: block;
  line-height: 1.6;
}

.roles {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lore-layout,
.raid-board {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  margin-top: 22px;
}

.lore-card h3 {
  margin: 0 0 12px;
  font-family: "Cinzel", serif;
  font-size: 1.5rem;
}

.feature-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--text);
}

.feature-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--gold-strong);
}

.role-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.sigil {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 214, 102, 0.3);
  border-radius: 16px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 222, 136, 0.22), rgba(24, 32, 56, 0.95));
  color: var(--gold-strong);
  font-family: "Cinzel", serif;
  font-size: 1.4rem;
  font-weight: 700;
  box-shadow: inset 0 0 24px rgba(255, 214, 102, 0.06);
}

.role-badge {
  color: var(--gold-strong);
  font-size: 1.25rem;
}

.progress-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  background:
    linear-gradient(180deg, rgba(17, 24, 41, 0.94), rgba(12, 17, 30, 0.94));
}

.progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text);
  font-weight: 600;
}

.progress-row span {
  color: var(--muted);
}

.progress-bar {
  width: 100%;
  height: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 214, 102, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7ab9ff, #ffdf90);
  box-shadow: 0 0 18px rgba(255, 214, 102, 0.22);
}

.progress-bar.negative span {
  background: linear-gradient(90deg, #6d88a5, #9cb0c4);
  box-shadow: none;
}

.application-section {
  padding-bottom: 36px;
}

.application-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.check-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--text);
}

.check-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold-strong);
}

.site-footer {
  padding-top: 48px;
  color: var(--muted);
  text-align: center;
}

.site-legal {
  max-width: 820px;
  margin: 10px auto 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(193, 184, 150, 0.82);
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .grid.three-columns,
  .schedule,
  .roles,
  .hero-stats,
  .countdown-grid,
  .lore-layout,
  .raid-board {
    grid-template-columns: 1fr;
  }

  .application-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .crest {
    width: 140px;
    height: 140px;
  }

  .crest-core {
    width: 132px;
    height: 132px;
    font-size: 2.5rem;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--max-width));
    padding-top: 16px;
  }

  .site-header {
    flex-wrap: wrap;
    border-radius: 26px;
    padding: 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 12px;
  }

  .site-header.nav-open .site-nav {
    display: flex;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .crest {
    inset: auto 16px 16px auto;
    width: 116px;
    height: 116px;
  }

  .crest-core {
    width: 106px;
    height: 106px;
    font-size: 2rem;
  }

  .accent-section {
    padding: 24px;
    margin-top: 64px;
  }

  .section {
    padding-top: 64px;
  }
}

@media (hover: none), (pointer: coarse) {
  body,
  a,
  button,
  .button,
  .nav-toggle {
    cursor: auto;
  }

  .cursor-sigil,
  .cursor-orb {
    display: none;
  }
}
