/* SLOTS Card Game - retro poster style */
:root {
  --red: #c8281e;
  --red-dark: #8e1a12;
  --gold: #f2b632;
  --gold-light: #f8cf63;
  --teal: #2f7f86;
  --teal-dark: #1d585e;
  --cream: #f6e9c9;
  --ink: #1d1a16;
  --brown: #5a3a22;
  --display: "Titan One", "Arial Black", sans-serif;
  --condensed: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--ink);
  /* The sun-ray graphic sits behind every page and stays put while the page scrolls */
  background:
    radial-gradient(ellipse at center, transparent 40%, rgba(60, 30, 10, .35) 100%),
    repeating-conic-gradient(from 0deg at 50% 50%, var(--gold) 0deg 7.5deg, var(--teal) 7.5deg 15deg);
  background-color: var(--gold);
  background-attachment: fixed;
}
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
.wrap { width: min(1200px, 92%); margin-inline: auto; }
.red { color: var(--red); }

/* ---------- Backgrounds ---------- */
/* Sections are see-through so the page-wide sun-ray background shows behind everything */
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }

/* ---------- Headings & text ---------- */
.headline {
  font-family: var(--display);
  font-size: clamp(2.3rem, 6vw, 4rem);
  color: var(--red);
  text-align: center;
  letter-spacing: .02em;
  -webkit-text-stroke: 2px var(--cream);
  paint-order: stroke fill;
  text-shadow: 4px 4px 0 var(--ink);
  margin-bottom: .6rem;
}
.headline .red { color: var(--red); }
.lede {
  font-family: var(--condensed);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  text-align: center;
  max-width: 44rem;
  margin: 0 auto 2.5rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--condensed);
  font-weight: 800;
  font-style: italic;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  text-decoration: none;
  padding: .65em 1.6em;
  border: 3px solid var(--ink);
  border-radius: 12px;
  box-shadow: 5px 5px 0 var(--ink);
  cursor: pointer;
  transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px dashed var(--red-dark); outline-offset: 4px; }
