@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@600;700;800&family=Be+Vietnam+Pro:wght@400;500;600;700;800&family=Cinzel:wght@700;800;900&display=swap');

/* ==========================================================================
   SHINOBI ONLINE PORTAL v2 — DESIGN SYSTEM (Nostalgic Anime MMORPG 2010–2013)
   Mobile-First | Palette: #101827 / #17243A / #25364D / #D69A36 / #9F3030
   ========================================================================== */
:root {
  --sp-bg-main: #101827;
  --sp-bg-secondary: #17243A;
  --sp-bg-card: #25364D;
  --sp-bg-card-hover: #2C415C;
  --sp-bg-surface: rgba(23, 36, 58, 0.92);

  --sp-gold: #D69A36;
  --sp-gold-bright: #F0BC5E;
  --sp-gold-soft: rgba(214, 154, 54, 0.16);
  --sp-gold-border: rgba(214, 154, 54, 0.38);

  --sp-red: #9F3030;
  --sp-red-hover: #BA3B3B;
  --sp-red-deep: #782020;

  --sp-text: #F5F5F5;
  --sp-text-muted: #B7C4D5;
  --sp-text-dim: #8898AD;

  --sp-border-subtle: rgba(183, 196, 213, 0.16);
  --sp-status-online: #22C55E;
  --sp-status-upcoming: #F59E0B;
  --sp-status-maint: #EF4444;
  --sp-status-ended: #94A3B8;

  --sp-font-heading: 'Baloo 2', 'Cinzel', sans-serif;
  --sp-font-display: 'Cinzel', 'Baloo 2', serif;
  --sp-font-body: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;

  --sp-radius-sm: 6px;
  --sp-radius-md: 10px;
  --sp-radius-lg: 14px;
  --sp-shadow-card: 0 12px 30px rgba(7, 11, 19, 0.45);
  --sp-shadow-panel: 0 16px 40px rgba(5, 9, 16, 0.65);

  --sp-nav-h: 68px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--sp-nav-h) + 16px);
  overflow-x: clip;
}

body.sp-body {
  font-family: var(--sp-font-body);
  background-color: var(--sp-bg-main);
  color: var(--sp-text);
  line-height: 1.6;
  font-size: 15px;
  overflow-x: clip;
  min-height: 100vh;
}

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

a {
  color: var(--sp-gold-bright);
  text-decoration: none;
}

button, a.sp-btn, input, select {
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--sp-gold-bright);
  outline-offset: 2px;
}

.sp-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

/* --------------------------------------------------------------------------
   SHARED BUTTONS & BADGES (Touch >= 44x44px)
   -------------------------------------------------------------------------- */
.sp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--sp-radius-md);
  font-family: var(--sp-font-heading);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.sp-btn-primary {
  background: linear-gradient(180deg, var(--sp-red-hover) 0%, var(--sp-red) 55%, var(--sp-red-deep) 100%);
  border-color: var(--sp-gold);
  color: #FFF8EB;
  box-shadow: 0 6px 20px rgba(159, 48, 48, 0.45), inset 0 1px 0 rgba(255, 224, 150, 0.35);
}

.sp-btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #CC4343 0%, var(--sp-red-hover) 60%, var(--sp-red) 100%);
  border-color: var(--sp-gold-bright);
  box-shadow: 0 10px 26px rgba(159, 48, 48, 0.6), 0 0 14px rgba(214, 154, 54, 0.35);
  color: #FFFFFF;
}

.sp-btn-gold {
  background: linear-gradient(180deg, #E5AA46 0%, var(--sp-gold) 100%);
  border-color: #F7D488;
  color: #101827;
  box-shadow: 0 6px 18px rgba(214, 154, 54, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.sp-btn-gold:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, var(--sp-gold-bright) 0%, #E0A23B 100%);
  color: #101827;
}

.sp-btn-secondary {
  background: rgba(37, 54, 77, 0.9);
  border-color: var(--sp-gold-border);
  color: var(--sp-text);
}

.sp-btn-secondary:hover {
  background: var(--sp-bg-card-hover);
  border-color: var(--sp-gold-bright);
  color: var(--sp-gold-bright);
  transform: translateY(-1px);
}

.sp-btn-sm {
  min-height: 44px;
  padding: 8px 14px;
  font-size: 13.5px;
}

.sp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  border: 1px solid transparent;
  white-space: nowrap;
}

.sp-badge-online {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.45);
  color: #4ADE80;
}

.sp-badge-upcoming {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.45);
  color: #FCD34D;
}

.sp-badge-maint, .sp-badge-offline {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.45);
  color: #FCA5A5;
}

.sp-badge-ended {
  background: rgba(148, 163, 184, 0.16);
  border-color: rgba(148, 163, 184, 0.35);
  color: #CBD5E1;
}

.sp-badge-new {
  background: linear-gradient(135deg, var(--sp-red), #C2410C);
  border-color: var(--sp-gold);
  color: #FFF7E0;
}

.sp-badge-gold {
  background: var(--sp-gold-soft);
  border-color: var(--sp-gold-border);
  color: var(--sp-gold-bright);
}

.sp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.sp-dot-pulse {
  animation: spPulse 1.8s infinite ease-in-out;
}

@keyframes spPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.55; }
}

/* --------------------------------------------------------------------------
   SECTION HEADINGS & NOSTALGIC SCROLL CARDS
   -------------------------------------------------------------------------- */
.sp-section {
  padding: 56px 0;
  position: relative;
}

.sp-section-alt {
  background-color: var(--sp-bg-secondary);
  border-top: 1px solid rgba(214, 154, 54, 0.16);
  border-bottom: 1px solid rgba(214, 154, 54, 0.16);
}

.sp-section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 32px;
}

.sp-section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--sp-gold-bright);
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--sp-gold-soft);
  border: 1px solid var(--sp-gold-border);
  margin-bottom: 10px;
}

.sp-section-title {
  font-family: var(--sp-font-heading);
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 800;
  color: var(--sp-text);
  line-height: 1.2;
  margin-bottom: 10px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.sp-section-divider {
  width: 112px;
  height: 3px;
  margin: 0 auto 12px;
  background: linear-gradient(90deg, transparent, var(--sp-gold), transparent);
  position: relative;
}

.sp-section-divider::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  background: var(--sp-gold-bright);
  transform: translate(-50%, -50%) rotate(45deg);
}

.sp-section-desc {
  color: var(--sp-text-muted);
  font-size: 14.5px;
}

.sp-card {
  background: linear-gradient(180deg, rgba(37, 54, 77, 0.96) 0%, rgba(28, 42, 62, 0.98) 100%);
  border: 1px solid var(--sp-gold-border);
  border-radius: var(--sp-radius-lg);
  box-shadow: var(--sp-shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.sp-card:hover {
  border-color: var(--sp-gold-bright);
  box-shadow: 0 16px 34px rgba(5, 9, 16, 0.65), 0 0 0 1px rgba(214, 154, 54, 0.22);
}

.sp-empty-state {
  background: rgba(23, 36, 58, 0.8);
  border: 1px dashed var(--sp-gold-border);
  border-radius: var(--sp-radius-lg);
  padding: 36px 20px;
  text-align: center;
  color: var(--sp-text-muted);
}

.sp-empty-state i {
  font-size: 28px;
  color: var(--sp-gold);
  margin-bottom: 10px;
}

/* --------------------------------------------------------------------------
   1. HEADER / STICKY NAVIGATION (Zero Overflow Across 390px..1440px+)
   -------------------------------------------------------------------------- */
.sp-navbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--sp-nav-h);
  background: rgba(16, 24, 39, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(214, 154, 54, 0.42);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.55);
  z-index: 1000;
}

.sp-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: var(--sp-nav-h);
}

.sp-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-height: 44px;
}

.sp-brand-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.75));
}

.sp-nav-menu {
  display: none;
}

.sp-nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 4px;
}

.sp-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: var(--sp-radius-sm);
  color: var(--sp-text-muted);
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease;
}

.sp-nav-link:hover, .sp-nav-link.active {
  color: var(--sp-gold-bright);
  background: rgba(214, 154, 54, 0.12);
}

.sp-nav-dropdown {
  position: relative;
}

.sp-nav-dropdown-btn {
  background: none;
  border: none;
  cursor: pointer;
}

