/* Shared styling for the commercial (casino / slots) article pages.
 *
 * EDIT THIS FILE DIRECTLY. It is served as-is at /styles/commercial.css and
 * is the only place this styling lives - it is not generated during the build
 * and not compiled, so what you write here is what ships.
 *
 * It replaces ~34 KB of styling that used to be copied inline into every one
 * of these pages (1.94 MB across the section, already drifted into five
 * slightly different versions). The site's own header / side menu / footer
 * styling is NOT here on purpose - the real site provides it.
 *
 * Everything is scoped either to `.article-content` (the article itself) or to
 * `.CommercialPage` (the wrapper around it). Keep it that way: an unscoped rule
 * here can reach the game pages, which are not in scope.
 *
 * Derivation from the frozen pages: affiliate/scripts/build_commercial_css.py
 */

/* --- Colour and spacing values used by the rules below ------------------
 * Scoped to the wrapper rather than :root so they cannot leak site-wide. */
.CommercialPage {
  --color-bg:           #0d1226;
  --color-bg-mid:       #131c44;
  --color-bg-card:      #1a2352;
  --color-bg-card-alt:  #1e2860;
  --color-border:       #2a3670;
  --color-border-light: #3a4890;
  --color-accent:       #4c8bf5;
  --color-accent-hover: #6fa3ff;
  --color-accent-warm:  #f5a623;
  --color-text:         #d4daf0;
  --color-text-muted:   #8892b8;
  --color-text-strong:  #eef1ff;
  --color-heading-h1:   #ffffff;
  --color-heading-h2:   #c8d4ff;
  --color-heading-h3:   #7eb3ff;
  --color-table-head-bg:#131c44;
  --color-table-row-alt:#1c2550;
  --color-cta-bg:       #4c8bf5;
  --color-cta-hover-bg: #3a7ae0;
  --color-footer-bg:    #0a0f1e;
  --font-sans:          -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --radius-sm:          4px;
  --radius-md:          8px;
  --radius-lg:          12px;
  --shadow-card:        0 4px 24px rgba(0, 0, 0, 0.45);
  --max-content:        860px;
  --header-height:      64px;
}

/* --- The article itself -------------------------------------------------- */
.article-content {
  max-width: 860px;
  padding: 36px 40px 40px;
  /* Site body font is Maven Pro, but only the 500/700 faces are loaded, so
     normal-weight article copy substituted to the 500 face and rendered heavy.
     Restore the pre-migration system-font stack (has a real 400 weight). */
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-text);
}

/* Breadcrumb (injected above the H1 by scripts/apply_breadcrumbs.py) */
.article-content .breadcrumb {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-muted);
  margin: 0 0 22px;
}
.article-content .breadcrumb a {
  color: var(--color-text-muted);
  text-decoration: none;
}
.article-content .breadcrumb a:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}
.article-content .breadcrumb > * + *::before {
  content: "\203A";
  margin: 0 8px;
  color: var(--color-border-light);
}
.article-content .breadcrumb span:last-child {
  color: var(--color-text);
}

/* Byline (injected below the H1 by scripts/apply_author.py) — EEAT author/reviewer.
   Each credit shows a circular avatar + accent-colored name link; author and reviewer
   share the credit row, with the "Updated on" date on its own line below. Avatars +
   spacing separate the two credits, so there is no middot to orphan on wrap. */
.article-content .article-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-muted);
  margin: -2px 0 26px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}
.article-content .byline-credit {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
}
.article-content .byline-person {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.article-content .byline-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  background: var(--color-border-light);
}
.article-content .byline-updated {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  white-space: nowrap;
}
.article-content .byline-updated svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  opacity: .85;
}
.article-content .byline-updated time {
  color: var(--color-text);
  font-weight: 600;
  white-space: nowrap;
}
.article-content .article-byline a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
}
.article-content .article-byline a:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}
@media (max-width: 480px) {
  .article-content .byline-credit {
    gap: 10px 0;
  }
  .article-content .byline-person {
    flex: 0 0 100%;
  }
}

