body.approved-home{background:#000;color:#fff;min-height:100vh;display:grid;place-items:center}body.approved-home>header,body.approved-home>footer{display:none}body.approved-home #app{width:100%}
body.approved-home .layered-home{position:relative;isolation:isolate;container-type:inline-size;width:min(100vw,150vh);aspect-ratio:3/2;background:#000;margin:auto;color:#faf9f6}
.home-navigation{display:flex;align-items:center;justify-content:space-between;position:absolute;top:2.6%;left:4.5%;right:4.5%;z-index:8}
.home-logo{font:1000 3.5cqw/1 PuHuiTi,Arial,sans-serif;letter-spacing:-.08em}
.home-navigation nav{display:flex;align-items:center;gap:3.6cqw;font-size:1cqw}
.home-menu-toggle{border:0;background:transparent;color:inherit;font-size:2cqw;padding:8px;cursor:pointer}
.home-dropdown{position:absolute;right:4%;top:9%;z-index:9;background:#101114;border:1px solid #555;padding:15px 24px}
.home-dropdown a{display:block;padding:12px}.home-dropdown[hidden]{display:none}
.home-title{position:absolute;z-index:1;left:29%;right:29%;top:4.2%;margin:0;font:1000 7.9cqw/.79 PuHuiTi,"Arial Black",Arial,sans-serif;letter-spacing:-.065em;text-align:center}
.home-title span{display:block;white-space:nowrap}
.home-note{position:absolute;top:26%;left:69%;z-index:2;color:#ff4928;font:italic 1.7cqw/1.4 cursive;transform:rotate(-12deg);border-bottom:2px solid #ff4928;padding:0 0 8px}
.home-scene{position:absolute;inset:0;pointer-events:none}
.home-scene>img{position:absolute;height:auto;object-fit:contain;pointer-events:none}
.home-ground{left:19%;top:51%;width:56%;z-index:2}
.home-character{left:35.6%;top:43.8%;width:27%;z-index:4}
.home-dice{position:absolute;left:38.6%;top:22%;width:23.6%;aspect-ratio:1;border:0;background:none;padding:0;z-index:3;pointer-events:auto;cursor:pointer;touch-action:manipulation}
.home-idle-dice{display:block;width:100%;height:100%;object-fit:contain}
.home-dice:disabled{cursor:wait}.home-dice:focus-visible{outline:2px solid #ffe731;outline-offset:3px}
.home-categories{position:absolute;left:16%;right:16%;top:83%;display:grid;grid-template-columns:repeat(5,1fr);z-index:6}
.home-category{position:relative;display:flex;align-items:center;flex-direction:column;gap:.35cqw;padding:.5cqw 1cqw;line-height:1.4;text-align:center}
.home-category+.home-category:before{content:"";position:absolute;left:0;bottom:15%;width:1px;height:25%;background:#777}
.home-category i{width:2cqw;height:2cqw;display:block;margin-bottom:.5cqw;background:var(--choice-color)}
.category-planning{--choice-color:#ff4b23}.category-planning i{clip-path:polygon(65% 0,100% 100%,0 66%)}
.category-reporting{--choice-color:#0754ff}.category-reporting i{border-radius:50%}
.category-photo{--choice-color:#ffe52e}
.category-video{--choice-color:#00ddb3}.category-video i{clip-path:polygon(0 0,100% 50%,0 100%)}
.home-category small{color:var(--choice-color);font-size:.85cqw;letter-spacing:.15em}
.home-category strong,.home-category span{font-size:.92cqw;letter-spacing:.15em}
/* The entire selected tile fades in; text and icon contrast follow its palette. */
.home-category{--selected-bg:#f6f2e8;--selected-ink:#101114;transition:background-color .5s ease,color .5s ease;isolation:isolate}
.category-reporting{--selected-bg:#194be0;--selected-ink:#fff}.category-photo{--selected-bg:#ffe52e;--selected-ink:#111}.category-video{--selected-bg:#00d9ab;--selected-ink:#09251e}
.home-category i{transition:transform .5s cubic-bezier(.2,.7,.2,1),background-color .5s ease}.home-category small{transition:color .5s ease}
.home-category.dice-selected{background:var(--selected-bg);color:var(--selected-ink);outline:0;box-shadow:none}
.home-category.dice-selected small{color:var(--selected-ink)}.home-category.dice-selected i{background:var(--selected-ink);transform:scale(1.18)}

.home-roll-status{position:absolute;bottom:1.5%;left:8%;right:8%;font-size:12px;text-align:center;color:#d8d3c6}
@media(max-width:700px){
 body.approved-home{display:block}.layered-home{width:100%!important;aspect-ratio:auto!important;min-height:100svh;padding:20px 18px 30px;box-sizing:border-box}
 .home-navigation{position:relative;inset:auto}.home-logo{font-size:36px}.home-navigation nav{gap:22px;font-size:12px}.home-menu-toggle{font-size:23px;padding:5px}
 .home-title{position:relative;inset:auto;margin:42px auto 8px;font-size:16cqw;line-height:.83;width:100%;letter-spacing:-.06em}
 .home-note{position:relative;inset:auto;width:max-content;margin:18px 6% 8px auto;font-size:16px;line-height:1.25}
 .home-scene{position:relative;inset:auto;width:100%;aspect-ratio:1.3}
 .home-ground{left:0;top:51%;width:100%}.home-character{left:25%;top:31%;width:52%}.home-dice{left:31.5%;top:-5.5%;width:44%}
 .home-categories{position:relative;inset:auto;margin:20px 0 0;gap:4px}
 .home-category{padding:10px 2px;gap:5px}.home-category i{width:22px;height:22px;margin-bottom:7px}
 .home-category small{font-size:11px}.home-category strong{font-size:10px;letter-spacing:.09em}.home-category span{font-size:12px;letter-spacing:0}
 .home-category+.home-category:before{height:25%;bottom:15%}
 .home-roll-status{position:relative;display:block;inset:auto;margin-top:20px;font-size:12px;min-height:2.8em}
 .home-dropdown{top:65px;right:18px}
}


.home-roll-status{padding:5px 12px;transition:background-color .5s ease,color .5s ease}.home-roll-status.dice-selected{background:#ffe52e;color:#111}

@media(prefers-reduced-motion:reduce){.home-roll-status{transition:none}}

.home-motion-toggle{position:absolute;right:4%;bottom:2%;z-index:7;background:#151515;color:#ddd;border:1px solid #666;padding:7px 10px;font:12px PuHuiTi,sans-serif;cursor:pointer}.home-motion-toggle:focus-visible{outline:2px solid #ffe52e}.home-motion-toggle:disabled{opacity:.65}
@media(max-width:700px){.home-motion-toggle{position:relative;display:block;inset:auto;margin:16px auto 0}}

.category-about{--choice-color:#b693ff;--selected-bg:#b693ff;--selected-ink:#171025}.category-about i{clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%)}
@media(max-width:700px){.home-categories{gap:2px}.home-category strong{font-size:9px;letter-spacing:0}.home-category span{font-size:11px}.home-category{min-width:0}}

/* Unified slower selection transition. */
.home-category{--selected-bg:#fff;--selected-ink:#000;transition:background-color 1.2s ease,color 1.2s ease}
.home-category small{transition:color 1.2s ease}.home-category i{transition:transform 1.2s ease,background-color 1.2s ease}
.home-category.dice-selected{background:#fff;color:#000}.home-category.dice-selected small{color:#000}.home-category.dice-selected i{background:#000}
.home-dice-canvas{position:absolute;inset:0;width:100%;height:100%;filter:drop-shadow(0 1px 1px #35231988)}.canvas-ready .home-idle-dice{visibility:hidden}
.home-character{transform-origin:50% 95%;animation:home-breathe 4s ease-in-out infinite}
@keyframes home-breathe{50%{transform:translateY(-.12cqw) rotate(.15deg)}}
.home-roll-status.dice-selected{background:#fff;color:#000}.home-roll-status{transition:background-color 1.2s ease,color 1.2s ease}



/* One hand-drawn wooden sign; both faces share the same material. */
.home-note.comic-cue{position:absolute;left:62%;top:34%;width:12%;height:6.1cqw;margin:0;padding:0;border:0;background:none;box-shadow:none;color:#251c17;transform:rotate(-4deg);font-family:PuHuiTi,sans-serif;font-style:normal;z-index:5;pointer-events:auto;cursor:pointer;perspective:800px;overflow:visible}
.cue-board{position:absolute;inset:0;display:block;transform-style:preserve-3d;transition:transform 1s cubic-bezier(.4,0,.2,1);transform:rotateY(0deg)}
.is-flipped .cue-board{transform:rotateY(180deg)}
.cue-face{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;box-sizing:border-box;border:0;border-radius:2px;background:#c7a36d url('/assets/handdrawn-wood.svg?v=22') center/100% 100%;box-shadow:none;padding:8px 0 0;overflow:hidden;backface-visibility:hidden;-webkit-backface-visibility:hidden;clip-path:polygon(2% 3%,17% 1%,18% 4%,36% 2%,57% 0,59% 3%,79% 2%,97% 0,99% 19%,97% 23%,100% 46%,98% 72%,100% 96%,81% 98%,79% 94%,62% 99%,42% 97%,23% 100%,21% 96%,1% 98%,2% 74%,0 69%,1% 42%,0 21%);}
.cue-face:before,.cue-face:after{content:'';position:absolute;top:5px;width:5px;height:5px;border:1px solid #513822;border-radius:50%;background:#493321}.cue-face:before{left:18%}.cue-face:after{right:18%}
.cue-back{transform:rotateY(180deg)}.cue-kicker{font-family:PuHuiTi,sans-serif;font-size:1.05cqw;font-weight:700;letter-spacing:.07em;line-height:1.6;color:#583d29}
.comic-cue strong{font-family:KaiTi,STKaiti,PuHuiTi,serif;font-size:2cqw;font-weight:700;line-height:1.4;letter-spacing:.04em;white-space:nowrap;color:#2d2117;text-shadow:none}
.comic-cue .cue-title{font-family:PuHuiTi,sans-serif;font-size:1.55cqw;letter-spacing:.02em}.comic-cue:focus-visible{outline:2px solid #fff;outline-offset:7px}
.cue-cords{position:absolute;left:0;top:-8cqw;width:100%;height:calc(8cqw + 8px);overflow:visible;pointer-events:none;z-index:2;fill:none;stroke:#c8b18b;stroke-width:1.7;stroke-linecap:round}.cue-cords path{vector-effect:non-scaling-stroke}
@media(max-width:700px){.home-note.comic-cue{left:73%;top:12%;width:24%;height:54px}.cue-face{padding-top:7px}.cue-kicker{font-size:10px;letter-spacing:0}.comic-cue strong{font-size:clamp(14px,3.7vw,22px);letter-spacing:0}.cue-cords{top:-42px;height:50px;stroke-width:1.5}.comic-cue .cue-title{font-size:clamp(12px,3.4vw,19px)}}
/* A choice grows out of the composition, while the alternatives gently recede. */
.home-category{transform:scale(1);opacity:1;transition:transform 1.7s cubic-bezier(.2,.65,.25,1),opacity 1.7s ease,color 1.7s ease,background-color 1.7s ease}
.layered-home.has-choice .home-category:not(.dice-selected){transform:scale(.92);opacity:.58}
.home-category.dice-selected{background:transparent;color:#fff;transform:scale(1.12);box-shadow:none}
.home-category.dice-selected small{color:#fff}
.home-category i,.home-category strong,.home-category span,.home-category small{transition:filter 1.7s ease,text-shadow 1.7s ease,transform 1.7s ease,background-color 1.7s ease}
.home-category.dice-selected i{background:var(--choice-color);transform:scale(1.13);filter:drop-shadow(0 0 9px var(--choice-color))}
.home-category.dice-selected strong,.home-category.dice-selected span,.home-category.dice-selected small{text-shadow:0 0 10px #ffffffb0,0 0 22px var(--choice-color)}
.home-category.dice-selected:before,.layered-home.has-choice .home-category:before{opacity:0}
.home-roll-status{position:absolute!important;left:0!important;top:0!important;right:auto!important;bottom:auto!important;width:1px!important;height:1px!important;min-height:0!important;margin:0!important;padding:0!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap}
@media(prefers-reduced-motion:reduce){.home-category,.home-category i,.home-category strong,.home-category span,.home-category small{transition:none}}
