/* ============================================================
   Blackjack — landing styles (matched to the game's palette)
   Felt #216025 · Felt deep #1B501F · Panel #143A17 ·
   Lime #78FF03 · Suit red #D50000 · Card white · Chip gold #F6BE4F
   Type: Fredoka (display) · Nunito (body)
   ============================================================ */

:root {
  --felt: #216025;
  --felt-deep: #1B501F;
  --felt-dark: #143A17;
  --felt-darker: #0F2E12;
  --lime: #78FF03;
  --lime-deep: #4FB102;
  --red: #D50000;
  --red-deep: #A80000;
  --ink: #101A10;
  --ink-soft: #4E5B4E;
  --gold: #F6BE4F;
  --chipblue: #46A5E6;
  --white: #FFFFFF;
  --text-on-felt: #F2F7F2;
  --muted-on-felt: #BFDABF;
  --line: rgba(255, 255, 255, 0.16);

  --font-display: "Fredoka", "Nunito", sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;

  --radius: 20px;
  --radius-s: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  --shadow-s: 0 4px 14px rgba(0, 0, 0, 0.22);
  --wrap: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-on-felt);
  background: var(--felt);
}

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

a { color: var(--lime); }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  font-weight: 600;
}

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.wrap--narrow { max-width: 760px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  background: var(--lime);
  border: none;
  border-radius: 999px;
  padding: 13px 28px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--lime-deep);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--lime-deep); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--lime-deep); }

.btn--big { font-size: 19px; padding: 16px 34px; }
.btn--small { font-size: 15px; padding: 9px 20px; }

.btn--ghost {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.85);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--white); background: rgba(255,255,255,.08); }
.btn--ghost:active { box-shadow: inset 0 0 0 2px var(--white); }

/* ---------- Header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 58, 23, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-head__row {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
  margin-right: auto;
}

.logo__img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: var(--shadow-s);
}

.logo__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
}

.site-nav { display: flex; gap: 22px; }

.site-nav a {
  color: var(--muted-on-felt);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
}
.site-nav a:hover { color: var(--lime); }

/* ---------- Hero ---------- */

.hero { padding: 56px 0 30px; overflow: hidden; }

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 32px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--felt-dark);
  border: 1.5px solid rgba(255,255,255,.22);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 800;
  color: var(--lime);
  margin-bottom: 20px;
}

.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
}

.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  margin-bottom: 18px;
  color: var(--white);
}

.accent { color: var(--lime); }

.hero__sub {
  font-size: 19px;
  color: var(--muted-on-felt);
  max-width: 46ch;
  margin-bottom: 26px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}

.fineprint {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted-on-felt);
  letter-spacing: 0.01em;
}

.fineprint--center { text-align: center; margin-top: 18px; }

.rating {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted-on-felt);
}

.rating__stars {
  color: var(--gold);
  letter-spacing: 2px;
  margin-right: 4px;
}

.rating__half { opacity: .45; }

/* Hero card art */

.hero__art {
  position: relative;
  height: 380px;
}

.bigcard {
  position: absolute;
  width: 168px;
  aspect-ratio: 5 / 7;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  color: var(--red);
}

.bigcard--a {
  left: 12%;
  top: 12%;
  transform: rotate(-10deg);
  animation: deal-a .7s cubic-bezier(.2,.9,.3,1.2) backwards;
}

.bigcard--j {
  left: 42%;
  top: 26%;
  color: var(--ink);
  transform: rotate(8deg);
  animation: deal-j .7s .18s cubic-bezier(.2,.9,.3,1.2) backwards;
}

.bigcard__pip { font-size: 76px; line-height: 1; }

.bigcard__corner {
  position: absolute;
  top: 12px;
  left: 14px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.05;
  text-align: center;
}
.bigcard__corner em { display: block; font-style: normal; font-size: 20px; }

.bigcard__corner--b {
  top: auto;
  left: auto;
  right: 14px;
  bottom: 12px;
  transform: rotate(180deg);
}

@keyframes deal-a {
  from { transform: translate(120px, 160px) rotate(30deg) scale(.7); opacity: 0; }
  to   { transform: rotate(-10deg); opacity: 1; }
}