.btn-red { background: var(--red); color: var(--cream); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-big { font-size: 1.7rem; padding: .55em 2.2em; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* ---------- Menu line ---------- */
:root { --menu-h: 50px; }
.menu {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: .3rem 1.6rem;
  min-height: var(--menu-h);
  padding: .35rem 1rem;
  background: var(--ink);
  border-bottom: 3px solid var(--gold);
}
.menu-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.4rem; }
.menu-links a {
  display: inline-block;
  font-family: var(--condensed); font-weight: 800; font-style: italic;
  text-transform: uppercase; letter-spacing: .03em; font-size: 1.1rem;
  color: var(--cream); text-decoration: none;
  padding: .2em .2em;
  border-bottom: 3px solid transparent;
}
.menu-links a:hover { color: var(--gold); }
.menu-links a.is-current { color: var(--gold); border-bottom-color: var(--gold); }
.menu-links a.menu-cta {
  background: var(--red); color: var(--cream);
  padding: .2em .9em; border: 2px solid var(--gold); border-radius: 8px;
}
.menu-links a.menu-cta:hover { background: var(--red-dark); }
.menu-links a.menu-cta.is-current { color: var(--gold); }

/* ---------- Home: poster fills the screen ---------- */
.landing {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: clamp(.6rem, 2.5vh, 1.5rem) 3vw;
  min-height: calc(100vh - var(--menu-h));
  min-height: calc(100svh - var(--menu-h));
}
.landing-poster {
  width: auto; height: auto;
  max-width: 100%;
  max-height: calc(100vh - var(--menu-h) - 3rem);
  max-height: calc(100svh - var(--menu-h) - 3rem);
  border: 4px solid var(--ink);
  border-radius: 14px;
  box-shadow: 8px 8px 0 rgba(29, 26, 22, .85);
}
/* Phones: let the poster use the full width and scroll if needed */
@media (max-width: 600px) and (orientation: portrait) {
  .landing { padding: .6rem; min-height: 0; }
  .landing-poster { max-height: none; width: 100%; border-width: 3px; box-shadow: 5px 5px 0 rgba(29, 26, 22, .85); }
}
.page-fill { min-height: calc(100vh - var(--menu-h)); min-height: calc(100svh - var(--menu-h)); }

.brand {
  font-family: var(--display);
  font-size: 2rem;
  color: var(--gold);
  text-decoration: none;
  -webkit-text-stroke: 1.5px var(--ink);
  paint-order: stroke fill;
  text-shadow: 3px 3px 0 var(--ink);
  margin: 0;
}

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.feature {
  background: #fff8e6;
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: 6px 6px 0 var(--teal-dark);
  padding: 1.6rem 1.4rem 1.4rem;
  text-align: center;
}
.feature h3 {
  font-family: var(--condensed); font-style: italic; font-weight: 800;
  font-size: 1.7rem; text-transform: uppercase; margin: .6rem 0 .3rem;
}
.feature p { margin: 0; }
.badge {
  display: inline-grid; place-items: center;
  width: 88px; height: 88px;
  font-family: var(--display); font-size: 2rem; color: var(--red);
  background: var(--gold);
  clip-path: polygon(50% 0%, 61% 12%, 77% 6%, 80% 22%, 96% 25%, 90% 40%, 100% 50%, 90% 60%, 96% 75%, 80% 78%, 77% 94%, 61% 88%, 50% 100%, 39% 88%, 23% 94%, 20% 78%, 4% 75%, 10% 60%, 0% 50%, 10% 40%, 4% 25%, 20% 22%, 23% 6%, 39% 12%);
}
.badge.star { font-size: 2.4rem; }

/* ---------- Panels ---------- */
.panel {
  background: var(--cream);
  border: 5px solid var(--ink);
  border-radius: 22px;
  box-shadow: 10px 10px 0 rgba(29, 26, 22, .85);
  padding: clamp(1.5rem, 4vw, 3rem);
}
.framed {
  border: 5px solid var(--ink);
  border-radius: 18px;
  box-shadow: 10px 10px 0 rgba(29, 26, 22, .85);
}

/* ---------- How to play ---------- */
.how-inner { display: flex; flex-direction: column; align-items: center; width: 100%; }
/* Same width as the home page poster (poster is 2:3, sized to fit the screen height) */
.how-inner .landing-poster {
  max-height: none;
  width: min(100%, calc((100vh - var(--menu-h) - 3rem - 8px) * 2 / 3 + 8px));
  width: min(100%, calc((100svh - var(--menu-h) - 3rem - 8px) * 2 / 3 + 8px));
}
.how-more { margin: 1.5rem 0 0; }
/* How to Score and Full Rules panels: same width as the home page poster */
.scoring-inner, .rules-inner {
  width: min(94vw, calc((100vh - var(--menu-h) - 3rem - 8px) * 2 / 3 + 8px));
  max-width: none;
  padding: 1.4rem 1.1rem;
  container-type: inline-size;
}
.scoring-inner .headline, .rules-inner .headline { font-size: 2.4rem; }
.scoring-inner .lede, .rules-inner .lede { font-size: 1.15rem; margin-bottom: 1.4rem; }
.scoring-inner .pay-table { margin-bottom: 1.6rem; }
.scoring-inner .special-cards { grid-template-columns: 1fr; gap: .8rem; }
.scoring-inner .special-cards .card-img { width: 64px; height: 64px; }
@media (max-width: 600px) and (orientation: portrait) {
  .scoring-inner, .rules-inner, .about-inner { width: calc(100vw - 1.2rem); }
}

/* ---------- Plain-text overview panels (home + learn) ---------- */
.about { padding-top: .5rem; }
.about-inner {
  width: min(94vw, calc((100vh - var(--menu-h) - 3rem - 8px) * 2 / 3 + 8px));
  max-width: none;
  padding: 1.4rem 1.1rem;
}
.how-inner .about-inner { margin-top: 1.6rem; }
.about-inner .headline { font-size: 2.4rem; }
.about-inner .lede { font-size: 1.15rem; margin-bottom: 1.2rem; }
.about-inner p { margin: 0 0 1rem; }
.about-inner a:not(.btn) { color: var(--red-dark); font-weight: 600; }
.facts { list-style: none; margin: 0 0 1.2rem; padding: .8rem 1rem; background: #fff8e6; border: 3px solid var(--ink); border-radius: 12px; }
.facts li { padding: .2rem 0; }
.about-buy, .about-inner .how-more { text-align: center; margin: 1.2rem 0 0; }

/* ---------- Scoring ---------- */
.card-img, .trio img {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 10px;
  box-shadow: 3px 3px 0 var(--brown);
}
.pay-table {
  max-width: 760px; margin: 0 auto 3rem;
  background: #fff8e6;
  border: 4px solid var(--ink); border-radius: 18px;
  box-shadow: 8px 8px 0 var(--teal-dark);
  padding: .6rem 1.4rem;
}
.pay-table li {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.2rem;
  padding: .7rem 0;
  border-bottom: 3px dotted rgba(29, 26, 22, .3);
}
.pay-table li:last-child { border-bottom: 0; }
.trio { display: flex; gap: .45rem; }
.trio img { width: 64px; height: 64px; }
.pay-name { font-family: var(--condensed); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 1.5rem; }
.pay-pts { font-family: var(--display); font-size: 2.1rem; color: var(--red); -webkit-text-stroke: 1px var(--ink); paint-order: stroke fill; }
.jackpot { background: linear-gradient(90deg, transparent, rgba(242, 182, 50, .45), transparent); }
.jackpot .pay-pts { font-size: 2.5rem; }
.special-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.4rem; }
.special-cards li {
  display: flex; gap: 1rem; align-items: center;
  background: #fff8e6; border: 3px solid var(--ink); border-radius: 14px; padding: 1rem;
}
.special-cards .card-img { width: 84px; height: 84px; flex: none; }
.special-cards h3 { font-family: var(--condensed); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 1.4rem; color: var(--red); }
.special-cards p { margin: .2rem 0 0; font-size: 1rem; line-height: 1.4; }

/* ---------- Full rules ---------- */
.rules details {
  border: 3px solid var(--ink); border-radius: 12px;
  background: #fff8e6; margin-bottom: .8rem;
  overflow: hidden;
}
.rules summary {
  cursor: pointer; list-style: none;
  font-family: var(--condensed); font-weight: 800; font-style: italic; text-transform: uppercase;
  font-size: 1.4rem; padding: .6rem 1rem .6rem 3rem; position: relative;
  background: var(--gold);
}
.rules summary::-webkit-details-marker { display: none; }
.rules summary::before {
  content: "+"; position: absolute; left: .8rem; top: 50%; transform: translateY(-50%);
  width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--red); color: var(--cream);
  display: grid; place-items: center; font-style: normal; font-size: 1.2rem; line-height: 1;
}
.rules details[open] summary::before { content: "\2212"; }
.rules details > *:not(summary) { margin: .9rem 1.2rem; }
.bullets { list-style: none; padding: 0; }
.bullets li { position: relative; padding-left: 1.6rem; margin-bottom: .45rem; }
.bullets li::before { content: "\2605"; position: absolute; left: 0; color: var(--red); }
.table-figure { margin: 1rem 1.2rem 1.2rem; }
.table-figure img { background: #fff; border: 3px solid var(--ink); border-radius: 10px; }
.table-figure figcaption { font-size: .95rem; font-style: italic; margin-top: .4rem; text-align: center; }
.rules-video { text-align: center; margin: 1.8rem 0 0; }

/* ---------- Buy ---------- */
.buy-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: center; }
.buy-main { background: #fff; border: 4px solid var(--ink); border-radius: 16px; width: 100%; aspect-ratio: 1100 / 965; object-fit: contain; }
.buy-thumbs { display: flex; gap: .8rem; margin-top: .9rem; }
.buy-thumb {
  width: 84px; height: 84px; padding: 0; cursor: pointer; overflow: hidden;
  background: #fff; border: 3px solid var(--ink); border-radius: 10px; opacity: .65;
}
.buy-thumb.is-active, .buy-thumb:hover { opacity: 1; box-shadow: 0 0 0 3px var(--gold); }
.buy-thumb img { width: 100%; height: 100%; object-fit: cover; }
.buy-info .headline { text-align: left; }
.price {
  font-family: var(--display); font-size: 3.4rem; color: var(--red); margin: 0 0 .6rem;
  -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; text-shadow: 3px 3px 0 var(--gold);
}
.price span { font-family: var(--condensed); font-size: 1.3rem; color: var(--ink); -webkit-text-stroke: 0; text-shadow: none; }
.buy-note { font-family: var(--condensed); font-style: italic; font-weight: 700; font-size: 1.25rem; }
.buy-btn { margin-top: .6rem; }
.secure { font-size: .95rem; opacity: .8; margin: .9rem 0 0; }

/* ---------- Solitaire ---------- */
/* Graphic and text panel are both the same width as the home page poster */
.solitaire-art, .solitaire-text {
  display: block;
  width: min(94vw, calc((100vh - var(--menu-h) - 3rem - 8px) * 2 / 3 + 8px));
}
.solitaire-art .landing-poster { width: 100%; max-height: none; }
.solitaire-art img { transition: transform .15s; }
.solitaire-art:hover img { transform: rotate(-1.5deg) scale(1.02); }
.solitaire-text { margin-top: 1.6rem; padding: 1.4rem 1.1rem; text-align: center; }
.solitaire-text .headline { font-size: 2.4rem; }
@media (max-width: 600px) and (orientation: portrait) {
  .solitaire-art, .solitaire-text { width: calc(100vw - 1.2rem); }
}
.kicker {
  display: inline-block; margin: 0 0 .6rem;
  font-family: var(--condensed); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 1.2rem;
  background: var(--red); color: var(--cream); padding: .15em .8em; border-radius: 6px; transform: rotate(-2deg);
}
.solitaire-text .btn { margin-top: .8rem; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; align-items: start; }
.thumb {
  display: block; width: 100%; padding: 0; cursor: zoom-in;
  border: 4px solid var(--ink); border-radius: 14px; overflow: hidden;
  background: var(--ink);
  box-shadow: 6px 6px 0 var(--teal-dark);
  transition: transform .15s;
}
.thumb:hover { transform: rotate(-1deg) scale(1.02); }
.thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.lightbox {
  border: 5px solid var(--ink); border-radius: 16px; padding: 0;
  max-width: 92vw; max-height: 92vh; background: var(--ink);
}
.lightbox::backdrop { background: rgba(20, 15, 10, .85); }
.lightbox img { max-width: 90vw; max-height: 88vh; width: auto; }
.lightbox-close {
  position: absolute; top: 8px; right: 8px;
  width: 44px; height: 44px; border-radius: 50%;
  border: 3px solid var(--ink); background: var(--gold);
  font-size: 1.8rem; line-height: 1; cursor: pointer;
}

/* ---------- Get the game ---------- */
.get-inner { max-width: 760px; text-align: center; }
.get-logo { border: 4px solid var(--ink); border-radius: 14px; margin: 0 auto 1.6rem; max-width: 440px; width: 100%; }
.get-inner .headline { font-size: clamp(1.9rem, 5vw, 3rem); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink); color: var(--cream);
  text-align: center; padding: 1.2rem 0;
  border-top: 6px solid var(--gold);
}
.legal { font-size: .8rem; opacity: .7; max-width: 50rem; margin: .4rem auto; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .buy-inner { grid-template-columns: 1fr; }
  .buy-info .headline { text-align: center; }
  .buy-info { text-align: center; }
  .buy-info .bullets { display: inline-block; text-align: left; }
}
@media (max-width: 480px) {
  .menu { padding: .35rem .4rem; }
  .menu-links { gap: .2rem .7rem; }
  .menu-links a { font-size: .95rem; letter-spacing: 0; }
  .menu-links a.menu-cta { padding: .15em .55em; }
}
/* Compact pay table whenever its panel is narrow (it now matches the poster width) */
@container (max-width: 560px) {
  .pay-table { padding: .4rem .8rem; }
  .pay-table li { grid-template-columns: auto 1fr; gap: .6rem; }
  .pay-name { display: none; }
  .trio { gap: .3rem; }
  .trio img { width: 54px; height: 54px; }
  .pay-pts { text-align: right; font-size: 1.8rem; }
  .jackpot .pay-pts { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
