.hf-page {margin:0;background:#fff9f4;color:#413741;font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
.hf-game {max-width:680px;margin:auto;padding:20px 14px 40px;line-height:1.5}
.hf-game * {box-sizing:border-box}
.hf-game [hidden] {display:none!important}
.hf-back {color:#67586f;font-size:14px}
.hf-game h1 {font:700 clamp(26px,6vw,39px)/1.2 Georgia,serif;margin:14px 0;color:#62445c}
.hf-game button {font:inherit;line-height:1.3;min-height:44px;cursor:pointer;touch-action:manipulation;border:1px solid #cbbcb6;border-radius:12px;background:#fffdf8;color:#463b40;padding:7px 11px}
.hf-game button:focus-visible {outline:3px solid #6b4679;outline-offset:2px}
.hf-game button:disabled {cursor:default}
.hf-welcome,.hf-board {border:1px solid #dfd3ca;background:#fffcf7;border-radius:22px;overflow:hidden;box-shadow:0 5px 20px #67452b0c}
.hf-welcome img {width:100%;height:auto;max-height:270px;object-fit:cover;display:block}
.hf-welcome>div {padding:10px 20px 18px}
.hf-board {padding:14px;scroll-margin-top:78px}
.hf-top,.hf-tools {display:flex;align-items:center;justify-content:space-between;gap:8px}
.hf-top strong {font-size:15px;color:#614358}
#hf-prompt,#hf-rules {line-height:1.6;font-size:14px;margin:9px 0}
#hf-scene {min-width:0}
.hf-tools {margin-top:12px}
.hf-tools button {flex:1}
.hf-tools button:disabled {opacity:.55}
.hf-primary,#hf-result .hf-primary {width:100%;color:white;background:#715168;border-color:#715168;font-weight:bold}
#hf-confirm,#hf-result {margin-top:12px;border-radius:16px;padding:14px;background:#e9f0e4}
#hf-confirm p,#hf-result h2 {margin:0 0 8px}
#hf-confirm button {margin-right:6px}
.hf-skip {position:absolute;left:6px;top:-80px}.hf-skip:focus {top:0;z-index:1000;background:white}
@media(max-width:380px){.hf-game{padding:10px 7px 25px}.hf-board{padding:9px}}
@media(prefers-reduced-motion:reduce){.hf-game *, .hf-game *::before,.hf-game *::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
