


:root {
  --bg: #080d19;
  --panel: rgba(24, 25, 65, 0.62);
  --blue: #55b7ff;
  --text: #f3f7ff;
  --muted: #8b9bb5;
  --border: rgba(145, 115, 255, 0.24);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

.ambient {
  position: fixed;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.22;
  pointer-events: none;
  z-index: -1;
}

.ambient-one {
  background: #087cff;
  top: 100px;
  left: -150px;
}

.ambient-two {
  background: #813cff;
  right: -160px;
  top: 550px;
}

.navbar {
  width: 100%;
  min-height: 76px;
  padding: 14px 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(9, 16, 30, 0.76);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: white;
}

.brand-icon {
  width: 43px;
  height: 43px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #268cff, #12356b);
  font-family: Orbitron;
  font-weight: 800;
  font-size: 22px;
  box-shadow: 0 0 22px #147cff55;
}

.brand h2 {
  font-family: Orbitron;
  font-size: 15px;
  letter-spacing: 1px;
}

.brand span {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 2px;
}

.navbar nav {
  display: flex;
  align-items: center;
  gap: 27px;
}

.navbar nav a {
  text-decoration: none;
  color: #b5c4dc;
  font-size: 12px;
  transition: 0.3s;
}

.navbar nav a:hover {
  color: var(--blue);
}

.menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: white;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 20px;
}

