body{background:#111411 url(assets/crumpled-black-paper.png) center center/cover fixed no-repeat}body:before{background:#090d0a35;z-index:-1}.paper-grain{opacity:.08}.header{background:#11151265;border-color:#b9b49d30}.header-inner{max-width:1320px;padding:16px 40px}.brand{font-size:31px}.brand>svg{width:34px;height:40px;transform:rotate(-5deg);filter:url(#crayon)}.cobwebs{position:fixed;inset:0;pointer-events:none;z-index:2;color:#c7c3af}.web{position:absolute;opacity:.18;width:190px;height:190px}.web-tl{top:0;left:0}.web-tr{top:0;right:0;transform:scaleX(-1);width:240px;height:240px}.web-bl{bottom:0;left:0;transform:scaleY(-1);width:135px;height:135px}.hero{display:flex;flex-direction:column;align-items:center;gap:0;padding:0 28px;max-width:1180px;min-height:0;margin:auto}.scene{width:100%;max-width:none;height:calc(100svh - 76px);min-height:480px;margin:0;display:grid;place-items:center;--machine-h:min( calc((100vw - 36px)/.8) , calc(100svh - 100px) ,760px)}.machine-wrap{position:relative;width:calc(var(--machine-h)*.8);height:var(--machine-h);max-width:none;transition:none;transform:none!important;opacity:1!important}.machine{width:100%;height:100%;object-fit:contain;pointer-events:none;display:block;filter:drop-shadow(0 16px 16px #0009)}.machine-handle{position:absolute;left:50%;top:67.5%;width:23%;height:17%;transform:translate(-50%,-50%);padding:0;border-radius:50%;z-index:4;background:transparent;cursor:pointer}.machine-handle:disabled{cursor:wait}.machine-handle:focus-visible{outline:2px dashed #ece5d4;outline-offset:5px}.machine-wrap button{width:23%;display:block;padding:0}.machine-wrap button:hover:not(:disabled){transform:translate(-50%,-50%)}.handle-shimmer{position:absolute;left:8%;right:7%;top:38%;height:25%;border-radius:8px;transform:rotate(35deg);background:linear-gradient(125deg,transparent 36%,#fff5d000 43%,#fff7d9ba 50%,#fff5d000 57%,transparent 65%);background-size:300% 100%;animation:handleSweep 2.8s ease-in-out infinite;mix-blend-mode:screen;pointer-events:none}.machine-handle:disabled .handle-shimmer{display:none}.handle-guide{position:absolute;left:81%;top:63%;width:150px;font-size:29px;line-height:1.2;text-align:left;transform:rotate(-6deg);color:#ece4cf;text-shadow:0 2px 8px #000;pointer-events:none}.handle-guide span{position:absolute;font-size:45px;left:-38px;top:11px;transform:rotate(5deg)}.load-status{position:absolute;bottom:30px;text-align:center;font-size:15px}.load-status .button{margin-left:20px;font-size:22px}.scene[data-state=idle] .load-status,.scene[data-state=rolling] .handle-guide{display:none}.scene[data-state=rolling] .machine{animation:machineRattle .14s infinite alternate}.scene:is([data-state=capsule],[data-state=opening],[data-state=revealed]) .machine-wrap{display:none}.scene:not([data-state=loading]):not([data-state=error]) .load-status{display:none}@keyframes handleSweep{0%,12%{background-position:120% 0;opacity:0}32%{opacity:.85}65%{background-position:-30% 0;opacity:.9}82%,to{background-position:-45% 0;opacity:0}}.capsule-stage{inset:0;display:flex;align-items:center;justify-content:center}.capsule-button{width:260px;height:270px;padding:0;border:0;box-shadow:none;filter:drop-shadow(0 10px 13px #000a);transform:rotate(-12deg);scale:1;background:transparent;overflow:visible}.capsule-shell{position:absolute;left:0;width:260px;height:140px;border:0;border-radius:0;box-shadow:none;background:none;backdrop-filter:none;overflow:visible;filter:url(#crayon)}.shell-top{top:0}.shell-bottom{top:130px}.shell-fill{fill:var(--capsule-dark);opacity:.46}.shell-top .shell-fill{fill:var(--capsule);opacity:.18}.shell-scribble{stroke:var(--capsule);stroke-width:7;stroke-linecap:round;stroke-linejoin:round;fill:none;opacity:.8}.shell-top .shell-scribble{opacity:.38}.shell-outline{fill:none;stroke:#eee6d4;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.shell-scuff{fill:none;stroke:#e9e3d2;stroke-width:3.5;opacity:.65;stroke-linecap:round}.capsule-face{fill:none;stroke:#e9e3d2;stroke-width:3;stroke-linecap:round}.note-panel{position:absolute;top:calc(50% + 184px);width:440px;max-width:96%;height:108px;background:url(assets/note-paper.svg) center/100% 100% no-repeat;display:grid;place-items:center;padding:12px 25px;transform:rotate(-2deg);filter:drop-shadow(0 6px 8px #0007)}#capsulePrompt{position:static;bottom:auto;padding:0;margin:0;background:none;font:28px/1.3 Pen;color:#292b24;word-break:keep-all;text-align:center}.scene[data-state=opening] .note-panel{opacity:0}.pop-word{top:calc(50% - 180px);right:calc(50% - 225px);font-size:65px}.scene[data-state=revealed] .capsule-stage{z-index:0;pointer-events:none}.scene[data-state=opening] .shell-top{animation:topPop 1.3s ease-out forwards}.scene[data-state=opening] .shell-bottom{animation:bottomPop 1.3s ease-out forwards}#cardMount{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none;z-index:4}.life-card{position:relative;top:auto;width:300px;min-height:440px;padding:16px 23px 15px;transform:rotate(-1deg);background:#222724 url(assets/paper.svg);background-blend-mode:soft-light;box-shadow:0 15px 30px #0009}.card-topline{font:11px/1.5 Malgun Gothic,sans-serif;color:#c7c7b8;letter-spacing:0;gap:15px}.card-topline time{font:11px/1.5 monospace}.card-tier{font-size:29px;line-height:1.2;margin-top:12px}.card-portrait{height:185px;margin:6px 0}.card-portrait>img{height:185px;max-width:100%}.card-country{gap:8px}.card-country h2{font-size:31px;line-height:1.15;word-break:keep-all}.card-country>.flag{flex-shrink:0}.card-gender{font-size:13px;margin-top:5px;line-height:1.6}.card-stats{margin-top:12px;padding-top:9px}.card-stats strong{font-size:29px}.card-stats span{font-size:12px}.card-footnote{font-size:11px;margin-top:11px;line-height:1.6}.life-card.is-new{animation:cardUnseal .85s cubic-bezier(.16,1,.3,1) both}.scene[data-tier=dirt] .life-card.is-new{animation-name:cardUnseal,dirtShake}.scene[data-tier=iron] .life-card{background-image:radial-gradient(ellipse at 3% 5%,#718e9b44,transparent 45%),radial-gradient(ellipse at 98% 100%,#495f704d,transparent 40%),url(assets/paper.svg)}.scene[data-tier=iron] .particle{background:#c5e3f2;box-shadow:0 0 8px #a4c8db}.scene[data-tier=iron] .burst-ring{border-color:#849cac;box-shadow:0 0 6px #809cac55}.scene[data-tier=iron] .card-tier>.spoon-icon,.life-card[data-tier=iron] .spoon-icon{fill:url(#rust)}@keyframes cardUnseal{0%{opacity:0;transform:translateY(100px) rotateY(65deg) rotate(-8deg) scale(.65)}to{opacity:1;transform:rotate(-1deg)}}.hero .result-actions{position:relative;display:flex;justify-content:center;gap:22px;margin:16px 0 4px;z-index:5}.result-actions .button{font-size:24px;min-height:45px;padding:7px 21px;gap:12px}.hero.is-result .scene{height:460px;min-height:0;margin:0}.hero.is-result .summary-tabs{margin:5px 0 0}.summary-tabs{display:grid;grid-template-columns:1.1fr .85fr 1.1fr 1fr .9fr;width:100%;max-width:1120px;margin:0;border:1px solid #a5a18d77;background:#121a15ba;box-shadow:0 10px 25px #0003}.summary-tabs button{display:flex;align-items:center;justify-content:flex-start;gap:13px;padding:16px 18px;min-width:0}.summary-tabs button+button{border-left:1px solid #a5a18d55}.summary-tabs button>span{display:block;min-width:0}.summary-tabs small{font-size:13px;color:#c1c3b3;display:block;line-height:1.5}.summary-tabs strong{font:27px/1.25 Pen;display:block;margin-top:4px;word-break:keep-all}.summary-tabs .summary-icon{width:34px;height:43px;flex-shrink:0;color:#ede8d9;filter:url(#crayon);object-fit:contain}.summary-tabs .flag{height:27px;filter:none}.summary-tabs .spoon-icon{width:28px;color:#252b23;fill:var(--tier)}.gender-doodle[data-gender=male]{filter:brightness(0) saturate(100%) invert(81%) sepia(14%) saturate(629%) hue-rotate(163deg)!important}.gender-doodle[data-gender=female]{filter:brightness(0) saturate(100%) invert(80%) sepia(18%) saturate(801%) hue-rotate(298deg)!important}.details{max-width:1120px;margin:38px auto 0;padding:0}.details .detail-section{scroll-margin-top:25px}.body-doodle{width:42px;height:48px;right:28px;top:25px;color:#e3dece;filter:url(#crayon)}.tier-range{font-size:15px}.explanation p{color:#d0d1c3}.exchange-note{font-size:14px;color:#c3c6b4;margin-top:16px}.world-note{margin:25px 25px 30px}body:not(:has(#scene[data-state=revealed])) footer{display:none}.history-list{grid-template-columns:repeat(auto-fill,208px);justify-content:center;gap:26px 24px;margin:25px 0 32px}.history-card{position:relative;display:block;width:208px;height:310px;padding:0;border:0;box-shadow:none;background:none;overflow:visible}.history-card>.life-card{position:absolute;left:0;top:0;transform:scale(.69);transform-origin:top left;pointer-events:none;box-shadow:0 10px 20px #0008}.history-card:hover{background:none;transform:translateY(-4px)}.history-card:focus-visible{outline:2px dashed #ddd6c0;outline-offset:8px}.history-card :is(strong,p,small){color:inherit}.history-card .card-gender,.history-card .card-topline,.history-card .card-footnote{color:#c4c9b6}.history-card .card-tier{color:var(--tier)}.history-card .card-stats strong{font:29px Pen}.history-card .card-country h2{font:31px/1.15 Pen}.history-card .card-stats p{font:inherit}#historyDialog{max-width:1080px;background:#18201be8 url(assets/paper.svg);background-blend-mode:soft-light}.trash-button{margin:8px auto 0;display:flex;gap:12px;font-size:25px;min-height:52px}.trash-button>svg{width:29px;height:33px;color:#eee5d3;filter:url(#crayon)}.trash-button:after{border-color:#d5c9ad77}.card-popup{width:400px;max-width:calc(100vw - 16px);padding:18px 35px 16px;background:none!important;border:0;box-shadow:none;overflow:visible;max-height:94svh}.card-popup::backdrop{background:#060a07b8;backdrop-filter:blur(12px)}.card-popup .life-card{margin:0 auto;transform:none}.popup-close{position:absolute;right:0;top:10px;z-index:6;font-size:40px;color:#f0e7d2}.popup-actions{display:flex;justify-content:center;margin:0 0 20px}.popup-actions .button{font-size:24px;min-height:43px;padding:7px 20px}dialog{background:#19201bec url(assets/paper.svg);background-blend-mode:soft-light}dialog::backdrop{backdrop-filter:blur(8px);background:#050907bc}@media(max-height:800px)and (min-width:721px){.hero.is-result .scene{height:400px}#cardMount>.life-card{scale:.87}.hero .result-actions{margin-top:10px}.summary-tabs button{padding-top:12px;padding-bottom:12px}.scene{--machine-h:min( calc((100vw - 36px)/.8) , calc(100svh - 95px) ,690px)}}@media(max-height:680px)and (min-width:721px){.hero.is-result .scene{height:337px}#cardMount>.life-card{scale:.74}.summary-tabs button{padding:10px 16px}.header-inner{padding:12px 30px}}@media(max-width:1050px){.summary-tabs button{padding:15px 12px;gap:9px}.summary-tabs strong{font-size:25px}.details{margin-left:30px;margin-right:30px}}@media(max-width:720px){.header-inner{padding:13px 18px}.brand{font-size:28px}.brand>svg{width:29px;height:34px}.hero{padding:0 18px}.scene{height:calc(100svh - 65px);min-height:455px;--machine-h:min( calc((100vw - 30px)/.8) , calc(100svh - 120px) ,680px)}.machine-wrap{max-width:none}.machine{width:100%;height:100%}.handle-guide{left:76%;top:63%;width:110px;font-size:24px}.handle-guide span{font-size:37px;left:-31px;top:4px}.web{width:115px;height:115px;opacity:.17}.web-tr{width:145px;height:145px}.web-bl{width:90px;height:90px}.capsule-button{width:250px;height:260px;scale:1}.capsule-shell{width:250px;height:135px}.shell-bottom{top:125px}.note-panel{width:360px;max-width:100%;height:95px;top:calc(50% + 162px);padding:14px 21px}#capsulePrompt{font-size:25px}.pop-word{font-size:55px;right:-2px;top:calc(50% - 180px)}.hero .result-actions{margin-top:12px;margin-bottom:0;gap:20px}.result-actions .button{font-size:23px;min-height:43px;padding:7px 19px}.hero.is-result .scene{height:422px;min-height:0;margin:0}#cardMount>.life-card{scale:.9}.hero.is-result .summary-tabs{margin:0}.summary-tabs{grid-template-columns:repeat(6,1fr);width:100%}.summary-tabs button{grid-column:span 2;padding:12px 9px;gap:7px;min-height:69px;justify-content:center}.summary-tabs button:nth-child(4),.summary-tabs button:nth-child(5){grid-column:span 3;border-top:1px solid #a5a18d55}.summary-tabs button:nth-child(4){border-left:0}.summary-tabs small{font-size:12px}.summary-tabs strong{font-size:23px;margin-top:2px;line-height:1.15}.summary-tabs .summary-icon{width:28px;height:36px}.summary-tabs .flag{width:27px;height:20px}.summary-tabs .spoon-icon{width:23px}.details{margin:32px 20px 0}.life-card{width:300px;min-height:440px}.card-country h2{font-size:31px}.card-portrait{height:185px}.card-portrait>img{height:185px}.card-topline,.card-footnote{font-size:11px}.summary-tabs .summary-icon{display:block}.body-doodle{width:35px;height:42px}.tier-range{font-size:13px}.history-list{grid-template-columns:repeat(2,146px);gap:17px 16px}.history-card{width:146px;height:221px}.history-card>.life-card{transform:scale(.486)}#historyDialog{padding:24px 18px}.card-popup{padding:14px 10px 16px;width:340px}.card-popup .life-card{width:300px}.popup-close{right:-1px;top:3px;font-size:34px}.popup-actions{margin-bottom:18px}.card-popup{max-height:94svh}.world-note,.exchange-note{font-size:13px}}@media(max-width:720px)and (max-height:760px){.hero.is-result .scene{height:364px}#cardMount>.life-card{scale:.78}.summary-tabs button{padding-top:9px;padding-bottom:9px;min-height:63px}.scene{--machine-h:min( calc((100vw - 30px)/.8) , calc(100svh - 110px) ,630px)}}@media(max-width:720px)and (max-height:650px){.hero.is-result .scene{height:300px}#cardMount>.life-card{scale:.65}.summary-tabs button{min-height:54px;padding-top:6px;padding-bottom:6px}.summary-tabs strong{font-size:21px}.card-popup #popupCardMount{height:365px}.card-popup .life-card{scale:.78;transform-origin:top center}}@media(max-width:360px){.header-inner{padding:13px}.header nav{gap:10px}.brand{font-size:25px}.hero{padding:0 12px}.machine-wrap{max-width:none}.handle-guide{font-size:23px;width:95px;left:74%}.summary-tabs button{gap:5px;padding-left:6px;padding-right:6px}.summary-tabs strong{font-size:21px}.summary-tabs small{font-size:11px}.summary-tabs .summary-icon{width:24px;height:32px}.note-panel{height:96px;max-width:100%}#capsulePrompt{font-size:23px}.history-list{grid-template-columns:repeat(2,132px);gap:15px 10px}.history-card{width:132px;height:202px}.history-card>.life-card{transform:scale(.44)}.trash-button{font-size:22px;padding-left:13px;padding-right:13px}.result-actions .button{font-size:21px;padding:7px 16px}.card-popup{padding-left:0;padding-right:0}.card-popup .life-card{width:280px}.popup-close{right:0;top:4px}}.tier-burst{overflow:hidden}#cardMount>.life-card{position:absolute;left:50%;top:50%;translate:-50% -50%;margin:0}.hero.is-result .summary-tabs{margin-top:12px}.hero .result-actions{margin-bottom:10px}.toast{width:max-content;max-width:calc(100vw - 32px)}@media(max-width:720px){.handle-guide{left:73%;width:94px;font-size:23px}}@media(max-width:360px){.handle-guide{left:70%;width:87px;font-size:22px}}@media(prefers-reduced-motion:reduce){.handle-shimmer{animation:none;opacity:.2}.life-card.is-new{animation:none}.capsule-shell{animation-duration:.01ms!important}}
