:root{--muted:#b6b1a5;--red:#d3c9b6}body{background-color:#171716;isolation:isolate}.header,main,footer{position:relative;z-index:1}.brand,.nav-frame{color:#42413d;border-color:#c7c0af;box-shadow:inset 0 0 0 3px #e6e2d6,inset 0 0 0 4px #858075}.brand>svg{color:#55524b;stroke:#55524b}#historyCount{color:#514e47;border-color:#918a7c}.paper-control,.collection-tools button,.history-actions button,.card-tools button{position:relative;background:#e6e1d4;color:#3d3933;border:1px solid #b5ad9c;border-radius:2px;box-shadow:inset 0 0 0 3px #e6e1d4,inset 0 0 0 4px #938b7a;transition:background .2s,box-shadow .2s;line-height:1.4}.paper-control:after,.collection-tools button:after,.history-actions button:after,.card-tools button:after{content:"";position:absolute;inset:3px -3px -3px 2px;border:1px solid #a39b88;transform:rotate(-.65deg);pointer-events:none}.paper-control:hover,.collection-tools button:hover,.history-actions button:hover,.card-tools button:hover{background:#f7f0df}.paper-control:focus-visible,.collection-tools button:focus-visible,.history-actions button:focus-visible,.card-tools button:focus-visible{outline:2px dashed #847968;outline-offset:5px}.pack-result[aria-pressed=true],.history-actions button[aria-pressed=true],.card-tools button[aria-pressed=true]{background:#45413b;color:#fff6e2;box-shadow:inset 0 0 0 3px #45413b,inset 0 0 0 4px #c1b7a1}.result-actions .pack-result{color:#eee7da;border-color:#a59b88;background:#232220}.result-actions .pack-result[aria-pressed=true]{background:#e6e1d4;color:#39362f}.paper-dialog{color:#403c35;background-color:#e6e1d4}.history-notice,.history-empty p{color:#6e6659}.map-panel,.body-stats article,.wealth-highlight,.wealth-facts>div{background-color:#232220}.map-country{fill:#57534c;stroke:#24221e}.scene[data-state=rolling] .machine-wrap,.scene[data-state=rolling] .machine{animation:none!important;translate:none;rotate:none}.machine-wrap .machine-handle{left:40.75%;top:59.1%;width:19.5%!important;height:15.6%;transform:none!important}.handle-scale{position:absolute;inset:0;display:block;scale:1;transform-origin:center;transition:scale .34s cubic-bezier(.2,.7,.25,1)}.machine-handle:is(:hover,:focus-visible):not(:disabled) .handle-scale,.scene[data-state=rolling] .handle-scale{scale:1.08}.handle-art,.machine-handle:is(:hover,:focus-visible):not(:disabled) .handle-art{inset:0;width:100%;height:100%;scale:1;transform-origin:78px 78px;transform-box:view-box;transition:none;overflow:hidden;border-radius:50%}.handle-art,.machine-handle:is(:hover,:focus-visible):not(:disabled) .handle-art{transform-origin:50% 50%}.handle-shimmer,.machine-handle:is(:hover,:focus-visible):not(:disabled) .handle-shimmer{scale:1;transition:none;inset:0}.scene[data-state=rolling] .handle-art{animation:fixedHandleTurn 2.65s cubic-bezier(.3,.02,.3,1) both}@keyframes fixedHandleTurn{0%{transform:rotate(0)}12%{transform:rotate(-11deg)}35%{transform:rotate(90deg)}62%{transform:rotate(205deg)}88%{transform:rotate(335deg)}to{transform:rotate(360deg)}}.sound-button{position:relative;touch-action:pan-y;user-select:none;overflow:hidden;min-width:56px;padding-bottom:9px!important}.volume-meter{position:absolute!important;left:5px;right:5px;bottom:2px;height:3px;border-radius:3px;background:linear-gradient(to right,#e5dcc6 var(--volume),#77706455 var(--volume));margin:0!important;pointer-events:none}.sound-button.adjusting-volume{cursor:ew-resize;opacity:1}.sound-button.adjusting-volume:after{content:attr(data-volume) "%";position:absolute;inset:0;display:grid;place-items:center;background:#24221f;color:#fff3db;font:12px KboDia}.birth-background{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:0;contain:strict}.birth-capsule{position:absolute;top:0;width:54px;height:58px;will-change:transform,opacity}.birth-shell{display:block;width:54px;height:58px;border-radius:48% 48% 46% 46%;border:2px solid color-mix(in srgb,var(--birth-color) 60%,#eee6d1);background:linear-gradient(165deg,transparent 15%,#fff4 18%,transparent 28%),linear-gradient(to bottom,color-mix(in srgb,var(--birth-color) 20%,transparent) 49%,#efe4d3 49% 52%,var(--birth-color) 52%);box-shadow:inset 4px -5px 12px #0009,0 7px 8px #0004}.birth-caption{position:absolute;bottom:72px;left:50%;width:max-content;max-width:270px;translate:-50% 0;color:#eee7d6;font:17px/1.35 Pen;text-align:center;text-shadow:0 2px 5px #000;transform-origin:50% 98px}.scene[data-state=revealed] #cardMount>.life-card,.scene[data-state=revealed] #cardMount>.life-card.is-new{animation:resultCardFloat 3.6s ease-in-out infinite}@keyframes resultCardFloat{0%,to{transform:translate(-3px,4px) rotate(-1.6deg)}50%{transform:translate(4px,-9px) rotate(1.5deg)}}.card-wrap{display:none;position:absolute;inset:-5px;z-index:8;border-radius:12px 8px 10px 9px;border:1px solid #fff3dba6;pointer-events:none;overflow:hidden;background:linear-gradient(114deg,#fff7e31a 0%,transparent 25%,#fff8eb0a 62%,#fff9ed23 100%);box-shadow:inset 2px 1px #fff9ed88,inset -3px -2px #efe5c962,0 0 0 2px #eee6d422,0 3px 7px #0005}.life-card[data-packed=true]>.card-wrap{display:block}.wrap-seam{position:absolute;inset:7px 5px;border:1px solid #fff5d940;border-top:2px solid #fff7e18c;border-bottom:3px double #f9edcb9c;border-radius:7px;clip-path:polygon(0 0,100% 0,100% 100%,0 100%)}.card-wrap:before,.card-wrap:after{content:"";position:absolute;width:35px;height:35px;border:1px solid #fff7dca8;rotate:45deg}.card-wrap:before{left:-18px;top:-18px}.card-wrap:after{bottom:-18px;right:-18px}.wrap-glint{position:absolute;inset:-60%;rotate:-25deg;background:linear-gradient(90deg,transparent 37%,#fff9ea26 45%,#fff 48%,#fff9ea2b 51%,transparent 60%);opacity:.13;animation:sleeveGlint 5s ease-in-out infinite}@keyframes sleeveGlint{0%,20%{translate:-35% 0}75%,to{translate:35% 0}}.custom-corner{position:absolute;left:-1px;top:-1px;width:47px;height:47px;z-index:9;background:#e6ddc7;color:#494338;clip-path:polygon(0 0,100% 0,0 100%);filter:drop-shadow(2px 2px 2px #0008);pointer-events:none}.custom-corner svg{position:absolute;left:3px;top:2px;width:23px;height:23px;rotate:-7deg}.collection-tools{padding:17px 30px;background:#e6e1d4;border-color:#91857166;gap:14px}.collection-toggles,.collection-edit{display:flex;gap:12px;align-items:center}.collection-edit{margin-left:auto}.collection-tools button,.collection-tools .trash-button{font:23px/1.25 Pen;padding:9px 14px;min-height:44px;color:#403c35;white-space:nowrap}.collection-tools .make-custom{background:#e6e1d4;color:#403c35}.collection-tools .trash-button svg{color:#676054}.history-actions{gap:11px;padding:11px 2px 0}.history-actions button{font:20px/1.3 Pen;min-height:38px;color:#4d453a}.card-popup{display:none}.card-popup[open]{display:flex;flex-direction:column;align-items:center;gap:12px}.card-popup .popup-actions{order:0;margin-bottom:8px}.card-popup #popupCardMount{order:1;margin:7px auto 14px}.card-popup .card-tools{order:2;margin:5px auto 15px}.card-tools button{font:24px/1.3 Pen;padding:8px 16px;color:#4d453a}.custom-dialog{width:800px;color:#403c35}.custom-dialog>.dialog-heading{background:#e6e1d4;border-color:#93867366}.custom-layout{display:flex;flex-direction:column;gap:20px;max-width:680px;margin:auto}.custom-preview-shelf{align-self:center;position:relative;padding:6px 22px 14px;border-bottom:1px dashed #968b7580}.custom-preview{position:relative;top:auto;width:174px;height:255px;padding:0;grid-row:auto}.custom-preview .life-card{transform:scale(.58);transform-origin:top left;animation:none}.custom-preview .awaiting-tier{filter:grayscale(1);opacity:.62}.custom-fields{width:100%;gap:18px 22px;padding:25px;background:#282521 url(assets/crumpled-black-paper.png) center/cover;color:#e8deca;border:1px solid #696052;box-shadow:3px 5px 9px #27201833;rotate:-.35deg}.custom-fields label{position:relative;font:17px/1.4 KboDia;color:#e2d8c3;gap:8px;min-width:0}.field-optional{font:12px KboDia;color:#b5a994}.custom-fields input,.custom-fields select{border:0;border-bottom:1px dashed #b9ac9280;border-radius:0;color:#f5ebd7;background:#15141166;font:19px/1.4 Pen;padding:10px 12px;min-height:46px;box-shadow:inset 0 -1px #0007}.custom-fields select option{background:#292621;color:#f0e5ce}.custom-fields input::placeholder{color:#b6ab98;opacity:.65}.custom-fields input:focus-visible,.custom-fields select:focus-visible{outline:1px dashed #f1dfbb;outline-offset:3px;background:#12110f99}.country-field{min-width:0}.country-field .custom-hint{margin:13px 0 0;color:#beb29c;font:12px/1.6 KboDia}#countryToggle{display:flex;align-items:center;gap:12px;cursor:pointer;list-style:none;padding:12px 15px;font:21px Pen;color:#454035;min-width:0}#countryToggle::-webkit-details-marker{display:none}#countryToggle strong{margin-left:auto;font-weight:400;overflow-wrap:anywhere}.country-search{margin-top:18px}.country-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-height:280px;overflow:auto;overscroll-behavior:contain;padding:15px 4px 5px;margin-top:8px;scrollbar-color:#b8a98a #27231e}.country-picker button{display:flex;align-items:center;gap:8px;padding:9px 8px;border:1px solid #7c705855;background:#15141170;color:#e7dcc5;font:12px/1.45 KboDia;text-align:left;min-height:45px;overflow-wrap:anywhere}.country-picker button[hidden]{display:none}.country-picker button[aria-pressed=true]{outline:1px dashed #e1cfaa;background:#514a3d}.country-picker img{width:24px;height:17px;object-fit:cover;flex:none}.spoon-field{width:100%;margin:0!important;padding:8px 0 0!important;border:0!important}.spoon-field legend{font:28px Pen!important;color:#5c5243;margin-bottom:10px}.spoon-choices{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px;padding:4px 3px}.spoon-choices button{aspect-ratio:1;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;background:#24211d url(assets/black-parchment.png) center/cover;border:1px solid color-mix(in srgb,var(--choice) 55%,#60543e);border-radius:5px;color:var(--choice);box-shadow:inset 0 0 0 4px #24201d,inset 0 0 0 5px color-mix(in srgb,var(--choice) 35%,transparent);transition:box-shadow .25s,translate .25s;position:relative}.spoon-choices .spoon-icon{width:25%;height:46%;color:var(--choice);fill:currentColor;stroke:currentColor;filter:url(#crayon) drop-shadow(0 0 3px currentColor);rotate:12deg}.spoon-choices span{font:21px Pen;white-space:nowrap}.spoon-choices button[aria-pressed=true]{outline:2px solid var(--choice);outline-offset:3px;box-shadow:0 0 20px color-mix(in srgb,var(--choice) 45%,transparent),inset 0 0 18px color-mix(in srgb,var(--choice) 18%,transparent);translate:0 -3px}.spoon-note{width:100%;min-height:180px;padding:25px;background:#27231f url(assets/crumpled-black-paper.png) center/cover;color:#eaddc4;border:1px solid #7e715c;rotate:.4deg;box-shadow:3px 5px 10px #3328172b;display:grid;align-items:center}#spoonPrompt{text-align:center;font:30px Pen;animation:spoonPromptFade 2.4s ease-in-out infinite}@keyframes spoonPromptFade{0%,to{opacity:.4}50%{opacity:1}}#spoonFacts{animation:noteFactsArrive .35s ease-out}#spoonFacts[hidden],#spoonPrompt[hidden]{display:none}@keyframes noteFactsArrive{0%{opacity:0;translate:0 6px}to{opacity:1;translate:0 0}}#customTierResult{font:34px Pen}#spoonFacts dl{margin:12px 0}#spoonFacts dl>div{display:grid;grid-template-columns:145px 1fr;gap:14px;padding:9px 0;border-bottom:1px dashed #ae9d7c44;font:13px/1.6 KboDia}#spoonFacts dt{color:#c4b495}#spoonFacts dd{margin:0;text-align:right}#customRankValue{font:24px Pen;margin-top:14px}#customRankGauge{width:100%;height:7px;border:0;accent-color:#dfcfac;background:#74674e55;border-radius:4px}#customRankGauge::-webkit-progress-bar{background:#74674e55;border-radius:4px}#customRankGauge::-webkit-progress-value{background:#dfcfac;border-radius:4px}#spoonFacts small{display:block;margin-top:12px;font:11px/1.8 KboDia;color:#ac9e83}.custom-submit.paper-control{font:28px Pen;background:#e6e1d4;color:#403c35;min-height:50px;margin:0 0 15px}.custom-error{margin:0;min-height:0;color:#8c372d}.custom-fields,.spoon-note{background-image:linear-gradient(#171511a6,#171511a6),url(assets/crumpled-black-paper.png)}.paper-dialog .spoon-note p,.paper-dialog .spoon-note strong,.paper-dialog .spoon-note dd{color:#eee2ca}.paper-dialog .spoon-note dt{color:#d1c1a2}.paper-dialog .spoon-note small{color:#c0af90}.custom-fields input::placeholder{color:#c6bba5;opacity:.8}.country-culture h3{color:#ede3ce}@media(max-width:720px){.collection-tools{padding:13px 18px;gap:15px;width:100%}.collection-toggles,.collection-edit{gap:10px}.collection-toggles{width:100%;justify-content:space-between}.collection-edit{margin-left:auto;justify-content:flex-end}.collection-tools button,.collection-tools .trash-button{font:21px/1.3 Pen;padding:8px 10px;min-height:40px}.history-actions{gap:8px}.history-actions button{font:17px/1.3 Pen;padding:5px 4px}.card-tools button{font-size:24px}.custom-dialog .dialog-scroll{padding:18px 16px}.custom-layout{gap:18px}.custom-fields{padding:19px 16px;gap:16px 12px}.custom-fields label{font-size:13px}.custom-fields input,.custom-fields select{font-size:20px;padding:9px 8px}.field-optional{font-size:11px}.custom-preview{width:150px;height:220px}.custom-preview .life-card{transform:scale(.5)}.custom-preview-shelf{padding-bottom:12px}#countryToggle{font-size:23px;padding:10px;gap:7px}.country-picker{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.country-picker button{font-size:11px}.spoon-choices{gap:8px}.spoon-choices span{font-size:18px}.spoon-choices button{gap:4px}.spoon-field legend{font-size:27px!important}.spoon-note{padding:20px 15px;min-height:160px}#spoonPrompt{font-size:26px}#spoonFacts dl>div{grid-template-columns:100px 1fr;gap:8px;font-size:11px}#spoonFacts small{font-size:10px}.custom-submit.paper-control{font-size:26px}.birth-caption{font-size:15px;max-width:210px}.birth-capsule,.birth-shell{width:39px;height:43px}}@media(max-width:360px){.spoon-choices{gap:6px}.spoon-choices span{font-size:16px}.collection-tools{padding-left:14px;padding-right:14px}.collection-tools button,.collection-tools .trash-button{font-size:20px;padding:7px 9px}.collection-edit{gap:9px}.custom-fields{padding:16px 12px}.custom-dialog .dialog-scroll{padding-left:14px;padding-right:14px}#countryToggle{font-size:21px}.spoon-note{padding:18px 12px}}@media(prefers-reduced-motion:reduce){.birth-background{display:none}.handle-scale{transition:none}.scene[data-state=rolling] .handle-art,.scene[data-state=revealed] #cardMount>.life-card,.scene[data-state=revealed] #cardMount>.life-card.is-new,.wrap-glint,#spoonPrompt{animation:none!important}#spoonFacts{animation:none}}
