
:root{--fs:1;--ink:#1d2433;--navy:#1d2a44;--navy2:#2c3e63;--gold:#c9a227;--gold2:#e8c766;--wine:#7b1e2b;--par:#f6f0e4;--card:#fffdf8;--green:#1e7a46;--blue:#1f5fa8}
*{box-sizing:border-box}html{font-size:calc(17px*var(--fs))}
body{margin:0;font-family:"Assistant","Heebo","Segoe UI",Arial,sans-serif;color:var(--ink);background:radial-gradient(circle at 20% 0,#fffaf0 0,var(--par) 45%,#ece2cf 100%);line-height:1.65}
a{color:var(--wine)}a:focus-visible,button:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:3px solid #ff9f1c;outline-offset:2px}
h1,h2,h3{font-family:"Frank Ruhl Libre","David CLM","David",Georgia,serif;line-height:1.25;color:var(--navy)}
h1{font-size:2rem;margin:.4rem 0 .6rem}h2{font-size:1.45rem;margin:1.6rem 0 .6rem;border-bottom:2px solid var(--gold);padding-bottom:.2rem}h3{font-size:1.15rem}
.skip{position:absolute;right:-999px;top:0;background:#fff;padding:.5rem 1rem;z-index:99}.skip:focus{right:0}
header.top{background:linear-gradient(135deg,var(--navy),var(--navy2));color:#fff;box-shadow:0 4px 18px #0003;position:sticky;top:0;z-index:20}
.hwrap{display:flex;align-items:center;justify-content:space-between;gap:.6rem;padding:.45rem 1rem;max-width:1180px;margin:auto}
.brand{display:flex;align-items:center;gap:.5rem;color:#fff;text-decoration:none;font-weight:800}.brand img{border-radius:10px;background:#fff}
.tools button{background:#ffffff1f;color:#fff;border:1px solid #ffffff55;border-radius:9px;padding:.25rem .55rem;font-size:.95rem;cursor:pointer;min-width:2.3rem;min-height:2.3rem}
nav.main ul{list-style:none;margin:0;padding:.2rem .6rem .5rem;display:flex;flex-wrap:wrap;gap:.25rem;justify-content:center;max-width:1180px;margin:auto}
nav.main a{color:#fdf6e3;text-decoration:none;padding:.3rem .65rem;border-radius:999px;display:inline-block;font-size:.93rem}nav.main a:hover,nav.main a[aria-current]{background:var(--gold);color:var(--navy);font-weight:800}
.crumbs ol{list-style:none;display:flex;flex-wrap:wrap;gap:.3rem;padding:.5rem 1rem;margin:0 auto;max-width:1180px;font-size:.9rem}.crumbs li+li:before{content:"‹";margin-left:.3rem;color:#7a6a52}
main{max-width:1180px;margin:auto;padding:.5rem 1rem 2rem}
.trk{background:#fff3c9;border:1px solid var(--gold);border-radius:12px;padding:.4rem .8rem;margin:.4rem 0;font-size:.95rem}
.hero{position:relative;background:linear-gradient(140deg,#22314f,#3a2a3f 60%,#5a2230);color:#fff;border-radius:22px;padding:1.6rem 1.4rem;margin:1rem 0;box-shadow:0 18px 40px #1d2a4455;overflow:hidden;transform:perspective(900px) rotateX(2deg)}
.hero h1{color:#fff;font-size:2.1rem}.hero .lead{color:#f3e9d2;font-size:1.1rem}.hero:after{content:"🏛️";position:absolute;left:1rem;bottom:-.4rem;font-size:6rem;opacity:.18}
.btn{display:inline-block;background:var(--navy);color:#fff;border:0;border-radius:12px;padding:.55rem 1.1rem;text-decoration:none;font-weight:700;cursor:pointer;font-size:1rem;box-shadow:0 4px 0 #0e1626;margin:.2rem}
.btn:active{transform:translateY(2px);box-shadow:0 2px 0 #0e1626}.btn.gold{background:var(--gold);color:var(--navy);box-shadow:0 4px 0 #8a6d10}.btn.alt{background:#fff;color:var(--navy);border:1px solid #cdbf9f;box-shadow:0 3px 0 #cdbf9f}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:1rem;margin:1rem 0}
.tile{display:block;background:var(--card);border-radius:18px;padding:1rem;text-decoration:none;color:var(--ink);border:1px solid #e6dcc6;box-shadow:0 10px 22px #3b2e1a1f,inset 0 -4px 0 #e9dfc8;transition:transform .2s,box-shadow .2s}
.tile:hover{transform:perspective(600px) rotateY(-4deg) translateY(-4px);box-shadow:0 16px 30px #3b2e1a33}.tile .ic{font-size:2rem;display:block}.tile b{display:block;font-size:1.1rem;color:var(--navy)}.tile small{color:#5d5242}
.chooser{display:grid;grid-template-columns:auto repeat(3,1fr);gap:.6rem;align-items:stretch;margin:1rem 0}
.chooser .rh{font-weight:800;color:var(--navy);display:flex;align-items:center;justify-content:center;background:#efe5cf;border-radius:12px;padding:.4rem;text-align:center}
.chooser a{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:5.4rem;border-radius:16px;text-decoration:none;color:var(--ink);background:var(--card);border:2px solid #e2d6bb;box-shadow:0 8px 16px #0001;font-weight:700;padding:.4rem;transition:transform .15s}
.chooser a:hover{transform:translateY(-3px) scale(1.02)}.chooser a span{font-size:1.6rem}.chooser a small{font-weight:400;color:#5d5242;font-size:.82rem}
.chooser a.star{border-color:var(--gold);background:linear-gradient(180deg,#fffdf4,#fff2c8)}
.card{background:var(--card);border-radius:16px;padding:1rem 1.2rem;margin:1rem 0;border:1px solid #e6dcc6;box-shadow:0 8px 20px #3b2e1a14}
.say{font-size:.8rem;background:#eef2fb;border:1px solid #b9c6e3;border-radius:8px;cursor:pointer;padding:.15rem .5rem;vertical-align:middle}
.tl{position:relative;list-style:none;padding:0 1.6rem 0 0;margin:1rem 0;border-right:4px solid var(--gold)}
.tl li{position:relative;margin:0 0 .8rem;background:var(--card);border-radius:12px;padding:.5rem .8rem;box-shadow:0 4px 10px #0001}
.tl li:before{content:"";position:absolute;right:-2.15rem;top:.75rem;width:1rem;height:1rem;border-radius:50%;background:var(--wine);border:3px solid #fff;box-shadow:0 0 0 2px var(--gold)}.tl b{color:var(--wine);display:inline-block;min-width:4.5rem}
.concepts{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:.7rem}.concepts div{background:#fff;border-radius:12px;padding:.6rem .8rem;border-right:5px solid var(--navy2);box-shadow:0 3px 8px #0001}
.src{background:#f4f7fc;border:2px solid #b9c6e3;border-radius:14px;padding:.8rem 1rem;margin:.8rem 0}.src .lab{font-size:.85rem;color:var(--blue);font-weight:800}
details{margin:.4rem 0}summary{cursor:pointer;font-weight:700;color:var(--navy2)}
.ce{width:100%;border-collapse:separate;border-spacing:0 .4rem}.ce td{padding:.5rem .7rem;border-radius:10px}.ce .c{background:#e3f4ea;border-right:5px solid var(--green)}.ce .ef{background:#e5eefb;border-right:5px solid var(--blue)}.ce .ar{text-align:center;font-size:1.3rem;width:2rem}
.simple{background:#fff8e6;border:2px dashed var(--gold);border-radius:14px;padding:.7rem 1rem}.yes{background:#eefaf3;border:2px dashed #6cbf8e;border-radius:14px;padding:.7rem 1rem}
.vcard{display:flex;gap:1rem;align-items:center;background:linear-gradient(135deg,#1d2a44,#3a2a3f);color:#fff;border-radius:18px;padding:1rem;text-decoration:none;box-shadow:0 12px 26px #1d2a4455;margin:.8rem 0;transform:perspective(800px) rotateX(3deg)}
.vcard .play{flex:0 0 4.2rem;height:4.2rem;border-radius:50%;background:radial-gradient(circle at 35% 30%,#ffe9a3,var(--gold));display:flex;align-items:center;justify-content:center;font-size:1.8rem;color:var(--navy);box-shadow:0 6px 0 #8a6d10}
.vcard b{font-size:1.15rem;display:block}.vcard small{color:#f1e6cc}.vcard:hover{transform:perspective(800px) rotateX(0) translateY(-3px)}
table{border-collapse:collapse;width:100%}th,td{border:1px solid #dccfb2;padding:.45rem .6rem;text-align:right;vertical-align:top}th{background:#efe5cf}.tablewrap{overflow-x:auto}
.files{list-style:none;padding:0}.files li{background:#fff;border-radius:12px;padding:.5rem .8rem;margin:.4rem 0;border:1px solid #e6dcc6;display:flex;flex-wrap:wrap;gap:.4rem;align-items:center}
.lab{font-size:.75rem;border-radius:999px;padding:.1rem .55rem;font-weight:800}.lab.s{background:#e3f4ea;color:#14532d}.lab.t{background:#fde8ec;color:#7b1e2b}.lab.f{background:#e5eefb;color:#1e3a8a}.lab.v{background:#f3ead4;color:#5a4330}
.chips span{display:inline-block;background:#efe5cf;border-radius:999px;padding:.15rem .7rem;margin:.15rem}
.pager{display:flex;justify-content:space-between;gap:.5rem;flex-wrap:wrap;margin-top:2rem}
footer{text-align:center;padding:1.2rem;color:#4b4033;font-size:.95rem}footer img{vertical-align:middle;border-radius:12px}
.stage{background:var(--card);border-radius:18px;padding:1rem;min-height:300px;border:1px solid #e6dcc6;box-shadow:0 10px 24px #0001}
.opts{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:.6rem;margin:.8rem 0}
.opt{background:#fff;border:2px solid #cfc2a3;border-radius:14px;padding:.8rem;font-size:1.05rem;cursor:pointer;text-align:right;min-height:3.2rem;font-family:inherit;color:var(--ink)}
.opt:hover{border-color:var(--navy2)}.opt.ok{background:#dff3e6;border-color:var(--green)}.opt.no{background:#fde2e2;border-color:#b42318}.opt[disabled]{cursor:default}
.fb{font-weight:700;margin:.4rem 0}.fb.ok{color:var(--green)}.fb.no{color:#b42318}.hint{background:#fff3c9;border-radius:10px;padding:.4rem .7rem}
.score{display:flex;gap:.5rem;flex-wrap:wrap}.score span{background:#efe5cf;border-radius:10px;padding:.2rem .7rem;font-weight:800}
.flip{perspective:1000px;width:min(440px,100%);height:240px;margin:1rem auto;cursor:pointer}.flip .in{position:relative;width:100%;height:100%;transition:transform .6s;transform-style:preserve-3d}
.flip.on .in{transform:rotateY(180deg)}.flip .fa,.flip .ba{position:absolute;inset:0;backface-visibility:hidden;border-radius:20px;display:flex;align-items:center;justify-content:center;text-align:center;padding:1.2rem;font-size:1.35rem;box-shadow:0 14px 30px #0002}
.flip .fa{background:linear-gradient(140deg,#22314f,#5a2230);color:#fff;font-weight:800;font-size:1.7rem}.flip .ba{background:#fffdf4;border:3px solid var(--gold);transform:rotateY(180deg)}
.order li{display:flex;align-items:center;gap:.5rem;background:#fff;border:1px solid #d9cba9;border-radius:12px;padding:.5rem;margin:.4rem 0}.order li span{flex:1}.order button{min-width:2.4rem;min-height:2.4rem}
.embed{background:#f4f7fc;border-radius:12px;padding:.6rem}.embed textarea{width:100%;height:4.6rem;direction:ltr;font-size:.8rem}
.gl{background:none;border:0;border-bottom:2px dotted var(--blue);color:inherit;font:inherit;padding:0;cursor:help}
#glpop{position:fixed;inset:auto 1rem 1rem 1rem;max-width:520px;margin:auto;background:#fff;border:3px solid var(--blue);border-radius:16px;padding:.8rem 1rem;box-shadow:0 18px 40px #0004;z-index:50}#glpop table{font-size:.95rem}
body.embed header.top,body.embed .crumbs,body.embed footer,body.embed .pager,body.embed .trk,body.embed .noembed{display:none!important}body.embed main{padding:.3rem}
.big .opt{font-size:1.45rem;min-height:4.5rem}
@media (max-width:640px){h1{font-size:1.55rem}.hero h1{font-size:1.6rem}.chooser{grid-template-columns:repeat(3,1fr)}.chooser .rh{grid-column:1/-1}.brand span{font-size:.85rem}.tools button{min-width:2rem;padding:.2rem .35rem}}
@media print{header.top,.crumbs,.pager,footer,.tools{display:none}}
