/* Safari Casino global template */
:root {
  --sf-cream: #FBF3E4;
  --sf-ink: #2C1F12;
  --sf-green: #0E5B3E;
  --sf-gold: #C99A2E;
  --sf-gold-dark: #B8862B;
}

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

.sf-body {
  margin: 0;
  background: var(--sf-cream);
  color: var(--sf-ink);
  font-family: Roboto, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--sf-green); text-decoration: none; }
a:hover { color: var(--sf-gold-dark); }

.sf-shell {
  display: flex;
  align-items: flex-start;
  min-height: 100vh;
  background: var(--sf-cream);
}

.sf-btn {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-style: solid;
  border-width: 7px 30px;
  font-family: Cinzel, Georgia, serif;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: filter 180ms, transform 180ms;
}

.sf-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }

.sf-btn--green {
  border-image: url('/wp-content/uploads/safari/btn-cta-green.png') 18 86 fill stretch;
  color: #FFE9A8;
  text-shadow: 0 2px 4px rgba(0,0,0,.5);
}

.sf-btn--gold {
  border-image: url('/wp-content/uploads/safari/btn-cta-gold.png') 18 86 fill stretch;
  color: #23421F;
  text-shadow: 0 1px 0 rgba(255,240,190,.55);
}

.sf-btn--sm { font-size: 14px; }
.sf-btn--block { align-self: stretch; width: auto; max-width: 100%; justify-content: center; font-size: 16px; }
.sf-btn--hero {
  min-height: 52px;
  border-width: 9px 38px;
  font-size: clamp(15px, 1.4vw, 19px);
  font-weight: 800;
  letter-spacing: 1.4px;
}

.sf-sidebar {
  width: 272px;
  flex: 0 0 272px;
  align-self: stretch;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #F6EAD3;
  background-size: cover;
  background-position: center;
  border-right: 1px solid rgba(201,154,46,.5);
  overflow: hidden;
  z-index: 40;
}

.sf-sidebar-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: linear-gradient(180deg, rgba(255,250,240,.62), rgba(255,250,240,.86));
  padding: 20px 14px 22px;
}

.sf-drawer-close {
  display: none;
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(201,154,46,.6);
  border-radius: 999px;
  background: rgba(255,250,240,.9);
  color: var(--sf-green);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  padding: 0;
}

.sf-logo-wrap {
  width: 100%;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  flex: 0 0 96px;
}

.sf-logo, .sf-footer-logo {
  width: 100%;
  height: 100%;
  max-height: 96px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(44,31,18,.28));
}

.sf-logo--header { max-height: 48px; filter: none; }

.sf-rule {
  height: 2px;
  margin: 0 6px 14px;
  background: linear-gradient(90deg, rgba(201,154,46,0), #C99A2E 30%, #E9C25A 50%, #C99A2E 70%, rgba(201,154,46,0));
}

.sf-main-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0 6px;
}

.sf-nav-slot--desktop .sf-main-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 16px;
  border-radius: 12px;
  color: var(--sf-ink);
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background 180ms, border-color 180ms;
}

.sf-nav-slot--desktop .sf-main-link:hover {
  background: rgba(14,91,62,.10);
  border-color: rgba(201,154,46,.55);
  color: var(--sf-green);
}

.sf-sidebar-cta {
  margin-top: auto;
  padding: 16px 6px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid transparent;
}

.sf-sidebar-cta::before {
  content: "";
  height: 1px;
  background: linear-gradient(90deg, rgba(201,154,46,0), rgba(201,154,46,.85), rgba(201,154,46,0));
  margin-bottom: 4px;
}

.sf-sidebar-note {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  color: rgba(44,31,18,.6);
  text-align: center;
}

.sf-main-wrap {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

.sf-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 84px;
  padding: 14px 24px;
  background-color: #F6EAD3;
  background-size: cover;
  background-position: center 30%;
  border-bottom: 2px solid rgba(201,154,46,.6);
  overflow: hidden;
  z-index: 30;
}

.sf-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,250,240,.9), rgba(255,250,240,.55));
  pointer-events: none;
}

