:root {
  --main: #be2edd;
  --second: #ff2453;
  --red: #e5252a;
  --red-dark: #b71c1c;
  --gold: #ffd700;
  --green: #2ecc71;
  --blue: #0ea5e9;
  --ink: #151515;
  --text: #2a2a2a;
  --muted: #6b7280;
  --line: #e8e8e8;
  --soft: #f5f6fa;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
  --tw-bg: #ffffff;
  --tw-text: #111827;
  --tw-muted: #6b7280;
  --tw-accent: #e11d48;
  --tw-accent-contrast: #ffffff;
  --tw-secondary: #0ea5e9;
  --tw-secondary-contrast: #ffffff;
  --tw-card-bg: #f9fafb;
  --tw-radius: 14px;
  --tw-border: #e5e7eb;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.75;
}

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

a {
  color: #c62828;
  text-decoration: none;
  font-weight: 600;
}

a:hover,
a:focus {
  color: var(--red);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  z-index: 50;
  background: var(--red);
  color: #fff;
  padding: 10px 14px;
}

.skip-link:focus {
  left: 10px;
}

.space-wrapper,
.space-page-wrapper {
  width: min(100% - 32px, 1120px);
  margin: 0 auto;
}

.space-header-height {
  position: relative;
  background: #fff;
}

.space-header-top {
  background: var(--soft);
  color: #7f8c8d;
  font-size: 13px;
}

.topbar-inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-inner nav {
  display: flex;
  gap: 8px;
}

.topbar-inner nav a {
  width: 28px;
  height: 28px;
  border: 1px solid #cfd8dc;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #7f8c8d;
  font-size: 11px;
  text-transform: uppercase;
}

.space-header {
  background: #fff;
  border-bottom: 1px solid #eef0f2;
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo img {
  width: 174px;
  height: auto;
}

.main-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.main-menu a {
  color: var(--ink);
  padding: 29px 0 27px;
  border-bottom: 2px solid transparent;
}

.main-menu a:hover,
.main-menu a:focus {
  color: var(--main);
  border-bottom-color: var(--main);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 8px;
}

.mobile-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  margin: 6px 0;
}

.space-title-box {
  background: #f1f3f4;
  padding: 38px 0;
}

.space-title-box h1 {
  margin: 0;
  color: var(--ink);
  font-family: Oswald, "Arial Narrow", Arial, sans-serif;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.15;
  font-weight: 700;
}

.space-page-section {
  padding: 44px 0 0;
}

.entry-content {
  max-width: 980px;
  margin: 0 auto;
}

.entry-content > p:first-of-type {
  padding: 36px 32px;
  margin: 0 0 40px;
  background: linear-gradient(135deg, #fff8f8 0%, #fff5ec 100%);
  border: 1px solid #f0e0d0;
  border-left: 4px solid var(--red);
  border-radius: 10px;
  font-size: 18px;
  line-height: 1.8;
  color: #222;
}

h2,
h3,
h4 {
  font-family: Oswald, "Arial Narrow", Arial, sans-serif;
}

h2 {
  position: relative;
  margin: 52px 0 20px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--red);
  color: var(--ink);
  font-size: 30px;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

h2::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--gold);
}

h3 {
  margin: 36px 0 14px;
  padding-left: 14px;
  border-left: 3px solid var(--red);
  color: var(--red-dark);
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
}

h4 {
  margin: 28px 0 10px;
  color: #333;
  font-size: 19px;
  font-weight: 500;
}

p {
  margin: 0 0 16px;
}

.casino-listing-container.tw-sebastian {
  margin: 0 0 44px;
}

.tw-row {
  position: relative;
  display: grid;
  grid-template-columns: 110px 1.1fr 1.6fr 160px 200px;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: var(--tw-bg);
  border: 1px solid var(--tw-border);
  border-radius: var(--tw-radius);
  transition: background 0.2s, box-shadow 0.2s, transform 0.12s;
  margin: 18px 0 12px;
  color: var(--tw-text);
}

