/* KGame – kg-web.xyz | Casino info portal */
:root {
  --bg: #0b1220;
  --bg-elevated: #121a2b;
  --bg-soft: #162033;
  --surface: #f4f7fb;
  --surface-card: #ffffff;
  --text: #e8eef8;
  --text-muted: #9aa8c0;
  --text-dark: #1a2438;
  --text-body: #334155;
  --accent: #2f7cf6;
  --accent-2: #c9a227;
  --accent-soft: rgba(47, 124, 246, 0.15);
  --line: rgba(255, 255, 255, 0.08);
  --line-dark: rgba(26, 36, 56, 0.12);
  --shadow: 0 18px 50px rgba(8, 14, 28, 0.35);
  --radius: 14px;
  --header-h: 72px;
  --font-display: "Sora", sans-serif;
  --font-body: "Be Vietnam Pro", sans-serif;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(47, 124, 246, 0.18), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(201, 162, 39, 0.1), transparent 45%),
    linear-gradient(180deg, #0b1220 0%, #0e1524 220px, #eef2f7 220px, #eef2f7 100%);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: #1d5fd0;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.25;
  margin: 0 0 0.6em;
  color: var(--text-dark);
}

p {
  margin: 0 0 1em;
}

ul, ol {
  margin: 0 0 1.2em;
  padding-left: 1.2em;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: var(--header-h);
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  height: 40px;
}

.logo img {
  height: 40px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.15rem;
  margin-left: auto;
}

.nav-desktop a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.header-actions {
  display: none;
  align-items: center;
  gap: 0.55rem;
  margin-left: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.15rem;
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #3b86ff, #2a64d8);
  color: #fff;
}

.btn-primary:hover {
  color: #fff;
  background: linear-gradient(135deg, #4b91ff, #2f6ae0);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-ghost:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
}

.btn-gold {
  background: linear-gradient(135deg, #d4b145, #b8922a);
  color: #1a1405;
}

.btn-gold:hover {
  color: #1a1405;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.nav-mobile {
  display: none;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: #0f1728;
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 1rem 1.25rem;
  box-shadow: var(--shadow);
}

.nav-mobile.open {
  display: block;
  animation: slideDown 0.28s var(--ease);
}

.nav-mobile a {
  display: block;
  color: var(--text);
  padding: 0.75rem 0.85rem;
  border-radius: 8px;
  font-weight: 500;
}

.nav-mobile a:hover,
.nav-mobile a.active {
  background: rgba(47, 124, 246, 0.15);
  color: #fff;
}

.nav-mobile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.nav-mobile-actions .btn {
  width: 100%;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Main */
main {
  padding-top: var(--header-h);
  min-height: 70vh;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(78vh, 640px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--text);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 12, 22, 0.92) 0%, rgba(8, 12, 22, 0.72) 42%, rgba(8, 12, 22, 0.35) 100%),
    linear-gradient(0deg, rgba(8, 12, 22, 0.88) 0%, transparent 45%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 3.5rem 0 3.2rem;
  animation: fadeUp 0.7s var(--ease) both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.35em;
  background: linear-gradient(120deg, #fff 20%, #9ec1ff 70%, #e6c76a 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 {
  color: #fff;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 600;
  max-width: 18ch;
  margin-bottom: 0.7em;
}

.hero-lead {
  color: var(--text-muted);
  max-width: 38ch;
  font-size: 1.05rem;
  margin-bottom: 1.4rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section-dark {
  background: linear-gradient(180deg, #101827, #0d1422);
  color: var(--text);
}

.section-dark h2,
.section-dark h3 {
  color: #fff;
}

.section-light {
  background: var(--surface);
}

.section-head {
  margin-bottom: 1.8rem;
  max-width: 40rem;
}

.section-head h2 {
  font-size: clamp(1.55rem, 3vw, 2rem);
}

.section-head p {
  color: var(--text-body);
  margin: 0;
}

.section-dark .section-head p {
  color: var(--text-muted);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 0.55rem;
}

/* Intro */
.intro-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 860px) {
  .intro-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.intro-copy p {
  color: var(--text-body);
}

.intro-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
  animation: floatSoft 6s ease-in-out infinite;
}

.intro-visual img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* Category grid */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}

@media (min-width: 700px) {
  .cat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 980px) {
  .cat-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.cat-item {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  aspect-ratio: 1 / 1;
  isolation: isolate;
}

.cat-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}

.cat-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(6, 10, 20, 0.88) 100%);
  z-index: 1;
}

.cat-item:hover img {
  transform: scale(1.06);
}

.cat-item span {
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.85rem;
  z-index: 2;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
}

/* Cards / articles */
.card-grid {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 700px) {
  .card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

.article-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-dark);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  height: 100%;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12);
}

