:root {
  --bg-top: #f8f3e9;
  --bg-mid: #f4eee2;
  --bg-bottom: #f7f2e8;
  --text: #1f160f;
  --muted: #4a392a;
  --accent: #4b2d17;
  --accent-soft: rgba(107, 71, 33, 0.12);
  --line: rgba(58, 37, 16, 0.24);
  --max-width: 980px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  font-size: 18px;
  line-height: 1.44;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.92), transparent 28%),
    radial-gradient(circle at 85% 18%, rgba(158, 125, 84, 0.08), transparent 22%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 45%, var(--bg-bottom) 100%);
}

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

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

.site-header-inner,
.content {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  border-bottom: 1px solid rgba(255, 199, 108, 0.08);
  box-shadow:
    inset 0 -1px 0 rgba(255, 214, 146, 0.04),
    0 12px 28px rgba(12, 7, 4, 0.18);
  background: linear-gradient(180deg, rgba(18, 12, 9, 0.98) 0%, rgba(9, 7, 5, 0.98) 100%);
}

.site-header::before,
.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.site-header::before {
  background:
    linear-gradient(180deg, rgba(11, 8, 6, 0.62) 0%, rgba(11, 8, 6, 0.78) 100%),
    radial-gradient(circle at 72% 22%, rgba(214, 153, 71, 0.18), transparent 18%),
    url("./assets/tortuga-header-bg.webp") center top / auto 100% repeat-x;
  filter: blur(1.6px);
}

.site-header::after {
  background:
    linear-gradient(180deg, rgba(255, 214, 146, 0.06) 0%, transparent 16%, transparent 82%, rgba(255, 214, 146, 0.04) 100%),
    linear-gradient(90deg, rgba(10, 7, 5, 0.16) 0%, transparent 24%, transparent 76%, rgba(10, 7, 5, 0.16) 100%);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
  position: relative;
  z-index: 1;
}

.logo {
  width: 220px;
  height: auto;
}

.logo-link {
  flex-shrink: 0;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-width: 0;
  flex: 1 1 auto;
}

.primary-nav a {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(242, 225, 194, 0.88);
  text-shadow: 0 1px 0 rgba(7, 4, 2, 0.45);
  transition: color 0.18s ease, opacity 0.18s ease;
}