.sp-nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 220px;
  list-style: none;
  padding: 6px;
  border-radius: var(--sp-radius-md);
  background: var(--sp-bg-secondary);
  border: 1px solid var(--sp-gold-border);
  box-shadow: var(--sp-shadow-panel);
  display: none;
  z-index: 1050;
}

.sp-nav-dropdown:hover .sp-nav-dropdown-menu,
.sp-nav-dropdown.is-open .sp-nav-dropdown-menu {
  display: block;
}

.sp-nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--sp-radius-sm);
  color: var(--sp-text-muted);
  font-size: 13.5px;
  font-weight: 700;
}

.sp-nav-dropdown-menu a:hover {
  background: rgba(214, 154, 54, 0.14);
  color: var(--sp-gold-bright);
}

.sp-nav-dropdown-menu i {
  width: 16px;
  text-align: center;
  color: var(--sp-gold-bright);
}

.sp-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.sp-nav-auth-desktop {
  display: none;
  align-items: center;
  gap: 8px;
}

.sp-btn-nav-play {
  min-height: 44px;
  padding: 8px 14px;
  font-size: 13.5px;
}

.sp-btn-nav-donate {
  display: none;
}

.sp-mobile-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: var(--sp-radius-sm);
  border: 1px solid var(--sp-gold-border);
  background: rgba(37, 54, 77, 0.85);
  cursor: pointer;
  flex-shrink: 0;
}

.sp-mobile-toggle .menu-icon {
  width: 20px;
  height: 2px;
  background: var(--sp-gold-bright);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.sp-mobile-toggle.active .menu-icon:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.sp-mobile-toggle.active .menu-icon:nth-child(2) {
  opacity: 0;
}
.sp-mobile-toggle.active .menu-icon:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* User profile dropdown compatibility */
.sp-navbar .user-menu-wrapper {
  position: relative;
}

.sp-navbar .user-profile-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 4px 10px;
  border-radius: var(--sp-radius-md);
  background: rgba(37, 54, 77, 0.9);
  border: 1px solid var(--sp-gold-border);
  color: var(--sp-text);
  cursor: pointer;
}

.sp-navbar .user-avatar {
  color: var(--sp-gold-bright);
  font-size: 20px;
  display: flex;
}

.sp-navbar .user-info {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}

.sp-navbar .user-name {
  font-size: 13px;
  font-weight: 700;
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sp-navbar .user-status {
  font-size: 11px;
  color: var(--sp-status-online);
}

.sp-navbar .user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 235px;
  background: var(--sp-bg-secondary);
  border: 1px solid var(--sp-gold-border);
  border-radius: var(--sp-radius-md);
  box-shadow: var(--sp-shadow-panel);
  padding: 8px;
  display: none;
  z-index: 1050;
}

.sp-navbar .user-dropdown-menu.active {
  display: block;
}

.sp-navbar .dropdown-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
}

.sp-navbar .dropdown-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sp-gold-soft);
  border: 1px solid var(--sp-gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sp-gold-bright);
}

.sp-navbar .dropdown-username {
  font-weight: 700;
  color: var(--sp-text);
  font-size: 14px;
}

.sp-navbar .dropdown-user-id {
  font-size: 12px;
  color: var(--sp-text-muted);
}

.sp-navbar .dropdown-divider {
  height: 1px;
  background: var(--sp-border-subtle);
  margin: 6px 0;
}

.sp-navbar .dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--sp-radius-sm);
  color: var(--sp-text-muted);
  font-size: 13.5px;
  font-weight: 600;
}

.sp-navbar .dropdown-item:hover {
  background: rgba(214, 154, 54, 0.14);
  color: var(--sp-gold-bright);
}

.sp-navbar .logout-item:hover {
  background: rgba(239, 68, 68, 0.16);
  color: #FCA5A5;
}

/* Mobile Nav Panel */
.sp-mobile-panel {
  position: fixed;
  top: var(--sp-nav-h);
  left: 0;
  width: 100%;
  max-height: calc(100vh - var(--sp-nav-h));
  overflow-y: auto;
  background: rgba(16, 24, 39, 0.98);
  border-bottom: 2px solid var(--sp-gold-border);
  padding: 16px;
  display: none;
  z-index: 999;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

.sp-mobile-panel.active {
  display: block;
}

.sp-mobile-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.sp-mobile-links .mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: var(--sp-radius-md);
  background: rgba(37, 54, 77, 0.55);
  border: 1px solid var(--sp-border-subtle);
  color: var(--sp-text);
  font-weight: 700;
  font-size: 14.5px;
}

.sp-mobile-links .mobile-nav-link i {
  color: var(--sp-gold-bright);
  width: 18px;
  text-align: center;
}

.sp-mobile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* --------------------------------------------------------------------------
   2. HERO BANNER
   -------------------------------------------------------------------------- */
.sp-hero {
  position: relative;
  padding: 28px 0 42px;
  background-color: var(--sp-bg-main);
  background-image:
    linear-gradient(180deg, rgba(16, 24, 39, 0.58) 0%, rgba(16, 24, 39, 0.72) 55%, var(--sp-bg-main) 100%),
    radial-gradient(circle at 75% 32%, rgba(214, 154, 54, 0.16) 0%, transparent 55%),
    url('/asset/shinobi_bg_hd.jpg');
  background-size: cover;
  background-position: center top;
  border-bottom: 2px solid rgba(214, 154, 54, 0.35);
}

.sp-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

.sp-hero-content {
  text-align: center;
}

.sp-hero-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.sp-hero-logo {
  width: min(190px, 54vw);
  height: auto;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.8));
}

.sp-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(16, 24, 39, 0.85);
  border: 1px solid var(--sp-gold);
  color: var(--sp-gold-bright);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.sp-hero-title {
  font-family: var(--sp-font-heading);
  font-size: clamp(1.75rem, 4.5vw, 2.85rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--sp-text);
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.9);
  margin-bottom: 10px;
}

.sp-hero-slogan {
  display: block;
  color: var(--sp-gold-bright);
  font-size: clamp(1.1rem, 2.5vw, 1.55rem);
  font-weight: 800;
  margin-top: 4px;
}

.sp-hero-desc {
  color: #DCE5F2;
  font-size: 14.5px;
  max-width: 600px;
  margin: 0 auto 20px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

.sp-hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.sp-hero-ctas .sp-btn {
  width: 100%;
}

.sp-hero-status-pill {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
  padding: 4px 14px;
  border-radius: var(--sp-radius-md);
  background: rgba(16, 24, 39, 0.86);
  border: 1px solid var(--sp-gold-border);
  font-size: 13px;
  color: var(--sp-text-muted);
}

.sp-hero-status-pill a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
}

.sp-hero-status-pill strong {
  color: var(--sp-text);
}

.sp-daily-maint-note {
  margin-top: 12px;
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--sp-radius-md);
  background: rgba(16, 24, 39, 0.88);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #E2E8F0;
  font-size: 12.5px;
  text-align: left;
}

.sp-daily-maint-note i {
  color: #FBBF24;
  margin-top: 3px;
}

/* Right Portal Spotlight Panel */
.sp-hero-portal-box {
  background: linear-gradient(180deg, rgba(23, 36, 58, 0.94) 0%, rgba(16, 24, 39, 0.96) 100%);
  border: 1.5px solid var(--sp-gold-border);
  border-radius: var(--sp-radius-lg);
  overflow: hidden;
  box-shadow: var(--sp-shadow-panel);
}

.sp-portal-box-art {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--sp-gold-border);
}

.sp-portal-box-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.sp-portal-box-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px 14px 10px;
  background: linear-gradient(180deg, transparent, rgba(16, 24, 39, 0.94));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sp-portal-box-body {
  padding: 14px 16px 16px;
}

.sp-quick-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sp-quick-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 9px 12px;
  border-radius: var(--sp-radius-sm);
  background: rgba(37, 54, 77, 0.72);
  border: 1px solid var(--sp-border-subtle);
  font-size: 13px;
  color: var(--sp-text);
}

.sp-portal-box-caption a,
.sp-gift-howto a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
}

.sp-quick-item:hover {
  border-color: var(--sp-gold);
  background: rgba(37, 54, 77, 0.95);
}

/* Open countdown card compatibility */
.sp-open-card {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: var(--sp-radius-md);
  background: rgba(23, 36, 58, 0.9);
  border: 1px solid var(--sp-gold);
}

