:root {
  --theme-color: #fce300;
  --theme-danger: #ff4d4d;
  --theme-purple: #b366ff;

  --glass-bg: rgba(12, 12, 12, 0.9);
  --glass-border: rgba(255, 255, 255, 0.15);

  --font-tech: "Rajdhani", sans-serif;
  --font-display: "Teko", sans-serif;
  --font-body: "Barlow Condensed", sans-serif;

  --footer-h: 45px;
  --topbar-h: 70px;
}

html,
body {
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  background: #000;
  color: #e0e0e0;
  font-family: var(--font-body);
  width: 100vw;
}

/* INLINE CODE */
code {
  background: rgba(0, 0, 0, 0.55);
  color: #ffd369;
  padding: 3px 6px;
  border-radius: 4px;
  font-family: "Fira Code", monospace;
  font-size: 0.85em;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* CODE BLOCK */
pre {
  background: rgba(0, 0, 0, 0.75);
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

pre code {
  color: #e6edf3;
  background: none;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Optional glow */
pre::before {
  content: "CODE";
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 2px;
}

blockquote {
  position: relative;
  padding: 16px 20px 16px 24px;
  margin: 16px 0;
  background: rgba(0, 0, 0, 0.45);
  border-left: 4px solid #ffc107;
  border-radius: 6px;
  font-style: italic;
  color: #d6d6d6;
}

/* Glow accent */
blockquote::before {
  content: "❝";
  position: absolute;
  left: 10px;
  top: -8px;
  font-size: 28px;
  color: rgba(255, 193, 7, 0.4);
}

/* Optional WoW-like accent line */
blockquote::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom,
      rgba(255, 193, 7, 0),
      rgba(255, 193, 7, 0.8),
      rgba(255, 193, 7, 0));
}

.blockquote-game {
  background: linear-gradient(135deg,
      rgba(0, 0, 0, 0.6),
      rgba(0, 0, 0, 0.85));
  border-left: 4px solid #ffcc00;
  color: #f5f5f5;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: "Orbitron", sans-serif;
}

.quill-render .ql-align-center {
  text-align: center;
}

.quill-render .ql-align-right {
  text-align: right;
}

.quill-render .ql-align-justify {
  text-align: justify;
}

.quill-render .ql-size-small {
  font-size: 0.75em;
}

.quill-render .ql-size-large {
  font-size: 1.5em;
}

.quill-render .ql-size-huge {
  font-size: 2.5em;
}

.quill-render .ql-indent-1 {
  padding-left: 3em;
}

.quill-render .ql-indent-2 {
  padding-left: 6em;
}

.quill-render .ql-indent-3 {
  padding-left: 9em;
}

.quill-render .ql-indent-4 {
  padding-left: 12em;
}

.quill-render blockquote {
  border-left: 4px solid rgba(255, 255, 255, 0.2);
  margin: 1rem 0;
  padding-left: 1rem;
  color: #adb5bd;
}

.quill-render pre {
  background: #111;
  color: #f8f9fa;
  padding: 1rem;
  border: 1px solid #6c757d;
  overflow-x: auto;
}

.quill-render img {
  max-width: 100%;
  height: auto;
}

.quill-render iframe,
.quill-render video {
  max-width: 100%;
}

.bg-projects-per {
  position: relative;
  isolation: isolate;
  background: rgba(0, 0, 0, 0.65);
}

.bg-projects-per .card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(1px) brightness(1);
  transform: scale(1.06);
  z-index: -2;
}

.bg-projects-per .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(0, 0, 0, 0.78) 0%,
      rgba(0, 0, 0, 0.62) 45%,
      rgba(0, 0, 0, 0.82) 100%);
  z-index: -1;
}

