:root{
  --bg: #3a1b86;
  --bg2:#2b0f67;

  --ink: rgba(255,255,255,.92);
  --inkDim: rgba(255,255,255,.72);

  --frameOuter: rgba(40, 20, 90, .65);
  --radius: 18px;
  --radiusIn: 14px;

  --shadow: 0 18px 44px rgba(0,0,0,.30);
  --shadowSoft: 0 10px 24px rgba(0,0,0,.22);

  /* Solid card color to avoid mobile gradient mismatch */
  --cardSolid: #3b247a;

  /* Footer a touch darker than tiles */
  --footerSolid: #2f1a66;

  /* Highlight layer on top of solid blocks */
  --cardHi: linear-gradient(180deg, rgba(255,255,255,.10), rgba(0,0,0,.12));
  --cardHiSoft: linear-gradient(180deg, rgba(255,255,255,.12), rgba(0,0,0,.10));
}

*{ box-sizing: border-box; }
html, body { height: 100%; }

body{
  margin: 0;
  color: var(--ink);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(1200px 700px at 20% 10%, rgba(255,255,255,.10), transparent 60%),
    radial-gradient(900px 600px at 80% 30%, rgba(255,255,255,.08), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
}

.container{
  width: min(1100px, 100% - 40px);
  margin: 0 auto;
}

/* Skip link */
.skipLink{
  position: absolute;
  left: -999px;
  top: 12px;
  padding: 10px 12px;
  background: rgba(0,0,0,.75);
  color: white;
  border-radius: 10px;
  text-decoration: none;
}
.skipLink:focus{ left: 12px; z-index: 999; }

/* iOS tap highlight */
a, .tile{ -webkit-tap-highlight-color: transparent; }

/* ===== Header ===== */
.siteHeader{ padding: 22px 0 10px; }

.headerInner{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.brandLeft{
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 320px;
}

.heroFrame{
  width: 110px;
  height: 110px;
  padding: 6px;
  border-radius: var(--radius);
  border: 5px solid var(--frameOuter);
  background: var(--cardHiSoft), var(--cardSolid);
  box-shadow: var(--shadowSoft), inset 0 1px 0 rgba(255,255,255,.18);
  overflow: hidden;
}

.heroThumb{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 12px;
  image-rendering: auto;
}

.brandMark{
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative; /* for mobile hamburger positioning */
}

.signatureWrap{
  position: relative;
  display: inline-block;
  padding-right: 26px;
  padding-bottom: 10px;
}
.signatureWrap{
  position: relative; /* keep */
  display: inline-block;
  padding-right: 26px;
  padding-bottom: 10px;
  isolation: isolate; /* keeps shimmer layered cleanly */
}

/* Subtle shimmer overlay */
/* One-time feathered shimmer */
.signatureWrap::after{
  content:"";
  position:absolute;
  inset:-8px -12px -12px -12px;
  pointer-events:none;
  z-index:2;

  background:
    linear-gradient(
      110deg,
      transparent 0%,
      rgba(255,245,205,0.00) 38%,
      rgba(255,245,205,0.32) 46%,
      rgba(255,245,205,0.00) 54%,
      transparent 100%
    );

  /* Feather top & bottom */
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 18%,
    black 82%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 18%,
    black 82%,
    transparent 100%
  );

  mix-blend-mode: screen;
  filter: blur(0.45px);
  opacity:0.65;

  transform: translateX(-45%);
  animation: sigShimmerOnce 2.6s ease-out forwards;
}
@keyframes sigShimmerOnce{
  0%{
    opacity:0;
    transform:translateX(-55%);
  }
  20%{
    opacity:0.7;
  }
  100%{
    opacity:0;
    transform:translateX(65%);
  }
}


/* ===== Signature SVG + nib styling (KEEP) ===== */
.sigSvg{
  width: 460px;
  max-width: 100%;
  height: auto;
  overflow: visible;
  display: block;
}
/* Glow behind ink — softer, wider but lighter */
.sigGlowStroke{
  fill: none;
  stroke: rgba(255, 242, 190, 0.55); /* warm light yellow */
  stroke-width: 8;                 /* thinner than before, still luminous */
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: blur(1px);
}


/* Your SVG uses .sigStroke for the ink paths */
.sigInkStroke,
.sigStroke {
  fill: none;
  stroke: #6C3BAA;
  stroke-width: 6;          /* was thicker */
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sigInkFill{ fill: rgba(255,255,255,.95); opacity: 0; }

.sigNib{ opacity: 1; transform-origin: center; }
#nibDot{ fill: rgba(255,255,255,.92); filter: drop-shadow(0 0 6px rgba(255,255,255,.45)); }
#nibTip{ fill: rgba(255,255,255,.95); opacity: .95; }

.signatureSparkle{
  position: absolute;
  right: 0;
  bottom: 14px;
  font-size: 18px;
  opacity: .12;
  color: rgba(255,255,255,.92);
  filter: drop-shadow(0 0 7px rgba(255,255,255,.55));
  animation: sparkleTwinkle 4.5s ease-in-out infinite;
}

@keyframes sparkleTwinkle{
  0%, 70%, 100% { opacity: .12; transform: scale(.95) rotate(0deg); }
  75% { opacity: .95; transform: scale(1.2) rotate(10deg); }
}

/* ===== Desktop nav: bullet links ===== */
.topNav{
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0;
  margin: 0;
  padding: 0;
}

.topNav a{
  background: transparent;
  border: 0;
  padding: 0;
  border-radius: 0;
  font-weight: 900;
  opacity: .92;
  color: rgba(255,255,255,.90);
  text-decoration: none;
  line-height: 1.2;
}

.topNav a + a{
  margin-left: 14px;
  position: relative;
}

.topNav a + a::before{
  content: "•";
  position: absolute;
  left: -9px;
  top: 0;
  color: rgba(255,255,255,.55);
}

.topNav a:hover{
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.topNav a[aria-current="page"]{
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===== Main / Home Tiles ===== */
.siteMain{ padding: 18px 0 34px; }

.tileGrid{
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.tile{
  text-decoration: none;
  color: var(--ink);
  position: relative;
}

/* Tooltip (desktop hover/focus) */
.tile[data-tip]::after{
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  top: -10px;
  transform: translate(-50%, -100%);
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.92);
  font-size: 12px;
  font-weight: 800;
  padding: 8px 10px;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
  box-shadow: 0 14px 26px rgba(0,0,0,.25);
  backdrop-filter: blur(8px);
  z-index: 10;
}
.tile[data-tip]::before{
  content:"";
  position: absolute;
  left: 50%;
  top: -10px;
  transform: translate(-50%, -6px);
  width: 10px;
  height: 10px;
  background: rgba(0,0,0,.55);
  border-left: 1px solid rgba(255,255,255,.18);
  border-top: 1px solid rgba(255,255,255,.18);
  rotate: 45deg;
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
  z-index: 9;
}
.tile:hover::after,
.tile:focus-visible::after{ opacity: 1; transform: translate(-50%, -110%); }
.tile:hover::before,
.tile:focus-visible::before{ opacity: 1; transform: translate(-50%, 0); }
@media (hover: none){
  .tile[data-tip]::before,
  .tile[data-tip]::after{ display: none; }
}

.tileFrame{
  height: 190px;
  border-radius: var(--radius);
  border: 5px solid var(--frameOuter);
  background: var(--cardHi), var(--cardSolid);
  box-shadow: var(--shadow);
  padding: 10px;
  overflow: hidden;
  position: relative;
  transition: transform .18s ease, box-shadow .18s ease;
  transform: translateZ(0);
}

/* inner bevel */
.tileFrame::before{
  content:"";
  position: absolute;
  inset: 10px;
  border-radius: var(--radiusIn);
  border: 2px solid rgba(255,255,255,.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
  pointer-events: none;
}

/* hover highlight ring */
.tileFrame::after{
  content:"";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 0 rgba(255,255,255,0);
  transition: box-shadow .18s ease;
  pointer-events: none;
}

/* inner layout */
.tileLayout{
  position: absolute;
  inset: 10px;
  border-radius: var(--radiusIn);
  padding: 18px 18px;
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 14px;
  align-items: center;
}

.tileCopy{ min-width: 0; }

.tileTitle{
  font-family: "Lato", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: .01em;
  font-size: 28px;
  line-height: 1.12;
  margin: 0 0 10px;
  color: rgba(255,255,255,.95);
}

.tileSub{
  margin: 0;
  font-family: "Lato", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,.75);
  line-height: 1.35;
}

.tileIconWrap{
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.tile{ --iconLift: 0px; }
.tileArt{
  width: 100%;
  max-width: 140px;
  max-height: 140px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.18));
  transition: transform .22s ease;
  transform: translateY(var(--iconLift));
  pointer-events: none;
}

/* Hover */
.tile:hover .tileFrame,
.tile:focus-visible .tileFrame{
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgba(0,0,0,.34);
}
.tile:hover .tileFrame::after,
.tile:focus-visible .tileFrame::after{
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.14);
}
.tile:hover .tileArt,
.tile:focus-visible .tileArt{
  transform: translateY(-2px) rotate(-0.4deg) scale(1.03);
}

.tile:focus-visible{
  outline: 3px solid rgba(255,255,255,.35);
  outline-offset: 6px;
  border-radius: 14px;
}

/* ===== Drift animations (optional) ===== */
.drift1{ animation: driftA 6.8s ease-in-out infinite; }
.drift2{ animation: driftB 7.6s ease-in-out infinite; }
.drift3{ animation: driftC 7.1s ease-in-out infinite; }
.drift4{ animation: driftD 8.0s ease-in-out infinite; }

@keyframes driftA{ 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-3px);} }
@keyframes driftB{ 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-2px) translateX(1px);} }
@keyframes driftC{ 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-3px) translateX(-1px);} }
@keyframes driftD{ 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-2px);} }

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .signatureSparkle,
  .tileArt{ animation: none !important; transition: none !important; }
}

