	:root {
  --vh100: 100svh;
  --vh90: 90svh;
  --vh85: 85svh;
  --vh70: 70svh;
}
@supports not (height: 1svh) {
  :root {
    --vh100: 100vh;
    --vh90: 90vh;
    --vh85: 85vh;
    --vh70: 70vh;
  }
}

  :root {   --sitemaxwidth: 1280px;
            --primary-color: #1b6698;
            --secondary-color: #145078;
			--pic-border-color: #999;
            --accent-color: #e8f2f8;
			--background-colour: #f9f9f9;
			--logo-colour: #FFF;
            --text-color: #333;
            --light-gray: #e6ebf1;
            --border-radius: 8px;
			--border-colour: #C0C0C0;
			--div-background-colour: #F7F7F7;
			--main-text-colour: #333;
            --text-color: #000;
			--gridbox-weight:400;
            --text-light: #666;
            --shadow: 0 2px 10px rgba(0,0,0,0.1);
            --shadow-hover: 0 8px 25px rgba(27, 102, 152, 0.25);
        }
		
		/* ========= BASE / RESET ========= */
html { box-sizing: border-box; 
       font-size: 16px;                 /* 1rem = 16px */
      -ms-text-size-adjust: 100%;      /* old IE/Edge mobile */
      -webkit-text-size-adjust: 100%;  /* iOS/Android */
}

* { margin: 0; padding: 0; box-sizing: border-box; }


 body {    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
           line-height:1.5;
            color: var(--text-color);
            background-color: var(--background-colour);
			overflow-x:hidden;
            overflow-y:auto;
        }
		
#amazonshop { scroll-margin-top: 80px; }   /* match your header height */
html { scroll-behavior: smooth; }    /* if Firefox feels too “snappy”, set to auto and use JS */

		
.hero img {
  width: 100%;          /* scale to viewport */
  height: auto;         /* preserve ratio */
/*  aspect-ratio: 6 / 1;  /* belt-and-braces, modern browsers */
  display: block;
}

/* On mobile, stack all grid items by default */
.grid > * {grid-column: span 12; }
			
h1 {font-size:1.4em; }
h2, h3 {font-size:1.2em; }
h4, h5, h6 {font-size:1.0em; }		

.main-container {
            width: 100%;
            max-width: var(--sitemaxwidth);
            margin: 0 auto;
            padding: 0 1rem;
        }
		
		
ol, ul { list-style:none; }
li { text-align:left; padding-left:15px; }


img, picture { display:block; max-width:100%; height:auto; }

p {
  line-height: 1.6;
  margin-top: 0; /* Good practice to reset top margin */
  margin-bottom: 1em; /* Creates the space */
  color: var(--main-text-colour)
}


h1, h2, h3, h4, h5, h6 { text-align:left; font-family: Georgia, "Times New Roman", Times, serif; font-weight:normal; }
h1 {font-size:1.8em;}
h2, h3 {font-size:1.4em;}
h4, h5, h6 {font-size:1.2em;}

/* ---------- HEADER & NAVIGATION ----------- */
.main-header {
            background-color: #1b6698;
			color:#FFF;
            padding: 0.6rem 0; /* controls the height of the header area it was 1 */
            border-bottom: 1px solid var(--light-gray);
            position: relative;
            top: 0;
            z-index: 100;
        }
        
.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--sitemaxwidth);
  margin: 0 auto;
  padding: 0 1rem; /* a little breathing room left/right */
  box-sizing: border-box;
}
		
.main-header:after {content:""; display:table; clear:both;}

		
.logo {font-size: 1.2rem; font-weight: 600; color: var(--logo-colour); padding: 0 0 0 25px; }
		
.logo a { color:#fff; text-decoration:none; }

/* scoll to top button */
#myBtn {
  display:none;
  position:fixed;
  bottom:60px;
  right:30px;
  z-index:99;
  font-size:18px;
  border:none;
  outline:none;
  background-color:#666;
  color:white;
  cursor:pointer;
  padding:15px;
  border-radius:4px;
}
#myBtn:hover { background-color:#555; }
/* end of scroll to top button */
   