.open-countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 10px 0;
}

.open-countdown-box {
  min-width: 54px;
  padding: 6px 8px;
  border-radius: var(--sp-radius-sm);
  background: var(--sp-bg-card);
  border: 1px solid var(--sp-gold-border);
  text-align: center;
}

.countdown-num {
  display: block;
  font-family: var(--sp-font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--sp-gold-bright);
  line-height: 1.1;
}

.countdown-label {
  font-size: 11px;
  color: var(--sp-text-muted);
}

.countdown-sep {
  font-weight: 800;
  color: var(--sp-gold);
}

/* --------------------------------------------------------------------------
   3. SERVER SELECTION
   -------------------------------------------------------------------------- */
.sp-servers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.sp-server-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.sp-server-card.is-primary {
  border-width: 1.5px;
  border-color: var(--sp-gold);
  background: linear-gradient(135deg, rgba(37, 54, 77, 0.98) 0%, rgba(23, 36, 58, 0.98) 100%);
}

.sp-server-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.sp-server-emblem {
  width: 52px;
  height: 52px;
  border-radius: var(--sp-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  border: 1px solid var(--sp-gold-border);
  background: rgba(16, 24, 39, 0.55);
  color: var(--sp-gold-bright);
}

.sp-server-emblem.is-leaf {
  color: #4ADE80;
  border-color: rgba(74, 222, 128, 0.45);
}

.sp-server-emblem.is-sand {
  color: #FBBF24;
  border-color: rgba(251, 191, 36, 0.45);
}

.sp-server-meta {
  flex: 1;
  min-width: 0;
}

.sp-server-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.sp-server-name {
  font-family: var(--sp-font-heading);
  font-size: 19px;
  font-weight: 800;
  color: var(--sp-text);
}

.sp-server-realm {
  font-size: 13.5px;
  color: var(--sp-text-muted);
}

.sp-server-date {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--sp-gold-bright);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sp-server-actions .sp-btn {
  width: 100%;
}

/* --------------------------------------------------------------------------
   4. TIN TỨC / NEWS
   -------------------------------------------------------------------------- */
.sp-news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.sp-news-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sp-news-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--sp-bg-main);
  border-bottom: 1px solid var(--sp-border-subtle);
}

.sp-news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.sp-news-cat {
  position: absolute;
  top: 10px;
  left: 10px;
}

.sp-news-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.sp-news-date {
  font-size: 12px;
  color: var(--sp-text-dim);
  margin-bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sp-news-title {
  font-family: var(--sp-font-heading);
  font-size: 17px;
  font-weight: 800;
  color: var(--sp-text);
  line-height: 1.3;
  margin-bottom: 8px;
}

.sp-news-excerpt {
  font-size: 13.5px;
  color: var(--sp-text-muted);
  margin-bottom: 14px;
  flex: 1;
}

.sp-news-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--sp-gold-bright);
}

.sp-news-link:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   5. SỰ KIỆN / EVENTS + LIVE BOSS COUNTDOWN
   -------------------------------------------------------------------------- */
.sp-boss-ticker {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  margin-bottom: 20px;
  border-radius: var(--sp-radius-lg);
  background: linear-gradient(90deg, rgba(159, 48, 48, 0.24) 0%, rgba(37, 54, 77, 0.96) 55%, rgba(23, 36, 58, 0.96) 100%);
  border: 1.5px solid var(--sp-gold-border);
}

.sp-boss-ticker.is-live {
  border-color: #EF4444;
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.22);
}

.sp-boss-ticker-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sp-boss-live-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--sp-gold-bright);
  box-shadow: 0 0 10px var(--sp-gold-bright);
  flex-shrink: 0;
}

.sp-boss-ticker.is-live .sp-boss-live-dot {
  background: #EF4444;
  box-shadow: 0 0 12px #EF4444;
  animation: spPulse 1.4s infinite;
}

.sp-boss-ticker-label {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: var(--sp-gold-bright);
  text-transform: uppercase;
}

.sp-boss-ticker-name {
  font-family: var(--sp-font-heading);
  font-size: 17px;
  font-weight: 800;
  color: var(--sp-text);
}

.sp-boss-ticker-right {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sp-boss-timer {
  font-family: var(--sp-font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--sp-gold-bright);
  background: rgba(16, 24, 39, 0.72);
  padding: 6px 12px;
  border-radius: var(--sp-radius-sm);
  border: 1px solid var(--sp-gold-border);
}

.sp-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 22px;
}

.sp-filter-tab {
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--sp-border-subtle);
  background: rgba(37, 54, 77, 0.65);
  color: var(--sp-text-muted);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.sp-filter-tab:hover {
  border-color: var(--sp-gold);
  color: var(--sp-text);
}

.sp-filter-tab.is-active {
  background: var(--sp-red);
  border-color: var(--sp-gold);
  color: #FFF8EB;
}

/* Boss Grouping, Expandable Details & Top Event Strip */
.sp-boss-group-title {
  font-family: var(--sp-font-heading);
  font-size: 17px;
  font-weight: 800;
  color: var(--sp-gold-bright);
  margin: 22px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sp-boss-expand {
  border-radius: var(--sp-radius-sm);
  background: rgba(16, 24, 39, 0.55);
  border: 1px solid var(--sp-border-subtle);
  padding: 0;
}

.sp-boss-expand summary {
  list-style: none;
  min-height: 44px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--sp-text);
}

.sp-boss-expand summary::-webkit-details-marker {
  display: none;
}

.sp-boss-expand[open] summary i.fa-chevron-down {
  transform: rotate(180deg);
}

.sp-boss-expand-body {
  padding: 0 12px 12px;
  border-top: 1px solid var(--sp-border-subtle);
  font-size: 12.5px;
  color: var(--sp-text-muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
}

.sp-boss-expand-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sp-boss-expand-list li::before {
  content: "• ";
  color: var(--sp-gold-bright);
}

.sp-top-event-banner {
  margin-top: 22px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sp-classes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.sp-class-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sp-class-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sp-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .sp-classes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sp-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sp-top-event-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .sp-showcase-layout {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
  }
  .sp-classes-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .sp-features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.sp-events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.sp-event-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sp-event-card.is-hidden {
  display: none;
}

.sp-event-banner {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--sp-border-subtle);
}

.sp-event-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 12, 20, 0.72) 0%, rgba(8, 12, 20, 0.15) 55%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.sp-event-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sp-event-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 5px;
  flex-wrap: wrap;
  z-index: 2;
}

.sp-event-badges .sp-badge {
  background: rgba(9, 14, 24, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 9px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.65);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

.sp-event-badges .sp-badge-gold {
  border-color: rgba(242, 184, 75, 0.85);
  color: #FDE68A;
}

.sp-event-badges .sp-badge-upcoming {
  border-color: rgba(251, 191, 36, 0.85);
  color: #FDE047;
}

.sp-event-badges .sp-badge-online {
  background: rgba(6, 46, 26, 0.94);
  border-color: rgba(74, 222, 128, 0.85);
  color: #86EFAC;
}

.sp-event-badges .sp-badge-ended {
  background: rgba(15, 23, 42, 0.94);
  border-color: rgba(148, 163, 184, 0.65);
  color: #E2E8F0;
}

.sp-event-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.sp-event-title {
  font-family: var(--sp-font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--sp-text);
  line-height: 1.25;
}

.sp-event-time {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--sp-gold-bright);
  font-weight: 600;
}

.sp-event-reward-desc {
  font-size: 13.5px;
  color: var(--sp-text-muted);
  flex: 1;
}

.sp-event-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sp-item-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: var(--sp-radius-sm);
  background: rgba(16, 24, 39, 0.55);
  border: 1px solid var(--sp-border-subtle);
  font-size: 12px;
  color: var(--sp-text);
}

.sp-item-chip img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* --------------------------------------------------------------------------
   6. GAMEPLAY SHOWCASE (Screenshots Lightbox + Real Videos)
   -------------------------------------------------------------------------- */
.sp-showcase-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.sp-gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.sp-gallery-item {
  position: relative;
  border-radius: var(--sp-radius-md);
  overflow: hidden;
  border: 1px solid var(--sp-gold-border);
  background: var(--sp-bg-card);
  cursor: pointer;
  padding: 0;
  text-align: left;
  min-height: 44px;
}