.hero {
  max-width: 1200px;
  margin: auto;
  min-height: 510px;
  padding: 75px 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.hero-content {
  max-width: 580px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(48, 145, 255, 0.1);
  border: 1px solid rgba(78, 169, 255, 0.25);
  border-radius: 30px;
  padding: 9px 15px;
  color: #8ccaff;
  font-size: 10px;
  letter-spacing: 1.5px;
  margin-bottom: 35px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4effb2;
  box-shadow: 0 0 12px #4effb2;
}

.eyebrow {
  color: var(--blue);
  font-size: 10px;
  letter-spacing: 3px;
  font-weight: 700;
  margin-bottom: 15px;
}

.hero h1 {
  font-family: Orbitron;
  font-size: clamp(43px, 8vw, 82px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -3px;
}

.hero h1 span {
  color: var(--blue);
  text-shadow: 0 0 35px #168dff77;
}

.hero-description {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
  max-width: 390px;
  margin-top: 18px;
}

.hero-actions {
  display: flex;
  gap: 13px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.primary-btn,
.secondary-btn {
  padding: 14px 21px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-decoration: none;
  transition: 0.3s;
}

.primary-btn {
  color: white;
  background: linear-gradient(120deg, #1689ff, #3156df);
  box-shadow: 0 8px 25px #167cff44;
}

.secondary-btn {
  color: #c4d9f8;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.035);
}

.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-3px);
}

.hero-emblem {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 17px;
}

.emblem-ring {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid #479fff55;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, #174d8c55, transparent 68%);
  box-shadow: 0 0 60px #167cff22, inset 0 0 45px #167cff18;
  animation: float 4s ease-in-out infinite;
}

.emblem {
  font-family: Orbitron;
  font-size: 47px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 30px #3e9eff;
}

.hero-emblem > span {
  color: var(--muted);
  letter-spacing: 5px;
  font-size: 10px;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.stats {
  max-width: 1050px;
  margin: 0 auto 70px;
  padding: 0 25px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat-card {
  background: var(--panel);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: 19px;
  padding: 24px 15px;
  text-align: center;
  box-shadow: 0 10px 35px #0003;
}

.stat-card > span {
  font-size: 24px;
}

.stat-card h2 {
  font-family: Orbitron;
  color: var(--blue);
  font-size: 26px;
  margin: 10px 0 6px;
}

.stat-card p {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 2px;
}

.content-section {
  max-width: 1050px;
  margin: 0 auto 75px;
  padding: 0 25px;
  scroll-margin-top: 100px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 23px;
}

.section-heading h2 {
  font-family: Orbitron;
  font-size: 20px;
  letter-spacing: 1px;
}

.section-tag {
  color: var(--blue);
  font-size: 10px;
  border: 1px solid var(--border);
  padding: 9px 13px;
  border-radius: 9px;
}

.empty-card,
.about-card {
  padding: 35px 20px;
  border-radius: 20px;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.empty-icon {
  font-size: 34px;
  margin-bottom: 15px;
}

.empty-card h3 {
  font-size: 16px;
  margin-bottom: 9px;
}

.empty-card p,
.about-card > p:last-child {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.about-card h2 {
  font-family: Orbitron;
  font-size: 23px;
  margin-bottom: 15px;
}

.about-card > p:last-child {
  max-width: 430px;
  margin: auto;
}

footer {
  border-top: 1px solid var(--border);
  padding: 35px 15px;
  text-align: center;
  background: #0b1220;
}

.footer-brand {
  font-family: Orbitron;
  font-size: 18px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: 3px;
}

footer p {
  font-size: 9px;
  letter-spacing: 2px;
  color: #a8b9d2;
  margin: 12px 0;
}

footer span {
  color: #65758e;
  font-size: 9px;
}

@media (max-width: 700px) {
  .navbar {
    padding: 13px 5%;
  }

  .menu-btn {
    display: block;
  }

  .navbar nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 12px;
    right: 12px;
    padding: 18px;
    border-radius: 16px;
    background: rgba(14, 25, 45, 0.97);
    border: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }

  .navbar nav.show {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding: 65px 7% 50px;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-content {
    width: 100%;
  }

  .hero h1 {
    font-size: 47px;
  }

  .hero-emblem {
    align-self: center;
    margin-top: 25px;
  }

  .emblem-ring {
    width: 165px;
    height: 165px;
  }

  .emblem {
    font-size: 37px;
  }

  .stats {
    gap: 9px;
    padding: 0 15px;
    margin-bottom: 55px;
  }

  .stat-card {
    padding: 19px 6px;
  }

  .stat-card h2 {
    font-size: 20px;
  }

  .stat-card p {
    font-size: 8px;
    letter-spacing: 1px;
  }

  .content-section {
    padding: 0 17px;
    margin-bottom: 55px;
  }

  .section-heading h2 {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}


/* SSG MEMBER MANAGEMENT V1 */

.member-container {
  background: rgba(19, 22, 52, 0.55);
  border: 1px solid rgba(115, 130, 255, 0.22);
  border-radius: 22px;
  padding: 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.member-search {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  height: 53px;
  border: 1px solid rgba(105, 140, 255, 0.28);
  background: rgba(8, 13, 30, 0.8);
  border-radius: 13px;
  color: #72aaff;
}

.member-search span {
  font-size: 27px;
}

.member-search input {
  width: 100%;
  background: transparent;
  outline: none;
  border: none;
  color: white;
  font-size: 13px;
}

.member-search input::placeholder {
  color: #8290ac;
}

.member-count {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 23px 0 15px;
  color: #8faaff;
  font-size: 9px;
  letter-spacing: 1.5px;
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.player-card {
  min-width: 0;
  padding: 17px;
  border-radius: 17px;
  background: linear-gradient(
    145deg,
    rgba(32, 46, 91, 0.65),
    rgba(34, 20, 72, 0.55)
  );
  border: 1px solid rgba(115, 143, 255, 0.25);
  transition: 0.25s;
}

.player-card:hover {
  transform: translateY(-4px);
  border-color: #8270ff;
  box-shadow: 0 8px 25px #693dff25;
}

.player-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 5px;
}

.player-avatar {
  width: 47px;
  height: 47px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 23px;
  background: linear-gradient(135deg, #176fd5, #693bcb);
}

.player-status {
  font-size: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.player-status span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #42e9a4;
}

.player-status.inactive span {
  background: #ff687e;
}

.player-status.inactive {
  color: #ff8797;
}

.player-status.active {
  color: #65eeb2;
}

.player-info {
  margin: 18px 0;
}

.player-role {
  color: #9d91ff;
  font-size: 8px;
  letter-spacing: 1.2px;
  margin-bottom: 8px;
}

.player-info h3 {
  font-size: 14px;
  overflow-wrap: anywhere;
}

.player-uid {
  color: #8d9ab6;
  font-size: 9px;
  margin-top: 9px;
}

.player-footer {
  border-top: 1px solid rgba(150, 160, 255, 0.16);
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 5px;
  color: #8a9cc5;
  font-size: 7px;
  letter-spacing: 0.5px;
}

.no-members {
  padding: 35px 10px;
  text-align: center;
}

.no-members[hidden] {
  display: none;
}

.no-members > span {
  font-size: 30px;
}

.no-members h3 {
  margin: 12px 0;
}

.no-members p {
  color: #9b9bbd;
  font-size: 12px;
}

@media (max-width: 380px) {
  .member-grid {
    grid-template-columns: 1fr;
  }
}

/* =================================
   SSG GAMING - LIQUID GLASS AI FLOW
================================= */

:root {
  --glass: rgba(255,255,255,0.055);
  --glass-border: rgba(255,255,255,0.18);
  --glass-light: rgba(255,255,255,0.12);
  --text: #f8f8fa;
  --muted: rgba(255,255,255,0.58);
}

body {
  background: #08090b !important;
  color: var(--text);
  overflow-x: hidden;
  isolation: isolate;
}

/* Moving liquid atmosphere */
body::before {
  content: "";
  position: fixed;
  inset: -40%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 25% 35%,
      rgba(255,255,255,0.17), transparent 32%),
    radial-gradient(ellipse at 75% 55%,
      rgba(180,190,205,0.12), transparent 35%),
    radial-gradient(ellipse at 50% 85%,
      rgba(255,255,255,0.09), transparent 30%);
  filter: blur(65px);
  animation: liquidFlow 18s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .16;
  background: linear-gradient(
    120deg,
    transparent 20%,
    rgba(255,255,255,.16) 48%,
    transparent 70%
  );
  background-size: 200% 200%;
  animation: glassReflection 12s linear infinite;
}

@keyframes liquidFlow {
  0% {
    transform: translate(-5%, -3%) rotate(0deg) scale(1);
  }
  50% {
    transform: translate(5%, 4%) rotate(12deg) scale(1.12);
  }
  100% {
    transform: translate(-2%, 7%) rotate(-10deg) scale(1.05);
  }
}

@keyframes glassReflection {
  from { background-position: 0% 50%; }
  to { background-position: 200% 50%; }
}

/* Glass navbar */
.navbar {
  background: rgba(255,255,255,0.045) !important;
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 35px rgba(0,0,0,.25);
}

/* Glass cards */
.card,
.stat-card,
.member-card,
.event-card,
section .box {
  background: var(--glass) !important;
  border: 1px solid var(--glass-border) !important;
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.13),
    0 15px 45px rgba(0,0,0,.18);
  border-radius: 22px;
}

/* Liquid glass buttons */
button,
.btn,
a.btn {
  background: rgba(255,255,255,.09) !important;
  color: white !important;
  border: 1px solid rgba(255,255,255,.25) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 1px rgba(255,255,255,.2);
  transition: .3s ease;
}

button:hover,
.btn:hover,
a.btn:hover {
  background: rgba(255,255,255,.18) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255,255,255,.09);
}

/* Glass text */
h1, h2, h3 {
  color: #fff;
  text-shadow: 0 2px 25px rgba(255,255,255,.12);
}

p {
  color: var(--muted);
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Mobile performance */
@media (max-width: 768px) {
  body::before {
    filter: blur(42px);
  }

  .card,
  .stat-card,
  .member-card,
  .event-card {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after {
    animation: none;
  }
}


/* ===== SSG SMOOTH SCROLL OPTIMIZATION ===== */

html {
  scroll-behavior: auto !important;
  -webkit-overflow-scrolling: touch;
}

body {
  overscroll-behavior-y: contain;
}

/* Stop expensive full-screen background movement */
body::before {
  position: absolute !important;
  inset: 0 !important;
  height: 100vh !important;
  animation: none !important;
  filter: blur(35px) !important;
  opacity: .65;
}

/* Remove moving reflection layer */
body::after {
  animation: none !important;
  opacity: .06 !important;
}

/* Lighter glass blur */
.navbar,
.card,
.stat-card,
.member-card,
.event-card,
section .box {
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.12);
}

/* Avoid hover movement during scrolling */
button,
.btn,
a.btn {
  transition: background-color .2s ease, border-color .2s ease;
}

/* Reduce unnecessary rendering work */
img {
  max-width: 100%;
  height: auto;
}


/* ==================================
   SSG LIQUID FLOW ENGINE - V1
   Lightweight GPU animation
================================== */

body {
  background: #08090b !important;
  isolation: isolate;
}

/* Full website liquid atmosphere */
body::before {
  content: "";
  position: fixed !important;
  inset: -20% !important;
  width: 140% !important;
  height: 140% !important;
  z-index: -2;
  pointer-events: none;

  background:
    radial-gradient(ellipse at 20% 25%,
      rgba(255,255,255,.14), transparent 38%),
    radial-gradient(ellipse at 80% 35%,
      rgba(190,200,215,.12), transparent 40%),
    radial-gradient(ellipse at 45% 85%,
      rgba(255,255,255,.10), transparent 38%),
    radial-gradient(ellipse at 90% 90%,
      rgba(150,160,180,.08), transparent 35%);

  filter: none !important;
  opacity: .85;
  animation: ssgLiquidMotion 24s ease-in-out infinite alternate !important;
  will-change: transform;
}

/* Soft moving glass reflection */
body::after {
  content: "";
  position: fixed !important;
  inset: 0 !important;
  z-index: -1;
  pointer-events: none;

  background: linear-gradient(
    125deg,
    transparent 20%,
    rgba(255,255,255,.055) 48%,
    transparent 70%
  );

  opacity: .5 !important;
  animation: ssgReflection 18s ease-in-out infinite alternate !important;
  will-change: transform;
}

@keyframes ssgLiquidMotion {
  0% {
    transform: translate3d(-3%, -2%, 0) rotate(-4deg) scale(1);
  }
  50% {
    transform: translate3d(2%, 3%, 0) rotate(3deg) scale(1.04);
  }
  100% {
    transform: translate3d(-1%, 2%, 0) rotate(-2deg) scale(1.02);
  }
}

@keyframes ssgReflection {
  0% {
    transform: translate3d(-12%, 0, 0);
  }
  100% {
    transform: translate3d(12%, 0, 0);
  }
}

/* Mobile optimization */
@media (max-width: 768px) {
  body::before {
    animation-duration: 32s !important;
  }

  body::after {
    animation-duration: 26s !important;
  }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after {
    animation: none !important;
  }
}


/* ===== ACTION 1: LIQUID TOUCH BUTTONS ===== */

button,
.btn,
a.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255,255,255,.24) !important;
  background: rgba(255,255,255,.075) !important;
  color: #fff !important;
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.18),
    0 5px 20px rgba(0,0,0,.15);
  transition:
    transform .22s ease,
    background .22s ease,
    box-shadow .22s ease;
  -webkit-tap-highlight-color: transparent;
}

button::before,
.btn::before,
a.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(255,255,255,.17) 50%,
    transparent 80%
  );
  transform: translateX(-110%);
  transition: transform .65s ease;
}

button:active,
.btn:active,
a.btn:active {
  transform: scale(.96);
  background: rgba(255,255,255,.17) !important;
  box-shadow: inset 0 2px 12px rgba(255,255,255,.12);
}

button:active::before,
.btn:active::before,
a.btn:active::before {
  transform: translateX(110%);
}

@media (hover: hover) {
  button:hover::before,
  .btn:hover::before,
  a.btn:hover::before {
    transform: translateX(110%);
  }

  button:hover,
  .btn:hover,
  a.btn:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,.13) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  button,
  .btn,
  a.btn {
    transition: none;
  }
}


/* REAL LIQUID RIPPLE */
.liquid-ripple {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 5;
  background: radial-gradient(
    circle,
    rgba(255,255,255,.65) 0%,
    rgba(255,255,255,.25) 35%,
    rgba(255,255,255,.05) 70%,
    transparent 100%
  );
  transform: translate(-50%, -50%) scale(0);
  animation: liquidRipple .8s ease-out forwards;
}

@keyframes liquidRipple {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: .9;
  }
  70% {
    opacity: .45;
  }
  100% {
    transform: translate(-50%, -50%) scale(15);
    opacity: 0;
  }
}