.article-card .thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #dbe3f0;
}

.article-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.article-card:hover .thumb img {
  transform: scale(1.04);
}

.article-card .body {
  padding: 1.05rem 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-card .tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

.article-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

.article-card h3 a {
  color: var(--text-dark);
}

.article-card h3 a:hover {
  color: var(--accent);
}

.article-card p {
  color: var(--text-body);
  font-size: 0.92rem;
  margin-bottom: 0.9rem;
  flex: 1;
}

.article-card .more {
  font-weight: 600;
  font-size: 0.9rem;
}

.section-dark .article-card {
  background: var(--bg-elevated);
  border-color: var(--line);
}

.section-dark .article-card h3 a {
  color: #fff;
}

.section-dark .article-card p {
  color: var(--text-muted);
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 760px;
}

.faq-item {
  background: var(--surface-card);
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.15rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-dark);
  position: relative;
  padding-right: 2.5rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  color: var(--accent);
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item .faq-a {
  padding: 0 1.15rem 1.1rem;
  color: var(--text-body);
  font-size: 0.95rem;
}

/* Page hero compact */
.page-hero {
  padding: 2.6rem 0 1.8rem;
  background:
    linear-gradient(135deg, rgba(47, 124, 246, 0.18), transparent 50%),
    var(--bg);
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  margin-bottom: 0.45rem;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 48ch;
  margin: 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: #b7c6df;
}

.breadcrumb span {
  opacity: 0.5;
}

/* Content layout */
.content-wrap {
  padding: 2.5rem 0 3.5rem;
}

.prose {
  background: var(--surface-card);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--line-dark);
  color: var(--text-body);
}

@media (min-width: 700px) {
  .prose {
    padding: 2rem 2.2rem;
  }
}

.prose h2 {
  font-size: 1.35rem;
  margin-top: 1.6rem;
}

.prose h3 {
  font-size: 1.12rem;
  margin-top: 1.3rem;
}

.prose a.ext,
.prose a {
  font-weight: 600;
}

.article-layout {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 960px) {
  .article-layout {
    grid-template-columns: 1fr 300px;
    align-items: start;
  }
}

.article-cover {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.4rem;
  background: #dbe3f0;
}

.article-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 1.2rem;
}

.sidebar-box {
  background: var(--surface-card);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 1.15rem;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.sidebar-box h3 {
  font-size: 1rem;
  margin-bottom: 0.85rem;
}

.related-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.related-list a {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.7rem;
  align-items: center;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.35;
}

.related-list img {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 8px;
}

/* Category showcase page */
.feature-row {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .feature-row {
    grid-template-columns: 180px 1fr;
    align-items: center;
  }
}

.feature-row .icon {
  width: 140px;
  height: 140px;
  margin-inline: auto;
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-soft);
}

.feature-row .icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-row .text {
  background: var(--surface-card);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--line-dark);
}

/* Error pages */
.error-page {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text);
  background:
    radial-gradient(600px 300px at 50% 20%, rgba(47, 124, 246, 0.2), transparent),
    var(--bg);
}

.error-page h1 {
  color: #fff;
  font-size: clamp(3rem, 10vw, 5.5rem);
  margin-bottom: 0.2em;
}

.error-page p {
  color: var(--text-muted);
  max-width: 36ch;
  margin-inline: auto;
  margin-bottom: 1.5rem;
}

/* Brands strip */
.brand-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 0 0;
  opacity: 0.85;
}

.brand-strip img {
  height: 28px;
  width: auto;
  object-fit: contain;
  filter: grayscale(0.2);
}

/* Footer */
.site-footer {
  background: #080e1a;
  color: var(--text-muted);
  padding: 3rem 0 1.5rem;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-brand img {
  height: 36px;
  width: auto;
  margin-bottom: 0.85rem;
}

.footer-brand p {
  font-size: 0.92rem;
  max-width: 34ch;
}

.site-footer h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
}

/* Desktop nav */
@media (min-width: 900px) {
  .menu-toggle {
    display: none;
  }

  .nav-desktop {
    display: flex;
  }

  .header-actions {
    display: flex;
  }

  .nav-mobile {
    display: none !important;
  }
}

/* Utility */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }

.cta-band {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(120deg, #132038, #1a2d4d);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  color: var(--text);
}

.cta-band h3 {
  color: #fff;
  margin-bottom: 0.25rem;
  font-size: 1.2rem;
}

.cta-band p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.notice {
  background: #fff8e8;
  border-left: 3px solid var(--accent-2);
  padding: 0.9rem 1rem;
  border-radius: 0 10px 10px 0;
  color: #5c4a1d;
  font-size: 0.92rem;
  margin: 1.2rem 0;
}