.sp-gallery-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.sp-gallery-item:hover img {
  transform: scale(1.04);
}

.sp-gallery-caption {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--sp-text);
}

.sp-gallery-caption i {
  color: var(--sp-gold-bright);
}

.sp-video-box {
  padding: 16px;
}

.sp-video-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.sp-video-tabs .video-tab-btn {
  min-height: 44px;
  padding: 8px 16px;
  border-radius: var(--sp-radius-md);
  border: 1px solid var(--sp-gold-border);
  background: rgba(16, 24, 39, 0.7);
  color: var(--sp-text-muted);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sp-video-tabs .video-tab-btn.active {
  background: var(--sp-red);
  border-color: var(--sp-gold);
  color: #FFF8EB;
}

.sp-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--sp-radius-md);
  overflow: hidden;
  border: 1px solid var(--sp-gold-border);
  background: #0B111C;
}

.sp-video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.sp-video-facade {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #0B111C;
  cursor: pointer;
  display: block;
}

.sp-video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.84);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.sp-video-facade:hover img {
  transform: scale(1.03);
  filter: brightness(0.95);
}

.sp-video-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sp-red-hover), var(--sp-red));
  border: 2.5px solid var(--sp-gold-bright);
  color: #FFF8EB;
  font-size: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.75);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sp-video-facade:hover .sp-video-play-btn {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 14px 36px rgba(159, 48, 48, 0.75), 0 0 18px rgba(214, 154, 54, 0.5);
}

.sp-video-facade-label {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 12px;
  border-radius: var(--sp-radius-sm);
  background: rgba(16, 24, 39, 0.88);
  border: 1px solid var(--sp-gold-border);
  color: var(--sp-text);
  font-size: 13px;
  font-weight: 700;
}

/* Lightbox Modal */
.sp-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 20, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 2000;
}

.sp-lightbox.is-open {
  display: flex;
}

.sp-lightbox-dialog {
  max-width: 1020px;
  width: 100%;
  background: var(--sp-bg-secondary);
  border: 1.5px solid var(--sp-gold);
  border-radius: var(--sp-radius-lg);
  overflow: hidden;
  position: relative;
}

.sp-lightbox-img {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  background: #0B111C;
}

.sp-lightbox-bar {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--sp-border-subtle);
}

.sp-lightbox-controls {
  display: flex;
  gap: 8px;
}

.sp-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--sp-radius-sm);
  border: 1px solid var(--sp-gold-border);
  background: var(--sp-bg-card);
  color: var(--sp-text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sp-icon-btn:hover {
  border-color: var(--sp-gold-bright);
  color: var(--sp-gold-bright);
}

/* --------------------------------------------------------------------------
   7. HỆ THỐNG GAME (4 Môn Phái + 4 Hệ Thống Cốt Lõi + Huy Hiệu Danh Hiệu)
   -------------------------------------------------------------------------- */
.sp-systems-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.sp-system-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sp-system-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sp-system-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--sp-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: var(--sp-gold-soft);
  border: 1px solid var(--sp-gold-border);
  color: var(--sp-gold-bright);
  flex-shrink: 0;
}

.sp-system-icon.is-red {
  background: rgba(159, 48, 48, 0.25);
  border-color: rgba(239, 68, 68, 0.45);
  color: #FCA5A5;
}

.sp-system-icon.is-sky {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.4);
  color: #7DD3FC;
}

.sp-system-icon.is-purple {
  background: rgba(168, 85, 247, 0.16);
  border-color: rgba(168, 85, 247, 0.4);
  color: #D8B4FE;
}

.sp-system-name {
  font-family: var(--sp-font-heading);
  font-size: 17px;
  font-weight: 800;
  color: var(--sp-text);
}

.sp-system-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--sp-gold-bright);
}

.sp-system-desc {
  font-size: 13.5px;
  color: var(--sp-text-muted);
  flex: 1;
}

.sp-titles-strip {
  margin-top: 24px;
  padding: 16px;
  border-radius: var(--sp-radius-lg);
  background: rgba(16, 24, 39, 0.65);
  border: 1px solid var(--sp-gold-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sp-titles-strip-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  align-items: center;
}

.sp-titles-strip-items img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

/* --------------------------------------------------------------------------
   8. GIFTCODE HUB (Public codes từ announcements_cron.txt + web_giftcodes)
   -------------------------------------------------------------------------- */
.sp-gift-group-title {
  font-family: var(--sp-font-heading);
  font-size: 17px;
  font-weight: 800;
  color: var(--sp-gold-bright);
  margin: 22px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sp-gift-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.sp-gift-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sp-gift-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.sp-gift-title {
  font-family: var(--sp-font-heading);
  font-size: 16.5px;
  font-weight: 800;
  color: var(--sp-text);
}

.sp-gift-code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--sp-radius-md);
  background: rgba(16, 24, 39, 0.8);
  border: 1px dashed var(--sp-gold);
}

.sp-gift-code-text {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--sp-gold-bright);
}

.sp-gift-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sp-gift-actions .sp-btn {
  flex: 1;
}

.sp-gift-howto {
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: var(--sp-radius-md);
  background: rgba(37, 54, 77, 0.72);
  border: 1px solid var(--sp-border-subtle);
  font-size: 13.5px;
  color: var(--sp-text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   9. HƯỚNG DẪN TÂN THỦ (5 Bước)
   -------------------------------------------------------------------------- */
.sp-guide-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.sp-guide-step {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.sp-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sp-red-hover), var(--sp-red));
  border: 1.5px solid var(--sp-gold);
  color: #FFF8EB;
  font-family: var(--sp-font-heading);
  font-weight: 800;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sp-step-title {
  font-family: var(--sp-font-heading);
  font-size: 16.5px;
  font-weight: 800;
  color: var(--sp-text);
}

.sp-step-desc {
  font-size: 13.5px;
  color: var(--sp-text-muted);
}

.sp-guide-cta-wrap {
  margin-top: 24px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   10. COMMUNITY & FOOTER
   -------------------------------------------------------------------------- */
.sp-community-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.sp-community-card {
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
}

.sp-community-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--sp-radius-md);
  background: var(--sp-gold-soft);
  border: 1px solid var(--sp-gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--sp-gold-bright);
  flex-shrink: 0;
}

.sp-footer {
  background: #0B111C;
  border-top: 2px solid var(--sp-gold-border);
  padding: 36px 0 92px;
  color: var(--sp-text-muted);
  font-size: 13.5px;
}

.sp-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.sp-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sp-footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--sp-text-muted);
}

.sp-footer-links a:hover {
  color: var(--sp-gold-bright);
}

.sp-footer-bottom {
  border-top: 1px solid var(--sp-border-subtle);
  padding-top: 18px;
  text-align: center;
  font-size: 12.5px;
  color: var(--sp-text-dim);
}

/* Mobile Sticky Play Bar */
.sp-mobile-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 16px;
  background: rgba(16, 24, 39, 0.96);
  border-top: 1.5px solid var(--sp-gold-border);
  display: flex;
  gap: 10px;
  z-index: 950;
  backdrop-filter: blur(10px);
}

.sp-mobile-sticky-cta .sp-btn {
  flex: 1;
}

/* Toast Notification */
.ninja-toast {
  position: fixed;
  right: 16px;
  bottom: 76px;
  max-width: calc(100vw - 32px);
  background: var(--sp-bg-secondary);
  border: 1.5px solid var(--sp-gold);
  border-radius: var(--sp-radius-md);
  padding: 12px 16px;
  color: var(--sp-text);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--sp-shadow-panel);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 3000;
}

.ninja-toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   RESPONSIVE BREAKPOINTS (Mobile-First)
   -------------------------------------------------------------------------- */
@media (min-width: 640px) {
  .sp-hero-ctas {
    flex-direction: row;
    justify-content: center;
  }
  .sp-hero-ctas .sp-btn {
    width: auto;
  }
  .sp-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sp-community-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sp-footer {
    padding-bottom: 36px;
  }
  .sp-mobile-sticky-cta {
    display: none;
  }
}

