/*
 * pages.css
 *
 * Page-specific and shell overrides. Scoped by body id/class where possible.
 * Revert: remove this <link>.
 */

/* ─── Legacy shell overrides (from common_scripts_and_styles.inc.php) ─────── */
.main {
  max-width: var(--content-max);
}

html {
  overflow-y: auto !important;
}

body {
  overflow-y: auto !important;
  padding-top: 2em !important;
  padding-bottom: 4em !important;
  background-image: url('https://mgnt-app-assets.s3.amazonaws.com/MASHPlus/site/img/bkgr/BackgroundLandscape.scale-100.jpg') !important;
  background-attachment: fixed !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

/* Reproduce the content column that .main gave the hoisted site header/nav.
   .main is content-box, so its width is the width these children occupied. */
body > header,
body > nav.top-navigation {
  inline-size: min(80%, var(--content-max));
  margin-inline: auto;
}

/* Individual games inject a border-box reset, so .main's declared width
   includes its legacy padding instead of describing the content column. */
body:where(:has(.back-to-games)) > header,
body:where(:has(.back-to-games)) > nav.top-navigation {
  inline-size: calc(min(80%, var(--content-max)) - 2em);
}

@media (max-width: 48rem) {
  body:where(:has(.back-to-games)) > header,
  body:where(:has(.back-to-games)) > nav.top-navigation {
    inline-size: calc(min(80%, var(--content-max)) - 20px);
  }
}

@media (max-width: 37.5rem) {
  body > header,
  body > nav.top-navigation {
    inline-size: auto;
    margin-inline: 10px;
  }
}

@media (max-width: 30rem) {
  body > header,
  body > nav.top-navigation {
    margin-inline: 5px;
  }
}

/* Play MASH already has a full-width fixed nav; preserve that geometry. */
body#PlayMASH > nav.top-navigation {
  margin-inline: 0;
}

/* Logo sprite override (games, blog, etc.) */
#MASH.logo {
  max-width: 37.5rem;
  width: 100%;
  height: 3em;
  background: transparent url('//mgnt-app-assets.s3.amazonaws.com/MASHPlus/site/img/logos/MASHPlusLogoText.scale-100.png?v=20250828') no-repeat 0 0;
  background-size: contain;
  display: block;
  text-indent: -9999px;
  overflow: hidden;
  white-space: nowrap;
  text-align: left;
  margin: 0 0 0.67em 0;
  padding: 0;
}

/* Frosted panel padding variants */
.frosted-glass {
  padding: var(--space-m);
}

body#home .frosted-glass {
  padding: 0;
}

body#games .frosted-glass,
body.editorial:not(#home) .intro.frosted-glass {
  padding: var(--space-m);
  margin-bottom: var(--space-m);
}

body#games .content.frosted-glass {
  padding: var(--space-s);
}

/* ─── Shared utilities ────────────────────────────────────────────────────── */
.intro {
  position: relative;
}

.gasns-m {
  width: 20rem;
  margin: 0 auto;
  padding: var(--space-2xs);
}

.gasns-r {
  width: auto;
  margin: 0 auto;
  padding: var(--space-2xs);
}

.xpromo-container {
  width: auto;
  overflow: hidden;
}

.responsive-ad-container {
  background-color: rgb(204, 208, 209);
}

.responsive-ad-container .inner-content ins {
  margin: 0 auto;
}

/* Google ad dimensions reserve space before the ad request to prevent CLS. */
.mashapp-responsive {
  width: 20rem;
  height: 3.125rem;
  min-height: 3.125rem;
  margin: 1.25rem auto;
  display: block;
}

@media (min-width: 31.25rem) {
  .mashapp-responsive {
    width: 29.25rem;
    height: 3.75rem;
    min-height: 3.75rem;
  }
}

@media (min-width: 50rem) {
  .mashapp-responsive {
    width: 100%;
    height: 5.625rem;
    min-height: 5.625rem;
  }
}

