:root {
  --background: #0b1717;
  --ink: #f6f0df;
  --muted: #b3c1b7;
  --gold: #e3bf77;
  --border: #d5be802b;
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
}
body { background: radial-gradient(ellipse at 0 65%, #21372b55, transparent 55%), var(--background); }
a { text-underline-offset: .23em; }
::selection { background: #bf994b; color: #091414; }
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 6.1rem;
  background: #0b1818f2;
  backdrop-filter: blur(18px);
  box-shadow: 0 6px 30px #00000020;
}
.brand { width: clamp(9rem, 17vw, 12rem); }
nav { align-items: center; gap: .7rem 1.6rem; font-size: .88rem; }
nav a { color: #d1d9cf; transition: color .2s; }
nav a[href="account.php"] { padding: .65rem .9rem; border: 1px solid #d5be8055; border-radius: 3px; }
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(47rem, 82vh);
  background: linear-gradient(90deg, #091719ed 0%, #0c1c1bd4 28%, #112a2540 70%, #091c1720),
    url("hero.png") center / cover, #1c3430;
  border-bottom: 1px solid var(--border);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 60% 0 0;
  background: linear-gradient(transparent, #0b1717);
  z-index: -1;
  pointer-events: none;
}
.hero-inner { padding-block: 5rem 6rem; }
.hero { overflow: hidden; }
.hero-inner { position: relative; z-index: 1; }
.lantern-scene { position: absolute; pointer-events: none; z-index: 0; }
.lantern-glow {
  position: absolute;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, #fff0b7b0 0%, #ffc05d70 13%, #ff9a3238 35%, #ff771600 72%);
  mix-blend-mode: screen;
  animation: lantern-flicker 3.5s ease-in-out infinite;
  opacity: .6;
}
@keyframes lantern-flicker {
  0%, 100% { opacity: .48; transform: translate(-50%, -50%) scale(.94); }
  18% { opacity: .7; transform: translate(-50%, -50%) scale(1.04); }
  37% { opacity: .52; transform: translate(-50%, -50%) scale(.97); }
  62% { opacity: .8; transform: translate(-50%, -50%) scale(1.08); }
  79% { opacity: .58; transform: translate(-50%, -50%) scale(1); }
}
.leaves-paused .lantern-glow { animation-play-state: paused; }
.launch-panel {
  width: min(100%, 34rem);
  margin: 0 0 1.8rem;
  padding: 1.15rem 1.35rem;
  border: 1px solid #d5be8055;
  border-radius: 5px;
  background: #0b1d1be6;
  box-shadow: 0 10px 30px #00000020;
}
.launch-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.launch-heading h2 { font: 400 1.45rem Georgia, serif; letter-spacing: 0; }
.launch-status { display: flex; align-items: center; gap: .5rem; margin: 0; font-size: .9rem; color: #e5b5a6; }
.launch-status > span { width: .5rem; height: .5rem; border-radius: 50%; background: #d88b72; }
.launch-status[data-launch-status="online"] { color: #b5d9a7; }
.launch-status[data-launch-status="online"] > span { background: #8fc879; box-shadow: 0 0 10px #8fc87950; }
.launch-date { color: var(--gold); margin: .8rem 0 0; line-height: 1.65; font-size: .95rem; }
.launch-date > span { color: var(--muted); font-size: .82rem; }
.launch-caption { font-size: .75rem; color: var(--muted); margin: 1rem 0 .6rem; }
.launch-countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; }
.launch-countdown[hidden] { display: none; }
.launch-countdown > div { border-left: 1px solid var(--border); padding-left: .8rem; }
.launch-countdown > div:first-child { border-left: 0; padding-left: 0; }
.launch-countdown strong { display: block; font: 400 2.1rem Georgia, serif; font-variant-numeric: tabular-nums; color: var(--ink); }
.launch-countdown span { display: block; margin-top: .25rem; color: var(--muted); font-size: .68rem; }
.top:has(> .launch-panel) { display: grid; grid-template-columns: auto minmax(15rem, 18rem) minmax(0, 1fr); gap: 1.2rem; }
.top:has(> .launch-panel) > nav { justify-self: end; justify-content: flex-end; gap: .65rem 1rem; font-size: .82rem; }
.top > .launch-panel { width: 100%; margin: 0; padding: .6rem .8rem; box-shadow: none; }
.top .launch-heading { gap: .5rem; }
.top .launch-heading h2 { font-size: 1rem; }
.top .launch-status { font-size: .7rem; gap: .35rem; }
.top .launch-date { margin-top: .3rem; font-size: .73rem; line-height: 1.5; }
.top .launch-date > span { font-size: .65rem; }
.top .launch-caption { display: none; }
.top .launch-countdown { margin-top: .4rem; gap: .3rem; }
.top .launch-countdown > div { padding-left: .45rem; }
.top .launch-countdown > div:first-child { padding-left: 0; }
.top .launch-countdown strong { font-size: 1.25rem; }
.top .launch-countdown span { margin-top: .1rem; font-size: .57rem; }
@media (max-width: 1100px) {
  .top:has(> .launch-panel) { grid-template-columns: auto minmax(0, 18rem); justify-content: space-between; }
  .top:has(> .launch-panel) > nav { grid-column: 1 / -1; justify-self: stretch; justify-content: flex-start; }
}
@media (max-width: 780px) {
  .top:has(> .launch-panel) { grid-template-columns: minmax(5rem, .8fr) minmax(0, 1.6fr); gap: .8rem; }
  .top:has(> .launch-panel) > .brand { width: 100%; max-width: 9rem; }
  .top:has(> .launch-panel) > nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top > .launch-panel { padding: .55rem .6rem; }
  .top .launch-heading h2 { font-size: .9rem; }
  .top .launch-status { font-size: .65rem; }
  .top .launch-date { font-size: .68rem; }
  .top .launch-countdown strong { font-size: 1.1rem; }
}
@media (max-width: 420px) {
  .launch-panel { padding: 1rem; }
  .launch-heading { align-items: flex-start; gap: .6rem; }
  .launch-heading h2 { font-size: 1.2rem; }
  .launch-status { font-size: .8rem; }
  .launch-countdown strong { font-size: 1.8rem; }
  .launch-countdown > div { padding-left: .5rem; }
}
.eyebrow { font-size: .74rem; letter-spacing: .3em; margin: 0 0 1.5rem; }
h1, h2 { font-weight: 400; text-wrap: balance; letter-spacing: -.035em; }
h1 { font-size: clamp(3rem, 6.7vw, 6rem); }
h2 { font-size: clamp(2.1rem, 4vw, 3.35rem); }
.hero h1 { max-width: 53rem; text-shadow: 0 3px 30px #071a18a0; }
.intro { max-width: 32rem; line-height: 1.8; font-size: 1.07rem; color: #c8d3c5; margin: 1.8rem 0 2.2rem; }
.button {
  min-height: 3.1rem;
  border: 1px solid #f2d79b80;
  border-radius: 3px;
  padding: .9rem 1.4rem;
  background: linear-gradient(115deg, #efcf8c, #caa059);
  color: #182018;
  font-weight: 650;
  text-align: center;
  box-shadow: 0 5px 22px #d5af5c15, inset 0 1px #ffffff50;
  transition: transform .2s, box-shadow .2s, filter .2s;
}
.button:hover { transform: translateY(-2px); background: linear-gradient(115deg, #f9dca4, #ddb66e); box-shadow: 0 9px 28px #d5af5c28; }
.button:active { transform: translateY(0); }
.button:disabled { cursor: wait; opacity: .65; }
.start { padding-block: 5rem; }
.start > p { max-width: 52rem; color: var(--muted); line-height: 1.8; }
.start > h2 { margin-bottom: 1.5rem; }
#about { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
#about > h2, #about > p { grid-column: 1 / -1; }
#about > p { margin: 0 0 1rem; }
.server-feature {
  padding: clamp(1.3rem, 3vw, 2.2rem);
  background: linear-gradient(140deg, #1c3430a8, #10232190);
  border: 1px solid var(--border);
  border-radius: 5px;
  transition: border-color .25s, background-color .25s;
}
.server-feature:hover { border-color: #d5be8066; background-color: #203a3025; }
.server-feature h3 { margin: 0 0 .85rem; color: #f0d8a5; font-family: Georgia, serif; font-size: 1.45rem; font-weight: 400; }
.server-feature p { color: var(--muted); line-height: 1.8; margin: 0; }
.server-feature.events { grid-column: 1 / -1; }
.server-feature.events ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; padding: 0; gap: 0 2rem; margin: 1.2rem 0; }
.server-feature.events li { padding: 1rem 0; color: var(--muted); line-height: 1.65; border-bottom: 1px solid var(--border); }
.server-feature.events strong { color: var(--ink); font-weight: 600; }
#start { border-top: 1px solid var(--border); }
.start ol { gap: 2rem; margin-top: 2.5rem; }
.start ol li { padding: 1.2rem .8rem .5rem; border-top-color: #d5be8060; }
.start li p { line-height: 1.75; }
footer { padding-block: 1.8rem; letter-spacing: .12em; }
.registration {
  min-height: calc(100vh - 11rem);
  padding: clamp(2rem, 6vw, 5rem) 5vw;
  background: linear-gradient(#0b1819c9, #0b1717f2), url("hero.png") center top / cover fixed;
}
.form-card {
  max-width: 36rem;
  padding: clamp(1.4rem, 5vw, 3rem);
  background: linear-gradient(145deg, #1a302ded, #0f211ff5);
  border: 1px solid #d5be8045;
  border-radius: 6px;
  box-shadow: 0 24px 80px #00000045, inset 0 1px #f3d59812;
}
.form-card h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.form-card p { line-height: 1.75; }
.form-card > .button { margin: .4rem .3rem .4rem 0; }
.form-card figure { margin: 1rem 0; min-width: 0; }
.form-card figure img { display: block; max-width: 100%; height: auto; border-radius: 4px; }
.form-card figcaption { margin-top: .65rem; color: var(--gold); font-size: .85rem; }
form { gap: .75rem; }
label { font-size: .9rem; font-weight: 600; }
input { min-height: 2.9rem; padding: .75rem .9rem; background: #071716b0; border-color: #a3b7a94d; border-radius: 3px; transition: border-color .2s, box-shadow .2s; }
input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px #dfbc6a12; }
:focus-visible { outline: 2px solid #ffdb99; outline-offset: 4px; }
.account-details { margin-block: 1.8rem; padding-block: 1.3rem; border-block: 1px solid var(--border); }
.account-characters { margin-block: 1.8rem; }
.account-characters li { border-top: 0; border-bottom: 1px solid var(--border); padding-block: .8rem; }
.download-meta, .download-notice { line-height: 1.7; }
.leaf-layer { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 8; }
.falling-leaf {
  position: absolute;
  left: var(--leaf-x);
  top: -3rem;
  opacity: 0;
  width: var(--leaf-size);
  height: calc(var(--leaf-size) * 1.7);
  animation: leaf-fall var(--leaf-duration) var(--leaf-delay) linear infinite;
}
.falling-leaf::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0 75% 12% 75%;
  background: linear-gradient(105deg, transparent 47%, #f5dc9f90 49% 51%, transparent 53%),
    linear-gradient(135deg, #d6ac53, var(--leaf-color));
  box-shadow: inset -2px -1px 3px #3b381f50;
  animation: leaf-turn 5s ease-in-out infinite alternate;
}
@keyframes leaf-fall {
  0% { transform: translate3d(0, -3rem, 0) rotate(-25deg); opacity: 0; }
  12% { opacity: .55; }
  85% { opacity: .45; }
  100% { transform: translate3d(var(--leaf-drift), calc(100vh + 6rem), 0) rotate(240deg); opacity: 0; }
}
@keyframes leaf-turn {
  from { transform: rotateY(0) rotateZ(-22deg); }
  to { transform: rotateY(125deg) rotateZ(28deg); }
}
.leaves-paused .falling-leaf, .leaves-paused .falling-leaf::before { animation-play-state: paused; }
.leaves-hidden .leaf-layer { visibility: hidden; }
.leaf-toggle {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 25;
  border: 1px solid #d5be8050;
  border-radius: 3px;
  padding: .6rem .8rem;
  background: #0d201df2;
  color: #d9cba9;
  font: inherit;
  font-size: .76rem;
  cursor: pointer;
}
@media (max-width: 780px) {
  .top { position: relative; flex-wrap: wrap; gap: 1rem; padding-block: .85rem; }
  nav { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem .5rem; font-size: .87rem; }
  nav a { display: flex; min-height: 44px; align-items: center; padding: .6rem .5rem; }
  nav a[href="account.php"] { min-height: 44px; padding: .6rem .5rem; }
  .hero { min-height: 36rem; background-image: linear-gradient(90deg, #091719d9, #0c1c1b9c 65%, #112a2573), url("hero.png"); background-position: center, 62% center; }
  .hero-inner { padding-block: 4rem 5rem; }
  #about { grid-template-columns: 1fr; }
  .server-feature.events ul { grid-template-columns: 1fr; }
  .start { padding-block: 3rem; }
  .start ol { grid-template-columns: 1fr; gap: .8rem; }
  .registration { background-attachment: scroll; }
  .form-card { min-width: 0; }
  input { font-size: 16px; min-width: 0; }
  .form-card .button { display: flex; width: 100%; margin-inline: 0; min-height: 48px; }
  .download-hero .button { max-width: 100%; overflow-wrap: anywhere; }
  .leaf-toggle { position: static; display: block; margin: .8rem 5vw 1.2rem; min-height: 44px; font-size: .85rem; }
  footer { flex-wrap: wrap; gap: .65rem; }
}
@media (max-width: 420px) {
  .account-details { grid-template-columns: 1fr; gap: .4rem; }
  .account-details dd { margin-bottom: .7rem; }
  footer { padding-bottom: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .leaf-layer, .leaf-toggle { display: none; }
}
