/* Rancho theme — western green / orange */
html, body { margin: 0; padding: 0; background: #180F08; }
body.rn-body {
  min-height: 100%; overflow-x: hidden;
  font-family: Nunito, system-ui, sans-serif;
  color: #FFF3DE; -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
a { color: #FFC71F; text-decoration: none; }
a:hover { color: #FFE47A; }
a:focus-visible, button:focus-visible {
  outline: 2px solid #FFD84D; outline-offset: 2px;
}

@keyframes ranchoMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.rn-shell {
  display: flex; flex-wrap: wrap; align-items: flex-start;
  min-height: 100vh; background: #180F08;
}
.rn-main { flex: 999 1 340px; min-width: 0; }

/* Aside desktop */
.rn-aside--desktop {
  position: sticky; top: 0; align-self: flex-start;
  flex: 1 1 248px; max-width: 280px; max-height: 100vh;
  z-index: 60; overflow-y: auto;
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px 14px 24px;
  background: linear-gradient(180deg, #3B2109 0%, #24140A 100%);
  border-right: 4px solid #F58220;
}
.rn-logo-wrap--aside {
  height: 128px; width: 100%; display: flex;
  align-items: center; justify-content: center; overflow: hidden;
}
.rn-logo--aside {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain; display: block; transform: scale(1.35);
}
.rn-nav-slot--desktop .rn-main-nav {
  display: flex; flex-wrap: wrap; gap: 9px;
}
.rn-nav-slot--desktop .rn-nav-link {
  flex: 1 1 150px; display: flex; align-items: center;
  min-height: 44px; padding: 12px 14px; border-radius: 13px;
  font-weight: 900; font-size: 15px; letter-spacing: 0.4px;
  text-transform: uppercase; color: #fff;
  border: 3px solid rgba(0,0,0,.35); box-shadow: 0 4px 0 rgba(0,0,0,.35);
  background: linear-gradient(180deg, #FF9A3C 0%, #E2610C 100%);
}
.rn-nav-slot--desktop .rn-nav-link:nth-child(2) { background: linear-gradient(180deg,#FF6B5E 0%,#C42116 100%); }
.rn-nav-slot--desktop .rn-nav-link:nth-child(3) { background: linear-gradient(180deg,#9BE23A 0%,#4E9B0B 100%); }
.rn-nav-slot--desktop .rn-nav-link:nth-child(4) { background: linear-gradient(180deg,#FFE06B 0%,#E0A800 100%); color: #3A2200; }
.rn-nav-slot--desktop .rn-nav-link:nth-child(5) { background: linear-gradient(180deg,#7FD8FF 0%,#1E88E5 100%); }
.rn-nav-slot--desktop .rn-nav-link:nth-child(6) { background: linear-gradient(180deg,#C08BFF 0%,#6A1FC0 100%); }
.rn-nav-slot--desktop .rn-nav-link:hover { transform: translateX(3px); color: #fff; }

/* Drawer */
.rn-overlay {
  position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.62);
}
.rn-overlay[hidden] { display: none !important; }
.rn-drawer {
  position: fixed; left: 0; top: 0; bottom: 0; z-index: 90;
  width: min(320px, 82vw); display: flex; flex-direction: column; gap: 10px;
  padding: 16px 14px 24px;
  background: linear-gradient(180deg, #3B2109 0%, #24140A 100%);
  border-right: 4px solid #F58220; overflow-y: auto;
  transform: translateX(0); transition: transform 280ms cubic-bezier(.16,1,.3,1);
}
.rn-drawer[hidden] {
  display: flex !important; transform: translateX(-105%);
  pointer-events: none;
}
.rn-drawer-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px;
}
.rn-drawer-title {
  font-family: "Luckiest Guy", cursive; color: #FFD84D; font-size: 20px; letter-spacing: 1px;
}
.rn-drawer-close {
  width: 40px; height: 40px; border-radius: 12px; border: 3px solid #7A2400;
  background: linear-gradient(180deg, #FFD84D 0%, #F58220 100%);
  color: #4A1600; font-size: 18px; line-height: 1; cursor: pointer;
}
.rn-nav-slot--mobile .rn-main-nav {
  display: flex; flex-direction: column; gap: 8px;
}
.rn-nav-slot--mobile .rn-nav-link {
  display: flex; align-items: center; min-height: 44px;
  padding: 12px 14px; border-radius: 13px;
  font-weight: 900; font-size: 15px; text-transform: uppercase; letter-spacing: 0.4px;
  color: #fff; border: 3px solid rgba(0,0,0,.35); box-shadow: 0 4px 0 rgba(0,0,0,.35);
  background: linear-gradient(180deg, #FF9A3C 0%, #E2610C 100%);
}
.rn-nav-slot--mobile .rn-nav-link:nth-child(2) { background: linear-gradient(180deg,#FF6B5E 0%,#C42116 100%); }
.rn-nav-slot--mobile .rn-nav-link:nth-child(3) { background: linear-gradient(180deg,#9BE23A 0%,#4E9B0B 100%); }
.rn-nav-slot--mobile .rn-nav-link:nth-child(4) { background: linear-gradient(180deg,#FFE06B 0%,#E0A800 100%); color: #3A2200; }
.rn-nav-slot--mobile .rn-nav-link:nth-child(5) { background: linear-gradient(180deg,#7FD8FF 0%,#1E88E5 100%); }
.rn-nav-slot--mobile .rn-nav-link:nth-child(6) { background: linear-gradient(180deg,#C08BFF 0%,#6A1FC0 100%); }

/* Header */
.rn-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px clamp(14px, 3vw, 28px);
  background: linear-gradient(180deg, rgba(36,20,10,.98) 0%, rgba(36,20,10,.9) 100%);
  border-bottom: 3px solid #7BC61E; backdrop-filter: blur(6px);
}
.rn-burger {
  display: none; width: 48px; height: 48px; flex: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  border: 3px solid #7A2400; border-radius: 13px;
  background: linear-gradient(180deg, #FFD84D 0%, #F58220 100%);
  cursor: pointer; box-shadow: 0 4px 0 #7A2400; padding: 0;
}
.rn-burger span {
  display: block; width: 22px; height: 3px; border-radius: 2px; background: #4A1600;
}
.rn-header-spacer { flex: 1; }
.rn-header-actions { display: flex; align-items: center; gap: 12px; }

/* Buttons Example 7 */
.rn-btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: "Luckiest Guy", cursive; letter-spacing: 1px; cursor: pointer;
  border-radius: 14px; transition: filter 160ms ease, transform 120ms ease;
}
.rn-btn:hover { filter: brightness(1.07); }
.rn-btn:active { transform: translateY(3px); }
.rn-btn--block { width: 100%; }
.rn-btn--login {
  padding: 14px 12px; border: 3px solid #103C6B;
  background: linear-gradient(180deg, #4FC3F7 0%, #1E88E5 100%);
  color: #052240; font-size: 20px; box-shadow: 0 5px 0 #103C6B;
}
.rn-btn--login:active { box-shadow: 0 2px 0 #103C6B; }
.rn-btn--signup {
  padding: 11px clamp(14px, 3vw, 26px); border: 3px solid #7A2400;
  background: linear-gradient(180deg, #FFD84D 0%, #F58220 55%, #E2610C 100%);
  color: #4A1600; font-size: clamp(14px, 1.8vw, 19px);
  box-shadow: 0 5px 0 #7A2400; white-space: nowrap;
}
.rn-btn--signup:active { box-shadow: 0 2px 0 #7A2400; }
.rn-btn--play {
  margin-top: clamp(18px, 3vw, 32px);
  padding: clamp(14px, 2.4vw, 20px) clamp(24px, 5vw, 42px);
  border: 4px solid #2C5C00; border-radius: 18px;
  background: linear-gradient(180deg, #C6F24A 0%, #7BC61E 55%, #4E9B0B 100%);
  color: #16340A; font-size: clamp(18px, 2.4vw, 26px); letter-spacing: 1.4px;
  box-shadow: 0 7px 0 #2C5C00, 0 16px 30px rgba(0,0,0,.45);
}
.rn-btn--play:active { box-shadow: 0 3px 0 #2C5C00; }
.rn-btn--more {
  padding: 16px 40px; border: 4px solid #7A2400; border-radius: 16px;
  background: linear-gradient(180deg, #FFD84D 0%, #F58220 60%, #E2610C 100%);
  color: #4A1600; font-size: 21px; letter-spacing: 1.2px; box-shadow: 0 6px 0 #7A2400;
}
.rn-btn--more:active { box-shadow: 0 3px 0 #7A2400; }
.rn-btn--more-blue {
  padding: 16px 40px; border: 4px solid #103C6B; border-radius: 16px;
  background: linear-gradient(180deg, #7FD8FF 0%, #4FC3F7 55%, #1E88E5 100%);
  color: #052240; font-size: 21px; letter-spacing: 1.2px; box-shadow: 0 6px 0 #103C6B;
}
.rn-btn--more-blue:active { box-shadow: 0 3px 0 #103C6B; }

/* Hero */
.rn-hero {
  position: relative; overflow: hidden; border-bottom: 4px solid #F58220;
  min-height: clamp(340px, 42vw, 560px);
  display: flex; align-items: center;
  background-color: #64B72A;
  background-image: var(--rn-hero), linear-gradient(180deg, #2E9BE0 0%, #57BCEF 26%, #8CCB4A 42%, #6FBB33 70%, #57A42A 100%);
  background-size: cover, 100% 100%;
  background-position: right center, center;
  background-repeat: no-repeat, no-repeat;
}
.rn-hero-fade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,26,10,.72) 0%, rgba(10,26,10,.5) 42%, rgba(10,26,10,.16) 68%, rgba(10,26,10,0) 100%);
}
.rn-hero-copy {
  position: relative; z-index: 2; max-width: 620px;
  padding: clamp(20px, 4vw, 48px) clamp(18px, 4.5vw, 56px);
}
.rn-hero-title {
  margin: 0; font-family: "Luckiest Guy", cursive;
  font-size: clamp(30px, 5.2vw, 62px); line-height: 1.02; letter-spacing: 1px;
  color: #FFE9A8; text-shadow: 0 5px 0 #A33A00, 0 9px 22px rgba(0,0,0,.55);
  text-wrap: balance;
}

/* Sections */
.rn-section {
  padding: clamp(26px, 4vw, 44px) clamp(14px, 3vw, 28px);
}
.rn-section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px;
}
.rn-section-title {
  margin: 0 0 22px; font-family: "Luckiest Guy", cursive;
  font-size: clamp(24px, 3.4vw, 38px); letter-spacing: 1px;
  color: #FFE9A8; text-shadow: 0 4px 0 #A33A00;
}
.rn-section-title--sm {
  margin: 0; font-size: 26px; color: #FFD84D; text-shadow: none;
}
.rn-more-wrap { display: flex; justify-content: center; margin-top: 26px; }
.rn-more-wrap.is-hidden { display: none; }

/* Payments */
.rn-pay-section {
  background: linear-gradient(180deg, #24140A 0%, #1C1109 100%);
  border-bottom: 3px solid rgba(255,255,255,.07);
}
.rn-scroll-btn {
  width: 46px; height: 46px; flex: none; border: 3px solid #7A2400; border-radius: 50%;
  background: linear-gradient(180deg, #FFD84D 0%, #F58220 100%);
  color: #4A1600; font-size: 22px; font-weight: 900; line-height: 1; cursor: pointer;
  box-shadow: 0 4px 0 #7A2400;
}
.rn-pay-track {
  display: flex; gap: 14px; overflow-x: auto; scroll-behavior: smooth; padding-bottom: 12px;
}
.rn-pay {
  flex: none; width: clamp(124px, 34vw, 168px); height: clamp(78px, 20vw, 96px);
  border-radius: 16px; padding: 4px; background: var(--rn-frame, #F58220);
}
.rn-pay-inner {
  width: 100%; height: 100%; border-radius: 12px; background: rgba(10,6,3,.82);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.rn-pay-inner img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }

/* Games */
#rn-games { background: #1C1109; }
.rn-games-grid {
  display: grid; gap: clamp(8px, 2.2vw, 18px);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr));
}
.rn-game {
  border-radius: 18px; padding: 5px; background: var(--rn-frame, #F58220);
  box-shadow: 0 8px 18px rgba(0,0,0,.45); transition: transform 160ms ease;
}
.rn-game.is-hidden { display: none !important; }
.rn-game:hover { transform: translateY(-6px) scale(1.02); }
.rn-game-btn {
  display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
  border-radius: 13px; overflow: hidden; aspect-ratio: 2 / 3; background: #0E0906;
}
.rn-game-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Winners */
.rn-winners {
  position: relative; overflow: hidden; padding: 20px 0;
  background: linear-gradient(180deg, #4E1B8C 0%, #2E0F57 100%);
  border-top: 4px solid #A8E01F; border-bottom: 4px solid #A8E01F;
}
.rn-winners-head {
  display: flex; align-items: center; gap: 12px;
  padding: 0 clamp(14px, 3vw, 28px) 16px;
}
.rn-live-dot {
  width: 10px; height: 10px; border-radius: 50%; background: #7BC61E;
  box-shadow: 0 0 0 4px rgba(123,198,30,.3);
}
.rn-live-label {
  font-size: 13px; font-weight: 800; color: #E3D2FF;
  text-transform: uppercase; letter-spacing: 1px;
}
.rn-winners-track {
  display: flex; width: max-content; gap: 14px; padding: 0 14px;
  animation: ranchoMarquee 45s linear infinite;
}
.rn-win {
  flex: none; display: flex; align-items: center; gap: 12px;
  padding: 10px 18px 10px 10px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 2px solid rgba(255,255,255,.2);
}
.rn-win img {
  width: 46px; height: 46px; border-radius: 12px; object-fit: cover;
  border: 2px solid #FFD84D; display: block;
}
.rn-win-meta { display: flex; flex-direction: column; line-height: 1.2; }
.rn-win-nick { font-weight: 800; font-size: 14px; color: #fff; }
.rn-win-amt {
  font-family: "Luckiest Guy", cursive; font-size: 17px; color: #A8E01F; letter-spacing: 0.6px;
}

/* Content */
.rn-prose-section {
  background: radial-gradient(90% 120% at 85% 0%, #2A1A0E 0%, #1C1109 60%);
}
.rn-article { max-width: 900px; margin: 0 auto; }
.rn-content { font-size: 17px; line-height: 1.7; color: #E7DAC4; }
.rn-content h1, .rn-content h2, .rn-content h3 {
  font-family: "Luckiest Guy", cursive; letter-spacing: 1px;
  color: #FFE9A8; text-shadow: 0 4px 0 #A33A00;
}
.rn-content h1, .rn-content h2 {
  font-size: clamp(24px, 3.6vw, 42px); line-height: 1.08; margin: 0 0 16px;
}
.rn-content h3 {
  font-size: 26px; color: #A8E01F; text-shadow: none; margin: 24px 0 12px;
}
.rn-content p { margin: 0 0 18px; }
.rn-content ul, .rn-content ol { margin: 0 0 18px; padding-left: 22px; }
.rn-content li { margin: 8px 0; }
.rn-content a { color: #FFC71F; }
.rn-content blockquote {
  margin: 0 0 22px; padding: 22px 26px; border-radius: 18px;
  background: rgba(255,216,77,.1); border-left: 8px solid #F58220;
  font-size: 20px; line-height: 1.5; font-style: italic; font-weight: 700; color: #FFE9A8;
}
.rn-content table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  border-radius: 16px; overflow: hidden; font-size: 16px;
}
.rn-content table th {
  padding: 14px 18px; background: #E2610C; color: #FFF3DE; text-align: left;
  font-family: "Luckiest Guy", cursive; font-size: 17px; letter-spacing: 0.6px;
}
.rn-content table td {
  padding: 14px 18px; color: #E7DAC4; vertical-align: top;
  border-top: 1px solid rgba(255,255,255,.06);
}
.rn-content table tr:nth-child(odd) td { background: rgba(255,255,255,.05); }
.rn-content table tr:nth-child(even) td { background: rgba(255,255,255,.02); }
.rn-content table td:first-child { font-weight: 800; color: #FFD84D; }
.rn-content-cta { margin-top: 28px; display: flex; justify-content: center; }

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

/* Providers */
#rn-providers {
  background: linear-gradient(180deg, #24140A 0%, #1C1109 100%);
}
.rn-prov-grid {
  display: grid; gap: clamp(8px, 2.2vw, 14px);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
}
.rn-prov {
  border-radius: 14px; padding: 3px; background: var(--rn-frame, #4FC3F7);
}
.rn-prov.is-hidden { display: none !important; }
.rn-prov-inner {
  aspect-ratio: 16 / 9; min-height: 74px; border-radius: 11px;
  background: #130C07; display: flex; align-items: center; justify-content: center; padding: 7px;
}
.rn-prov-inner img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }

/* Footer */
.rn-footer {
  padding: 36px clamp(14px, 3vw, 28px) 48px;
  background: #120B06; border-top: 4px solid #F58220;
}
.rn-footer-inner {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px;
}
.rn-logo--footer {
  height: 92px; width: auto; max-width: 220px; object-fit: contain; display: block;
}
.rn-nav-slot--footer .rn-footer-nav {
  display: flex; flex-direction: column; align-items: center; gap: 11px;
}
.rn-footer-link {
  font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: 0.6px;
  color: #FFC71F;
}
.rn-footer-link:hover { color: #FFE47A; }
.rn-safe-row {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 22px;
}
.rn-safe-img {
  height: 34px; width: auto; object-fit: contain; display: block; opacity: .9;
}
.rn-rg {
  margin: 26px auto 0; text-align: center; font-size: 13px; line-height: 1.6;
  color: #8C7A64; max-width: 820px;
}

@media (prefers-reduced-motion: reduce) {
  .rn-winners-track { animation: none !important; }
}

@media (max-width: 860px) {
  .rn-aside--desktop { display: none !important; }
  .rn-burger { display: flex; }
  .rn-hero {
    flex-direction: column; align-items: stretch; min-height: 0;
    background-image: none; background-color: #1C1109;
  }
  .rn-hero::before {
    content: ""; display: block; height: clamp(220px, 55vw, 320px);
    background-image: var(--rn-hero), linear-gradient(180deg, #2E9BE0 0%, #8CCB4A 50%, #57A42A 100%);
    background-size: cover, 100% 100%; background-position: center top, center;
  }
  .rn-hero-fade { display: none; }
  .rn-hero-copy {
    width: 100%; max-width: none; text-align: center; margin-top: 0;
    padding: 24px 18px 28px;
    background: linear-gradient(180deg, #24140A 0%, #1C1109 100%);
  }
  .rn-btn--play { width: 100%; max-width: 340px; margin-left: auto; margin-right: auto; }
  .rn-games-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rn-prov-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 420px) {
  .rn-btn--signup { padding: 10px 12px; font-size: 13px; }
  .rn-games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
