/* Lucky Spin Haven — oxblood wine-ledger editorial theme.
   Structure per divergence engine: editorial-masthead hero, scroll-rail lobby,
   floating-pill nav, line-scaffold motif, card-tilt motion. Prefix: lsh-. */

:root {
  --lsh-ink: #3d1521;          /* deep oxblood burgundy */
  --lsh-ink-soft: #6b3a47;
  --lsh-paper: #f2edea;        /* cool rose porcelain */
  --lsh-paper-deep: #e8dedb;
  --lsh-rose: #bb8d86;         /* dusty-rose hairlines (decor only — fails contrast as text on paper) */
  --lsh-rose-text: #96544e;    /* darkened rose for text on paper, 4.92:1 */
  --lsh-slate: #44608c;       /* slate-blue accent */
  --lsh-line: rgba(187, 141, 134, .55);
  --lsh-display: "Big Shoulders Display", sans-serif;
  --lsh-body: "Alegreya Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--lsh-paper);
  color: var(--lsh-ink);
  font-family: var(--lsh-body);
  font-size: 17px;
  line-height: 1.55;
  /* line-scaffold: faint vertical blueprint columns across the whole page */
  background-image:
    linear-gradient(to right, rgba(187,141,134,.10) 1px, transparent 1px),
    linear-gradient(to right, rgba(187,141,134,.10) 1px, transparent 1px),
    linear-gradient(to right, rgba(187,141,134,.10) 1px, transparent 1px);
  background-size: 25% 100%, 50% 100%, 75% 100%;
  background-repeat: no-repeat;
  background-position: 25% 0, 50% 0, 75% 0;
}
a { color: var(--lsh-slate); }
img { max-width: 100%; display: block; }

/* visible keyboard focus everywhere; rose ring on dark surfaces */
:focus-visible {
  outline: 2px solid var(--lsh-slate);
  outline-offset: 2px;
}
.lsh-pill :focus-visible,
.lsh-footer :focus-visible,
.lsh-cookies :focus-visible {
  outline-color: var(--lsh-rose);
}

/* ---------- buttons ---------- */
.lsh-btn {
  display: inline-block;
  font-family: var(--lsh-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .8rem 1.6rem;
  border: 1.5px solid var(--lsh-ink);
  cursor: pointer;
  transition: background .2s, color .2s, transform .15s;
}
.lsh-btn-solid { background: var(--lsh-ink); color: var(--lsh-paper); }
.lsh-btn-solid:hover { background: var(--lsh-slate); border-color: var(--lsh-slate); }
.lsh-btn-line { background: transparent; color: var(--lsh-ink); }
.lsh-btn-line:hover { background: var(--lsh-ink); color: var(--lsh-paper); }

/* ---------- age gate ---------- */
.lsh-agegate[hidden], .lsh-cookies[hidden] { display: none; }
.lsh-agegate {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(61, 21, 33, .92);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.lsh-agegate-card {
  background: var(--lsh-paper);
  max-width: 30rem;
  padding: 2.5rem 2.25rem;
  border-top: 4px double var(--lsh-rose);
  border-bottom: 4px double var(--lsh-rose);
  text-align: center;
}
.lsh-agegate-kicker {
  font-family: var(--lsh-display);
  text-transform: uppercase; letter-spacing: .25em;
  font-size: .8rem; color: var(--lsh-slate); margin: 0 0 .5rem;
}
.lsh-agegate-card h2 {
  font-family: var(--lsh-display); font-weight: 800;
  font-size: 1.7rem; line-height: 1.15; margin: 0 0 .75rem;
}
.lsh-agegate-copy { font-size: .95rem; color: var(--lsh-ink-soft); margin: 0 0 1.5rem; }
.lsh-agegate-leave {
  display: flex; align-items: center; justify-content: center;
  min-height: 44px; margin-top: .5rem;
  font-size: .85rem; color: var(--lsh-ink-soft);
}

/* ---------- cookie banner ---------- */
.lsh-cookies {
  position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%);
  z-index: 90; width: min(44rem, calc(100% - 2rem));
  background: var(--lsh-ink); color: var(--lsh-paper);
  display: flex; gap: 1rem; align-items: center;
  padding: .9rem 1.25rem;
  border: 1px solid var(--lsh-rose);
}
.lsh-cookies p { margin: 0; font-size: .9rem; flex: 1; }
.lsh-cookies a { color: var(--lsh-rose); }
.lsh-cookies .lsh-btn { border-color: var(--lsh-paper); color: var(--lsh-paper); padding: 0 1rem; font-size: .85rem; min-height: 44px; display: inline-flex; align-items: center; }
.lsh-cookies .lsh-btn:hover { background: var(--lsh-paper); color: var(--lsh-ink); }

/* ---------- masthead ---------- */
.lsh-masthead {
  text-align: center;
  padding: 1.25rem 1.5rem 1.5rem;
  border-bottom: 1px solid var(--lsh-line);
  position: relative;
}
.lsh-masthead::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 3px;
  border-bottom: 1px solid var(--lsh-line);
}
.lsh-masthead-date {
  display: flex; justify-content: center; align-items: center; gap: 1rem;
  font-size: .72rem; text-transform: uppercase; letter-spacing: .2em;
  color: var(--lsh-ink-soft);
  border-bottom: 1px solid var(--lsh-line);
  padding-bottom: .6rem; margin-bottom: 1rem;
}
.lsh-masthead-rule-sep { width: 3rem; border-top: 1px solid var(--lsh-line); }
.lsh-brand { text-decoration: none; color: inherit; }
.lsh-brand-word {
  font-family: var(--lsh-display); font-weight: 800;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  letter-spacing: .02em; text-transform: uppercase; line-height: 1;
}
.lsh-brand-word em { font-style: normal; color: var(--lsh-slate); }
.lsh-brand-word-sm { font-size: 1.4rem; }
.lsh-brand-logo { margin: 0 auto; }
.lsh-masthead-tag {
  margin: .6rem 0 0; font-style: italic; font-size: .95rem; color: var(--lsh-ink-soft);
}