/* Box Styling */
.row {margin-top: .8rem; padding-top: .8rem;  }
.row h3 {margin-bottom: 1rem;  grid-column: 1 / -1; /* Make title span all 12 columns */  }

.grid-box { background-color: var(--div-background-colour);
            border: 0.333px solid var(--border-colour);
            padding: 1rem;
            border-radius: var(--border-radius);
            text-align: left;
            font-weight: var(--gridbox-weight);
            color: var(--main-text-colour);
			margin-bottom: 1rem;
        }

/* ===== Breadcrumbs ===== */
.page-title{margin:10px 0 6px;font-size:1.2rem}
.breadcrumbs{font-size:.92rem;color:#2d3a40;margin:0 0 12px}
.breadcrumbs a{color:#2d3a40}

/* just extra styling  old background:#0b1223; #f7f7f7 #b3cde0  */

.background-1 {background:#eff5f8;}
.background-2 {background:#fff;}
.bigboldmiddle {font-size:1rem; color:#3b5998; font-style:italic;text-shadow: 0 1px 2px rgba(0,0,0,.4); font-weight:bold; text-align:center;padding-top: 0.3rem;padding-bottom:0.6rem;}

/* Wrapper gives a positioning context */
.img-card {
  position: relative;
  display: inline-block;  /* or block, up to you */
  max-width: 100%;
}
.img-card picture,
.img-card img {
  display: block;
  width: 100%;
  height: auto;
}

/* Overlay Share button (pill, subtle lift) */
.share-overlay-btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;

  padding: 0.45rem 3.5rem;
  font: 600 14px/1 Arial, sans-serif;
  border: none;
  border-radius: 20px;
  background: linear-gradient(135deg, #1da1f2, #0d8ddb); /* tweak to taste */
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  transition: background 0.25s, transform 0.15s;
}
.share-overlay-btn:hover { background: linear-gradient(135deg, #1a8cd8, #0b6fa5); transform: translateY(-2px); }
.share-overlay-btn:active { transform: translateY(0); box-shadow: 0 1px 3px rgba(0,0,0,0.3); }

/* Modal basics (DW-friendly, no flex/grid) */
.share-modal {
  display: none; position: fixed; z-index: 9999;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,.58);
}
.share-modal-content {
  background: #fff; margin: 8% auto; padding: 14px; border-radius: 12px;
  width: 92%; max-width: 420px; box-shadow: 0 10px 26px rgba(0,0,0,.25);
}
.share-modal-close { float: right; border: none; background: none; font-size: 18px; cursor: pointer; }
#share-modal-title { margin: 4px 0 10px; font-size: 18px; }
.share-hint { font: 12px/1.4 Arial, sans-serif; color:#555; margin-top: .5rem; }

/* Give space between your share buttons (if not already) */
#share-row .btn { display:inline-block; margin: 4px 6px 4px 0; }

/* Optional: tiny toast (if your share script uses it) */
.toast {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%) translateY(8px);
  padding: .6rem .9rem; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12);
  background: #111; color: #fff; opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s;
  font: 600 14px/1.2 Arial, sans-serif; z-index: 10000;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* end of social share css */


/* large image fig and caption */

/* Figure + caption (unchanged except tightened) */
figure { margin: 0; padding: 0; }
figure img,
figure picture {
  display: block;
  max-width: 100%;
  height: auto;
  border-top-right-radius: 8px;
  border-top-left-radius: 8px;
}
figcaption {
  font-size: 0.85em;
  font-weight: 400;
  line-height: 1.4;
  color: #555;
  background: #f8f8f8;
  padding: 6px 0;
  border-top: 1px solid #ddd;
  text-align: center;
  border-bottom-right-radius: 8px;
  border-bottom-left-radius: 8px;
}

/* end of fig and caption */

/* added configurations */

.text-middle {text-align:center; font-style:italic; font-size: 0.95rem;}
.text-padding {text-align:left; font-style:italic; font-size: 1.05rem;margin-top:12px; margin-bottom:12px;}
.picturefill { margin: -16px -16px 0 -16px; padding: 0; border-top-left-radius: 8px; border-top-right-radius: 8px;}
.picturefill img { width:100%;  border-top-left-radius: 8px; border-top-right-radius: 8px;}

.picturefill2 { margin: -16px -16px 0 -16px; padding: 0;}
.picturefill2 img { width:100%;}

.picturefill3 {margin: 0; padding:0; }
.picturefill3 img { width:100%; border-top-left-radius: 8px; border-top-right-radius: 8px;}


.maxheight {max-height:800px;}

.hidebutton {display:none;}
/* Generic guardrails */
.ad-slot { 
  display:block;          /* prevent inline collapsing */
  min-width: 100%;        /* avoids odd wrapping in narrow grids */
  line-height:0;          /* no extra text height */
}
.adsbygoogle { 
  display:block !important; 
}
.ad-resp { min-height:100px; } 
@media (min-width:480px){ .ad-resp { min-height:250px; } }
@media (min-width:768px){ .ad-resp { min-height:280px; } }

/* light placeholder until iframe arrives */
.ad-slot { background:#f8fafc; border:1px dashed #e5e7eb; }
.ad-slot:has(iframe) { background:transparent; border:0; }
.ad-slot-minheight600 {min-height:600px;}

.noradius img {border-radius:0;padding-top:20px; padding-bottom:20px;}

/* end of specials */

/* modal jigsaw */


 /* Jigsaw Help Section Specific Styles */
  /* added flex via ChatGPT suggestion */
 
 .tips-header {
  display: flex;
  align-items: center;
  justify-content: space-between; /* or remove this if you prefer the auto-margin trick */
  gap: 1rem;
  flex-wrap: wrap; /* lets it wrap on narrow screens instead of jumping under awkwardly */
}

.tips-header p { margin: 0; } /* prevent the default <p> top/bottom margins from forcing a wrap */

        .jigsaw-help-brief {
            background: #f8f9fa;
            border-left: 4px solid #667eea;
         
            border-radius: 8px;
        }

        .jigsaw-help-brief h3 {
            margin-top: 0;
            color: #444;
            font-size: 1.2em;
        }

        .jigsaw-help-brief p {
            margin: 10px 0;
            color: #666;
        }

        .jigsaw-help-brief ul {
            margin: 10px 0;
            padding-left: 20px;
            color: #666;
        }

        .jigsaw-help-brief li {
            margin: 5px 0;
        }

        .jigsaw-help-open-btn {
  /* display: inline-block;  <-- remove */
  /* clear: none;            <-- remove */
  margin-left: auto;          /* keep if NOT using space-between */
  margin-top: 0;              /* align nicely with the text */
  margin-bottom:1rem;
  flex: 0 0 auto;             /* don’t shrink into weird sizes */
  white-space: nowrap;        /* keeps label on one line */

  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  padding: 10px 24px;
  font-size: 16px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

        .jigsaw-help-open-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
        }

        /* Jigsaw Help Modal Specific Styles */
        .jigsaw-help-modal {
            display: none;
            position: fixed;
            z-index: 99999;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.5);
            animation: jigsawFadeIn 0.3s;
        }

        .jigsaw-help-modal.active {
            display: block;
        }

        @keyframes jigsawFadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .jigsaw-help-modal-content {
            background-color: #fefefe;
            margin: 50px auto;
            padding: 0;

            width: 90%;
            max-width: 700px;
            border-radius: 12px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.3);
            animation: jigsawSlideIn 0.3s;
            max-height: calc(100vh - 100px);
            display: flex;
            flex-direction: column;
        }

        @keyframes jigsawSlideIn {
            from {
                transform: translateY(-50px);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .jigsaw-help-modal-header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 20px 30px;
            border-radius: 12px 12px 0 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .jigsaw-help-modal-header h2 {
            margin: 0;
            font-size: 1.5em;
        }

        .jigsaw-help-modal-close {
            color: white;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
            background: none;
            border: none;
            padding: 0;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: background 0.3s;
        }

        .jigsaw-help-modal-close:hover {
            background: rgba(255,255,255,0.2);
        }

        .jigsaw-help-modal-body {
            padding: 30px;
            overflow-y: auto;
            flex: 1;
        }

        .jigsaw-help-modal-body h3 {
            color: #444;
            margin-top: 25px;
            margin-bottom: 15px;
            font-size: 1.2em;
            border-bottom: 2px solid #f0f0f0;
            padding-bottom: 8px;
        }

        .jigsaw-help-modal-body h3:first-child {
            margin-top: 0;
        }

        .jigsaw-help-modal-body p {
            color: #666;
            margin: 12px 0;
            line-height: 1.6;
        }

        .jigsaw-help-modal-body strong {
            color: #444;
            font-weight: 600;
        }

        .jigsaw-help-modal-body ul {
            margin: 12px 0;
            padding-left: 20px;
        }

        .jigsaw-help-modal-body li {
            color: #666;
            margin: 8px 0;
        }

        .jigsaw-help-modal-body .help-note {
            background: #f8f9fa;
            border-left: 3px solid #667eea;
            padding: 12px 15px;
            margin: 15px 0;
            font-style: italic;
            color: #555;
        }

        .jigsaw-help-modal-body .compatible-browsers {
            background: #e8f5e9;
            border-left: 3px solid #4caf50;
            padding: 12px 15px;
            margin: 15px 0;
            color: #2e7d32;
        }

        /* Responsive design */
        @media (max-width: 600px) {
            .jigsaw-help-modal-content {
                width: 95%;
                margin: 20px auto;
            }
            
            .jigsaw-help-modal-body {
                padding: 20px;
            }
        }
		
		 /* Basic Enhanced Bullets */
		 
		 
	 .bullets	 ul, ol {
    margin-left: 15px; }
		 
        .bullets ul {
            list-style: none;
            padding-left: 1.5em;
        }
        
        .bullets ul li {
            position: relative;
            padding-left: 0.5em;
            margin-bottom: 0.5em;
        }
        
        .bullets ul li::before {
            content: "•";
            color: #3b82f6;
            font-weight: bold;
            font-size: 1.2em;
            position: absolute;
            left: -1.2em;
        }
        
        .bullets ol {
            counter-reset: item;
            list-style: none;
            padding-left: 2em;
        }
        
        .bullets ol li {
            counter-increment: item;
            margin-bottom: 0.5em;
            position: relative;
        }
        
        .bullets ol li::before {
            content: counter(item);
            background: #3b82f6;
            color: white;
            font-weight: bold;
            font-size: 0.9em;
            width: 1.5em;
            height: 1.5em;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            position: absolute;
            left: -2em;
        }
        
        /* Arrow bullets */
        .bullets.arrows ul li::before {
            content: "▸";
            color: #10b981;
            font-size: 1.2em;
        }
        
        /* Checkmark bullets */
        .bullets.checks ul li::before {
            content: "✓";
            color: #22c55e;
            font-weight: bold;
        }
        
        /* Square bullets with gradient */
        .bullets.squares ul li::before {
            content: "";
            width: 8px;
            height: 8px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            display: inline-block;
            position: absolute;
            left: -1.2em;
            top: 0.5em;
        }
        
        /* Hollow circle bullets */
        .bullets.hollow ul li::before {
            content: "○";
            color: #6366f1;
            font-size: 0.9em;
        }
        
        /* Diamond bullets */
        .bullets.diamonds ul li::before {
            content: "◆";
            color: #ec4899;
            font-size: 0.8em;
        }
        
        /* Star bullets */
        .bullets.stars ul li::before {
            content: "★";
            color: #f59e0b;
            font-size: 1em;
        }
        
        /* Animated hover bullets */
        .bullets.animated ul li {
            transition: all 0.3s ease;
        }
        
        .bullets.animated ul li::before {
            transition: all 0.3s ease;
        }
        
        .bullets.animated ul li:hover {
            padding-left: 1em;
        }
        
        .bullets.animated ul li:hover::before {
            color: #ef4444;
            transform: scale(1.3) rotate(360deg);
        }
        
        /* Nested list styling */
        .bullets.nested ul ul {
            padding-left: 1.5em;
            margin-top: 0.5em;
        }
        
        .bullets.nested ul ul li::before {
            content: "◦";
            color: #94a3b8;
            font-size: 1em;
        }
        
        .bullets.nested ul ul ul li::before {
            content: "▪";
            color: #cbd5e1;
            font-size: 0.8em;
        }
        
        /* Premium bullet style */
        .bullets.premium ul {
            list-style: none;
            padding: 0;
        }
        
        .bullets.premium ul li {
            position: relative;
            padding: 0.75em 0 0.75em 2.5em;
            margin-bottom: 0.5em;
            border-left: 2px solid #e2e8f0;
            transition: all 0.3s ease;
        }
        
        .bullets.premium ul li::before {
            content: "";
            position: absolute;
            left: -6px;
            top: 1em;
            width: 10px;
            height: 10px;
            background: white;
            border: 2px solid #3b82f6;
            border-radius: 50%;
            transition: all 0.3s ease;
        }
        
        .bullets.premium ul li:hover {
            border-left-color: #3b82f6;
            background: #f0f9ff;
            padding-left: 3em;
        }
        
        .bullets.premium ul li:hover::before {
            background: #3b82f6;
            transform: scale(1.2);
        }
        
        /* Gradient line bullets */
        .bullets.gradient-line ul li {
            position: relative;
            padding-left: 2em;
            margin-bottom: 1em;
        }
        
        .bullets.gradient-line ul li::before {
            content: "";
            position: absolute;
            left: 0;
            top: 0.5em;
            width: 20px;
            height: 2px;
            background: linear-gradient(90deg, #3b82f6, #8b5cf6);
        }
        
        /* Numbered with background */
        .bullets.numbered-bg ol li::before {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        
        /* Icon-style bullets */
        .bullets.icons ul li::before {
            content: "➤";
            color: #8b5cf6;
            font-size: 1em;
        }
        
        /* Pulse animation */
        @keyframes pulse {
            0% {
                box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
            }
            70% {
                box-shadow: 0 0 0 6px rgba(59, 130, 246, 0);
            }
            100% {
                box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
            }
        }
        
        .bullets.pulse ul li::before {
            content: "";
            width: 8px;
            height: 8px;
            background: #3b82f6;
            border-radius: 50%;
            display: inline-block;
            position: absolute;
            left: -1.2em;
            top: 0.6em;
            animation: pulse 2s infinite;
        }
		
		 /* Grid container */
        .puzzle-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 25px;
            max-width: 1200px;
            margin: 0 auto;
        }

        /* Card - minimal structure */
        .puzzle-card-game-pages {
            background: white;
            border-radius: 10px;
            box-shadow: var(--shadow);
            overflow: hidden;
            height: 380px;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .puzzle-card-game-pages:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-hover);
        }

        /* Image */
        .puzzle-card-game-pages img {
            width: 100%;
            height: 220px;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .puzzle-card-game-pages:hover img {
            transform: scale(1.05);
        }

        /* Button */
        .puzzle-btn {
            background: var(--brand-color);
            color: white;
            border: none;
            padding: 12px 30px;
            margin: 15px auto;
            display: block;
            border-radius: 25px;
            cursor: pointer;
            font-size: 15px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .puzzle-btn:hover {
            background: var(--brand-dark);
            transform: translateY(-2px);
        }

        /* Button click effect */
        .puzzle-btn:active {
            transform: scale(0.98);
        }

        /* Text */
        .puzzle-card-game-pages p {
            padding: 0 15px;
            margin: 0;
            font-size: 14px;
            color: var(--text-light);
            line-height: 1.4;
        }

        /* Optional: Featured card style (for new/special puzzles) */
        .featured {
            border: 2px solid var(--brand-color);
        }

        .featured::before {
            content: 'NEW';
            position: absolute;
            top: 10px;
            right: 10px;
            background: var(--brand-color);
            color: white;
            padding: 4px 12px;
            border-radius: 15px;
            font-size: 12px;
            font-weight: bold;
            z-index: 1;
        }

        /* Simple loading state */
        .loading {
            opacity: 0.6;
            pointer-events: none;
        }

        /* Mobile responsive */
        @media (max-width: 600px) {
            .puzzle-grid {
                grid-template-columns: 1fr;
                padding: 0 10px;
            }
        }

        /* Optional: Subtle entrance animation */
        @keyframes fadeIn {
            from { 
                opacity: 0; 
                transform: translateY(20px); 
            }
            to { 
                opacity: 1; 
                transform: translateY(0); 
            }
        }

        .puzzle-card-game-pages {
            animation: fadeIn 0.5s ease-out backwards;
        }

        .puzzle-card-game-pages:nth-child(1) { animation-delay: 0.1s; }
        .puzzle-card-game-pages:nth-child(2) { animation-delay: 0.15s; }
        .puzzle-card-game-pages:nth-child(3) { animation-delay: 0.2s; }
        .puzzle-card-game-pages:nth-child(4) { animation-delay: 0.25s; }
        .puzzle-card-game-pages:nth-child(5) { animation-delay: 0.3s; }
        .puzzle-card-game-pages:nth-child(6) { animation-delay: 0.35s; }
		
.nopadding img {padding:0; margin:0; border-radius:9px;}

/* end modal jigsaw */

/* ----------- Footer ------------ */

.main-footer {margin-top: 1rem; background-color:#000; color: white; text-align: center; padding: 0.6rem; }     
.main-footer a { color:#fff; text-decoration:none; }
.main-footer p {color:#FFF;}
	
		
/* Respect user prefs */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
       }
		
/* ----------- RESPONSIVE STYLES (Mobile First) -------- */
@media (min-width: 900px) {

 .grid {
            display: grid;
            grid-template-columns: repeat(12, 1fr); 
            gap: 0.8rem; 
        }

        .col-span-1 { grid-column: span 1; }
        .col-span-2 { grid-column: span 2; }
        .col-span-3 { grid-column: span 3; }
        .col-span-4 { grid-column: span 4; }
        .col-span-5 { grid-column: span 5; }
        .col-span-6 { grid-column: span 6; }
        .col-span-7 { grid-column: span 7; }
        .col-span-8 { grid-column: span 8; }
        .col-span-9 { grid-column: span 9; }
        .col-span-10 { grid-column: span 10; }
        .col-span-11 { grid-column: span 11; }
        .col-span-12 { grid-column: span 12; }

   .logo {
            font-size: 2.2rem;
            font-weight: bold;
            color: var(--logo-colour);
			padding: 0 0 0 25px;
        }
.bigboldmiddle {font-size:3rem; color:#3b5998; font-style:italic; font-weight:bolder; text-align:center;padding-top: 0.5rem;padding-bottom:0.8rem;}
}

/* patch for scrolling error for modal game window */

/* True full-screen for the game overlay */
#gameOverlay.jgp-fullscreen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;         /* fallback */
  min-height: 100vh;
  z-index: 10001;        /* higher than your menu modals */
  overflow: hidden;
}

/* Prefer modern dynamic viewport units on mobile */
@supports (height: 100svh) {
  #gameOverlay.jgp-fullscreen { height: 100svh; min-height: 100svh; }
}
@supports (height: 100lvh) {
  #gameOverlay.jgp-fullscreen { height: 100lvh; min-height: 100lvh; }
}
@supports (height: 100dvh) {
  #gameOverlay.jgp-fullscreen { height: 100dvh; min-height: 100dvh; }
}

/* Stretch inner container and keep close button tappable */
#gameOverlay .game-container { height: 100%; }
#gameOverlay .close-button { position: absolute; top: 3.25rem; right: .75rem; z-index: 2; }

/* Optional: while the puzzle is open, neutralise any scroll-triggered transforms on wrappers */
.jgp-open .main-header,
.jgp-open .wrap,
.jgp-open .container,
.jgp-open [class*="sticky"],
.jgp-open [data-sticky] {
  transform: none !important;
  filter: none !important;
  perspective: none !important;
}


/* end of css patch for scrolling error modal game window */
/* start of css patch for shop modal window */
/* Keep a little space reserved for the first render */
#modal-shop .shop-wrap,
#modal-shop [role="tabpanel"] {
  min-height: 120px;
}

/* BUTTON CORE (keep if you already have it; otherwise paste) */
.btn-wide {
  --bg: #1b6698;        /* brand blue */
  --bg-hover: #15597f;  /* hover blue */
  --text: #fff;

  display: block;
  width: 80%;
  max-width: 42rem;
  margin: 1rem auto;
  padding: 1rem 1.25rem;
  text-align: center;
  text-decoration: none;

  color: var(--text);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(0,0,0,.07)), var(--bg);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;

  font: 600 1.125rem/1.2 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  box-shadow:
    0 8px 18px rgba(0,0,0,.15),
    inset 0 1px 0 rgba(255,255,255,.15);
  transition: transform .12s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn-wide:hover {
  transform: translateY(-1px);
  background: var(--bg-hover);
  box-shadow:
    0 12px 26px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.2);
}
.btn-wide:active {
  transform: translateY(0);
  box-shadow:
    0 6px 14px rgba(0,0,0,.12),
    inset 0 2px 4px rgba(0,0,0,.15);
}
.btn-wide:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 3px;
}
@media (max-width: 640px) { .btn-wide { width: 100%; } }

/* ICON + ANIMATION (new bits) */
.btn-with-icon {
  --icon: 2.2em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  min-height: 48px;
  line-height: 1.2;
}
.btn-icon {
  width: var(--icon);
  height: var(--icon);
  flex: 0 0 auto;
  display: inline-block;
  will-change: transform;
}
.paw { transform-origin: 50% 60%; }
@keyframes paw-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.18); }
}
.paw--auto { animation: paw-pulse 1.6s ease-in-out infinite; }
.btn-with-icon:hover .paw--auto,
.btn-with-icon:focus-visible .paw--auto { animation-duration: 1.2s; }
@media (prefers-reduced-motion: reduce) { .paw--auto { animation: none; } }

svg.btn-icon { width: var(--icon) !important; height: var(--icon) !important; }

.btn-with-icon:hover .paw,
.btn-with-icon:focus-visible .paw {
  animation: paw-pulse 1.2s ease-in-out 1;
}

/* ICON + LAYOUT */
.btn-with-icon {
  --icon: 2.2em;                 /* tweak 1.8–2.6em */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  min-height: 48px;
  line-height: 1.2;
}
.btn-icon {
  width: var(--icon);
  height: var(--icon);
  flex: 0 0 auto;
  display: inline-block;
}

/* Optional: brand tint on hover follows your .btn-wide hover state */
.btn-wide:hover .btn-icon { filter: saturate(1.05); }

/* Paw pulse (auto). Apply via .paw--auto on the <svg> if you want it running) */
.paw { transform-origin: 50% 60%; }
@keyframes paw-pulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.18)} }
.paw--auto { animation: paw-pulse 1.6s ease-in-out infinite; }

/* Fun extras (optional): light wiggles on themed buttons */
@keyframes wiggle { 0%,100%{transform:rotate(0)} 50%{transform:rotate(6deg)} }
.btn--halloween:hover .btn-icon { animation: wiggle .42s ease-in-out 1; }
@keyframes tilt { 0%,100%{transform:rotate(0)} 50%{transform:rotate(-4deg)} }
.btn--puzzle:hover .btn-icon { animation: tilt .35s ease-in-out 1; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .paw--auto,
  .btn--halloween:hover .btn-icon,
  .btn--puzzle:hover .btn-icon { animation: none; }
}

/* cat ear movement on hover */
@keyframes ear-twitch { 0%,100%{transform:rotate(0)} 40%{transform:rotate(-6deg)} 60%{transform:rotate(3deg)} }
.btn--cat:hover .btn-icon { animation: ear-twitch .35s ease-out 1; }
@media (prefers-reduced-motion: reduce){ .btn--cat:hover .btn-icon { animation:none; } }