.bg-projects-per .stat-box {
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.activity-table-wrap {
  background: rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.activity-table {
  margin: 0;
  color: #fff;
  background: transparent;
  border-collapse: collapse;
}

.activity-table thead th {
  background: rgba(255, 255, 255, 0.08);
  color: #f0b90b;
  font-family: monospace;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 14px 16px;
  border: 0;
}

.activity-table tbody tr {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.activity-table tbody td {
  background: transparent;
  border: 0;
  padding: 16px;
  vertical-align: middle;
}

.activity-detail {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
  word-break: break-word;
}

.activity-ip,
.activity-time {
  color: #fff;
  font-family: monospace;
  white-space: nowrap;
}

.activity-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.025);
}

@media (max-width: 767.98px) {
  .activity-table thead {
    display: none;
  }

  .activity-table,
  .activity-table tbody,
  .activity-table tr,
  .activity-table td {
    display: block;
    width: 100%;
  }

  .activity-table tbody tr {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 0;
  }

  .activity-table tbody td {
    padding: 10px 16px;
  }

  .activity-table tbody td::before {
    display: block;
    margin-bottom: 4px;
    color: #f0b90b;
    font-family: monospace;
    font-size: 0.8rem;
    content: attr(data-label);
  }

  .activity-ip,
  .activity-time {
    white-space: normal;
  }
}

.announcement-card {
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.announcement-card:hover {
  background: rgba(255, 255, 255, 0.025) !important;
  border-color: rgba(255, 193, 7, 0.35) !important;
}

.announcement-category {
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.announcement-title {
  line-height: 1.6;
  font-size: 0.96rem;
  color: rgba(255, 255, 255, 0.92);
  word-break: break-word;
}

.announcement-action {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
}

.announcement-btn {
  min-width: 120px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .announcement-action {
    justify-content: flex-end;
  }
}

@media (max-width: 767.98px) {
  .announcement-card {
    padding: 1rem !important;
  }

  .announcement-title {
    font-size: 0.94rem;
  }

  .announcement-btn {
    width: 100%;
  }
}

.realm-menu-wrap {
  width: 100%;
}

.realm-group {
  width: 100%;
}

.realm-main-btn,
.realm-sub-btn,
.realm-submenu .btn,
.realm-submenu-level2 .btn {
  min-height: 40px;
}

.realm-submenu {
  padding-left: 16px;
}

.realm-submenu-level2 {
  padding-left: 32px;
  margin-top: 8px;
}

.realm-main-btn i,
.realm-sub-btn i,
.realm-submenu .btn i,
.realm-submenu-level2 .btn i {
  min-width: 16px;
}

.realm-main-btn .bi-chevron-down,
.realm-sub-btn .bi-chevron-right {
  transition: transform 0.2s ease;
}

.realm-main-btn[aria-expanded="true"] .bi-chevron-down {
  transform: rotate(180deg);
}

.realm-sub-btn[aria-expanded="true"] .bi-chevron-right {
  transform: rotate(90deg);
}

.account-settings-wrap .nav-pills .btn-theme {
  opacity: .75;
  transition: .2s ease;
}

.account-settings-wrap .nav-pills .btn-theme.active,
.account-settings-wrap .nav-pills .btn-theme:hover {
  opacity: 1;
}

.account-card {
  transition: transform .2s ease, box-shadow .2s ease;
}

.account-card:hover {
  transform: translateY(-2px);
}

.account-settings-wrap .input-group-text,
.account-settings-wrap .form-control,
.account-settings-wrap .form-select,
.account-settings-wrap .toggle-password {
  background: transparent !important;
  box-shadow: none !important;
}

.account-settings-wrap .form-control::placeholder {
  color: rgba(255, 255, 255, .55);
}

.account-settings-wrap .form-control:focus,
.account-settings-wrap .form-select:focus {
  border-color: rgba(255, 255, 255, .7) !important;
  box-shadow: none !important;
}

.action-result .alert {
  margin-bottom: 0;
  animation: fadeSlideIn .25s ease;
}

.password-strength,
.confirm-password-message {
  min-height: 20px;
}

.account-action-form .is-invalid {
  border-color: #dc3545 !important;
}

.account-action-form .is-valid {
  border-color: #198754 !important;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .account-settings-wrap {
    padding: 1rem;
  }

  .account-settings-tabs .btn-theme {
    width: 100%;
  }

  .account-card {
    padding: 1rem !important;
  }
}

.account-select {
  color: #fff;
  background-color: transparent;
}

.account-select option,
.account-select optgroup {
  color: #000;
  background-color: #fff;
}

.forum-post {
  display: flex;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1rem;
}

.post-author {
  width: 180px;
  flex-shrink: 0;
  text-align: center;
}

.avatar-box {
  width: 88px;
  height: 88px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, .15);
  overflow: hidden;
  background: rgba(255, 255, 255, .04);
}

.avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-badge {
  display: inline-block;
  margin-top: .5rem;
  padding: .25rem .5rem;
  border: 1px solid rgba(255, 193, 7, .45);
  color: #ffc107;
  font-size: .75rem;
  letter-spacing: .08em;
}

.post-content {
  flex: 1;
  min-width: 0;
}

.post-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #9aa0a6;
  font-size: .85rem;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  padding-bottom: .5rem;
  margin-bottom: 1rem;
}

.post-body,
.forum-post-body {
  color: #e9ecef;
  line-height: 1.75;
}

.forum-post-body p:last-child {
  margin-bottom: 0;
}

@media (max-width: 991.98px) {
  .forum-post {
    flex-direction: column;
  }

  .post-author {
    width: 100%;
  }
}

.forum-profile-banner {
  aspect-ratio: 3 / 1;
  width: 100%;
  min-height: 220px;
  max-height: 680px;
  background-color: #05070b;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.forum-profile-card {
  margin-top: clamp(-360px, -18vw, -170px);
  position: relative;
  z-index: 2;
}

@media (max-width: 767.98px) {
  .forum-profile-banner {
    min-height: 160px;
  }

  .forum-profile-card {
    margin-top: -88px;
  }
}

.forum-profile-avatar {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, .15);
  background: rgba(255, 255, 255, .05);
}

.app-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  z-index: 5;
}

.top-bar {
  height: var(--topbar-h);
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  padding: 0 20px;
  flex-shrink: 0;
  z-index: 30;
}

.main-stage {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.bottom-bar {
  height: var(--footer-h);
  background: rgba(0, 0, 0, 0.95);
  border-top: 2px solid var(--theme-color);
  display: flex;
  align-items: center;
  padding: 0 20px;
  flex-shrink: 0;
  font-family: var(--font-tech);
  font-size: 13px;
  color: #888;
  z-index: 30;
}

.tab-view {
  display: none;
  height: 100%;
  width: 100%;
}

.tab-view.active {
  display: block;
}

.tab-content-allowscroll {
  height: 100%;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--theme-color) #222;
  -webkit-overflow-scrolling: touch;
}

.tab-content-wrapper {
  height: 100%;
  overflow-y: auto;
  padding: 20px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--theme-color) #222;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 992px) {
  .tab-content-wrapper {
    padding-right: 180px;
    padding-top: 40px;
  }
}

@media (max-width: 991px) {
  .tab-content-wrapper {
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
}

.forum-pagination {
  font-size: 13px;
}

.page-btn {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #444;
  color: #ddd;
  text-decoration: none;
  transition: 0.2s;
}

.page-btn:hover {
  background: #ffc107;
  color: #000;
  border-color: #ffc107;
}

.page-btn.disabled {
  opacity: 0.4;
  pointer-events: none;
}

.page-info {
  color: #aaa;
}

/* ===== BG layers ===== */
.fx-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bg-image {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.4);
  transition: opacity 0.8s ease;
  z-index: 1;
  opacity: 1;
}

.video-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 0;
}

.video-bg-container.active {
  opacity: 1;
}

.video-bg-container iframe {
  width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  min-width: 177.77vh;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  /* clearer video */
  filter: brightness(0.72) contrast(1.08) saturate(1.05);
}

.scanlines {
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
    linear-gradient(90deg,
      rgba(255, 0, 0, 0.06),
      rgba(0, 255, 0, 0.02),
      rgba(0, 0, 255, 0.06));
  background-size: 100% 3px, 3px 100%;
  opacity: 0.15;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 2;
}

/* ===== UI bits ===== */
.brand-logo {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
  color: #fff;
  text-transform: uppercase;
}

.brand-logo span {
  color: var(--theme-color);
}

.hero-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 0.9;
  transform: skewX(-5deg);
  font-size: 3.5rem;
}