.sf-header-left, .sf-header-auth, .sf-nav-slot--mobile {
  position: relative;
  z-index: 1;
}

.sf-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.sf-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border: 1px solid rgba(201,154,46,.6);
  border-radius: 12px;
  background: rgba(255,250,240,.85);
  color: var(--sf-green);
  cursor: pointer;
  padding: 0;
}

.sf-burger-lines {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.sf-header-logo {
  display: none;
  width: 152px;
  height: 48px;
  flex: 0 0 auto;
}

.sf-header-auth {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
  flex: 0 0 auto;
  margin-left: auto;
}

.sf-nav-slot--mobile { display: none; }

.sf-nav-slot--mobile .sf-main-nav {
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding: 0;
}

.sf-nav-slot--mobile .sf-main-link {
  flex: none;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(201,154,46,.55);
  background: rgba(255,250,240,.8);
  font-size: 13px;
  font-weight: 500;
  color: var(--sf-ink);
  white-space: nowrap;
}

.sf-scrim {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(44,31,18,.45);
}
.sf-scrim[hidden] { display: none; }

.sf-main { flex: 1; min-width: 0; }

.sf-hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  background-color: #2A1806;
  background-size: cover;
  background-position: 62% center;
  overflow: hidden;
}

.sf-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(38,22,6,.82) 0%, rgba(58,34,8,.55) 38%, rgba(58,34,8,.05) 66%, rgba(58,34,8,0) 100%);
}

.sf-hero-copy {
  position: relative;
  max-width: 620px;
  padding: 56px clamp(24px, 4vw, 64px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sf-hero-title {
  margin: 0;
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -.5px;
  color: #FFF6DF;
  text-wrap: balance;
  text-shadow: 0 6px 26px rgba(24,12,2,.7);
}

.sf-hero-cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.sf-section {
  padding: clamp(28px, 3vw, 44px) clamp(20px, 3vw, 44px);
}

.sf-section--winners {
  background: #FFFAF0;
  border-bottom: 1px solid rgba(201,154,46,.28);
}

.sf-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.sf-h2 {
  margin: 0;
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 700;
  letter-spacing: .4px;
  color: var(--sf-green);
}

.sf-rail-nav { display: flex; gap: 8px; }

.sf-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(201,154,46,.7);
  background: var(--sf-cream);
  color: var(--sf-green);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  padding: 0;
}

.sf-icon-btn:hover { background: rgba(14,91,62,.1); }

.sf-win-rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}

.sf-winner {
  flex: 0 0 auto;
  width: 268px;
  scroll-snap-align: start;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, #FFFDF6, #F6EAD3);
  border: 1px solid rgba(201,154,46,.45);
  box-shadow: 0 1px 2px rgba(44,31,18,.12);
  color: inherit;
  transition: transform 200ms;
}

.sf-winner:hover { transform: translateY(-3px); color: inherit; }

.sf-winner-thumb {
  width: 62px;
  height: 84px;
  flex: 0 0 62px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(201,154,46,.55);
  display: block;
}