@media (min-width: 768px) {
  .sp-hero-logo {
    width: min(250px, 65vw);
  }
  .sp-container {
    padding: 0 24px;
  }
  .sp-btn-nav-donate {
    display: inline-flex;
  }
  .sp-nav-auth-desktop {
    display: flex;
  }
  .sp-servers-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
  .sp-news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Boss Grouping, Expandable Details & Top Event Strip */
.sp-boss-group-title {
  font-family: var(--sp-font-heading);
  font-size: 17px;
  font-weight: 800;
  color: var(--sp-gold-bright);
  margin: 22px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sp-boss-expand {
  border-radius: var(--sp-radius-sm);
  background: rgba(16, 24, 39, 0.55);
  border: 1px solid var(--sp-border-subtle);
  padding: 0;
}

.sp-boss-expand summary {
  list-style: none;
  min-height: 44px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--sp-text);
}

.sp-boss-expand summary::-webkit-details-marker {
  display: none;
}

.sp-boss-expand[open] summary i.fa-chevron-down {
  transform: rotate(180deg);
}

.sp-boss-expand-body {
  padding: 0 12px 12px;
  border-top: 1px solid var(--sp-border-subtle);
  font-size: 12.5px;
  color: var(--sp-text-muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
}

.sp-boss-expand-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sp-boss-expand-list li::before {
  content: "• ";
  color: var(--sp-gold-bright);
}

.sp-top-event-banner {
  margin-top: 22px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sp-classes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.sp-class-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sp-class-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sp-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .sp-classes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sp-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sp-top-event-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .sp-showcase-layout {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
  }
  .sp-classes-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .sp-features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.sp-events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sp-systems-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sp-gift-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sp-guide-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .sp-boss-ticker {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .sp-footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
  .sp-community-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .sp-nav-menu {
    display: block;
  }
  .sp-mobile-toggle,
  .sp-mobile-panel {
    display: none !important;
  }
  .sp-hero {
    padding: 44px 0 54px;
  }
  .sp-hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 32px;
  }
  .sp-hero-content {
    text-align: left;
  }
  .sp-hero-logo-wrap {
    justify-content: flex-start;
  }
  .sp-hero-desc {
    margin-left: 0;
  }
  .sp-hero-ctas {
    justify-content: flex-start;
  }
  /* Boss Grouping, Expandable Details & Top Event Strip */
.sp-boss-group-title {
  font-family: var(--sp-font-heading);
  font-size: 17px;
  font-weight: 800;
  color: var(--sp-gold-bright);
  margin: 22px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sp-boss-expand {
  border-radius: var(--sp-radius-sm);
  background: rgba(16, 24, 39, 0.55);
  border: 1px solid var(--sp-border-subtle);
  padding: 0;
}

.sp-boss-expand summary {
  list-style: none;
  min-height: 44px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--sp-text);
}

.sp-boss-expand summary::-webkit-details-marker {
  display: none;
}

.sp-boss-expand[open] summary i.fa-chevron-down {
  transform: rotate(180deg);
}

.sp-boss-expand-body {
  padding: 0 12px 12px;
  border-top: 1px solid var(--sp-border-subtle);
  font-size: 12.5px;
  color: var(--sp-text-muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
}

.sp-boss-expand-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sp-boss-expand-list li::before {
  content: "• ";
  color: var(--sp-gold-bright);
}

.sp-top-event-banner {
  margin-top: 22px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sp-classes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.sp-class-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sp-class-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sp-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .sp-classes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sp-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sp-top-event-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .sp-showcase-layout {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
  }
  .sp-classes-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .sp-features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.sp-events-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .sp-systems-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .sp-gift-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .sp-guide-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (min-width: 1280px) {
  .sp-news-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .sp-nav-link {
    padding: 8px 12px;
    font-size: 14px;
  }
}

/* --------------------------------------------------------------------------
   SELF-CONTAINED AUTH / TERMS / SERVER MODALS
   (Đặt trực tiếp trong shinobi-portal-v2.css để không phụ thuộc CDN CSS phụ)
   -------------------------------------------------------------------------- */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.auth-modal.active {
  display: flex;
}

.auth-modal .modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 20, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1;
}

.auth-modal .modal-container {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--sp-bg-secondary);
  border: 1.5px solid var(--sp-gold-border);
  border-radius: var(--sp-radius-lg);
  box-shadow: var(--sp-shadow-panel);
  z-index: 2;
}

.auth-modal .modal-container.terms-modal-container {
  max-width: 680px;
}

.auth-modal .modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--sp-border-subtle);
  background: rgba(37, 54, 77, 0.7);
  color: var(--sp-text-muted);
  border-radius: var(--sp-radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 10;
}

.auth-modal .modal-close:hover {
  background: rgba(159, 48, 48, 0.45);
  border-color: var(--sp-gold);
  color: #FFF8EB;
}

.auth-modal .modal-content {
  padding: 28px 24px 24px;
}

.auth-modal .modal-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.auth-modal .modal-logo img {
  height: 52px;
  width: auto;
}

.auth-modal .modal-title {
  font-family: var(--sp-font-heading);
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  color: var(--sp-text);
  margin-bottom: 4px;
}

.auth-modal .modal-subtitle {
  font-size: 13px;
  text-align: center;
  color: var(--sp-text-muted);
  margin-bottom: 18px;
}

.auth-modal .auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-modal .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-modal .form-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--sp-text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.auth-modal .form-label i {
  color: var(--sp-gold-bright);
  font-size: 12px;
}

.auth-modal .form-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  background: rgba(16, 24, 39, 0.85);
  border: 1.5px solid var(--sp-border-subtle);
  border-radius: var(--sp-radius-sm);
  color: var(--sp-text);
  font-size: 14px;
}

.auth-modal .form-input:focus {
  outline: none;
  border-color: var(--sp-gold-bright);
}

.auth-modal .form-input.is-invalid {
  border-color: #EF4444 !important;
}

.auth-modal .form-input.is-valid {
  border-color: #22C55E !important;
}

.auth-modal .input-with-icon {
  position: relative;
}

.auth-modal .input-with-icon .form-input {
  padding-right: 46px;
}

.auth-modal .input-icon-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  color: var(--sp-text-dim);
  cursor: pointer;
}

.auth-modal .field-error {
  display: none;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #FCA5A5;
}

.auth-modal .field-error.show {
  display: flex;
}

.auth-modal .form-hint {
  display: none;
  font-size: 11.5px;
  color: var(--sp-text-muted);
}

.auth-modal .form-group:focus-within .form-hint {
  display: block;
}

.auth-modal .form-group.has-error .form-hint {
  display: none !important;
}

.auth-modal .password-meter-wrap {
  display: none;
  flex-direction: column;
  gap: 4px;
}

.auth-modal .form-group:focus-within .password-meter-wrap.show {
  display: flex;
}

.auth-modal .password-meter-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.auth-modal .password-meter-fill {
  height: 100%;
  width: 0;
  transition: width 0.25s ease;
}

.auth-modal .password-meter-fill.weak { width: 33%; background: #EF4444; }
.auth-modal .password-meter-fill.medium { width: 66%; background: #F59E0B; }
.auth-modal .password-meter-fill.strong { width: 100%; background: #22C55E; }
.auth-modal .password-meter-text { font-size: 11px; text-align: right; color: var(--sp-text-muted); }
.auth-modal .password-meter-text.weak { color: #FCA5A5; }
.auth-modal .password-meter-text.medium { color: #FCD34D; }
.auth-modal .password-meter-text.strong { color: #4ADE80; }

.auth-modal .form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.auth-modal .checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--sp-text-muted);
  cursor: pointer;
}

.auth-modal .checkbox-label input[type="checkbox"] {
  display: none;
}

.auth-modal .checkbox-custom {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--sp-gold-border);
  border-radius: 4px;
  background: rgba(16, 24, 39, 0.8);
  position: relative;
  flex-shrink: 0;
}

.auth-modal .checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
  background: var(--sp-gold);
  border-color: var(--sp-gold-bright);
}

.auth-modal .checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #101827;
  font-size: 10px;
}

.auth-modal .form-link,
.auth-modal .link-btn {
  color: var(--sp-gold-bright);
  font-size: 12.5px;
  font-weight: 700;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.auth-modal .btn-submit {
  width: 100%;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: var(--sp-radius-md);
  border: 1.5px solid var(--sp-gold);
  background: linear-gradient(180deg, var(--sp-red-hover) 0%, var(--sp-red) 100%);
  color: #FFF8EB;
  font-family: var(--sp-font-heading);
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.auth-modal .btn-submit:hover {
  border-color: var(--sp-gold-bright);
  filter: brightness(1.06);
}

.auth-modal .modal-footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--sp-border-subtle);
  text-align: center;
  font-size: 13px;
  color: var(--sp-text-muted);
}

.terms-scroll-body {
  max-height: 50vh;
  overflow-y: auto;
  padding-right: 10px;
  margin: 14px 0;
  text-align: left;
}

.terms-item { margin-bottom: 16px; }
.terms-item-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--sp-gold-bright);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.terms-item-desc { font-size: 13.5px; color: var(--sp-text-muted); line-height: 1.6; }
.terms-badge-notice {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: var(--sp-radius-sm);
  background: rgba(159, 48, 48, 0.22);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #FCA5A5;
  font-size: 12.5px;
}

