/* Muddle Quest - shared sticky top navigation */
.skip-link{ position:absolute; left:8px; top:-60px; z-index:100; background:#f6d04d; color:#2a2233; padding:8px 14px; font-weight:bold; border:3px solid #2a2233; text-decoration:none; }
.skip-link:focus{ top:8px; }
.topnav{ position:sticky; top:0; z-index:60; background:#2a2233; border-bottom:4px solid #120e1f; box-shadow:0 3px 0 rgba(0,0,0,.18); font-family:var(--mq-font), Verdana, sans-serif; }
.tn-inner{ max-width:1180px; margin:0 auto; display:flex; align-items:center; gap:10px; padding:8px 14px; }
.tn-brand{ text-decoration:none; font-weight:900; font-size:1.25rem; letter-spacing:.02em; white-space:nowrap; text-shadow:2px 2px 0 #120e1f; margin-right:auto; }
.tn-brand .tn-m{ color:#f6d04d; } .tn-brand .tn-q{ color:#7fd3f5; }
.tn-links{ list-style:none; margin:0; padding:0; display:flex; align-items:center; gap:6px; flex-wrap:nowrap; }
.tn-links a{ display:block; color:#fff; text-decoration:none; font-weight:bold; font-size:.92rem; padding:7px 11px; border:3px solid #4b3d5e; background:#3a3046; white-space:nowrap; }
.tn-links a:hover{ background:#2f8f4e; border-color:#2f8f4e; }
.tn-links a[aria-current]{ background:#fffaf0; color:#2a2233; border-color:#f6d04d; }
.tn-play{ background:#2fc79a !important; border-color:#120e1f !important; color:#fff !important; box-shadow:3px 3px 0 #120e1f; }
.tn-play:hover{ background:#3ee0b0 !important; }
.topnav a:focus-visible, .tn-toggle:focus-visible{ outline:3px solid #f6d04d; outline-offset:2px; }
.tn-toggle, .tn-play-m{ display:none; }
.tn-toggle{ background:#3a3046; color:#fff; border:3px solid #4b3d5e; padding:6px 10px; font:bold .95rem var(--mq-font), Verdana, sans-serif; cursor:pointer; align-items:center; gap:8px; }
.tn-bars, .tn-bars::before, .tn-bars::after{ display:block; width:18px; height:3px; background:#fff; position:relative; content:''; }
.tn-bars::before{ position:absolute; top:-6px; } .tn-bars::after{ position:absolute; top:6px; }
.tn-toggle[aria-expanded="true"] .tn-bars{ background:transparent; }
.tn-toggle[aria-expanded="true"] .tn-bars::before{ top:0; transform:rotate(45deg); } .tn-toggle[aria-expanded="true"] .tn-bars::after{ top:0; transform:rotate(-45deg); }
@media (max-width: 980px){
  .tn-toggle{ display:inline-flex; }
  .tn-play-m{ display:block; color:#fff; text-decoration:none; font-weight:bold; padding:7px 11px; border:3px solid #120e1f; }
  .tn-links{ display:none; position:absolute; left:0; right:0; top:100%; flex-direction:column; align-items:stretch; gap:4px; padding:10px 14px 14px; background:#2a2233; border-bottom:4px solid #120e1f; box-shadow:0 8px 16px rgba(0,0,0,.25); }
  .topnav.open .tn-links{ display:flex; }
  .tn-links a{ font-size:1.05rem; padding:11px 14px; }
  .tn-play-li{ display:none; }
}
@media (max-width: 380px){ .tn-brand{ font-size:1.05rem; } .tn-label{ display:none; } }
html{ scroll-padding-top:74px; }
@media print{ .topnav, .skip-link{ display:none !important; } }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } }
.tn-brand{ display:flex; align-items:center; line-height:0; }
.tn-logo{ display:block; height:44px; width:auto; image-rendering:auto; }
@media (max-width: 600px){ .tn-logo{ height:36px; } .tn-brand{ min-width:0; flex-shrink:1; } .tn-brand .tn-logo{ max-width:100%; height:auto; max-height:36px; } }
@media (max-width: 380px){ .tn-brand .tn-logo{ max-height:30px; } }
/* shared site footer (every page) */
footer.site-foot{ text-align:center; padding:20px 16px 34px; background:#2a2233; color:#ddd; border-top:6px solid #120e1f; }
footer.site-foot .foot-note{ max-width:700px; margin:14px auto 0; font-size:.85rem; }
footer.site-foot .copy, .copy{ margin:12px auto 0; font-size:.9rem; font-weight:bold; color:#fff; display:flex; align-items:center; justify-content:center; gap:8px; }
@media print{ footer.site-foot{ background:none; color:#333; border:0; padding:8px; } footer.site-foot .copy{ color:#333; } footer.site-foot .foot-note{ display:none; } }
/* tidier candy nav with pixel icons */
.tn-links a, .tn-play-m{ align-items:center; gap:7px; border-radius:0; border-width:3px; padding:6px 13px 6px 9px; transition:transform .08s, background .08s; }
.tn-links a:hover{ transform:translateY(-2px); }
.tn-links a:active{ transform:translateY(1px) scale(.97); }
.tn-links a{ display:flex; }
.tn-ico{ width:20px; height:20px; image-rendering:pixelated; flex:none; }
.tn-play, .tn-play-m{ background:#2fc79a !important; box-shadow:inset -3px -3px 0 #14895f, inset 3px 3px 0 #8ff3d0, 3px 3px 0 #120e1f !important; }
@media (min-width:981px) and (max-width:1500px){ .tn-inner{ gap:6px; padding:8px 10px; } .tn-links{ gap:4px; } .tn-links a{ font-size:.78rem; padding:5px 7px 5px 5px; gap:4px; } .tn-ico{ width:16px; height:16px; } .tn-logo{ max-width:180px; height:auto; } }
@media (max-width: 980px){
  .tn-play-m{ display:flex; }
  .topnav.open .tn-links{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:8px; }
  .tn-links a{ border-radius:0; padding:10px 10px; min-height:48px; white-space:normal; line-height:1.15; font-size:.98rem; }
  .tn-ico{ width:24px; height:24px; }
}
@media (max-width: 340px){ .topnav.open .tn-links{ grid-template-columns:1fr; } }
@media (prefers-reduced-motion: reduce){ .tn-links a{ transition:none; } .tn-links a:hover, .tn-links a:active{ transform:none; } }
/* big candy Home button on the inner pages */
.tn-links a.tn-home{ background:#ffd23f !important; color:#2a2233 !important; font-size:1.02em; padding:7px 16px 7px 11px; border:3px solid #120e1f !important; box-shadow:inset -3px -3px 0 #c4860c, inset 3px 3px 0 #fff6c8, 3px 3px 0 #120e1f; }
.tn-links a.tn-home .tn-ico{ width:20px; height:20px; }
.tn-home-m{ display:none; }
@media (max-width:980px){
  .tn-home-m{ display:flex; align-items:center; gap:6px; margin-left:auto; color:#2a2233; text-decoration:none; font-weight:bold; padding:6px 12px 6px 9px; border:3px solid #120e1f; border-radius:0;
    background:#ffd23f; box-shadow:inset -3px -3px 0 #c4860c, inset 3px 3px 0 #fff6c8, 3px 3px 0 #120e1f; }
  .tn-home-m + .tn-play-m{ margin-left:0; }
}
@media (max-width:380px){ .tn-home-m{ padding:5px 8px; font-size:.85rem; } }

.foot-more{ display:flex; flex-wrap:wrap; justify-content:center; gap:8px 18px; margin:0 0 16px; }
.foot-more a{ color:#fff; font-weight:800; text-decoration:none; border:3px solid #4b3d5e; background:#3a3046; padding:6px 12px; border-radius:0; }
.foot-more a:hover, .foot-more a:focus-visible{ background:#2f8f4e; border-color:#2f8f4e; outline:3px solid #f6d04d; outline-offset:2px; }

/* Keep the longer nav (Home + Real Life + Rate it) inside an iPad landscape screen. */
@media (min-width:981px) and (max-width:1200px){
  .tn-inner{ gap:4px; padding:6px 8px; max-width:100%; }
  .tn-links{ gap:2px; }
  .tn-links a{ font-size:.7rem; padding:4px 5px 4px 4px; gap:3px; }
  .tn-ico{ width:14px; height:14px; }
  .tn-logo{ max-width:130px; height:auto; }
  .tn-links a.tn-home{ font-size:.7rem; padding:4px 8px 4px 5px; }
  .tn-links a.tn-home .tn-ico{ width:14px; height:14px; }
}
