/* Шрифты подключены в <head> асинхронно: @import здесь задерживал отрисовку
   всей страницы на два внешних запроса, а «Google Sans» с fonts.cdnfonts.com
   вообще отдаётся с 403 — сайт всё это время ждал впустую. Вместо него Inter:
   выглядит так же и берётся с работающего Google Fonts. */

/* ==========================================================================
   BRAND SQUARE EXPANDING PRELOADER
   ========================================================================== */
.page-preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--dm-bg, #fdfaf6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
}

.page-preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-preloader.hidden .loader,
.page-preloader.hidden .loader span {
  animation: none !important;
}

@keyframes loader {
  0%, 10%, 100% {
    width: 80px;
    height: 80px;
  }
  65% {
    width: 150px;
    height: 150px;
  }
}

@keyframes loaderBlock {
  0%, 30% { 
    transform: rotate(0);
    background-color: var(--theme-preloader-base, #d96b1e);
  }
  55% {
    background-color: var(--theme-preloader-spark, #ffbe7b);
  }
  100% {
    transform: rotate(90deg);
    background-color: var(--theme-preloader-base, #d96b1e);
  }
}

@keyframes loaderBlockInverse {
  0%, 20% { 
    transform: rotate(0);
    background-color: var(--theme-preloader-base, #d96b1e);
  }
  55% {
    background-color: var(--theme-preloader-spark, #ffbe7b);
  }
  100% {
    transform: rotate(-90deg);
    background-color: var(--theme-preloader-base, #d96b1e);
  }
}

.loader {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  transform: translate(-50%, -50%) rotate(45deg) translate3d(0, 0, 0);
  animation: loader 1.2s infinite ease-in-out;
}

.loader span {
  position: absolute;
  display: block;
  width: 40px;
  height: 40px;
  background-color: var(--theme-preloader-base, #d96b1e);
  border-radius: 6px;
  box-shadow: 0 4px 14px var(--theme-glow-primary, rgba(217, 107, 30, 0.28));
  animation: loaderBlock 1.2s infinite ease-in-out both;
}

.loader span:nth-child(1) {
  top: 0;
  left: 0;
}

.loader span:nth-child(2) {
  top: 0;
  right: 0;
  animation: loaderBlockInverse 1.2s infinite ease-in-out both;
}

.loader span:nth-child(3) {
  bottom: 0;
  left: 0;
  animation: loaderBlockInverse 1.2s infinite ease-in-out both;
}

.loader span:nth-child(4) {
  bottom: 0;
  right: 0;
}

.preloader-label {
  position: absolute;
  top: calc(50% + 125px);
  left: 50%;
  transform: translateX(-50%);
  font-family: 'IBM Plex Sans', 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--dm-muted, #6b5645);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}

/* ==========================================================================
   DESIGN TOKENS & SYSTEM FOUNDATION
   ========================================================================== */
:root {
  --max-width: 1120px;
  --bg-pattern: none;
  --header-bg-pattern: none;
  --bg-color: #07090e;
  
  --panel-bg: rgba(14, 18, 27, 0.88);
  --panel-bg-hover: rgba(18, 24, 36, 0.82);
  --panel-dark: #0c0f17;
  --panel-light: #182030;
  --panel-border: rgba(255, 255, 255, 0.08);
  --panel-border-hover: rgba(185, 220, 104, 0.35);
  
  --text-main: #cbd5e1;
  --text-heading: #ffffff;
  --text-muted: #94a3b8;
  --text-link: #b9dc68;
  --text-link-hover: #ffffff;
  
  --mc-accent: #b9dc68;
  --mc-accent-glow: rgba(185, 220, 104, 0.4);
  --mc-emerald: #4ade80;
  --mc-emerald-glow: rgba(74, 222, 128, 0.35);
  --mc-cyan: #38bdf8;
  
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --font-headings: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  
  --box-shadow-panel: 0 24px 48px -12px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --box-shadow-glow: 0 0 40px -10px rgba(185, 220, 104, 0.25);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 9999px;
}

/* ==========================================================================
   BASE & RESET
   ========================================================================== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Retro background: Authentic 2011 bedrock tile */


/* Modern background: Cinematic Obsidian Glow + Ambient Mesh */
body {
  background: 
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(185, 220, 104, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 15% 25%, rgba(74, 222, 128, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 85% 65%, rgba(56, 189, 248, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(185, 220, 104, 0.05) 0%, transparent 60%),
    #07090e;
  font-size: 16px;
  color: #cbd5e1;
}

/* Сетка-подложка. Только ::before: если сюда попадает и сам body, страница
   становится position: fixed высотой в экран — она перестаёт листаться,
   а pointer-events: none заодно убивает все нажатия. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--text-link);
  text-decoration: none;
}

a:hover {
  color: var(--text-link-hover);
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

/* ==========================================================================
   SITE HEADER & MINIMALIST SWITCHER
   ========================================================================== */
.site-header {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 50;
}

/* Modern Header: Sleek floating glass navbar */
.site-header {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--panel-border);
  background: rgba(7, 9, 14, 0.78);
  backdrop-filter: blur(20px) saturate(180%);
  position: sticky;
  top: 0;
  margin-bottom: 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Brand */
.brand-container {
  display: flex;
  align-items: center;
  text-decoration: none;
}

@keyframes splashBounce {
  from { transform: rotate(-18deg) scale(0.96); }
  to { transform: rotate(-18deg) scale(1.06); }
}

/* Modern Brand: EXACT MATCH WITH USER SCREENSHOT */


.modern-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
  transition: transform 0.2s ease;
}

.modern-brand:hover {
  transform: scale(1.02);
}

/* BTR. uses the heavy slab serif font Roboto Slab */
.modern-brand .brand-prefix {
  font-family: 'Roboto Slab', serif;
  font-weight: 900;
  color: #b9dc68;
  letter-spacing: -0.01em;
}

.modern-badge {
  font-family: 'Inter', monospace, sans-serif;
  font-size: 12px;
  font-weight: 700;
  background: rgba(185, 220, 104, 0.12);
  color: #b9dc68;
  border: 1px solid rgba(185, 220, 104, 0.35);
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
  margin-left: 2px;
  box-shadow: 0 0 10px rgba(185, 220, 104, 0.15);
}

/* Header Nav & Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}



.nav-container {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-link {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #94a3b8;
  padding: 8px 14px;
  border-radius: 8px;
  position: relative;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

/* Minimalist Era Switcher Button */
.era-switch-btn {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}











.era-switch-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  padding: 4px;
  color: #94a3b8;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.era-switch-btn:hover {
  border-color: var(--mc-accent);
  background: rgba(255, 255, 255, 0.08);
}

.era-switch-btn .pill {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.era-switch-btn .pill.active {
  background: var(--mc-accent);
  color: #07090e;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(185, 220, 104, 0.4);
}

/* ==========================================================================
   MAIN CONTENT & CONTENT PANELS
   ========================================================================== */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px 80px;
  position: relative;
  z-index: 10;
}

/* Modern AAA Obsidian Glassmorphism Panel with Spotlight */
.content-panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 36px;
  margin-bottom: 36px;
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  box-shadow: var(--box-shadow-panel);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Dynamic Cursor Spotlight Effect on Modern Panels */
.content-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(185, 220, 104, 0.07),
    transparent 70%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.content-panel:hover::before {
  opacity: 1;
}

/* ==========================================================================
   HERO SECTION: CINEMATIC 3D TILT & EXPENSIVE AGENCY QUALITY
   ========================================================================== */



/* In Modern mode: layered cinematic hero */
.hero-layout {
  display: flex;
  flex-direction: column;
  gap: 36px;
  position: relative;
  z-index: 2;
}

.hero-copy-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-copy-box {
  align-items: center;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

/* Hero Title with Gradient Mask & Locked 2-Line Layout */
.hero-main-title {
  margin: 0 0 16px;
  font-weight: 800;
  line-height: 1.15;
  display: flex;
  flex-direction: column;
}

.title-line-top {
  display: block;
}

.title-line-bot {
  display: block;
  white-space: nowrap;
}



.hero-main-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(26px, 5.2vw, 56px);
  letter-spacing: -0.04em;
  align-items: center;
  background: linear-gradient(180deg, #ffffff 30%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-main-title .title-accent {
  background: linear-gradient(135deg, #b9dc68 0%, #4ade80 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-lead-text {
  margin: 0 0 28px;
}



.hero-lead-text {
  font-size: 17px;
  line-height: 1.65;
  color: #94a3b8;
  max-width: 700px;
}

.hero-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-action-buttons {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* Primary Button with Shimmer */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}





.btn-primary {
  background: linear-gradient(135deg, #b9dc68 0%, #4ade80 100%);
  color: #07090e;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 24px rgba(74, 222, 128, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(74, 222, 128, 0.5);
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 30%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 70%
  );
  transform: rotate(25deg) translateY(-100%);
  transition: transform 0.6s ease;
}

.btn-primary:hover::after {
  transform: rotate(25deg) translateY(100%);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}





.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* ==========================================================================
   INTERACTIVE 3D TILT HERO ARTWORK FRAME & TELEMETRY
   ========================================================================== */
.hero-tilt-wrapper {
  perspective: 1200px;
  width: 100%;
}

.hero-art-card {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: hidden;
  will-change: transform;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: box-shadow 0.3s ease;
}



.hero-art-card {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.9), 0 0 30px rgba(185, 220, 104, 0.1);
}

.hero-art-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}



/* Frosted Glass Telemetry Bar */
.hero-telemetry-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  font-size: 13px;
}



.hero-telemetry-bar {
  background: rgba(14, 18, 27, 0.85);
  backdrop-filter: blur(16px);
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.telemetry-tag-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.telemetry-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
}

.telemetry-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

/* ==========================================================================
   STATS CAPSULES
   ========================================================================== */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}

.stat-box {
  padding: 22px 24px;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
}







.stat-box {
  background: rgba(14, 18, 27, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
}

.stat-box:hover {
  transform: translateY(-3px);
  border-color: rgba(185, 220, 104, 0.35);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(185, 220, 104, 0.1);
}

.stat-val {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 40%, #b9dc68 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}

.stat-lbl {
  font-size: 13.5px;
  color: #94a3b8;
  font-weight: 500;
}

/* ==========================================================================
   HEADINGS & SECTION TITLES
   ========================================================================== */
.section-header {
  margin-bottom: 24px;
}

.section-tag {
  font-size: 12px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: inline-block;
}



.section-tag {
  color: var(--mc-accent);
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 12px;
}

.section-title {
  margin: 0;
  font-weight: 700;
}



.section-title {
  font-family: 'Inter', sans-serif;
  font-size: 32px;
  letter-spacing: -0.03em;
  color: #ffffff;
}

/* ==========================================================================
   SERVER & 3D FLIP SEASONS CARDS
   ========================================================================== */
.server-card-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  margin-bottom: 28px;
}



.server-card-box {
  background: rgba(14, 18, 27, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
}

.server-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 8px;
}

.ping-indicator {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.ping-bar {
  width: 3px;
  background: #4ade80;
  border-radius: 1px;
}

.ping-bar:nth-child(1) { height: 4px; }
.ping-bar:nth-child(2) { height: 7px; }
.ping-bar:nth-child(3) { height: 10px; }
.ping-bar:nth-child(4) { height: 12px; }
.ping-bar:nth-child(5) { height: 14px; }



.server-status-pill {
  font-size: 12.5px;
  color: #4ade80;
  font-weight: 600;
}

.server-ip-display {
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.02em;
}



.server-ip-display {
  font-family: 'Inter', monospace;
  color: #ffffff;
}

.server-alt-ip {
  margin: 4px 0 0;
  font-size: 13px;
  color: #94a3b8;
}

.server-alt-ip code {
  color: var(--mc-accent);
  background: rgba(185, 220, 104, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Copy Button */
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.2s ease;
}





.copy-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(12px);
}

.copy-btn:hover {
  background: rgba(185, 220, 104, 0.15);
  border-color: var(--mc-accent);
  color: var(--mc-accent);
  transform: translateY(-2px);
}

/* ==========================================================================
   3D FLIP SEASONS CARDS WITH GENERATED ARTWORKS
   ========================================================================== */
.seasons-3d-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.season-flip-card {
  perspective: 1200px;
  height: 320px;
  cursor: pointer;
}

.season-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: left;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  will-change: transform;
  border-radius: var(--radius);
}

.season-flip-card:hover .season-card-inner,
.season-flip-card:focus-visible .season-card-inner,
.season-flip-card.flipped .season-card-inner {
  transform: rotateY(180deg);
}

.season-card-front,
.season-card-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  transform-style: preserve-3d;
  will-change: transform;
}

/* FRONT FACE */
.season-card-front {
  justify-content: flex-end;
  transform: rotateY(0deg) translateZ(1px);
  z-index: 2;
}

/* BACK FACE */
.season-card-back {
  transform: rotateY(180deg) translateZ(1px);
  padding: 22px;
  justify-content: center;
  z-index: 1;
}

.season-flip-card:hover .season-card-front,
.season-flip-card.flipped .season-card-front {
  pointer-events: none;
}

.season-flip-card:hover .season-card-back,
.season-flip-card.flipped .season-card-back {
  pointer-events: auto;
}

.season-front-overlay,
.season-front-img,
.enderman-particles-container {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.season-flip-card:hover .enderman-particles-container,
.season-flip-card.flipped .enderman-particles-container {
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}



.season-card-front {
  background: rgba(14, 18, 27, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 15px 35px -10px rgba(0,0,0,0.8);
}

.season-front-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
}



.season-front-overlay {
  position: relative;
  z-index: 2;
  padding: 18px;
  background: linear-gradient(to top, rgba(7, 9, 14, 0.95) 0%, rgba(7, 9, 14, 0.6) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-radius: 0 0 var(--radius) var(--radius);
  transform: translateZ(2px);
}

.season-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  align-self: flex-start;
  margin-bottom: 2px;
}



.season-badge {
  background: rgba(14, 18, 27, 0.88);
  color: var(--mc-accent);
  border: 1px solid rgba(185, 220, 104, 0.45);
  border-radius: 6px;
}

.season-front-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.season-front-desc,
.flip-hint {
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.4;
  margin: 4px 0 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}



.season-card-back {
  background: #0f131c;
  border: 1px solid rgba(185, 220, 104, 0.3);
  border-radius: var(--radius);
  color: #e2e8f0;
  box-shadow: 0 0 30px rgba(185, 220, 104, 0.1);
}

.season-back-badge {
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 8px;
  display: block;
}



.season-back-badge {
  color: var(--mc-accent);
}

.season-card-back h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.season-card-back p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: #cccccc;
}

.season-card-back p {
  color: #94a3b8;
  font-size: 13.5px;
}

/* Season 4 Special Violet Glowing Card & Authentic Enderman Particles */
.season-flip-card.season-mystery .season-card-front {
  border: 1.5px solid #a855f7;
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.35), inset 0 0 15px rgba(168, 85, 247, 0.15);
}

.season-flip-card.season-mystery:hover .season-card-front {
  border-color: #c084fc;
  box-shadow: 0 0 35px rgba(192, 132, 252, 0.55), inset 0 0 20px rgba(168, 85, 247, 0.25);
}

.season-flip-card.season-mystery .season-card-back {
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.15);
}

.season-flip-card.season-mystery .season-badge {
  background: rgba(168, 85, 247, 0.25);
  color: #e9d5ff;
  border: 1px solid rgba(192, 132, 252, 0.6);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

.season-flip-card.season-mystery .season-back-badge {
  color: #c084fc;
}



/* Authentic Minecraft Enderman / Nether Portal Particles */
.enderman-particles-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.ender-particle {
  position: absolute;
  width: 5px;
  height: 5px;
  background: #d500f9;
  border-radius: 1px;
  box-shadow: 0 0 6px #d500f9;
  opacity: 0;
  animation: enderFloat var(--duration, 3.2s) infinite ease-out;
  animation-delay: var(--delay, 0s);
  left: var(--left, 50%);
  bottom: var(--bottom, 10%);
  will-change: transform, opacity;
}

.ender-particle:nth-child(2n) {
  background: #a855f7;
  width: 4px;
  height: 4px;
  box-shadow: 0 0 5px #c084fc;
}

.ender-particle:nth-child(3n) {
  background: #e040fb;
  width: 6px;
  height: 6px;
  box-shadow: 0 0 7px #e040fb;
}

@keyframes enderFloat {
  0% {
    transform: translateY(0) translateX(0) scale(0.4) rotate(0deg);
    opacity: 0;
  }
  20% {
    opacity: 0.9;
  }
  60% {
    transform: translateY(-50px) translateX(var(--drift, 12px)) scale(1) rotate(45deg);
    opacity: 0.75;
  }
  100% {
    transform: translateY(-110px) translateX(var(--drift-end, -15px)) scale(0.2) rotate(90deg);
    opacity: 0;
  }
}

.lobby-note {
  margin: 0;
  font-size: 14px;
  opacity: 0.85;
}

/* ==========================================================================
   DISCORD COMPACT HEADER AUTH & USER CABINET MODAL
   ========================================================================== */
.discord-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  color: #ffffff;
  background: #5865F2;
  border-radius: var(--radius-pill);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(88, 101, 242, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.discord-header-btn:hover {
  background: #4752c4;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(88, 101, 242, 0.5);
}

.user-header-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 10px 3px 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.user-header-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--mc-accent);
}

.user-header-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--mc-accent);
}

/* Personal Cabinet (ЛК) Modal */
.cabinet-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 10, 0.85);
  backdrop-filter: blur(16px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.cabinet-modal-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cabinet-card {
  width: 100%;
  max-width: 540px;
  background: #0d111a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(185, 220, 104, 0.1);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.cabinet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cabinet-title {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}

.cabinet-close-btn {
  font-size: 24px;
  color: #94a3b8;
  cursor: pointer;
  transition: color 0.2s ease;
}

.cabinet-close-btn:hover {
  color: #ffffff;
}

/* Cabinet User Profile Card */
.cabinet-profile-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  margin-bottom: 20px;
}

.cabinet-avatar-large {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--mc-accent);
}

.cabinet-user-info h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.cabinet-roles-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.role-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(185, 220, 104, 0.15);
  color: #b9dc68;
  border: 1px solid rgba(185, 220, 104, 0.3);
}