.primary-nav a:hover {
  color: #f8ddb0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.header-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 19px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #22140a;
  border: 1px solid rgba(255, 213, 124, 0.46);
  background:
    linear-gradient(180deg, #d6aa53 0%, #b57f33 48%, #7e5622 100%);
  box-shadow:
    0 6px 14px rgba(12, 7, 4, 0.24),
    0 1px 0 rgba(255, 233, 176, 0.4) inset,
    inset 0 -1px 0 rgba(72, 42, 12, 0.52);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease;
}

.header-actions a:hover {
  transform: translateY(-1px);
  box-shadow:
    0 10px 18px rgba(12, 7, 4, 0.28),
    0 1px 0 rgba(255, 236, 188, 0.46) inset,
    inset 0 -1px 0 rgba(86, 49, 14, 0.58);
  border-color: rgba(255, 220, 146, 0.56);
  background:
    linear-gradient(180deg, #dfb761 0%, #c18b39 48%, #845a25 100%);
}

.header-actions a:active {
  transform: translateY(0);
  box-shadow:
    0 2px 6px rgba(12, 7, 4, 0.22),
    0 1px 0 rgba(255, 229, 166, 0.24) inset;
}

.header-actions a:last-child {
  position: relative;
  animation: registrationPulse 1.85s ease-in-out infinite;
  will-change: transform, box-shadow, filter;
}

@keyframes registrationPulse {
  0%,
  100% {
    transform: scale(1);
    color: #23150a;
    text-shadow: 0 0 0 rgba(255, 255, 255, 0);
    box-shadow:
      0 6px 14px rgba(12, 7, 4, 0.24),
      0 1px 0 rgba(255, 233, 176, 0.4) inset,
      inset 0 -1px 0 rgba(72, 42, 12, 0.52),
      0 0 0 0 rgba(245, 214, 143, 0);
    filter: brightness(1);
  }

  50% {
    transform: scale(1.08);
    color: #fffef9;
    text-shadow:
      0 0 10px rgba(255, 252, 241, 0.72),
      0 0 18px rgba(255, 234, 189, 0.42);
    box-shadow:
      0 12px 24px rgba(12, 7, 4, 0.34),
      0 0 0 2px rgba(255, 224, 153, 0.34),
      0 0 20px rgba(229, 181, 82, 0.34),
      0 1px 0 rgba(255, 239, 195, 0.48) inset,
      inset 0 -1px 0 rgba(95, 55, 15, 0.58);
    filter: brightness(1.13);
  }
}

.menu-toggle,
.mobile-menu,
.menu-close {
  display: none;
}

.mobile-menu[hidden] {
  display: none !important;
}

.content {
  padding: 26px 0 0;
}

h1,
h2 {
  margin: 0;
  font-family: "Cinzel Decorative", serif;
  line-height: 1.02;
  letter-spacing: 0.01em;
  color: #1d120b;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(2.05rem, 4.4vw, 3.15rem);
}

h2 {
  margin-top: 28px;
  margin-bottom: 12px;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
}

p,
ol,
ul,
table,
dl {
  margin: 0 0 12px;
}

p strong,
dt {
  color: #1f130b;
}

.lead {
  max-width: 62rem;
}

.promo-link {
  display: block;
  margin: 0 0 18px;
  overflow: hidden;
  border-radius: 16px;
}

.promo-image {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 18px 36px rgba(43, 25, 11, 0.12);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    filter 0.22s ease;
}

.promo-link:hover .promo-image {
  transform: scale(1.018);
  filter: brightness(1.04);
  box-shadow: 0 22px 42px rgba(43, 25, 11, 0.18);
}

ol,
ul {
  padding-left: 22px;
}

li + li {
  margin-top: 5px;
}

code {
  padding: 0.1em 0.4em;
  border-radius: 0.35em;
  font-family: inherit;
  font-size: 0.95em;
  background: rgba(248, 237, 216, 0.72);
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 12px;
}

.table-scroll table {
  margin: 0;
  min-width: 100%;
}

.table-scroll-wide table {
  min-width: 720px;
}

.reviews {
  margin: 20px 0 22px;
}

.reviews-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  margin-bottom: 14px;
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.96);
  border: 1px solid rgba(95, 67, 37, 0.16);
  box-shadow: 0 10px 28px rgba(43, 25, 11, 0.08);
  flex-wrap: wrap;
}

.reviews-summary-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.reviews-summary-title {
  font-family: "Cinzel Decorative", serif;
  font-size: 1rem;
  font-weight: 700;
  color: #1f130b;
}

.reviews-summary-rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.rating-score {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
  color: #8b632f;
}

.stars {
  display: inline-flex;
  gap: 2px;
}

.stars svg {
  width: 16px;
  height: 16px;
  fill: rgba(140, 110, 73, 0.2);
}

.stars svg.is-on {
  fill: #b68744;
}

.rating-count {
  font-size: 13px;
  color: #6e5847;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.review-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.96);
  border: 1px solid rgba(95, 67, 37, 0.14);
  box-shadow: 0 10px 24px rgba(43, 25, 11, 0.06);
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(180deg, #c89a56 0%, #8a612d 100%);
  color: #fff8eb;
  font-weight: 800;
}

.review-author-info {
  display: flex;
  flex-direction: column;
}

.review-name {
  font-size: 14px;
  font-weight: 700;
  color: #1d120b;
}

.review-date {
  font-size: 12px;
  color: #7a624f;
}

.review-card .stars {
  margin-bottom: 8px;
}

.review-card .stars svg {
  width: 14px;
  height: 14px;
}

.review-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.48;
  color: #3f3126;
}

.reviews-footer {
  margin-top: 14px;
  text-align: center;
}

.reviews-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(112, 80, 43, 0.36);
  background: linear-gradient(180deg, #d1a463 0%, #9a6d33 100%);
  color: #fff8ec;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 8px 18px rgba(91, 58, 22, 0.18);
  text-transform: uppercase;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

.reviews-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(91, 58, 22, 0.22);
  filter: brightness(1.04);
}

.reviews-cta-secondary {
  min-width: 150px;
}

.player-tip {
  margin: 16px 0 8px;
  padding: 16px 18px 17px;
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.96);
  border: 1px solid rgba(95, 67, 37, 0.14);
  box-shadow:
    inset 0 2px 6px rgba(91, 58, 22, 0.08),
    inset 0 -1px 3px rgba(255, 255, 255, 0.7);
}

.player-tip-title {
  margin: 0 0 10px;
  font-family: "Cinzel Decorative", serif;
  font-size: 1rem;
  font-weight: 700;
  color: #5c3c1a;
}

