:root {
  --bg: #0b1220;
  --bg-soft: #111a2e;
  --panel: #152038;
  --panel-2: #1a2740;
  --line: rgba(255, 255, 255, 0.08);
  --text: #e8eef9;
  --muted: #9aabc6;
  --accent: #20c997;
  --accent-2: #0ea5e9;
  --gold: #f5c451;
  --danger: #ff6b6b;
  --sidebar-w: 280px;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(32, 201, 151, 0.12), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(14, 165, 233, 0.10), transparent 50%),
    linear-gradient(180deg, #0a101c 0%, var(--bg) 40%, #0a1324 100%);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 0.75rem; }
h1 { font-size: clamp(1.7rem, 2.4vw, 2.35rem); letter-spacing: -0.02em; }
h2 { font-size: 1.4rem; margin-top: 2.2rem; color: #fff; }
h3 { font-size: 1.1rem; margin-top: 1.4rem; color: #dbe7ff; }
p { margin: 0 0 1rem; color: var(--muted); }
ul, ol { color: var(--muted); padding-left: 1.2rem; }
li { margin-bottom: 0.45rem; }
strong { color: #fff; }

.layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background: linear-gradient(180deg, #0d1628 0%, #101b31 100%);
  border-right: 1px solid var(--line);
  padding: 1.4rem 1.1rem 2rem;
  z-index: 40;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.4rem 0.6rem 1.2rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.1rem;
}
.brand__name {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
}
.brand__name span { color: var(--accent); }
.brand__tag {
  font-size: 0.78rem;
  color: var(--muted);
}

.nav-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6f829f;
  padding: 0.4rem 0.7rem;
  margin-bottom: 0.35rem;
}

.nav a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.78rem 0.85rem;
  border-radius: 10px;
  color: #c7d5ea;
  text-decoration: none;
  margin-bottom: 0.25rem;
  border: 1px solid transparent;
  transition: 0.15s ease;
}
.nav a:hover {
  background: rgba(32, 201, 151, 0.08);
  border-color: rgba(32, 201, 151, 0.2);
  text-decoration: none;
}
.nav a.active {
  background: linear-gradient(90deg, rgba(32, 201, 151, 0.18), rgba(14, 165, 233, 0.08));
  border-color: rgba(32, 201, 151, 0.35);
  color: #fff;
  font-weight: 600;
}
.nav .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.55;
  flex-shrink: 0;
}
.nav a.active .dot { opacity: 1; box-shadow: 0 0 0 3px rgba(32, 201, 151, 0.2); }

.sidebar__box {
  margin-top: 1.4rem;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}
.sidebar__box h4 {
  margin: 0 0 0.55rem;
  font-size: 0.9rem;
  color: #fff;
}
.sidebar__box p,
.sidebar__box a {
  font-size: 0.82rem;
  color: var(--muted);
}
.sidebar__box a { display: block; margin-bottom: 0.35rem; }

.main {
  min-width: 0;
  padding: 1.5rem 1.6rem 3rem;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.breadcrumb {
  color: var(--muted);
  font-size: 0.85rem;
}
.breadcrumb a { color: #b7c8e0; }
.updated {
  font-size: 0.8rem;
  color: #7f93b0;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

.hero {
  background: linear-gradient(145deg, rgba(26, 39, 64, 0.95), rgba(17, 26, 46, 0.9));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.6rem 1.7rem 1.4rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.4rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(32, 201, 151, 0.22), transparent 70%);
  pointer-events: none;
}
.hero p { max-width: 78ch; }

.hero-media,
.content-media {
  margin: 0 0 1rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  box-shadow: var(--shadow);
  max-height: 180px;
}
.hero-media {
  margin: 0.9rem 0 0;
  position: relative;
  z-index: 1;
  max-height: 160px;
}
.hero-media img,
.content-media img {
  width: 100%;
  height: 160px;
  display: block;
  object-fit: cover;
  object-position: center;
}
.content-media img {
  height: 140px;
}
.content-media--wide img {
  height: 150px;
}
.media-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin: 1.1rem 0 1.4rem;
}
@media (max-width: 860px) {
  .media-row { grid-template-columns: 1fr; }
  .hero-media,
  .content-media { max-height: 120px; }
  .hero-media img,
  .content-media img,
  .content-media--wide img { height: 110px; }
}
.keyword-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.9rem;
}
.keyword-cloud span {
  font-size: 0.72rem;
  color: #9eb3d1;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 1.4rem;
  align-items: start;
}

.article {
  background: rgba(15, 23, 40, 0.55);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.4rem 1.5rem 2rem;
}

.toc {
  position: sticky;
  top: 1.2rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
}
.toc h4 {
  margin: 0 0 0.7rem;
  font-size: 0.85rem;
  color: #fff;
}
.toc a {
  display: block;
  font-size: 0.78rem;
  color: #9eb0cb;
  padding: 0.28rem 0;
  border-bottom: 1px dashed rgba(255,255,255,0.05);
}
.toc a:hover { color: var(--accent); }

.showcase {
  display: grid;
  gap: 0.85rem;
  margin: 1.1rem 0 1.6rem;
}

.author-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 1rem;
  align-items: center;
  background: rgba(32, 201, 151, 0.06);
  border: 1px solid rgba(32, 201, 151, 0.22);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  margin-bottom: 1.1rem;
}
.author-card img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(32, 201, 151, 0.45);
}
.author-card__kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.author-card__name {
  margin: 0.1rem 0 0;
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
}
.author-card__role {
  margin: 0.1rem 0 0.35rem;
  font-size: 0.82rem;
  color: #c5d4ea;
}
.author-card p:last-child { margin: 0; font-size: 0.9rem; }
.sidebar-author {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.7rem;
  align-items: center;
}
.sidebar-author img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}
.sidebar-author p { margin: 0; }