/* Author bio page header (built by scripts/build_authors.py) */
.article-content .author-profile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin: 0 0 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--color-border);
}
.article-content .author-profile__photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  background: var(--color-border-light);
}
.article-content .author-profile__meta {
  flex: 1 1 240px;
  min-width: 0;
}
.article-content .author-profile__meta h1 {
  margin: 0 0 4px;
}
.article-content .author-profile__role {
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 0;
}
.article-content .author-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

/* Headings */
.article-content h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-heading-h1);
  margin: 0 0 20px;
  letter-spacing: -0.3px;
}
.article-content h2 {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-heading-h2);
  margin: 36px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}
.article-content h3 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-heading-h3);
  margin: 26px 0 10px;
}
.article-content h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-strong);
  margin: 20px 0 8px;
}

/* Paragraphs */
.article-content p {
  margin: 0 0 14px;
}
.article-content p:last-child {
  margin-bottom: 0;
}

/* Inline elements */
.article-content strong,
.article-content b {
  color: var(--color-text-strong);
  font-weight: 600;
}
.article-content em,
.article-content i {
  font-style: italic;
}

/* Links within article */
.article-content a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-content a:hover {
  color: var(--color-accent-hover);
}

/* Ordered lists */
.article-content ol {
  list-style: decimal;
  padding-left: 22px;
  margin: 12px 0 18px;
}
.article-content ol li {
  margin-bottom: 10px;
  line-height: 1.7;
  padding-left: 4px;
}
.article-content ol li::marker {
  color: var(--color-accent);
  font-weight: 600;
}

/* Unordered lists */
.article-content ul {
  list-style: disc;
  padding-left: 22px;
  margin: 12px 0 18px;
}
.article-content ul li {
  margin-bottom: 8px;
  line-height: 1.7;
  padding-left: 4px;
}
.article-content ul li::marker {
  color: var(--color-accent);
}

/* Tables */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.article-content thead {
  background: var(--color-table-head-bg);
}
.article-content th {
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--color-border);
}
.article-content td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
  color: var(--color-text);
  background: var(--color-bg-card);
}
.article-content tbody tr:nth-child(even) td {
  background: var(--color-table-row-alt);
}
.article-content tbody tr:hover td {
  background: var(--color-bg-card-alt);
}
.article-content tbody tr:last-child td {
  border-bottom: none;
}

/* CTA link — call-to-action buttons */
.article-content .cta-link {
  display: inline-block;
  margin: 14px 0 18px;
  padding: 11px 22px;
  background: var(--color-cta-bg);
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
  box-shadow: 0 2px 8px rgba(76, 139, 245, 0.35);
  letter-spacing: 0.2px;
}
.article-content .cta-link:hover {
  background: var(--color-cta-hover-bg);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(76, 139, 245, 0.5);
}

/* Blockquote */
.article-content blockquote {
  margin: 20px 0;
  padding: 16px 20px;
  border-left: 4px solid var(--color-accent);
  background: rgba(76, 139, 245, 0.08);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--color-text-muted);
  font-style: italic;
}

/* Code */
.article-content code {
  background: rgba(76, 139, 245, 0.1);
  color: var(--color-accent-hover);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 13px;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}
.article-content pre {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 16px;
  overflow-x: auto;
  margin: 16px 0;
}
.article-content pre code {
  background: none;
  padding: 0;
}

/* Horizontal rule */
.article-content hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 28px 0;
}

/* Disclaimer text */
.article-content .disclaimer-text {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  font-style: italic;
}

/* --- Narrow screens ------------------------------------------------------
 * Header/footer breakpoints dropped (the real site has its own); the shared
 * `.IndexPage__BottomBox` class is scoped so the game home page is untouched. */