.player-tip-list {
  margin: 0;
  padding-left: 18px;
}

.player-tip-list li {
  color: #3f3126;
}

.play-now-wrap {
  display: flex;
  justify-content: center;
  margin: 30px 0 30px;
}

.play-now-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(270px, 27vw, 410px);
  aspect-ratio: 1831 / 541;
  min-height: 0;
  min-width: 0;
  padding: 0 3.35em;
  border: 0;
  border-radius: 0;
  background: url("./assets/tortuga-play-button.png") center center / contain no-repeat;
  color: #fff9ee;
  font-family: "Cinzel Decorative", serif;
  font-size: clamp(0.98rem, 1.02vw, 1.08rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(37, 18, 5, 0.44);
  box-shadow: none;
  transition:
    transform 0.18s ease,
    filter 0.18s ease;
}

.play-now-button:hover {
  transform: scale(1.018);
  filter: brightness(1.05) saturate(1.03);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.38;
  table-layout: auto;
}

th,
td {
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}

thead th {
  font-family: "Cinzel Decorative", serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #1f130b;
  border-bottom: 1px solid rgba(58, 37, 16, 0.28);
}

tbody tr {
  border-bottom: 1px solid var(--line);
}

tbody td:first-child {
  font-family: "Cinzel Decorative", serif;
  font-weight: 700;
  color: #1f130b;
}

dl {
  display: grid;
  gap: 4px;
}

dt {
  margin-top: 8px;
  font-weight: 700;
}

dd {
  margin: 0 0 4px;
  color: var(--muted);
}

.site-footer {
  position: relative;
  width: 100%;
  margin-top: 0;
  padding: 40px 0 34px;
  border-top: 1px solid rgba(255, 199, 108, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 214, 146, 0.04),
    0 -12px 28px rgba(12, 7, 4, 0.08);
  background: linear-gradient(180deg, rgba(18, 12, 9, 0.98) 0%, rgba(9, 7, 5, 0.98) 100%);
}

.site-footer::before,
.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.site-footer::before {
  background:
    linear-gradient(180deg, rgba(11, 8, 6, 0.66) 0%, rgba(11, 8, 6, 0.82) 100%),
    radial-gradient(circle at 30% 72%, rgba(214, 153, 71, 0.14), transparent 18%),
    url("./assets/tortuga-header-bg.webp") center bottom / auto 100% repeat-x;
  filter: blur(1.6px);
}

.site-footer::after {
  background:
    linear-gradient(180deg, rgba(255, 214, 146, 0.04) 0%, transparent 16%, transparent 84%, rgba(255, 214, 146, 0.05) 100%),
    linear-gradient(90deg, rgba(10, 7, 5, 0.18) 0%, transparent 24%, transparent 76%, rgba(10, 7, 5, 0.18) 100%);
}

.site-footer-inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.9fr);
  gap: 40px;
  align-items: start;
}

.footer-brand-top {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.footer-logo {
  width: 164px;
  height: auto;
}

.footer-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-trust-icon {
  height: 30px;
  width: auto;
  opacity: 0.82;
  filter: grayscale(1) brightness(1.26);
}

.footer-trust-icon-age {
  height: 26px;
  opacity: 0.88;
}

.footer-brand-copy {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.footer-rights-text {
  margin: 0;
  max-width: 380px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(242, 225, 194, 0.82);
  text-shadow: 0 1px 0 rgba(7, 4, 2, 0.42);
}

.footer-chest {
  width: min(166px, 42vw);
  height: auto;
  margin-left: -35px;
  margin-top: -10px;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.28));
}

.footer-side {
  display: grid;
  gap: 20px;
  justify-items: start;
}

.footer-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  font-size: 14px;
  color: rgba(242, 225, 194, 0.74);
  transition: color 0.18s ease;
}

.footer-nav a:hover {
  color: #f8ddb0;
}

.footer-compliance {
  margin-top: 2px;
}