.tw-row:hover {
  background: var(--tw-card-bg);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.tw-rank {
  position: absolute;
  left: -12px;
  top: -8px;
  width: 44px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  color: #fff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
  z-index: 2;
}

.tw-rank--1 { background: #dc2626; }
.tw-rank--2 { background: #16a34a; }
.tw-rank--3 { background: #2563eb; }
.tw-rank--other { background: #64748b; }

.tw-logo {
  width: 100px;
  height: 100px;
  border-radius: 10px;
  background: #fff;
  border: 1px dashed var(--tw-border);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.tw-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.tw-name {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.tw-bonus {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}

.tw-bonus small {
  display: block;
  margin-top: 4px;
  color: var(--tw-muted);
  font-size: 14px;
  font-weight: 500;
}

.tw-rating {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 16px;
}

.tw-score {
  font-size: 18px;
  font-weight: 700;
}

.tw-stars {
  position: relative;
  display: inline-block;
  width: 110px;
  height: 18px;
  background: #d1d5db;
  clip-path: polygon(5% 0,7% 35%,11% 35%,8% 55%,10% 88%,5% 66%,0 88%,2% 55%,-1% 35%,3% 35%,5% 0,27% 0,29% 35%,33% 35%,30% 55%,32% 88%,27% 66%,22% 88%,24% 55%,21% 35%,25% 35%,27% 0,49% 0,51% 35%,55% 35%,52% 55%,54% 88%,49% 66%,44% 88%,46% 55%,43% 35%,47% 35%,49% 0,71% 0,73% 35%,77% 35%,74% 55%,76% 88%,71% 66%,66% 88%,68% 55%,65% 35%,69% 35%,71% 0,93% 0,95% 35%,99% 35%,96% 55%,98% 88%,93% 66%,88% 88%,90% 55%,87% 35%,91% 35%,93% 0);
  overflow: hidden;
}

.tw-stars::after {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--fill, 0%);
  background: #f59e0b;
}

.tw-actions {
  display: grid;
}

.tw-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 11px 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  background: var(--tw-accent);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none !important;
}

.tw-btn:hover,
.tw-btn:focus {
  filter: brightness(1.08);
  box-shadow: 0 6px 16px rgba(225, 29, 72, 0.35);
}

.terms-note {
  margin: -6px 4px 0;
  color: var(--tw-muted);
  font-size: 0.9em;
}

.wp-block-image {
  margin: 24px 0 28px;
}

.wp-block-image img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.casino-review-image {
  margin: 18px 0 36px;
}

.wp-block-table {
  margin: 24px 0 28px;
  overflow-x: auto;
}

.wp-block-table table {
  width: 100%;
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.wp-block-table thead tr {
  background: linear-gradient(135deg, var(--red) 0%, #c41e22 100%);
}

.wp-block-table th {
  padding: 13px 16px;
  color: #fff;
  font-family: Oswald, "Arial Narrow", Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-align: left;
  text-transform: uppercase;
}

.wp-block-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  color: #333;
  font-size: 15px;
  vertical-align: middle;
}

.wp-block-table tbody tr:nth-child(even) {
  background: #fafafa;
}

.wp-block-table tbody tr:hover {
  background: #fff8f0;
}

.wp-block-table tbody td:first-child {
  color: var(--ink);
  font-weight: 600;
}

.wp-block-table tbody td:last-child {
  color: #c62828;
  font-weight: 700;
}

.wp-block-list {
  margin: 16px 0 24px;
  padding-left: 0;
  list-style: none;
}

.wp-block-list > li {
  position: relative;
  padding: 13px 18px 13px 34px;
  margin-bottom: 6px;
  background: #fafafa;
  border-left: 3px solid var(--red);
  border-radius: 8px;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.wp-block-list > li:hover {
  border-left-color: var(--gold);
  background: #fffcf0;
  transform: translateX(3px);
}

.wp-block-list > li::before {
  content: "▸";
  position: absolute;
  left: 13px;
  top: 14px;
  color: var(--red);
  font-size: 14px;
  font-weight: 700;
}

.schema-faq {
  margin: 24px 0;
}

.schema-faq-section {
  margin-bottom: 10px;
  padding: 18px 22px;
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.schema-faq-section:hover {
  border-color: var(--red);
  box-shadow: 0 2px 8px rgba(229, 37, 42, 0.08);
}

.schema-faq-question {
  position: relative;
  display: block;
  margin-bottom: 8px;
  padding-left: 30px;
  color: var(--ink);
  font-family: Oswald, "Arial Narrow", Arial, sans-serif;
  font-size: 17px;
}

.schema-faq-question::before {
  content: "Q";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.schema-faq-answer {
  margin: 0;
  padding-left: 30px;
  color: #444;
  font-size: 15px;
  line-height: 1.7;
}

.contact-section {
  margin: 52px 0 0;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(135deg, #fff8f8 0%, #fff5ec 100%);
}

.contact-section h2 {
  margin-top: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.contact-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid #efd5d5;
  border-radius: 8px;
  background: #fff;
}

.contact-card span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.contact-card strong {
  display: block;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.space-footer {
  margin-top: 54px;
  background: #263238;
  color: #dbe2e6;
}

.space-footer-top {
  padding: 30px 0;
  text-align: center;
}

.footer-responsible hr {
  border: 0;
  border-top: 1px solid #46565e;
  margin: 0 0 22px;
}

.footer-responsible strong {
  display: inline-grid;
  width: 52px;
  height: 52px;
  place-items: center;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--second);
  color: #fff;
}

.space-footer-copy {
  background: #1f2930;
  padding: 18px 0;
}

.footer-copy-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-copy-inner p {
  margin: 0;
}

.footer-copy-inner nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-copy-inner a {
  color: #fff;
}

.space-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--second);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.space-to-top.is-visible {
  display: block;
}

::selection {
  background: var(--red);
  color: #fff;
}

@media (max-width: 920px) {
  .space-wrapper,
  .space-page-wrapper {
    width: min(100% - 24px, 980px);
  }

  .header-inner {
    min-height: 68px;
  }

  .site-logo img {
    width: 146px;
  }

  .mobile-toggle {
    display: block;
  }

  .main-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 68px;
    z-index: 20;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 18px 16px;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .main-menu.is-open {
    display: flex;
  }

  .main-menu a {
    padding: 12px 0;
  }

  .tw-row {
    grid-template-columns: 92px 1fr;
    grid-template-areas:
      "logo name"
      "logo bonus"
      "rating rating"
      "actions actions";
    row-gap: 10px;
    padding: 14px;
    background: var(--tw-card-bg);
  }

  .tw-logo {
    grid-area: logo;
    width: 92px;
    height: 92px;
  }

  .tw-name {
    grid-area: name;
    font-size: 18px;
  }

  .tw-bonus {
    grid-area: bonus;
    font-size: 16px;
  }

  .tw-rating {
    grid-area: rating;
    justify-content: flex-start;
  }

  .tw-actions {
    grid-area: actions;
  }

  .tw-rank {
    left: -10px;
    top: -6px;
    width: 40px;
    height: 44px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  .topbar-inner {
    justify-content: center;
  }

  .topbar-inner nav {
    display: none;
  }

  .space-title-box {
    padding: 28px 0;
  }

  h2 {
    margin: 36px 0 16px;
    font-size: 25px;
  }

  h3 {
    font-size: 19px;
  }

  .entry-content > p:first-of-type {
    padding: 24px 18px;
    font-size: 16px;
  }

  .wp-block-table th {
    padding: 10px;
    font-size: 11px;
  }

  .wp-block-table td {
    padding: 9px;
    font-size: 13px;
  }

  .contact-section {
    padding: 22px 18px;
  }

  .footer-copy-inner {
    flex-direction: column;
    text-align: center;
  }
}