@keyframes shakeForm {
  0%, 100% { transform: translateX(0); }
  25%, 75% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
}
.btn-shake { animation: shakeForm 0.35s ease; }

/* ==========================================================================
   13. CLASSIC 2011 WEBGAME PORTAL ARCHITECTURE (IMAGE 1 + IMAGE 2 HYBRID)
   ========================================================================== */

/* Clean single-line classic navigation items + Upgraded Navbar Background */
.sp-navbar {
  background:
    radial-gradient(ellipse 55% 120% at 50% 0%, rgba(214, 154, 54, 0.16) 0%, transparent 70%),
    linear-gradient(180deg, rgba(24, 36, 58, 0.96) 0%, rgba(12, 19, 32, 0.98) 100%);
  border-bottom: 1.5px solid rgba(214, 154, 54, 0.52);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 226, 158, 0.14);
}

.sp-nav-link {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 13px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  border-radius: 8px 8px 4px 4px;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.sp-nav-link:hover {
  background: rgba(214, 154, 54, 0.1);
  color: #FFF8EB;
}

.sp-nav-link.active {
  background: linear-gradient(180deg, rgba(214, 154, 54, 0.2) 0%, rgba(214, 154, 54, 0.05) 100%);
  border-bottom-color: var(--sp-gold-bright);
  color: var(--sp-gold-bright);
  box-shadow: inset 0 1px 0 rgba(255, 232, 175, 0.18);
}

.sp-nav-sep {
  display: none;
  width: 1px;
  height: 26px;
  background: linear-gradient(180deg, transparent, rgba(214, 154, 54, 0.45), transparent);
  margin: 0 2px;
}

@media (min-width: 1024px) {
  .sp-nav-sep {
    display: inline-block;
  }
}

/* Classic Hero Stage with authentic 2011 3D Chibi character cutouts */
.sp-hero-classic {
  padding-bottom: 24px;
}

.sp-hero-art-stage {
  position: relative;
  border-radius: var(--sp-radius-lg);
  border: 2px solid var(--sp-gold);
  background:
    radial-gradient(circle at 65% 35%, rgba(242, 184, 75, 0.25), transparent 60%),
    linear-gradient(160deg, rgba(16, 24, 39, 0.45) 0%, rgba(16, 24, 39, 0.92) 100%),
    url('/asset/shinobi_bg_hd.jpg') center/cover no-repeat;
  min-height: 350px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 232, 175, 0.35);
  overflow: hidden;
}

.sp-hero-art-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 3;
}

.sp-hero-art-badges .sp-badge {
  background: rgba(11, 17, 28, 0.86);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  min-height: 36px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 800;
}

.sp-hero-art-badges .sp-badge-gold {
  border-color: rgba(242, 184, 75, 0.75);
  color: #FDE68A;
}

.sp-hero-art-badges a.sp-badge {
  min-height: 36px;
  padding: 6px 14px;
  border-color: rgba(52, 211, 153, 0.7);
  color: #86EFAC;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.sp-hero-art-badges a.sp-badge:hover {
  transform: translateY(-1px);
  background: rgba(16, 48, 38, 0.92);
  border-color: #34D399;
  color: #ECFDF5;
}

.sp-hero-chibi-showcase {
  position: relative;
  min-height: 235px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 2;
}

.sp-hero-bawei-img {
  position: absolute;
  right: -18px;
  bottom: -10px;
  width: 72%;
  max-width: 340px;
  height: auto;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.75));
  pointer-events: none;
}

.sp-hero-team-img {
  position: relative;
  left: -36px;
  bottom: -8px;
  width: 68%;
  max-width: 285px;
  height: auto;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.85));
  z-index: 2;
  pointer-events: none;
}

.sp-hero-art-badges a.sp-badge {
  min-height: 44px;
  padding: 6px 14px;
}

.sp-hero-art-footer {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 12px;
  border-radius: var(--sp-radius-md);
  background: rgba(11, 17, 28, 0.86);
  border: 1px solid var(--sp-gold-border);
  font-size: 12.5px;
}

.sp-hero-art-footer a {
  min-height: 44px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
}

/* Dock Bar at bottom of Hero: Giant START THE GAME button + 3 Quick-Action Tiles (Image 1 style) */
.sp-hero-dock {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 1120px) {
  .sp-hero-dock {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 18px;
  }
}

.sp-game-start-plaque {
  position: relative;
  min-height: 92px;
  padding: 14px 18px 14px 86px;
  border-radius: var(--sp-radius-lg);
  border: 2px solid #FDE047;
  background:
    radial-gradient(circle at 80% 20%, rgba(253, 224, 71, 0.35), transparent 55%),
    linear-gradient(180deg, #D9482B 0%, #9F2020 55%, #681212 100%);
  color: #FFFBEB;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  box-shadow:
    0 12px 28px rgba(159, 32, 32, 0.55),
    inset 0 2px 0 rgba(255, 255, 255, 0.4),
    inset 0 -3px 0 rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
  text-decoration: none;
}

.sp-game-start-plaque:hover {
  transform: translateY(-2px);
  filter: brightness(1.07);
  box-shadow:
    0 16px 34px rgba(217, 72, 43, 0.65),
    0 0 18px rgba(250, 204, 21, 0.45),
    inset 0 2px 0 rgba(255, 255, 255, 0.5);
  color: #FFFBEB;
}

.sp-game-start-mascot {
  position: absolute;
  left: 8px;
  bottom: 0;
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.7));
  pointer-events: none;
}

.sp-game-start-en {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #FDE047;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
}

.sp-game-start-vi {
  font-family: var(--sp-font-heading);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #FFFFFF;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
  line-height: 1.15;
}

.sp-game-start-sub {
  font-size: 11.5px;
  font-weight: 700;
  color: #FDE68A;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.sp-quick-tiles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .sp-quick-tiles-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

.sp-quick-tile {
  position: relative;
  min-height: 92px;
  padding: 14px 16px 14px 82px;
  border-radius: var(--sp-radius-lg);
  border: 1.5px solid rgba(214, 154, 54, 0.55);
  background:
    linear-gradient(135deg, rgba(42, 30, 18, 0.92) 0%, rgba(23, 36, 58, 0.96) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 224, 150, 0.2);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  text-decoration: none;
  overflow: hidden;
}

.sp-quick-tile:hover {
  transform: translateY(-2px);
  border-color: var(--sp-gold-bright);
  background:
    linear-gradient(135deg, rgba(58, 40, 22, 0.95) 0%, rgba(29, 46, 73, 0.98) 100%);
}

.sp-quick-tile-art {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.65));
  transition: transform 0.2s ease;
}

.sp-quick-tile:hover .sp-quick-tile-art {
  transform: translateY(-50%) scale(1.07);
}

.sp-quick-tile-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sp-gold-bright);
}

.sp-quick-tile-title {
  font-family: var(--sp-font-heading);
  font-size: 16.5px;
  font-weight: 900;
  color: #FFF8EB;
  line-height: 1.2;
}

.sp-quick-tile-desc {
  font-size: 12px;
  color: var(--sp-text-muted);
}

/* --------------------------------------------------------------------------
   CLASSIC 3-COLUMN PORTAL HUB (IMAGE 2 ARCHITECTURE)
   -------------------------------------------------------------------------- */
.sp-portal-hub-section {
  padding: 28px 0 36px;
  background:
    radial-gradient(circle at 50% 0%, rgba(214, 154, 54, 0.1), transparent 55%),
    var(--sp-bg-secondary);
  border-top: 2px solid var(--sp-gold-border);
  border-bottom: 2px solid var(--sp-gold-border);
}

