/* =============================================
   SOFT-EDGE Theme — Warm Minimalism
   ============================================= */

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

:root {
  --se-warm-900: #3d2c1e;
  --se-warm-800: #5c3d2e;
  --se-warm-700: #7a5240;
  --se-warm-600: #9b6b52;
  --se-warm-500: #b8856a;
  --se-warm-400: #d4a68a;
  --se-warm-300: #e8c4aa;
  --se-warm-200: #f3dcc8;
  --se-warm-100: #faf0e6;
  --se-warm-50: #fdf8f3;
  --se-cream: #fffcf7;
  --se-sand: #f5ede3;
  --se-cta: #c45e2c;
  --se-cta-hover: #a84e24;
  --se-cta-light: #f7e3d5;
  --se-success: #4a8c5c;
  --se-gold: #c09040;
  --se-gold-light: #f5e6c8;
  --se-text: #3d2c1e;
  --se-text-soft: #7a6b60;
  --se-text-faint: #a89888;
  --se-line: #e6ddd3;
  --se-line-light: #f0e8de;
  --se-heading: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
  --se-body: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
  --se-mono: 'DM Mono', 'Consolas', monospace;
  --se-w: 1120px;
  --se-r: 14px;
  --se-r-sm: 8px;
  --se-r-lg: 20px;
  --se-lift: 0 2px 8px rgba(61,44,30,0.06);
  --se-lift-md: 0 6px 20px rgba(61,44,30,0.08);
  --se-lift-lg: 0 12px 36px rgba(61,44,30,0.1);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--se-body);
  color: var(--se-text);
  background: var(--se-cream);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--se-warm-700); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--se-cta); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.se-wrap {
  max-width: var(--se-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Двухуровневый Header --- */
.se-topbar {
  background: var(--se-warm-900);
  color: var(--se-warm-300);
  font-size: 0.8rem;
  padding: 6px 0;
}
.se-topbar .se-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.se-topbar-left { font-weight: 500; }
.se-topbar-right { opacity: 0.7; }

.se-header {
  background: var(--se-cream);
  border-bottom: 1px solid var(--se-line);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255,252,247,0.95);
}
.se-header .se-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.se-brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--se-warm-900);
  text-decoration: none;
  letter-spacing: -0.3px;
}
.se-brand:hover { color: var(--se-warm-900); text-decoration: none; }

.se-nav { display: flex; gap: 2px; }
.se-nav a {
  color: var(--se-text-soft);
  padding: 8px 14px;
  border-radius: var(--se-r-sm);
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.se-nav a:hover {
  background: var(--se-sand);
  color: var(--se-text);
  text-decoration: none;
}

.se-burger {
  display: none;
  background: none;
  border: none;
  width: 36px;
  height: 36px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.se-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--se-warm-900);
  border-radius: 2px;
  transition: transform 0.2s;
}

/* --- Полноэкранный Hero --- */
.se-hero {
  background: linear-gradient(160deg, var(--se-warm-200) 0%, var(--se-sand) 50%, var(--se-warm-100) 100%);
  padding: 56px 24px 48px;
  text-align: center;
  border-bottom: 1px solid var(--se-line);
}
.se-hero-inner {
  max-width: 760px;
  margin: 0 auto;
}
.se-hero h1 {
  font-family: var(--se-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--se-warm-900);
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}
.se-hero-sub {
  font-size: 1.05rem;
  color: var(--se-text-soft);
  max-width: 600px;
  margin: 0 auto 18px;
  line-height: 1.6;
}
.se-hero-img {
  max-width: 340px;
  width: 100%;
  border-radius: var(--se-r);
  margin: 0 auto 20px;
  box-shadow: var(--se-lift-md);
}
.se-hero-byline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--se-text-faint);
  flex-wrap: wrap;
}
.se-hero-byline img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.se-hero-byline a { color: var(--se-warm-700); font-weight: 600; }
.se-hero-byline-sep { color: var(--se-line); }

