/* Pocket Grove: shared public install surfaces follow the site's theme. */
@font-face{font-family:'HH Pocket Cal';src:url('/assets/cal-sans-display-latin.woff2') format('woff2');font-weight:600;font-display:swap}
.hh-pwa-banner,.hh-pwa-dialog,.hh-pwa-entry,.hh-pwa-footer{--pwa-bg:#f8f4e6;--pwa-ink:#092c22;--pwa-muted:#4c6257;--pwa-line:#7b815644;--pwa-accent:#082a20;--pwa-on-accent:#fffced;--pwa-leaf:#c5dfa0;--pwa-tint:#e5edcf;--pwa-shadow:#143c272b;font-family:Inter,Arial,sans-serif;color:var(--pwa-ink);box-sizing:border-box}
html[data-theme=dark] :is(.hh-pwa-banner,.hh-pwa-dialog,.hh-pwa-entry,.hh-pwa-footer){--pwa-bg:#061e16;--pwa-ink:#f8f6e9;--pwa-muted:#b9c7b9;--pwa-line:#c4cb974f;--pwa-accent:#c5dfa0;--pwa-on-accent:#071f15;--pwa-leaf:#0a281b;--pwa-tint:#173b29;--pwa-shadow:#00110b80;color-scheme:dark}
.hh-pwa-entry{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:7px 11px;border:1px solid var(--pwa-line);border-radius:10px;background:var(--pwa-tint);color:var(--pwa-ink);font-size:12px;font-weight:600;line-height:1.35;white-space:nowrap;cursor:pointer;touch-action:manipulation;text-decoration:none}
.hh-pwa-entry svg{width:17px;height:17px;flex:none}
.hh-pwa-entry--footer{margin:4px 0;font-size:11px;background:transparent}
.hh-pwa-entry--menu{justify-content:flex-start;flex-shrink:0}
.hh-pwa-footer{display:flex;justify-content:center;padding:18px 20px calc(18px + env(safe-area-inset-bottom));background:var(--pwa-bg)}
.hh-pwa-banner,.hh-pwa-dialog{font-size:14px;line-height:1.55;background:var(--pwa-bg);border:1px solid var(--pwa-line);box-shadow:0 20px 75px var(--pwa-shadow)}
.hh-pwa-banner *,.hh-pwa-dialog *{box-sizing:border-box}
.hh-pwa-banner{position:fixed;z-index:90;right:max(18px,env(safe-area-inset-right));bottom:calc(20px + env(safe-area-inset-bottom));display:grid;grid-template-columns:94px minmax(0,1fr) auto;align-items:center;gap:18px;width:min(660px,calc(100vw - 36px));min-height:106px;border-radius:18px;overflow:hidden;padding:0 48px 0 0}
.hh-pwa-banner-art{align-self:stretch;width:100%;height:100%;min-height:106px;max-height:132px;object-fit:cover;object-position:center 58%}
.hh-pwa-banner-copy{min-width:0;padding:15px 0}
.hh-pwa-banner-copy strong{display:block;font:600 23px/1.08 'HH Pocket Cal','Cal Sans',Arial,sans-serif;letter-spacing:-.035em;text-wrap:balance}
.hh-pwa-banner-copy p{margin:7px 0 0;color:var(--pwa-muted);font-size:11px;line-height:1.5}
.hh-pwa-primary,.hh-pwa-secondary,.hh-pwa-close{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;font:600 12px/1.4 Inter,Arial,sans-serif;touch-action:manipulation;cursor:pointer;text-decoration:none;-webkit-tap-highlight-color:transparent}
.hh-pwa-primary,.hh-pwa-secondary--finish{position:relative;isolation:isolate;border:1px solid var(--pwa-accent);background:var(--pwa-accent);color:var(--pwa-on-accent);border-radius:13px 4px 13px 13px;padding:13px 42px;white-space:nowrap;box-shadow:inset 0 1px 0 #ffffff18}
html[data-theme=dark] :is(.hh-pwa-primary,.hh-pwa-secondary--finish){background:linear-gradient(135deg,#d0e5ae,var(--pwa-accent));color:var(--pwa-on-accent)}
.hh-pwa-action-leaf{position:absolute;right:5px;bottom:5px;display:block;width:27px;height:29px;color:var(--pwa-leaf);pointer-events:none}
.hh-pwa-action-leaf svg{display:block;width:100%;height:100%}
.hh-pwa-secondary{border:1px solid var(--pwa-line);background:transparent;color:var(--pwa-ink);border-radius:11px;padding:10px 16px;font-weight:500}
.hh-pwa-secondary:not(.hh-pwa-secondary--finish) .hh-pwa-action-leaf{display:none}
.hh-pwa-secondary--finish{border-color:var(--pwa-accent);background:var(--pwa-accent);color:var(--pwa-on-accent);border-radius:13px 4px 13px 13px;font-weight:600;padding-right:42px;padding-left:42px}
.hh-pwa-close{position:absolute;z-index:3;top:8px;right:8px;width:44px;height:44px;min-height:44px;padding:12px;border:0;border-radius:50%;background:transparent;color:var(--pwa-ink)}
.hh-pwa-close svg{width:20px;height:20px;flex:none}
.hh-pwa-banner .hh-pwa-close{top:0;right:0;width:40px;height:40px;min-height:40px;padding:10px}
.hh-pwa-dialog{position:fixed;width:min(780px,calc(100vw - 48px));max-height:calc(100dvh - 36px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overflow:auto;overscroll-behavior:contain;margin:auto;padding:0;border-radius:22px;color:var(--pwa-ink);scrollbar-width:thin;scrollbar-color:var(--pwa-line) transparent}
.hh-pwa-dialog::backdrop{background:#02130da3;backdrop-filter:blur(4px)}
.hh-pwa-dialog--fallback{top:50%;left:50%;margin:0;transform:translate(-50%,-50%);z-index:2147483000;box-shadow:0 0 0 100vmax #02130da3}
.hh-pwa-dialog-layout{display:grid;grid-template-columns:43% minmax(0,1fr);min-height:420px}
.hh-pwa-world{position:relative;min-width:0;overflow:hidden;background:#0b281e;isolation:isolate}
.hh-pwa-world>img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:center 58%}
.hh-pwa-world:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#01150b38,transparent 45%),linear-gradient(0deg,#001c1255,transparent 45%);pointer-events:none}
.hh-pwa-world-copy{position:absolute;z-index:1;left:22px;bottom:28px;font-size:9px;font-weight:600;line-height:1.7;letter-spacing:.18em;color:#f6edc1;text-shadow:0 2px 7px #00190c}
.hh-pwa-dialog-content{min-width:0;align-self:center;padding:44px 34px 28px;background:radial-gradient(ellipse at bottom right,#c9d49912,transparent 70%),var(--pwa-bg)}
.hh-pwa-eyebrow{display:block;margin:0 28px 12px 0;font-size:8px;font-weight:600;letter-spacing:.2em;line-height:1.6;color:var(--pwa-ink)}
.hh-pwa-dialog h2{margin:0 0 14px;max-width:360px;font:600 39px/1.02 'HH Pocket Cal','Cal Sans',Arial,sans-serif;letter-spacing:-.045em;color:var(--pwa-ink);text-wrap:balance}
.hh-pwa-dialog p{margin:0;color:var(--pwa-muted)}
.hh-pwa-dialog-heading>p{font-size:13px;line-height:1.55;max-width:330px}
.hh-pwa-features{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:24px 0 25px;padding:0;list-style:none;color:var(--pwa-ink)}
.hh-pwa-features li{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-width:0;font-size:11px;line-height:1.4;text-align:center;padding:0 7px}
.hh-pwa-features li+li{border-left:1px solid var(--pwa-line)}
.hh-pwa-features svg{width:24px;height:24px;flex:none}
.hh-pwa-features li:first-child svg{color:#588238}
html[data-theme=dark] .hh-pwa-features li:first-child svg{color:#c5dfa0}
.hh-pwa-guide{margin:24px 0;font-size:12px;line-height:1.6;color:var(--pwa-ink)}
.hh-pwa-guide strong{font-weight:600;color:var(--pwa-ink)}
.hh-pwa-guide ol{counter-reset:pwa-step;margin:0;padding:0;list-style:none}
.hh-pwa-guide li{counter-increment:pwa-step;display:grid;grid-template-columns:28px 28px minmax(0,1fr);gap:12px;align-items:start;margin:0;position:relative}
.hh-pwa-guide li+li{margin-top:21px}
.hh-pwa-guide li:before{content:counter(pwa-step);display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--pwa-tint);color:var(--pwa-ink);font:600 16px/1 'HH Pocket Cal',Arial,sans-serif}
.hh-pwa-step-icon{display:flex;align-items:center;justify-content:center;width:28px;height:30px;color:var(--pwa-ink)}
.hh-pwa-step-icon svg{width:25px;height:25px;flex:none}
.hh-pwa-guide li>div{padding-top:2px}
.hh-pwa-guide li>div>strong{display:block;font-size:12px;line-height:1.4}
.hh-pwa-guide li p{font-size:10px;line-height:1.55;margin:4px 0 0}
.hh-pwa-guide p+p{margin-top:12px}
.hh-pwa-guide .hh-pwa-guide-intro{font-size:11px;margin-bottom:20px}
.hh-pwa-guide .hh-pwa-guide-note{margin-top:18px;font-size:10px}
.hh-pwa-dialog[data-pwa-guide=desktop] .hh-pwa-guide{padding:17px 18px;border-left:2px solid var(--pwa-line);background:var(--pwa-tint);border-radius:0 10px 10px 0;font-size:12px}
.hh-pwa-dialog[data-pwa-guide^=ios] h2{font-size:35px;max-width:345px}
.hh-pwa-dialog-actions{display:flex;flex-direction:column;gap:10px;margin-top:24px}
.hh-pwa-dialog-actions>button{width:100%;min-height:46px}
.hh-pwa-dialog .hh-pwa-online-note{margin-top:14px;font-size:9px;line-height:1.65;color:var(--pwa-muted)}
.hh-pwa-status{font-size:12px;line-height:1.6;margin-top:14px!important}
.hh-pwa-status:empty{display:none}
.hh-pwa-address{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}
.hh-pwa-address input{width:100%;min-width:0;border:1px solid var(--pwa-line);border-radius:9px;padding:10px;background:var(--pwa-tint);color:var(--pwa-ink);font:12px/1.5 Inter,Arial,sans-serif}
.hh-pwa-address button{min-height:40px;padding:8px 12px;font-size:11px}
:is(.hh-pwa-entry,.hh-pwa-banner button,.hh-pwa-dialog button,.hh-pwa-dialog input):focus-visible{outline:3px solid #82a954;outline-offset:4px}
:is(.hh-pwa-entry,.hh-pwa-primary,.hh-pwa-secondary):hover:not(:disabled){filter:brightness(.95)}
.hh-pwa-close:hover{background:var(--pwa-tint)}
.hh-pwa-primary:disabled{cursor:wait;opacity:.65}
.hh-pwa-entry[hidden],.hh-pwa-banner[hidden],.hh-pwa-dialog [hidden]{display:none!important}
.hh-pwa-dialog:not([open]){display:none}
.gj .hh-pwa-entry--game{min-height:36px;padding:6px 9px;font-size:10px;--pwa-bg:#10251c;--pwa-ink:#eee9d8;--pwa-line:#c3d7ad35;--pwa-tint:#193a29}
.gj .hh-pwa-entry--intro{margin:18px auto 0;min-height:44px;padding:10px 15px;font-size:12px}
.gj .gj-top{padding-top:calc(16px + env(safe-area-inset-top));padding-left:max(clamp(16px,3vw,34px),env(safe-area-inset-left));padding-right:max(clamp(16px,3vw,34px),env(safe-area-inset-right))}
html[data-theme=light] .gj .hh-pwa-entry--game{--pwa-ink:#153b2c;--pwa-line:#2343312c;--pwa-tint:#e8eddc}
@media(max-width:760px){
  .hh-pwa-banner{left:12px;right:12px;bottom:calc(84px + env(safe-area-inset-bottom));width:auto;grid-template-columns:80px minmax(0,1fr);gap:0 15px;padding:0 38px 0 0;min-height:133px;border-radius:16px}
  .hh-pwa-banner-art{grid-row:1 / 3;max-height:none;min-height:133px;object-position:center 61%}
  .hh-pwa-banner-copy{padding:17px 0 7px}
  .hh-pwa-banner-copy strong{font-size:20px}
  .hh-pwa-banner-copy p{font-size:10px;line-height:1.45;margin-top:5px}
  .hh-pwa-banner .hh-pwa-primary{grid-column:2;justify-self:start;min-height:39px;padding:8px 35px 8px 13px;margin-bottom:14px;font-size:11px}
  .hh-pwa-banner .hh-pwa-action-leaf{width:22px;height:24px;right:4px;bottom:4px}
  .hh-pwa-dialog{top:auto;bottom:calc(82px + env(safe-area-inset-bottom));width:calc(100vw - 28px);max-width:420px;max-height:calc(100dvh - 104px - env(safe-area-inset-top) - env(safe-area-inset-bottom));margin:0 auto;border-radius:21px}
  .hh-pwa-dialog-layout{display:flex;flex-direction:column;min-height:0}
  .hh-pwa-world{height:164px;min-height:164px;width:100%}
  .hh-pwa-world>img{object-position:center 62%}
  .hh-pwa-world:after{background:linear-gradient(0deg,var(--pwa-bg),transparent 32%)}
  .hh-pwa-world-copy{display:none}
  .hh-pwa-dialog-content{align-self:stretch;padding:15px 22px 22px}
  .hh-pwa-eyebrow{font-size:7px;letter-spacing:.2em;margin-bottom:10px}
  .hh-pwa-dialog h2{font-size:32px;line-height:1.01;margin-bottom:12px;max-width:310px}
  .hh-pwa-dialog-heading>p{font-size:12px;line-height:1.5}
  .hh-pwa-features{margin:22px 0}
  .hh-pwa-features li{font-size:10px;gap:6px}
  .hh-pwa-features svg{width:23px;height:23px}
  .hh-pwa-dialog-actions{gap:9px;margin-top:20px}
  .hh-pwa-dialog-actions>button{min-height:44px}
  .hh-pwa-dialog .hh-pwa-online-note{margin-top:13px;font-size:8px;line-height:1.55}
  .hh-pwa-dialog[data-pwa-guide^=ios] .hh-pwa-dialog-heading{text-align:center}
  .hh-pwa-dialog[data-pwa-guide^=ios] .hh-pwa-eyebrow{margin-right:0}
  .hh-pwa-dialog[data-pwa-guide^=ios] h2{font-size:28px;max-width:300px;margin-right:auto;margin-left:auto}
  .hh-pwa-dialog[data-pwa-guide^=ios] .hh-pwa-dialog-heading>p{margin:0 auto}
  .hh-pwa-dialog .hh-pwa-close{background:var(--pwa-bg);color:var(--pwa-ink);width:38px;height:38px;min-height:38px;top:8px;right:8px;padding:9px;box-shadow:0 1px 6px #00190f15}
  .hh-pwa-guide{margin:21px 0}
  .hh-pwa-guide li{grid-template-columns:28px 26px minmax(0,1fr);gap:11px}
  .hh-pwa-guide li+li{margin-top:17px}
  .hh-pwa-entry--menu{width:100%;min-height:44px}
  .gj .hh-pwa-entry--game:not(.hh-pwa-entry--intro){min-height:36px;width:36px;padding:8px}
  .gj .hh-pwa-entry--game:not(.hh-pwa-entry--intro) span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
  .gj .gj-top{padding-top:calc(12px + env(safe-area-inset-top));padding-left:max(14px,env(safe-area-inset-left));padding-right:max(14px,env(safe-area-inset-right))}
  .hh-pwa-dialog--fallback{left:50%;top:auto;transform:translateX(-50%);margin:0}
}
@media(max-width:370px){.hh-pwa-dialog-content{padding-right:18px;padding-left:18px}.hh-pwa-world{height:140px;min-height:140px}.hh-pwa-dialog h2{font-size:30px}.hh-pwa-dialog[data-pwa-guide^=ios] h2{font-size:26px}.hh-pwa-banner{grid-template-columns:67px minmax(0,1fr);gap:0 12px}.hh-pwa-banner-copy strong{font-size:18px}}
@media(max-height:650px) and (max-width:760px){.hh-pwa-dialog{bottom:calc(12px + env(safe-area-inset-bottom));max-height:calc(100dvh - 28px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}.hh-pwa-world{height:122px;min-height:122px}.hh-pwa-dialog-content{padding-top:12px;padding-bottom:18px}}
/* The game introduction reserves its bottom-left controls on short landscapes. */
@media(orientation:landscape) and (max-height:600px){.iso-app.gj .hh-pwa-entry--intro{position:fixed;right:max(20px,env(safe-area-inset-right));bottom:max(30px,calc(12px + env(safe-area-inset-bottom)));margin:0;z-index:3;min-height:44px}}
@media(max-height:500px){.hh-pwa-banner{bottom:12px}.hh-pwa-dialog{max-height:calc(100dvh - 20px)}.hh-pwa-dialog-content{padding-top:28px;padding-bottom:22px}.hh-pwa-dialog h2{font-size:30px}}
@media(prefers-reduced-motion:reduce){.hh-pwa-banner,.hh-pwa-dialog{scroll-behavior:auto}}
@media(forced-colors:active){.hh-pwa-world-copy{color:CanvasText}.hh-pwa-primary,.hh-pwa-secondary,.hh-pwa-close{border:1px solid ButtonText}.hh-pwa-features li:first-child svg{color:CanvasText}}
@media(display-mode:standalone),(display-mode:minimal-ui),(display-mode:window-controls-overlay){.hh-pwa-entry,.hh-pwa-banner,.hh-pwa-footer{display:none!important}}
