/* ==========================================================================
   Big Daddy Game — bdg-gameofficial.online
   Theme: white base, gold/yellow accent, black for contrast.
   Layout follows the shared blank template (header, hero, card grid,
   long-form, steps, FAQ, CTA band, four-column footer).
   ========================================================================== */
:root {
  --bg: #ffffff;
  --surface: #fffbea;
  --surface-2: #fff3c4;
  --text: #141414;
  --muted: #5f6368;
  --border: #f0e2a8;
  --gold: #f5b800;
  --gold-light: #ffd84d;
  --gold-dark: #b98000;
  --black: #111111;
  --accent: var(--black);
  --accent-contrast: #ffffff;
  --max-width: 1180px;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(120, 90, 0, .10);
  --gold-grad: linear-gradient(135deg, #ffe27a 0%, #f5b800 55%, #d99a00 100%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Noto Sans", "Noto Sans Devanagari", sans-serif;
  line-height: 1.65;
}

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

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

.prose a:not(.btn):not(.text-link), .notice a, td a, details a, .lead a {
  color: var(--gold-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 650;
}

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.narrow { max-width: 820px; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  padding: 8px 14px;
  background: var(--black);
  color: #fff;
  border-radius: 8px;
  z-index: 200;
}
.skip-link:focus { left: 8px; }

/* ---------- Top strip ---------- */
.top-strip {
  background: var(--black);
  color: #fff;
  font-size: .82rem;
}
.top-strip .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 36px;
  flex-wrap: wrap;
}
.top-strip strong { color: var(--gold-light); letter-spacing: .04em; }
.top-strip a { color: var(--gold-light); font-weight: 700; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(12px);
  border-bottom: 3px solid var(--gold);
}

.header-inner {
  position: relative;
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.08rem;
  font-weight: 850;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.logo img { width: 52px; height: 52px; }
.logo span small {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--gold-dark);
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.main-nav a,
.footer-grid a {
  color: var(--muted);
  transition: color .2s ease;
}
.main-nav a { font-weight: 650; font-size: .95rem; }
.main-nav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -3px 0 var(--gold); }

.main-nav a:hover,
.text-link:hover { color: var(--text); }
.footer-grid a:hover { color: var(--gold-light); }

.header-cta {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--gold-grad);
  color: var(--black);
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(245, 184, 0, .35);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 8px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 64px;
  background:
    radial-gradient(circle at 85% 20%, rgba(245, 184, 0, .22), transparent 45%),
    linear-gradient(180deg, #fffdf3 0%, #ffffff 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 60px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--gold-dark);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin: 0 0 14px;
  line-height: 1.15;
  letter-spacing: -.025em;
}
h1 { max-width: 720px; font-size: clamp(2.2rem, 5.4vw, 3.9rem); }
h1 .gold, h2 .gold {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.22rem; }

.hero-text, .lead {
  max-width: 650px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold-grad); color: var(--black); box-shadow: 0 6px 18px rgba(245, 184, 0, .35); }
.btn-dark { background: var(--black); color: var(--gold-light); }
.btn-secondary { border: 2px solid var(--black); background: var(--bg); color: var(--black); }