.se-hero-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.se-hero-stat {
  text-align: center;
}
.se-hero-stat-val {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--se-warm-800);
  display: block;
}
.se-hero-stat-lbl {
  font-size: 0.75rem;
  color: var(--se-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- Main Content --- */
.se-main {
  max-width: var(--se-w);
  margin: 0 auto;
  padding: 40px 24px 60px;
  position: relative;
}

.se-article {
  max-width: 780px;
}

/* --- Floating TOC --- */
.se-toc {
  position: fixed;
  top: 80px;
  right: calc((100vw - var(--se-w)) / 2);
  width: 220px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding: 16px 0;
}
.se-toc-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--se-text-faint);
  margin-bottom: 10px;
  padding-left: 12px;
}
.se-toc ul { list-style: none; }
.se-toc li { margin-bottom: 2px; }
.se-toc a {
  display: block;
  padding: 5px 12px;
  font-size: 0.82rem;
  color: var(--se-text-soft);
  border-left: 2px solid transparent;
  border-radius: 0 var(--se-r-sm) var(--se-r-sm) 0;
  transition: all 0.15s;
}
.se-toc a:hover {
  color: var(--se-warm-800);
  background: var(--se-warm-100);
  border-left-color: var(--se-warm-400);
  text-decoration: none;
}

/* --- Content Sections --- */
.se-section {
  margin-bottom: 48px;
}
.se-section-head {
  font-family: var(--se-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--se-warm-900);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--se-line-light);
  letter-spacing: -0.2px;
}
.se-section h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--se-warm-800);
  margin-bottom: 10px;
}
.se-section p { margin-bottom: 16px; }
.se-section ul, .se-section ol {
  margin-bottom: 16px;
  padding-left: 22px;
}
.se-section li { margin-bottom: 6px; }

/* section content from Claude (no wrapping class) */
section h2 {
  font-family: var(--se-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--se-warm-900);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--se-line-light);
  letter-spacing: -0.2px;
}
section h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--se-warm-800);
  margin-bottom: 10px;
}
section p { margin-bottom: 16px; }
section ul, section ol { margin-bottom: 16px; padding-left: 22px; }
section li { margin-bottom: 6px; }
section table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}
section th, section td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--se-line);
}
section th {
  font-weight: 600;
  color: var(--se-text-soft);
  font-size: 0.88rem;
}

/* --- Buttons --- */
.se-btn {
  display: inline-block;
  padding: 11px 28px;
  border: none;
  border-radius: var(--se-r);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
}
.se-btn:hover { text-decoration: none; }
.se-btn-cta {
  background: var(--se-cta);
  color: #fff;
  box-shadow: 0 2px 8px rgba(196,94,44,0.2);
}
.se-btn-cta:hover {
  background: var(--se-cta-hover);
  color: #fff;
  box-shadow: 0 4px 14px rgba(196,94,44,0.3);
}
.se-btn-outline {
  background: transparent;
  color: var(--se-warm-700);
  border: 1.5px solid var(--se-warm-400);
}
.se-btn-outline:hover {
  background: var(--se-warm-100);
  color: var(--se-warm-800);
}

/* --- Quick Facts --- */
.se-facts {
  background: var(--se-sand);
  border-radius: var(--se-r);
  padding: 24px;
  margin-bottom: 40px;
}
.se-facts table { width: 100%; border-collapse: collapse; }
.se-facts td, .se-facts th {
  padding: 9px 14px;
  text-align: left;
  border-bottom: 1px solid var(--se-line);
}
.se-facts tr:last-child td, .se-facts tr:last-child th { border-bottom: none; }
.se-facts th { font-weight: 600; color: var(--se-text-soft); width: 40%; font-size: 0.9rem; }