/* ===== Mobile hamburger menu ===== */
.hamburgerBtn{
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
  cursor: pointer;
}

.hamburgerBtn:focus-visible{
  outline: 3px solid rgba(255,255,255,.35);
  outline-offset: 6px;
}

.hamburgerIcon{
  width: 26px;
  height: 2px;
  background: rgba(255,255,255,.85);
  border-radius: 999px;
  box-shadow:
    0 -7px 0 rgba(255,255,255,.85),
    0  7px 0 rgba(255,255,255,.85);
}

/* Overlay menu */
.mobileMenu{
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  grid-template-columns: 1fr;
  pointer-events: none;
}
.mobileMenu.open{ pointer-events: auto; }

.mobileMenuBackdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.25); /* less dim */
  opacity: 0;
  transition: opacity .16s ease;
}
.mobileMenu.open .mobileMenuBackdrop{ opacity: 1; }

.mobileMenuPanel{
  position: absolute;
  right: 12px;
  left: 12px;
  top: 132px;
  border-radius: 18px;
  border: 2px solid rgba(255,255,255,.16);
  background: var(--cardHi), var(--cardSolid);
  box-shadow: 0 30px 80px rgba(0,0,0,.40);
  overflow: hidden;
  transform: translateY(-8px);
  opacity: 0;
  transition: transform .16s ease, opacity .16s ease;
}
.mobileMenu.open .mobileMenuPanel{
  transform: translateY(0);
  opacity: 1;
}