button,
.btn,
a.btn {
  overflow: hidden;
  isolation: isolate;
}


/* ===== ACTION 2: 3D PLAYER CARDS ===== */

.player-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transform: perspective(900px) rotateX(0deg) rotateY(0deg);
  transform-style: preserve-3d;
  transition:
    transform .22s ease,
    border-color .22s ease,
    box-shadow .22s ease;
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}

.player-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: var(--shine-opacity, 0);
  background: radial-gradient(
    circle at var(--shine-x, 50%) var(--shine-y, 50%),
    rgba(255,255,255,.24),
    rgba(255,255,255,.07) 25%,
    transparent 65%
  );
  transition: opacity .2s ease;
}

.player-card:active {
  border-color: rgba(255,255,255,.4) !important;
}

@media (prefers-reduced-motion: reduce) {
  .player-card {
    transition: none;
    transform: none !important;
  }
}


/* 3D CARD PERFORMANCE FIX */

.player-card {
  transition: border-color .2s ease !important;
  will-change: auto !important;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.player-card::before {
  transition: none !important;
}


/* MOBILE SCROLL PERFORMANCE PRIORITY */

@media (hover: none), (pointer: coarse) {
  .player-card {
    transform: none !important;
    transform-style: flat !important;
    will-change: auto !important;
    transition: border-color .2s ease !important;
  }

  .player-card::before {
    display: none;
  }
}

/* ===== SSG GAMING COMMUNITY ===== */

.hub-switch {
  display: flex;
  gap: 6px;
  padding: 5px;
  margin-bottom: 22px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 18px;
  background: rgba(255,255,255,.035);
}

.hub-tab {
  flex: 1;
  min-width: 0;
  padding: 13px 8px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: inherit;
  background: transparent;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}

.hub-tab.active {
  background: rgba(255,255,255,.13);
  border-color: rgba(255,255,255,.2);
}

.hub-tab span {
  margin-right: 5px;
}

.hub-panel {
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 22px;
  padding: 18px;
  background: rgba(255,255,255,.035);
}

.hub-panel[hidden] {
  display: none !important;
}

.hub-welcome {
  padding: 12px 4px 20px;
}

.hub-welcome h3,
.chat-header h3 {
  margin: 8px 0;
  font-size: 21px;
}

.hub-welcome p,
.chat-header p,
.hub-post p {
  color: rgba(255,255,255,.62);
  font-size: 13px;
  line-height: 1.6;
  margin: 5px 0;
}

.hub-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  opacity: .65;
}

.hub-post {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 4px;
  border-top: 1px solid rgba(255,255,255,.1);
}

.hub-post-icon {
  font-size: 23px;
}

.hub-post h3 {
  margin: 6px 0;
  font-size: 15px;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-bottom: 17px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.chat-live {
  font-size: 10px;
  white-space: nowrap;
  opacity: .7;
}

.chat-live span {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 4px;
  border-radius: 50%;
  background: #9be6bd;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 230px;
  max-height: 390px;
  overflow-y: auto;
  padding: 18px 2px;
  overscroll-behavior: contain;
}

.chat-date {
  align-self: center;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(255,255,255,.07);
  font-size: 9px;
  letter-spacing: 1px;
  opacity: .65;
}

.chat-message {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.chat-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  background: rgba(255,255,255,.09);
}

.chat-message-content {
  min-width: 0;
}

.chat-sender,
.chat-time {
  display: block;
  font-size: 9px;
  letter-spacing: .8px;
  opacity: .65;
  margin-bottom: 5px;
}

.chat-bubble {
  width: fit-content;
  max-width: 100%;
  padding: 11px 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 4px 15px 15px 15px;
  background: rgba(255,255,255,.075);
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.5;
}

.chat-time {
  margin: 5px 0 0;
  font-size: 8px;
}

.chat-compose {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 16px;
  background: rgba(255,255,255,.055);
}

.chat-compose input {
  flex: 1;
  min-width: 0;
  padding: 10px;
  border: 0;
  outline: none;
  color: inherit;
  background: transparent;
  font: inherit;
  font-size: 13px;
}

.chat-compose button {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 12px;
  color: inherit;
  background: rgba(255,255,255,.13);
  cursor: pointer;
}



@media (max-width: 480px) {
  .hub-panel {
    padding: 14px;
  }

  .hub-welcome h3,
  .chat-header h3 {
    font-size: 18px;
  }

  .chat-messages {
    max-height: 340px;
  }
}


/* ===== SSG FLOATING BOTTOM NAV ===== */

.ssg-bottom-nav {
  position: fixed;
  z-index: 999;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(340px, calc(100% - 36px));
  display: flex;
  gap: 5px;
  padding: 7px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 50px;
  background: rgba(35,39,46,.78);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 30px rgba(0,0,0,.22);
}

.ssg-nav-option {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 9px 5px;
  border: 0;
  border-radius: 40px;
  color: inherit;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.ssg-nav-option span {
  font-size: 23px;
  line-height: 1.2;
}

.ssg-nav-option small {
  font-size: 11px;
}

.ssg-nav-option.active {
  background: rgba(255,255,255,.14);
}

.ssg-bottom-panel {
  position: fixed;
  z-index: 998;
  left: 50%;
  bottom: calc(92px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(440px, calc(100% - 24px));
  max-height: 62vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 25px;
  color: inherit;
  background: rgba(24,27,35,.94);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(0,0,0,.3);
}

.ssg-bottom-panel[hidden],
#ssgCommunityContent[hidden],
#ssgChatContent[hidden] {
  display: none !important;
}

.ssg-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  font-size: 11px;
  letter-spacing: 2px;
  opacity: .8;
}

.ssg-panel-heading button {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  color: inherit;
  background: rgba(255,255,255,.08);
}

.ssg-bottom-panel h3 {
  margin: 5px 0;
}

.ssg-bottom-panel p {
  font-size: 13px;
  line-height: 1.5;
  opacity: .7;
}

.ssg-community-item {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 13px 0;
  border-top: 1px solid rgba(255,255,255,.1);
}

.ssg-community-item > span {
  font-size: 22px;
}

.ssg-community-item b {
  font-size: 13px;
}

.ssg-community-item p {
  margin: 4px 0 0;
}

.ssg-chat-messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 120px;
  max-height: 32vh;
  overflow-y: auto;
  padding: 8px 0 15px;
}