@keyframes deal-j {
  from { transform: translate(60px, 200px) rotate(50deg) scale(.7); opacity: 0; }
  to   { transform: rotate(8deg); opacity: 1; }
}

.chip {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--white);
  box-shadow: var(--shadow-s);
  animation: chip-pop .5s .5s cubic-bezier(.2,.9,.3,1.4) backwards;
}

.chip--1 {
  width: 74px;
  height: 74px;
  right: 12%;
  top: 6%;
  background: var(--gold);
  border: 6px dashed var(--white);
  color: var(--ink);
}

.chip--2 {
  width: 58px;
  height: 58px;
  right: 22%;
  bottom: 10%;
  background: var(--chipblue);
  border: 5px dashed var(--white);
  animation-delay: .65s;
}

@keyframes chip-pop {
  from { transform: scale(0) rotate(-90deg); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

/* ---------- Sections ---------- */

.section { padding: 72px 0; }

.section--tint { background: var(--felt-deep); }

.eyebrow {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--lime);
  margin-bottom: 10px;
}

.section h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 14px;
  color: var(--white);
}

.section__lead {
  color: var(--muted-on-felt);
  max-width: 58ch;
  margin-bottom: 30px;
}

/* ---------- Demo table ---------- */

.table {
  background: var(--felt-dark);
  border: 6px solid var(--felt-darker);
  border-radius: 28px;
  padding: 26px 22px 22px;
  color: var(--white);
  box-shadow: var(--shadow);
  max-width: 640px;
}

.table__row { min-height: 118px; }

.table__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  opacity: .92;
  margin-bottom: 8px;
}

.table__score { opacity: .8; }

.hand {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  min-height: 86px;
}

.card {
  position: relative;
  width: 60px;
  aspect-ratio: 5 / 7;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0,0,0,.35);
  color: var(--red);
  font-family: var(--font-display);
  display: grid;
  place-items: center;
  animation: card-in .3s ease backwards;
}

.card--ink { color: var(--ink); }

.card__pip { font-size: 26px; }

.card__corner {
  position: absolute;
  top: 4px;
  left: 6px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}
.card__corner em { display: block; font-style: normal; }