@media (min-width: 992px) {
  .hero-title {
    font-size: 6rem;
  }
}

.hero-title span.outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.8);
}

.btn-theme {
  background: var(--theme-color);
  color: #000;
  font-family: var(--font-tech);
  font-weight: 700;
  text-transform: uppercase;
  padding: 10px 30px;
  border: none;
  clip-path: polygon(15px 0,
      100% 0,
      100% calc(100% - 15px),
      calc(100% - 15px) 100%,
      0 100%,
      0 15px);
  transition: 0.2s;
}

.btn-theme:hover {
  background: #fff;
  transform: translateY(-2px);
}

.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  padding: 25px;
  margin-bottom: 20px;
}

.text-neon {
  color: var(--theme-color);
  font-weight: 700;
}

.btn-play-square {
  width: 50px;
  height: 50px;
  background: var(--theme-color);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #000;
  transition: 0.2s;
  flex: 0 0 auto;
}

.btn-play-square:hover {
  background: #fff;
}

/* More Videos button: match your reference style a bit */
.btn-more {
  height: 50px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 0 22px;
  font-family: var(--font-tech);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
}

.btn-more::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: rgba(255, 255, 255, 0.25);
  transition: 0.2s;
}

.btn-more:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-more:hover::before {
  background: var(--theme-color);
}

/* ===== Nav ===== */
.desktop-nav {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-end;
  z-index: 25;
}

.nav-link-custom {
  text-align: right;
  cursor: pointer;
  opacity: 0.5;
  transition: 0.3s;
}

.nav-link-custom:hover,
.nav-link-custom.active {
  opacity: 1;
}

.nav-main {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: #fff;
  line-height: 1;
}

.nav-sub {
  font-family: var(--font-tech);
  font-size: 0.8rem;
  color: var(--theme-color);
  letter-spacing: 2px;
  display: block;
}

.tab-view {
  display: none;
  height: 100%;
  animation: fadeEffect 0.4s ease-out;
}

.tab-view-always {
  height: 100%;
  animation: fadeEffect 0.4s ease-out;
}

.tab-view.active {
  display: block;
}

@keyframes fadeEffect {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.offcanvas-custom {
  background-color: #050505 !important;
  border-left: 2px solid var(--theme-color);
}

.mobile-menu-close {
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(240, 185, 11, 0.45);
  border-radius: 0;
  color: var(--theme-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(240, 185, 11, 0.08);
}

.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #fff;
  border-color: var(--theme-color);
  background: rgba(240, 185, 11, 0.18);
}

.mobile-menu-link {
  border: 0;
  padding: 0;
  background: transparent;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}

.mobile-menu-link:hover,
.mobile-menu-link:focus {
  color: var(--theme-color) !important;
}

.modal-content {
  background: #000;
  border: 1px solid #333;
}

.modal-header {
  border-bottom: 1px solid #333;
}

/* ===========================
       MEDIA (desktop + mobile)
       =========================== */

#view-media {
  height: 100%;
  width: 100%;
}

.media-stage {
  position: relative;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.media-top-accent {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(420px, 80vw);
  height: 3px;
  background: linear-gradient(90deg,
      transparent,
      var(--theme-color),
      transparent);
  opacity: 0.9;
  z-index: 5;
  pointer-events: none;
}

/* lighter right side + keep left fog */
.media-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(900px 520px at 18% 55%,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.45) 55%,
      rgba(0, 0, 0, 0.72) 100%),
    linear-gradient(to bottom,
      rgba(0, 0, 0, 0.55) 0%,
      rgba(0, 0, 0, 0.1) 38%,
      rgba(0, 0, 0, 0.55) 100%),
    radial-gradient(900px 520px at 78% 58%,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.18) 60%,
      rgba(0, 0, 0, 0.3) 100%);
  opacity: 0.88;
}

/* Desktop text block */
.media-left {
  position: absolute;
  left: 70px;
  bottom: 110px;
  z-index: 10;
  max-width: 560px;
}

.media-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.85;
  margin-bottom: 8px;
}

.media-kicker-mini {
  font-family: var(--font-tech);
  font-size: 11px;
  letter-spacing: 2px;
  color: #bdbdbd;
  text-transform: uppercase;
}

.media-kicker-arrow {
  font-size: 18px;
  color: #bdbdbd;
}

.media-h1 {
  font-family: var(--font-display);
  font-size: 52px;
  line-height: 1;
  margin: 0 0 18px 0;
  text-transform: uppercase;
  color: #fff;
}

.media-meta {
  margin: 0 0 10px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.media-title {
  font-family: var(--font-body);
  font-size: 26px;
  color: #fff;
  margin-bottom: 6px;
  text-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.media-desc {
  color: rgba(255, 255, 255, 0.65);
  font-size: 15px;
  line-height: 1.6;
  max-width: 470px;
}

.media-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

/* Desktop deck */
.media-deck {
  position: absolute;
  right: 70px;
  bottom: 55px;
  z-index: 10;
  width: min(820px, 62vw);
  touch-action: pan-y;
}

.media-deck-wrapper {
  position: relative;
  height: 230px;
  user-select: none;
  -webkit-user-select: none;
}

.media-card {
  position: absolute;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  will-change: transform, opacity;
  transition: all 0.38s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  filter: contrast(1.05) brightness(0.95);
  transition: opacity 0.25s ease, filter 0.25s ease;
}

.media-card:hover img {
  opacity: 1;
  filter: contrast(1.08) brightness(1);
}

@media (max-width: 991px) {

  /* Force-hide the side cards on mobile */
  #view-media .media-card.card-prev,
  #view-media .media-card.card-next {
    display: none !important;
  }
}

@media (max-width: 1280px) {

  /* Make the whole media screen a vertical layout */
  #view-media .media-stage {
    min-height: calc(100dvh - 70px - 45px);
    /* stage height = viewport minus top+bottom bars */
    display: flex;
    flex-direction: column;
  }

  /* Left text stays on top */
  #view-media .media-left {
    flex: 0 0 auto;
  }

  /* Deck is pushed to the bottom */
  #view-media .media-deck {
    margin-top: auto;
    /* <- key line */
    padding-bottom: 10px;
  }

  /* Active card becomes full width on mobile */
  #view-media .media-card.card-active {
    width: 100%;
    height: 190px;
    /* adjust if needed */
    position: relative;
  }

  /* Ensure wrapper doesn't float in the middle */
  #view-media .media-deck-wrapper {
    position: relative;
    height: auto;
  }
}

