:root{color-scheme:light;--ink:#352b28;--muted:#6d5b54;--accent:#ad392d;--accent-dark:#862b24;--line:#e7c9aa;--paper:#fffdf9;--bg:#f7ead5;--error:#9c3325;--radius:20px;--sun:#f0b541;--leaf:#39735b}
*{box-sizing:border-box}html{min-height:100%;background:#f2dfc2}body{margin:0;min-height:100vh;background:radial-gradient(ellipse at 7% 8%,#e8b77b 0 5%,transparent 28%),linear-gradient(135deg,#f9edda,#f4dfc4 55%,#e7d4b7);color:var(--ink);font:16px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,input{font:inherit}button{border:0;border-radius:12px;background:var(--accent);color:#fff;padding:.7rem 1.05rem;cursor:pointer;font-weight:750;line-height:1.3;box-shadow:0 3px 0 #76271f}button:hover:not(:disabled){background:var(--accent-dark)}button:disabled{cursor:not-allowed;background:#e7ecec;color:#57656b;box-shadow:none}button.secondary{background:#fff8ec;border:1px solid #c99b61;color:#684323;box-shadow:none}button.secondary:hover:not(:disabled){background:#ffedc9}button:focus-visible,input:focus-visible,a:focus-visible,main:focus-visible{outline:3px solid #df9600;outline-offset:4px}[hidden]{display:none!important}
.page{max-width:1440px;margin:auto;padding:24px clamp(16px,3vw,44px) 32px}.page-header{position:relative;isolation:isolate;min-height:260px;display:block;min-height:260px;margin-bottom:18px;padding:34px 48% 30px 34px;border-radius:26px;overflow:hidden;color:#fff;background:linear-gradient(105deg,#722f26 0%,#a64932 48%,#c47e4d 100%);box-shadow:0 15px 35px #59351d2b}.page-header:before{content:"";position:absolute;inset:0;z-index:-1;background:repeating-linear-gradient(45deg,transparent 0 27px,#fff1 28px 29px),linear-gradient(90deg,#542a2540,transparent 70%)}.page-header h1{font-size:clamp(2.2rem,5vw,4.3rem);line-height:1.02;letter-spacing:-.04em;color:#fff;margin:0 0 12px}.page-header .eyebrow{font-size:.75rem;font-weight:800;letter-spacing:.16em;color:#ffdc99;margin:0 0 12px}.intro{max-width:610px;color:#fff4e4;font-size:1.12rem;margin:0}.hero-scene{position:absolute;right:24px;top:15px;width:44%;height:230px;margin:0;filter:drop-shadow(0 12px 14px #30181155)}.hero-scene svg{display:block;width:100%;height:100%}
h2{font-size:1.15rem;margin:0 0 7px}h3{font-size:1.2rem;line-height:1.35;margin:14px 0 9px}p{margin:0 0 12px}.player-panel{display:grid;grid-template-columns:1fr 1fr;gap:28px;background:#fffaf2;padding:22px;border:1px solid var(--line);border-radius:var(--radius);margin-bottom:18px;box-shadow:0 8px 22px #81441a16}.player-panel p,.player-panel small{font-size:.86rem;color:var(--muted)}label{display:block;font-size:.9rem;font-weight:750;margin-bottom:6px}.input-row{display:flex;gap:8px;flex-wrap:wrap}input{border:1px solid #c4a078;border-radius:10px;padding:.6rem .75rem;min-width:0;flex:1;width:100%;background:#fffefb}small{display:block;margin-top:5px}.notice{padding:14px 18px;border:1px solid #e3c79f;border-radius:14px;background:#fff7e8;margin-bottom:16px;font-size:.93rem}.notice button{margin-left:12px;font-size:.86rem}.notice.error,.round-notice.error{background:#fff1eb;color:var(--error);border-color:#edc6b9}.notice ul{padding-left:20px;overflow-wrap:anywhere}.section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:22px 0 14px}.section-heading h2{font-size:1.35rem;color:#78352a}.section-heading p{font-size:.85rem;color:var(--muted);overflow-wrap:anywhere}.game-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;position:relative}.game-card{display:flex;flex-direction:column;background:linear-gradient(155deg,#fffdf8,#f8edda);border:1px solid #ddc19d;border-top:5px solid #aaa;border-radius:var(--radius);padding:20px;min-width:0;overflow-wrap:anywhere;box-shadow:0 8px 20px #75411a1a;position:relative}.game-card:not(:last-child):after{content:"";position:absolute;right:-20px;top:42px;width:20px;height:2px;background:#a97848;z-index:1}.game-card.available{border-top-color:var(--leaf)}.game-card.completed{border-top-color:#c18c2e}.card-top{display:flex;align-items:center;gap:8px;justify-content:space-between}.step-number{font-size:1.1rem;font-weight:850;color:#8b6c4b}.badge{font-size:.72rem;font-weight:750;border-radius:30px;padding:5px 9px;background:#f1e9dd;color:#4a5b63}.available .badge{color:#145b40;background:#e3f1e6}.completed .badge{color:#815815;background:#fff0c8}.learning-goal{font-size:.9rem;color:var(--muted)}.card-details{font-size:.88rem;flex:1;margin-top:8px;min-height:78px}.score{font-weight:700;color:#28548a}.conditions-label{font-weight:700;margin-bottom:4px}.conditions{padding-left:18px;margin:0 0 16px;color:var(--muted)}.conditions li+li{margin-top:5px}.game-card>button{width:100%;margin-top:14px}footer{color:var(--muted);font-size:.82rem;margin-top:28px;padding:16px 0;border-top:1px dashed #c4a078}.skip-link{position:absolute;top:-100px;left:12px;background:#fff;padding:10px;z-index:20}.skip-link:focus{top:12px}
/* Het spel vult het browservenster; alleen de bediening blijft als smalle balk bovenaan. */
dialog{position:fixed;inset:0;margin:0;padding:0;border:0;border-radius:0;width:100vw;height:100vh;height:100dvh;max-width:none;max-height:none;overflow:hidden;background:#f3e8d7;box-shadow:none}dialog::backdrop{background:#34241fe6}dialog[open]{display:flex;flex-direction:column}.game-toolbar{position:relative;z-index:2;flex:0 0 auto;min-height:54px;display:flex;justify-content:space-between;align-items:center;gap:14px;padding:6px clamp(12px,2vw,26px);border-bottom:1px solid #d8c5ad;background:#fffaf3}.game-toolbar h2{margin:0;overflow-wrap:anywhere;color:#60332b;font-size:1.05rem}.game-toolbar small{color:var(--muted);font-size:.72rem;margin:0}.game-toolbar button{padding:.5rem .9rem}.round-notice{position:relative;z-index:2;flex:0 0 auto;min-height:34px;padding:5px clamp(12px,2vw,26px);background:#e5eee5;color:#28483a;font-size:.82rem}.round-notice button{margin:2px 0 0 10px;font-size:.8rem}#frame-host{flex:1;min-height:0;display:flex;overflow:hidden}iframe{width:100%;height:100%;min-height:0;max-height:none;flex:1;border:0;display:block;background:#f5e6d2}body:has(dialog[open]){overflow:hidden}
@media(max-width:900px){.game-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.game-card:not(:last-child):after{display:none}.player-panel{grid-template-columns:1fr;gap:12px}.page-header{min-height:220px;padding-right:46%}.hero-scene{height:195px}}
@media(max-width:600px){.page{padding:14px 12px 22px}.page-header{min-height:0;padding:23px 20px 16px}.hero-scene{position:relative;right:auto;top:auto;width:100%;height:170px;margin-top:8px}.game-grid{grid-template-columns:1fr}.player-panel{padding:16px}.input-row{flex-direction:column}.section-heading{display:block}.game-card{padding:17px}.card-details{min-height:0}.notice button{display:block;margin:9px 0 0}.game-toolbar{min-height:50px;padding:5px 9px;gap:8px}.game-toolbar button{font-size:.75rem;padding:.42rem .62rem}.game-toolbar h2{font-size:.94rem}.round-notice{padding:4px 9px;font-size:.75rem}.round-notice button{display:block;margin:4px 0 0}iframe{height:100%}}
@media(max-height:580px){.game-toolbar{min-height:42px;padding:3px 12px}.round-notice{min-height:26px;padding:2px 12px;font-size:.72rem}.game-toolbar small{font-size:.66rem}.game-toolbar button{padding:.32rem .7rem}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* Spaanse dorpswereld */
:root{--ink:#392c27;--muted:#715c50;--accent:#a93e2d;--accent-dark:#7e2e25;--line:#e4c69e;--bg:#f6e5c9;--leaf:#397354}
html{background:#dfc49d}
body{background:radial-gradient(ellipse at 88% 13%,#fff0bd 0 4%,transparent 20%),linear-gradient(160deg,#f7e9d0,#ebd2a9 56%,#d9bb8c)}
.page-header{min-height:280px;padding:38px 48% 32px 38px;background:linear-gradient(110deg,#6f3027,#a94e32 55%,#cc8550);border:3px solid #f3d5a6}
.page-header h1{max-width:560px;font-family:Georgia,"Times New Roman",serif;letter-spacing:-.035em}
.page-header .eyebrow{color:#ffdc8f}
.hero-scene{top:18px;right:20px;width:44%;height:244px}
.how-to-play{display:flex;align-items:center;gap:17px;margin:0 0 20px;padding:16px 20px;border:1px solid #d8b475;border-left:7px solid #d79532;border-radius:18px;background:linear-gradient(105deg,#fff5dc,#f7e5bd);box-shadow:0 7px 19px #75411a20}
.how-to-play h2{color:#75402d;margin-bottom:3px}
.how-to-play p{margin:0;max-width:760px;color:#604b3e}
.how-to-icon{flex:none;font-size:2.2rem;color:#d2952b}
.hello-characters{margin-left:auto;display:flex;align-items:center;gap:3px;font-size:2rem;white-space:nowrap}
.hello-characters small{margin:0 0 0 7px;padding:4px 9px;border-radius:12px;background:#fff;color:#8c3c2b;font-size:.78rem;font-weight:800}
.section-heading{margin-top:26px}
.section-heading h2{font-family:Georgia,"Times New Roman",serif;color:#77372a;font-size:1.6rem}
.game-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));align-items:stretch;gap:22px}
.game-card{padding:0 0 18px;border:1px solid #d5b58a;border-top:0;border-radius:19px;background:#fff8e9;box-shadow:0 9px 21px #65401f27;overflow:hidden;transition:transform .16s ease,box-shadow .16s ease}
.game-card:hover{transform:translateY(-3px);box-shadow:0 13px 25px #65401f32}
.game-card:after{display:none}
.game-card.available{outline:2px solid #6a9a69;outline-offset:2px}
.game-card.completed{outline-color:#d2a543}
.card-top,.game-card h3,.game-card>.learning-goal,.card-details,.game-card>.game-action{margin-left:17px;margin-right:17px}
.card-top{margin-top:14px}
.step-number{font-size:.88rem;font-weight:850;color:#875039;text-transform:uppercase;letter-spacing:.04em}
.game-title{font-family:Georgia,"Times New Roman",serif;color:#60372a;margin-top:8px}
.badge{border:1px solid #e1d5c1}
.locked .badge{background:#eee9df;color:#5d5953}
.building-art{height:158px;position:relative;display:flex;align-items:flex-end;justify-content:center;padding-bottom:0;background:linear-gradient(#a6ccd0 0 54%,#edcf94 54% 100%);border-bottom:7px solid #c89451;overflow:hidden}
.building-art:before{content:"";position:absolute;left:0;right:0;bottom:0;height:88px;background:linear-gradient(90deg,#e7c995 0 8%,#f5e3bb 8% 20%,#e7c995 20% 28%,#f4dfb3 28% 70%,#e7c995 70% 78%,#f3dfb6 78%);clip-path:polygon(0 27%,12% 0,25% 19%,38% 2%,50% 18%,66% 0,78% 22%,90% 3%,100% 24%,100% 100%,0 100%)}
.building-art:after{content:"";position:absolute;bottom:0;left:0;right:0;height:10px;background:repeating-linear-gradient(90deg,#d9b982 0 22px,#f4dfb6 22px 44px)}
.place-name{position:absolute;z-index:2;top:14px;left:50%;transform:translateX(-50%);white-space:nowrap;padding:5px 13px;border:2px solid #8e5132;border-radius:5px 5px 12px 12px;background:#fff0c9;color:#713827;font-family:Georgia,"Times New Roman",serif;font-size:.94rem;font-weight:800;box-shadow:0 3px 0 #7d4b32}
.building-icon{position:relative;z-index:1;margin-bottom:26px;padding:0 29px 2px;border:5px solid #fff0d0;border-bottom:0;border-radius:48px 48px 0 0;background:linear-gradient(90deg,#b85839,#d77c47);font-size:2rem;line-height:1.65;filter:drop-shadow(0 2px 1px #74452c55)}
.building-door{position:absolute;z-index:2;bottom:0;left:calc(50% + 20px);height:51px;min-width:68px;padding:16px 5px 4px;border:3px solid #f2d7a6;border-bottom:0;border-radius:12px 12px 0 0;background:#754333;color:#fff3d9;text-align:center;font-size:.68rem;font-weight:800;line-height:1;text-transform:uppercase;letter-spacing:.03em}
.place-shop .building-icon{background:linear-gradient(90deg,#577a60,#7d9a63)}
.place-churros .building-icon{background:linear-gradient(90deg,#d38c2d,#eab44b)}
.place-house .building-icon{background:linear-gradient(90deg,#537d83,#6e9b98)}
.place-plaza .building-icon{background:linear-gradient(90deg,#87517a,#aa7190)}
.card-details{min-height:85px;font-size:.86rem}
.conditions{padding-left:19px}
.conditions li::marker{color:#ae492e}
.door-hint{color:#336345;font-weight:700}
.game-action{width:calc(100% - 34px);margin-top:12px!important}
.game-action:focus-visible{outline:3px solid #df9600;outline-offset:4px}
footer{color:#665146;border-color:#b99364}
@media(max-width:900px){.game-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,265px),1fr))}.page-header{padding-right:46%}}
@media(max-width:600px){.page-header{padding:22px 18px 14px;min-height:0}.hero-scene{height:150px}.how-to-play{align-items:flex-start;padding:13px;gap:10px}.how-to-icon{font-size:1.6rem}.hello-characters{font-size:1.35rem;gap:0}.hello-characters small{display:none}.game-grid{grid-template-columns:1fr}.building-art{height:145px}.card-details{min-height:0}}
@media(prefers-reduced-motion:reduce){.game-card{transition:none}.game-card:hover{transform:none}}