.sp-portal-3col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

@media (min-width: 768px) and (max-width: 1119px) {
  .sp-portal-3col {
    grid-template-columns: 1fr 1fr;
  }
  .sp-col-center {
    grid-column: 1 / -1;
    order: -1;
  }
}

@media (min-width: 1120px) {
  .sp-portal-3col {
    grid-template-columns: 280px minmax(0, 1fr) 280px;
    gap: 18px;
  }
}

.sp-col-left,
.sp-col-center,
.sp-col-right {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

/* Ornate 2011 Portal Panel */
.sp-panel {
  border-radius: var(--sp-radius-lg);
  border: 1.5px solid rgba(214, 154, 54, 0.45);
  background: linear-gradient(180deg, rgba(25, 38, 60, 0.96) 0%, rgba(16, 24, 39, 0.98) 100%);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38);
  overflow: hidden;
}

.sp-panel-gold {
  border-color: var(--sp-gold);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(242, 184, 75, 0.2);
}

.sp-panel-head {
  padding: 6px 15px;
  min-height: 54px;
  background:
    linear-gradient(90deg, rgba(61, 41, 18, 0.92) 0%, rgba(28, 42, 66, 0.95) 60%, rgba(20, 31, 49, 0.95) 100%);
  border-bottom: 1.5px solid rgba(214, 154, 54, 0.45);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sp-panel-title-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.sp-panel-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(214, 154, 54, 0.2);
  border: 1px solid var(--sp-gold);
  color: var(--sp-gold-bright);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.sp-panel-title {
  font-family: var(--sp-font-heading);
  font-size: 15.5px;
  font-weight: 900;
  color: #FFF8EB;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.sp-panel-sub {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sp-gold-bright);
  display: block;
}

.sp-panel-more {
  font-size: 12px;
  font-weight: 700;
  color: var(--sp-gold-bright);
  white-space: nowrap;
  min-height: 44px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.sp-col-center .sp-showcase-layout {
  grid-template-columns: 1fr;
  gap: 14px;
}

.sp-panel-body {
  padding: 15px;
}

/* Left Column: Inline Login & Account Widget (Image 2 Top-Left Box) */
.sp-inline-login-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sp-inline-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sp-inline-field label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--sp-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.sp-inline-field label i {
  color: var(--sp-gold-bright);
}

.sp-inline-input {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--sp-radius-sm);
  border: 1.5px solid rgba(148, 163, 184, 0.28);
  background: rgba(11, 17, 28, 0.85);
  color: var(--sp-text);
  font-size: 13.5px;
}

.sp-inline-input:focus {
  outline: none;
  border-color: var(--sp-gold-bright);
  box-shadow: 0 0 0 2px rgba(242, 184, 75, 0.2);
}

.sp-inline-login-error {
  display: none;
  padding: 8px 10px;
  border-radius: var(--sp-radius-sm);
  background: rgba(159, 48, 48, 0.28);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #FCA5A5;
  font-size: 12px;
  line-height: 1.4;
}

.sp-inline-login-error.show {
  display: block;
}

.sp-inline-login-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--sp-text-muted);
}

.sp-inline-divider {
  height: 1px;
  background: rgba(214, 154, 54, 0.22);
  margin: 4px 0;
}

.sp-btn-create-id {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: var(--sp-radius-md);
  border: 1.5px solid #FEF08A;
  background: linear-gradient(180deg, #F59E0B 0%, #D97706 55%, #B45309 100%);
  color: #111827;
  font-family: var(--sp-font-heading);
  font-size: 14.5px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.sp-btn-create-id:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

/* Logged-in Account Summary inside Left Column */
.sp-user-panel-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sp-user-panel-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--sp-radius-md);
  background: rgba(16, 24, 39, 0.75);
  border: 1px solid var(--sp-gold-border);
}

.sp-user-panel-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--sp-gold);
  object-fit: cover;
  background: #0B111C;
}