.overlay-meta {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 6px 10px;
  font-family: var(--font-tech);
  font-size: 11px;
  color: #aaa;
  background: rgba(0, 0, 0, 0.78);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9;
}

.title-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0));
  color: #fff;
  font-family: var(--font-display);
  font-size: 20px;
  text-transform: uppercase;
  z-index: 12;
}

.active-glow {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28px;
  background: linear-gradient(to top,
      rgba(252, 227, 0, 0.75),
      rgba(252, 227, 0, 0));
  z-index: 11;
  pointer-events: none;
}

/* Desktop sizes (right-based slots) */
@media (min-width: 992px) {
  .card-active {
    right: 220px;
    width: 460px;
    height: 230px;
    z-index: 10;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.65);
  }

  .card-prev {
    right: 710px;
    width: 220px;
    height: 132px;
    z-index: 2;
  }

  .card-next {
    right: 0px;
    width: 220px;
    height: 132px;
    z-index: 2;
  }

  .deck-round {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.92);
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
    z-index: 20;
    cursor: pointer;
  }

  .deck-round i {
    font-size: 20px;
  }

  .deck-round:hover {
    background: #fff;
  }

  .deck-left {
    left: 18px;
  }

  .deck-right {
    right: 18px;
  }
}

/* ===== Better deck shift animation (desktop) =====
       We animate the actual cards into the next slots, then swap data and snap reset.
    */
.deck-no-trans .media-card,
.deck-no-trans .media-card img {
  transition: none !important;
}

/* NEXT: active -> prev slot, next -> active slot, prev fades out */
.deck-shift-next .card-prev {
  transform: translateX(-260px) scale(0.96);
  opacity: 0;
}

.deck-shift-next .card-active {
  transform: translateX(-490px) scale(0.92);
  opacity: 0.65;
  z-index: 2;
}

.deck-shift-next .card-next {
  transform: translateX(-220px) scale(1);
  opacity: 1;
  z-index: 15;
}

/* PREV: active -> next slot, prev -> active slot, next fades out */
.deck-shift-prev .card-next {
  transform: translateX(260px) scale(0.96);
  opacity: 0;
}

.deck-shift-prev .card-active {
  transform: translateX(220px) scale(0.92);
  opacity: 0.65;
  z-index: 2;
}

.deck-shift-prev .card-prev {
  transform: translateX(490px) scale(1);
  opacity: 1;
  z-index: 15;
}

/* ===========================
       MOBILE: match ref style more
       - header top-left
       - carousel strip near bottom above meta+buttons
       - show round prev/next buttons (visible!)
       =========================== */
@media (max-width: 1280px) {
  .media-stage {
    display: flex;
    flex-direction: column;
    padding: 18px 16px calc(var(--footer-h) + 18px);
    gap: 12px;
  }

  /* Make vignette less aggressive on mobile (clearer bg) */
  .media-vignette {
    opacity: 0.78;
  }

  /* Mobile header block at top */
  .media-left {
    position: relative;
    left: auto;
    bottom: auto;
    max-width: unset;
    z-index: 10;
    order: 1;
  }

  .media-h1 {
    font-size: 38px;
    margin-bottom: 10px;
  }

  .media-title {
    font-size: 22px;
  }

  .media-desc {
    max-width: unset;
  }

  /* Put the deck above meta/title area like ref */
  .media-deck {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    z-index: 10;
    order: 2;
    margin-top: 10px;
    touch-action: pan-y;
  }

  .media-deck-wrapper {
    height: 160px;
  }

  /* Use left-based layout on mobile */
  .card-prev,
  .card-next,
  .card-active {
    right: auto !important;
    bottom: 0 !important;
  }

  .card-active {
    left: 50%;
    transform: translateX(-50%);
    width: min(520px, 86vw);
    height: 160px;
    z-index: 10;
    box-shadow: 0 14px 55px rgba(0, 0, 0, 0.65);
  }

  .card-prev {
    left: 0;
    width: 30vw;
    min-width: 120px;
    max-width: 160px;
    height: 110px;
    opacity: 0.85;
    z-index: 2;
    filter: brightness(0.92);
  }

  .card-next {
    right: 0;
    left: auto;
    width: 30vw;
    min-width: 120px;
    max-width: 160px;
    height: 110px;
    opacity: 0.85;
    z-index: 2;
    filter: brightness(0.92);
  }

  .title-bar {
    font-size: 18px;
    padding: 12px;
  }

  /* round buttons ALWAYS visible on mobile (like ref) */
  .deck-round {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.92);
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
    z-index: 20;
    cursor: pointer;
  }

  .deck-round i {
    font-size: 18px;
  }

  .deck-left {
    left: calc(50% - min(520px, 86vw) / 2 + 10px);
  }

  .deck-right {
    right: calc(50% - min(520px, 86vw) / 2 + 10px);
  }

  /* On very small screens, simplify button positioning */
  @media (max-width: 420px) {
    .deck-left {
      left: 16px;
    }

    .deck-right {
      right: 16px;
    }
  }

  /* Mobile animation: animate all three with smaller distances */
  .deck-shift-next .card-prev {
    transform: translateX(-70px) scale(0.96);
    opacity: 0;
  }

  .deck-shift-next .card-active {
    transform: translateX(calc(-50% - 110px)) scale(0.96);
    opacity: 0.75;
  }

  .deck-shift-next .card-next {
    transform: translateX(calc(-50% + 0px)) scale(1);
    opacity: 1;
    z-index: 15;
  }

  .deck-shift-prev .card-next {
    transform: translateX(70px) scale(0.96);
    opacity: 0;
  }

  .deck-shift-prev .card-active {
    transform: translateX(calc(-50% + 110px)) scale(0.96);
    opacity: 0.75;
  }

  .deck-shift-prev .card-prev {
    transform: translateX(calc(-50% + 0px)) scale(1);
    opacity: 1;
    z-index: 15;
  }

  /* Make actions look like ref (buttons under deck) */
  .media-actions {
    margin-top: 14px;
  }
}