/* ─── Homepage (body#home) ────────────────────────────────────────────────── */
body#home .xpromo-container {
  min-height: 7.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

body#home .newsletter-signup {
  margin-top: var(--space-xl);
  min-height: 6.25rem;
}

body#home .mash-download-ad {
  min-height: 5.625rem;
  margin-block: var(--space-m);
}

body#home .social-widgets,
body#home .widgets {
  min-height: 3.125rem;
}

body#home .facebook-like-container {
  min-height: 1.75rem;
}

body#home .home-hero-img {
  margin-bottom: var(--space-s);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1200 / 768;
  width: 100%;
  position: relative;
}

body#home .home-hero-img img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 768;
}

body#home .home-hero-img a {
  display: block;
  width: 100%;
}

body#home .feature-grid-section {
  margin-bottom: var(--space-m);
}

body#home .feature-grid-section h3 {
  font-size: 0.85em;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-green);
  margin-bottom: var(--space-s);
}

body#home .feature-card {
  background: linear-gradient(180deg, rgba(174, 245, 255, 0.45) 0%, rgba(174, 245, 255, 0.75) 100%);
  box-shadow: 0 1px 2px 1px rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-sm);
  padding: var(--space-m);
  display: flex;
  align-items: flex-start;
  gap: var(--space-s);
  text-decoration: none;
  color: inherit;
}

body#home .feature-card:hover {
  box-shadow: 0 4px 16px rgba(45, 132, 248, 0.4);
  background: linear-gradient(180deg, rgba(246, 254, 255, 0.75) 0%, rgba(203, 249, 255, 0.95) 100%);
  border-color: #fff;
}

body#home .primary-feature-card {
  background: linear-gradient(180deg, rgba(235, 254, 241, 0.65) 0%, rgba(211, 250, 224, 0.85) 100%);
  border-color: #fff;
}

body#home .feature-card .icon {
  font-size: 2.4em;
  color: rgb(13, 94, 200);
  flex-shrink: 0;
  width: 3rem;
  text-align: center;
  padding-top: var(--space-3xs);
}

body#home .feature-card .text {
  font-size: 1.2em;
  line-height: 1.4;
  color: #334;
}

body#home .feature-card .text strong {
  color: var(--brand-blue);
  font-weight: 600;
}

@media (max-width: 37.5rem) {
  body#home .feature-card {
    padding: var(--space-s);
    gap: var(--space-s);
  }

  body#home .feature-card .icon {
    font-size: 2em;
    width: 2.5rem;
  }

  body#home .feature-card .text {
    font-size: 1.1em;
    line-height: 1.3;
  }
}

/* ─── Games page (body#games) ─────────────────────────────────────────────── */
body#games .games-page {
  /* wrapper — no extra rules needed */
}

body#games .games-grid {
  padding: var(--space-m) 0;
}

body#games .game-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
}

body#games .game-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

body#games .game-card-image {
  width: 100%;
  height: 12.5rem;
  background-color: var(--brand-blue);
  background-image: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-green) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4em;
  color: white;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

body#games .game-card-image-tic-tac-toe { background-image: url('/games/tic-tac-toe/TicTacToe.jpg'); }
body#games .game-card-image-four-in-a-row { background-image: url('/games/four-in-a-row/FourInARow.jpg'); }
body#games .game-card-image-dots-and-boxes { background-image: url('/games/dots-and-boxes/DotsAndBoxes-CardHeader.jpg'); }
body#games .game-card-image-cootie-catcher { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
body#games .game-card-image-coloring { background-image: url('/games/coloring/thumbnails/shack.jpg'); }
body#games .game-card-image-snowman { background-image: url('/games/snowman/SnowmanCardHeader.jpg'); }
body#games .game-card-image-mash { background-image: url('/games/mash/MASH-Card-Header.jpg'); }

body#games .game-card-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

body#games .game-card:hover .game-card-image::before {
  opacity: 1;
}

body#games .game-card-content {
  padding: var(--space-m);
}