/* --- Casino Cards --- */
.se-casinos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}
.se-casino-card {
  background: #fff;
  border: 1px solid var(--se-line);
  border-radius: var(--se-r);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.2s, transform 0.15s;
}
.se-casino-card:hover {
  box-shadow: var(--se-lift-md);
  transform: translateY(-2px);
}
.se-casino-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--se-warm-900);
}
.se-casino-bonus {
  background: var(--se-cta-light);
  color: var(--se-cta);
  padding: 8px 12px;
  border-radius: var(--se-r-sm);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.4;
}
.se-casino-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--se-text-soft);
}
.se-casino-rating {
  font-weight: 700;
  color: var(--se-gold);
}
.se-casino-license {
  font-size: 0.8rem;
  color: var(--se-text-faint);
}
.se-casino-card .se-btn-cta {
  width: 100%;
  text-align: center;
  margin-top: auto;
}

/* --- Demo Player --- */
.se-demo {
  background: #fff;
  border: 1px solid var(--se-line);
  border-radius: var(--se-r);
  padding: 24px;
  margin-bottom: 40px;
}
.se-demo-frame {
  border-radius: var(--se-r-sm);
  overflow: hidden;
  background: #1a1a1a;
}
.se-demo-frame iframe {
  display: block;
  border: none;
  width: 100%;
  min-height: 480px;
}
.se-demo-note {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--se-text-faint);
  text-align: center;
}

/* --- FAQ Full List --- */
.se-faq-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.se-faq-item {
  border-bottom: 1px solid var(--se-line-light);
  padding-bottom: 24px;
}
.se-faq-item:last-child { border-bottom: none; padding-bottom: 0; }
.se-faq-q {
  font-family: var(--se-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--se-warm-900);
  margin-bottom: 8px;
}
.se-faq-a {
  color: var(--se-text);
  line-height: 1.75;
}

/* also style pre-rendered faq_html with details/summary */
.se-faq-section details {
  border-bottom: 1px solid var(--se-line-light);
  padding-bottom: 0;
  margin-bottom: 0;
}
.se-faq-section summary {
  padding: 16px 0;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--se-warm-900);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.se-faq-section summary::-webkit-details-marker { display: none; }
.se-faq-section summary::after { content: "+"; font-size: 1.1rem; color: var(--se-text-faint); font-weight: 400; }
.se-faq-section details[open] summary::after { content: "\2212"; }
.se-faq-section .faq-answer,
.se-faq-section details > div,
.se-faq-section details > p {
  padding: 0 0 20px;
  color: var(--se-text);
  line-height: 1.75;
}

/* --- Author Box --- */
.se-author-card {
  background: var(--se-sand);
  border-radius: var(--se-r);
  padding: 28px;
  margin-top: 48px;
}
.se-author-inner {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.se-author-pic {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--se-warm-300);
}
.se-author-body { flex: 1; }
.se-author-name {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 2px;
}
.se-author-name a { color: var(--se-warm-800); }
.se-author-role {
  font-size: 0.85rem;
  color: var(--se-text-faint);
  margin-bottom: 8px;
}
.se-author-desc {
  font-size: 0.92rem;
  color: var(--se-text-soft);
  margin-bottom: 6px;
}
.se-author-count {
  font-size: 0.82rem;
  color: var(--se-text-faint);
  font-weight: 600;
}