.ssg-chat-message {
  width: fit-content;
  max-width: 90%;
  padding: 10px 13px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 5px 15px 15px;
  background: rgba(255,255,255,.08);
  overflow-wrap: anywhere;
}

.ssg-chat-message b {
  font-size: 10px;
  opacity: .65;
}

.ssg-chat-message p {
  margin: 5px 0 0;
}

.ssg-chat-compose {
  display: flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  background: rgba(255,255,255,.06);
}

.ssg-chat-compose input {
  flex: 1;
  min-width: 0;
  padding: 10px;
  border: 0;
  outline: none;
  color: inherit;
  background: transparent;
  font: inherit;
  font-size: 13px;
}

.ssg-chat-compose button {
  width: 40px;
  border: 0;
  border-radius: 12px;
  color: inherit;
  background: rgba(255,255,255,.15);
}

.ssg-chat-note {
  text-align: center;
  font-size: 9px !important;
  letter-spacing: 1px;
}

body {
  padding-bottom: 95px;
}

@media (prefers-reduced-motion: reduce) {
  .ssg-bottom-nav,
  .ssg-bottom-panel,
  .ssg-nav-option {
    transition: none !important;
  }
}


/* ===== SSG FULL SCREEN CHAT ===== */

.ssg-bottom-panel.ssg-chat-fullscreen {
  inset: 0;
  left: 0;
  bottom: 0;
  transform: none;
  width: 100%;
  max-height: none;
  height: 100%;
  box-sizing: border-box;
  border-radius: 0;
  padding: calc(18px + env(safe-area-inset-top)) 16px
           calc(18px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1001;
}

.ssg-chat-fullscreen #ssgChatContent:not([hidden]) {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
}

.ssg-chat-fullscreen .ssg-chat-messages {
  flex: 1;
  min-height: 0;
  max-height: none;
  padding: 18px 2px;
}

.ssg-chat-fullscreen .ssg-chat-compose {
  flex-shrink: 0;
  margin-top: 12px;
}

.ssg-chat-fullscreen .ssg-chat-note {
  flex-shrink: 0;
}

body.ssg-chat-open {
  overflow: hidden;
}

body.ssg-chat-open .ssg-bottom-nav {
  display: none;
}


/* SSG MOBILE PERFORMANCE PATCH */
@media (max-width: 768px) {
  html {
    scroll-behavior: auto !important;
  }

  body::before,
  body::after {
    animation: none !important;
    filter: none !important;
    will-change: auto !important;
  }

  .ambient {
    display: none !important;
  }

  .navbar,
  .stat-card,
  .empty-card,
  .about-card,
  .ssg-bottom-nav,
  .ssg-bottom-panel,
  .player-card,
  .member-card,
  .event-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .hero-emblem,
  .emblem-ring,
  .emblem {
    animation: none !important;
    will-change: auto !important;
  }
}

/* =================================
   SSG GAMING — PREMIUM HERO V1
================================= */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 30px;
  min-height: 480px;
  padding: 65px 7%;
  margin: 28px 4% 35px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 85% 50%, rgba(90,110,140,.16), transparent 48%),
    linear-gradient(125deg, #11151d, #080a0f 65%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 40%,
    rgba(255,255,255,.035) 50%,
    transparent 60%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.hero .status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 15px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 6px;
  background: rgba(255,255,255,.045);
  font-size: 11px;
  letter-spacing: 2px;
}

.hero .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #bfc9d8;
}

.hero .eyebrow {
  margin-top: 28px;
  color: #9ca8ba;
  letter-spacing: 4px;
  font-size: 11px;
  font-weight: 700;
}

.hero h1 {
  margin: 12px 0;
  color: #f5f6f8;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.12;
  letter-spacing: -3px;
}

.hero h1 span {
  color: #aebbd0;
  text-shadow: none;
}

.hero-description {
  max-width: 440px;
  color: #a3aab6;
  font-size: 15px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 30px;
}

.hero-actions a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
}

.hero-actions .primary-btn {
  background: #e7ebf1;
  color: #10141b;
  border: 1px solid #e7ebf1;
}

.hero-actions .secondary-btn {
  color: #e7ebf1;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.035);
}

.hero-emblem {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  animation: none !important;
}