body#games .game-card h3 {
  font-size: 1.5em;
  color: var(--brand-blue);
  margin-bottom: var(--space-2xs);
  border-bottom: 2px solid var(--brand-blue);
  padding-bottom: var(--space-2xs);
}

body#games .game-card p {
  color: #666;
  line-height: 1.6;
  margin: 0;
  text-align: left;
}

@media (max-width: 48rem) {
  body#games .game-card-image {
    height: 9.375rem;
    font-size: 3em;
  }
}

/* ─── Individual games ───────────────────────────────────────────────────── */
body:has(.back-to-games) {
  background-color: transparent;
}

body:has(.back-to-games) .xpromo-container {
  margin-top: 0.625rem;
  padding: 0.5rem !important;
}

.back-to-games {
  margin: 1.25rem auto;
  max-width: 75rem;
  padding: 0 1.25rem;
}

.back-to-games a {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  background: var(--brand-blue);
  color: white;
  text-decoration: none;
  border-radius: 0.3125rem;
  font-size: 1em;
  transition: background 0.3s ease;
}

.back-to-games a:hover {
  background: #1d6fd8;
  text-decoration: none;
}

/* ─── Apps page ───────────────────────────────────────────────────────────── */
.apps-grid {
  padding-left: 0 !important;
  margin-top: 0 !important;
}

.app-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: var(--space-m);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.app-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  width: 100%;
  height: 100%;
}

.app-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.app-icon {
  width: 7.5rem;
  height: 7.5rem;
  object-fit: cover;
  margin-bottom: var(--space-s);
}

.app-name {
  font-size: 1.5em;
  color: #222 !important;
  margin: 0 0 12px 0;
  font-weight: 600;
  line-height: 1.2;
}

.app-description {
  color: #333;
  font-size: 0.95em;
  line-height: 1.5;
  margin: 0 0 var(--space-m) 0;
  flex-grow: 1;
  text-align: left !important;
}

.app-download-btn {
  display: inline-block;
  margin-top: var(--space-2xs);
  pointer-events: none;
}

.app-download-btn img {
  height: 2.5rem;
  width: auto;
  display: block;
}

body.editorial .intro h1 {
  margin-bottom: var(--space-m);
}

@media (max-width: 48rem) {
  .app-icon {
    width: 6.25rem;
    height: 6.25rem;
  }

  .app-name {
    font-size: 1.3em;
  }
}

@media (max-width: 30rem) {
  .app-card {
    padding: var(--space-s);
  }

  .app-icon {
    width: 5.625rem;
    height: 5.625rem;
  }

  .app-name {
    font-size: 1.2em;
  }

  .app-description {
    font-size: 0.9em;
  }
}

/* ─── Store download grid ─────────────────────────────────────────────────── */
#store .storeItem {
  padding-bottom: 1em;
}

.storeItem {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius);
  padding: var(--space-m);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.storeItem:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.storeItem.primary {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #fff;
}

.storeItem.secondary {
  background: linear-gradient(135deg, rgba(45, 132, 248, 0.1), rgba(29, 135, 24, 0.1));
  border: 2px solid rgba(45, 132, 248, 0.3);
}

.storeItem p {
  margin: 0 0 var(--space-s) 0;
  color: #333;
  font-size: 0.95em;
  line-height: 1.5;
  text-align: left;
}

.storeItem a {
  text-align: left;
  display: inline-block;
}

.storeBtn.Mac,
.storeBtn#Mac {
  background-size: 75%;
  background-position: 50%;
}

@media (max-width: 48rem) {
  .storeItem {
    padding: var(--space-s);
  }
}

@media (max-width: 30rem) {
  .storeItem {
    padding: var(--space-s);
  }

  .storeItem p {
    font-size: 0.9em;
  }
}

/* ─── Printable page ──────────────────────────────────────────────────────── */
.printable-preview-img {
  width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
}

