/* SuperGamee shared styles: all pages (listing + game page). Brand: mist-sage + pine, tile surfaces. */
:root{--bx-bg:#f1f4f2;--bx-panel:#ffffff;--bx-panel2:#e3ebe7;--bx-indigo:#13706a;--bx-indigo-d:#0f3d3a;--bx-lime:#13706a;--bx-teal:#0b5d57;--bx-text:#1c2826;--bx-muted:#55635f}

/* hero + home sections */
.bx-hero{padding:26px 0 8px}
.bx-hero h1{margin:0;font-size:clamp(26px,4vw,40px);font-weight:800;color:#12201e;line-height:1.15}
.bx-hero h1 span{color:var(--bx-lime)}
.bx-hero p{margin:8px 0 0;color:var(--bx-muted);font-size:17px}
.bx-section{margin:26px 0 8px}
.bx-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.bx-more{font-size:14px;color:var(--bx-teal);text-decoration:none}
.bx-collections{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px;margin:0;padding:0;list-style:none}
.bx-collections a{display:block;background:var(--bx-panel);border:1px solid #d3ddd8;border-radius:10px;padding:14px 14px 12px;text-decoration:none;color:#12201e;font-weight:700;transition:background .15s ease-out,border-color .15s ease-out,box-shadow .15s ease-out}
.bx-collections a:hover{background:var(--bx-panel2);border-color:var(--bx-lime)}
.bx-collections small{display:block;margin-top:2px;color:var(--bx-muted);font-weight:400}
.bx-intro{margin:34px 0 10px;padding:22px 24px;background:var(--bx-panel);border-radius:16px;color:#2c3a37;line-height:1.7}
.bx-intro h2,.bx-intro h3{color:#12201e}
.bx-intro h2{font-size:24px}.bx-intro h3{font-size:19px;color:var(--bx-lime)}
.bx-intro a,.bx-prose a{color:var(--bx-lime)}
.bx-prose{color:#2c3a37;line-height:1.7;margin:24px 0}
.bx-prose h2{font-size:24px;color:#12201e;margin:28px 0 10px}
.bx-prose h3{font-size:19px;color:var(--bx-lime);margin:20px 0 8px}
.bx-prose table{border-collapse:collapse;margin:12px 0}.bx-prose td,.bx-prose th{border:1px solid #d3ddd8;padding:6px 10px}
.bx-collection-meta{color:var(--bx-muted);margin:0 0 12px}
.bx-notfound{text-align:center;padding:36px 0 16px}
.bx-notfound h1{color:#12201e;font-size:34px}
.bx-notfound p{color:var(--bx-muted)}
.bx-notfound .btn{margin:6px}

/* breadcrumb */
.bx-crumbs{list-style:none;display:flex;flex-wrap:wrap;gap:4px 8px;margin:0 0 10px;padding:0;font-size:14px;color:var(--bx-muted)}
.bx-crumbs li+li::before{content:"\203A";margin-inline-end:8px;color:#8a9893}
[dir=rtl] .bx-crumbs li+li::before{content:"\2039"}
.bx-crumbs a{color:var(--bx-teal);text-decoration:none}

/* ads: labelled, fixed-height containers (no layout shift), never next to the game */
.ad-slot{text-align:center;margin:16px auto;max-width:100%}
.ad-slot .ad-label{font:600 11px/1 system-ui,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:#66746f;margin:0 0 6px}
.ad-slot .ad-box{margin:0 auto;overflow:hidden;max-width:100%}
.ad-below_game .ad-box,.ad-in_content .ad-box{min-height:280px}
.ad-home_top .ad-box{min-height:100px}
.ad-below_game{margin-top:150px} /* >= 150px between the game area and the first ad */
html.game-error .ad-slot{display:none!important}

/* footer */
.qg-footer{background:#e3ebe7;border-top:1px solid #c9d6d0;padding:28px 16px 22px;text-align:center;color:var(--bx-muted);font-size:14px;margin-top:36px}
.qg-footer-menu{list-style:none;margin:0 0 14px;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:6px 20px}
.qg-footer-menu a{color:#1c2826;text-decoration:none;font-weight:600}
.qg-footer-menu a:hover,.qg-copy a,.qg-lang a.active{color:var(--bx-lime)}
.qg-copy{margin:0 0 4px}.qg-copy a{text-decoration:none}
.qg-tag{margin:0 0 12px;font-size:13px}
.qg-lang{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 8px;font-size:13px}
.qg-lang a{color:#3d4b47;text-decoration:none}.qg-sep{color:#b5c3bd}
/* sticky footer: footer stays at the bottom on short pages */
html,body{min-height:100%}
body{min-height:100vh;display:flex;flex-direction:column}
body>*{flex-shrink:0}
.qg-footer{margin-top:auto}
body>.qg-footer{margin-top:auto}
main,#play-area{flex-shrink:0}
body>.container:last-of-type{margin-bottom:36px}

/* brand: tile collections, prose links, focus, motion */
.bx-collections a{background:#ffffff;box-shadow:0 2px 0 #c9d6d0}
.bx-collections a:hover{background:#ffffff;border-color:#13706a;box-shadow:0 2px 0 #13706a}
.bx-collections a:active{transform:translateY(1px);box-shadow:0 1px 0 #13706a}
.bx-intro{border-radius:12px;border:1px solid #d3ddd8}
.bx-prose a,.bx-intro a{text-decoration:underline}
.bx-collections a:focus-visible,.bx-more:focus-visible,.bx-crumbs a:focus-visible,.qg-footer a:focus-visible{outline:2px solid #13706a;outline-offset:2px}
@media (prefers-reduced-motion:reduce){.bx-collections a:active{transform:none}}