/* Invite code box */
.code-box {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  max-width: 560px;
  margin: 0 0 24px;
  padding: 14px 16px;
  border: 2px dashed var(--gold);
  border-radius: 14px;
  background: var(--surface);
}
.code-box .code-label {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.code-box .code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: .06em;
}
.copy-btn {
  margin-left: auto;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: var(--black);
  color: var(--gold-light);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.copy-btn.copied { background: #18a558; color: #fff; }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: .9rem;
}
.trust-row li::before { content: "✦ "; color: var(--gold); }

.hero-media { display: grid; place-items: center; }
.hero-media img { width: 100%; max-width: 480px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: 48px 0 36px;
  background: linear-gradient(180deg, #fff8dc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border);
}
.breadcrumb {
  margin: 0 0 14px;
  font-size: .86rem;
  color: var(--muted);
}
.breadcrumb a { color: var(--gold-dark); font-weight: 650; }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
.updated { font-size: .85rem; color: var(--muted); margin: 0; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-alt { background: var(--surface); }
.section-dark { background: var(--black); color: #fff; }
.section-dark .section-heading p { color: rgba(255, 255, 255, .7); }
.section-dark .eyebrow { background: rgba(245, 184, 0, .15); color: var(--gold-light); }

.section-heading {
  max-width: 740px;
  margin: 0 auto 40px;
  text-align: center;
}
.section-heading.left { margin-left: 0; text-align: left; }
.section-heading p { color: var(--muted); margin: 0; }

/* Quick facts */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.fact {
  padding: 20px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.fact b { display: block; font-size: 1.2rem; }
.fact span { color: var(--muted); font-size: .88rem; }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.content-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.content-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(120, 90, 0, .16); }
.card-image { aspect-ratio: 5 / 3; background: var(--surface); border-bottom: 3px solid var(--gold); }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.card-label {
  color: var(--gold-dark);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.card-body p { margin: 0 0 15px; color: var(--muted); }
.card-body .text-link { margin-top: auto; }
.text-link { font-weight: 800; color: var(--text); }
.text-link::after { content: " →"; color: var(--gold); }

/* Long-form prose */
.prose { font-size: 1.03rem; }
.prose h2 { margin-top: 48px; font-size: clamp(1.5rem, 3vw, 2rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 30px; }
.prose p, .prose li { color: #2b2b2b; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 6px 0; }
.prose ol.steps-list { list-style: none; padding: 0; counter-reset: s; }
.prose ol.steps-list li {
  position: relative;
  margin: 0 0 14px;
  padding: 14px 16px 14px 62px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  counter-increment: s;
}
.prose ol.steps-list li::before {
  content: counter(s);
  position: absolute;
  left: 14px;
  top: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold-grad);
  color: var(--black);
  font-weight: 850;
}
.prose figure { margin: 26px 0; }
.prose figure img { border-radius: var(--radius); border: 1px solid var(--border); }
.prose figcaption { margin-top: 8px; font-size: .88rem; color: var(--muted); text-align: center; }

.layout-aside {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: start;
}
.aside-card {
  position: sticky;
  top: 100px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--black);
  color: #fff;
}
.aside-card h2 { font-size: 1.15rem; color: var(--gold-light); }
.aside-card p { color: rgba(255, 255, 255, .75); font-size: .93rem; }
.aside-card .code { display: block; margin: 6px 0 14px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.25rem; font-weight: 800; color: #fff; }
.aside-card .btn { width: 100%; margin-top: 8px; }
.toc { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .15); }
.toc a { display: block; padding: 4px 0; color: rgba(255, 255, 255, .75); font-size: .9rem; }
.toc a:hover { color: var(--gold-light); }

/* Notices */
.notice {
  margin: 22px 0;
  padding: 16px 18px;
  border-left: 5px solid var(--gold);
  border-radius: 10px;
  background: var(--surface);
}
.notice strong:first-child { display: block; margin-bottom: 4px; }
.notice p { margin: 0; }
.notice-dark { background: var(--black); color: #fff; border-left-color: var(--gold); }
.notice-dark a { color: var(--gold-light); }

/* Tables */
.table-wrap { overflow-x: auto; margin: 20px 0; border-radius: 12px; border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; background: #fff; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--black); color: var(--gold-light); font-weight: 750; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) td { background: #fffdf4; }

.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: -1px; margin-right: 6px; }
.dot-green { background: #18a558; } .dot-red { background: #e5383b; } .dot-violet { background: #8b5cf6; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step {
  display: flex;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}
.step-number {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--gold-grad);
  color: var(--black);
  font-weight: 850;
}
.step p { margin: 0; color: var(--muted); }
.section-dark .step { background: #1b1b1b; border-color: #2c2c2c; }
.section-dark .step p { color: rgba(255, 255, 255, .7); }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--radius); }
.check-list { list-style: none; padding: 0; margin: 0 0 22px; }
.check-list li { position: relative; padding-left: 30px; margin: 10px 0; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--gold-dark); font-weight: 900; }

/* FAQ */
details {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
summary { cursor: pointer; font-weight: 750; list-style: none; position: relative; padding-right: 30px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: -3px; font-size: 1.4rem; color: var(--gold-dark); }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin-bottom: 0; }

/* Telegram band */
.tg-band {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--black);
  color: #fff;
}
.tg-band svg { flex: 0 0 auto; color: #2aabee; }
.tg-band p { margin: 0; color: rgba(255, 255, 255, .75); }
.tg-band .btn { margin-left: auto; }

/* CTA */
.cta-section {
  padding: 64px 0;
  background: var(--gold-grad);
  color: var(--black);
}
.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}
.cta-section .eyebrow { background: rgba(17, 17, 17, .1); color: var(--black); }
.cta-section p { color: #3a2c00; margin: 0; }
.cta-section h2 { margin-bottom: 8px; }

/* Contact form */
.form-grid { display: grid; gap: 16px; }
.form-grid label { display: grid; gap: 6px; font-weight: 700; font-size: .94rem; }
.form-grid input, .form-grid select, .form-grid textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd2a6;
  border-radius: 10px;
  font: inherit;
  background: #fff;
}
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { outline: 3px solid rgba(245, 184, 0, .35); border-color: var(--gold); }

/* Footer */
.site-footer {
  padding: 60px 0 24px;
  background: var(--black);
  color: #fff;
  border-top: 4px solid var(--gold);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
  gap: 40px;
}
.footer-grid h3 { font-size: 1rem; color: var(--gold-light); }
.footer-grid p,
.footer-grid a {
  display: block;
  color: rgba(255, 255, 255, .68);
  margin: 7px 0;
}
.footer-brand .logo { color: #fff; margin-bottom: 8px; }
.footer-brand .logo span small { color: var(--gold-light); }
.footer-code { color: #fff !important; }
.footer-code b { color: var(--gold-light); font-family: ui-monospace, Menlo, Consolas, monospace; }
.footer-warning {
  margin-top: 40px;
  padding: 16px 18px;
  border-radius: 12px;
  background: #1b1b1b;
  color: rgba(255, 255, 255, .7);
  font-size: .86rem;
}
.footer-warning strong { color: var(--gold-light); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .5);
  font-size: .85rem;
}

/* Sticky mobile register bar */
.mobile-bar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .main-nav { gap: 16px; }
  .main-nav a { font-size: .9rem; }
}

@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 36px; }
  .hero-media img { max-width: 380px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .layout-aside { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: block; margin-left: auto; }
  .main-nav.open {
    position: absolute;
    left: 0;
    right: 0;
    top: 74px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 0 0 14px 14px;
    box-shadow: var(--shadow);
  }
  .main-nav.open a { padding: 12px 14px; border-radius: 8px; }
  .main-nav.open a[aria-current="page"] { box-shadow: none; background: var(--surface-2); }
  .main-nav.open .nav-cta { display: block; margin-top: 6px; text-align: center; background: var(--gold-grad); color: var(--black); font-weight: 800; }
}

@media (min-width: 901px) { .nav-cta { display: none; } }

@media (max-width: 680px) {
  .container { width: min(calc(100% - 32px), var(--max-width)); }
  .hero { padding: 44px 0 48px; }
  .section { padding: 56px 0; }
  .card-grid, .facts { grid-template-columns: 1fr; }
  .cta-inner, .tg-band { flex-direction: column; align-items: flex-start; }
  .tg-band .btn { margin-left: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .top-strip .container { justify-content: center; text-align: center; }
  .top-strip .strip-right { display: none; }
  .logo span { font-size: .98rem; }
  .copy-btn { margin-left: 0; }
  body { padding-bottom: 68px; }
  .mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: flex;
    gap: 10px;
    padding: 10px 14px;
    background: var(--black);
    border-top: 3px solid var(--gold);
  }
  .mobile-bar .btn { flex: 1; min-height: 44px; padding: 0 10px; }
}

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

/* ---------- Game pictures, categories and split page heroes ---------- */
.card-image.pic {
  display: grid;
  place-items: center;
  padding: 18px;
  background: radial-gradient(circle at 50% 40%, #fff7d1 0%, #ffe9a0 55%, #f7d469 100%);
}
.card-image.pic img { width: auto; height: 100%; max-height: 190px; object-fit: contain; }
.cat-grid { grid-template-columns: repeat(4, 1fr); }
.cat-grid .card-image.pic img { max-height: 150px; }
.cat-grid .card-body { padding: 18px; }
.cat-grid h3 { font-size: 1.1rem; }

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  gap: 40px;
  align-items: center;
}
.hero-pic {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  max-width: 340px;
  width: 100%;
  margin-inline: auto;
  padding: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #ffffff 0%, #fff2bf 60%, #f5c518 100%);
  box-shadow: 0 0 0 6px #fff, 0 0 0 9px var(--gold), var(--shadow);
}
.hero-pic img { max-height: 100%; object-fit: contain; }
.hero-pic.phone { aspect-ratio: auto; border-radius: 28px; padding: 18px; max-width: 300px; }

.screens { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 26px 0; }
.screens figure { margin: 0; }
.prose .screens img { border: 0; }

@media (max-width: 1100px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-split { grid-template-columns: 1fr; }
  .hero-pic { max-width: 240px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cat-grid .card-body { padding: 12px; }
  .cat-grid .card-body p { display: none; }
  .cat-grid .card-image.pic { padding: 10px; }
  .cat-grid .card-image.pic img { max-height: 110px; }
  .screens { grid-template-columns: 1fr 1fr; gap: 10px; }
  .footer-grid { grid-template-columns: 1fr; }
}
.aside-card .copy-btn { border: 1px solid var(--gold); margin-left: 0; }

/* ---------- Header actions (Login + Register) ---------- */
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-login {
  padding: 8px 18px;
  border: 2px solid var(--black);
  border-radius: 999px;
  color: var(--black);
  font-weight: 800;
  white-space: nowrap;
}
.header-login:hover { background: var(--black); color: var(--gold-light); }
.header-cta { white-space: nowrap; }

/* ---------- Games drop-down ---------- */
.nav-drop { position: relative; }
.nav-drop > a { display: inline-flex; align-items: center; gap: 4px; }
.nav-drop .caret { font-size: .75em; transition: transform .2s ease; }
.drop-menu {
  position: absolute;
  top: 100%;
  left: -14px;
  z-index: 120;
  min-width: 220px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: 0 0 12px 12px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.nav-drop::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; }
.drop-menu a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--text); font-weight: 650; }
.drop-menu a:hover, .drop-menu a[aria-current="page"] { background: var(--surface-2); }
.drop-menu a:last-child { margin-top: 4px; border-top: 1px solid var(--border); border-radius: 0 0 8px 8px; color: var(--gold-dark); }
@media (min-width: 901px) {
  .drop-menu { top: calc(100% + 14px); }
  .nav-drop:hover .drop-menu, .nav-drop:focus-within .drop-menu { opacity: 1; visibility: visible; transform: none; }
  .nav-drop:hover .caret, .nav-drop:focus-within .caret { transform: rotate(180deg); }
}