@media screen and (max-width: 1024px) {
  .CommercialPage .IndexPage__BottomBox {
    margin: 24px 16px;
    padding: 1.5rem;
  }
  .article-content {
    padding: 28px 28px 32px;
  }
  .article-content h1 {
    font-size: 24px;
  }
  .article-content h2 {
    font-size: 19px;
  }
}
@media screen and (max-width: 768px) {
  .CommercialPage .IndexPage__BottomBox {
    margin: 16px 12px;
    padding: 0.5rem;
    border-radius: var(--radius-md);
  }
  .article-content {
    padding: 20px 18px 24px;
    font-size: 14px;
  }
  .article-content .breadcrumb {
    font-size: 12px;
    margin-bottom: 16px;
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .article-content .breadcrumb::-webkit-scrollbar {
    display: none;
  }
  .article-content .breadcrumb > * + *::before {
    margin: 0 6px;
  }
  .article-content h1 {
    font-size: 21px;
  }
  .article-content h2 {
    font-size: 17px;
    margin-top: 28px;
  }
  .article-content h3 {
    font-size: 15px;
  }
  /* Horizontally scrollable tables on mobile */
  .article-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 13px;
    white-space: nowrap;
  }
  .article-content th,
  .article-content td {
    padding: 9px 11px;
  }
  .article-content ol,
  .article-content ul {
    padding-left: 18px;
  }
}
@media screen and (max-width: 480px) {
  .CommercialPage .IndexPage__BottomBox {
    margin: 12px 0;
    padding: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  .article-content {
    padding: 16px 14px 20px;
    font-size: 14px;
  }
  .article-content h1 {
    font-size: 19px;
    margin-bottom: 14px;
  }
  .article-content h2 {
    font-size: 16px;
    margin-top: 24px;
  }
  .article-content h3 {
    font-size: 14px;
  }
  .article-content table {
    font-size: 12px;
  }
  .article-content th,
  .article-content td {
    padding: 7px 9px;
  }
  .article-content .cta-link {
    display: block;
    text-align: center;
    width: 100%;
    padding: 13px 16px;
  }
}

/* --- Playable slot demo (slot reviews only) ------------------------------ */
.article-content .slot-demo-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  margin: 0 0 20px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg-card) center center / cover no-repeat;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}
.article-content .slot-demo-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 2;
}
.article-content .stage-poster {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}
.article-content .stage-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(13, 18, 38, 0.35), rgba(13, 18, 38, 0.72));
}
.article-content .poster-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 16px;
}
.article-content .poster-play {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 30px;
  line-height: 1;
  color: #241100;
  background: linear-gradient(135deg, #ffb648, var(--color-accent-warm));
  box-shadow: 0 10px 30px rgba(245, 166, 35, 0.45);
  transition: transform 0.18s ease;
}
.article-content .stage-poster:hover .poster-play {
  transform: scale(1.06);
}
.article-content .poster-label {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.article-content .poster-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
}
.article-content .slot-demo-loading {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  background: var(--color-bg);
  color: #fff;
  text-align: center;
  padding: 16px;
}
.article-content .slot-demo-loading .spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--color-accent-warm);
  animation: slotDemoSpin 1s linear infinite;
}
.article-content .slot-demo-loading .load-label {
  font-size: 17px;
  font-weight: 700;
}
.article-content .slot-demo-loading .load-sub {
  font-size: 13px;
  color: var(--color-text-muted);
  max-width: 34ch;
}
@keyframes slotDemoSpin {
  to { transform: rotate(360deg); }
}
@media screen and (max-width: 768px) {
  .article-content .slot-demo-stage { aspect-ratio: 4 / 3; }
  .article-content .poster-play { width: 64px; height: 64px; font-size: 25px; }
  .article-content .poster-label { font-size: 17px; }
}
/* slotdemo-assets:css:end */

