/* =========================================================
   ElsElysion – website styles (News, Account, Download,
   Donate, Support). Layout modelled on the Elsrift site:
   logo + slanted tabs on top of an animated sky, one dark
   content panel, footer with three link columns.
   ========================================================= */

:root {
  --ee-bg: #070b16;
  --ee-panel: rgba(12, 18, 34, .94);
  --ee-panel-border: #9fb3d6;
  --ee-line: #222d45;
  --ee-text: #e6ecf5;
  --ee-muted: #a9b6c9;
  --ee-label: #c3cede;
  --ee-cyan: #4fd2e6;          /* main accent (from the logo) */
  --ee-cyan-light: #7fe3f0;
  --ee-cyan-hover: #8be6f2;
  --ee-link: #5fd8ea;
  --ee-gold: #e8cf86;          /* logo frame */
  --ee-teal: #5fe0c0;          /* notices / success */
  --ee-warn: #f2c46b;
  --ee-tab: #0c1222;
  --ee-tab-active: #15203a;
  --ee-input: #0a1122;
  --ee-input-border: #33456a;
  --ee-card: #141c31;
  --ee-footer: #0a0f1d;
  --font-display: "Exo 2", system-ui, sans-serif;
  --font-body: Inter, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ee-bg);
  color: var(--ee-text);
  font-family: var(--font-body);
}

a { color: var(--ee-link); }
a:hover { color: #b3f1f9; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Stage: everything that sits on the sky ---------- */
.ee-stage {
  position: relative;
  flex: 1 0 auto;
  overflow: hidden;
  isolation: isolate;
  padding-bottom: 88px;
}
.ee-stage--short { min-height: 780px; }

/* ---------- Header: logo + slanted tabs ---------- */
.ee-header {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 24px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 20px 28px;
}
.ee-logo-link { flex: 0 0 auto; display: block; }
.ee-logo {
  display: block;
  width: 150px;
  height: 150px;
  border-radius: 22px;
  border: 2px solid var(--ee-gold);
  box-shadow: 0 0 0 4px rgba(79, 210, 230, .28), 0 10px 30px rgba(16, 32, 80, .45);
}
.ee-nav {
  flex: 1 1 520px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding-bottom: 8px;
}
.ee-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  height: 52px;
  padding: 0 26px;
  background: var(--ee-tab);
  color: #fff;
  font: 700 15px/1 var(--font-display);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  clip-path: polygon(16px 0, 100% 0, calc(100% - 16px) 100%, 0 100%);
  box-shadow: inset -8px 0 0 #1c2a48;
  transition: background .2s, color .2s;
}
.ee-tab:hover { background: var(--ee-tab-active); color: var(--ee-cyan-light); }
.ee-tab.is-active {
  background: var(--ee-tab-active);
  color: var(--ee-cyan-light);
  box-shadow: inset -8px 0 0 #1c2a48, inset 0 -3px 0 var(--ee-cyan);
}
.ee-tab:focus-visible {
  outline: none;
  background: #1d2b4d;
  color: #fff;
  box-shadow: inset 0 0 0 2px var(--ee-cyan-light);
}

/* ---------- Content panel ---------- */
.ee-main { max-width: 1040px; margin: 28px auto 0; padding: 0 16px; width: 100%; }
.ee-panel {
  background: var(--ee-panel);
  border: 2px solid var(--ee-panel-border);
  box-shadow: 0 24px 60px rgba(18, 28, 70, .35);
  padding: 36px 40px 48px;
}

/* Section title with the slanted underline end */
.ee-title {
  position: relative;
  width: min(520px, 82%);
  margin: 0 auto;
  padding-bottom: 6px;
  border-bottom: 3px solid var(--ee-cyan);
  text-align: center;
}
.ee-title::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -3px;
  width: 3px;
  height: 38px;
  background: var(--ee-cyan);
  transform: skewX(-20deg);
  transform-origin: bottom left;
}
.ee-title h1,
.ee-title h2 {
  margin: 0;
  font: 800 28px/1.2 var(--font-display);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
}
.ee-title--spaced { margin-top: 72px; }

