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

:root {
  --bg: #0b0e14;
  --panel: #101623;
  --panel2: #0d1420;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --accent: #3b82f6;
  --accent2: #2563eb;
  --glow: rgba(59, 130, 246, 0.35);
  --banner-text: #172554;
  --card-border: rgba(59, 130, 246, 0.28);
  --card-grad: linear-gradient(145deg, #1a3055 0%, #0f1a2e 55%, #0a1220 100%);
  --bg-image: url("https://vipkingler.com/wp-content/uploads/2025/09/blob.png");
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text);
  line-height: 1.4;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.shell {
  display: flex;
  min-height: 100vh;
}

.side-nav {
  width: 168px;
  flex-shrink: 0;
  padding: 28px 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(8, 11, 16, 0.72);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--muted);
  transition: background 0.15s, color 0.15s;
}

.nav-item .ico {
  color: var(--accent);
  font-size: 11px;
}

.nav-item:hover,
.nav-item.active {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.page {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.head {
  padding: 18px 24px 8px;
}

.brand {
  display: inline-block;
  line-height: 0;
}

.site-logo {
  width: auto;
  height: 56px;
  max-width: min(240px, 90vw);
  object-fit: contain;
  display: block;
}

.site-logo-foot {
  height: 72px;
  max-width: 280px;
}

.layout {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 0 12px 24px;
  flex: 1;
}

.sky {
  width: 132px;
  flex-shrink: 0;
  align-self: flex-start;
  position: sticky;
  top: 16px;
  display: block;
  line-height: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  transition: transform 0.12s, box-shadow 0.12s;
}

.sky:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px var(--glow);
}

.sky img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.center {
  width: min(720px, 100%);
  flex-shrink: 0;
}

.leader-banner {
  display: block;
  width: 100%;
  max-width: 720px;
  margin: 0 auto 12px;
  line-height: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.12s, box-shadow 0.12s;
}

.leader-banner:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px var(--glow);
}

.leader-banner img {
  width: 100%;
  height: auto;
  max-height: 90px;
  object-fit: contain;
  display: block;
  background: #0a0f18;
}

.search-wrap {
  display: block;
  margin-bottom: 16px;
}

.search-wrap input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #121826;
  color: var(--text);
  font-size: 14px;
}

.search-wrap input::placeholder {
  color: #64748b;
}

.search-wrap input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.block h2 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.grid {
  display: grid;
  gap: 8px;
}

.vip-grid {
  grid-template-columns: repeat(5, 1fr);
}

.card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 8px;
  border-radius: 8px;
  background: var(--card-grad);
  border: 1px solid var(--card-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 6px 20px var(--glow);
}

.card.hidden {
  display: none;
}

.logo-text {
  font-weight: 800;
  font-size: 12px;
  text-align: center;
  color: var(--lc, var(--text));
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.logo-img {
  max-width: 100%;
  max-height: 40px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.foot {
  padding: 28px 16px 36px;
  display: flex;
  justify-content: center;
}

@media (max-width: 1100px) {
  .sky {
    display: none;
  }
}

@media (max-width: 768px) {
  .side-nav {
    display: none;
  }

  .vip-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .leader-banner img {
    max-height: none;
  }
}