/* ---------- floating pill nav ---------- */
.lsh-pill {
  position: sticky; top: .9rem; z-index: 80;
  margin: 1rem auto 0; width: fit-content; max-width: calc(100% - 2rem);
  display: flex; align-items: center; gap: .25rem;
  background: var(--lsh-ink); color: var(--lsh-paper);
  border-radius: 999px;
  padding: .35rem .5rem;
  box-shadow: 0 10px 30px rgba(61, 21, 33, .25);
}
.lsh-pill a {
  color: var(--lsh-paper); text-decoration: none;
  font-family: var(--lsh-display); font-weight: 500; letter-spacing: .05em;
  text-transform: uppercase; font-size: .85rem;
  padding: 0 .9rem; border-radius: 999px;
  min-height: 44px; display: inline-flex; align-items: center;
  transition: background .2s;
  white-space: nowrap;
}
.lsh-pill a:hover { background: rgba(242, 237, 234, .15); }
.lsh-coins {
  background: var(--lsh-rose); color: var(--lsh-ink);
  border-radius: 999px; padding: .4rem .9rem;
  font-size: .85rem; font-weight: 700; white-space: nowrap;
}

/* ---------- layout ---------- */
.lsh-main { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
.lsh-main section[id] { scroll-margin-top: 5rem; } /* anchor jumps clear the sticky pill */
.lsh-sechead {
  font-family: var(--lsh-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem); letter-spacing: .03em;
  border-bottom: 1px solid var(--lsh-line);
  padding-bottom: .5rem; margin: 0 0 2rem;
}
.lsh-sechead span { color: var(--lsh-rose-text); font-weight: 500; margin-right: .75rem; }
.lsh-sechead small { font-family: var(--lsh-body); font-weight: 400; font-size: .9rem; text-transform: none; letter-spacing: 0; color: var(--lsh-ink-soft); font-style: italic; }

/* ---------- hero ---------- */
.lsh-hero { padding: 4.5rem 0 4rem; position: relative; }
.lsh-hero-kicker {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .3em;
  color: var(--lsh-slate); margin: 0 0 1.25rem;
}
.lsh-hero-head {
  font-family: var(--lsh-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(3.2rem, 11vw, 8.5rem);
  line-height: .92; margin: 0 0 2rem; letter-spacing: .01em;
}
.lsh-hero-line { display: block; }
.lsh-hero-line:nth-child(2) { margin-left: clamp(1rem, 8vw, 6rem); }
.lsh-hero-line:nth-child(3) { margin-left: clamp(.5rem, 4vw, 3rem); }
.lsh-hero-line-outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--lsh-rose);
}
.lsh-hero-head em { font-style: normal; color: var(--lsh-slate); }
.lsh-hero-deck {
  display: flex; gap: 2rem; align-items: center; flex-wrap: wrap;
  border-top: 1px solid var(--lsh-line);
  padding-top: 1.5rem; max-width: 46rem;
}
.lsh-hero-deck p { margin: 0; flex: 1 1 18rem; font-size: 1.1rem; }
.lsh-hero-ledger {
  list-style: none; margin: 3rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--lsh-line);
  border: 1px solid var(--lsh-line);
  max-width: 40rem;
}
.lsh-hero-ledger li {
  background: var(--lsh-paper); padding: 1rem; text-align: center;
}
.lsh-hero-ledger b {
  display: block; font-family: var(--lsh-display); font-weight: 800;
  font-size: 1.8rem; line-height: 1;
}
.lsh-hero-ledger span {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--lsh-ink-soft);
}