@media (max-width: 1100px) and (min-width: 901px) {
  .main-nav { gap: 13px; }
  .main-nav a { font-size: .86rem; }
  .header-inner { gap: 16px; }
  .header-login, .header-cta { padding: 8px 13px; font-size: .9rem; }
}

@media (max-width: 900px) {
  .header-actions { margin-left: auto; }
  .header-actions .header-cta { display: none; }
  .menu-toggle { margin-left: 0; }
  .main-nav.open .nav-drop > a { display: flex; padding: 12px 14px; }
  .drop-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: 0;
    padding: 0 0 4px 14px;
    border: 0;
    border-left: 3px solid var(--gold);
    border-radius: 0;
    box-shadow: none;
    margin-left: 14px;
  }
  .main-nav.open .drop-menu a { padding: 8px 12px; font-size: .92rem; }
  .drop-menu a:last-child { border-top: 0; margin-top: 0; }
}

@media (max-width: 380px) {
  .logo span small { display: none; }
  .header-login { padding: 6px 12px; }
}

/* ---------- Home: register screen | text | login screen ---------- */
.login-register {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}
.login-register figure { margin: 0; }
.login-register figcaption { margin-top: 8px; text-align: center; font-weight: 750; font-size: .92rem; }
.login-register .lr-text { text-align: center; }
.login-register .lr-text h3 { margin-top: 22px; }
.login-register .lr-text h3:first-child { margin-top: 0; }
@media (max-width: 900px) {
  .login-register { grid-template-columns: 1fr 1fr; gap: 16px; }
  .login-register .lr-text { grid-column: 1 / -1; grid-row: 2; }
}
.main-nav a { white-space: nowrap; }
.main-nav > a[lang] { display: none; }
.login-register figure img { border-radius: 22px; }
@media (max-width: 900px) { .main-nav.open > a[lang] { display: block; } }
/* ---------- Blog (/blog/) ---------- */
.post-grid .card-image { display: block; }
.post-grid h3 { margin: 6px 0 10px; font-size: 1.2rem; line-height: 1.3; }
.post-grid h3 a { color: var(--text); }
.post-grid h3 a:hover { color: var(--gold-dark); }
.pager { display: flex; justify-content: center; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 40px; color: var(--muted); }
.post-hero .narrow { max-width: 860px; }
.post-hero h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
.post-thumb { margin: 0 0 28px; }
.post-thumb img { width: 100%; border-radius: var(--radius); border-bottom: 4px solid var(--gold); }
.post-body img { border-radius: 12px; margin: 22px 0; }
.post-body blockquote { margin: 24px 0; padding: 12px 20px; border-left: 5px solid var(--gold); border-radius: 10px; background: var(--surface); }
.post-body pre { overflow-x: auto; padding: 14px; border-radius: 10px; background: var(--black); color: #fff; }
.post-body h2 { margin-top: 36px; }
.preview-bar { position: sticky; top: 0; z-index: 60; padding: 10px 16px; background: var(--black); color: var(--gold-light); text-align: center; font-weight: 700; }
.preview-bar a { color: #fff; margin-left: 8px; }
.footer-bottom .admin-login {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border: 1px solid var(--gold);
  border-radius: 8px;
  color: var(--gold-light);
  font-weight: 700;
}
.footer-bottom .admin-login:hover { background: var(--gold); color: var(--black); }
.logo img, .header-actions { flex-shrink: 0; }
.logo { min-width: 0; }
.logo span { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1100px) and (min-width: 901px) { .logo span { display: none; } }
@media (max-width: 680px) { .logo { white-space: normal; } .logo span { line-height: 1.15; } }