.sf-winner-meta { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.sf-winner-user { font-size: 14px; font-weight: 600; color: var(--sf-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-winner-amt { font-family: Cinzel, Georgia, serif; font-size: 19px; font-weight: 700; color: var(--sf-gold-dark); }
.sf-winner-ago { font-size: 11px; color: rgba(44,31,18,.55); }

.sf-section--jackpot {
  position: relative;
  background: linear-gradient(180deg, #FBF3E4, #F3E4C6);
  overflow: hidden;
}

.sf-jackpot-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
}

.sf-orn {
  width: clamp(140px, 16vw, 210px);
  height: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 12px 24px rgba(44,31,18,.3));
}

.sf-jackpot-title, .sf-slots-title {
  margin: 0;
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(28px, 4vw, 54px);
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.05;
  background: linear-gradient(180deg, #F6DE9B 6%, #E1B54D 44%, #A9791C 78%, #E9C96F 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 2px rgba(74,44,6,.4));
}

.sf-jackpot-panel {
  max-width: 1080px;
  margin: 0 auto 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: clamp(24px, 3vw, 38px);
  border-radius: 24px;
  background: linear-gradient(160deg, #0F5C3F, #08402B 60%, #0B4E35);
  border: 2px solid rgba(233,194,90,.75);
  box-shadow: 0 8px 12px 6px rgba(44,31,18,.18);
}

.sf-jackpot-grand {
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(36px, 6vw, 76px);
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1;
  background: linear-gradient(180deg, #FFF3C9, #E9C25A 55%, #B8862B);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-align: center;
}

.sf-jackpot-note { margin: 0; font-size: 13px; color: rgba(243,223,166,.72); text-align: center; }

.sf-jackpot-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.sf-jackpot-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border-radius: 18px;
  background: linear-gradient(180deg, #FFFDF6, #F6EAD3);
  border: 1px solid rgba(201,154,46,.5);
}

.sf-jackpot-tier {
  font-family: Cinzel, Georgia, serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--sf-green);
}

.sf-jackpot-amt {
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 700;
  color: var(--sf-gold-dark);
  line-height: 1;
}

.sf-jackpot-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(44,31,18,.1);
  overflow: hidden;
}

.sf-jackpot-bar > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0E5B3E, #C99A2E 70%, #E8922A);
}

.sf-jackpot-hint { font-size: 12px; color: rgba(44,31,18,.6); }
.sf-jackpot-cta { display: flex; justify-content: center; margin-top: 22px; }

.sf-section--content { background: #FFFAF0; }

.sf-content-wrap { max-width: 860px; margin: 0 auto; }

.sf-content {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(44,31,18,.82);
}

.sf-content h2, .sf-content h3 {
  font-family: Cinzel, Georgia, serif;
  color: var(--sf-ink);
}

.sf-content h2 {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 14px;
}

.sf-content h3 {
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 700;
  color: var(--sf-green);
  margin: 22px 0 12px;
}

.sf-content p { margin: 0 0 14px; }
.sf-content ul, .sf-content ol { margin: 0 0 16px; padding-left: 22px; }
.sf-content blockquote {
  margin: 16px 0;
  padding: 22px 26px;
  border-radius: 18px;
  background: linear-gradient(140deg, #F6EAD3, #FBF3E4);
  border: 1px solid rgba(201,154,46,.45);
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.55;
  color: var(--sf-ink);
}

.sf-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.sf-content table th,
.sf-content table td {
  padding: 13px 18px;
  border-top: 1px solid rgba(201,154,46,.3);
  text-align: left;
}

.sf-content table th {
  background: linear-gradient(180deg, #0F5C3F, #08402B);
  color: #F3DFA6;
  font-family: Cinzel, Georgia, serif;
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 13px;
  text-transform: uppercase;
}

.sf-section--slots { background: linear-gradient(180deg, #F3E4C6, #FBF3E4); }

.sf-slots-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
}

.sf-slot-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 16px;
}

.sf-slot-wrap--hidden { display: none !important; }

.sf-slot {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(201,154,46,.55);
  background: #FFFAF0;
  box-shadow: 0 1px 3px 1px rgba(44,31,18,.12);
  aspect-ratio: 2 / 3;
  transition: transform 200ms, box-shadow 200ms;
}

.sf-slot:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 6px 10px 4px rgba(44,31,18,.16);
}

.sf-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sf-more-wrap { display: flex; justify-content: center; margin-top: 28px; }

.sf-btn-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 30px;
  border-radius: 999px;
  border: 2px solid var(--sf-gold);
  background: linear-gradient(180deg, #0F5C3F, #08402B);
  color: #F6DE9B;
  font-family: Cinzel, Georgia, serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 8px 3px rgba(44,31,18,.14);
}

.sf-btn-more:hover { transform: translateY(-2px); filter: brightness(1.12); }

.sf-section--providers {
  background: #FFFAF0;
  border-top: 1px solid rgba(201,154,46,.3);
}

.sf-prov-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.sf-prov-rule {
  flex: 1 1 auto;
  height: 2px;
  background: linear-gradient(90deg, #C99A2E, rgba(201,154,46,0));
}

.sf-prov-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.sf-prov {
  flex: 0 0 auto;
  width: 176px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 22px;
  border-radius: 16px;
  background: linear-gradient(160deg, #0F5C3F, #08402B);
  border: 1px solid rgba(201,154,46,.5);
  transition: transform 200ms, border-color 200ms;
}

.sf-prov:hover { transform: translateY(-3px); border-color: #E9C25A; }

.sf-prov img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  opacity: .9;
  filter: brightness(0) invert(1);
}

.sf-footer {
  position: relative;
  padding: clamp(36px, 4vw, 64px) clamp(20px, 3vw, 44px) 24px;
  background-color: #F6EAD3;
  background-size: cover;
  background-position: center;
  border-top: 2px solid rgba(201,154,46,.6);
  overflow: hidden;
}

.sf-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,250,240,.7), rgba(255,250,240,.88));
}

.sf-footer-inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
}

.sf-footer-logo {
  width: 260px;
  max-width: 100%;
  height: 96px;
  margin: 0 auto;
}

.sf-footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 11px 26px;
}

.sf-nav-slot--footer .sf-footer-nav { gap: 11px 26px; }

.sf-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  font-size: 15px;
  color: rgba(44,31,18,.8);
}

