@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: dark;
  --background: #100c0d;
  --surface: #191314;
  --surface-raised: #21191a;
  --text: #f8f4f0;
  --muted: #aaa09b;
  --accent: #ffb52d;
  --accent-bright: #ffd074;
  --line: rgba(255, 255, 255, 0.1);
  font-family: "DM Sans", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--background);
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(ellipse at 50% 38%, rgba(111, 44, 24, 0.12), transparent 54%),
    var(--background);
}

button,
a {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

button {
  cursor: pointer;
}

.site-header {
  position: absolute;
  z-index: 2;
  display: flex;
  width: 100%;
  height: 82px;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(22px, 6vw, 96px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 11, 12, 0.42);
  backdrop-filter: blur(12px);
}

.wordmark,
.header-actions,
.button {
  display: inline-flex;
  align-items: center;
}

.wordmark {
  gap: 12px;
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.wordmark-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 181, 45, 0.72);
  color: var(--accent);
  font-size: 19px;
  font-style: italic;
}

.wordmark-accent,
.footer-brand span {
  color: var(--accent);
}

.header-actions {
  gap: 12px;
}

.button {
  min-height: 44px;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-quiet {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(15, 11, 12, 0.18);
}

.button-quiet:hover,
.button-outline:hover {
  border-color: var(--accent);
}

.button-discord {
  background: #5865f2;
}

.button-discord:hover {
  background: #4752d8;
}

.button-discord svg {
  width: 18px;
  fill: currentColor;
}

.hero {
  position: relative;
  overflow: hidden;
  background: #211112;
}

.hero-visual {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #211112;
}

.hero-art {
  display: block;
  width: 100%;
  height: auto;
}

.hero-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(16, 12, 13, 0.62), transparent 28%);
}