/* ---------- why columns ---------- */
.lsh-why { padding: 3rem 0; }
.lsh-why-cols {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0;
}
.lsh-why-cols article {
  padding: .25rem 1.5rem .5rem;
  border-left: 1px solid var(--lsh-line);
}
.lsh-why-cols article:first-child { border-left: 0; padding-left: 0; }
.lsh-why-cols h3 {
  font-family: var(--lsh-display); font-weight: 700; text-transform: uppercase;
  font-size: 1.15rem; margin: 0 0 .5rem; letter-spacing: .04em;
}
.lsh-why-cols p { margin: 0; font-size: .96rem; color: var(--lsh-ink-soft); }

/* ---------- trust ---------- */
.lsh-trust { padding: 3rem 0; }
.lsh-trust-row {
  display: flex; gap: 2.5rem; align-items: center; flex-wrap: wrap;
  background: var(--lsh-paper-deep);
  border: 1px solid var(--lsh-line);
  padding: 1.75rem 2rem;
}
.lsh-trust-copy { margin: 0; flex: 1 1 22rem; }
.lsh-partners { display: flex; gap: 1.5rem; align-items: center; }
.lsh-partners img { height: 30px; width: auto; }

/* ---------- lobby scroll-rail ---------- */
.lsh-lobby { padding: 3rem 0 4.5rem; }
.lsh-rail {
  display: flex; gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: .5rem .25rem 1.5rem;
  scrollbar-color: var(--lsh-rose) transparent;
}
.lsh-card {
  flex: 0 0 clamp(16rem, 28vw, 21rem);
  scroll-snap-align: start;
  text-decoration: none; color: inherit;
  background: var(--lsh-paper);
  border: 1px solid var(--lsh-line);
  transition: box-shadow .25s;
  will-change: transform;
}
.lsh-card:hover { box-shadow: 0 18px 40px rgba(61, 21, 33, .18); }
.lsh-card-art { margin: 0; border-bottom: 1px solid var(--lsh-line); }
.lsh-card-art img { width: 100%; aspect-ratio: 400 / 260; object-fit: cover; }
.lsh-card-meta { padding: 1rem 1.1rem 1.2rem; position: relative; }
.lsh-card-no {
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--lsh-rose-text);
}
.lsh-card-meta h3 {
  font-family: var(--lsh-display); font-weight: 700; text-transform: uppercase;
  font-size: 1.35rem; margin: .15rem 0 .1rem; letter-spacing: .03em;
}
.lsh-card-prov { font-size: .85rem; font-style: italic; color: var(--lsh-ink-soft); }
.lsh-card-cta {
  display: block; margin-top: .8rem;
  font-family: var(--lsh-display); font-weight: 700; text-transform: uppercase;
  font-size: .9rem; letter-spacing: .06em; color: var(--lsh-slate);
}

/* ---------- game page ---------- */
.lsh-game { padding: 2.5rem 0 4rem; }
.lsh-game-bar {
  display: flex; align-items: baseline; gap: 1.5rem; flex-wrap: wrap;
  border-bottom: 1px solid var(--lsh-line);
  padding-bottom: .75rem; margin-bottom: 1.5rem;
}
.lsh-back {
  font-family: var(--lsh-display); text-transform: uppercase; font-weight: 700;
  font-size: .85rem; letter-spacing: .06em; text-decoration: none;
}
.lsh-game-title {
  font-family: var(--lsh-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.6rem, 4vw, 2.6rem); margin: 0;
}
.lsh-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 10;
  border: 1px solid var(--lsh-line);
  background: var(--lsh-ink);
}
.lsh-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lsh-game-blurb { color: var(--lsh-ink-soft); margin-top: 1rem; }
@media (max-width: 767px) {
  .lsh-frame { aspect-ratio: 4 / 5; }
}

