* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  color: #f3ead6;
  font-family: "Cormorant Garamond", Georgia, serif;
}
body {
  min-height: 100vh;
  overflow: auto;
  background: #120e0a url("/farm-wallpaper.png") center / cover no-repeat fixed;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(12, 9, 6, .28), transparent 62%),
    radial-gradient(ellipse at center, transparent 36%, rgba(8, 6, 4, .62) 100%);
}
.stage {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 36px 20px 120px;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
}
.stage--home {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--farm-discord-banner-h, 0px));
  padding-top: 0;
  padding-bottom: 72px;
}
.home-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 24px 0;
}
.stage--home .gate {
  flex-shrink: 0;
  margin-top: 0;
}
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 22px;
  color: #d4a84b;
  letter-spacing: .4em;
  font-size: 11px;
  font-family: Cinzel, serif;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0,0,0,.7);
}
.ornament span {
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d4a84b, transparent);
}
h1 {
  margin: 0;
  font-family: Cinzel, serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 7vw, 4.8rem);
  letter-spacing: .14em;
  line-height: 1.05;
  color: #f4e2b0;
  text-shadow:
    0 0 24px rgba(212, 168, 75, .28),
    0 3px 0 rgba(40, 24, 8, .7),
    0 14px 32px rgba(0,0,0,.75);
}
.credit {
  margin: 18px 0 0;
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  font-style: italic;
  color: #d8c9a6;
  letter-spacing: .04em;
  text-shadow: 0 2px 12px rgba(0,0,0,.85);
}
.credit strong {
  font-style: normal;
  font-weight: 600;
  color: #f0c36a;
}
.blank {
  min-width: 228px;
  height: 50px;
  padding: 0 28px;
  border: 1px solid #d4a84b;
  background: rgba(18, 14, 10, .45);
  color: #f0c36a;
  cursor: pointer;
  border-radius: 2px;
  font-family: Cinzel, serif;
  font-size: 13px;
  letter-spacing: .28em;
  text-transform: uppercase;
  box-shadow:
    0 0 0 1px rgba(212, 168, 75, .15) inset,
    0 10px 28px rgba(0,0,0,.45);
  backdrop-filter: blur(4px);
  transition: background .2s ease, box-shadow .2s ease, transform .15s ease;
}
.blank:hover,
.blank:focus-visible {
  background: rgba(212, 168, 75, .18);
  box-shadow:
    0 0 0 1px rgba(240, 195, 106, .4) inset,
    0 0 22px rgba(212, 168, 75, .25);
  outline: none;
}
.blank:active { transform: translateY(1px); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 46px;
}
.hero-actions .blank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.perks-link {
  display: inline-block;
  margin-top: 18px;
  color: #f0c36a;
  text-decoration: none;
  font-family: Cinzel, serif;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0,0,0,.7);
}
.perks-link:hover { color: #f4e2b0; }
.gate {
  display: none;
  margin: 36px auto 0;
  max-width: 420px;
  max-height: calc(100vh - 72px);
  overflow: auto;
  text-align: left;
  padding: 22px 22px 18px;
  border: 1px solid rgba(212, 168, 75, .45);
  background: rgba(18, 14, 10, .72);
  border-radius: 4px;
  box-shadow: 0 16px 40px rgba(0,0,0,.55);
  backdrop-filter: blur(8px);
}
.tabs { display: flex; gap: 8px; margin-bottom: 10px; }
.tabs button {
  flex: 1;
  height: 38px;
  border: 1px solid rgba(212, 168, 75, .4);
  background: transparent;
  color: #d8c9a6;
  font-family: Cinzel, serif;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
}
.tabs button.on { background: rgba(212, 168, 75, .22); color: #f4e2b0; }
label { display: block; margin: 10px 0 4px; font-size: 13px; color: #cbb994; }
#loginCaptchaLabel,
#captchaLabel {
  margin-top: 16px;
  padding: 10px 12px;
  border: 1px solid rgba(240, 195, 106, .65);
  background: rgba(0, 0, 0, .72);
  color: #fff2c7;
  font-family: Cinzel, serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.4;
  text-align: center;
  text-shadow: 0 2px 4px #000;
}
input {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid rgba(212, 168, 75, .35);
  background: rgba(8, 6, 4, .55);
  color: #f3ead6;
  font: 16px/1.4 "Cormorant Garamond", Georgia, serif;
}
#loginCaptcha,
#regCaptcha {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
}
.hint { margin: 0 0 8px; color: #b9a882; font-size: 14px; }
.err { color: #ffb4b4; font-size: 14px; min-height: 1.2em; margin: 8px 0 0; }
.ok { color: #9dcc9a; }
.go {
  margin-top: 14px;
  width: 100%;
  height: 44px;
  border: 1px solid #d4a84b;
  background: rgba(212, 168, 75, .2);
  color: #f4e2b0;
  font-family: Cinzel, serif;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
}
.go:hover { background: rgba(212, 168, 75, .32); }
#paypal-buttons { margin-top: 14px; min-height: 48px; }
#paypal-buttons iframe { min-height: 45px; }
.policy-box {
  margin: 14px 0 10px;
  padding: 10px 12px;
  max-height: 140px;
  overflow: auto;
  text-align: left;
  border: 1px solid rgba(212, 168, 75, .35);
  background: rgba(8, 6, 4, .5);
  color: #d8c9a6;
  font-size: 14px;
  line-height: 1.45;
}
.policy-box b { display: block; color: #f0c36a; font-family: Cinzel, serif; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.policy-box a { color: #f0c36a; }
.policy-accept {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 8px;
  color: #e8dcc0;
  font-size: 14px;
  text-align: left;
}
.policy-accept input { width: auto; margin-top: 3px; }
.staff {
  position: fixed;
  z-index: 2;
  right: 16px;
  bottom: 14px;
  color: rgba(216, 201, 166, .55);
  text-decoration: none;
  font-family: Cinzel, serif;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.staff:hover { color: #f0c36a; }
.project-credit {
  position: fixed;
  z-index: 2;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  margin: 0;
  color: rgba(216, 201, 166, .72);
  font-size: 13px;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 2px 5px #000;
}
.project-credit a {
  color: #f0c36a;
  text-decoration: none;
}
.project-credit a:hover,
.project-credit a:focus-visible {
  text-decoration: underline;
}
.lede {
  max-width: 46rem;
  margin: 10px auto 0;
  color: #d8c9a6;
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  line-height: 1.55;
  text-shadow: 0 2px 12px rgba(0,0,0,.85);
}
.clock-note {
  margin: 8px 0 0;
  font-family: Cinzel, serif;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(240, 195, 106, .75);
}
.back-home {
  margin-top: 28px;
}
.board {
  margin: 42px auto 0;
  text-align: left;
  display: grid;
  gap: 16px;
}
.evt {
  position: relative;
  overflow: hidden;
  padding: 22px 22px 20px;
  border: 1px solid rgba(212, 168, 75, .38);
  background: rgba(14, 11, 8, .78);
  border-radius: 4px;
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
  backdrop-filter: blur(10px);
}
.evt-dragon {
  border-color: rgba(196, 54, 36, .55);
  background:
    radial-gradient(ellipse 80% 70% at 88% 0%, rgba(180, 36, 18, .28), transparent 56%),
    rgba(16, 10, 8, .82);
  box-shadow:
    0 0 0 1px rgba(196, 54, 36, .18) inset,
    0 18px 48px rgba(0,0,0,.55);
}
.evt-live {
  border-color: rgba(240, 195, 106, .7);
}
.evt-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 18px;
  margin-bottom: 10px;
}
.evt h2 {
  margin: 0;
  font-family: Cinzel, serif;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  letter-spacing: .08em;
  color: #f4e2b0;
}
.badge {
  font-family: Cinzel, serif;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #f0c36a;
  border: 1px solid rgba(212, 168, 75, .45);
  padding: 4px 8px;
}
.evt[data-status="live"] .badge {
  color: #ffd8c4;
  border-color: rgba(220, 72, 48, .7);
  background: rgba(160, 32, 20, .35);
}
.evt[data-status="soon"] .badge {
  color: #fff2c7;
  background: rgba(212, 168, 75, .16);
}
.timer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin: 0 0 12px;
}
.timer strong {
  font-family: Cinzel, serif;
  font-size: clamp(1.6rem, 3.4vw, 2.15rem);
  letter-spacing: .08em;
  color: #f4e2b0;
  text-shadow: 0 0 20px rgba(212, 168, 75, .28);
}
.timer span {
  font-family: Cinzel, serif;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #cbb994;
}
.story {
  margin: 0;
  color: #e4d6b6;
  font-size: 17px;
  line-height: 1.55;
}
.story em { color: #f0c36a; font-style: italic; }
.where {
  margin: 10px 0 0;
  color: #b9a882;
  font-size: 15px;
}
.rifts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.evt-sea {
  border-color: rgba(64, 120, 180, .5);
  background:
    radial-gradient(ellipse 70% 60% at 90% 0%, rgba(30, 70, 130, .28), transparent 55%),
    rgba(10, 14, 18, .82);
}
.evt-void {
  border-color: rgba(120, 70, 170, .5);
  background:
    radial-gradient(ellipse 70% 60% at 10% 0%, rgba(80, 30, 110, .28), transparent 55%),
    rgba(14, 10, 16, .82);
}
.evt-green {
  border-color: rgba(120, 160, 90, .45);
  background:
    radial-gradient(ellipse 70% 60% at 10% 0%, rgba(70, 110, 50, .22), transparent 55%),
    rgba(14, 12, 8, .8);
}
.section-label {
  margin: 18px 0 0;
  font-family: Cinzel, serif;
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: #d4a84b;
  text-align: center;
}
@media (max-width: 720px) {
  .rifts { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .project-credit {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    padding: 0 70px 14px 16px;
    white-space: normal;
  }
}