.hero-copy {
  position: relative;
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 47px 24px 70px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 17px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.19em;
  line-height: 1.6;
  text-transform: uppercase;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 8px 1px 0;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 13px var(--accent);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
.countdown-content h2 {
  font-family: "Manrope", sans-serif;
}

h1 {
  margin: 0;
  font-size: clamp(39px, 6.1vw, 76px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.06;
}

h1 span {
  color: var(--accent-bright);
}

.hero-description {
  max-width: 420px;
  margin: 20px auto 23px;
  color: #e0d8d2;
  font-size: 15px;
  line-height: 1.75;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--accent-bright);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-caption {
  position: absolute;
  right: clamp(16px, 4vw, 60px);
  bottom: 18px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 9px;
  letter-spacing: 0.22em;
}

.countdown-section {
  padding: 104px 24px 100px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.countdown-content {
  max-width: 850px;
  margin: 0 auto;
}

.eyebrow-centered {
  margin-bottom: 13px;
}

.countdown-content h2 {
  margin: 0;
  font-size: clamp(25px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.045em;
}

.countdown-content h2 span {
  color: var(--accent-bright);
}

.opening-date {
  margin: 12px 0 31px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.06em;
}

.countdown {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(8px, 2vw, 20px);
}

.time-card {
  display: grid;
  width: clamp(64px, 12vw, 110px);
  min-height: 100px;
  align-content: center;
  gap: 6px;
  border: 1px solid rgba(255, 181, 45, 0.17);
  border-radius: 5px;
  background: linear-gradient(145deg, rgba(255, 181, 45, 0.07), rgba(255, 255, 255, 0.015));
}

.time-value {
  color: var(--accent-bright);
  font-family: "Manrope", sans-serif;
  font-size: clamp(27px, 5vw, 42px);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  line-height: 1;
}

.time-label {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.time-separator {
  padding-top: 28px;
  color: rgba(255, 181, 45, 0.55);
  font-size: 28px;
  font-weight: 400;
}

.countdown-note {
  min-height: 22px;
  margin: 20px 0 27px;
  color: var(--muted);
  font-size: 13px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.button-primary {
  color: #1c1207;
  background: var(--accent);
}

.button-primary:hover {
  background: var(--accent-bright);
}

.button-outline {
  border-color: rgba(255, 255, 255, 0.19);
  background: transparent;
}

.promise {
  display: grid;
  max-width: 780px;
  justify-items: center;
  margin: 0 auto;
  padding: 86px 24px 90px;
  text-align: center;
}

.promise-mark {
  display: grid;
  width: 43px;
  height: 43px;
  margin-bottom: 20px;
  place-items: center;
  border: 1px solid rgba(255, 181, 45, 0.55);
  color: var(--accent);
  font-family: "Manrope", sans-serif;
  font-size: 24px;
  font-style: italic;
  font-weight: 800;
}

.promise p {
  max-width: 690px;
  margin: 0;
  color: #f2e9e3;
  font-family: "Manrope", sans-serif;
  font-size: clamp(19px, 3vw, 26px);
  font-weight: 600;
  line-height: 1.6;
}

.promise-label {
  margin-top: 20px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-footer {
  display: flex;
  min-height: 100px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  padding: 25px clamp(24px, 6vw, 96px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.footer-brand {
  color: var(--text);
  font-family: "Manrope", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.site-footer p {
  margin: 0;
}

.footer-rules {
  padding: 5px 0;
  border: 0;
  background: none;
  color: #d9cfc8;
  font-size: 11px;
  text-decoration: underline;
  text-decoration-color: rgba(255, 181, 45, 0.55);
  text-underline-offset: 4px;
}

.footer-rules:hover {
  color: var(--accent-bright);
}

.footer-copyright {
  color: #766d68;
}

.rules-dialog {
  width: min(760px, calc(100% - 28px));
  max-width: none;
  max-height: min(88svh, 900px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 181, 45, 0.25);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.7);
}

.rules-dialog::backdrop {
  background: rgba(7, 5, 6, 0.82);
  backdrop-filter: blur(7px);
}

.rules-header {
  position: sticky;
  z-index: 1;
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 30px 23px;
  border-bottom: 1px solid var(--line);
  background: rgba(25, 19, 20, 0.97);
}

.rules-header .eyebrow {
  margin-bottom: 8px;
  font-size: 9px;
}

.rules-header h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(20px, 4vw, 27px);
  letter-spacing: -0.035em;
  line-height: 1.3;
}

.dialog-close {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: 26px;
  line-height: 1;
}

.dialog-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.rules-content {
  max-height: calc(min(88svh, 900px) - 122px);
  padding: 8px 30px 30px;
  overflow-y: auto;
  scrollbar-color: #6b4c28 #191314;
  scrollbar-width: thin;
}

.rule-section {
  padding: 19px 0 17px;
  border-bottom: 1px solid var(--line);
}

.rule-section h3 {
  margin: 0 0 13px;
  color: var(--accent-bright);
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  font-weight: 700;
}

.rule-section p,
.rule-section li {
  color: #d4cac4;
  font-size: 13px;
  line-height: 1.75;
}

.rule-section p {
  margin: 8px 0;
}

.rule-section strong {
  color: var(--text);
}

.rule-section ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2px 24px;
  margin: 8px 0;
  padding-left: 20px;
}

.sanction-table-wrap {
  overflow-x: auto;
}

.rule-section table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.rule-section th,
.rule-section td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: #d4cac4;
  font-size: 12px;
  line-height: 1.5;
}

.rule-section th {
  color: var(--accent-bright);
  font-weight: 700;
}

.rules-closing {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 30px 8px 3px;
  text-align: center;
}

.rules-closing > span {
  font-size: 25px;
}

.rules-closing p {
  max-width: 440px;
  margin: 0;
  color: var(--accent-bright);
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}

.rules-closing strong {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.8;
}

:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 4px;
}

@media (max-width: 620px) {
  .site-header {
    height: 70px;
    padding: 0 18px;
  }

  .wordmark {
    gap: 8px;
    font-size: 10px;
  }

  .wordmark-icon {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }

  .header-actions {
    gap: 7px;
  }

  .header-actions .button {
    min-height: 38px;
    padding: 0 10px;
    font-size: 11px;
  }

  .hero-copy {
    padding: 38px 24px 58px;
  }

  .hero-description {
    max-width: 340px;
    font-size: 14px;
  }

  .hero-caption {
    right: 12px;
    bottom: 8px;
    font-size: 8px;
  }

  .countdown-section {
    padding: 76px 18px 72px;
  }

  .time-card {
    min-height: 83px;
  }

  .time-label {
    font-size: 8px;
  }

  .time-separator {
    padding-top: 25px;
    font-size: 22px;
  }

  .site-footer {
    justify-content: center;
    text-align: center;
  }

  .rules-header {
    padding: 21px 19px 18px;
  }

  .rules-content {
    padding: 5px 19px 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