/* Upload Screenshot Form */
.upload-section {
  margin-top: 20px;
}

.upload-section h4 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.upload-dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.02);
}

.upload-dropzone:hover {
  border-color: var(--mc-accent);
  background: rgba(185, 220, 104, 0.04);
}

.upload-preview-img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 12px;
  display: none;
}

.cabinet-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 10px 14px;
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  margin-top: 10px;
  outline: none;
}

.cabinet-input:focus {
  border-color: var(--mc-accent);
}

.cabinet-submit-btn {
  width: 100%;
  margin-top: 14px;
  padding: 12px;
  background: linear-gradient(135deg, #b9dc68 0%, #4ade80 100%);
  color: #07090e;
  font-weight: 700;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.cabinet-submit-btn:hover {
  transform: translateY(-1px);
}

.cabinet-logout-btn {
  margin-top: 16px;
  width: 100%;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ef4444;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.cabinet-logout-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: #ef4444;
}

/* ==========================================================================
   HERO SCREENSHOT SLIDER STYLES
   ========================================================================== */
.hero-art-card img {
  transition: opacity 0.6s ease;
}

/* ==========================================================================
   GALLERY / SCREENSHOTS
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.gallery-card {
  margin: 0;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease;
}









.gallery-card {
  background: rgba(14, 18, 27, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
}

.gallery-card:hover {
  transform: translateY(-4px);
  border-color: rgba(185, 220, 104, 0.4);
  box-shadow: 0 15px 35px -10px rgba(0,0,0,0.8), 0 0 20px rgba(185, 220, 104, 0.1);
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.gallery-card figcaption {
  display: flex;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(7, 9, 14, 0.6);
  font-size: 13.5px;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.gallery-cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  margin-top: 20px;
}





.gallery-cta-banner {
  background: rgba(185, 220, 104, 0.08);
  border: 1px solid rgba(185, 220, 104, 0.25);
  border-radius: var(--radius-sm);
  color: #e2e8f0;
  font-size: 14.5px;
}

.gallery-cta-banner a {
  color: var(--mc-accent);
  font-weight: 700;
}

/* ==========================================================================
   ABOUT REINDEV
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.blog-badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12px;
  margin-bottom: 8px;
}



.blog-badge {
  background: rgba(185, 220, 104, 0.1);
  border: 1px solid rgba(185, 220, 104, 0.3);
  border-radius: 6px;
  color: var(--mc-accent);
  font-size: 12px;
  font-weight: 700;
}

.prose p {
  margin-top: 0;
  margin-bottom: 16px;
}



.prose {
  font-size: 15.5px;
  line-height: 1.7;
  color: #94a3b8;
}

/* ==========================================================================
   HOW TO START / STEPS
   ========================================================================== */
.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.step-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px 20px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}









.step-item {
  background: rgba(14, 18, 27, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
}

.step-item:hover {
  transform: translateX(4px);
  border-color: rgba(185, 220, 104, 0.3);
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(185, 220, 104, 0.12);
  border: 1px solid rgba(185, 220, 104, 0.35);
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: var(--mc-accent);
}

.step-item h3 {
  margin: 0 0 4px;
  font-size: 16.5px;
  font-weight: 700;
  color: #ffffff;
}

.step-item p {
  margin: 0;
  font-size: 14px;
  color: #94a3b8;
}

/* ==========================================================================
   LINKS DIRECTORY
   ========================================================================== */
.links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.link-card {
  display: flex;
  flex-direction: column;
  padding: 16px 20px;
  text-decoration: none;
  transition: all 0.2s ease;
}











.link-card {
  background: rgba(14, 18, 27, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
}

.link-card:hover {
  background: rgba(18, 24, 36, 0.85);
  border-color: rgba(185, 220, 104, 0.35);
  transform: translateY(-2px);
}

.link-card strong {
  font-size: 15.5px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.link-card span {
  font-size: 13px;
  color: #94a3b8;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 30px 20px 80px;
}





footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--panel-border);
  font-size: 13.5px;
  color: #64748b;
}

/* ==========================================================================
   CIRCULAR RIPPLE TRANSITION EFFECT
   ========================================================================== */
.transition-flash-overlay {
  position: fixed;
  inset: 0;
  z-index: 99998;
  pointer-events: none;
  background: radial-gradient(circle at var(--ripple-x, 50%) var(--ripple-y, 50%), rgba(185, 220, 104, 0.25) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.transition-flash-overlay.active {
  opacity: 1;
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast-msg {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 10000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.toast-msg.show {
  transform: translateY(0);
  opacity: 1;
}



.toast-msg {
  background: #10141f;
  border: 1px solid rgba(185, 220, 104, 0.4);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  padding: 14px 22px;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.7), 0 0 20px rgba(185, 220, 104, 0.2);
}

/* ==========================================================================
   LIGHTBOX / SCREENSHOT MODAL
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  max-width: 960px;
  width: 100%;
  position: relative;
}

.modal-content img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  display: block;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.9);
}

.modal-close-btn {
  position: absolute;
  top: -44px;
  right: 0;
  color: #ffffff;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.2s ease;
}

.modal-close-btn:hover {
  transform: scale(1.2);
}

/* ==========================================================================
   RESPONSIVENESS
   ========================================================================== */
@media (max-width: 950px) {
  .seasons-3d-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  
  
  .stats-strip, .seasons-3d-grid, .about-grid, .gallery-grid, .links-grid {
    grid-template-columns: 1fr;
  }
  
  .server-card-box {
    flex-direction: column;
    align-items: stretch;
  }
  
  .site-header {
    padding: 12px 16px;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }
  
  .header-actions {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  
  .nav-container {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    padding: 2px 0;
  }
  
  .nav-container::-webkit-scrollbar {
    display: none;
  }
  
  .nav-link {
    font-size: 13px;
    padding: 5px 11px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
  }
  
  footer {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
}