.emblem-ring {
  width: clamp(180px, 25vw, 270px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(220,230,245,.32);
  border-radius: 50%;
  background:
    radial-gradient(circle, #202a38 0%, #101722 58%, #090d14 72%);
  box-shadow:
    inset 0 0 35px rgba(255,255,255,.045),
    0 15px 45px rgba(0,0,0,.35);
  animation: none !important;
}

.emblem {
  color: #f2f4f8;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(40px, 7vw, 65px);
  font-weight: 900;
  letter-spacing: 5px;
  text-shadow: 0 0 22px rgba(210,225,245,.2);
  animation: none !important;
}

.hero-emblem > span {
  color: #8995a6;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 5px;
}

@media (max-width: 700px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 35px;
    min-height: auto;
    margin: 15px 12px 25px;
    padding: 38px 22px;
    border-radius: 18px;
  }

  .hero h1 {
    font-size: clamp(39px, 12vw, 58px);
    letter-spacing: -2px;
  }

  .hero .eyebrow {
    letter-spacing: 2.5px;
  }

  .hero-emblem {
    padding: 5px 0;
  }

  .emblem-ring {
    width: 165px;
  }

  .hero-actions a {
    flex: 1;
    padding: 0 12px;
  }
}

/* SSG GAMING — PERFORMANCE V2 */

@media (max-width: 768px) {

  * {
    scroll-behavior: auto !important;
  }

  body {
    overscroll-behavior-y: auto;
  }

  .navbar,
  .stat-card,
  .empty-card,
  .about-card,
  .ssg-bottom-nav,
  .ssg-bottom-panel {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .hero,
  .stats,
  .content-section,
  footer {
    transform: none !important;
  }

  .ssg-bottom-panel {
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
  }

  .ssg-bottom-nav {
    box-shadow: 0 5px 18px rgba(0,0,0,.22);
  }

  .hero,
  .stat-card,
  .empty-card,
  .about-card {
    box-shadow: none;
  }

  .ssg-nav-option,
  .ssg-chat-compose button {
    transition: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* SSG FAST TOUCH RESPONSE */

html {
  scroll-behavior: auto !important;
  -webkit-text-size-adjust: 100%;
}

body {
  touch-action: pan-y;
  overscroll-behavior-y: auto;
}

button,
a,
.ssg-nav-option {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.ssg-bottom-panel {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.ssg-chat-messages {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

button,
a,
.ssg-nav-option,
.hero-actions a {
  transition-duration: 0.12s !important;
}


/* SSG GAMING — OFFSCREEN RENDER OPTIMIZATION */

@media (max-width: 768px) {
  main > .stats,
  main > .content-section {
    content-visibility: auto;
    contain-intrinsic-size: auto 360px;
  }

  main > .stats {
    contain-intrinsic-size: auto 150px;
  }

  main > .content-section {
    contain-intrinsic-size: auto 300px;
  }
}

/* SSG MAX — EXCLUSIVE ADMIN PLAYER CARD */

.admin-player-card {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  border: 1px solid rgba(230, 184, 75, 0.65);
  border-radius: 20px;
  background:
    radial-gradient(ellipse at 85% 5%, rgba(190,145,45,.2), transparent 45%),
    linear-gradient(145deg, #202531, #0b101b 65%, #191827);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.16),
    0 12px 30px rgba(0,0,0,.35),
    0 0 20px rgba(211,166,58,.10);
}

.admin-player-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 25%, rgba(255,255,255,.07) 48%, transparent 68%);
}

.admin-avatar {
  width: 65px;
  height: 65px;
  border-radius: 17px;
  border: 1px solid rgba(232,190,90,.65);
  background: linear-gradient(145deg,#41495a,#151a27);
  color: #f1cc72;
  font-weight: 900;
  font-size: 19px;
  box-shadow: inset 0 1px 8px #ffffff20, 0 5px 15px #0008;
}

.admin-identity {
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-v-badge {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff5cf;
  font-size: 18px;
  font-weight: 900;
  background: radial-gradient(circle at 35% 25%, #ffe9a1, #d49b25 55%, #80520c);
  border: 2px solid #f4d78b;
  box-shadow: 0 0 12px #e4ad3d55, inset 0 1px 3px #fff8;
}

.admin-label {
  padding: 6px 9px;
  border-radius: 6px;
  color: #b9dcff;
  background: linear-gradient(135deg,#173c68,#09182d);
  border: 1px solid #397bb7;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1px;
  box-shadow: inset 0 1px 3px #ffffff20, 0 0 10px #168aff25;
}

.admin-player-card .player-info h3 {
  color: #f1f3f8;
  letter-spacing: 1px;
  font-size: 19px;
  text-shadow: 0 2px 10px #000;
}

.admin-player-card .player-role {
  color: #e5bd68;
  font-weight: 800;
}

.admin-player-card .player-footer {
  border-color: #d4ad5935;
  color: #c3c9d5;
}

@media (max-width: 380px) {
  .admin-player-card {
    min-height: 215px;
  }
}


/* ROYAL GOLD CROWN BADGE */
.admin-v-badge {
  background: radial-gradient(circle at 30% 20%, #fff4b0, #e9b83f 45%, #8d5709 100%);
  border: 2px solid #ffe6a0;
  box-shadow: 0 0 9px #ffd45b, 0 0 20px #e6a82b88,
              inset 0 1px 5px #fff9;
  animation: royalBadgeShine 2.5s ease-in-out infinite alternate;
}

@keyframes royalBadgeShine {
  from { filter: brightness(1); }
  to { filter: brightness(1.4); }
}

/* SSG ADMIN — PURE GOLD SHINING BADGE */

.admin-v-badge {
  color: #fff8cf !important;
  background: linear-gradient(
    135deg,
    #fff2a6 0%,
    #ffd447 22%,
    #d99508 48%,
    #ffdf72 72%,
    #a86b00 100%
  ) !important;
  border: 2px solid #ffe99b !important;
  box-shadow:
    0 0 7px #ffda55,
    0 0 16px #ffbd24,
    0 0 28px #ffb30088,
    inset 0 2px 4px #ffffffbb !important;
  animation: ssgGoldShine 1.5s ease-in-out infinite alternate;
}

@keyframes ssgGoldShine {
  0% {
    filter: brightness(1);
    box-shadow: 0 0 6px #ffca38, inset 0 2px 4px #ffffff99;
  }
  100% {
    filter: brightness(1.65);
    box-shadow: 0 0 12px #fff0a0, 0 0 28px #ffb900,
                0 0 42px #ffcf4388, inset 0 2px 7px #ffffff;
  }
}

/* FINAL SSG MAX ROYAL GOLD BADGE */

.admin-player-card .admin-identity .admin-v-badge {
  width: 34px !important;
  height: 34px !important;
  display: grid !important;
  place-items: center !important;
  color: #542f00 !important;
  font-size: 21px !important;
  font-weight: 900 !important;

  background-color: #e6a817 !important;
  background-image:
    linear-gradient(125deg,
      #fff5b0 0%,
      #ffda42 18%,
      #d58a00 38%,
      #fff0a0 55%,
      #e5a514 72%,
      #8c5300 100%) !important;

  border: 2px solid #ffe99a !important;
  border-radius: 50% !important;

  box-shadow:
    0 0 8px #ffc52e,
    0 0 18px #ffae00,
    0 0 30px #ffca3980,
    inset 0 2px 5px #ffffffcc,
    inset 0 -3px 5px #754400 !important;

  animation: ssgRealGoldGlow 1.3s ease-in-out infinite alternate !important;
}

@keyframes ssgRealGoldGlow {
  from {
    filter: brightness(1);
  }
  to {
    filter: brightness(1.5);
    box-shadow:
      0 0 12px #ffe16b,
      0 0 25px #ffb700,
      0 0 40px #ffca3980,
      inset 0 2px 6px white;
  }
}


/* ===== SSG PREMIUM LEADERBOARD ===== */
.leaderboard-panel {
  padding: 24px 14px;
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  background: rgba(255,255,255,.035);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
}

.podium-grid {
  display: grid;
  grid-template-columns: 1fr 1.12fr 1fr;
  align-items: end;
  gap: 9px;
  max-width: 560px;
  margin: 0 auto 25px;
}

.podium-slot {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  padding: 16px 5px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 17px;
  background: linear-gradient(180deg,rgba(255,255,255,.10),rgba(255,255,255,.025));
}

.podium-slot.first {
  min-height: 190px;
  border-color: rgba(255,210,100,.38);
  background: linear-gradient(180deg,rgba(255,195,70,.15),rgba(255,255,255,.025));
}

.podium-slot.second,
.podium-slot.third {
  min-height: 160px;
}

.podium-crown {
  font-size: 24px;
  margin-bottom: 10px;
  color: #dce7ff;
}

.podium-slot.first .podium-crown {
  color: #ffd36b;
  font-size: 29px;
}

.podium-avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 800;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.25);
}

.podium-slot.first .podium-avatar {
  width: 58px;
  height: 58px;
  border-color: rgba(255,210,100,.65);
}

.podium-slot strong {
  font-family: Orbitron, sans-serif;
  font-size: 10px;
  letter-spacing: .5px;
}

.podium-slot span {
  margin-top: 7px;
  font-size: 8px;
  line-height: 1.5;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.ranking-empty-note {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px;
  border-radius: 14px;
  background: rgba(255,255,255,.045);
  border: 1px solid var(--border);
}

.ranking-empty-note > span {
  font-size: 25px;
}

.ranking-empty-note strong {
  font-family: Orbitron, sans-serif;
  font-size: 10px;
  letter-spacing: .5px;
}

.ranking-empty-note p {
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.6;
}

@media (max-width: 380px) {
  .podium-grid { gap: 5px; }
  .podium-slot { padding: 13px 3px; }
  .podium-slot strong { font-size: 8px; }
  .podium-slot span { font-size: 7px; }
}

/* ===== SSG TOURNAMENT HUB ===== */
.event-hub {
  padding: 20px;
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  background: linear-gradient(145deg,rgba(255,255,255,.075),rgba(255,255,255,.018));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
}

.event-hub-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.event-kicker {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--muted);
  font-weight: 700;
}

.event-hub-header h3 {
  font-family: Orbitron, sans-serif;
  font-size: 19px;
  margin: 9px 0 6px;
}

.event-hub-header p {
  font-size: 11px;
}

.event-emblem {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 16px;
  background: rgba(255,255,255,.07);
  font-size: 26px;
}

.event-feature {
  margin-top: 20px;
  padding: 17px;
  border-radius: 17px;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(120deg,rgba(255,255,255,.075),rgba(255,255,255,.018));
}

.event-feature-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--muted);
}

.event-live-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9299a5;
  box-shadow: 0 0 8px rgba(180,190,205,.35);
}

.event-feature-top strong {
  margin-left: auto;
  color: #c5cbd5;
  font-size: 9px;
}

.event-feature-main {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 28px 0;
}

.event-feature-icon {
  width: 57px;
  height: 57px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  font-size: 27px;
}

.event-feature-main h4 {
  font-family: Orbitron, sans-serif;
  font-size: 11px;
  line-height: 1.7;
}

.event-feature-main p {
  margin-top: 6px;
  font-size: 10px;
  line-height: 1.7;
}

.event-feature-footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-top: 13px;
  border-top: 1px solid var(--border);
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--muted);
}

.event-bottom-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 15px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  border: 1px solid var(--border);
}

.event-bottom-label > span {
  font-size: 23px;
}

.event-bottom-label strong {
  font-family: Orbitron, sans-serif;
  font-size: 9px;
  letter-spacing: .7px;
}

.event-bottom-label p {
  margin-top: 5px;
  font-size: 10px;
  line-height: 1.6;
}

@media (max-width: 380px) {
  .event-hub { padding: 14px; }
  .event-feature { padding: 13px; }
  .event-hub-header h3 { font-size: 16px; }
  .event-feature-main { gap: 10px; }
  .event-feature-main h4 { font-size: 10px; }
}


/* ===== SSG OFFICIAL BRAND EMBLEM ===== */
.emblem {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  text-align: center;
}

.emblem-main {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(15px, 3.4vw, 22px);
  font-weight: 900;
  letter-spacing: 1.5px;
  white-space: nowrap;
  color: #f5f7fb;
}

.emblem-full {
  font-family: 'Inter', sans-serif;
  font-size: clamp(7px, 1.7vw, 9px);
  font-weight: 700;
  letter-spacing: 1.3px;
  white-space: nowrap;
  color: #aebbd0;
}

@media (max-width: 380px) {
  .emblem-main { font-size: 15px; }
  .emblem-full { font-size: 7px; letter-spacing: 1px; }
}

/* ===== SSG EMBLEM SOFT GLOW ===== */
.emblem-main {
  text-shadow:
    0 0 5px rgba(230,240,255,.65),
    0 0 14px rgba(90,165,255,.55),
    0 0 28px rgba(65,135,255,.30);
}

.emblem-full {
  text-shadow:
    0 0 6px rgba(150,190,255,.45),
    0 0 13px rgba(75,135,255,.25);
}

.emblem-ring {
  box-shadow:
    inset 0 0 35px rgba(255,255,255,.06),
    0 0 18px rgba(75,145,255,.15),
    0 15px 45px rgba(0,0,0,.35);
}

/* ===== SSG WALLPAPER + LIGHTWEIGHT LIQUID GLASS ===== */

body {
  background-color: #050914 !important;
  background-image: none !important;
}

/* Fixed wallpaper layer */
body::before {
  content: "" !important;
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: -2 !important;
  pointer-events: none !important;
  background:
    linear-gradient(rgba(3, 8, 20, .48), rgba(3, 8, 20, .62)),
    url("../assets/ssg-wallpaper.png") center center / cover no-repeat !important;
  opacity: 1 !important;
  filter: none !important;
  animation: none !important;
  will-change: auto !important;
}

/* Disable expensive animated reflection */
body::after {
  display: none !important;
  animation: none !important;
}

/* Lightweight transparent glass */
.navbar,
.card,
.stat-card,
.member-card,
.event-card,
.player-card,
.leaderboard-panel,
.event-hub,
.event-feature,
section .box {
  background: rgba(15, 24, 43, .48) !important;
  border: 1px solid rgba(210, 230, 255, .19) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, .18) !important;
}

/* Mobile: reduce rendering cost */
@media (max-width: 768px) {
  .navbar,
  .card,
  .stat-card,
  .member-card,
  .event-card,
  .player-card,
  .leaderboard-panel,
  .event-hub,
  .event-feature,
  section .box {
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after {
    animation: none !important;
  }
}


/* ===== SSG TRUE TRANSPARENT LIQUID GLASS ===== */

/* Main hero glass */
.hero {
  background: rgba(8, 16, 31, 0.40) !important;
  border: 1px solid rgba(220, 235, 255, 0.22) !important;
  -webkit-backdrop-filter: blur(7px) !important;
  backdrop-filter: blur(7px) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18) !important;
}

/* Floating Community and Global Chat */
.ssg-bottom-nav {
  background: rgba(35, 47, 65, 0.43) !important;
  border: 1px solid rgba(230, 240, 255, 0.32) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  backdrop-filter: blur(8px) !important;
}

.ssg-bottom-panel {
  background: rgba(15, 25, 42, 0.52) !important;
  border: 1px solid rgba(220, 235, 255, 0.25) !important;
  -webkit-backdrop-filter: blur(9px) !important;
  backdrop-filter: blur(9px) !important;
}

/* Transparent logo ring */
.emblem-ring {
  background: radial-gradient(
    circle,
    rgba(75, 105, 145, 0.22),
    rgba(20, 32, 52, 0.18) 65%,
    rgba(8, 15, 28, 0.12)
  ) !important;
  border-color: rgba(220, 235, 255, 0.35) !important;
}

/* Lightweight settings for smaller phones */
@media (max-width: 768px) {
  .hero {
    background: rgba(8, 16, 31, 0.43) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    backdrop-filter: blur(4px) !important;
  }

  .ssg-bottom-nav {
    -webkit-backdrop-filter: blur(5px) !important;
    backdrop-filter: blur(5px) !important;
  }

  .ssg-bottom-panel {
    -webkit-backdrop-filter: blur(6px) !important;
    backdrop-filter: blur(6px) !important;
  }
}


/* ===== FIXED WALLPAPER — VIEWPORT LAYER ===== */

html {
  min-height: 100%;
  background: #050914 !important;
}

body {
  position: relative;
  min-height: 100vh;
  background: transparent !important;
  isolation: isolate;
}

body::before {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: -1 !important;
  background:
    linear-gradient(rgba(3,8,20,.38), rgba(3,8,20,.48)),
    url("../assets/ssg-wallpaper.png") center center / cover no-repeat !important;
  pointer-events: none !important;
  transform: none !important;
}

body::after {
  display: none !important;
}


/* SSG ANSH — FULL ORIGINAL MEMBER PHOTO */
.ssg-member-photo-card {
  overflow: hidden;
}

.member-full-photo {
  display: block;
  width: 100%;
  height: 145px;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
}

.ssg-member-photo-card .player-info h3 {
  color: #f5f7ff;
  font-size: 18px;
}

.ssg-member-photo-card .player-role {
  color: #a9cfff;
  font-weight: 800;
}


/* ===== SSG ANSH FUTURISTIC 3D PLAYER CARD ===== */

.ssg-member-photo-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 10px;
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(0, 195, 255, .25), transparent 65%),
    linear-gradient(145deg, rgba(15, 35, 65, .88), rgba(5, 12, 28, .94));
  border: 1px solid rgba(91, 210, 255, .65);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, .45),
    0 0 18px rgba(0, 174, 255, .20),
    inset 0 1px 1px rgba(255, 255, 255, .25);
  transform: perspective(900px) rotateX(2deg);
  transition: transform .35s ease, box-shadow .35s ease;
}