.ee-lead { margin: 40px 0 24px; text-align: center; font-size: 16px; line-height: 1.6; color: #fff; }

/* ---------- Buttons ---------- */
.ee-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 220px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid #d7e1f0;
  background: transparent;
  color: #fff;
  font: 600 13px/1 var(--font-body);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.ee-btn:hover { background: var(--ee-cyan); border-color: var(--ee-cyan); color: #06131f; }
.ee-btn:focus-visible { outline: 2px solid var(--ee-cyan-light); outline-offset: 3px; }
.ee-btn--solid { background: var(--ee-cyan); border-color: var(--ee-cyan); color: #06131f; font-weight: 700; }
.ee-btn--solid:hover { background: var(--ee-cyan-hover); border-color: var(--ee-cyan-hover); }
.ee-btn--wide { max-width: none; }
.ee-btn--download { width: 200px; min-height: 48px; }

.ee-linkbtn {
  background: none;
  border: 0;
  padding: 10px 4px;
  color: var(--ee-link);
  font: 500 14px var(--font-body);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ee-linkbtn:hover { color: #b3f1f9; }
.ee-linkbtn:focus-visible { outline: 2px solid var(--ee-cyan-light); outline-offset: 2px; }

/* ---------- Forms ---------- */
.ee-field { display: flex; flex-direction: column; gap: 6px; width: 100%; text-align: left; }
.ee-field label { font-size: 13px; color: var(--ee-label); letter-spacing: .04em; }
.ee-field--center { text-align: center; gap: 8px; }
.ee-field--center label { font-size: 15px; color: var(--ee-text); }
.ee-input,
.ee-textarea {
  width: 100%;
  border: 1px solid var(--ee-input-border);
  border-radius: 2px;
  background: var(--ee-input);
  color: #fff;
  font: 400 15px/1.5 var(--font-body);
}
.ee-input { height: 44px; padding: 0 14px; }
.ee-textarea { min-height: 170px; padding: 12px 14px; resize: vertical; }
.ee-input::placeholder, .ee-textarea::placeholder { color: #7d8aa3; }
.ee-input:focus, .ee-textarea:focus { outline: 2px solid var(--ee-cyan); outline-offset: 1px; border-color: var(--ee-cyan); }
.ee-check { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; color: var(--ee-label); cursor: pointer; }
.ee-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--ee-cyan); }

.ee-status { margin: 0; font-size: 14px; color: var(--ee-teal); }
.ee-status--warn { color: var(--ee-warn); }

/* Boxed area used by Account + Support forms */
.ee-box {
  max-width: 500px;
  margin: 56px auto 8px;
  border: 1px solid #3a4a6a;
  padding: 40px 40px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.ee-box--center { padding: 44px 32px; gap: 14px; text-align: center; }
.ee-box__title { margin: 0 0 4px; font: 700 18px/1.2 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.ee-box__links { width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }
.ee-box__links a { padding: 10px 4px; font-size: 14px; }
.ee-greeting { margin: 0 0 22px; font-size: 17px; color: #fff; }
.ee-accent { color: var(--ee-link); }
.ee-small { margin: 0; font-size: 14px; color: var(--ee-muted); }

/* ---------- News page ---------- */
.ee-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 30px 0 34px;
  border-bottom: 1px solid var(--ee-line);
}
.ee-bubble {
  position: relative;
  margin: 0;
  max-width: 210px;
  padding: 10px 16px;
  border-radius: 4px;
  background: #fff;
  color: #0d1324;
  font: 500 14px/1.35 var(--font-body);
  box-shadow: 0 3px 0 #c9d6ea;
}
.ee-bubble::after {
  content: "";
  position: absolute;
  left: 52px;
  bottom: -13px;
  border-left: 10px solid transparent;
  border-right: 3px solid transparent;
  border-top: 14px solid #fff;
}
/* The "mascot" is a round crop of the logo */
.ee-mascot {
  width: 92px;
  height: 92px;
  padding: 0;
  border-radius: 50%;
  border: 3px solid var(--ee-gold);
  background: #a9bde8 url("../img/logo.jpg") 50% 26% / 215% no-repeat;
  cursor: pointer;
  box-shadow: 0 0 0 5px rgba(79, 210, 230, .25), 0 8px 22px rgba(0, 0, 0, .45);
  animation: ee-bob 3.2s ease-in-out infinite;
}
.ee-mascot:hover { border-color: #fff; }
.ee-mascot:focus-visible { outline: 3px solid var(--ee-cyan-light); outline-offset: 4px; }
@keyframes ee-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.ee-server-info {
  width: 100%;
  max-width: 660px;
  margin-top: 10px;
  border: 1px solid #2c3b5c;
  background: #0f1830;
  padding: 22px 26px;
}
.ee-server-info__title {
  margin: 0 0 16px;
  text-align: center;
  font: 700 15px/1.2 var(--font-display);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ee-cyan);
}
.ee-info-grid { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 36px; font-size: 14px; }
.ee-info-grid > div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid #1f2a44; }
.ee-info-grid dt { color: var(--ee-muted); }
.ee-info-grid dd { margin: 0; color: #fff; font-weight: 600; }
.ee-server-info__more { margin: 18px 0 0; text-align: center; font-size: 14px; }

.ee-news {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px 40px;
  padding: 34px 0;
  border-bottom: 1px solid var(--ee-line);
}
.ee-news:last-child { border-bottom: 0; padding-bottom: 20px; }
.ee-thumb {
  position: relative;
  flex: 0 0 280px;
  height: 160px;
  border: 2px solid #3a4a6a;
  background-color: #a9bde8;
  background-repeat: no-repeat;
}
.ee-thumb span {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 4px 0 6px;
  background: rgba(8, 14, 30, .55);
  text-align: center;
  font: 800 34px/1.1 var(--font-display);
  color: #fff;
  text-shadow: 0 2px 0 #0a1530, 0 0 12px rgba(10, 21, 48, .8);
}
/* Placeholder banners cut from the background/logo – replace with real news images */
.ee-thumb--a { background-image: url("../img/background.jpg"); background-size: 175%; background-position: 45% 38%; }
.ee-thumb--b { background-image: url("../img/logo.jpg"); background-size: 120%; background-position: 50% 28%; }
.ee-thumb--c { background-image: url("../img/background.jpg"); background-size: 240%; background-position: 78% 12%; }
.ee-news__body { flex: 1 1 320px; min-width: 0; padding-top: 14px; }
.ee-news__title {
  margin: 0 0 16px;
  font: 700 17px/1.4 var(--font-display);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ee-cyan);
}
.ee-news__text { margin: 0; line-height: 1.65; font-size: 15px; }

/* ---------- Download page ---------- */
.ee-downloads { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px 80px; margin: 64px 0 72px; }
.ee-center-text { margin: 0; text-align: center; font-size: 16px; line-height: 1.6; color: #fff; }

/* ---------- Donate page ---------- */
.ee-notice { max-width: 520px; margin: 52px auto 36px; text-align: center; color: var(--ee-teal); font-size: 16px; line-height: 1.55; }
.ee-notice p { margin: 0; }
.ee-notice__head { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; margin-bottom: 4px !important; }
.ee-accordion { max-width: 520px; margin: 0 auto; }
.ee-acc { background: var(--ee-card); border: 1px solid #222e4a; margin: 0 0 6px; }
.ee-acc summary { cursor: pointer; padding: 12px 16px; min-height: 44px; font-size: 16px; color: #fff; }
.ee-acc summary:hover { background: #1a2440; }
.ee-acc summary:focus-visible { outline: 2px solid var(--ee-cyan-light); outline-offset: -2px; }
.ee-acc__body { padding: 6px 18px 16px; font-size: 14px; line-height: 1.6; color: var(--ee-label); }
.ee-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ee-table th { text-align: left; padding: 8px 0; border-bottom: 1px solid #2c3b5c; color: #fff; font-weight: 600; }
.ee-table td { padding: 8px 0; border-bottom: 1px solid #1f2a44; }
.ee-table tr:last-child td { border-bottom: 0; }
.ee-table .num { text-align: right; }
.ee-divider { max-width: 440px; margin: 40px auto 36px; border: 0; border-top: 1px solid #26324d; }
.ee-balance { margin: 0 0 18px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 17px; color: #fff; }
.ee-balance strong { color: var(--ee-link); font-weight: 600; }
.ee-iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin: -10px -8px -10px -6px; padding: 0;
  border: 0; border-radius: 50%; background: none; color: var(--ee-muted); cursor: pointer;
}
.ee-iconbtn:hover { color: #fff; background: #1a2440; }
.ee-iconbtn:focus-visible { outline: 2px solid var(--ee-cyan-light); }
.ee-redeem {
  max-width: 360px;
  margin: 0 auto;
  padding: 24px 24px 26px;
  background: #111a30;
  border: 1px solid #2c3b5c;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center;
}
.ee-redeem h2 { margin: 0; font: 700 15px/1.2 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.ee-redeem label { font-size: 13px; color: var(--ee-muted); }
.ee-redeem .ee-btn { max-width: 160px; }

/* ---------- Support page ---------- */
.ee-tickets { max-width: 520px; margin: 0 auto; }
.ee-tickets__empty { margin: 0; padding: 8px 16px 14px; font-size: 15px; color: var(--ee-link); }
.ee-tickets__list { list-style: none; margin: 0; padding: 0 0 6px; }
.ee-tickets__list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 10px 16px; border-top: 1px solid #222e4a; font-size: 14px; }
.ee-tickets__id { color: var(--ee-link); font-weight: 700; }
.ee-tickets__meta { color: var(--ee-muted); }
.ee-tickets__state { color: var(--ee-teal); font-weight: 600; }
.ee-box--ticket { margin-top: 0; padding: 30px 32px 34px; gap: 24px; }

/* ---------- Login + Create Account pages ---------- */
.ee-box--auth { max-width: 510px; margin: 0 auto; padding: 22px 64px 36px; }
.ee-box--auth-top { margin-top: 64px; }
.ee-box--auth .ee-field { align-items: center; }
.ee-field__label { font-size: 15px; color: var(--ee-text); letter-spacing: .03em; }
.ee-label-row { display: inline-flex; align-items: center; gap: 6px; }
.ee-help {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin: -14px -12px -14px -10px; padding: 0;
  border: 0; background: none; cursor: pointer;
}
.ee-help span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border: 1px solid var(--ee-link); border-radius: 50%;
  color: var(--ee-link); font: 700 11px/1 var(--font-body);
}
.ee-help:hover span, .ee-help[aria-expanded="true"] span { background: var(--ee-link); color: #06131f; }
.ee-help:focus-visible { outline: 2px solid var(--ee-cyan-light); outline-offset: -6px; border-radius: 50%; }
.ee-hint { margin: -4px 0 2px; max-width: 360px; text-align: center; font-size: 13px; line-height: 1.5; color: var(--ee-muted); }
.ee-btn--auto { width: auto; min-width: 120px; margin-top: 4px; }

/* Captcha placeholder – replace with the real widget (see comment in the HTML) */
.ee-captcha {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 250px; height: 62px; padding: 0 12px 0 14px;
  background: #f6f7f9; border: 1px solid #d5d9e0; border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}
.ee-field .ee-captcha label { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 13px; color: #1f2633; letter-spacing: 0; }
.ee-captcha input { width: 24px; height: 24px; margin: 0; accent-color: #1d6fd6; }
.ee-captcha__tag { font: 600 10px/1.3 var(--font-body); color: #5b6578; text-align: right; }
.ee-captcha__tag span { font-weight: 400; }

/* ---------- Footer ---------- */
.ee-footer { background: var(--ee-footer); border-top: 2px solid #33456a; padding: 36px 24px 28px; }
.ee-footer__inner { max-width: 1000px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 32px 72px; }
.ee-footer__logo { display: block; width: 110px; height: 110px; border-radius: 18px; border: 2px solid var(--ee-gold); box-shadow: 0 0 0 3px rgba(79, 210, 230, .22); }
.ee-footer__nav { flex: 0 1 560px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 48px; text-align: center; }
.ee-footer__heading { margin: 0 0 10px; font: 700 13px/1 var(--font-display); letter-spacing: .24em; text-transform: uppercase; color: #6fd9ea; }
.ee-footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ee-footer__list a { color: #b9c5d8; text-decoration: none; font-size: 14px; letter-spacing: .04em; }
.ee-footer__list a:hover { color: #fff; }
.ee-footer__legal { max-width: 1000px; margin: 28px auto 0; text-align: center; font-size: 12px; line-height: 1.6; color: #8391a8; }

/* ---------- Phone ---------- */
@media (max-width: 700px) {
  .ee-logo { width: 96px; height: 96px; }
  .ee-nav { justify-content: flex-start; }
  .ee-tab { min-width: 0; flex: 1 1 40%; height: 46px; font-size: 13px; }
  .ee-panel { padding: 28px 18px 18px; }
  .ee-title h1, .ee-title h2 { font-size: 22px; }
  .ee-box, .ee-box--center, .ee-box--ticket, .ee-box--auth { padding: 28px 18px; }
  .ee-info-grid { grid-template-columns: minmax(0, 1fr); }
  .ee-thumb { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .ee-mascot { animation: none; }
}

[hidden]{display:none!important}.ee-real-captcha{width:100%;min-height:70px;max-width:360px;margin:6px auto}.ee-box--auth{max-width:570px}.ee-auth-status{max-width:640px;margin:0 auto 20px;text-align:center;line-height:1.6;color:#bce9ef}.ee-auth-links{display:flex;flex-wrap:wrap;gap:18px;justify-content:center;margin:24px 0}.ee-box--auth .ee-check{text-align:left;font-size:13px}.ee-auth-success{text-align:center}@media(prefers-reduced-motion:reduce){.ee-sky__img,.ee-cloud{animation:none!important}}
