/* ============================================================
   RareNoDeposit — shared stylesheet
   Theme: Library / storybook / cozy guide
   ============================================================ */

/* ---- Design tokens ---- */
:root {
  --parchment: #FBF6E9;
  --parchment-deep: #F3E9CF;
  --emerald: #1E6F50;
  --emerald-dark: #16553D;
  --emerald-soft: #E4F0E8;
  --brown: #5B3A21;
  --brown-soft: #8A6A4F;
  --ink: #34281C;
  --gold: #C8A24B;
  --ribbon: #B23A48;
  --card: #FFFDF6;
  --line: #E2D6B8;
  --radius: 10px;
  --shadow-sm: 0 2px 6px rgba(91, 58, 33, 0.10);
  --shadow-md: 0 8px 22px rgba(91, 58, 33, 0.14);
  --shadow-lg: 0 16px 40px rgba(91, 58, 33, 0.18);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --display: "Baloo 2", "Comic Sans MS", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --maxw: 1120px;
}

/* ---- Reset ---- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--serif);
  color: var(--ink);
  background-color: var(--parchment);
  background-image:
    radial-gradient(circle at 18% 12%, rgba(30, 111, 80, 0.05), transparent 42%),
    radial-gradient(circle at 84% 8%, rgba(200, 162, 75, 0.07), transparent 40%),
    repeating-linear-gradient(0deg, transparent, transparent 31px, rgba(91, 58, 33, 0.035) 31px, rgba(91, 58, 33, 0.035) 32px);
  line-height: 1.65;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--display);
  color: var(--brown);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: 0.2px;
}

a { color: var(--emerald); }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--emerald);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius) 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--parchment-deep);
  border-bottom: 3px solid var(--emerald);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.42rem;
  color: var(--emerald);
  white-space: nowrap;
}
.brand:hover { color: var(--emerald-dark); }

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(150deg, var(--emerald), var(--emerald-dark));
  color: var(--parchment);
  font-size: 1.2rem;
  box-shadow: inset 0 0 0 2px rgba(251, 246, 233, 0.25), var(--shadow-sm);
}

.brand-name b { color: var(--brown); font-weight: 700; }

.nav {
  display: flex;
  align-items: center;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: inline-block;
  text-decoration: none;
  color: var(--brown);
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.18s ease, color 0.18s ease;
}
.nav-list a:hover,
.nav-list a:focus-visible {
  background: var(--emerald-soft);
  color: var(--emerald-dark);
}
.nav-list a[aria-current="page"] {
  background: var(--emerald);
  color: var(--parchment);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 42px;
  padding: 0;
  border: 2px solid var(--emerald);
  border-radius: 8px;
  background: var(--card);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2.6px;
  margin: 0 auto;
  background: var(--emerald);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.6px) rotate(-45deg); }

/* ============================================================
   GENERIC SECTION HELPERS
   ============================================================ */
.section { padding: 60px 0; }
.section--tight { padding: 44px 0; }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 38px;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  margin: 0 0 10px;
}
.section-head p {
  margin: 0;
  color: var(--brown-soft);
  font-style: italic;
}

.eyebrow {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--emerald-dark);
  background: var(--emerald-soft);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 999px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--parchment);
  background: linear-gradient(150deg, var(--emerald), var(--emerald-dark));
  padding: 14px 28px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn--ghost {
  color: var(--emerald-dark);
  background: var(--card);
  border: 2px solid var(--emerald);
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 70px 0 64px;
  background:
    linear-gradient(180deg, rgba(228, 240, 232, 0.6), rgba(243, 233, 207, 0.35));
  border-bottom: 1px solid var(--line);
}
.hero-card {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 48px 42px 52px;
  box-shadow: var(--shadow-lg);
}
/* bookmark ribbon on the hero card */
.hero-card::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 46px;
  width: 30px;
  height: 64px;
  background: var(--ribbon);
  border-radius: 0 0 6px 6px;
  box-shadow: var(--shadow-sm);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  margin: 18px 0 16px;
  color: var(--brown);
}
.hero p {
  font-size: 1.12rem;
  color: var(--ink);
  max-width: 640px;
  margin: 0 auto 30px;
}

/* ============================================================
   PARTNERS — "featured shelf"
   ============================================================ */
.shelf {
  background:
    linear-gradient(180deg, transparent, transparent calc(100% - 18px), var(--brown) calc(100% - 18px), var(--brown-soft) 100%);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.partner-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 6px solid var(--emerald);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  box-shadow: var(--shadow-md);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.partner-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.partner-initials {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex: none;
  border-radius: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--parchment);
  background: linear-gradient(150deg, var(--brown), var(--brown-soft));
  box-shadow: var(--shadow-sm);
}
.partner-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--brown);
}
.badge {
  position: absolute;
  top: 18px;
  right: 18px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--emerald-dark);
  background: var(--gold);
  color: #3a2c10;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.partner-perk {
  margin: 0 0 22px;
  color: var(--ink);
  flex: 1;
}
.partner-card .btn { align-self: flex-start; }

/* ============================================================
   RESPONSIBLE GAMING
   ============================================================ */