/* --- Email Signup --- */
.se-signup {
  background: var(--se-warm-900);
  color: var(--se-warm-200);
  border-radius: var(--se-r);
  padding: 36px;
  text-align: center;
  margin-top: 40px;
}
.se-signup h3 {
  font-family: var(--se-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.se-signup p {
  font-size: 0.92rem;
  opacity: 0.8;
  margin-bottom: 20px;
}
.se-signup-form {
  max-width: 440px;
  margin: 0 auto;
}
.se-signup-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.se-signup-form input[type="email"] {
  flex: 1;
  padding: 11px 16px;
  border: 1.5px solid var(--se-warm-700);
  border-radius: var(--se-r-sm);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 0.95rem;
  font-family: var(--se-body);
}
.se-signup-form input[type="email"]::placeholder { color: var(--se-warm-400); }
.se-signup-form input[type="email"]:focus {
  outline: none;
  border-color: var(--se-warm-400);
  background: rgba(255,255,255,0.12);
}
.se-signup-form .se-btn-cta {
  white-space: nowrap;
  padding: 11px 24px;
  background: var(--se-cta);
}
.se-signup-consent {
  font-size: 0.75rem;
  opacity: 0.6;
  text-align: left;
}
.se-signup-consent a { color: var(--se-warm-300); text-decoration: underline; }
.se-signup-consent label { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }

/* --- Disclaimer --- */
.se-disclaimer {
  background: var(--se-gold-light);
  border-top: 2px solid var(--se-gold);
  padding: 14px 24px;
  font-size: 0.82rem;
  color: var(--se-warm-800);
  text-align: center;
}
.se-disclaimer a { color: var(--se-warm-800); font-weight: 600; text-decoration: underline; }
.se-disclaimer strong { font-weight: 700; }

/* --- Footer --- */
.se-footer {
  background: var(--se-warm-900);
  color: var(--se-warm-400);
  padding: 36px 24px;
  text-align: center;
}
.se-footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.se-footer-links a {
  color: var(--se-warm-400);
  font-size: 0.88rem;
  transition: color 0.2s;
}
.se-footer-links a:hover { color: #fff; text-decoration: none; }
.se-footer-copy {
  font-size: 0.82rem;
  opacity: 0.5;
  margin-bottom: 8px;
}
.se-footer-age {
  font-size: 0.78rem;
  opacity: 0.5;
}
.se-age-mark {
  display: inline-block;
  background: var(--se-cta);
  color: #fff;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.72rem;
  margin-right: 4px;
  vertical-align: middle;
}

/* --- Author Page --- */
.se-author-page { max-width: 700px; margin: 0 auto; padding: 48px 24px; }
.se-author-page-header { text-align: center; margin-bottom: 36px; }
.se-author-page-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 3px solid var(--se-warm-300);
}
.se-author-page-name {
  font-family: var(--se-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--se-warm-900);
  margin-bottom: 4px;
}
.se-author-page-title {
  font-size: 0.95rem;
  color: var(--se-text-faint);
  margin-bottom: 16px;
}
.se-author-page-bio {
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 28px;
}
.se-author-details {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 20px;
  font-size: 0.9rem;
  margin-bottom: 24px;
}
.se-author-details dt { font-weight: 600; color: var(--se-text-soft); }
.se-author-details dd { color: var(--se-text); }
.se-author-social {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.se-author-social a {
  padding: 8px 18px;
  border: 1px solid var(--se-line);
  border-radius: var(--se-r-sm);
  font-size: 0.85rem;
  color: var(--se-warm-700);
  transition: background 0.2s;
}
.se-author-social a:hover {
  background: var(--se-sand);
  text-decoration: none;
}

/* --- Legal/Static Pages --- */
.se-legal {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 24px;
}

/* --- Responsive --- */
@media (max-width: 1280px) {
  .se-toc { display: none; }
  .se-article { max-width: 100%; }
}

@media (max-width: 700px) {
  .se-hero h1 { font-size: 1.7rem; }
  .se-hero-sub { font-size: 0.92rem; }
  .se-hero { padding: 36px 16px 32px; }

  .se-nav { display: none; }
  .se-burger { display: flex; }

  .se-casinos-grid { grid-template-columns: 1fr; }

  .se-author-inner { flex-direction: column; align-items: center; text-align: center; }

  .se-signup { padding: 24px 16px; }
  .se-signup-row { flex-direction: column; }

  .se-footer-links { gap: 10px; }

  .se-hero-stats { gap: 16px; }
  .se-hero-stat-val { font-size: 1.1rem; }

  .se-topbar { display: none; }
}

@media (max-width: 420px) {
  .se-hero h1 { font-size: 1.45rem; }
  .se-hero-byline { flex-direction: column; gap: 4px; }
  .se-hero-byline-sep { display: none; }
  .se-casino-card { padding: 18px; }
}

/* --- Print --- */
@media print {
  .se-topbar, .se-header, .se-toc, .se-signup, .se-disclaimer, .se-footer { display: none; }
  body { background: #fff; color: #000; }
  .se-hero { background: none; border-bottom: 1px solid #ccc; padding: 20px 0; }
}