/* ===== Forum/news small subset (kept) ===== */
.forum-item-row {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.4);
  transition: 0.2s;
  cursor: pointer;
}

.forum-item-row:hover {
  background: rgba(255, 229, 0, 0.05);
  border-left: 3px solid var(--theme-color);
  padding-left: 17px;
}

.f-col-icon {
  width: 40px;
  font-size: 20px;
  color: #555;
  display: flex;
  justify-content: center;
}

.f-col-main {
  flex: 1;
}

.f-title {
  font-family: var(--font-display);
  font-size: 20px;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 2px;
}

.f-desc {
  font-size: 12px;
  color: #888;
}

.f-col-stats {
  width: 80px;
  text-align: center;
  display: none;
}

@media (min-width: 768px) {
  .f-col-stats {
    display: block;
  }
}

.f-stat-num {
  display: block;
  color: #fff;
  font-family: var(--font-tech);
  font-weight: bold;
}

.news-hero-card {
  height: 350px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  cursor: pointer;
  margin-bottom: 20px;
}

.news-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: 0.5s;
  filter: brightness(0.6);
}

.news-hero-card:hover .news-hero-bg {
  transform: scale(1.05);
  filter: brightness(0.8);
}

.news-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.news-grid-card {
  display: flex;
  flex-direction: column;
  height: 165px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px;
  transition: 0.2s;
  cursor: pointer;
  border-left: 3px solid transparent;
  margin-bottom: 20px;
}

.news-grid-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-3px);
}

.news-type-maint {
  border-left-color: var(--theme-danger);
}

.news-type-shop {
  border-left-color: var(--theme-purple);
}

.news-type-event {
  border-left-color: var(--theme-color);
}

.news-date {
  font-family: var(--font-tech);
  font-size: 12px;
  color: #888;
  margin-bottom: 5px;
  display: block;
}

.news-title {
  font-family: var(--font-display);
  font-size: 22px;
  color: #fff;
  line-height: 1;
  margin-bottom: 5px;
}

.forum-post {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .forum-post {
    flex-direction: row;
  }
}

.post-author {
  width: 100%;
  padding: 20px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 15px;
}

@media (min-width: 768px) {
  .post-author {
    width: 200px;
    flex-direction: column;
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
  }
}

.avatar-box {
  width: 80px;
  height: 80px;
  background: #222;
  border: 1px solid #444;
}

.avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-badge {
  background: #333;
  color: #fff;
  font-size: 10px;
  padding: 2px 8px;
  font-family: var(--font-tech);
  margin-top: 5px;
  display: inline-block;
}

.post-content {
  flex: 1;
  padding: 20px;
}

.post-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
  margin-bottom: 15px;
  font-size: 12px;
  color: #888;
  display: flex;
  justify-content: space-between;
}

.post-body {
  color: #ddd;
  font-size: 15px;
  line-height: 1.6;
}

.article-content {
  color: #ccc;
  line-height: 1.8;
  font-size: 16px;
}

.article-content h3 {
  color: var(--theme-color);
  font-family: var(--font-display);
  margin-top: 20px;
}

.article-content ul {
  padding-left: 20px;
  border-left: 2px solid #333;
}

/* =========================
   NEWS (END-FIELD INSPIRED) — DARK AZEROTH INTEL BOARD
   Replace your current NEWS CSS block with this
   ========================= */

#view-news .tab-content-wrapper {
  padding-top: 28px;
  padding-bottom: 28px;
}

/* Dark surrounding field */
#view-news {
  background: radial-gradient(circle at 35% 20%,
      rgba(252, 227, 0, 0.06),
      transparent 55%),
    radial-gradient(circle at 70% 70%,
      rgba(255, 255, 255, 0.03),
      transparent 55%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.92));
}

/* Dark “intel board” canvas */
.news-light-stage {
  position: relative;
  /*min-height: calc(100dvh - 70px - 45px);*/
  /*height:100%;*/
  overflow: hidden;

  /* DARK board */
  background: linear-gradient(to bottom,
      rgba(255, 255, 255, 0.06),
      rgba(255, 255, 255, 0) 40%),
    radial-gradient(circle at 20% 10%, rgba(252, 227, 0, 0.06), transparent 55%),
    rgba(10, 10, 10, 0.92);

  color: #e9e9e9;

  padding-left: 120px;
  /* space for left rail */
  padding-right: 40px;

  /* Frame + glow */
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55), 0 25px 80px rgba(0, 0, 0, 0.75);

  outline: 1px solid rgba(252, 227, 0, 0.08);
  outline-offset: -2px;
}

/* Tech grid texture */
.news-light-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background: repeating-linear-gradient(0deg,
      rgba(255, 255, 255, 0.06),
      rgba(255, 255, 255, 0.06) 1px,
      transparent 1px,
      transparent 14px),
    repeating-linear-gradient(90deg,
      rgba(255, 255, 255, 0.04),
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px,
      transparent 14px);
}

/* Subtle top/bottom chrome */
.news-light-stage::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 46px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0));
}

/* left vertical yellow rail (still yellow but framed) */
.news-rail {
  position: absolute;
  left: 40px;
  top: 30px;
  bottom: 30px;
  width: 68px;

  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.18),
      rgba(0, 0, 0, 0) 50%),
    var(--theme-color);

  border: 1px solid rgba(0, 0, 0, 0.35);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 14px 10px;

  clip-path: polygon(14px 0,
      100% 0,
      100% calc(100% - 14px),
      calc(100% - 14px) 100%,
      0 100%,
      0 14px);
}

.news-rail .rail-latest {
  font-family: var(--font-tech);
  font-weight: 800;
  letter-spacing: 1px;
  color: #111;
  width: 100%;
  text-align: left;
  /*transform: rotate(-90deg);*/
  transform-origin: left bottom;
  margin-bottom: 5px;
  opacity: 0.92;
  border-bottom: 4px solid #333;
}

.news-rail .rail-brand {
  font-family: var(--font-display);
  letter-spacing: 3px;
  color: #111;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 22px;
  opacity: 0.85;
}