.casino-card {
  display: grid;
  grid-template-columns: 48px 168px minmax(0, 1fr) auto;
  grid-template-areas:
    "rank logo info cta"
    "rank logo bonus cta";
  gap: 0.35rem 0.9rem;
  align-items: center;
  background: linear-gradient(120deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.95rem 1rem;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.casino-card:hover {
  transform: translateY(-2px);
  border-color: rgba(32, 201, 151, 0.35);
}
.casino-card__rank {
  grid-area: rank;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: rgba(32, 201, 151, 0.12);
  color: var(--accent);
  border: 1px solid rgba(32, 201, 151, 0.3);
  position: static;
  font-size: 0.85rem;
  justify-self: center;
  align-self: center;
}
.casino-card__info { grid-area: info; }
.casino-card__bonus-wrap { grid-area: bonus; }
.casino-card__cta {
  grid-area: cta;
  justify-self: end;
  align-self: center;
}
.casino-card__logo-wrap {
  grid-area: logo;
  position: relative;
  width: 168px;
  height: 64px;
  border-radius: 10px;
  background: #000;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.casino-card__logo-wrap img {
  width: 100%;
  height: auto;
  max-height: 52px;
  object-fit: contain;
  object-position: center;
}
.casino-card__logo-fallback {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  line-height: 1.15;
  padding: 0 4px;
}
.casino-card__name {
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.15rem;
}
.casino-card__bonus-label {
  font-size: 0.72rem;
  color: #7f93b0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.casino-card__bonus {
  color: var(--gold);
  font-weight: 700;
  font-size: 1.02rem;
}
.casino-card__desc {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, #20c997, #12b886);
  color: #04140f !important;
  font-weight: 800;
  border: none;
  border-radius: 10px;
  padding: 0.78rem 1.1rem;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(32, 201, 151, 0.25);
}
.btn:hover { filter: brightness(1.05); }
.btn--ghost {
  background: transparent;
  color: var(--accent) !important;
  border: 1px solid rgba(32, 201, 151, 0.4);
  box-shadow: none;
}

.note {
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.25);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin: 1rem 0;
  color: #b9d7ef;
  font-size: 0.92rem;
}
.warn {
  background: rgba(245, 196, 81, 0.08);
  border: 1px solid rgba(245, 196, 81, 0.28);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin: 1rem 0;
  color: #f0dca0;
  font-size: 0.92rem;
}

.cards-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin: 1rem 0 1.5rem;
}
.mini {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
}
.mini h3 { margin-top: 0; font-size: 1rem; }
.mini p { font-size: 0.88rem; margin: 0; }

.faq details {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  margin-bottom: 0.55rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: #fff;
}
.faq details p { margin-top: 0.6rem; margin-bottom: 0; }

.internal-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1.2rem 0;
}
.internal-links a {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  color: #fff;
  text-decoration: none;
  transition: 0.15s ease;
}
.internal-links a:hover {
  border-color: rgba(32, 201, 151, 0.4);
  text-decoration: none;
}
.internal-links small {
  display: block;
  color: var(--muted);
  margin-top: 0.3rem;
  font-size: 0.78rem;
}

.footer {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  color: #7f93b0;
  font-size: 0.82rem;
}
.footer a { color: #9eb0cb; }
.age {
  display: inline-block;
  background: var(--danger);
  color: #fff;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  margin-right: 0.4rem;
  font-size: 0.75rem;
}

.menu-toggle {
  display: none;
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 60;
  background: var(--panel);
  border: 1px solid var(--line);
  color: #fff;
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .content-grid { grid-template-columns: 1fr; }
  .toc { position: static; }
  .cards-mini, .internal-links { grid-template-columns: 1fr; }
  .casino-card {
    grid-template-columns: 40px minmax(140px, 1fr);
    grid-template-areas:
      "rank logo"
      "info info"
      "bonus bonus"
      "cta cta";
  }
  .author-card { grid-template-columns: 72px 1fr; }
  .author-card img { width: 72px; height: 72px; }
  .casino-card__rank { grid-area: rank; }
  .casino-card__logo-wrap { grid-area: logo; width: 100%; max-width: 200px; }
  .casino-card__info { grid-area: info; }
  .casino-card__bonus-wrap { grid-area: bonus; }
  .casino-card__cta { grid-area: cta; justify-self: stretch; }
  .btn { width: 100%; }
}

@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    width: min(86vw, 300px);
    box-shadow: var(--shadow);
  }
  .sidebar.open { transform: translateX(0); }
  .menu-toggle { display: inline-flex; }
  .main { padding: 4rem 1rem 2rem; }
  .topbar { flex-direction: column; align-items: flex-start; }
}