.sf-footer-link::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sf-gold);
}

.sf-footer-link:hover { color: var(--sf-gold-dark); }

.sf-footer-rule {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(201,154,46,0), #C99A2E 50%, rgba(201,154,46,0));
}

.sf-footer-bar {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
}

.sf-age {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Cinzel, Georgia, serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--sf-green);
}

.sf-age-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--sf-gold);
  font-size: 13px;
  color: var(--sf-gold-dark);
}

.sf-copy { font-size: 13px; color: rgba(44,31,18,.6); }

.noscroll { scrollbar-width: thin; }

@media (max-width: 1280px) {
  .sf-slot-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .sf-sidebar {
    position: fixed;
    z-index: 90;
    left: 0;
    top: 0;
    height: 100vh;
    width: min(300px, 84vw);
    flex-basis: auto;
    transform: translateX(-100%);
    transition: transform 300ms cubic-bezier(0.2,0,0,1);
    box-shadow: 0 0 60px rgba(44,31,18,.35);
  }
  .sf-sidebar.is-open { transform: none; }
  .sf-burger { display: inline-flex; }
  .sf-drawer-close { display: inline-flex; }
  .sf-header-logo { display: flex; }
  .sf-header { position: sticky; top: 0; }
  /* Mobile nav stays in the drawer (sidebar); do not mirror as header chips. */
  .sf-nav-slot--mobile { display: none !important; }
}

@media (max-width: 900px) {
  .sf-slot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sf-jackpot-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .sf-login-desktop { display: none; }
  .sf-header-auth { justify-content: center; }
  .sf-header { min-height: 68px; padding: 10px 14px; }
  .sf-hero {
    min-height: 0;
    padding-top: 210px;
    align-items: flex-end;
    background-position: 66% top;
    background-size: 168% auto;
    background-repeat: no-repeat;
  }
  .sf-hero-scrim {
    background: linear-gradient(180deg, rgba(38,22,6,0) 0%, rgba(38,22,6,.35) 34%, rgba(38,22,6,.9) 62%, rgba(30,16,4,.97) 100%);
  }
  .sf-hero-copy { padding: 0 20px 36px; gap: 18px; max-width: 100%; }
  .sf-hero-cta-row { width: 100%; justify-content: center; }
  .sf-btn--hero { width: 100%; }
  .sf-section { padding-left: 16px; padding-right: 16px; }
  .sf-winner { width: 232px; }
  .sf-prov { width: 148px; height: 82px; }
  .sf-footer-bar { justify-content: center; text-align: center; }
  .sf-slot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
}

@media (max-width: 400px) {
  .sf-slot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  table {
    display: block !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
}