.download-button {
  display: inline-block;
  padding: 1.125rem 2.25rem;
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 50%, #229954 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  font-size: 1.125rem;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4), 0 2px 5px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  border: 2px solid rgba(255, 255, 255, 0.2);
  margin: var(--space-m) 0;
}

.download-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.download-button:hover::before {
  left: 100%;
}

.download-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(46, 204, 113, 0.6), 0 4px 10px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.download-button-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-s);
  position: relative;
  z-index: 1;
}

.pdf-icon {
  width: 1.75rem;
  height: 1.75rem;
  fill: #fff;
}

.printable-item {
  text-align: center;
  padding: var(--space-m);
  background: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
}

.printable-item:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.printable-item h3 {
  margin: 0 0 var(--space-s) 0;
  font-size: 1.25rem;
  color: #333;
}

.printable-item .printable-preview-img {
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.printable-item a:hover .printable-preview-img {
  transform: scale(1.02);
}

.printable-item .download-button {
  width: 100%;
  max-width: 17.5rem;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  margin: var(--space-s) auto 0;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.download-button:hover .pdf-icon {
  animation: bounce 0.6s ease;
}

/* ─── MASH categories page ────────────────────────────────────────────────── */
.mash-categories-page .category-section {
  margin-bottom: 2.5rem;
}

.mash-categories-page .category-section h2 {
  border-bottom: 2px solid var(--brand-green);
  padding-bottom: 0.4em;
  margin-bottom: 1em;
}

.mash-categories-page .classic-card {
  background: linear-gradient(180deg, rgba(235, 254, 241, 0.65) 0%, rgba(211, 250, 224, 0.85) 100%);
  border: 2px solid #fff;
  border-radius: 6px;
  padding: 1.2rem 1.4rem;
  box-shadow: 0 1px 2px 1px rgba(0, 0, 0, 0.12);
}

.mash-categories-page .classic-card h3 {
  font-size: 1.05em;
  margin: 0 0 0.4em;
  color: #1d5e1a;
}

.mash-categories-page .classic-card p {
  margin: 0;
  font-size: 0.95em;
  color: #334;
}

.mash-categories-page .cta-block {
  background: linear-gradient(180deg, rgba(174, 245, 255, 0.45) 0%, rgba(174, 245, 255, 0.75) 100%);
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
  text-align: center;
  margin: 2.5rem 0;
  box-shadow: 0 1px 2px 1px rgba(0, 0, 0, 0.12);
}

.mash-categories-page .cta-block h2 {
  margin-top: 0;
  border: none;
}

.mash-categories-page .cta-buttons {
  display: flex;
  gap: var(--space-s);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-s);
}

.mash-categories-page .cta-btn {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  border-radius: 2.5rem;
  font-weight: 600;
  font-size: 1em;
  text-decoration: none;
}

.mash-categories-page .cta-btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff !important;
}

.mash-categories-page .cta-btn-secondary {
  background: #fff;
  color: var(--brand-blue);
  border: 2px solid var(--brand-blue);
}

/* ─── How to play page ────────────────────────────────────────────────────── */
html.how-to-play-mash-page {
  overflow-x: clip;
}

@supports not (overflow: clip) {
  html.how-to-play-mash-page {
    overflow-x: visible;
  }
}

body.how-to-play-mash-page .main {
  overflow: visible;
}

.section-leader-img {
  width: 100%;
  height: auto;
  display: block;
}

body.how-to-play-mash-page .frosted-glass {
  padding: var(--space-m);
}

body.editorial .hero-header-img {
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 48px -22px rgba(20, 20, 30, 0.38);
  margin-bottom: var(--space-l);
  aspect-ratio: 25 / 16;
}

body.editorial div.copy-holder > h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--ink);
  margin: 0 0 0.6rem 0;
}

body.editorial div.copy-holder > h1 + h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  color: var(--ink-soft);
  line-height: 1.3;
  margin: 0 0 1.5rem 0;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule);
  text-wrap: balance;
}

body.editorial div.copy-holder > h1 + h2::before {
  content: none;
}

