:root{color-scheme:light;--bg:#f6f5ef;--surface:#fffdf8;--ink:#142f34;--muted:#52666b;--accent:#08766f;--accent-dark:#07544f;--line:#d8e1d9;--soft:#e7f0e9;--warm:#e5ba6e;--shadow:0 12px 32px #12363b0c;font-family:Inter,"Segoe UI",Arial,sans-serif}
*{box-sizing:border-box}html{scroll-padding-top:100px}body{margin:0;background:var(--bg);color:var(--ink);font-size:16px;line-height:1.7}a{color:var(--accent);text-underline-offset:4px}a:hover{color:var(--accent-dark)}button,input,select,textarea{font:inherit}button,a,input,select,summary{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.6}img{max-width:100%;height:auto}h1,h2,h3{line-height:1.15;letter-spacing:-.035em;color:var(--ink)}h1{font-size:clamp(1.8rem,3vw,2.5rem);margin:1.8rem 0 1.5rem}h2{font-size:clamp(1.5rem,2.5vw,2.1rem);margin:2.1rem 0 1rem}h3{font-size:1.15rem;margin:1.2rem 0 .7rem}p{margin:.9rem 0}strong{font-weight:650}small,.small{font-size:.85rem;color:var(--muted)}code{font-family:Consolas,monospace;overflow-wrap:anywhere}ul,ol{padding-left:1.5rem}li{margin:.45rem 0}hr{border:0;border-top:1px solid var(--line);margin:2rem 0}.wrap{width:min(1180px,calc(100% - 48px));margin:0 auto}main.wrap{padding-bottom:3rem}main:not(:has(.hero)){max-width:980px}main>p,main>ul,main>ol{max-width:78ch}main>section{margin:2rem 0 3rem}.lead{font-size:1.12rem;line-height:1.7;color:var(--muted);max-width:70ch}.eyebrow{font-size:.72rem;letter-spacing:.14em;font-weight:800;color:var(--accent);margin:0 0 .5rem}.updated,.byline,.journey-badge{font-size:.82rem;color:var(--muted)}.journey-badge{display:inline-flex;background:var(--soft);border-radius:20px;padding:.15rem .65rem}.updated:empty{display:none}.skip{position:absolute;left:12px;top:-100px;background:var(--ink);color:white;padding:.6rem 1rem;z-index:200}.skip:focus{top:10px}:focus-visible{outline:3px solid #c18519;outline-offset:4px;border-radius:3px}
header.site{position:sticky;top:0;z-index:30;background:var(--surface);border-bottom:1px solid var(--line);box-shadow:0 1px 12px #142f3405}header.site>.wrap{display:flex;align-items:center;justify-content:space-between;gap:1.2rem;padding:.8rem 0}.brand{display:inline-flex;align-items:center;gap:.65rem;color:var(--ink);font-weight:800;letter-spacing:-.03em;text-decoration:none;white-space:nowrap}.brand::before{content:"PF";display:grid;place-items:center;background:var(--ink);color:#cde4ce;font-size:.7rem;letter-spacing:0;width:32px;height:32px;border-radius:10px}.brand-mark{border-radius:8px}.brand:has(.brand-mark)::before{display:none}header.site nav.main{display:flex;align-items:center;flex-wrap:wrap;gap:.25rem}header.site nav.main>a,header.site nav.main summary{font-size:.83rem;padding:.5rem .7rem;min-height:40px;color:var(--ink);border-radius:7px;text-decoration:none;list-style:none;font-weight:600}header.site nav.main summary::-webkit-details-marker{display:none}header.site nav.main summary::after{content:"⌄";margin-left:.4rem;color:var(--muted)}header.site nav.main>a:hover,header.site nav.main summary:hover,header.site nav.main details[open]>summary{background:var(--soft)}header.site .journey-nav .nav-group{position:relative}header.site .journey-nav .nav-menu{position:absolute;top:100%;right:0;left:auto;width:360px;max-width:calc(100vw - 32px);max-height:65vh;overflow-y:auto;display:grid;grid-template-columns:1fr 1fr;gap:3px;padding:.65rem;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:0 18px 44px #12363b20}header.site .journey-nav .nav-menu a{display:block;white-space:normal;color:var(--ink);font-size:.8rem;line-height:1.5;padding:.5rem;border-radius:6px;text-decoration:none;overflow-wrap:anywhere}header.site .journey-nav .nav-menu a:hover{background:var(--soft)}header.site .journey-nav a[aria-current=page]{background:var(--soft);font-weight:800}.theme-toggle{border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:8px;padding:.4rem .6rem;font-size:.8rem;min-height:36px}.crumbs,.breadcrumbs{font-size:.82rem;color:var(--muted);margin:1.25rem 0}.crumbs a,.breadcrumbs a{color:var(--muted)}
#game-intro{display:flex;flex-direction:column;gap:1rem}.hero{order:0;display:grid;grid-template-columns:1.04fr 1fr;gap:2rem;align-items:center;background:var(--ink);border-radius:22px;padding:2.2rem;color:#e4eee8;overflow:hidden;box-shadow:var(--shadow)}.hero .eyebrow{color:#aad8bf}.hero h2{font-size:clamp(2rem,4vw,3.5rem);color:#fffdf7;margin:.7rem 0 1rem}.hero .lead{color:#d0e2db;font-size:1rem;line-height:1.8;margin-bottom:1.4rem}.hero-art{margin:0}.hero-art img{display:block;aspect-ratio:16/9;object-fit:contain;border-radius:12px}.hero-art figcaption{font-size:.68rem;color:#bdd0c9;margin-top:.4rem;text-align:right}.button{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;padding:.7rem 1rem;border-radius:8px;text-decoration:none;font-weight:700;font-size:.86rem;margin:.2rem .4rem .2rem 0;min-height:44px}.primary{background:#d2e7c4;color:#173a31}.primary:hover{background:#e4f1d8;color:#12302a}.secondary{border:1px solid #7d9e91;color:#edf4e9}.secondary:hover{background:#284b48;color:white}.home-task-entries{order:1;display:grid;grid-template-columns:repeat(3,1fr);gap:.65rem}.home-task-entries>a{display:flex;align-items:center;min-height:52px;padding:.6rem .9rem;background:var(--surface);border:1px solid var(--line);border-radius:9px;text-decoration:none;color:var(--ink);font-size:.88rem;font-weight:650}.home-task-entries>a:hover{border-color:var(--accent);background:var(--soft)}.game-facts{order:2;font-size:.82rem;color:var(--muted)}.game-facts>.card{margin:.75rem 0}.section-heading{display:flex;justify-content:space-between;gap:1rem;align-items:end;margin:2.5rem 0 1.1rem}.section-heading h2{margin:.4rem 0 0}.section-heading>a{white-space:nowrap;font-size:.85rem;font-weight:650}.code-grid,.goal-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}.code-card,.goal-card,.reference-card{border:1px solid var(--line);border-radius:13px;background:var(--surface);padding:1.2rem;box-shadow:var(--shadow)}.code-card{display:flex;gap:.5rem;justify-content:space-between;align-items:start}.code-card h3{font-size:.89rem;letter-spacing:0;margin:.7rem 0}.code-card p{font-size:.88rem;margin:.3rem 0}.code-card button{font-size:.75rem;border:1px solid var(--line);border-radius:6px;color:var(--ink);background:var(--soft);padding:.35rem .5rem;min-height:36px}.badge{display:inline-flex;font-size:.68rem;font-weight:700;line-height:1.5;background:var(--soft);color:var(--accent-dark);border-radius:5px;padding:.15rem .45rem}.badge.unconfirmed,.unconfirmed{background:#fbefcb;color:#734b0d}.goal-card p{font-size:.91rem}.goal-card h3{font-size:1.3rem}.goal-card a{font-size:.88rem;font-weight:650}.stat{font-size:1.9rem!important;font-weight:750;letter-spacing:-.05em;line-height:1.2;margin:1.1rem 0!important}.stat small{font-size:.7rem;letter-spacing:0;font-weight:500}.step-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:1.1rem;counter-reset:steps;list-style:none;padding:0}.step-grid li{counter-increment:steps;position:relative;padding-top:3rem;margin:0}.step-grid li::before{content:counter(steps,decimal-leading-zero);position:absolute;left:0;top:0;width:35px;height:35px;border:1px solid #adbfaf;border-radius:50%;display:grid;place-items:center;font-size:.78rem;font-weight:750;color:var(--accent)}.step-grid strong{line-height:1.3;display:block}.step-grid p{font-size:.85rem;line-height:1.65;color:var(--muted)}.destination-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.8rem}.destination-card{display:flex;flex-direction:column;gap:.4rem;border:1px solid var(--line);border-radius:10px;padding:1rem;background:var(--surface);color:var(--ink);text-decoration:none}.destination-card span{font-size:.8rem;color:var(--muted)}
.hub-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.7rem}.hub-grid>a{border:1px solid var(--line);border-radius:9px;background:var(--surface);padding:.8rem 1rem;text-decoration:none;font-weight:650;color:var(--ink);font-size:.85rem;display:flex;align-items:center;justify-content:space-between}.hub-grid>a:hover,.destination-card:hover{border-color:var(--accent);background:var(--soft)}.hub-grid>a::after{content:"→";margin-left:.5rem;color:var(--accent)}#home-overview{border-top:1px solid var(--line);margin-top:2rem;padding-top:.5rem}.card,.table-wrap{border:1px solid var(--line);border-radius:10px;background:var(--surface);margin:1rem 0;max-width:100%;overflow-x:auto}.table-wrap{overscroll-behavior-inline:contain}table{border-collapse:collapse;width:100%;font-size:.9rem}th,td{text-align:left;vertical-align:top;padding:.8rem 1rem;border-bottom:1px solid var(--line);overflow-wrap:anywhere}th{font-weight:650;color:var(--ink);background:var(--soft)}tr:last-child>td,tr:last-child>th{border-bottom:0}.facts th{width:26%}.facts td{min-width:180px}.facts .badge{margin-left:.5rem}.filter,input[type=search]{display:block;width:100%;min-height:48px;margin:1rem 0;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);padding:.7rem 1rem}.reference-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem}.reference-card{scroll-margin-top:105px}.reference-card header{display:flex;align-items:baseline;justify-content:space-between;gap:.8rem}.reference-card h2,.reference-card h3{font-size:1.2rem;margin:0 0 .6rem}.reference-card h2 a,.reference-card h3 a{text-decoration:none}.reference-card dl,.reference-card details{font-size:.86rem}.reference-card dt{color:var(--muted);font-weight:650;font-size:.75rem;margin-top:.7rem}.reference-card dd{margin:0;overflow-wrap:anywhere}.reference-card details{border-top:1px solid var(--line);margin-top:1rem;padding-top:.6rem}.reference-card summary{font-weight:650;color:var(--accent)}.reference-card p{font-size:.87rem}.directory-count{font-size:.83rem;color:var(--muted)}[hidden]{display:none!important}details summary{cursor:pointer}.sources,details.sources{margin:2.5rem 0 1rem;border-top:1px solid var(--line);padding-top:1rem;font-size:.85rem;color:var(--muted)}.sources li{overflow-wrap:anywhere}.sources a{word-break:break-word}.next-questions{background:var(--soft);padding:1rem 1.4rem;border-radius:12px;margin:2rem 0}.next-questions h2,.next-questions h3{margin:.3rem 0 1rem;font-size:1.15rem}.notice,.callout{background:var(--soft);border-left:3px solid var(--accent);padding:.8rem 1.1rem;border-radius:0 8px 8px 0;margin:1.5rem 0}.notice p{margin:.25rem 0}
form[data-tool]{border:1px solid var(--line);border-radius:14px;background:var(--surface);padding:1.4rem;margin:1.5rem 0;box-shadow:var(--shadow)}form[data-tool] fieldset{border:1px solid var(--line);border-radius:9px;margin:.9rem 0;padding:1rem}form[data-tool] legend{font-weight:700;font-size:.86rem;padding:0 .4rem}form[data-tool] label{display:block;font-size:.86rem;font-weight:600;margin:.8rem 0 .3rem}form[data-tool] input:not([type=checkbox]):not([type=radio]),form[data-tool] select,form[data-tool] textarea{background:var(--bg);color:var(--ink);border:1px solid var(--line);border-radius:7px;min-height:44px;width:100%;max-width:520px;padding:.5rem .7rem}form[data-tool] input[type=checkbox],form[data-tool] input[type=radio]{accent-color:var(--accent);width:17px;height:17px;vertical-align:middle;margin-right:.4rem}form[data-tool] button[type=submit]{background:var(--accent);color:white;border:0;border-radius:8px;padding:.65rem 1.2rem;min-height:44px;margin:1rem 0;font-weight:700}form[data-tool] button:hover{background:var(--accent-dark)}[data-tool-result]{background:var(--soft);border:1px solid var(--line);border-radius:9px;padding:1rem;font-size:.95rem;margin:.75rem 0;overflow-wrap:anywhere}.tool-grid,.field-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem}.tool-note,.source-note{font-size:.82rem;color:var(--muted)}.worked-example{border-left:3px solid var(--warm);padding-left:1rem}.tool-output strong{color:var(--accent-dark)}.tool-status-error{color:#a53224}.copy-status{font-size:.78rem;color:var(--muted)}button.copy{border:1px solid var(--line);border-radius:6px;background:var(--soft);color:var(--ink);padding:.3rem .6rem;min-height:36px}footer{border-top:1px solid var(--line);background:#e9eee7;padding:2rem 0;color:var(--muted);font-size:.82rem}footer .wrap{display:flex;flex-wrap:wrap;gap:1rem 2rem}footer p{max-width:64ch}footer a{color:var(--muted)}footer ul{list-style:none;padding:0;display:flex;flex-wrap:wrap;gap:.5rem 1rem}footer h2,footer h3{font-size:.85rem;letter-spacing:0}footer>div,footer .footer-grid{width:min(1180px,calc(100% - 48px));margin:0 auto}footer .footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:1rem}
html[data-theme=dark]{color-scheme:dark;--bg:#102529;--surface:#173034;--ink:#e6ede4;--muted:#abc0ba;--accent:#a0d7bd;--accent-dark:#c7e7d5;--line:#3b5352;--soft:#24463f;--shadow:0 12px 32px #0002}html[data-theme=dark] .hero{background:#071d22}html[data-theme=dark] .badge.unconfirmed{background:#514326;color:#f9d991}html[data-theme=dark] footer{background:#12292c}html[data-theme=dark] .brand::before{background:#cee4c5;color:#14312b}html[data-theme=dark] form[data-tool] button[type=submit]{background:#327568;color:#fff}
@media(max-width:900px){.hero{gap:1.5rem;padding:1.6rem}.step-grid{grid-template-columns:repeat(3,1fr)}.code-grid{grid-template-columns:1fr}.code-card{padding:1rem}.code-card h3{font-size:1rem}.goal-card{padding:1rem}.goal-card p{font-size:.84rem}.brand{font-size:.92rem}header.site nav.main>a,header.site nav.main summary{font-size:.76rem;padding:.5rem}.hub-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:680px){.wrap{width:calc(100% - 32px)}header.site{position:relative}header.site>.wrap{flex-direction:column;align-items:start;gap:.5rem;padding:.8rem 0}header.site nav.main{width:100%;justify-content:space-between;gap:0}.brand{font-size:1.05rem}header.site .journey-nav .nav-menu{position:fixed;top:auto;right:16px;left:16px;width:auto;max-width:none;max-height:65vh;margin-top:5px;z-index:40}.theme-toggle{position:absolute;right:16px;top:13px}.hero{grid-template-columns:1fr;padding:1.4rem;border-radius:15px;gap:1.5rem}.hero h2{font-size:2.5rem}.hero .lead{font-size:.94rem}.hero-art{width:100%}.hero-art figcaption{font-size:.62rem}.hero .button{font-size:.8rem;padding:.65rem .8rem}.home-task-entries{grid-template-columns:repeat(2,1fr);gap:.5rem}.home-task-entries>a{font-size:.78rem;min-height:60px;line-height:1.5;padding:.6rem}.section-heading{align-items:start;flex-direction:column;gap:.6rem;margin-top:2rem}.section-heading>a{white-space:normal}.goal-grid,.reference-grid{grid-template-columns:1fr}.goal-card{padding:1.2rem}.goal-card p{font-size:.93rem}.step-grid{grid-template-columns:1fr 1fr;gap:1.2rem}.step-grid li:last-child{grid-column:1/-1}.step-grid p{font-size:.85rem}.destination-grid,.hub-grid{grid-template-columns:1fr}.destination-card{padding:.85rem}.hub-grid{gap:.5rem}.hub-grid>a{font-size:.85rem;min-height:46px}.tool-grid,.field-grid{grid-template-columns:1fr;gap:.2rem}form[data-tool]{padding:1rem}form[data-tool] fieldset{padding:.8rem}th,td{padding:.6rem .7rem;font-size:.82rem}.facts th{width:34%;min-width:120px}.facts td{min-width:180px}footer .wrap{flex-direction:column}footer .footer-grid{width:calc(100% - 32px);grid-template-columns:1fr 1fr}footer>div{width:calc(100% - 32px)}main.wrap{padding-bottom:2rem}main>section{margin-bottom:2rem}h1{margin-top:1.4rem}.lead{font-size:1rem}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

footer.site .cols{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:1.5rem;width:100%}footer.site .cols ul{display:block}footer.site .cols li{margin:.4rem 0}footer.site .cols>div:first-child p{font-size:.8rem}header.site>.wrap{position:relative}@media(max-width:680px){footer.site .cols{grid-template-columns:1fr 1fr}footer.site .cols>div:first-child{grid-column:1/-1}}

.tier-choices{display:grid;grid-template-columns:repeat(3,1fr);gap:.7rem;margin:1rem 0}.tier-choice{border:1px solid var(--line);padding:.7rem;border-radius:8px}.tier-choice label{margin:0!important}.tier-choice small{display:block}.tier-choice select{margin-top:.4rem}.personal-tier{background:var(--soft);padding:.8rem 1rem;border-radius:9px;margin:.7rem 0}.personal-tier h3{margin:.2rem 0}.personal-tier ul{display:flex;flex-wrap:wrap;gap:.5rem 1rem;list-style:none;padding:0}.personal-tier li{border:1px solid var(--line);border-radius:5px;padding:.25rem .5rem;font-size:.85rem}[data-tier-maker] button{min-height:44px;border:1px solid var(--line);background:var(--soft);color:var(--ink);border-radius:7px;padding:.5rem .8rem}@media(max-width:680px){.tier-choices{grid-template-columns:1fr 1fr}}

footer.site .cols{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:1.5rem;width:100%}footer.site .cols ul{display:block}footer.site .cols li{margin:.4rem 0}footer.site .cols>div:first-child p{font-size:.8rem}header.site>.wrap{position:relative}@media(max-width:680px){footer.site .cols{grid-template-columns:1fr 1fr}footer.site .cols>div:first-child{grid-column:1/-1}}

footer.site .cols{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:1.5rem;width:100%}footer.site .cols ul{display:block}footer.site .cols li{margin:.4rem 0}footer.site .cols>div:first-child p{font-size:.8rem}header.site>.wrap{position:relative}@media(max-width:680px){footer.site .cols{grid-template-columns:1fr 1fr}footer.site .cols>div:first-child{grid-column:1/-1}}

footer.site .cols{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:1.5rem;width:100%}footer.site .cols ul{display:block}footer.site .cols li{margin:.4rem 0}footer.site .cols>div:first-child p{font-size:.8rem}header.site>.wrap{position:relative}@media(max-width:680px){footer.site .cols{grid-template-columns:1fr 1fr}footer.site .cols>div:first-child{grid-column:1/-1}}

footer.site .cols{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:1.5rem;width:100%}footer.site .cols ul{display:block}footer.site .cols li{margin:.4rem 0}footer.site .cols>div:first-child p{font-size:.8rem}header.site>.wrap{position:relative}@media(max-width:680px){footer.site .cols{grid-template-columns:1fr 1fr}footer.site .cols>div:first-child{grid-column:1/-1}}

footer.site .cols{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:1.5rem;width:100%}footer.site .cols ul{display:block}footer.site .cols li{margin:.4rem 0}footer.site .cols>div:first-child p{font-size:.8rem}header.site>.wrap{position:relative}@media(max-width:680px){footer.site .cols{grid-template-columns:1fr 1fr}footer.site .cols>div:first-child{grid-column:1/-1}}

footer.site .cols{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:1.5rem;width:100%}footer.site .cols ul{display:block}footer.site .cols li{margin:.4rem 0}footer.site .cols>div:first-child p{font-size:.8rem}header.site>.wrap{position:relative}@media(max-width:680px){footer.site .cols{grid-template-columns:1fr 1fr}footer.site .cols>div:first-child{grid-column:1/-1}}