.rg {
  background: var(--emerald-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.rg-card {
  max-width: 880px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 8px solid var(--emerald);
  border-radius: var(--radius);
  padding: 34px 36px;
  box-shadow: var(--shadow-md);
}
.rg-card h2 {
  margin: 0 0 16px;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  display: flex;
  align-items: center;
  gap: 12px;
}
.rg-card p { margin: 0; }

/* ============================================================
   ARTICLE PAGES (About / Terms)
   ============================================================ */
.article-wrap { padding: 56px 0; }
.article {
  max-width: 820px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 48px 52px;
  box-shadow: var(--shadow-md);
}
.article h1 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  margin: 0 0 8px;
}
.article .lead {
  font-size: 1.14rem;
  color: var(--ink);
  border-bottom: 2px dotted var(--line);
  padding-bottom: 22px;
  margin: 0 0 28px;
}
.article h2 {
  font-size: 1.45rem;
  color: var(--emerald-dark);
  margin: 32px 0 12px;
  padding-left: 14px;
  border-left: 5px solid var(--gold);
}
.article p { margin: 0 0 16px; }
.article ul {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.article ul li {
  position: relative;
  padding: 10px 8px 10px 38px;
  border-bottom: 1px solid var(--line);
}
.article ul li:last-child { border-bottom: 0; }
.article ul li::before {
  content: "💎";
  position: absolute;
  left: 6px;
  top: 9px;
  font-size: 1rem;
}
.article ul li b { color: var(--brown); }

/* ============================================================
   BONUSES — library cards / book spines
   ============================================================ */
.bonus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.bonus-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 33px, rgba(30, 111, 80, 0.10) 33px, rgba(30, 111, 80, 0.10) 34px),
    var(--card);
  border: 1px solid var(--line);
  border-left: 10px solid var(--emerald);
  border-radius: 6px var(--radius) var(--radius) 6px;
  padding: 26px 24px 24px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.bonus-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
/* bookmark ribbon accent */
.bonus-card::after {
  content: "";
  position: absolute;
  top: -4px;
  right: 26px;
  width: 22px;
  height: 46px;
  background: var(--ribbon);
  border-radius: 0 0 4px 4px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 74%, 0 100%);
}
/* call-number tag */
.call-number {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 1px;
  color: var(--parchment);
  background: var(--brown);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 16px;
}
.bonus-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--emerald-dark);
  margin: 0 0 6px;
  line-height: 1.2;
}
.bonus-sub {
  margin: 0 0 16px;
  color: var(--brown-soft);
  font-style: italic;
}
.bonus-code {
  display: inline-block;
  font-family: "Courier New", Courier, monospace;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--brown);
  background: var(--parchment-deep);
  border: 1px dashed var(--brown-soft);
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 20px;
  word-break: break-all;
}
.bonus-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--brown);
  color: var(--parchment);
  padding: 40px 0 32px;
  margin-top: 20px;
  border-top: 5px solid var(--emerald);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--parchment);
}
.footer-nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
}
.footer-nav a {
  color: var(--parchment);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0.9;
}
.footer-nav a:hover { opacity: 1; text-decoration: underline; }
.footer-copy {
  margin: 0;
  font-size: 0.92rem;
  color: var(--parchment-deep);
}
.footer-age {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--parchment);
  background: rgba(178, 58, 72, 0.85);
  padding: 6px 14px;
  border-radius: 999px;
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 150;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 20px;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--emerald);
  border-radius: var(--radius);
  padding: 16px 22px;
  box-shadow: var(--shadow-lg);
  max-width: 720px;
  margin: 0 auto;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p {
  margin: 0;
  font-size: 0.98rem;
}
.cookie-banner .btn { padding: 10px 22px; font-size: 0.98rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 880px) {
  .card-grid,
  .bonus-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  body { font-size: 17px; }

  .nav-toggle { display: flex; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--parchment-deep);
    border-bottom: 3px solid var(--emerald);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease;
  }
  .header-inner { position: relative; }
  .nav.is-open { max-height: 380px; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 16px;
  }
  .nav-list a {
    display: block;
    padding: 13px 12px;
    border-bottom: 1px solid var(--line);
  }
  .nav-list li:last-child a { border-bottom: 0; }

  .card-grid,
  .bonus-grid { grid-template-columns: 1fr; }

  .hero-card { padding: 38px 24px 42px; }
  .article { padding: 36px 24px; }
  .rg-card { padding: 28px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ============================================================
   PROD-2017 — casino logos (partners + bonus cards) & bonus sub-nav
   ============================================================ */
/* Light-grey logo chip — keeps white & dark casino logos legible on the parchment theme */
.logo-chip {
  width: 100%;
  display: grid;
  place-items: center;
  background: #EBE7DB;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.logo-chip img {
  max-height: 42px;
  width: auto;
  object-fit: contain;
}

/* Home partner cards — logo + name + Visit Site, no badge/initials chrome */
.partner-card .partner-name {
  display: block;
  margin-bottom: 18px;
}

/* Bonus cards — logo chip is a touch smaller inside the spine card */
.bonus-card .logo-chip {
  padding: 8px 14px;
  margin-bottom: 14px;
}
.bonus-card .logo-chip img { max-height: 34px; }
.bonus-card .bonus-sub { margin-bottom: 22px; }

/* Bonus category buttons on /bonuses */
.bonus-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin: -16px auto 40px;
}

/* Sub-section heads between the two bonus groups */
.section-head--sub {
  margin-top: 14px;
}

/* Back link on bonus sub-pages */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--emerald-dark);
  margin-bottom: 18px;
}
.back-link:hover,
.back-link:focus-visible { color: var(--emerald); text-decoration: underline; }