body.editorial div.copy-holder p.content-meta small,
body.editorial div.copy-holder p.content-meta em {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  font-style: normal;
}

body.editorial div.content ol > li {
  padding-left: 2.8rem;
  margin-top: var(--space-l);
  padding-bottom: 0.4em;
}

body.editorial div.content ol > li::before {
  top: 0.05em;
}

body.editorial div.content ol > li > p {
  margin-bottom: 0.8em;
}

body.editorial div.content ol > li > p:first-of-type {
  font-weight: 600;
  font-size: clamp(1.05rem, 0.95rem + 0.3vw, 1.15rem);
  margin-bottom: 0.6em;
  color: var(--ink);
}

body.editorial div.content ol > li > ul {
  margin-top: 0.8em;
}

body.editorial div.content ol > li > ul li p {
  margin-bottom: 0.2em;
}

body.editorial .section-leader-img:not(.hero-header-img) {
  border-radius: 10px;
  box-shadow: 0 12px 32px -18px rgba(20, 20, 30, 0.3);
  margin: 0.8rem 0 1.4rem;
}

body.editorial .how-to-play-mash-what-you-need,
body.editorial .promoted.printable-mash-game {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1.4rem 1.5rem;
  margin: 1.5rem 0 2rem;
}

body.editorial .how-to-play-mash-what-you-need p,
body.editorial .promoted.printable-mash-game p {
  border-left: none;
  background: none;
  padding-left: 0;
  border-radius: 0;
  margin-bottom: 0.6em;
}

body.editorial .how-to-play-mash-what-you-need-title,
body.editorial .promoted.printable-mash-game h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-style: normal;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0 0 0.5rem;
}

body.editorial .promoted.printable-mash-game h3::before {
  content: none;
}

body.how-to-play-mash-page .content {
  margin-top: var(--space-l);
}

body.editorial #gasns-ph-01,
body.how-to-play-mash-page .xpromo-container {
  margin-top: var(--space-l);
  padding-top: var(--space-m);
  border-top: 1px solid var(--rule);
}

body.how-to-play-mash-page .newsletter-signup {
  margin-top: 2.5rem;
  padding-top: var(--space-l);
  border-top: 1px solid var(--rule);
}

body.editorial .how-to-play-shell {
  display: grid;
  grid-template-columns: minmax(11.5rem, 15rem) minmax(0, 1fr);
  gap: clamp(1.25rem, 4vw, 2rem);
  align-items: start;
  max-width: min(90rem, 100%);
  margin-inline: auto;
  box-sizing: border-box;
}

body.editorial .how-to-play-main {
  min-width: 0;
}

body.editorial .page-toc-aside {
  position: sticky;
  top: 5rem;
  align-self: start;
  z-index: 2;
  margin-top: var(--space-l);
  max-height: calc(100vh - 6rem);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 52rem) {
  body.editorial .page-toc-aside {
    position: static;
    top: auto;
    z-index: auto;
    margin-top: 0;
    max-height: none;
    overflow: visible;
    align-self: stretch;
  }

  body.editorial .how-to-play-shell {
    grid-template-columns: 1fr;
  }
}

body.editorial nav.page-toc {
  margin: 0 0 2.25rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: color-mix(in oklab, var(--accent) 6%, transparent);
}

@media (min-width: 52.01rem) {
  body.editorial .page-toc-aside nav.page-toc {
    margin-bottom: 0;
  }
}