.sp-user-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.sp-user-quick-btn {
  min-height: 44px;
  padding: 8px 10px;
  border-radius: var(--sp-radius-sm);
  border: 1px solid var(--sp-border-subtle);
  background: rgba(16, 24, 39, 0.75);
  color: var(--sp-text);
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.sp-user-quick-btn:hover {
  border-color: var(--sp-gold);
  color: var(--sp-gold-bright);
}

/* Left Column: Compact Server Cards */
.sp-server-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sp-server-mini-card {
  padding: 12px;
  border-radius: var(--sp-radius-md);
  border: 1px solid var(--sp-gold-border);
  background: rgba(16, 24, 39, 0.72);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sp-server-mini-card.is-recommended {
  border-color: var(--sp-gold);
  background:
    radial-gradient(circle at 100% 0%, rgba(214, 154, 54, 0.16), transparent 60%),
    rgba(16, 24, 39, 0.85);
}

.sp-server-mini-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.sp-server-mini-name {
  font-family: var(--sp-font-heading);
  font-size: 15px;
  font-weight: 900;
  color: #FFF8EB;
}

.sp-server-mini-meta {
  font-size: 12px;
  color: var(--sp-text-muted);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Left Column: Beginner Guide Illustrated Card (Image 2 Bottom-Left) */
.sp-manual-card {
  position: relative;
  padding: 14px;
  border-radius: var(--sp-radius-md);
  border: 1.5px solid rgba(214, 154, 54, 0.45);
  background:
    radial-gradient(circle at 90% 10%, rgba(214, 154, 54, 0.18), transparent 55%),
    rgba(23, 36, 58, 0.9);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sp-manual-steps-mini {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sp-manual-steps-mini li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--sp-text);
  padding: 5px 8px;
  border-radius: var(--sp-radius-sm);
  background: rgba(16, 24, 39, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.sp-manual-step-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sp-red);
  border: 1px solid var(--sp-gold);
  color: #FFF8EB;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Center Column: Classic Bulletin News Tabs & Rows */
.sp-news-tabs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--sp-border-subtle);
}

.sp-news-tab-btn {
  min-height: 44px;
  padding: 6px 14px;
  border-radius: var(--sp-radius-sm);
  border: 1px solid var(--sp-border-subtle);
  background: rgba(16, 24, 39, 0.65);
  color: var(--sp-text-muted);
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sp-news-tab-btn.is-active,
.sp-news-tab-btn:hover {
  background: var(--sp-gold-soft);
  border-color: var(--sp-gold);
  color: var(--sp-gold-bright);
}

.sp-news-spotlight {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 12px;
  border-radius: var(--sp-radius-md);
  background: rgba(16, 24, 39, 0.72);
  border: 1px solid var(--sp-gold-border);
  margin-bottom: 12px;
}

@media (min-width: 560px) {
  .sp-news-spotlight {
    grid-template-columns: 165px minmax(0, 1fr);
    align-items: center;
  }
}

.sp-news-spotlight-thumb {
  width: 100%;
  height: 105px;
  object-fit: cover;
  border-radius: var(--sp-radius-sm);
  border: 1px solid var(--sp-gold-border);
}

.sp-news-bulletin-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sp-news-bulletin-item {
  border-radius: var(--sp-radius-sm);
  background: rgba(16, 24, 39, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.14);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.sp-news-bulletin-item:hover {
  border-color: var(--sp-gold-border);
  background: rgba(37, 54, 77, 0.65);
}

.sp-news-bulletin-link {
  min-height: 44px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--sp-text);
  font-size: 13.5px;
}

.sp-news-bulletin-tag {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--sp-gold-bright);
  margin-right: 6px;
}

.sp-news-bulletin-date {
  font-size: 12px;
  color: var(--sp-text-dim);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Center Column: 2-column Boss Grid inside Center Panel + Wide Weekend Boss Card */
.sp-boss-portal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .sp-boss-portal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.sp-boss-card-wide {
  grid-column: 1 / -1;
}

@media (min-width: 640px) {
  .sp-boss-card-wide {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    align-items: stretch;
  }
  .sp-boss-card-wide .sp-event-banner {
    aspect-ratio: auto;
    width: 100%;
    height: 100%;
    min-height: 160px;
    border-bottom: 0;
    border-right: 1px solid var(--sp-border-subtle);
  }
  .sp-boss-card-wide .sp-event-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.sp-boss-portal-grid .sp-event-banner {
  height: 110px;
}

.sp-boss-portal-grid .sp-event-body {
  padding: 10px 12px;
  gap: 6px;
}

.sp-boss-portal-grid .sp-event-reward-desc {
  font-size: 12px;
  line-height: 1.35;
}

/* Center Column: NPC Dialogue Tip Box (Image 2 Center Speech Box) */
.sp-npc-tip-box {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--sp-radius-md);
  border: 1.5px solid var(--sp-gold-border);
  background:
    linear-gradient(90deg, rgba(45, 31, 16, 0.88) 0%, rgba(16, 24, 39, 0.92) 100%);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sp-npc-tip-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid var(--sp-gold);
  background: #0B111C;
  object-fit: cover;
  flex-shrink: 0;
}

.sp-npc-tip-bubble {
  flex: 1;
  font-size: 12.5px;
  color: var(--sp-text);
  line-height: 1.5;
}

.sp-npc-tip-bubble strong {
  color: var(--sp-gold-bright);
}

/* Right Column: GM Note Sticky Card (Image 2 GMブログ★★) */
.sp-gm-note-card {
  position: relative;
  padding: 15px;
  border-radius: var(--sp-radius-md);
  border: 1.5px dashed var(--sp-gold);
  background:
    radial-gradient(circle at 100% 0%, rgba(242, 184, 75, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(44, 32, 18, 0.92) 0%, rgba(24, 34, 52, 0.95) 100%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sp-gm-note-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(214, 154, 54, 0.45);
}

.sp-gm-note-title {
  font-family: var(--sp-font-heading);
  font-size: 15px;
  font-weight: 900;
  color: var(--sp-gold-bright);
  display: flex;
  align-items: center;
  gap: 6px;
}

.sp-gm-note-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12.5px;
  color: var(--sp-text);
}

.sp-gm-note-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}

.sp-gm-note-list li i {
  color: var(--sp-gold-bright);
  margin-top: 3px;
}

/* Right Column: Compact Giftcode Quick-Copy List */
.sp-gift-quick-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sp-gift-quick-row {
  padding: 8px 10px;
  border-radius: var(--sp-radius-sm);
  background: rgba(16, 24, 39, 0.75);
  border: 1px solid var(--sp-gold-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sp-gift-quick-info {
  min-width: 0;
}

.sp-gift-quick-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 900;
  color: var(--sp-gold-bright);
  letter-spacing: 0.04em;
}

.sp-gift-quick-title {
  font-size: 11px;
  color: var(--sp-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Special Header Buttons (Ủng Hộ, Chơi Ngay) & Launcher PC Button */
.sp-btn-nav-donate {
  background: linear-gradient(135deg, #5B1932 0%, #881337 100%) !important;
  border: 1.5px solid rgba(251, 113, 133, 0.65) !important;
  color: #FFE4E6 !important;
  box-shadow: 0 4px 14px rgba(136, 19, 55, 0.4), inset 0 1px 0 rgba(255, 228, 230, 0.25);
}

.sp-btn-nav-donate:hover {
  background: linear-gradient(135deg, #741F3E 0%, #9F1239 100%) !important;
  border-color: #FDA4AF !important;
  color: #FFFFFF !important;
  transform: translateY(-1px);
}

.sp-btn-nav-play {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #EA580C 0%, #B91C1C 55%, #7F1D1D 100%) !important;
  border: 1.5px solid #FDE047 !important;
  color: #FFFBEB !important;
  font-weight: 900 !important;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  animation: spChakraPulse 2.6s ease-in-out infinite;
}

.sp-btn-nav-play::after,
.sp-game-start-plaque::after {
  content: '';
  position: absolute;
  top: -20%;
  left: -75%;
  width: 48%;
  height: 140%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 248, 214, 0.12) 35%,
    rgba(255, 250, 224, 0.52) 50%,
    rgba(255, 248, 214, 0.12) 65%,
    transparent 100%
  );
  transform: skewX(-22deg);
  pointer-events: none;
  animation: spBtnShimmer 3.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.sp-game-start-plaque {
  animation: spChakraPulse 2.8s ease-in-out infinite;
}

.sp-game-start-plaque .sp-game-start-mascot {
  transition: transform 0.22s ease;
}

.sp-game-start-plaque:hover .sp-game-start-mascot {
  transform: translateY(-3px) scale(1.06);
}

.sp-game-start-plaque:active,
.sp-btn-nav-play:active {
  transform: translateY(1px) scale(0.99);
}

.sp-btn-nav-play:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 22px rgba(234, 88, 12, 0.78), 0 0 16px rgba(253, 224, 71, 0.6);
  transform: translateY(-1px);
}

@keyframes spBtnShimmer {
  0% { left: -75%; }
  45%, 100% { left: 135%; }
}

@keyframes spChakraPulse {
  0%, 100% {
    box-shadow:
      0 6px 20px rgba(234, 88, 12, 0.48),
      0 0 0 0 rgba(253, 224, 71, 0.38),
      inset 0 1px 0 rgba(255, 255, 255, 0.38);
  }
  50% {
    box-shadow:
      0 10px 28px rgba(234, 88, 12, 0.72),
      0 0 18px 3px rgba(253, 224, 71, 0.48),
      inset 0 1px 0 rgba(255, 255, 255, 0.5);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sp-btn-nav-play,
  .sp-game-start-plaque,
  .sp-btn-nav-play::after,
  .sp-game-start-plaque::after {
    animation: none !important;
  }
}

.sp-btn-launcher {
  background: linear-gradient(180deg, #0F766E 0%, #115E59 60%, #134E4A 100%);
  border: 1.5px solid rgba(52, 211, 153, 0.72);
  color: #ECFDF5;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(15, 118, 110, 0.38), inset 0 1px 0 rgba(167, 243, 208, 0.3);
}

.sp-btn-launcher:hover {
  background: linear-gradient(180deg, #14B8A6 0%, #0F766E 100%);
  border-color: #6EE7B7;
  color: #FFFFFF;
  transform: translateY(-1px);
}

/* Balanced Showcase Layout (#gameplay) */
@media (min-width: 1024px) {
  .sp-showcase-layout {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 20px;
  }
  .sp-video-box {
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  .sp-video-box .sp-video-frame {
    flex: 1;
    aspect-ratio: auto;
    min-height: 280px;
  }
}

.sp-gallery-caption span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Boss Ticker Single-Line Alignment inside Center Column */
.sp-col-center .sp-boss-ticker {
  padding: 10px 14px;
  gap: 10px;
}

.sp-col-center .sp-boss-ticker-left {
  min-width: 0;
  flex: 1;
}

.sp-col-center .sp-boss-ticker-left > div {
  min-width: 0;
}

.sp-col-center .sp-boss-ticker-label {
  font-size: 10.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-col-center .sp-boss-ticker-name {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-col-center .sp-boss-ticker-right {
  flex-shrink: 0;
  gap: 8px;
}

.sp-col-center .sp-boss-timer {
  font-size: 17px;
  padding: 5px 10px;
  white-space: nowrap;
}

/* Expandable Giftcode Rewards (<details>) */
.sp-gift-details {
  border-radius: var(--sp-radius-sm);
  border: 1px solid rgba(214, 154, 54, 0.35);
  background: rgba(16, 24, 39, 0.55);
  overflow: hidden;
}

.sp-gift-details summary {
  list-style: none;
  cursor: pointer;
  min-height: 40px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--sp-gold-bright);
  user-select: none;
}

.sp-gift-details summary::-webkit-details-marker {
  display: none;
}

.sp-gift-details[open] summary {
  border-bottom: 1px solid rgba(214, 154, 54, 0.25);
  background: rgba(214, 154, 54, 0.1);
}

.sp-gift-details[open] summary .sp-gift-chevron {
  transform: rotate(180deg);
}

.sp-gift-chevron {
  font-size: 11px;
  transition: transform 0.2s ease;
}

.sp-gift-details-body {
  padding: 10px 12px;
}

/* Class Cards with Authentic 2011 Chibi Portraits */
.sp-class-portrait-wrap {
  width: 64px;
  height: 64px;
  border-radius: var(--sp-radius-md);
  border: 1.5px solid var(--sp-gold);
  background: radial-gradient(circle at 50% 35%, rgba(214, 154, 54, 0.28), rgba(11, 17, 28, 0.95));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
}

.sp-class-portrait-img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}