/* header */
.news-header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
  margin-top: 18px;
  position: relative;
  z-index: 2;
}

.news-emblem {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.45);

  clip-path: polygon(14px 0,
      100% 0,
      100% calc(100% - 14px),
      calc(100% - 14px) 100%,
      0 100%,
      0 14px);
}

.news-titleblock small {
  display: block;
  font-family: var(--font-tech);
  letter-spacing: 2.5px;
  color: rgba(255, 255, 255, 0.55);
}

.news-titleblock h2 {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 0.9;
  margin: 0;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

.news-titleblock h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  background: var(--theme-color);
  margin-top: 10px;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%);
}

/* meta + headline */
.news-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-tech);
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 6px;
  position: relative;
  z-index: 2;
}

.news-meta .slash {
  opacity: 0.55;
}

.news-headline {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-size: 26px;
  margin: 0 0 12px 0;
  color: #fff;
  position: relative;
  z-index: 2;
}

/* divider */
.news-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 12px 0 18px 0;
  position: relative;
  z-index: 2;
}

/* cards area */
.news-deck {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 22px;
  align-items: start;
  position: relative;
  z-index: 2;
}

/* Dark cards */
.news-card {
  border-radius: 0;
  background: linear-gradient(to bottom,
      rgba(255, 255, 255, 0.05),
      rgba(255, 255, 255, 0) 50%),
    rgba(0, 0, 0, 0.55);

  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  cursor: pointer;
  position: relative;

  clip-path: polygon(14px 0,
      100% 0,
      100% calc(100% - 14px),
      calc(100% - 14px) 100%,
      0 100%,
      0 14px);
}

.news-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
}

.news-card.active {
  border-color: rgba(252, 227, 0, 0.35);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.75);
}

.news-card.active::after {
  background: var(--theme-color);
  height: 8px;
}

.news-card {
  cursor: pointer;
}

.news-card .thumb {
  width: 100%;
  max-height: 200px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
  background: #111;
}

.news-card .thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover !important;
  object-position: center 30% !important;
  filter: saturate(1.05) contrast(1.08) brightness(0.95);
  transition: transform 0.35s ease;
}

.news-card:hover .thumb img {
  transform: scale(1.04);
}

.news-deck>.news-card:first-child .thumb img {
  object-position: center 35% !important;
}

.news-deck>.news-card:not(:first-child) .thumb img {
  object-position: center 28% !important;
}

.news-navbtn {
  border: 0;
  background: transparent;
  padding: 0;
}

.news-card .thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), transparent 55%);
  pointer-events: none;
}

.news-card .cap {
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.news-card .cap .cap-title {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.05;
  margin: 0;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.45px;
}

.news-card .cap .cap-sub {
  font-family: var(--font-tech);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
  margin-top: 6px;
  letter-spacing: 0.6px;
}

/* controls */
.news-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  margin-bottom: 18px;
  position: relative;
  z-index: 2;
}

/* angular nav buttons */
.news-navbtn {
  width: 46px;
  height: 46px;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;

  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.15s;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);

  clip-path: polygon(14px 0,
      100% 0,
      100% calc(100% - 14px),
      calc(100% - 14px) 100%,
      0 100%,
      0 14px);
}

.news-navbtn:hover {
  transform: translateY(-1px);
  border-color: rgba(252, 227, 0, 0.35);
}

.news-navbtn:active {
  transform: translateY(0);
}

/* More Intel button = your dark glass */
.news-moreintel {
  height: 46px;
  min-width: 240px;
  background: rgba(14, 14, 14, 0.92);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0 22px;
  font-family: var(--font-tech);
  letter-spacing: 1px;
  text-transform: uppercase;

  display: flex;
  align-items: center;
  gap: 10px;

  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);

  clip-path: polygon(14px 0,
      100% 0,
      100% calc(100% - 14px),
      calc(100% - 14px) 100%,
      0 100%,
      0 14px);
}

.news-moreintel:hover {
  filter: brightness(1.06);
}

.news-moreintel .bar {
  width: 2px;
  height: 22px;
  background: var(--theme-color);
}

/* Responsive */
@media (max-width: 991px) {
  .news-light-stage {
    padding-left: 18px;
    padding-right: 18px;
    margin-right: 0;
    min-height: calc(100dvh - 70px - 45px);
  }

  .news-rail {
    display: none;
  }

  .news-titleblock h2 {
    font-size: 42px;
  }

  .news-deck {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 992px) {
  .news-light-stage {
    height: 100%;
  }
}

/* =========================
   LOADER (Endfield-inspired)
   ========================= */

.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  overflow: hidden;
  opacity: 1;
  pointer-events: auto;
}

.loader.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

/* Open-source background image (Unsplash) */
.loader-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 520px at 18% 55%,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.45) 55%,
      rgba(0, 0, 0, 0.78) 100%),
    linear-gradient(to bottom,
      rgba(0, 0, 0, 0.55) 0%,
      rgba(0, 0, 0, 0.12) 40%,
      rgba(0, 0, 0, 0.55) 100%),
    url("https://images.unsplash.com/photo-1526401485004-2aa7f3b8dabb?auto=format&fit=crop&w=2400&q=70");
  background-size: cover;
  background-position: center;
  filter: contrast(1.05) brightness(0.72) saturate(0.9);
  transform: scale(1.02);
}

.loader-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.28) 50%),
    linear-gradient(90deg,
      rgba(255, 0, 0, 0.05),
      rgba(0, 255, 0, 0.02),
      rgba(0, 0, 255, 0.05));
  background-size: 100% 3px, 3px 100%;
  opacity: 0.12;
}

/* Center logo/text */
.loader-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  user-select: none;
  z-index: 5;
}

.loader-logo {
  font-family: var(--font-display);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  font-size: 56px;
  line-height: 0.92;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
}

.loader-logo span {
  color: var(--theme-color);
}

.loader-tagline {
  margin-top: 14px;
  font-family: var(--font-tech);
  letter-spacing: 2px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
}

/* Left side big bar */
.loader-left {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(120px, 22vw);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 0 46px 22px;
  gap: 14px;
  z-index: 6;
}