body.editorial .page-toc__title {
  margin: 0 0 0.85rem;
  font-family: 'Inter', sans-serif;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

body.editorial ul.page-toc__list,
body.editorial ul.page-toc__sublist {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

body.editorial ul.page-toc__list > li {
  margin: 0.45rem 0 0;
}

body.editorial ul.page-toc__list > li:first-child {
  margin-top: 0;
}

body.editorial ul.page-toc__sublist {
  margin: 0.35rem 0 0 0.85rem;
  padding-left: 0.85rem;
  border-left: 2px solid color-mix(in oklab, var(--accent) 45%, transparent);
}

body.editorial nav.page-toc a {
  font-family: 'Inter', sans-serif;
  font-size: var(--step-0);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

@media (min-width: 52.01rem) {
  body.editorial .page-toc-aside nav.page-toc a {
    font-size: var(--step--1);
    line-height: 1.35;
  }
}

/* ─── Play MASH online (body#PlayMASH) ────────────────────────────────────── */
body#PlayMASH {
  overflow-x: hidden;
  max-width: 100vw;
}

body#PlayMASH .main.play-mash-online-free {
  max-width: var(--content-max);
  width: 100%;
  box-sizing: border-box;
  padding-inline: var(--space-s);
  padding-top: var(--space-l);
  border-radius: 0 0 12px 12px !important;
}

body#PlayMASH .gasns-r {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  min-height: 5.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

body#PlayMASH .newsletter-signup {
  padding-top: var(--space-l);
  border-top: 1px solid #ccc;
  min-height: 6.25rem;
}

body#PlayMASH .mash-game-download-button-container {
  min-height: 3.875rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

body#PlayMASH .download-printable-mash-btn-container {
  min-height: 3.125rem;
}

body#PlayMASH #AppWrapper {
  max-width: 100%;
  overflow-x: hidden;
}

body#PlayMASH .widgets {
  max-width: 100%;
  overflow-x: hidden;
  min-width: 6.875rem;
  min-height: 1.75rem;
}

body#PlayMASH header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 2.5rem;
}

body#PlayMASH .play-mash-online-free .sub-heading {
  margin-top: 0;
}

body#PlayMASH .play-mash-online-free h1 {
  margin-bottom: 0;
}

body#PlayMASH #IntentInterstitial {
  position: absolute;
  inset: 0 auto auto 0;
  right: 0;
  min-height: 37.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.9);
  background-image: url(https://mgnt-app-assets.s3.amazonaws.com/MASHPlus/mash_plus/img/skin/paper.jpg);
  background-repeat: repeat-y;
  border-radius: 12px;
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
  z-index: 10;
}

body#PlayMASH #IntentInterstitial.fade-out {
  opacity: 0;
}

body#PlayMASH #MGNT_MASH_App {
  position: relative;
  min-height: 37.5rem;
  margin-bottom: var(--space-l);
}

body#PlayMASH #MGNT_MASH_App > iframe {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out, visibility 0s 0.5s;
}

body#PlayMASH #MGNT_MASH_App > iframe.fade-in {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease-in-out, visibility 0s 0s;
}

body#PlayMASH #playButton {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 3.75rem;
  padding: 1.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-s);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  color: white;
  font-size: 2rem;
  font-weight: bold;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body#PlayMASH #playButton:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

body#PlayMASH #loadingSpinner {
  width: 3.75rem;
  height: 3.75rem;
  border: 6px solid rgba(102, 126, 234, 0.2);
  border-top-color: #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

body#PlayMASH .content {
  max-width: none;
  margin: 0;
  padding: var(--space-m);
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 40rem) {
  body#PlayMASH .gasns-r {
    min-height: 3.125rem;
  }

  body#PlayMASH header {
    flex-direction: column;
    display: none;
    visibility: hidden;
  }

  body#PlayMASH header .widgets {
    display: none;
    visibility: hidden;
  }

  body#PlayMASH .main.play-mash-online-free {
    padding-top: var(--space-s);
  }

  body#PlayMASH #MGNT_MASH_App,
  body#PlayMASH #IntentInterstitial {
    min-height: 25rem;
  }

  body#PlayMASH #playButton {
    padding: 1.25rem 2.5rem;
    font-size: 1.5rem;
    gap: var(--space-s);
  }

  body#PlayMASH #playButton .mash-icon {
    font-size: 1.375rem;
  }

  body#PlayMASH #loadingSpinner {
    width: 3.125rem;
    height: 3.125rem;
    border-width: 5px;
  }
}
