:root {
  color-scheme: dark;
  --background: #172b40;
  --foreground: #f0efeb;
  --card: #171a1e;
  --card-foreground: var(--foreground);
  --primary: #e9e7e2;
  --primary-foreground: #17191d;
  --muted-foreground: #adb2bc;
  --accent: #22262c;
  --border: #43556d;
  --ring: #aab4c9;
  --brand: #e3a07d;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

html.lenis { scroll-behavior: auto; }

body {
  margin: 0;
  min-width: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: system-ui, sans-serif;
}

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 4px;
}

.shell {
  width: min(calc(100% - clamp(2rem, 9vw, 5rem)), 61rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: .75rem;
  left: 1rem;
  padding: .65rem 1rem;
  transform: translateY(-150%);
  border-radius: .5rem;
  background: var(--primary);
  color: var(--primary-foreground);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  background: var(--background);
}

.header-inner {
  display: flex;
  min-height: 4.4rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: .75rem;
}

.main-layout {
  display: grid;
  row-gap: clamp(2.5rem, 6vw, 4.75rem);
  padding-bottom: clamp(2.5rem, 6vw, 4.75rem);
}

.hero {
  padding-block: clamp(3.5rem, 11vw, 7.5rem) clamp(1rem, 3.5vw, 2.5rem);
  text-align: center;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: clamp(.9rem, 2vw, 1.5rem);
  color: var(--muted-foreground);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-status span {
  width: .42rem;
  height: .42rem;
  border-radius: 50%;
  background: var(--muted-foreground);
}

.wordmark {
  font-size: clamp(2.15rem, 9.35vw, 6.75rem);
  font-weight: 740;
  line-height: 1.04;
  letter-spacing: -.075em;
  overflow-wrap: anywhere;
}

.section-title {
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: -.03em;
}

.section-icon {
  display: grid;
  flex: 0 0 2.2rem;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: .6rem;
  color: var(--muted-foreground);
}

.section-icon svg { width: 1rem; height: 1rem; }

.timer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: .8rem;
  background: var(--background);
}

.timer-cell {
  display: flex;
  min-width: 0;
  flex-direction: column-reverse;
  gap: .5rem;
  padding: clamp(.9rem, 3vw, 1.9rem);
}

.timer-cell + .timer-cell { border-left: 1px solid var(--border); }

.timer-value {
  font-size: clamp(1.9rem, 5vw, 3.75rem);
  font-weight: 560;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -.055em;
}

.notice {
  display: grid;
  gap: 1.3rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow-wrap: anywhere;
}
.notice-header, .notice-author, .notice-author-name {
  display: flex;
  align-items: center;
}
.notice-header, .notice-author { gap: .75rem; }
.notice-author {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}
.notice-avatar {
  display: block;
  flex: none;
  width: clamp(3.4rem, 9vw, 4rem);
  height: clamp(3.4rem, 9vw, 4rem);
  border: 2px solid var(--border);
  border-radius: 50%;
  object-fit: cover;
  background: var(--accent);
}
.notice-author-name {
  min-width: 0;
  flex-wrap: wrap;
  column-gap: .22rem;
}
.notice-username {
  font-size: clamp(1.45rem, 5vw, 2rem);
  font-weight: 760;
  letter-spacing: -.04em;
}
.verification { position: relative; display: inline-flex; }
.notice-verified {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #a7b8fa;
  cursor: pointer;
  transition: background .2s ease;
}
.notice-verified:hover, .notice-verified[aria-expanded="true"] { background: #a7b8fa1c; }
.notice-verified svg { width: 27px; height: 27px; }
.verification-detail {
  position: absolute;
  z-index: 2;
  top: 100%;
  right: 0;
  width: min(12rem, 65vw);
  padding: .6rem .75rem;
  border: 1px solid #5a6b91;
  border-radius: .6rem;
  background: #22324e;
  box-shadow: 0 6px 22px #0d18266b;
  color: var(--foreground);
  font: 550 .875rem/1.45 system-ui, sans-serif;
}
.verification-detail[hidden] { display: none; }
.verification-detail:not([hidden]) { animation: badge-in .15s ease-out both; }
@keyframes badge-in {
  from { opacity: .6; transform: translateY(-3px); }
}
@media (prefers-reduced-motion: reduce) {
  .verification-detail:not([hidden]) { animation: none; }
}
.notice-copy {
  display: grid;
  gap: 1rem;
  max-width: 69ch;
  margin: 0;
  color: var(--muted-foreground);
  line-height: 1.7;
}
.notice-copy strong { color: var(--foreground); }
.notice-copy ol { display: grid; gap: .5rem; margin: 0; padding-inline-start: 1.3rem; }
.notice-copy li::marker { color: #b8c9ee; font-weight: 650; }

@media (max-width: 30rem) {
  .timer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timer-cell:nth-child(3) { border-left: 0; }
  .timer-cell:nth-child(n + 3) { border-top: 1px solid var(--border); }
}

@media (max-width: 25rem) {
  html { scroll-padding-top: 8rem; }
  .header-inner { padding-block: .2rem; }
  .header-inner nav { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

*, *::before, *::after { box-sizing: border-box; }
h1, h2, p, dl, dd { margin: 0; }
body { line-height: 1.55; }
a { color: inherit; text-decoration: none; }
.brand { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; letter-spacing: -.025em; }
.brand span, .wordmark span { color: var(--brand); }
.nav { display: flex; flex-wrap: wrap; gap: .25rem; }
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .55rem .75rem;
  border-radius: .6rem;
  color: var(--muted-foreground);
  font-size: .875rem;
  font-weight: 600;
  transition: background .2s, color .2s;
}
.button:hover { background: var(--accent); color: var(--foreground); }
.button svg { width: 1rem; height: 1rem; flex: none; }
.button-primary { padding-inline: 1rem; background: var(--primary); color: var(--primary-foreground); }
.button-primary:hover { background: #d2cfc9; color: var(--primary-foreground); }
.hero-copy { margin-top: 1rem; color: var(--muted-foreground); font-size: clamp(1rem, 2.2vw, 1.125rem); }
.hero-action { margin-top: 1.85rem; }
.countdown {
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--card);
  color: var(--card-foreground);
}
.countdown-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1rem 2rem; }
.section-heading { display: flex; align-items: center; gap: .75rem; }
.countdown-date { color: var(--muted-foreground); font-size: .875rem; }
.countdown-date time { display: block; color: var(--foreground); font-weight: 550; }
.timer-grid { margin-top: 1.5rem; }
.timer-grid[hidden] { display: none; }
.timer-cell dt, .timer-status { color: var(--muted-foreground); }
.timer-cell dt { font-size: .875rem; }
.timer-status:empty { display: none; }
.timer-status { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border); }

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .25rem 1rem;
  min-height: 5rem;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: .875rem;
}
@media (min-width: 40rem) {
  .countdown-date { text-align: right; }
}

body { isolation: isolate; }
.page-backdrop {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(145deg, #172b40, #142736 58%, #242641);
}
.page-backdrop::before, .page-backdrop::after {
  content: "";
  position: absolute;
  inset: -24%;
}
.page-backdrop::before {
  background: radial-gradient(ellipse at 29% 24%, #355c79b0 0%, transparent 46%);
  animation: drift 22s ease-in-out infinite alternate;
}
.page-backdrop::after {
  background: radial-gradient(ellipse at 70% 74%, #51628a85 0%, transparent 48%);
  animation: drift 28s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate3d(-4%, 3%, 0) scale(1); }
  to { transform: translate3d(9%, -7%, 0) scale(1.13); }
}
.site-header {
  background: #132233f2;
}
.countdown, .notice {
  background: #162638ed;
  box-shadow: 0 14px 45px #10172624;
}
.timer-grid { background: #141f2e; }
@media (prefers-reduced-motion: reduce) {
  .page-backdrop::before, .page-backdrop::after { animation: none; }
}

/* Cuenta regresiva y acceso al servidor */
.countdown {
  padding: clamp(1.25rem, 5vw, 3rem);
}
.countdown-header {
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: clamp(1.125rem, 3vw, 1.55rem);
}
.countdown-date time {
  font-size: 1rem;
}
.timer-grid {
  gap: 1px;
  margin-top: 1.5rem;
  background: var(--border);
}
.timer-cell {
  align-items: center;
  justify-content: center;
  min-height: clamp(6rem, 11vw, 8.75rem);
  padding: clamp(.875rem, 2.5vw, 1.5rem) .55rem;
  background: #142234;
}
.timer-grid .timer-cell {
  border: 0;
}
.timer-cell dt {
  font-size: .875rem;
}
.timer-value {
  color: #f5f6fb;
  font-size: clamp(2rem, 6vw, 4.25rem);
  font-weight: 620;
  letter-spacing: -.055em;
}
.join-action {
  display: grid;
  justify-items: center;
  margin-top: clamp(1.5rem, 4vw, 2.25rem);
}
.join-button {
  gap: .65rem;
  padding-inline: 1rem;
  border: 1px solid #c5cff4;
  background: #e5ebff;
  color: #15264a;
  cursor: pointer;
}
.join-button:hover {
  background: #f4f6ff;
  color: #15264a;
}
.discord-mark {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.join-status:not(:empty) {
  margin-top: .75rem;
}
.join-status {
  color: #ffd2b6;
  text-align: center;
  font-size: .875rem;
}
.join-status strong {
  color: #fff0e5;
}
@media (max-width: 25rem) {
  .nav { gap: 0; }
  .nav .button { padding-inline: .45rem; }
}

.details-section {
  border-top: 1px solid var(--border);
  padding-top: clamp(1.25rem, 3vw, 2rem);
}
.partners {
  display: grid;
  gap: 1rem;
  margin-top: 1.1rem;
}
.partner-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
  padding: clamp(1rem, 3vw, 1.45rem);
  border: 1px solid var(--border);
  border-radius: .9rem;
  background: #142337e8;
  transition: background .2s, border-color .2s;
}
.partner-card:hover, .partner-card:focus-within {
  border-color: #7991b2;
  background: #1a3049;
}
.partner-card h3 { margin: 0; font-size: 1.12rem; }
.partner-card p, .rules-main p, .contact-heading p { color: var(--muted-foreground); }
.partner-card p { margin-top: .35rem; }
.partner-link {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: .45rem;
  min-height: 44px;
  margin-top: .65rem;
  color: #dbe6ff;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: .25em;
}
.partner-link svg, .rules-status svg { width: 1rem; height: 1rem; flex: none; }

.rules-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.15rem;
  padding: clamp(1rem, 4vw, 1.85rem);
  border: 1px solid #57708a;
  border-left: 3px solid #8db8dd;
  border-radius: .9rem;
  background: #172d43ed;
}
.rules-main, .contact-heading { display: flex; align-items: flex-start; gap: .8rem; }
.rules-main p { margin-top: .25rem; }
.rules-icon {
  display: grid;
  place-items: center;
  flex: 0 0 2.7rem;
  height: 2.7rem;
  border-radius: .65rem;
  background: #233f59;
  color: #b5d6f0;
}
.rules-icon svg { width: 1.25rem; height: 1.25rem; }
.rules-status {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .4rem .65rem;
  border: 1px solid #65839f;
  border-radius: .4rem;
  background: #172a3f;
  color: #d7ebff;
  font-size: .875rem;
  font-weight: 650;
}

.site-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .65rem;
  padding-block: 1.25rem;
}
.contact-panel {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1rem, 4vw, 1.85rem);
  border: 1px solid var(--border);
  border-radius: .9rem;
  background: #152539ed;
}
.contact-heading p { margin-top: .25rem; }
.contact-address { min-width: 0; }
.contact-address > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  color: #dbe6ff;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: .25em;
}
.contact-actions {
  display: grid;
  gap: .55rem;
  margin-top: .6rem;
}
.contact-copy {
  border: 1px solid #7589a4;
  background: #1b3049;
  color: var(--foreground);
  cursor: pointer;
}
.contact-copy[hidden] { display: none; }
.contact-copy:hover { background: #293f5b; }
.contact-feedback:not(:empty) { margin-top: .75rem; }
.contact-feedback { color: #c6e4ff; }
.contact-top { justify-self: end; }
@media (min-width: 30rem) {
  .contact-actions { display: flex; flex-wrap: wrap; }
}
@media (min-width: 38rem) {
  .partners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 52rem) {
  .contact-panel { grid-template-columns: 1fr 1fr; align-items: start; }
}