.mobileMenuHeader{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 14px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.mobileMenuTitle{
  font-weight: 950;
  letter-spacing: .02em;
  color: rgba(255,255,255,.92);
}
.mobileMenuClose{
  border: 0;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.92);
  width: 38px;
  height: 38px;
  border-radius: 12px;
  cursor: pointer;
}
.mobileMenuLinks{
  display: flex;
  flex-direction: column;
  padding: 10px 12px 14px;
  gap: 6px;
}
.mobileMenuLinks a{
  text-decoration: none;
  color: rgba(255,255,255,.92);
  font-weight: 900;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.16);
}
.mobileMenuLinks a:hover{
  background: rgba(255,255,255,.10);
  text-decoration: underline;
  text-underline-offset: 3px;
}

html.menuOpen, body.menuOpen{
  overflow: hidden;
  height: 100%;
}

/* ===== Footer ===== */
.siteFooter{
  padding: 14px 0 18px;
  position: relative;
}
.siteFooter::before{
  content:"";
  display:block;
  height: 1px;
  background: rgba(255,255,255,.14);
  max-width: 1100px;
  margin: 0 auto 14px;
}

.footerInner{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 5px solid var(--frameOuter);
  background: var(--cardHi), var(--footerSolid);
  box-shadow: var(--shadowSoft), inset 0 1px 0 rgba(255,255,255,.14);
}