.ssg-member-photo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    120deg,
    transparent 15%,
    rgba(100, 220, 255, .12) 45%,
    rgba(255, 255, 255, .20) 50%,
    transparent 65%
  );
  transform: translateX(-120%);
  animation: anshLightSweep 5s ease-in-out infinite;
}

.ssg-member-photo-card::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(125, 218, 255, .20);
  border-radius: 17px;
  pointer-events: none;
}

@keyframes anshLightSweep {
  0%, 55% { transform: translateX(-120%); }
  85%, 100% { transform: translateX(120%); }
}

.member-full-photo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 155px;
  object-fit: contain;
  object-position: center;
  border-radius: 15px;
  background:
    radial-gradient(ellipse, rgba(0, 170, 255, .16), rgba(3, 10, 24, .85));
  border: 1px solid rgba(91, 210, 255, .30);
  filter: drop-shadow(0 5px 12px rgba(0, 160, 255, .25));
}

.ssg-member-photo-card .player-info {
  position: relative;
  z-index: 2;
  padding: 12px 5px 5px;
}

.ssg-member-photo-card .player-role {
  color: #69dfff;
  font-size: 9px;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(0, 190, 255, .65);
}

.ssg-member-photo-card .player-info h3 {
  color: #f4fbff;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 1px;
  text-shadow: 0 0 15px rgba(0, 180, 255, .40);
}