.card--back {
  background:
    linear-gradient(135deg, transparent 46%, rgba(255,255,255,.18) 46%, rgba(255,255,255,.18) 54%, transparent 54%),
    linear-gradient(45deg, transparent 46%, rgba(255,255,255,.18) 46%, rgba(255,255,255,.18) 54%, transparent 54%),
    linear-gradient(160deg, #3236B8, #1A1650);
  border: 3px solid var(--white);
}

@keyframes card-in {
  from { transform: translateY(-18px) rotate(4deg); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

.table__status {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  text-align: center;
  padding: 10px 0;
  min-height: 48px;
}

.table__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  border-top: 2px dashed rgba(255,255,255,.3);
  padding-top: 16px;
  margin-top: 12px;
}

.table__chips {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.table__chips-note { font-weight: 600; opacity: .75; font-size: 13px; }

.chipicon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px dashed var(--white);
  display: inline-block;
}

.table__controls { display: flex; gap: 10px; }

.btn--table {
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 4px 0 var(--lime-deep);
  font-size: 16px;
  padding: 10px 22px;
}
.btn--table:hover { box-shadow: 0 6px 0 var(--lime-deep); }
.btn--table:active { box-shadow: 0 1px 0 var(--lime-deep); }

.btn--table:disabled {
  background: rgba(255,255,255,.22);
  color: rgba(255,255,255,.55);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.btn--table-ghost {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 4px 0 #9DB29D;
}
.btn--table-ghost:hover { box-shadow: 0 6px 0 #9DB29D; }
.btn--table-ghost:active { box-shadow: 0 1px 0 #9DB29D; }

.table__after { text-align: center; margin-top: 18px; }

/* ---------- Steps & features ---------- */

.steps, .features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.step, .feature {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-s);
  color: var(--ink);
}

.step__icon, .feature__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  font-size: 26px;
  margin-bottom: 16px;
  background: #E4F2E4;
}

.feature__icon--sun { background: #FDEFD2; }
.feature__icon--cherry { background: #FADEDE; }
.feature__icon--teal { background: #DFF2DF; }
.feature__icon--ink { background: #E2E8F2; }

.step h3, .feature h3 { font-size: 19px; margin-bottom: 8px; color: var(--ink); }

.step p, .feature p { font-size: 15px; color: var(--ink-soft); }

/* ---------- Phone mockups (real gameplay screenshots) ---------- */

.shots {
  display: flex;
  gap: 28px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

.phone {
  width: 230px;
  background: #0B120B;
  border-radius: 34px;
  padding: 12px;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

.phone::before {
  content: "";
  display: block;
  width: 74px;
  height: 8px;
  border-radius: 999px;
  background: #2A362A;
  margin: 2px auto 8px;
}

.phone__shot {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: top;
  border-radius: 24px;
}

/* ---------- FAQ ---------- */

.faq {
  background: var(--white);
  border-radius: var(--radius-s);
  box-shadow: var(--shadow-s);
  margin-top: 14px;
  overflow: hidden;
  color: var(--ink);
}

.faq summary {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  padding: 18px 48px 18px 22px;
  cursor: pointer;
  list-style: none;
  position: relative;
  color: var(--ink);
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: var(--red);
  transition: transform .2s ease;
}

.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq p {
  padding: 0 22px 20px;
  color: var(--ink-soft);
  font-size: 15.5px;
}

.faq-cta { text-align: center; margin-top: 36px; }

/* ---------- Footer ---------- */

.site-foot {
  background: var(--felt-darker);
  color: #A9C6A9;
  padding: 44px 0 90px;
}

.site-foot__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.logo--foot { color: var(--white); }

.site-foot__nav { display: flex; gap: 22px; flex-wrap: wrap; }

.site-foot__nav a { color: #A9C6A9; font-size: 14px; font-weight: 700; }
.site-foot__nav a:hover { color: var(--white); }

.site-foot__disclaimer {
  font-size: 13px;
  line-height: 1.7;
  border-top: 1px solid rgba(255,255,255,.14);
  padding-top: 22px;
  max-width: 78ch;
}

.site-foot__legal {
  font-size: 13px;
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.agebadge {
  display: inline-grid;
  place-items: center;
  border: 2px solid #A9C6A9;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-weight: 800;
  font-size: 12px;
}

/* ---------- Sticky mobile CTA ---------- */

.stickybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--felt-dark);
  border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 24px rgba(0, 0, 0, .35);
}

.stickybar__info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  line-height: 1.25;
  color: var(--white);
}

.stickybar__info .logo__img { width: 38px; height: 38px; }

.stickybar__info small { color: var(--muted-on-felt); display: block; font-weight: 700; }

/* ---------- Legal pages ---------- */

.legal { padding: 56px 0 72px; }

.legal h1 { font-size: clamp(30px, 5vw, 42px); margin-bottom: 6px; color: var(--white); }

.legal__date { color: var(--muted-on-felt); font-size: 14px; margin-bottom: 32px; }

.legal h2 { font-size: 22px; margin: 32px 0 10px; color: var(--white); }

.legal p, .legal li { color: var(--muted-on-felt); font-size: 16px; margin-bottom: 12px; }

.legal ul { padding-left: 22px; margin-bottom: 12px; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .steps, .features { grid-template-columns: repeat(2, 1fr); }
  .phone--three { display: none; }
}

@media (max-width: 760px) {
  body { padding-bottom: 74px; }

  .site-nav { display: none; }
  .site-head .btn { display: none; }

  .hero { padding-top: 36px; }

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

  .hero__art { height: 300px; max-width: 360px; margin: 0 auto; width: 100%; }

  .bigcard { width: 132px; }
  .bigcard__pip { font-size: 56px; }

  .section { padding: 52px 0; }

  .table { padding: 20px 14px 16px; }
  .table__bar { justify-content: center; }
  .table__controls { width: 100%; justify-content: center; }

  .stickybar { display: flex; }

  .site-foot { padding-bottom: 110px; }
}

@media (max-width: 480px) {
  .steps, .features { grid-template-columns: 1fr; }
  .hero__cta .btn { width: 100%; text-align: center; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }
}