/* ---------- legal pages ---------- */
.lsh-legal { padding: 2.5rem 0 4rem; max-width: 50rem; }
.lsh-legal h1 {
  font-family: var(--lsh-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 .5rem;
}
.lsh-legal-updated { font-style: italic; color: var(--lsh-ink-soft); margin: 0 0 2rem; }
.lsh-legal h2 {
  font-family: var(--lsh-display); font-weight: 700; text-transform: uppercase;
  font-size: 1.25rem; letter-spacing: .03em;
  border-bottom: 1px solid var(--lsh-line);
  padding-bottom: .35rem; margin: 2.25rem 0 .75rem;
}
.lsh-legal p, .lsh-legal li { font-size: .98rem; }

/* ---------- footer ---------- */
.lsh-footer {
  border-top: 4px double var(--lsh-rose);
  background: var(--lsh-ink); color: var(--lsh-paper);
  margin-top: 2rem;
  padding: 2.5rem 1.5rem 1.5rem;
}
.lsh-footer-grid {
  max-width: 72rem; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 2.5rem;
}
.lsh-footer-brand p { font-size: .85rem; color: rgba(242, 237, 234, .75); }
.lsh-footer-addr { font-style: italic; }
.lsh-footer-links { display: flex; flex-direction: column; gap: .5rem; }
.lsh-footer-links a {
  color: var(--lsh-paper); text-decoration: none;
  font-family: var(--lsh-display); text-transform: uppercase;
  font-size: .9rem; letter-spacing: .05em;
}
.lsh-footer-links a:hover { color: var(--lsh-rose); }
.lsh-footer-rg p { font-size: .85rem; color: rgba(242, 237, 234, .75); }
.lsh-footer-rg a { color: var(--lsh-rose); }
.lsh-agebadge {
  display: inline-block;
  border: 1.5px solid var(--lsh-rose); color: var(--lsh-rose);
  border-radius: 50%; width: 2.6rem; height: 2.6rem;
  line-height: 2.5rem; text-align: center;
  font-family: var(--lsh-display); font-weight: 800;
}
.lsh-footer .lsh-partners img { height: 26px; filter: brightness(0) invert(.92); }
.lsh-footer-fine {
  max-width: 72rem; margin: 2rem auto 0;
  border-top: 1px solid rgba(242, 237, 234, .2);
  padding-top: 1rem;
  font-size: .78rem; color: rgba(242, 237, 234, .55);
}
@media (max-width: 820px) {
  .lsh-footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .lsh-hero-ledger { grid-template-columns: repeat(2, 1fr); }
  .lsh-pill { gap: 0; }
  .lsh-pill a { padding: 0 .6rem; font-size: .78rem; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .lsh-main { padding: 0 1rem; }

  .lsh-masthead-date {
    font-size: .62rem; letter-spacing: .12em; gap: .5rem;
  }
  .lsh-masthead-rule-sep { display: none; }

  /* pill: tighter type, and a scroll safety-net so it can never push page width */
  .lsh-pill {
    max-width: calc(100% - 1.5rem);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .lsh-pill::-webkit-scrollbar { display: none; }
  .lsh-pill a { padding: 0 .5rem; font-size: .72rem; }
  .lsh-coins { padding: .3rem .55rem; font-size: .72rem; }

  .lsh-hero { padding: 2.5rem 0; }
  .lsh-hero-head { font-size: clamp(2.7rem, 14vw, 3.4rem); }
  .lsh-hero-line:nth-child(2) { margin-left: 1.25rem; }
  .lsh-hero-line:nth-child(3) { margin-left: .5rem; }
  .lsh-hero-deck { gap: 1.25rem; }

  .lsh-sechead small { display: block; margin: .25rem 0 0; }

  /* why-columns stack: hairline separators above, not beside */
  .lsh-why { padding: 2rem 0; }
  .lsh-why-cols { gap: 1.25rem; }
  .lsh-why-cols article { border-left: 0; padding: 0; }
  .lsh-why-cols article + article { border-top: 1px solid var(--lsh-line); padding-top: 1.25rem; }

  .lsh-trust { padding: 2rem 0; }
  .lsh-trust-row { padding: 1.25rem 1rem; gap: 1.25rem; }

  .lsh-lobby { padding: 2rem 0 3rem; }
  .lsh-card { flex-basis: 78%; } /* peek of the next card hints at the rail */

  .lsh-cookies { flex-direction: column; align-items: stretch; }
  .lsh-cookies .lsh-btn { justify-content: center; }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .lsh-card { transform: none !important; }
}
