/* Home page */
body.page-home::before { background: var(--bg); }

/* ── Hero ── */
.home-hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: calc(var(--header-h) + 24px) 0 96px; overflow: hidden; isolation: isolate; }
.home-hero__bg {
  position: absolute; inset: -4% -2% 0; z-index: -2;
  background: url("../../../img/1920/images/background.jpg.webp") center 20% / cover no-repeat;
  animation: heroZoom 26s ease-in-out infinite alternate;
}
.home-hero::before { /* readable centre + fade into the page */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 50% 45%, rgba(5, 10, 22, 0.15), rgba(5, 10, 22, 0.55) 70%),
    linear-gradient(180deg, rgba(5, 10, 22, 0.55) 0%, rgba(5, 10, 22, 0) 22%, rgba(5, 10, 22, 0) 60%, var(--bg) 100%);
}
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.08) translateY(-1%); } }
.home-hero__content { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.home-hero__h1 { margin: 0; line-height: 0; }
.home-hero__logo { width: clamp(250px, 40vw, 540px); filter: drop-shadow(0 10px 40px rgba(163, 230, 53, 0.35)) drop-shadow(0 0 2px rgba(0, 0, 0, 0.6)); animation: float 6s ease-in-out infinite; }
.home-hero__tagline {
  margin: -6px 0 6px; font-family: var(--font-display); font-weight: 600; font-size: clamp(0.85rem, 1.6vw, 1.15rem);
  letter-spacing: 0.42em; text-transform: uppercase; color: #dbe9ff; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8);
}
.home-hero__tagline::before, .home-hero__tagline::after { content: "✦"; margin: 0 14px; color: var(--gold); font-size: 0.7em; vertical-align: 2px; letter-spacing: 0; }
.home-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.home-status {
  display: flex; align-items: center; gap: 18px; margin-top: 18px; padding: 12px 20px;
  border: 1px solid var(--line-2); border-radius: 18px; background: rgba(5, 10, 22, 0.55);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--shadow);
}
.home-status__item { display: flex; align-items: center; gap: 12px; text-align: left; }
.home-status__item > .icon { color: var(--primary); }
.home-status__label { display: block; color: var(--muted); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.home-status__value { display: block; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.home-status__value strong { color: var(--success); }
.home-status__sep { width: 1px; align-self: stretch; background: var(--line-2); }
/* 44x56 tap area; the mouse outline (26x42) is drawn inside it */
.home-hero__scroll { position: absolute; z-index: 3; left: 50%; bottom: 21px; transform: translateX(-50%); width: 44px; height: 56px; }
/* the shortcut cards below overlap the hero's bottom edge: keep the arrow clear of them */
.home-hero__scroll { bottom: 78px; }
@media (max-width: 820px) { .home-hero__scroll { bottom: 54px; } }
.home-hero__scroll::before { content: ""; position: absolute; left: 9px; top: 7px; width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, 0.35); border-radius: 14px; }
.home-hero__scroll span { position: absolute; left: 50%; top: 15px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: scrollDot 1.8s infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
/* drifting embers */
.home-hero__embers { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.home-hero__embers i { position: absolute; bottom: -10px; width: 4px; height: 4px; border-radius: 50%; background: #9be7ff; box-shadow: 0 0 10px 2px rgba(56, 189, 248, 0.8); opacity: 0; animation: ember 12s linear infinite; }
.home-hero__embers i:nth-child(1) { left: 8%; animation-delay: 0s; }
.home-hero__embers i:nth-child(2) { left: 22%; animation-delay: 3s; animation-duration: 14s; }
.home-hero__embers i:nth-child(3) { left: 37%; animation-delay: 6s; background: #ffe08a; box-shadow: 0 0 10px 2px rgba(246, 196, 83, 0.7); }
.home-hero__embers i:nth-child(4) { left: 52%; animation-delay: 1.5s; animation-duration: 16s; }
.home-hero__embers i:nth-child(5) { left: 66%; animation-delay: 4.5s; }
.home-hero__embers i:nth-child(6) { left: 79%; animation-delay: 8s; background: #c4f080; box-shadow: 0 0 10px 2px rgba(163, 230, 53, 0.7); }
.home-hero__embers i:nth-child(7) { left: 90%; animation-delay: 2s; animation-duration: 13s; }
.home-hero__embers i:nth-child(8) { left: 45%; animation-delay: 9.5s; animation-duration: 15s; }
@keyframes ember { 0% { transform: translate(0, 0) scale(0.6); opacity: 0; } 10% { opacity: 0.9; } 100% { transform: translate(40px, -90vh) scale(1.1); opacity: 0; } }
@media (max-width: 640px) {
  .home-status { flex-direction: column; align-items: stretch; gap: 10px; width: min(320px, 100%); }
  .home-status__sep { width: auto; height: 1px; }
  .home-hero__tagline { letter-spacing: 0.28em; }
  .home-hero__tagline::before, .home-hero__tagline::after { margin: 0 8px; }
  .home-hero__actions .btn { flex: 1 1 100%; }
  .home-hero__scroll { display: none; }
}

/* ── Quick links ── */
.home-quick { position: relative; z-index: 2; margin-top: -64px; }
.home-quick__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.quick-card {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--r);
  border: 1px solid var(--line-2); background: linear-gradient(135deg, rgba(20, 38, 76, 0.85), rgba(8, 15, 32, 0.9));
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--shadow); color: var(--text);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.quick-card img { width: 64px; height: 64px; object-fit: contain; flex: none; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5)); transition: transform 0.4s var(--ease); }
.quick-card__text { flex: 1; display: grid; gap: 2px; }
.quick-card__text strong { font-family: var(--font-display); font-size: 1.15rem; color: #fff; }
.quick-card__text span { color: var(--muted); font-size: 0.86rem; }
.quick-card > .icon { color: var(--primary); transition: transform 0.3s var(--ease); }
.quick-card:hover { color: var(--text); transform: translateY(-4px); border-color: rgba(56, 189, 248, 0.5); box-shadow: 0 24px 50px -20px rgba(56, 189, 248, 0.45); }
.quick-card:hover img { transform: scale(1.08) rotate(-4deg); }
.quick-card:hover > .icon { transform: translateX(4px); }
@media (max-width: 820px) { .home-quick__grid { grid-template-columns: 1fr; } .home-quick { margin-top: -40px; } }

/* ── Server support card: floats on wide screens, sits in the page on smaller ones ── */
.donate {
  position: relative; display: grid; grid-template-columns: 200px 1fr; gap: 0; overflow: hidden;
  width: min(var(--container), 100% - 40px); margin: 40px auto 0;
  border: 1px solid rgba(246, 196, 83, 0.35); border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(40, 30, 10, 0.55), rgba(10, 16, 34, 0.9)); box-shadow: var(--shadow);
}
.donate__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; min-height: 200px; }
.donate__body { display: grid; gap: 10px; align-content: center; padding: 22px 24px; }
.donate__label { margin: 0; color: var(--gold); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.donate__timer { display: flex; gap: 8px; margin: 0; }
.donate__timer span { display: grid; justify-items: center; min-width: 56px; padding: 8px 6px; border-radius: 12px; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(246, 196, 83, 0.25); }
.donate__timer b { font: 800 1.35rem/1 var(--font-body); color: #fff; font-variant-numeric: tabular-nums; }
.donate__timer small { margin-top: 4px; color: var(--muted); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; }
.donate__copy { margin: 0; color: var(--text-2); font-size: 0.9rem; }
.donate__body .btn { justify-self: start; width: auto; }
.donate__close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 32px; height: 32px; background: rgba(0, 0, 0, 0.45); }
.donate.is-small { display: none; }
.donate-pill {
  position: fixed; left: 16px; bottom: 16px; z-index: 80; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 999px; border: 1px solid rgba(246, 196, 83, 0.5); background: rgba(20, 14, 4, 0.85);
  color: var(--gold); font: 700 0.8rem/1 var(--font-body); font-variant-numeric: tabular-nums; cursor: pointer; box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
@media (min-width: 1360px) {
  .donate { position: fixed; left: 20px; bottom: 20px; z-index: 80; width: 250px; margin: 0; grid-template-columns: 1fr; animation: donateIn 0.6s 1s var(--ease) both; }
  .donate__media img { height: 210px; min-height: 0; }
  .donate__body { padding: 16px; gap: 8px; }
  .donate__timer span { min-width: 0; flex: 1; padding: 6px 2px; }
  .donate__timer b { font-size: 1.05rem; }
  .donate__copy { font-size: 0.8rem; }
  .donate__body .btn { width: 100%; }
}
@keyframes donateIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  .donate { grid-template-columns: 1fr; }
  .donate__media img { height: 180px; min-height: 0; }
  .donate__timer span { flex: 1; min-width: 0; }
  .donate__body .btn { width: 100%; }
  .donate-pill { bottom: calc(80px + env(safe-area-inset-bottom)); }
}

/* ── News ── */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.news-card--featured { grid-column: span 3; display: grid; grid-template-columns: 1.25fr 1fr; }
.news-card--featured .card__media { aspect-ratio: auto; min-height: 380px; }
.news-card--featured .card__media img { position: absolute; inset: 0; }
.news-card--featured .card__media img { object-position: center 25%; }
.news-card--featured .card__body { justify-content: center; padding: clamp(24px, 4vw, 48px); gap: 12px; }
.news-card--featured .card__title { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.2rem); }
.news-card--featured .card__text { font-size: 1.02rem; }
.news-card__badge { position: absolute; top: 14px; left: 14px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); background: rgba(5, 10, 22, 0.7); }
.news-card__badge.badge--event { color: #c4b5fd; border-color: rgba(167, 139, 250, 0.5); }
.news-card__badge.badge--promo { color: #6ee7b7; border-color: rgba(52, 211, 153, 0.5); }
.news-card__badge.badge--maintenance { color: var(--gold); border-color: rgba(246, 196, 83, 0.5); }
.news-card .card__media img { object-position: center 30%; }
@media (max-width: 960px) { .news-grid { grid-template-columns: 1fr 1fr; } .news-card--featured { grid-column: span 2; } }
@media (max-width: 640px) { .news-grid { grid-template-columns: 1fr; } .news-card--featured { grid-column: auto; grid-template-columns: 1fr; } .news-card--featured .card__media { min-height: 220px; } }

/* ── Classes ── */
.classes { overflow: hidden; }
.classes__glow { position: absolute; left: 50%; top: 55%; width: 900px; height: 600px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(56, 189, 248, 0.16), transparent); pointer-events: none; }
.classes__stage { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.classes__figure { position: relative; height: clamp(340px, 42vw, 500px); border-radius: var(--r-lg); border: 1px solid var(--line); background: radial-gradient(60% 60% at 50% 60%, rgba(56, 189, 248, 0.18), rgba(8, 15, 32, 0.4) 70%), linear-gradient(180deg, rgba(15, 28, 58, 0.6), rgba(6, 12, 26, 0.8)); overflow: hidden; }
.classes__figure::after { /* floor glow */ content: ""; position: absolute; left: 15%; right: 15%; bottom: 12%; height: 40px; border-radius: 50%; background: radial-gradient(closest-side, rgba(56, 189, 248, 0.45), transparent); filter: blur(6px); }
.class-fig { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; opacity: 0; transform: scale(0.96) translateX(20px); transition: opacity 0.6s var(--ease), transform 0.8s var(--ease); pointer-events: none; }
.class-fig.is-active { opacity: 1; transform: none; }
.class-fig img { position: relative; z-index: 1; max-height: 82%; max-width: 88%; width: auto; object-fit: contain; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.6)); }
.class-fig figcaption { position: absolute; left: 24px; bottom: 20px; z-index: 2; display: grid; text-align: left; }
.class-fig__name { font: 700 clamp(1.6rem, 3vw, 2.4rem)/1.1 var(--font-display); background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.class-fig__title { color: var(--gold); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.04em; }
.classes__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.class-tab {
  display: grid; justify-items: center; gap: 6px; padding: 10px 6px 12px; border-radius: 14px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(10, 19, 40, 0.65); color: var(--text-2); font: 600 0.8rem/1.2 var(--font-body);
  transition: border-color 0.25s, background 0.25s, color 0.25s, transform 0.25s var(--ease);
}
.class-tab img { width: 100%; height: 72px; object-fit: contain; filter: grayscale(0.7) brightness(0.75); transition: filter 0.3s, transform 0.3s var(--ease); }
.class-tab:hover { color: #fff; transform: translateY(-2px); }
.class-tab:hover img { filter: none; }
.class-tab.is-active { color: #fff; border-color: rgba(56, 189, 248, 0.6); background: linear-gradient(180deg, rgba(56, 189, 248, 0.18), rgba(10, 19, 40, 0.7)); box-shadow: 0 10px 30px -14px rgba(56, 189, 248, 0.7); }
.class-tab.is-active img { filter: none; transform: scale(1.06); }
@media (max-width: 900px) {
  .classes__stage { grid-template-columns: 1fr; }
  .classes__list { grid-template-columns: repeat(9, 92px); overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
  .class-tab { scroll-snap-align: start; }
}

/* ── Features ── */
.feature { padding: 26px 24px; border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(18, 33, 66, 0.55), rgba(8, 15, 32, 0.65)); transition: transform 0.3s var(--ease), border-color 0.3s; }
.feature:hover { transform: translateY(-4px); border-color: rgba(56, 189, 248, 0.4); }
.feature__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 16px; border-radius: 14px; color: var(--primary); background: rgba(56, 189, 248, 0.1); border: 1px solid rgba(56, 189, 248, 0.3); box-shadow: inset 0 0 20px rgba(56, 189, 248, 0.15); }
.feature h3 { font-size: 1.1rem; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--text-2); font-size: 0.93rem; }

/* ── Call to action ── */
.home-cta { padding: 0 0 clamp(64px, 9vw, 110px); }
.home-cta__box {
  position: relative; overflow: hidden; padding: clamp(40px, 7vw, 80px) 24px; border-radius: var(--r-lg); text-align: center;
  border: 1px solid var(--line-2); isolation: isolate;
  background: linear-gradient(180deg, rgba(5, 10, 22, 0.35), rgba(5, 10, 22, 0.85)), url("../../../img/1920/images/background_backup/background4.jpg.webp") center / cover;
}
.home-cta__box::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 80% at 50% 100%, rgba(56, 189, 248, 0.3), transparent 70%); }
.home-cta__box h2 { font-size: clamp(1.8rem, 4vw, 3rem); background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.home-cta__box p { color: var(--text-2); font-size: 1.05rem; margin-bottom: 28px; }

/* Phones: hero and call-to-action art at 1000px instead of 1920px */
@media (max-width: 760px) {
  .home-hero__bg { background-image: url("../../../img/1000/images/background.jpg.webp"); }
  .home-cta__box { background: linear-gradient(180deg, rgba(5, 10, 22, 0.35), rgba(5, 10, 22, 0.85)), url("../../../img/1000/images/background_backup/background4.jpg.webp") center / cover; }
}