.loader-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 54px;
  background: rgba(255, 255, 255, 0.06);
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.loader-bar-fill {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1%;
  background: var(--theme-color);
  box-shadow: 0 0 24px rgba(252, 227, 0, 0.35);
  transition: height 0.12s linear;
}

/* percent + status */
.loader-readout {
  position: relative;
  z-index: 2;
  margin-left: 60px;
}

.loader-percent {
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 1;
  color: var(--theme-color);
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
}

.loader-percent .pct-sign {
  font-size: 26px;
  margin-left: 4px;
  opacity: 0.9;
}

.loader-status {
  margin-top: 6px;
  font-family: var(--font-tech);
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
}

/* =========================
   IMPORTANT FIX:
   Hide loader UI BEFORE wipe
   ========================= */
.loader.transitioning .loader-center,
.loader.transitioning .loader-left {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.995);
  transition: opacity 0.12s ease, transform 0.12s ease;
}

/* keep left content hidden too (no jump) */
.loader.transitioning .loader-left {
  transform: translateZ(0);
}

/* =========================
   WIPE LAYER (ON TOP)
   ========================= */
.loader-wipe {
  position: absolute;
  inset: 0;
  background: var(--theme-color);
  z-index: 50;
  /* must be above everything */
  pointer-events: none;
  will-change: transform, clip-path, opacity;
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 1;
}

/* Step 1: left -> right cover */
.loader-wipe.play {
  animation: wipeExpand 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Step 2: after full cover, wipe DOWN to reveal the site */
.loader-wipe.reveal {
  transform: scaleX(1);
  transform-origin: left center;
  animation: wipeDownReveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* When wipe is covering, remove all loader visuals so no black flash */
.loader.wipe-only {
  background: transparent !important;
}

.loader.wipe-only .loader-bg,
.loader.wipe-only .loader-scan,
.loader.wipe-only .loader-center,
.loader.wipe-only .loader-left {
  opacity: 0 !important;
}

/* Make sure wipe is ALWAYS visible on top */
.loader-wipe {
  z-index: 99999 !important;
}

/* Wipe-down reveal (instead of fade) */
.loader-wipe.reveal {
  transform: scaleX(1);
  animation: wipeDownReveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes wipeDownReveal {
  from {
    clip-path: inset(0 0 0 0);
  }

  to {
    clip-path: inset(100% 0 0 0);
  }
}

/* Keyframes */
@keyframes wipeExpand {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

/* Reveal by sliding the yellow layer DOWN (top -> bottom reveal) */
@keyframes wipeDownReveal {
  from {
    clip-path: inset(0 0 0 0);
  }

  to {
    clip-path: inset(100% 0 0 0);
  }
}

/* Mobile tuning */
@media (max-width: 576px) {
  .loader-left {
    width: 90px;
    padding: 0 0 34px 14px;
  }

  .loader-bar {
    width: 40px;
  }

  .loader-percent {
    font-size: 52px;
  }

  .loader-logo {
    font-size: 40px;
  }
}

:root {
  --bg: #0b0c0f;
  --panel: #0f1116;
  --text: #e9edf1;
  --muted: rgba(233, 237, 241, .7);
  --accent: #f6ea00;
  --stroke: rgba(255, 255, 255, .08);
  --shadow: 0 10px 40px rgba(0, 0, 0, .55);
}

/* One-page fit */
.gp-view {
  height: 100dvh;
  background: radial-gradient(1100px 600px at 20% 10%, rgba(60, 100, 140, .15), transparent 60%),
    radial-gradient(900px 500px at 90% 90%, rgba(240, 220, 0, .08), transparent 60%),
    var(--bg);
  color: var(--text);
  overflow: hidden;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Shell: left panel + main */
.gp-shell {
  height: 100%;
  display: grid;
  grid-template-columns: 280px 1fr;
}

/* LEFT PANEL */
.gp-left {
  border-right: 1px solid var(--stroke);
  padding: 26px 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .02), transparent 40%);
}

.gp-kicker {
  letter-spacing: .25em;
  font-size: 11px;
  color: rgba(233, 237, 241, .55);
  margin-bottom: 12px;
}

.gp-left-title {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: .08em;
}

.gp-left-mid {
  margin-top: 44px;
}

.gp-mini {
  display: grid;
  gap: 10px;
  align-items: center;
}

.gp-mini-bar {
  width: 6px;
  height: 84px;
  background: linear-gradient(#f0f, #0ff, #ff0);
  border-radius: 99px;
  opacity: .9;
}

.gp-mini-label {
  font-size: 10px;
  letter-spacing: .22em;
  color: rgba(233, 237, 241, .55);
}

/* MAIN */
.gp-main {
  height: 100%;
  padding: 22px;
  display: flex;
  min-height: 0;
  margin-right: 10rem;
}

/* MEDIA = fills the page area */
.gp-media {
  flex: 1;
  min-height: 0;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, .06);
}

/* Video layers */
.gp-videoLayer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}

.gp-videoLayer.active {
  opacity: 1;
  pointer-events: auto;
}

.gp-yt,
.gp-local {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: none;
  /* we toggle between yt/local per item */
}

/* Overlay */
.gp-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

.gp-overlay-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .55), transparent 80%);
}

.gp-overlay-kicker {
  font-size: 11px;
  letter-spacing: .25em;
  color: rgba(233, 237, 241, .7);
}

.gp-overlay-hint {
  font-size: 12px;
  color: rgba(233, 237, 241, .65);
}

.gp-overlay-bottom {
  padding: 18px 18px 18px 18px;
  padding-right: 120px;
  /* room for ribbon */
  background: linear-gradient(0deg, rgba(0, 0, 0, .70), transparent 80%);
}

.gp-count {
  font-size: 12px;
  letter-spacing: .22em;
  color: rgba(233, 237, 241, .72);
  margin-bottom: 8px;
}

.gp-title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 10px;
  text-shadow: 0 10px 25px rgba(0, 0, 0, .7);
}

.gp-desc {
  max-width: 760px;
  font-size: 14px;
  color: rgba(233, 237, 241, .78);
  line-height: 1.45;
}