.footerNav{
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: nowrap;         /* one line */
  overflow-x: auto;          /* if narrow, scroll instead of wrapping */
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}
.footerNav a{
  color: rgba(255,255,255,.90);
  text-decoration: none;
  font-weight: 900;
  opacity: .9;
  white-space: nowrap;
}
.footerNav a:hover{
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footerSocial{
  display: flex;
  align-items: center;
  gap: 14px;
}

.socialLink{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.92);
  text-decoration: none;
  font-weight: 900;
  transition: transform .14s ease, filter .14s ease, opacity .14s ease;
}

.smIcon{ width: 18px; height: 18px; flex: 0 0 18px; color: rgba(255,255,255,.92); }

.socialLink:hover,
.socialLink:focus-visible{
  transform: translateY(-1px);
  filter: drop-shadow(0 0 10px rgba(255,255,255,.22));
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.socialLink:focus-visible{
  outline: 3px solid rgba(255,255,255,.30);
  outline-offset: 6px;
  border-radius: 12px;
}

.footerBottom{ margin-top: 10px; }
.copyright{
  color: rgba(255,255,255,.70);
  font-size: 13px;
  padding-left: 4px;
}

/* ===== Responsive ===== */
@media (max-width: 920px){
  .headerInner{ flex-direction: column; align-items: flex-start; }
  .topNav{ justify-content: flex-start; }
}

@media (max-width: 740px){
  .tileGrid{ grid-template-columns: 1fr; max-width: 520px; }
  .tileFrame{ height: 180px; }
  .tileLayout{ grid-template-columns: 1fr 140px; }
  .tileTitle{ font-size: 26px; }
  .footerInner{ flex-direction: column; align-items: flex-start; }
  .footerSocial{ justify-content: flex-start; }
}

/* Mobile fine-tune */
@media (max-width: 520px){
  /* Show hamburger on mobile; hide desktop nav */
  .topNav{ display:none; }
  .hamburgerBtn{ display: inline-grid; place-items: center; }

  /* put hamburger below signature, right aligned */
  @media (max-width: 520px){
  .hamburgerBtn{
    position: absolute;
    right: 14px;
    top: 65px; /* ↓ moves it a few px below the signature */
    z-index: 50;
  }


  .container{ width: calc(100% - 24px); }

  .heroFrame{
    width: 92px;
    height: 92px;
    padding: 5px;
    border-width: 4px;
    border-radius: 16px;
  }
  .heroThumb{ border-radius: 10px; }

  .brandLeft{ width: 100%; min-width: 0; gap: 12px; }

  .sigSvg{ width: 380px; }

  .tileFrame{
    height: auto;
    min-height: 170px;
    padding: 10px;
    border-width: 4px;
    border-radius: 16px;
    box-shadow: 0 14px 30px rgba(0,0,0,.28);
  }

  /* Mobile tiles: pin icon top-right so it never drops under the H1 */
  .tileLayout{
    position: relative;
    display: block;
    padding: 16px;
  }
  .tileCopy{
    padding-right: 112px; /* reserve space for pinned icon */
  }

  .tileTitle{ font-size: 22px; }

  .tileIconWrap{
    position: absolute;
    top: 14px;
    right: 14px;
    width: 88px;
    height: 88px;
    display: grid;
    place-items: start end;
    pointer-events: none;
  }

  .tileArt{
    max-width: 88px;
    max-height: 88px;
    width: auto;
    height: auto;
    object-fit: contain;
    transform: none !important;
    animation: none !important; /* stop drift on small screens */
    filter: drop-shadow(0 10px 16px rgba(0,0,0,.18));
  }

  .footerInner{
    border-width: 4px;
    padding: 12px 14px;
    width: 100%;
  }
  .footerNav{ width: 100%; }
  .footerSocial{ width: 100%; justify-content: flex-start; }
}
	/* ===== Mobile footer: socials only ===== */
/* ===== Mobile footer refinement ===== */
@media (max-width: 600px){

  .footerHello{
    font-size: 14px;
    font-weight: 800;
    color: rgba(255,255,255,.75);
    letter-spacing: .02em;
    margin-bottom: 10px;
  }

  .footerNav{
    display: none;
  }

  .footerSocial{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    align-items: start;
  }

  .socialLink{
    white-space: normal;
    justify-content: flex-start;
  }
}


}

/* Footer nav removed */
.footerNav{ display:none !important; }

/* ===== Footer (final locked) ===== */
:root{
  --footerSolid: #2f1a63; /* slightly darker than tiles */
  --footerHi: linear-gradient(180deg, rgba(255,255,255,.08), rgba(0,0,0,.18));
}

.siteFooter{
  position: relative;
  padding: 18px 0 26px;
}

/* subtle divider above footer */
.siteFooter::before{
  content:"";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  opacity: .65;
  pointer-events: none;
}

.footerInner{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 5px solid var(--frameOuter);
  background: var(--footerHi), var(--footerSolid);
  box-shadow: var(--shadowSoft), inset 0 1px 0 rgba(255,255,255,.14);
}

.footerHello{
  font-weight: 950;
  letter-spacing: .02em;
  color: rgba(255,255,255,.92);
}

.footerSocial{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.footerSocial .socialLink{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.footerBottom{ margin-top: 10px; }
.copyright{
  color: rgba(255,255,255,.70);
  font-size: 13px;
  padding-left: 4px;
}
/* ==============================
   Games Page – Magical Feature
============================== */

.gameFeature {
  margin: 40px auto 70px;
  max-width: 900px; /* narrower than slideshow */
}

.gameFeatureLink {
  text-decoration: none;
  color: inherit;
  display: block;
}

.gameFeatureStage {
  position: relative;
  height: 420px;
  border-radius: 18px;
  overflow: hidden;
  background: #1a1a1a;
  box-shadow: 0 18px 45px rgba(0,0,0,.35);
}

/* Background image */
.gameFeatureImage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
}

/* Fireflies canvas */
.firefliesCanvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Quote overlay */
.gameQuote {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90%;
  text-align: center;
  padding: 16px 20px;
  border-radius: 14px;

  background: rgba(0,0,0,.45);
  backdrop-filter: blur(4px);
  color: #ffd966; /* warm magical yellow */
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
}

.gameQuote p {
  margin: 0 0 6px;
  font-size: 18px;
  font-style: italic;
  line-height: 1.3;
}

.gameQuote cite {
  font-size: 14px;
  opacity: 0.9;
}

/* Hover affordance */
.gameFeatureLink:hover .gameFeatureImage {
  transform: scale(1.02);
  transition: transform .4s ease;
}

/* Mobile */
@media (max-width: 720px) {
  .gameFeatureStage {
    height: 340px;
  }

  .gameQuote p {
    font-size: 16px;
  }
}


/* Mobile: show only socials in a 2-col grid + prevent email cut-off */
@media (max-width: 520px){
  .footerInner{ padding: 14px 14px; border-width: 4px; }
  .footerHello{ font-size: 14px; }
  .footerSocial{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 10px;
    align-items: start;
  }
  .footerSocial .socialLink{
    width: 100%;
    justify-content: flex-start;
    padding: 10px 10px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.14);
    overflow: hidden;
  }
  .footerSocial .socialLink span{
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
/* ============================= */
/* Illustration Page Slideshow  */
/* Scoped – does NOT affect site */
/* ============================= */

/* ===== Page Slideshow (safe + isolated) ===== */
.pageSlideshow{
  margin: 40px auto 60px;
  max-width: min(920px, 100%);
}

.slideshowStage{
  position: relative;
  height: clamp(320px, 52vh, 420px);
  border-radius: 18px;
  background: #bfbfbf; /* neutral fill behind “contain” images */
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(0,0,0,.35);
}

.pageSlideshow figure.slide{
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.pageSlideshow figure.slide.active{
  opacity: 1;
  pointer-events: auto;
}

.pageSlideshow figure.slide img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* if you wrap images in links (games / instructional) */
.pageSlideshow .slideLink{
  display: block;
  width: 100%;
  height: 100%;
}

.pageSlideshow figure.slide figcaption{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 14px;
  font-size: 14px;
  color: rgba(255,255,255,.92);
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.45));
}

.pageSlideshow .slideArrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  pointer-events: auto;

  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(0,0,0,.30);
  color: rgba(255,255,255,.92);
  font-size: 28px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.pageSlideshow .slideArrow.prev{ left: 14px; }
.pageSlideshow .slideArrow.next{ right: 14px; }

.pageSlideshow .slideDots{
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}
.pageSlideshow .slideDots .dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.12);
  cursor: pointer;
}
.pageSlideshow .slideDots .dot.is-active{
  background: rgba(255,255,255,.75);
  border-color: rgba(255,255,255,.45);
}

