.board-card{color-scheme:light;color:#34291f;background:#fffbf2;position:fixed;inset:0;margin:auto;width:min(458px,calc(100vw - 24px));max-height:calc(100dvh - max(24px, env(safe-area-inset-top)) - max(16px, env(safe-area-inset-bottom)));padding:clamp(18px,4vw,30px);border:1px solid #fff4dd;border-radius:24px;overflow-y:auto;overscroll-behavior:contain;box-shadow:0 16px 64px #21150f59;font:500 14px/1.4 system-ui,sans-serif}.board-card::backdrop{background:#21181096;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}.board-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.board-header h2{font:650 clamp(24px,4.4vw,33px)/1.16 var(--serif);letter-spacing:-.035em}.board-header p,.board-name-form p{color:#716454;font-size:13px;margin:5px 0 0}.board-close,.board-pages button{display:inline-grid;place-items:center;width:44px;height:44px;border-radius:50%}.board-close{background:#eee8da;margin:-3px -4px 0 0;flex-shrink:0}.board-podium{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;align-items:end;margin:23px 0 16px}.podium-place{display:grid;justify-items:center;align-content:end;text-align:center;min-width:0;--step:#e7c1a9;--thread:#82472d;--height:36px}.podium-place[data-place="1"]{--step:#edca77;--thread:#77501c;--height:62px}.podium-place[data-place="2"]{--step:#ccd5bf;--thread:#475740;--height:48px}.podium-place svg{color:#8a5915;fill:#ffe3a0;margin-bottom:3px}.podium-name{max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:13px;font-weight:650}.board-pages span,.board-table td:last-child,.podium-time{font-variant-numeric:tabular-nums}.podium-time{font-size:12px;color:#635645;margin:1px 0 7px}.podium-step{display:grid;place-items:center;position:relative;width:100%;height:var(--height);border-radius:7px 7px 2px 2px;background:var(--step);color:var(--thread);font:italic 650 25px/1 var(--serif)}.podium-step:after{content:"";position:absolute;inset:4px;border:1px dashed;border-radius:4px;opacity:.32;pointer-events:none}.board-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:14px}.board-table th{font-size:12px;color:#756955;font-weight:500;text-align:start;padding:7px 8px;border-bottom:1px solid #d9cdb9}.board-table td{padding:8px;border-bottom:1px solid #e9e1d3;overflow-wrap:anywhere}.board-table td:first-child,.board-table th:first-child{width:18%;text-align:center}.board-table td:last-child,.board-table th:last-child{width:25%;text-align:end;white-space:nowrap}.board-table td:first-child{font-weight:650;color:#74634e}.board-table tr[data-current]{background:#f8e8bf}.board-table tr[data-current] td:first-child{box-shadow:inset 3px 0 #ab792c}.board-table small{display:inline-block;font-size:10px;font-weight:650;color:#795014;margin-inline-start:5px}.board-pages{display:flex;align-items:center;justify-content:center;gap:10px;margin:9px auto -7px;color:#675b4a}.board-pages button:disabled{opacity:.28}.board-pages span{font-size:12px}.board-name-form{display:grid;gap:6px;margin-top:16px;padding:14px;background:#f4eddd;border-radius:12px}.board-name-form label{font-size:13px;font-weight:650}.board-name-form input{width:100%;border:1px solid #c1af96;border-radius:7px;padding:8px 10px;font:inherit;font-size:16px;color:#34291f;background:#fffaf1}.board-name-form p{margin:0}.board-name-form>div{display:flex;align-items:center;gap:8px;margin-top:3px}.board-edit,.board-name-form button,.board-state button{min-height:44px;padding:0 12px;font-weight:650;border-radius:8px}.board-edit{margin-top:8px;background:#f4eddd}.board-name-form button[type=submit],.board-state button{background:#483829;color:#fff7e6}.board-state{display:grid;justify-items:center;gap:14px;padding:28px 0 16px;text-align:center}.board-feedback{margin-top:8px;color:#893d24}@media (hover:hover){.board-close:hover,.board-pages button:not(:disabled):hover{background:#e8dcbe}}@media (max-height:600px){.board-podium{margin-top:12px}}.perfect-score{position:fixed;inset:0;width:100%;height:100%;height:100dvh;max-width:none;max-height:none;margin:0;padding:max(12px,env(safe-area-inset-top)) 16px max(12px,env(safe-area-inset-bottom));border:0;background:transparent;color:#fff6df;text-align:center;overflow:clip auto}.perfect-score[open]{display:flex}.perfect-score::backdrop{background:transparent}.room-focus{--falloff:radial-gradient(ellipse 52% 54% at center,#000 0% 18%,rgb(0 0 0/.78) 43%,rgb(0 0 0/.24) 73%,transparent 93%);position:absolute;inset:0;pointer-events:none;visibility:hidden}.room-focus:after,.room-focus:before{content:"";position:absolute;inset:0;opacity:0}.room-focus:before{-webkit-backdrop-filter:blur(var(--room-focus-blur,2px));backdrop-filter:blur(var(--room-focus-blur,2px));-webkit-mask-image:var(--falloff);mask-image:var(--falloff)}.room-focus:after{background:radial-gradient(ellipse at 50% 39%,#251b165e 0,#1e171356 42%,#120e0c94 91%)}.room-focus[data-active]{visibility:visible}.room-focus[data-active]:after,.room-focus[data-active]:before{opacity:1}.perfect-content{position:relative;display:grid;justify-items:center;margin:auto;text-shadow:0 2px 12px #21150dce,0 1px 2px #21150d99}.reward-art{position:relative;width:min(76vw,64dvh,640px);aspect-ratio:1.42;pointer-events:none}.impact-aura,.impact-rays,.impact-ring,.reward-pillow{position:absolute;top:50%;left:50%;translate:-50% -50%}.reward-pillow{width:100%;aspect-ratio:1;transform:rotate(-4deg)}.reward-pillow img{display:block;width:100%;height:100%;filter:drop-shadow(0 14px 16px #17100a72)}.reward-effects{position:fixed;inset:0;overflow:clip;pointer-events:none}.reward-effects>span{left:var(--impact-x);top:var(--impact-y)}.impact-aura,.impact-rays{width:130vmax;aspect-ratio:1;opacity:0}.impact-aura{border-radius:50%;background:radial-gradient(closest-side,#f6c67a66,transparent 77%)}.impact-rays{background:repeating-conic-gradient(from 3deg,#ffe3a640 0deg .28deg,transparent .48deg 11deg);mask:radial-gradient(closest-side,transparent 10%,#000 35%,transparent 82%)}.impact-ring{width:42vmin;aspect-ratio:1;border:1.5px solid #ffdd9c;border-radius:50%;opacity:0}.perfect-content h2{position:relative;margin-top:clamp(12px,3dvh,32px)}.perfect-content h2 span{display:block;font:600 clamp(14px,2.2vmin,23px)/1.4 var(--serif);letter-spacing:.06em}.perfect-content h2 strong{display:block;margin-top:.04em;color:#ffe2a0;font:italic 600 clamp(62px,15vmin,174px)/.95 Georgia,serif;letter-spacing:-.075em;font-variant-numeric:lining-nums}.perfect-content p{margin:clamp(12px,2dvh,20px) 0 0;font:500 clamp(18px,2.9vmin,27px)/1.5 var(--serif)}@font-face{font-family:Cozy Hand;src:url(/bed/LongCang-Regular.woff2) format("woff2");font-display:swap}.round-result{display:grid;gap:2px;margin-top:5px;font:normal clamp(28px,3.8vmin,42px)/1.08 Cozy Hand,Kaiti SC,Kaiti TC,BiauKai,cursive}.round-result strong{font-weight:400}.site-rank{display:inline-flex;justify-self:center;align-items:baseline;gap:.25em;color:#ffefce;font-size:clamp(17px,2.2vmin,22px);line-height:1.1}.site-rank b{font:750 clamp(36px,5.2vmin,56px)/1 ui-rounded,system-ui,sans-serif;font-variant-numeric:lining-nums tabular-nums;letter-spacing:-.035em;color:#ffdb7a;text-shadow:0 1px 3px #36220d,0 2px 10px #39200d99}.rank-hash{font-size:.58em;margin-inline-end:.05em}@media (max-height:490px){.site-rank b{font-size:32px}}.reward-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:clamp(14px,3dvh,30px)}.reward-actions button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 18px;border-radius:12px;background:#f5dfb7;color:#31221b;font-size:15px;font-weight:600}.reward-actions .reward-back{color:#fff6df;background:#281c15aa}.board-gap{margin-block:4px;font:500 14px/1.4 system-ui,sans-serif}.reward-sign{display:flex;grid-column:1/-1;justify-content:center;gap:12px}.reward-sign button{min-height:44px;padding-inline:8px;color:#fff6df;font-size:14px;text-shadow:0 1px 4px #21150d}.reward-sign button:first-child{font-weight:650;text-decoration:underline;text-underline-offset:3px}.reward-actions button:active{translate:0 1px}.photo-seams{position:absolute;inset:0;width:100%;height:100%;overflow:visible;fill:none;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 2px #ffbd35a6)}.neon-halo{stroke:#d49217;stroke-opacity:.47;stroke-width:9}.neon-tube{stroke:#ffd91a;stroke-width:5.4}.neon-core{stroke:#fff8c9;stroke-width:1.9}.neon-head{stroke:#fffde6;stroke-width:4.3;stroke-dasharray:.033 1.2;opacity:0}.seam-flare{opacity:0;transform-box:fill-box;transform-origin:center;filter:drop-shadow(0 0 1.5px #ffbe33)}@media (max-height:470px){.reward-art{width:min(62vw,46dvh)}.perfect-content h2{margin-top:4px}.perfect-content p,.reward-actions{margin-top:6px}}@media (prefers-reduced-motion:no-preference){.room-focus{transition:visibility 0s linear .4s}.room-focus:after,.room-focus:before{transition:opacity .4s ease-in-out}.room-focus[data-active]{transition-delay:0s}.reward-pillow{animation:reward-launch 3.1s both}.perfect-content h2{animation:impact-type 1.48s .79s both}.impact-ring{animation:impact-wave 1.15s var(--impact) ease-out both}.impact-aura{animation:impact-bloom 1.65s .68s both}.impact-rays{animation:impact-rays 1.32s .81s both}.photo-seams path:not(.neon-head){stroke-dasharray:1;animation:reward-neon var(--burn) var(--impact) linear both}.photo-seams .neon-head{animation:neon-lead var(--burn) var(--impact) linear both}.seam-flare{animation:seam-contact .28s calc(var(--impact) + var(--burn) - 20ms) both}.perfect-content p{animation:reward-fade .88s 2.1s both}.reward-actions,.reward-sign{animation:reward-fade .72s 2.45s both}.reward-actions:focus-within{animation:none}}@keyframes reward-fade{0%{opacity:0}to{opacity:1}}@keyframes reward-launch{0%{opacity:0;transform:translate(var(--launch-x),var(--launch-y)) rotate(-14deg) scale(.14)}8%{opacity:1}20%{transform:translateY(-4dvh) rotate(4deg) scale(.88);animation-timing-function:cubic-bezier(.5,.02,.82,.54)}27.7%{transform:translateY(2dvh) rotate(-3deg) scale(1.14,.94);animation-timing-function:ease-out}36%{transform:translateY(-1dvh) rotate(-5deg) scale(1.025,1.075)}73%{transform:rotate(-4deg) scale(1.035)}to{transform:rotate(-4deg)}}@keyframes impact-type{0%{opacity:0;transform:translateY(11px) scale(1.42)}20%{opacity:1;transform:scale(.97)}42%,to{opacity:1;transform:none}}@keyframes impact-wave{0%{opacity:0;transform:scale(.48)}12%{opacity:.82}to{opacity:0;transform:scale(6)}}@keyframes impact-bloom{0%,to{opacity:0}19%{opacity:.92}50%{opacity:.45}}@keyframes impact-rays{0%{opacity:0;transform:scale(.46)}24%{opacity:1}to{opacity:0;transform:scale(1.27)}}@keyframes reward-neon{0%{opacity:0;stroke-dashoffset:1}10%,18%{opacity:1;stroke-dashoffset:.95}78%{stroke-dashoffset:.26}to{opacity:1;stroke-dashoffset:0}}@keyframes neon-lead{0%{opacity:0;stroke-dashoffset:.033}10%,18%{opacity:.95;stroke-dashoffset:-.017}78%{opacity:1;stroke-dashoffset:-.707}to{opacity:0;stroke-dashoffset:-.967}}@keyframes seam-contact{0%{opacity:0;transform:scale(.22)}17%{opacity:1;transform:scale(1.32)}43%{opacity:.84;transform:scale(.92)}to{opacity:0;transform:scale(.4)}}.perfect-score[data-replay] .reward-art{width:min(53vw,32dvh,345px)}.perfect-score[data-replay] .perfect-content h2{margin-top:8px}.perfect-score[data-replay] .perfect-content h2 strong{font-size:clamp(46px,8.4vmin,90px)}.perfect-score[data-replay] .perfect-content p{margin:7px 0 0;font-size:clamp(16px,2.3vmin,22px)}.perfect-score[data-replay] .reward-actions{margin-top:4px}.bed-replay{width:min(60vw,30dvh,256px);margin:2px 0 0}.bed-replay canvas{display:block;width:100%;height:auto;aspect-ratio:352/252;cursor:grab;touch-action:none}.bed-replay canvas:active{cursor:grabbing}.bed-replay canvas:focus-visible{outline:none}.bed-replay canvas:focus-visible+figcaption>span{text-decoration:underline;text-underline-offset:4px}.bed-replay figcaption{display:flex;align-items:center;justify-content:center;gap:3px;margin-top:-4px;color:#fff6df;font-size:13px;text-shadow:0 1px 4px #1a120c,0 1px 8px #170e08}.bed-replay button{width:44px;height:44px;font-size:23px;line-height:1;text-shadow:inherit}.bed-replay button:focus-visible{border-radius:50%;outline-offset:-4px}@media (prefers-reduced-motion:no-preference){.bed-replay{animation:reward-fade .52s 2.13s both}.perfect-score[data-replay] .reward-pillow{animation-name:replay-launch}.perfect-score[data-replay] :is(.impact-rays,.impact-aura,.impact-ring){top:calc(var(--impact-y) + 17dvh)}.perfect-score[data-replay] .perfect-content h2{animation-delay:1.89s}}@keyframes replay-launch{0%{opacity:0;transform:translate(var(--launch-x),var(--launch-y)) rotate(-14deg) scale(.22)}8%{opacity:1}20%{transform:translateY(12dvh) rotate(4deg) scale(1.62);animation-timing-function:cubic-bezier(.5,.02,.82,.54)}27.7%{transform:translateY(17dvh) rotate(-3deg) scale(2.08,1.81);animation-timing-function:ease-out}36%,67%{transform:translateY(13dvh) rotate(-4deg) scale(1.9);animation-timing-function:cubic-bezier(.23,.77,.23,1)}to{transform:rotate(-4deg)}}@media (max-height:490px) and (min-aspect-ratio:4/3){.perfect-score[data-replay] .perfect-content{grid-template-columns:1fr 1fr;column-gap:24px;align-items:center}.perfect-score[data-replay] .reward-art,.perfect-score[data-replay] h2,.perfect-score[data-replay] p{grid-column:1}.perfect-score[data-replay] .bed-replay{grid-column:2;grid-row:1/4;width:min(32vw,50dvh);margin:0}.perfect-score[data-replay] .reward-actions{grid-column:1/-1}}@font-face{font-family:Cozy Signature;src:url(/bed/Sacramento-Regular.woff2) format("woff2");font-display:swap}.perfect-score[data-sharing] .perfect-content,.perfect-score[data-sharing] .reward-effects{visibility:hidden}.result-share{position:fixed;inset:0;margin:auto;width:min(460px,calc(100% - 28px));max-height:calc(100dvh - 16px);overflow:auto;overscroll-behavior:contain;border:0;padding:6px 10px 12px;background:transparent;color:#fff3df}.result-share::backdrop{background:#1e170fbb;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.result-share header{display:flex;align-items:center;justify-content:space-between;margin:0 auto 16px}.result-share h2{margin:0;font:400 30px/1.1 Cozy Hand,var(--serif);outline:none}.share-close{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;color:#ffeed5}.share-close svg,.share-options svg{width:22px;height:22px;stroke-width:1.7}.share-print{position:relative;width:min(91%,calc(max(180px, 100dvh - 236px) * var(--print-ratio)));margin:0 auto;transform:rotate(-1.7deg)}.share-print:before{content:"";position:absolute;width:23%;height:18px;top:-8px;left:39%;z-index:1;transform:rotate(4deg);background:#e5c38bc9;clip-path:polygon(1% 0,100% 4%,98% 23%,100% 35%,98% 56%,100% 75%,98% 100%,0 96%,2% 75%,0 58%,2% 38%,0 19%)}.share-preview{display:grid;place-items:center;aspect-ratio:var(--print-ratio);background:#fff5df;color:#504332;border-radius:2px;overflow:hidden;box-shadow:0 10px 26px #140d0970,0 2px 4px #120d085c}.share-preview img{display:block;width:100%;height:100%}.share-preview span{max-width:80%;font-size:15px;text-align:center}.share-options{display:flex;justify-content:center;align-items:start;margin:24px auto 0;gap:2px}.share-options>*{flex:1 1 0;max-width:100px;min-width:0;min-height:58px;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;gap:7px;padding:8px 2px;border-radius:10px;text-align:center;font-size:13px;font-weight:550;line-height:1.3;color:#fff5e3;text-shadow:0 1px 5px #24170e}.share-options button:disabled{color:#cdbda8;opacity:.65}.share-close:focus-visible,.share-options>:focus-visible{outline:2px solid #ffdb8f;outline-offset:-2px}@media (hover:hover){.share-close:hover,.share-options button:enabled:hover,.share-options>:any-link:hover{background:#ffedcd16}}.result-share p,.result-share textarea{margin:10px auto 0;font-size:14px;text-align:center}.result-share textarea{display:block;width:100%;min-height:64px;text-align:start}@media (max-height:490px) and (min-aspect-ratio:4/3){.result-share{width:min(620px,calc(100% - 40px))}.result-share[open]{display:grid;grid-template-columns:1.3fr 1fr;column-gap:26px;align-items:center}.result-share header{grid-column:2;width:100%;align-self:end;margin:0}.share-print{grid-column:1;grid-row:1/4;width:min(92%,calc((100dvh - 68px) * var(--print-ratio)));margin-block:12px}.share-options{grid-column:2;align-self:start;display:grid;grid-template-columns:1fr 1fr;width:100%;margin:8px 0 0}.result-share p,.result-share textarea{grid-column:2}}@media (prefers-reduced-motion:no-preference){.result-share[open] .share-print{animation:postcard-in .36s cubic-bezier(.2,.75,.2,1) both}@keyframes postcard-in{0%{opacity:0;transform:translateY(8px) rotate(.5deg)}}}.share-formats{display:flex;justify-content:center;gap:4px;width:fit-content;margin:-8px auto 19px;padding:3px;border-radius:12px;background:#261d17d9}.share-formats button{min-height:40px;padding:0 16px;border-radius:9px;font-size:14px}.share-formats button[aria-pressed=true]{color:#33271d;background:#f5e5c7}.share-formats~.share-print{max-width:calc(max(155px, 100dvh - 286px) * var(--print-ratio))}.video-print{transform:none}.video-print:before{display:none}.video-print .share-preview{background:#31261e;color:#fff6df}.share-preview video{display:block;width:100%;height:100%;object-fit:contain}.video-preparation{width:100%;height:100%;display:grid;place-items:center;text-align:center;background-position:50%;background-size:cover}.video-preparation>div{display:grid;justify-items:center;gap:12px;padding:16px;border-radius:10px;background:#241a13ed}.video-preparation span{max-width:100%}.video-preparation progress{max-width:100%;height:5px;accent-color:#eac58b}.video-preparation button{min-height:44px;text-decoration:underline}@media (max-height:490px) and (min-aspect-ratio:4/3){.result-share .share-formats{grid-column:2;margin:6px auto}.share-formats~.share-print{grid-row:1/5;max-width:calc((100dvh - 68px) * var(--print-ratio))}}