.ssg-member-photo-card .player-uid {
  color: #b7d7ec;
  font-size: 10px;
}

.ssg-member-photo-card .player-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(100, 210, 255, .22);
  padding: 10px 5px 4px;
  color: #8edfff;
  font-size: 9px;
  letter-spacing: 1px;
}

@media (hover: hover) {
  .ssg-member-photo-card:hover {
    transform: perspective(900px) rotateY(-5deg) rotateX(4deg) translateY(-5px);
    box-shadow:
      0 18px 38px rgba(0, 0, 0, .5),
      0 0 28px rgba(0, 190, 255, .35),
      inset 0 1px 2px rgba(255, 255, 255, .3);
  }
}

@media (max-width: 480px) {
  .ssg-member-photo-card {
    padding: 8px;
    border-radius: 18px;
    transform: none;
  }

  .member-full-photo {
    height: 125px;
  }

  .ssg-member-photo-card .player-info h3 {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ssg-member-photo-card,
  .ssg-member-photo-card::before {
    animation: none;
    transition: none;
  }
}



/* SSG GAMING — MORE OPTIONS / ALL MEMBERS */
#all-members[hidden] {
  display: none !important;
}

.ssg-more-members-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(100%, 260px);
  min-height: 48px;
  margin: 24px auto 5px;
  padding: 12px 20px;
  color: #dff7ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
  border: 1px solid rgba(91, 210, 255, .55);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(20, 75, 112, .65), rgba(10, 25, 48, .78));
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25), inset 0 1px rgba(255,255,255,.16);
  cursor: pointer;
  transition: .25s ease;
}

.ssg-more-members-btn span {
  font-size: 19px;
  color: #66dcff;
}

.ssg-more-members-btn:active {
  transform: scale(.97);
}

.ssg-all-members-section {
  animation: ssgRosterReveal .4s ease both;
  scroll-margin-top: 24px;
}

@keyframes ssgRosterReveal {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.ssg-back-members-btn {
  margin-top: 28px;
}

@media (prefers-reduced-motion: reduce) {
  .ssg-all-members-section {
    animation: none;
  }
}

\n
/* ROSTER VISIBILITY FIX */
#all-members:not([hidden]) {
  display: block !important;
  content-visibility: visible !important;
  contain: none !important;
  visibility: visible !important;
  opacity: 1 !important;
}
\n
/* SSG MAX — FULL ORIGINAL GAME PROFILE */
.ssg-max-photo-card .member-full-photo {
  display: block;
  width: 100%;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center;
  aspect-ratio: auto !important;
  border-radius: 13px;
  background: rgba(5, 12, 25, .45);
}

/* SSG FIREBASE GOOGLE AUTH */
#ssgAuthScreen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(3, 8, 20, .94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
#ssgAuthScreen[hidden] { display: none !important; }
.ssg-auth-card {
  width: min(100%, 390px);
  padding: 34px 24px;
  text-align: center;
  border: 1px solid rgba(120,190,255,.3);
  border-radius: 26px;
  background: rgba(20,35,60,.72);
  box-shadow: 0 20px 70px rgba(0,0,0,.4);
}
.ssg-auth-logo {
  font: 800 42px Orbitron, sans-serif;
  color: #75caff;
  text-shadow: 0 0 25px #168bff;
}
.ssg-auth-tag {
  color: #82bfff;
  font: 700 10px Orbitron, sans-serif;
  letter-spacing: 3px;
}
.ssg-auth-card h1 {
  color: white;
  font: 700 23px Orbitron, sans-serif;
}
.ssg-auth-desc, #ssgAuthMessage {
  color: #c2d0e5;
  font: 13px Inter, sans-serif;
  line-height: 1.7;
}
#ssgGoogleLogin, #ssgGoogleLogout {
  width: 100%;
  margin-top: 20px;
  padding: 15px;
  border: 1px solid rgba(120,190,255,.5);
  border-radius: 13px;
  color: white;
  background: linear-gradient(110deg,#176fd5,#6238bb);
  font-weight: 800;
}
#ssgGoogleLogin:disabled { opacity: .6; }