/* Slot review rating widget (mirrors the game-page rating UI).
   Kept in sync with scripts/apply_slot_rating.py CSS_RULES, which injects the
   same block into already-rendered slot files. Laid out with explicit flex gaps
   (not the site's Flex--gap negative-margin utilities, which shift the star row
   off the pill's vertical centre). */
.article-content .slot-rating { display: flex; align-items: center; gap: .6rem; margin: 1.25rem 0; }
.article-content .slot-rating__stars { display: flex; align-items: center; gap: .15rem; }
.article-content .PlayPage__GamePlayer__Controls__Rating { gap: .375rem; font-weight: 600; color: #cdd7e4; }
.article-content .PlayPage__GamePlayer__Controls__Rating span:last-child { background-color: #006bb0; color: #fff; padding: .05rem .5rem; border-radius: 4px; line-height: 1.5; }
.article-content .PlayPage__GamePlayer__Controls__Rating--good span:last-child { background-color: #ff6325; text-shadow: 0 1px 3px #f14500; animation: ratingsGlow 1.5s linear infinite; }
.article-content .PlayPage__GamePlayer__Controls__Icon { color: #92a9c3; line-height: 0; }
.article-content .PlayPage__GamePlayer__Controls__Icon--picked { color: #f9f9f9; }
.article-content .PlayPage__GamePlayer__Controls__Icon--half { position: relative; }
.article-content .PlayPage__GamePlayer__Controls__Icon--half .rating-star-fill { position: absolute; inset: 0; width: 50%; overflow: hidden; color: #f9f9f9; }
.article-content .slot-rating__stars.picking .PlayPage__GamePlayer__Controls__Icon--half .rating-star-fill { display: none; }
.article-content .slot-rating.is-interactive .PlayPage__GamePlayer__Controls__Icon { cursor: pointer; transition: color .12s ease; }
.article-content .slot-rating.is-interactive .PlayPage__GamePlayer__Controls__Icon:hover { color: #f9f9f9; }
.article-content .slot-rating.is-interactive .PlayPage__GamePlayer__Controls__Icon:focus-visible { outline: 2px solid #57aaff; outline-offset: 2px; border-radius: 3px; }
@keyframes ratingsGlow {
  0% { box-shadow: 0 0 3px 1px rgba(255,99,37,.5); }
  45% { box-shadow: 0 0 10px 1px #ff6325; }
  100% { box-shadow: 0 0 3px 1px rgba(255,99,37,.5); }
}

/* --- Star-rating widget (slot reviews only) ------------------------------ */
/* Slot review rating widget (mirrors the game-page rating UI). Laid out with
   explicit flex gaps (NOT the site's Flex--gap negative-margin utilities, which
   shift the star row's vertical centre off the pill). */
.article-content .slot-rating{display:flex;align-items:center;gap:.6rem;margin:1.25rem 0}
.article-content .slot-rating__stars{display:flex;align-items:center;gap:.15rem}
.article-content .PlayPage__GamePlayer__Controls__Rating{gap:.375rem;font-weight:600;color:#cdd7e4}
.article-content .PlayPage__GamePlayer__Controls__Rating span:last-child{background-color:#006bb0;color:#fff;padding:.05rem .5rem;border-radius:4px;line-height:1.5}
.article-content .PlayPage__GamePlayer__Controls__Rating--good span:last-child{background-color:#ff6325;text-shadow:0 1px 3px #f14500;animation:ratingsGlow 1.5s linear infinite}
.article-content .PlayPage__GamePlayer__Controls__Icon{color:#92a9c3;line-height:0}
.article-content .PlayPage__GamePlayer__Controls__Icon--picked{color:#f9f9f9}
.article-content .PlayPage__GamePlayer__Controls__Icon--half{position:relative}
.article-content .PlayPage__GamePlayer__Controls__Icon--half .rating-star-fill{position:absolute;inset:0;width:50%;overflow:hidden;color:#f9f9f9}
.article-content .slot-rating__stars.picking .PlayPage__GamePlayer__Controls__Icon--half .rating-star-fill{display:none}
.article-content .slot-rating.is-interactive .PlayPage__GamePlayer__Controls__Icon{cursor:pointer;transition:color .12s ease}
.article-content .slot-rating.is-interactive .PlayPage__GamePlayer__Controls__Icon:hover{color:#f9f9f9}
.article-content .slot-rating.is-interactive .PlayPage__GamePlayer__Controls__Icon:focus-visible{outline:2px solid #57aaff;outline-offset:2px;border-radius:3px}
@keyframes ratingsGlow{0%{box-shadow:0 0 3px 1px rgba(255,99,37,.5)}45%{box-shadow:0 0 10px 1px #ff6325}100%{box-shadow:0 0 3px 1px rgba(255,99,37,.5)}}

/* --- Author credit line --------------------------------------------------
 * Last on purpose: this is the current layout and it overrides the earlier
 * version still present in the article rules above, exactly as it does today. */
.article-content .article-byline{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:10px 28px;font-size:13px;line-height:1.5;color:var(--color-text-muted);margin:-2px 0 26px;padding-bottom:16px;border-bottom:1px solid var(--color-border)}
.article-content .byline-credit{display:flex;flex:0 1 auto;flex-wrap:wrap;align-items:center;gap:8px 40px}
.article-content .byline-person{display:inline-flex;align-items:center;gap:9px}
.article-content .byline-avatar{width:30px;height:30px;border-radius:50%;object-fit:cover;flex:0 0 auto;background:var(--color-border-light)}
.article-content .byline-updated{display:inline-flex;align-items:center;gap:6px;margin:0;white-space:nowrap}
.article-content .byline-updated svg{width:14px;height:14px;flex:0 0 auto;opacity:.85}
.article-content .byline-updated time{color:var(--color-text);font-weight:600;white-space:nowrap}
.article-content .article-byline a{color:var(--color-accent);font-weight:600;text-decoration:none}
.article-content .article-byline a:hover{color:var(--color-accent-hover);text-decoration:underline}
@media (max-width:480px){
  /* Compact byline: no avatars; author + reviewer inline on one line
     (comma-separated), the "Updated" date on its own line below. Pairs with the
     role-less "By …/Reviewed by …" markup from apply_author.py. */
  .article-content .article-byline{font-size:12px;gap:6px 0;margin-bottom:14px;padding-bottom:10px}
  .article-content .byline-avatar{display:none}
  .article-content .byline-credit{flex:1 1 100%;flex-direction:row;flex-wrap:wrap;align-items:center;gap:0 6px}
  .article-content .byline-person{flex:0 0 auto;gap:0}
  .article-content .byline-person:first-child .byline-text::after{content:","}
  .article-content .byline-updated{margin:0}
  .article-content .byline-updated svg{display:none}
}

/* --- The box around the article ------------------------------------------
 * Two values that lived ONLY in the copied styling, verified against the
 * frozen pages by comparing computed styles - not assumed:
 *   max-width  the real stylesheet puts none on .Box, so without this the
 *              article spans the full page width
 *   padding    the real stylesheet uses half this (2rem); the frozen pages
 *              render 4rem
 * Narrow-screen padding is overridden in the responsive section above.
 *
 * Deliberately NOT carried over: the `.GameTileBlock__Description` rules
 * (margin-top / h2 font-weight). They look relevant but they are scoped under
 * a `.GameTileBlock` ancestor that these pages never had, so they never
 * applied - confirmed by measuring the frozen pages (margin-top 0, h2 700).
 * Adding them here would visibly change the article. */
.CommercialPage .Box{max-width:988px;margin:0 auto;padding:4rem}
/* Mobile: drop the 4rem box padding so the article uses the full width. */
@media screen and (max-width: 768px) {
  .CommercialPage .Box { padding: 0.5rem; }
}
