.he-privacy,.he-privacy-dialog{--he-ink:#211632;--he-copy:#51445f;--he-plum:#573b7c;--he-line:#ded1e9;--he-ice:#fbf8ff;box-sizing:border-box;font-family:inherit;color:var(--he-ink)}
.he-privacy *,.he-privacy-dialog *{box-sizing:border-box}
.he-privacy{position:fixed;left:max(12px,env(safe-area-inset-left));bottom:max(12px,env(safe-area-inset-bottom));z-index:9000}
.he-privacy button,.he-privacy-dialog button{font:inherit;cursor:pointer;min-height:44px;color:var(--he-ink);touch-action:manipulation}
.he-privacy #he-privacy-open{display:inline-flex;align-items:center;gap:8px;padding:8px 14px;border:1px solid var(--he-line);border-radius:999px;background:#fff;box-shadow:0 6px 20px #2c18401a;font-weight:690;font-size:.875rem}
.he-privacy-dialog{position:fixed;inset:auto auto max(68px,calc(env(safe-area-inset-bottom) + 56px)) max(12px,env(safe-area-inset-left));margin:0;width:min(420px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 90px);overflow:auto;overscroll-behavior:contain;border:1px solid var(--he-line);border-radius:20px;padding:clamp(16px,4vw,25px);background:#fff;box-shadow:0 18px 58px #20102b35;z-index:9010}
.he-privacy-dialog:not([open]){display:none}
.he-privacy-dialog::backdrop{background:#21163248}
.he-privacy-dialog h2{color:var(--he-ink);font:inherit;font-weight:790;font-size:clamp(1.42rem,5vw,1.8rem);letter-spacing:-.043em;margin:2px 0 4px;line-height:1.12}
.he-privacy-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.he-privacy-head #he-privacy-close{flex:none;width:44px;padding:0;border:1px solid var(--he-line);border-radius:12px;background:var(--he-ice);font-size:1.25rem}
.he-privacy-dialog p{color:var(--he-copy);line-height:1.44;margin:.45rem 0;font-size:.875rem}
.he-privacy-section{padding:10px 0;border-top:1px solid var(--he-line)}
.he-privacy-section strong{font-size:.94rem}
.he-choice-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:8px}
.he-privacy-dialog .he-action{padding:7px 8px;border:1px solid #8e77af;border-radius:10px;background:var(--he-ice);font-weight:680;line-height:1.18;font-size:.82rem}
.he-privacy-dialog .he-action[aria-pressed=true]{box-shadow:inset 0 0 0 1px #715792}
.he-privacy-dialog [data-he-status]:empty,.he-privacy #hc-google-status:empty{display:none}
.he-privacy #hc-google-status{display:block;margin:6px 0 0;background:#fff;padding:6px 9px;border-radius:8px;max-width:min(36ch,calc(100vw - 25px));font-size:.8rem}
.he-privacy-dialog .he-policy{color:var(--he-plum);font-size:.82rem;text-underline-offset:3px}
.he-privacy :focus-visible,.he-privacy-dialog :focus-visible{outline:2px solid #6739a6;outline-offset:3px}
.he-choice[hidden]{display:none}
.he-choice{position:fixed;inset:auto auto max(68px,calc(env(safe-area-inset-bottom) + 56px)) max(12px,env(safe-area-inset-left));width:min(360px,calc(100vw - 24px));max-height:calc(100dvh - 82px);overflow:auto;z-index:8999;color:#211632;background:#fff;border:1px solid #ded1e9;border-radius:20px;padding:14px 16px;box-shadow:0 12px 40px #20102b2d;box-sizing:border-box;font:inherit}
.he-choice strong{font-size:1.04rem;letter-spacing:-.025em}
.he-choice p{margin:5px 0 8px;font-size:.81rem;line-height:1.4;color:#51445f}
.he-choice button{min-height:44px;background:#fbf8ff;color:#211632;border:1px solid #987cb1;border-radius:10px;font:inherit;font-weight:650;font-size:.8rem;padding:5px 7px;cursor:pointer}
.he-choice button:focus-visible{outline:2px solid #6739a6;outline-offset:3px}
/* Arcade provides the same control outside play; active game screens stay unobstructed. */
.he-arcade-game .he-privacy,.he-arcade-game .he-choice{left:auto;right:max(12px,env(safe-area-inset-right))}
.he-arcade-game .he-privacy-dialog{left:auto;right:max(12px,env(safe-area-inset-right))}
body:has(#startScreen.hidden):has(#pauseScreen.hidden):has(#endScreen.hidden) .he-arcade-game .he-privacy,
body:has(#startScreen.hidden):has(#pauseScreen.hidden):has(#endScreen.hidden) .he-arcade-game .he-choice{display:none}

/* A compact mobile tray without sacrificing any of the touch targets. */
@media (max-width:620px){
  .he-privacy{left:max(8px,env(safe-area-inset-left));bottom:max(8px,env(safe-area-inset-bottom))}
  .he-privacy #he-privacy-open{padding:5px 11px;font-size:.81rem;box-shadow:0 3px 12px #2c18401a}
  .he-choice,.he-privacy-dialog{left:max(8px,env(safe-area-inset-left));bottom:max(56px,calc(env(safe-area-inset-bottom) + 52px));width:min(360px,calc(100vw - 16px));max-height:calc(100dvh - 70px);border-radius:14px;padding:8px 11px}
  .he-choice strong{font-size:.92rem;line-height:1.13}
  .he-choice p{margin:2px 0 4px;line-height:1.25;font-size:.81rem}
  .he-choice .he-choice-buttons{margin-top:4px;gap:6px}
  .he-choice button{font-size:.79rem;min-height:44px}
  .he-privacy-dialog h2{font-size:1.28rem}
  .he-privacy-dialog p{margin:.25rem 0;font-size:.82rem;line-height:1.35}
  .he-privacy-section{padding:7px 0}
  .he-arcade-game .he-privacy,.he-arcade-game .he-choice,.he-arcade-game .he-privacy-dialog{right:max(8px,env(safe-area-inset-right))}
}