@media (max-width: 720px){
  .pageSlideshow{ margin: 28px auto 46px; }
  .slideshowStage{ height: clamp(280px, 48vh, 380px); }
  .pageSlideshow .slideArrow{ width: 44px; height: 44px; }
}
/* ==============================
   Games Page – Magical Feature (Enhanced)
============================== */

.gameFeature{
  margin: 40px auto 70px;
  max-width: 900px; /* less wide, keeps images safe */
}

.gameFeatureLink{
  text-decoration: none;
  color: inherit;
  display: block;
}

.gameFeatureStage{
  position: relative;
  height: 420px;
  border-radius: 18px;
  overflow: hidden;
  background: #101010;
  box-shadow: 0 18px 45px rgba(0,0,0,.35);
}

/* background image */
.gameFeatureImage{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05) translate(0,0);
  transition: transform 220ms ease;
  will-change: transform;
}

/* fireflies canvas */
.firefliesCanvas{
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* quote overlay */
.gameQuote{
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(620px, 92%);
  text-align: center;
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(0,0,0,.42);
  backdrop-filter: blur(4px);
  color: #ffd966;
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
}

.gameQuote p{
  margin: 0 0 6px;
  font-size: 18px;
  font-style: italic;
  line-height: 1.3;
}

.gameQuote cite{
  font-size: 14px;
  opacity: 0.92;
}

/* “Enter the woods →” micro-caption */
.enterWoods{
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255, 217, 102, .95);
  font-size: 13px;
  letter-spacing: .2px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
}
/* Mobile tap hint */
.enterWoods.isShow{
  opacity: 1 !important;
  transform: translateY(0) !important;
}


.gameFeatureLink:hover .enterWoods{
  opacity: 1;
  transform: translateY(0);
}

/* Audio toggle */
.audioToggle{
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.35);
  color: rgba(255,255,255,.92);
  cursor: pointer;
  user-select: none;
}

.audioToggle:hover{
  background: rgba(0,0,0,.45);
}

.audioToggle.isOn{
  border-color: rgba(255,217,102,.55);
  box-shadow: 0 0 0 2px rgba(255,217,102,.18) inset;
}

.audioIcon{ font-size: 16px; line-height: 1; }
.audioText{ font-size: 13px; opacity: .92; }

/* Mobile */
@media (max-width: 720px){
  .gameFeatureStage{ height: 340px; }
  .gameQuote p{ font-size: 16px; }
  .enterWoods{ right: 12px; top: 12px; }
  .audioToggle{ left: 12px; top: 12px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .gameFeatureImage{ transition: none; }
  .enterWoods{ transition: none; }
}

