/* Dedicated GaSpelen play-table. All controls and scores are actual widget DOM. */
:root{--paper:#fffcf6;--ink:#071e60;--muted:#45506c;--blue:#1477f5;--blue-dark:#0751bf;--coral:#ff6555;--yellow:#ffc63d;--line:#e7dfd4;--radius:28px;--shadow:0 12px 28px #3b2c1310,0 2px 5px #3b2c1310;color-scheme:light;font-family:ui-rounded,"Trebuchet MS",system-ui,sans-serif;background:var(--paper);color:var(--ink);font-size:17px;line-height:1.6}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:24px}
body{margin:0;background:radial-gradient(ellipse at 2% 430px,#ffe9bf70,transparent 430px),radial-gradient(ellipse at 100% 350px,#c9e8fb5c,transparent 450px),var(--paper)}
a{color:inherit;text-underline-offset:.2em;text-decoration-thickness:1.5px}
a:hover{color:var(--blue-dark)}
button,input,select,textarea{font:inherit}
button,input,select,textarea,summary{min-height:44px}
button,summary,select{touch-action:manipulation}
button{cursor:pointer}
button:disabled{cursor:default}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid var(--ink);outline-offset:5px;position:relative;z-index:2}
img{max-width:100%;height:auto;display:block}
h1,h2,h3,p,ul,ol,figure{margin-top:0}
h1,h2,h3{font-weight:900;letter-spacing:-.035em;line-height:1.15;text-wrap:balance;overflow-wrap:break-word}
p{margin-bottom:1.1rem}
h1{font-size:clamp(2.25rem,4.3vw,4rem);margin-bottom:.65rem}
h2{font-size:clamp(1.35rem,2vw,1.85rem)}
li+li{margin-top:.35rem}
.wrap{width:min(1280px,calc(100% - 64px));margin-inline:auto}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link{position:absolute;left:16px;top:-100px;z-index:50;background:var(--ink);color:white;padding:12px 18px;border-radius:12px}
.skip-link:focus{top:12px}
.site-header{display:flex;gap:34px;align-items:center;justify-content:space-between;padding-block:22px;position:relative;z-index:5}
.brand{font-weight:1000;font-size:clamp(2rem,3vw,3rem);line-height:1;letter-spacing:-.065em;color:var(--coral);text-decoration:none;white-space:nowrap;text-shadow:0 2px 0 #fff,0 4px 0 #c8453518}
.brand>span:first-child{color:var(--blue);text-shadow:0 2px 0 #fff,0 4px 0 #0751bf25}
.brand-sparks{font-size:1.25em;color:var(--yellow);display:inline-block;transform:rotate(22deg);margin-left:.04em}
.brand:hover{color:#e34f41}
.desktop-nav{border:1px solid var(--line);border-radius:999px;padding:5px 12px;background:linear-gradient(#fffdf9,#faf6ef);box-shadow:0 4px 0 #ede5d566,0 9px 18px #78613b08;flex:1;max-width:900px}
.desktop-nav ul,.mobile-nav ul,.bottom-nav ul{list-style:none;padding:0;margin:0;display:flex;justify-content:space-between;align-items:center;gap:8px}
.desktop-nav a{min-height:44px;display:flex;gap:10px;align-items:center;text-decoration:none;font-size:.82rem;font-weight:800;padding:8px 11px;white-space:nowrap;border-radius:999px}
.desktop-nav a:hover,.desktop-nav a[aria-current]{background:#e6f1ff;color:var(--blue-dark)}
.mobile-nav,.bottom-nav{display:none}
.shape-icon{display:inline-block;flex:0 0 24px;width:24px;height:24px;position:relative;vertical-align:middle}
.shape-squares{background:linear-gradient(145deg,#4ba6ff,#0870ee);border-radius:5px;box-shadow:inset 0 2px 2px #ffffff80,0 2px 2px #0751bf22;clip-path:polygon(0 0,44% 0,44% 44%,0 44%,0 0,56% 0,100% 0,100% 44%,56% 44%,56% 56%,100% 56%,100% 100%,56% 100%,56% 56%,44% 56%,44% 100%,0 100%,0 56%,44% 56%,44% 44%,56% 44%,56% 0)}
.shape-circle{background:linear-gradient(145deg,#ff9483,var(--coral));border-radius:50%;box-shadow:inset 0 2px 3px #ffffff99,0 2px 2px #d2402d33}
.shape-triangle{background:linear-gradient(145deg,#ffdc64,#ffba21);clip-path:polygon(50% 2%,100% 95%,0 95%);border-radius:6px}
.shape-help{background:linear-gradient(145deg,#35b7ff,#0877e9);border-radius:50%;color:white;box-shadow:0 3px 2px #0063b42b}
.shape-help::after{content:"?";display:block;text-align:center;font-weight:1000;font-size:21px;line-height:24px}
.shape-book::before,.shape-book::after{content:"";position:absolute;top:3px;width:11px;height:18px;border:2px solid var(--ink);border-radius:3px 3px 0 0;background:#fffdfa;transform:skewY(8deg)}
.shape-book::after{right:0;transform:skewY(-8deg)}
.hero{position:relative;text-align:center;isolation:isolate;padding:25px 0 26px}
.hero-copy{position:relative;z-index:1;max-width:1100px;margin-inline:auto}
.hero .lede{font-size:clamp(1.05rem,1.8vw,1.4rem);line-height:1.45;color:var(--muted);max-width:920px;margin:0 auto;hyphens:none;word-break:normal;overflow-wrap:normal}
.hero .lede .unbroken-word{white-space:nowrap}
.home-hero{display:flex;flex-direction:column;gap:18px;min-height:0;padding-bottom:0}
.home-hero .hero-copy{order:0;min-width:0;width:100%;background:var(--paper);padding-bottom:0}
/* Decorative artwork occupies its own normal-flow row after the full text. */
.hero-decoration{position:static;order:1;transform:none;width:100%;max-width:100%;height:clamp(110px,13vw,180px);object-fit:cover;object-position:center 80%;pointer-events:none;opacity:1;align-self:stretch}
.home-hero:not(:has(.hero-decoration)){padding-bottom:26px}
.play-table{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr) minmax(0,1fr);gap:18px;position:relative;z-index:2;align-items:start;margin-bottom:24px}
.widget{min-width:0;border-radius:var(--radius);border:1px solid var(--line);background:linear-gradient(150deg,#ffffff 0%,#fffdf8 60%,#f8f1e7 100%);box-shadow:inset 0 2px 2px #fff,var(--shadow);padding:22px;display:flex;gap:12px;flex-wrap:wrap;align-content:flex-start;align-items:center;position:relative}
.widget>h2{font-size:1.5rem;width:100%;margin:0 0 2px;display:flex;align-items:center;gap:12px}
.widget>h2::before{content:"";display:inline-block;width:25px;height:25px;flex:0 0 25px;background:var(--blue);border-radius:5px;box-shadow:inset 0 2px 3px #ffffff70,0 2px 1px #0568b722}
.widget-reaction>h2::before{background:var(--coral);border-radius:50%}
.widget-guess>h2::before{background:var(--yellow);clip-path:polygon(50% 0,100% 100%,0 100%)}
.widget select,.widget input{border-radius:12px;border:1px solid #c8d0da;background:#fffefd;padding:9px 12px;max-width:100%;color:var(--ink);box-shadow:inset 0 2px 4px #4c38100a}
.widget>select{font-size:.85rem;flex:1;min-width:75px;width:auto;max-width:100%}
.widget button{border:1px solid #0866d8;border-radius:14px;color:white;background:linear-gradient(#1265c8,#0751bf);box-shadow:inset 0 2px 1px #9ed5ff80,0 3px 0 #0753b7,0 6px 10px #0960bf18;padding:10px 17px;font-weight:800;font-size:.88rem;line-height:1.25;min-width:44px}
.widget button:hover{filter:brightness(1.045)}
.widget button:active{transform:translateY(2px);box-shadow:inset 0 2px 1px #9ed5ff80,0 1px 0 #0753b7}
.widget .status{margin:0;width:100%;min-height:1.5em;font-size:.85rem;color:var(--muted);font-variant-numeric:tabular-nums}
.widget .status:empty{display:none}
.gamegrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;min-width:0;width:100%;margin-top:2px}
.gamegrid button{min-width:44px;min-height:54px;width:100%;aspect-ratio:1;padding:4px;font-size:1.7rem;border-radius:12px;box-shadow:inset 0 2px 3px #a4d7ff99,inset 0 -5px 0 #106cd555,0 3px 0 #075ca7,0 5px 8px #0751bf1a;background:repeating-linear-gradient(145deg,#2a91ec 0 15px,#329aef 15px 30px);color:#fffefa}
.gamegrid button.matched{background:linear-gradient(#fffdf8,#f3ebdc);border-color:#d5c7b5;color:var(--ink);opacity:1;box-shadow:inset 0 2px 4px #fff,0 2px 0 #d9cdb8}
.widget-reaction{justify-content:center}
.widget-reaction h2{text-align:left}
.widget button.reaction{display:flex;align-items:center;justify-content:center;border-radius:50%;width:170px;height:170px;max-width:100%;margin:15px auto 10px;flex:0 0 auto;border:7px solid #e5d5bb;outline:1px solid #f4e9d7;box-shadow:inset 0 3px 3px #9ed5ffbb,inset 0 -7px 0 #0570dc66,0 5px 0 #c8b795,0 15px 18px #7d633124;font-size:1.3rem;text-align:center;padding:15px}
.widget button.reaction.wait{background:linear-gradient(#ffcb5b,#f1a329);border-color:#e5d5bb;color:#402d05;font-size:1rem}
.widget button.reaction.go{background:linear-gradient(#4ed795,#079e69);border-color:#e5d5bb;color:#04143f}
.widget-reaction>p:last-child{font-size:.76rem;line-height:1.5;color:var(--muted);margin-bottom:0;width:100%}
.widget-guess>p:not(.status){width:100%;font-size:.86rem;font-variant-numeric:tabular-nums;margin:8px 0 0;color:var(--muted)}
.widget-guess>input{width:100%;font-size:1.4rem;min-width:0;font-weight:800;margin-top:5px}
.widget-guess>button{flex:1}
.widget-guess>button:last-of-type{background:#fffcf6;color:var(--blue-dark);border-color:#bfcee2;box-shadow:0 2px 0 #d4dfeb}
.play-table:has(>.widget:only-child){grid-template-columns:minmax(280px,520px);justify-content:center}
.game-explainers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:18px}
.game-explainer{display:flex;gap:16px;align-items:flex-start;position:relative;border-radius:22px;border:1px solid var(--line);background:#ffffff77;padding:24px;text-decoration:none}
.game-explainer>.shape-icon{width:45px;height:45px;flex-basis:45px;margin-top:3px}
.game-explainer h2{font-size:1.15rem;line-height:1.3;margin-bottom:.55rem;max-width:13em}
.game-explainer p{font-size:.85rem;line-height:1.55;color:var(--muted);margin-bottom:0}
.arrow{font-weight:900;color:var(--blue-dark);margin-left:auto;align-self:center;flex-shrink:0}
.game-explainer .arrow{position:absolute;right:18px;bottom:15px}
.entry-links{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:45px}
.entry-links>a{display:flex;gap:20px;align-items:center;padding:25px;border:1px solid var(--line);border-radius:22px;background:#fffdfa;text-decoration:none}
.entry-links .shape-icon{flex-basis:48px;width:48px;height:48px}
.entry-links .shape-help::after{font-size:39px;line-height:48px}
.entry-links .shape-book::before,.entry-links .shape-book::after{width:23px;height:36px;border-width:3px}
.entry-links h2{font-size:1.2rem;margin-bottom:.5rem}
.entry-links p{font-size:.87rem;line-height:1.55;color:var(--muted);margin-bottom:0}
.source-reading{margin-bottom:55px}
.source-kicker{text-transform:uppercase;letter-spacing:.13em;font-size:.73rem;font-weight:900;color:var(--blue-dark);padding-top:32px;border-top:1px solid var(--line)}
.source-article{max-width:76ch;margin-inline:auto;line-height:1.75}
.source-article>div>section{margin-bottom:32px}
.source-article h2{font-size:1.45rem;margin-bottom:.8rem;padding-top:16px}
.source-article p,.source-article li{overflow-wrap:anywhere}
.source-article ul,.source-article ol{padding-left:1.3rem}
.source-article .related{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:15px 0 25px;margin:35px 0}
.source-article .related a{display:inline-block;min-height:44px;padding:8px 0;font-weight:700}
.source-article .sources{font-size:.8rem;color:var(--muted);padding-top:10px}
.source-article .sources h2{font-size:1rem}
.source-article .sources a{overflow-wrap:anywhere}
.source-article .sources li{margin-bottom:.5rem}
.archive-label{display:inline-block;color:#654b28;font-size:.76rem;text-transform:uppercase;font-weight:800;letter-spacing:.07em;padding:6px 12px;border:1px solid #e7d4b4;background:#fff2d9;border-radius:8px;margin-bottom:18px}
.inner-hero{max-width:1050px;padding-block:32px}
.inner-hero h1{font-size:clamp(2rem,4vw,3.25rem)}
.inner-hero .lede{font-size:1.13rem;max-width:70ch}
.source-article:has(table){max-width:100%}
.source-article table{border-collapse:collapse;width:100%;font-size:.85rem;line-height:1.5;margin:20px 0}
.source-article th,.source-article td{padding:13px 12px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.source-article thead th{background:#edf4fc;border-top:1px solid #d6e1ef}
.source-article tbody th{font-weight:700}
.source-article td a,.source-article th a{min-height:44px;display:inline-flex;align-items:center}
.source-article [class*="catalogue"]{max-width:100%;overflow-x:auto}
.prepared-contact{padding:24px;border:1px solid var(--line);border-radius:20px;background:#f7f2e9;margin-top:40px}
.prepared-contact fieldset{border:1px solid #c7cbd3;border-radius:12px;padding:20px;margin:0;min-width:0}
.prepared-contact legend{font-size:.9rem;font-weight:800;padding:0 6px}
.prepared-contact label{display:block;margin-bottom:14px;font-size:.9rem;font-weight:700}
.prepared-contact input,.prepared-contact select,.prepared-contact textarea{width:100%;padding:9px 12px;border:1px solid #c7cbd3;border-radius:8px;margin-top:4px;background:#f9f9f7;resize:vertical;color:#626877}
.prepared-contact button{border:1px solid #bfc5cf;padding:10px 16px;border-radius:10px;color:#626877;background:#e7e8e8}
.site-footer{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:36px;padding:26px 0 40px;border-top:1px solid var(--line)}
.site-footer .brand{font-size:2rem}
.site-footer p{margin:0;font-size:.77rem;color:var(--muted)}
.site-footer .private-label{font-size:.68rem;margin-top:5px}
.site-footer nav{display:flex;gap:20px;font-size:.8rem;font-weight:700;flex-wrap:wrap}
.site-footer nav a{display:flex;align-items:center;min-height:44px}
@media(max-width:1120px){
 .wrap{width:calc(100% - 40px)}
 .site-header{gap:20px}
 .desktop-nav{padding:4px 7px}
 .desktop-nav a{gap:7px;font-size:.72rem;padding:7px}
 .brand{font-size:2.3rem}
 .play-table{gap:14px;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) minmax(0,1fr)}
 .widget{padding:17px;gap:10px;border-radius:23px}
 .widget>h2{font-size:1.2rem}
 .gamegrid{gap:8px}
 .gamegrid button{font-size:1.4rem;border-radius:9px}
 .game-explainer{padding:20px;gap:12px}
 .game-explainer>.shape-icon{width:30px;height:30px;flex-basis:30px}
 .entry-links>a{padding:20px;gap:15px}
}
@media(max-width:900px){
 .desktop-nav{display:none}
 .mobile-nav{display:block}
 .mobile-nav summary{display:flex;align-items:center;justify-content:center;list-style:none;font-size:1.8rem;width:48px;border-radius:12px;border:1px solid var(--line);background:#fffefa;cursor:pointer}
 .mobile-nav summary::-webkit-details-marker{display:none}
 .mobile-nav nav{position:absolute;right:0;top:80px;width:min(330px,calc(100vw - 40px));background:#fffefa;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);padding:12px}
 .mobile-nav ul{display:block}
 .mobile-nav a{min-height:48px;display:flex;align-items:center;gap:14px;text-decoration:none;padding:10px;border-radius:10px;font-size:.95rem;font-weight:800}
 .mobile-nav a:hover{background:#edf4fc}
 .play-table{grid-template-columns:1fr 1fr}
 .play-table>.widget-memory{grid-column:1/-1}
 .widget-memory .gamegrid{max-width:480px;margin-inline:auto}
 .widget-memory{justify-content:flex-start}
 .widget-memory>select{flex:0 1 auto;max-width:110px}
 .game-explainers{grid-template-columns:1fr}
 .game-explainer{align-items:center;min-height:112px}
 .game-explainer h2{max-width:none;margin-bottom:4px}
 .game-explainer .arrow{position:static;margin-left:auto}
 .game-explainer>.shape-icon{flex-basis:40px;width:40px;height:40px}
 .entry-links{gap:14px}
 .entry-links>a{display:grid;grid-template-columns:40px 1fr;align-items:start}
 .entry-links .arrow{display:none}
 .site-footer{grid-template-columns:1fr auto;gap:18px}
 .site-footer>div{grid-column:1/-1;grid-row:2}
}
@media(max-width:600px){
 :root{font-size:16px}
 body{padding-bottom:88px;background:radial-gradient(ellipse at 0 350px,#ffe9bf55,transparent 300px),var(--paper)}
 .wrap{width:calc(100% - 28px)}
 .site-header{padding-block:20px}
 .brand{font-size:2.45rem}
 .home-hero{padding-top:8px;padding-bottom:0;min-height:0;gap:14px}
 .hero h1{font-size:2rem;line-height:1.1;max-width:14em;margin-inline:auto}
 .hero .lede{font-size:.98rem;line-height:1.5;max-width:34ch}
 .hero-decoration{height:110px;width:100%;object-position:center 85%}
 .home-hero:not(:has(.hero-decoration)){min-height:0;padding-bottom:22px}
 .play-table,.play-table:has(>.widget:only-child){grid-template-columns:minmax(0,1fr);gap:17px}
 .play-table>.widget-memory{grid-column:auto}
 .play-table[data-game-page="home"]>.widget-memory{order:-1}
 .widget{padding:18px;border-radius:22px;gap:11px}
 .widget>h2{font-size:1.35rem}
 .widget-memory .gamegrid{max-width:none;gap:9px}
 .gamegrid button{font-size:1.85rem;min-height:54px}
 .widget-memory>select{max-width:90px}
 .widget-memory>.status{width:auto;margin-left:auto;font-size:.8rem}
 .widget-reaction{min-height:290px}
 .widget button.reaction{width:150px;height:150px;flex-basis:150px;margin:3px auto}
 .widget-guess{min-height:0}
 .widget-guess>p:not(.status){margin-top:0}
 .widget-guess>input{flex:1;min-width:100px;width:100px;max-width:none}
 .widget-guess>button{flex:1 1 120px}
 .widget-guess>button:last-of-type{flex:0 0 100%;font-size:.8rem}
 .game-explainers,.entry-links{gap:13px;margin-bottom:16px}
 .game-explainer{padding:20px;min-height:105px}
 .game-explainer h2{font-size:1.08rem}
 .game-explainer p{font-size:.82rem}
 .entry-links{grid-template-columns:1fr}
 .entry-links>a{display:flex;align-items:center;padding:20px;gap:16px}
 .entry-links .shape-icon{width:38px;height:38px;flex-basis:38px}
 .entry-links .shape-help::after{font-size:32px;line-height:38px}
 .entry-links .shape-book::before,.entry-links .shape-book::after{width:19px;height:31px}
 .entry-links h2{font-size:1.08rem}
 .entry-links p{font-size:.8rem}
 .source-reading{margin-bottom:30px}
 .source-article{font-size:.98rem;line-height:1.75}
 .source-article h2{font-size:1.4rem}
 .source-article th,.source-article td{padding:10px 6px;font-size:.72rem}
 .source-article table{table-layout:fixed}
 .source-article th:first-child{width:27%}
 .source-article th:nth-child(2){width:35%}
 .inner-hero{padding-top:10px;padding-bottom:24px}
 .inner-hero h1{font-size:1.9rem;overflow-wrap:anywhere}
 .inner-hero .lede{font-size:1rem}
 .archive-label{font-size:.64rem}
 .prepared-contact{padding:16px}
 .prepared-contact fieldset{padding:12px}
 .site-footer{grid-template-columns:1fr;padding-top:24px;padding-bottom:25px}
 .site-footer>div{grid-column:auto;grid-row:auto}
 .site-footer .brand{font-size:2rem}
 .site-footer nav{gap:18px}
 .bottom-nav{position:fixed;display:block;bottom:8px;left:8px;right:8px;z-index:20;background:#fffef9f5;border:1px solid #ddd8cd;border-radius:18px;box-shadow:0 4px 24px #15274d12;padding:8px 6px;backdrop-filter:blur(12px)}
 .bottom-nav li{flex:1;margin:0}
 .bottom-nav a{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;font-size:.64rem;min-height:52px;text-decoration:none;font-weight:800}
 .bottom-nav .shape-icon{flex-basis:24px}
}
@media(max-width:350px){.brand{font-size:2rem}.widget{padding:13px}.widget>h2{font-size:1.2rem}.gamegrid{gap:7px}.gamegrid button{min-height:48px}.game-explainer{padding:16px}.game-explainer>.shape-icon{flex-basis:30px;width:30px;height:30px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}.widget button:active{transform:none}}
@media print{
 body{background:white;color:black;padding:0;font-size:11pt}
 .site-header,.bottom-nav,.site-footer,.hero-decoration,.play-table,.game-explainers,.entry-links,.prepared-contact,.skip-link{display:none!important}
 .wrap{width:100%;max-width:none}
 .hero,.inner-hero,.home-hero{padding:0;min-height:0;text-align:left}
 .hero h1{font-size:24pt;max-width:none}
 .source-reading,.source-article,.source-article .sources,.source-article .related{display:block!important;max-width:none;color:black}
 .source-article table{font-size:8pt;table-layout:auto}
 h1,h2,h3{break-after:avoid}
 p,li,tr{orphans:3;widows:3}
 a{color:inherit;text-decoration:underline}
}

.widget button.reaction:focus-visible{outline:3px solid var(--ink);outline-offset:5px}