/* Controls */
.gp-controls {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  pointer-events: auto;
  /* enable clicks */
}

.gp-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(0, 0, 0, .35);
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
  transition: transform .12s ease, background .2s ease, border-color .2s ease;
}

.gp-btn:hover {
  transform: translateY(-1px);
  background: rgba(0, 0, 0, .55);
  border-color: rgba(255, 255, 255, .22);
}

/* Right ribbon */
.gp-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  width: 92px;
  height: 100%;
  background: var(--accent);
  z-index: 6;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gp-ribbon-text {
  transform: rotate(90deg);
  font-weight: 900;
  letter-spacing: .28em;
  color: #0b0c0f;
  font-size: 26px;
}

/* Wipe inside gp-media */
.gp-wipe {
  position: absolute;
  inset: 0;
  z-index: 9;
  background: var(--accent);
  transform: translateX(-110%);
  pointer-events: none;
}

.gp-wipe.in {
  animation: gpWipeIn 650ms cubic-bezier(.2, .8, .2, 1) forwards;
}

.gp-wipe.out {
  animation: gpWipeOut 650ms cubic-bezier(.2, .8, .2, 1) forwards;
}

@keyframes gpWipeIn {
  to {
    transform: translateX(0%);
  }
}

@keyframes gpWipeOut {
  to {
    transform: translateX(110%);
  }
}

/* ===== MOBILE ===== */
@media (max-width: 990px) {
  .gp-shell {
    display: flex;
    flex-direction: column;
  }

  .gp-left {
    display: none;
    /* compact */
  }

  .gp-main {
    padding: 14px;
    margin-right: 0px;
  }

  .gp-media {
    border-radius: 14px;
  }

  .gp-ribbon {
    width: 66px;
  }

  .gp-ribbon-text {
    font-size: 18px;
  }

  .gp-overlay-bottom {
    padding-right: 90px;
  }

  .gp-title {
    font-size: 26px;
  }

  .gp-desc {
    font-size: 13px;
  }
}

/* ====== your site footer/status bar height ====== */
:root {
  --gp-footerH: 56px;
  /* adjust to match your bottom bar */
  --gp-topH: 70px;
  /* adjust to match your top header/nav */
}

/* Make gameplay view fit between header + footer */
#view-gameplay.gp-view {
  height: calc(100dvh - var(--gp-topH) - var(--footer-h));
  min-height: calc(100dvh - var(--gp-topH) - var(--footer-h));
  overflow: hidden;
}

/* Ensure shell + main don't exceed */
#view-gameplay .gp-shell,
#view-gameplay .gp-main,
#view-gameplay .gp-media {
  height: 100%;
  min-height: 0;
}

/* Move overlay bottom UP so it never touches footer */
#view-gameplay .gp-overlay-bottom {
  padding-bottom: calc(18px + env(safe-area-inset-bottom));
  margin-bottom: 0;
}

/* Optional: if your footer overlaps visually, add extra breathing room */
#view-gameplay .gp-overlay-bottom {
  padding-bottom: calc(18px + var(--gp-footerH) * 0.35 + env(safe-area-inset-bottom));
}

/* video layer base */
.gp-videoLayer {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* YouTube iframe */
.gp-videoLayer iframe.gp-yt {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
  /* stops clicks */
  user-select: none;
}

/* Local video */
.gp-videoLayer video.gp-local {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* 🔒 Interaction blocker */
.gp-videoShield {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: transparent;
  pointer-events: auto;
  /* eats all taps/clicks */
  touch-action: none;
  /* mobile long-press killer */
  -webkit-tap-highlight-color: transparent;
}

#view-socials {
  background:
    linear-gradient(180deg, rgba(5, 7, 11, 0.94), rgba(8, 11, 16, 0.96)),
    radial-gradient(circle at 14% 18%, rgba(240, 185, 11, 0.15), transparent 35%),
    radial-gradient(circle at 82% 24%, rgba(84, 160, 255, 0.14), transparent 34%);
}

#view-socials .tab-content-wrapper {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: stretch;
  padding-top: 3.75rem;
  padding-bottom: 3.5rem;
}

.socials-shell {
  width: 100%;
  min-height: 100%;
  padding: 3rem 0 4rem;
}

.socials-kicker {
  color: rgba(240, 185, 11, 0.9);
  font-family: var(--font-tech);
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.socials-title {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  line-height: 0.92;
  margin-top: 0.85rem;
}

.socials-intro {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1rem;
  line-height: 1.75;
  margin-top: 1.4rem;
  margin-bottom: 0.4rem;
}

.socials-statband {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.3rem;
}

.socials-stat {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  padding: 1rem 1.1rem;
}

.socials-stat-label {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.socials-stat-value {
  color: #fff;
  font-family: var(--font-tech);
  font-size: 1.5rem;
  margin-top: 0.35rem;
}

.socials-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.15rem;
}

.socials-card {
  position: relative;
  min-height: 220px;
  padding: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)),
    linear-gradient(135deg, rgba(240, 185, 11, 0.07), transparent 55%);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.socials-card:hover {
  transform: translateY(-4px);
  border-color: rgba(240, 185, 11, 0.4);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, rgba(240, 185, 11, 0.12), transparent 58%);
}

.socials-card-icon {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #f0b90b;
  font-size: 1.1rem;
}

.socials-card-label {
  color: rgba(240, 185, 11, 0.88);
  font-family: var(--font-tech);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 1rem;
}

.socials-card-title {
  color: #fff;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 0.98;
  margin-top: 0.55rem;
}

.socials-card-copy {
  color: rgba(255, 255, 255, 0.72);
  margin-top: 0.9rem;
  line-height: 1.7;
  max-width: 32rem;
}

.socials-card-action {
  margin-top: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff0c0;
  font-family: var(--font-tech);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.socials-card-action i {
  color: #f0b90b;
}

@media (max-width: 991.98px) {
  #view-socials .tab-content-wrapper {
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
  }

  #view-socials .tab-content-wrapper>.container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .socials-shell {
    padding: 1.5rem 1rem 2.5rem;
  }

  .socials-statband,
  .socials-grid {
    grid-template-columns: 1fr;
  }

  .socials-card {
    min-height: 0;
  }
}