/* SSG PLAYER REGISTRATION */
#ssgAuthScreen input {
  box-sizing: border-box;
  width: 100%;
  margin-top: 12px;
  padding: 15px;
  border: 1px solid rgba(120,190,255,.4);
  border-radius: 12px;
  outline: none;
  color: white;
  background: rgba(5,15,35,.7);
  text-align: center;
}
#ssgAuthScreen [hidden] { display: none !important; }
.ssg-google-photo {
  width: 76px;
  height: 76px;
  margin: 12px auto;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #75caff;
}
.ssg-logout-btn {
  background: transparent !important;
  border: 1px solid rgba(255,255,255,.2) !important;
}
#ssgAccountLogout {
  position: fixed;
  z-index: 1000;
  right: 14px;
  bottom: 16px;
  padding: 10px 14px;
  border: 1px solid rgba(120,190,255,.4);
  border-radius: 12px;
  color: white;
  background: #142b49;
  font-weight: 700;
}
#ssgAccountLogout[hidden] { display: none !important; }

/* FIX: SSG LOGIN FULLSCREEN OVERLAY */
body > #ssgAuthScreen {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 2147483647 !important;
  display: grid !important;
  place-items: center !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}
body > #ssgAuthScreen[hidden] {
  display: none !important;
}

/* SSG SEPARATE RAINBOW LOGIN PAGE */
body.ssg-gate-active > *:not(#ssgAuthScreen) {
  display: none !important;
}
body.ssg-gate-active {
  overflow: hidden !important;
}
body > #ssgAuthScreen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483647 !important;
  width: 100% !important;
  height: 100vh !important;
  height: 100dvh !important;
  display: grid !important;
  place-items: center !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 22px !important;
  background: linear-gradient(
    125deg,
    #ff315d,
    #ff8a26,
    #e7d52d,
    #31d69a,
    #268bff,
    #9148ff,
    #ff3cbd,
    #ff315d
  ) !important;
  background-size: 400% 400% !important;
  animation: ssgRainbowFlow 12s ease infinite !important;
}
@keyframes ssgRainbowFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
#ssgAuthScreen .ssg-auth-card {
  background: rgba(9, 13, 31, .82) !important;
  border: 1px solid rgba(255,255,255,.55) !important;
  box-shadow: 0 25px 90px rgba(0,0,0,.35) !important;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

body.ssg-site-checking { visibility:hidden !important; }

/* SSG LIVE FIRESTORE BADGES */
.ssg-live-badges{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:7px;
  margin-top:10px;
}
.ssg-live-badge{
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:5px 9px;
  border:1px solid color-mix(in srgb,var(--badge-color) 65%,transparent);
  border-radius:9px;
  background:color-mix(in srgb,var(--badge-color) 13%,transparent);
  color:var(--badge-color);
  font-size:10px;
  font-weight:800;
  letter-spacing:.6px;
}
.ssg-live-badge svg{
  width:17px;
  height:17px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex-shrink:0;
}

/* SSG GAMING - MOBILE GPU OPTIMIZATION */
@media (max-width: 768px) {

  /* Keep gold badge design, remove expensive continuous glow animation */
  .admin-v-badge,
  .admin-player-card .admin-identity .admin-v-badge {
    animation: none !important;
    filter: none !important;
  }

  /* Keep premium glass with lighter blur */
  .leaderboard-panel {
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }

  #ssgAuthScreen .ssg-auth-card {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  /* Keep rainbow colours without continuously repainting gradient */
  .podium-grid {
    animation: none !important;
    background-size: 100% 100% !important;
    background-position: center !important;
  }

  /* Smoother touch scrolling */
  html {
    -webkit-overflow-scrolling: touch;
  }
}

/* Respect device accessibility motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* SSG LIVE LEADERBOARD */
.podium-avatar img,
.ranking-live-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.podium-stats {
  display: block;
  margin-top: 7px;
  color: #ffd36b !important;
  font-size: 9px !important;
  line-height: 1.5;
}

.ranking-live-list {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}

.ranking-live-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,.045);
}

.ranking-live-rank {
  min-width: 34px;
  color: #ffd36b;
  font-family: Orbitron, sans-serif;
  font-size: 13px;
}

.ranking-live-avatar {
  width: 43px;
  height: 43px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1px solid var(--border);
  font-weight: 800;
}

.ranking-live-info {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.ranking-live-info strong {
  overflow-wrap: anywhere;
  font-size: 12px;
}

.ranking-live-info small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}


/* SSG LIVE EVENTS + ANNOUNCEMENTS */
#publicEventWhen{display:block;margin-top:8px;color:#b8d8f5;font-size:11px;line-height:1.6}
.public-event-list,.public-announcement-list{display:grid;gap:10px;margin:14px 0}
.public-event-card,.public-announcement-card{padding:13px;border:1px solid var(--border);border-radius:13px;background:rgba(255,255,255,.045)}
.public-event-card strong,.public-announcement-card strong{display:block;margin-bottom:6px;color:#fff;font-size:13px}
.public-event-card p,.public-announcement-card p{margin:0;color:var(--muted);font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.public-event-card small,.public-announcement-card small{display:block;margin-top:7px;color:#9fdcff;font-size:10px}

/* ===== SSG PREMIUM CHAT MESSAGE MENU ===== */

.ssg-chat-message {
  position: relative;
  padding: 12px 42px 12px 13px;
  overflow: visible;
}

.ssg-chat-menu {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 20;
}

.ssg-chat-dots {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.85);
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.ssg-chat-dots:active {
  transform: scale(.91);
  background: rgba(255,255,255,.16);
}

.ssg-chat-menu-popup {
  position: absolute;
  top: 34px;
  right: 0;
  width: 166px;
  padding: 5px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 13px;
  background: rgba(23,25,35,.94);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  box-shadow: 0 12px 32px rgba(0,0,0,.32);
  transform-origin: top right;
  animation: ssgChatMenuIn .16s ease-out;
}

.ssg-chat-menu-popup[hidden] {
  display: none !important;
}

.ssg-chat-menu-popup .ssg-chat-delete {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #ff777e;
  font-size: 12px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}

.ssg-chat-menu-popup .ssg-chat-delete::before {
  content: "♲";
  font-size: 17px;
}

.ssg-chat-menu-popup .ssg-chat-delete:active {
  background: rgba(255,90,100,.12);
}

.ssg-chat-message-header {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-right: 2px;
}

.ssg-chat-message-header small {
  opacity: .55;
  font-size: 10px;
}

@keyframes ssgChatMenuIn {
  from { opacity: 0; transform: translateY(-4px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* FIX: DELETE MENU TEXT VISIBILITY */
.ssg-chat-menu-popup {
  width: 125px !important;
  min-width: 125px;
  box-sizing: border-box;
  overflow: visible;
}

.ssg-chat-menu-popup .ssg-chat-delete {
  width: 100%;
  min-width: 0;
  white-space: nowrap;
  overflow: visible;
  box-sizing: border-box;
  padding: 9px 10px;
  gap: 7px;
  font-size: 13px;
}

.ssg-chat-menu-popup .ssg-chat-delete::before {
  flex: 0 0 auto;
}