.compliance-logos {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.compliance-logos img,
.compliance-logos svg {
  height: 32px;
  width: auto;
  opacity: 0.72;
  filter: grayscale(1) brightness(1.35);
}

body.menu-open {
  overflow: hidden;
}

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

  .site-header-inner,
  .content {
    width: min(calc(100% - 32px), var(--max-width));
  }

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

  .logo {
    width: 148px;
    margin-bottom: 3px;
  }

  .primary-nav {
    display: none;
  }

  .header-controls {
    gap: 10px;
  }

  .header-actions {
    display: flex;
    gap: 6px;
  }

  .header-actions a {
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 8px;
    letter-spacing: 0.045em;
  }

  .menu-toggle {
    display: inline-flex;
    flex-shrink: 0;
    width: 20px;
    height: 16px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #fff7ea;
    transform-origin: center;
  }

  .mobile-menu {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 30;
  }

  .mobile-menu-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 10, 4, 0.48);
  }

  .mobile-menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(88vw, 320px);
    min-height: 100dvh;
    padding: 18px 18px 24px;
    background:
      radial-gradient(circle at 16% 14%, rgba(190, 135, 61, 0.16), transparent 24%),
      linear-gradient(180deg, #4a2d18 0%, #382012 100%);
    box-shadow: -18px 0 40px rgba(16, 8, 2, 0.24);
  }

  .menu-close {
    display: inline-flex;
    position: relative;
    width: 40px;
    height: 40px;
    margin-left: auto;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 233, 201, 0.18);
    border-radius: 12px;
    background: rgba(255, 250, 242, 0.08);
    cursor: pointer;
  }

  .menu-close span {
    position: absolute;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #fff7ea;
  }

  .menu-close span:first-child {
    transform: rotate(45deg);
  }

  .menu-close span:last-child {
    transform: rotate(-45deg);
  }

  .mobile-menu-nav {
    display: grid;
    gap: 14px;
    margin-top: 22px;
  }

  .mobile-menu-nav a {
    font-size: 20px;
    font-weight: 600;
    color: #fff4e1;
  }

  .content {
    padding: 18px 0 0;
  }

  h1 {
    margin-bottom: 12px;
    font-size: clamp(1.45rem, 7vw, 2rem);
    line-height: 0.98;
  }

  h2 {
    margin-top: 24px;
    font-size: clamp(1.18rem, 5.3vw, 1.55rem);
    line-height: 1.05;
  }

  .promo-link {
    margin-bottom: 16px;
  }

  .intro-promo-image {
    height: clamp(240px, 62vw, 320px);
    object-fit: cover;
    object-position: left center;
  }

  .signup-promo-image {
    height: clamp(240px, 62vw, 320px);
    object-fit: cover;
    object-position: 68% center;
  }

  .games-promo-image {
    height: clamp(248px, 66vw, 336px);
    object-fit: cover;
    object-position: center center;
  }

  .payments-promo-image {
    height: clamp(236px, 60vw, 312px);
    object-fit: cover;
    object-position: center center;
  }

  .table-scroll {
    margin-right: -2px;
    padding-bottom: 2px;
  }

  .reviews-summary {
    padding: 16px;
  }

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

  .reviews-footer {
    margin-top: 12px;
  }

  .reviews-cta {
    width: 100%;
  }

  .player-tip {
    padding: 14px 15px 15px;
    border-radius: 16px;
  }

  .player-tip-title {
    font-size: 0.95rem;
  }

  .play-now-wrap {
    margin: 24px 0 24px;
  }

  .play-now-button {
    width: min(100%, 320px);
    padding: 0 3em;
    font-size: 0.94rem;
  }

  .site-footer {
    margin-top: 0;
    padding: 28px 0 28px;
  }

  .site-footer-inner {
    width: min(calc(100% - 32px), var(--max-width));
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer-brand-top {
    justify-content: center;
    gap: 14px;
    margin-bottom: 12px;
    text-align: center;
  }

  .footer-logo {
    width: 150px;
  }

  .footer-badges {
    justify-content: center;
  }

  .footer-trust-icon {
    height: 26px;
  }

  .footer-trust-icon-age {
    height: 24px;
  }

  .footer-rights-text {
    max-width: none;
    font-size: 13px;
    text-align: center;
  }

  .footer-brand-copy {
    gap: 10px;
    align-items: center;
    flex-direction: column;
    text-align: center;
  }

  .footer-side {
    gap: 16px;
    justify-items: center;
    text-align: center;
  }

  .footer-chest {
    margin-left: 0;
    margin-top: 0;
    width: min(214px, 68vw);
    order: 2;
  }

  .footer-nav ul {
    align-items: center;
  }

  .compliance-logos {
    gap: 14px;
    justify-content: center;
  }

  .compliance-logos img,
  .compliance-logos svg {
    height: 26px;
  }

  table {
    font-size: 14px;
  }

  th,
  td {
    padding: 9px 8px;
  }
}
