/* Hive Five shares WordHive's shell, button and pill vocabulary. */
.hf-page{--hf-gold:#f7c948;--hf-green:#64c394}
.hf-page [hidden]{display:none!important}
.hf-hero{background:radial-gradient(ellipse at 80% 20%,rgba(247,201,72,.12),transparent 50%),linear-gradient(135deg,#0a1e17,#090f0c)}
.hf-hero .wh-page-hero-inner{max-width:1120px;align-items:center;gap:56px;padding-top:52px;padding-bottom:60px}
.hf-hero h1{max-width:620px;font-size:clamp(36px,5vw,62px);line-height:1.06;letter-spacing:-.04em}
.hf-hero .wh-page-subtitle{max-width:540px;font-size:18px;line-height:1.65;color:#b7c8bd}
.hf-preview{box-sizing:border-box;width:100%;max-width:400px;justify-self:center;padding:28px;border:1px solid #345040;border-radius:24px;background:linear-gradient(160deg,#16291f,#0b130e);box-shadow:0 28px 80px #0006;transform:rotate(2deg)}
.hf-preview-label{display:flex;justify-content:space-between;align-items:center;color:#bad0c2;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.09em;margin-bottom:24px}
.hf-preview-label span:last-child{color:var(--hf-gold)}
.hf-preview-word{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;margin:8px 0}
.hf-preview-word span{display:grid;place-items:center;aspect-ratio:1;border:1px solid #527761;border-radius:9px;background:#2b6647;font-size:clamp(20px,3vw,30px);font-weight:800;color:#fff}
.hf-preview-word .hf-demo-muted{background:#27342d;border-color:#3a4b40;color:#b9c5be}
.hf-preview-word .hf-demo-present{background:#cda73b;border-color:#cda73b;color:#1a210d}
.hf-preview-vs{display:flex;align-items:center;justify-content:space-between;margin:24px 0 0;padding-top:20px;border-top:1px solid #345040;color:#b6c9be}
.hf-preview-vs strong{display:block;color:#fff;font-size:28px;line-height:1.3}
.hf-preview-vs>span:nth-child(2){display:grid;place-items:center;border:1px solid #47604f;border-radius:50%;width:36px;height:36px;font-size:12px}
.hf-preview-note{color:var(--hf-gold);text-align:center;font-weight:700;margin:24px 0 0}
.hf-main{max-width:1120px;margin:auto;padding:32px 24px 64px}
.hf-main .wh-section{margin:0 0 48px}
.hf-main .wh-section-lead{max-width:760px}
.hf-main .wh-game-card{padding:24px}
.hf-main .wh-game-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.hf-number{display:grid;place-items:center;width:36px;height:36px;background:#f7c948;color:#182416;border-radius:12px;font-weight:800;margin-bottom:18px}
.hf-cta{padding:32px;border:1px solid #354f3e;border-radius:22px;background:#13221a;display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}
.hf-cta h2{margin-top:0}
.hf-faq details{padding:20px 0;border-bottom:1px solid var(--border)}
.hf-faq summary{cursor:pointer;font-size:18px;font-weight:700}
.hf-faq p{line-height:1.7;color:var(--muted);max-width:820px}
.hf-shell{max-width:740px;margin:0 auto;padding:16px 16px 60px;box-sizing:border-box}
.hf-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:12px;margin:0 0 20px}
.hf-toolbar a,.hf-small a{color:var(--hf-gold)}
.hf-hud{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;max-width:350px;margin:12px auto 20px;text-align:center}
.hf-hud>div{min-width:0}
.hf-hud dt{color:var(--muted);font-size:13px;line-height:1.5}
.hf-hud dd{margin:3px 0 0;color:var(--text);font-size:28px;font-weight:800;line-height:1.2;font-variant-numeric:tabular-nums}
.hf-hud dd span{font-size:21px}
.hf-round-progress{text-align:center;color:var(--muted);font-size:13px;line-height:1.5;margin:0 0 24px}
.hf-board-wrap{position:relative;width:fit-content;margin:0 auto 24px}
.hf-board{display:grid;gap:6px;--hf-size:min(54px,calc((100vw - 140px) / 5));outline:none}
.hf-board:focus-visible{outline:2px solid var(--hf-gold);outline-offset:5px;border-radius:8px}
.hf-row{display:grid;grid-template-columns:repeat(5,var(--hf-size));gap:6px}
.hf-tile{box-sizing:border-box;width:var(--hf-size);height:var(--hf-size);display:grid;place-items:center;border:1px solid #405548;border-radius:8px;background:#142019;font-size:clamp(18px,4vw,25px);font-weight:800;color:#f4fff7}
.hf-tile.hf-active{border-color:var(--hf-gold);box-shadow:inset 0 0 0 1px var(--hf-gold)}
.hf-bee{position:absolute;right:-50px;top:3px;width:42px;height:42px;border:1px solid #4b664e;border-radius:50%;background:#19291d;font-size:23px;cursor:pointer}
.hf-bee:hover{background:#293f2d}
.hf-clue{max-width:460px;margin:0 auto 20px;border:1px solid #6b602c;padding:14px;border-radius:12px;color:#ffe99b;background:#292719;line-height:1.5}
.hf-keyboard{max-width:510px;margin:22px auto;display:grid;gap:8px}
.hf-key-row{display:flex;gap:4px;width:100%}
.hf-key-middle{width:90%;justify-self:center}
.hf-key{box-sizing:border-box;flex:1 1 0;min-width:0;height:54px;border-radius:8px;border:1px solid #435448;background:#26372d;color:#fff;font:700 16px/1 system-ui;cursor:pointer;padding:0;touch-action:manipulation}
.hf-key-wide{flex-grow:1.5;font-size:12px}
.hf-key:active{transform:translateY(1px)}
.hf-key:disabled{cursor:default;opacity:.55}
.hf-correct{background:#2d8050;border-color:#419563;color:#fff}
.hf-present{background:#c6a13b;border-color:#c6a13b;color:#171e10}
.hf-absent{background:#303730;border-color:#414a41;color:#b7bfb7}
.hf-key.hf-absent{background:#101712;border-color:#28362d;color:#87958b}
.hf-key.hf-selected{border-color:var(--hf-gold);box-shadow:inset 0 0 0 2px var(--hf-gold)}
.hf-key.hf-selected:not(.hf-correct):not(.hf-present){color:var(--hf-gold)}
.hf-key:focus-visible,.hf-bee:focus-visible{outline:2px solid var(--hf-gold);outline-offset:2px}
.hf-feedback{position:relative;z-index:10;box-sizing:border-box;width:min(100%,350px);margin:0 auto 16px;padding:20px 36px 20px 20px;border:1px solid #6b602c;border-radius:14px;background:#19291df5;box-shadow:0 12px 36px #0009;text-align:center}
.hf-board-wrap>.hf-feedback{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);margin:0;width:calc(100% + 24px);max-width:calc(100vw - 32px)}
.hf-status{font-size:15px;color:#ffe292;line-height:1.6;overflow-wrap:anywhere;max-height:240px;overflow:auto}
.hf-feedback-close{position:absolute;right:0;top:0;width:36px;height:36px;border:0;background:transparent;color:#ffe292;font-size:24px;cursor:pointer;border-radius:10px}
.hf-feedback-close:focus-visible{outline:2px solid var(--hf-gold);outline-offset:2px}
.hf-feedback:has(.hf-status-error){background:#38221cf5;border-color:#efaa86}
.hf-hint-panel{position:absolute;z-index:9;left:50%;top:50%;transform:translate(-50%,-50%);box-sizing:border-box;width:min(340px,calc(100vw - 32px));max-height:min(420px,70dvh);overflow:auto;padding:18px;border:1px solid #b59535;border-radius:14px;background:#19291d;box-shadow:0 12px 36px #0009;text-align:center;color:#ffe292;line-height:1.5}
.hf-hint-panel h2{margin:0 0 12px;font-size:20px}.hf-hint-panel p{margin:10px 0}.hf-hint-panel .hf-actions{margin-bottom:0}
.hf-status.hf-status-error{color:#ffe1cf;font-weight:700}
.hf-row-error .hf-tile{border-color:#efaa86}
.hf-row-error{animation:hf-reject .3s ease-in-out}
@keyframes hf-reject{25%,75%{transform:translateX(-4px)}50%{transform:translateX(4px)}}

.hf-actions{display:flex;justify-content:center;align-items:center;gap:10px;flex-wrap:wrap;margin:16px 0}
.hf-actions .wh-btn{min-height:44px}
.hf-result{max-width:530px;margin:0 auto;padding:24px;box-sizing:border-box;text-align:center;border:1px solid #41664c;border-radius:18px;background:linear-gradient(145deg,#1d3825,#112116)}
.hf-result h2{font-size:25px;margin:0 0 12px}
.hf-result p{line-height:1.6;color:#c7d8cc}
.hf-answer{display:block;font-size:22px;letter-spacing:.1em;color:var(--hf-gold);margin:10px 0}
.hf-comparison{display:flex;justify-content:center;align-items:center;gap:20px}
.hf-comparison strong{color:#fff}
.hf-small{font-size:12px;line-height:1.6;color:#adc0b2}
.hf-muted{font-size:14px;color:#b9cabc}
.hf-save-note{text-align:center}
.hf-share,.hf-results,.hf-recent{max-width:530px;margin:20px auto}
.hf-share label{display:block}
.hf-share input{box-sizing:border-box;width:100%;padding:12px;border:1px solid #3e5945;border-radius:8px;background:#121f17;color:#d2e4d7;font-size:13px}
.hf-notice{padding:18px;border:1px solid #635734;border-radius:14px;background:#262418;color:#ffe7ad;line-height:1.6;margin:0 auto 20px;max-width:530px;text-align:center}
.hf-friend-result{display:flex;gap:14px;justify-content:space-between;align-items:center;border-bottom:1px solid #304333;padding:12px 0;font-size:14px}
.hf-recent summary{cursor:pointer;color:#b4cabb;padding:12px 0}
.hf-recent button{margin:4px}
.hf-lobby{text-align:left;max-width:600px;margin:auto;padding:12px}.hf-lobby h2{margin:0}.hf-lobby p{line-height:1.65}.hf-lobby .hf-notice{text-align:left}.hf-search-row{display:flex;gap:8px;margin:10px 0}.hf-search-row input{min-width:0;flex:1;border:1px solid #52705c;border-radius:10px;background:#13261b;color:#fff;padding:12px;font:inherit}.hf-search-row input:focus-visible{outline:2px solid var(--hf-gold);outline-offset:2px}.hf-match-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid #345040}.hf-match-item span{min-width:0;overflow-wrap:anywhere}.hf-match-item small{display:block;margin-top:5px;color:#b7c8bd}.hf-match-item button{flex-shrink:0}.hf-opponent{overflow-wrap:anywhere;line-height:1.6}.hf-toolbar{flex-wrap:wrap}.hf-comparison strong{min-width:0;overflow-wrap:anywhere}
@media(max-width:430px){.hf-search-row{flex-wrap:wrap}.hf-search-row input{flex-basis:100%}.hf-lobby .hf-toolbar{font-size:14px}}
.hf-home-band{margin:32px 0;background:linear-gradient(120deg,#153222,#101b13);border:1px solid #416b4b;border-radius:20px;padding:28px;display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}
.hf-home-band h2{margin:0 0 8px}.hf-home-band p{margin:0;color:#bcd1c3;max-width:600px}
@media(max-width:700px){.hf-hero .wh-page-hero-inner{grid-template-columns:1fr;gap:32px;padding-top:28px;padding-bottom:32px}.hf-preview{max-width:340px;transform:none}.hf-hero h1{font-size:38px}.hf-hero .wh-page-subtitle{font-size:16px}.hf-main{padding:28px 16px 48px}.hf-main .wh-game-grid{grid-template-columns:1fr}.hf-cta{padding:24px}.hf-main .wh-section{margin-bottom:32px}}
@media(max-width:430px){.hf-shell{padding:12px 8px 36px}.hf-toolbar{font-size:11px;gap:8px}.hf-key{height:54px;font-size:14px}.hf-key-wide{font-size:10px}.hf-result{padding:18px 12px}.hf-result h2{font-size:23px}.hf-share,.hf-results{padding:0 8px}.hf-friend-result{flex-wrap:wrap}.hf-actions .wh-btn{font-size:13px;padding:10px 12px}}
@media(prefers-reduced-motion:reduce){.hf-page *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
