:root{--ink:#241b4f;--muted:#4a4470;--bg:#f6f1ff;--card:#fff;--purple:#6a4bdc;--purple-d:#4d33b5;--yellow:#ffd84d;--orange:#ff9a3d;--green:#7ed957;--red:#ff6b6b;--blue:#5bc0eb;--pink:#ff8fc4;--line:#d9ceff;--r:20px;
    --font:"Trebuchet MS","Segoe UI",ui-rounded,system-ui,-apple-system,Roboto,sans-serif}
    *{box-sizing:border-box}
    html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
    body{margin:0;font:1.125rem/1.6 var(--font);color:var(--ink);background:var(--bg) radial-gradient(circle at 1px 1px,#e4d9ff 2px,transparent 0) 0 0/28px 28px}
    img{max-width:100%;height:auto}
    a{color:var(--purple-d);text-underline-offset:3px}
    a:hover{color:var(--ink)}
    :focus-visible{outline:4px solid var(--ink);outline-offset:3px;border-radius:6px;box-shadow:0 0 0 7px var(--yellow)}
    .wrap{width:min(1080px,100% - 2rem);margin-inline:auto}
    .skip{position:absolute;left:.5rem;top:-4rem;background:var(--ink);color:#fff;padding:.75rem 1rem;border-radius:12px;z-index:20}
    .skip:focus{top:.5rem}
    .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
    h1,h2,h3{line-height:1.2;font-weight:800;margin:0 0 .6em}
    h1{font-size:clamp(2rem,6vw,3.2rem)}h2{font-size:clamp(1.5rem,4vw,2rem);margin-top:1.6em}h3{font-size:1.3rem}
    .h1-sub{display:inline-block;background:var(--yellow);padding:0 .5em;border-radius:999px;font-size:.6em;vertical-align:middle}
    .lead{font-size:1.2rem;color:var(--muted)}
    .small{font-size:.95rem}
    /* header */
    .site-header{background:#fff;border-bottom:4px solid var(--yellow)}
    .bar{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem 1.25rem;padding:.7rem 0}
    .brand{display:flex;align-items:center;gap:.5rem;font-weight:800;font-size:1.35rem;text-decoration:none;color:var(--purple-d)}
    .brand-mark{display:grid;place-items:center;width:2.4rem;height:2.4rem;border-radius:12px;background:var(--purple);color:#fff;font-size:1.2rem}
    .bar nav{flex:1}.bar ul{display:flex;flex-wrap:wrap;gap:.25rem;list-style:none;margin:0;padding:0}
    .bar nav a{display:inline-block;padding:.55rem .9rem;border-radius:999px;text-decoration:none;font-weight:700;color:var(--ink)}
    .bar nav a:hover{background:var(--bg)}.bar nav a[aria-current]{background:var(--yellow)}
    /* hero */
    .hero{padding:2.5rem 0 1.5rem}
    .hero-grid{display:grid;gap:1.5rem;align-items:center}
    @media(min-width:760px){.hero-grid{grid-template-columns:1.3fr 1fr}}
    .mascots{justify-self:center;width:min(360px,100%)}
    .btn{display:inline-flex;align-items:center;min-height:52px;padding:.7rem 1.6rem;margin:.25rem .25rem .25rem 0;border:0;border-radius:999px;background:var(--purple);color:#fff;font:800 1.1rem var(--font);text-decoration:none;cursor:pointer;box-shadow:0 5px 0 var(--purple-d);transition:transform .1s}
    .btn:hover{color:#fff;background:var(--purple-d);transform:translateY(-2px)}
    .btn:active{transform:translateY(3px);box-shadow:0 2px 0 var(--purple-d)}
    .btn.alt{background:var(--yellow);color:var(--ink);box-shadow:0 5px 0 #d1a900}
    .btn.alt:hover{background:#ffe27a;color:var(--ink)}
    /* sections & cards */
    .section{padding-bottom:1rem}
    .cards,.steps,.chips,.toc-list{list-style:none;margin:0;padding:0}
    .cards{display:grid;gap:1.1rem;grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}
    .card{--c:var(--orange);background:var(--card);border:4px solid var(--c);border-radius:var(--r);overflow:hidden;transition:transform .15s}
    .card:hover{transform:translateY(-4px) rotate(-.4deg)}
    .card>a{display:block;height:100%;padding:1.2rem 1.3rem;text-decoration:none;color:var(--ink)}
    .card p{margin:.4rem 0 .8rem;color:var(--muted);font-size:1rem}
    .card-emoji{font-size:2.4rem;display:block}
    .big{display:block;font-size:2.6rem;font-weight:800;color:var(--c);-webkit-text-stroke:1px var(--ink);paint-order:stroke fill}
    .chip,.tag,.go{display:inline-block;font-weight:800;font-size:.95rem}
    .chip{background:var(--bg);border-radius:999px;padding:.15rem .8rem}
    .tag{background:#fff3c4;border:2px dashed #d1a900;border-radius:999px;padding:.1rem .8rem;font-size:.9rem}
    .go{color:var(--purple-d)}
    .c0{--c:var(--orange)}.c1{--c:var(--green)}.c2{--c:var(--red)}.c3{--c:var(--blue)}.c4{--c:#b79bff}.c5{--c:#ff7a3d}.c6{--c:#ffc233}.c7{--c:#b6e04a}
    .steps{display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));counter-reset:s}
    .steps li{background:#fff;border-radius:var(--r);padding:1.2rem;border:3px solid var(--line)}
    .num{display:grid;place-items:center;width:2.6rem;height:2.6rem;border-radius:50%;background:var(--purple);color:#fff;font-weight:800;margin-bottom:.4rem}
    .note,.note-box{background:#fff;border-left:8px solid var(--yellow);border-radius:var(--r);padding:1rem 1.4rem}
    .note{margin-top:2rem}.note-box{margin:1.5rem 0;color:var(--muted)}
    .chips{display:flex;flex-wrap:wrap;gap:.6rem}
    .chip-link{display:inline-block;min-height:44px;padding:.5rem 1.1rem;background:#fff;border:3px solid var(--line);border-radius:999px;font-weight:700;text-decoration:none}
    .chip-link:hover{border-color:var(--purple)}
    .crumbs{padding:1rem 0 .5rem;font-size:1rem}.crumbs ol{display:flex;flex-wrap:wrap;gap:.2rem;list-style:none;margin:0;padding:0}
    .crumbs li+li::before{content:"›";margin:0 .5rem;color:var(--muted)}
    .site-footer{margin-top:3rem;background:var(--ink);color:#fff;padding:1.5rem 0;text-align:center}
    .site-footer p{margin:.2rem 0}
    @media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
    .bar nav a{white-space:nowrap}
    @media(max-width:759px){.bar nav{flex:1 1 100%;order:3}.lang-toggle{margin-left:auto}.bar ul{gap:.2rem}.bar nav a{padding:.5rem .8rem;font-size:1rem}}
    @media(min-width:760px){.lang-toggle{margin-left:auto}}
    .lang-toggle{display:inline-flex;border:3px solid var(--purple);border-radius:999px;overflow:hidden;background:#fff;font-weight:800}
    .lang-toggle a,.lang-toggle span{display:grid;place-items:center;min-width:48px;min-height:42px;padding:0 .9rem;text-decoration:none}
    .lang-toggle span{background:var(--purple);color:#fff}
    .lang-toggle a{color:var(--purple-d)}.lang-toggle a:hover{background:var(--bg)}
    
    /* Topic list: table-of-contents style (coloured rows + outlined arrow badge) */
    .toc-title{display:flex;justify-content:center;margin:1.6rem 0 -1.1rem;position:relative;z-index:1}
    .toc-title span{background:var(--yellow);border:4px dashed var(--ink);border-radius:0 0 999px 999px;padding:.5rem 2.2rem .7rem;font-size:clamp(1.4rem,5vw,1.9rem);color:var(--purple-d);-webkit-text-stroke:0;box-shadow:0 5px 0 #d1a900}
    .toc-list{display:grid;gap:.9rem;padding:2rem 1rem 1.2rem;background:#fff;border:6px dotted #a597d6;border-radius:26px}
    @media(min-width:640px){.toc-list{padding:2.4rem 2rem 1.6rem}}
    .toc{position:relative}
    .toc a{display:flex;align-items:center;min-height:84px;padding:.7rem 7rem .7rem 1.3rem;background:var(--c);border-radius:20px;color:var(--ink);text-decoration:none;box-shadow:0 4px 0 rgba(36,27,79,.18);transition:transform .12s}
    .toc a:hover{transform:translateX(4px)}
    .toc a:hover .toc-name{text-decoration:underline;text-underline-offset:4px}
    .toc-text{display:flex;flex-direction:column;align-items:flex-start;gap:.3rem}
    .toc-name{font-size:clamp(1.2rem,4.4vw,1.6rem);font-weight:800;line-height:1.2}
    .toc-tag{font-size:.82rem;font-weight:800;background:rgba(255,255,255,.75);border-radius:999px;padding:.05rem .7rem}
    .toc-n{position:absolute;right:0;top:50%;transform:translateY(-50%);width:6.4rem;height:4.4rem;display:grid;place-items:center;align-content:center;background:var(--ink);border-radius:0 18px 18px 0;clip-path:polygon(0 50%,1.9rem 0,100% 0,100% 100%,1.9rem 100%)}
    .toc-n::before{content:"";position:absolute;inset:3px;background:#fff;border-radius:0 15px 15px 0;clip-path:polygon(0 50%,1.8rem 0,100% 0,100% 100%,1.8rem 100%)}
    .toc-n b,.toc-n small{position:relative;line-height:1}
    .toc-n b{margin-left:1.3rem;font-size:2rem;color:#fff;-webkit-text-stroke:2px var(--ink);paint-order:stroke fill;letter-spacing:.03em}
    .toc-n small{margin:.2rem 0 0 1.3rem;font-size:.75rem;font-weight:800;color:var(--muted)}
    .toc a:focus-visible{outline-offset:2px}
    .toc.c0{--c:#ffa54a}.toc.c1{--c:#a9e05d}.toc.c2{--c:#f0827a}.toc.c3{--c:#a9d3e6}.toc.c4{--c:#c9a9e4}.toc.c5{--c:#ff8a52}.toc.c6{--c:#ffc04a}.toc.c7{--c:#c4ea58}
    .toc-n b{font-size:2.3rem;-webkit-text-stroke:3px var(--ink)}
    .toc-tag{border-radius:10px;padding:.1rem .6rem;line-height:1.3}
    /*x*/
    /* Coming soon (disabled, non-link items) */
    .card>div{display:block;height:100%;padding:1.2rem 1.3rem}
    .card.soon{border:4px dashed #a597d6;background:#f1edfb;filter:saturate(.35);opacity:.9}
    .card.soon:hover{transform:none}
    .soon-chip{background:#fff3c4;border:2px dashed #d1a900;color:var(--ink)}
    .toc.soon>div{display:flex;align-items:center;min-height:84px;padding:.7rem 7rem .7rem 1.3rem;background:#ebe7f6;border:3px dashed #a597d6;border-radius:20px;color:#4a4470}
    .toc.soon .toc-tag{background:#fff3c4;border:2px dashed #d1a900}
    .toc.soon .toc-n{opacity:.5}
    footer a{color: var(--card)} footer a:hover{color: var(--card)}