/* Shared welcome presentation only. Authentication and access are unchanged. */
html.hw-welcome-open { overflow:hidden; overscroll-behavior:none; }
dialog.hw-welcome {
  --hw-bg:#071622; --hw-ink:#eaf6ff; --hw-muted:#b6ccda; --hw-accent:#8fd9ff;
  --hw-line:rgba(143,217,255,.19); --hw-glow:rgba(43,143,202,.15);
  --hw-surface:rgba(205,235,255,.055); --hw-surface-hover:rgba(205,235,255,.10);
  position:fixed; inset:0; z-index:2147483000; width:100%; height:100vh; height:100dvh;
  max-width:none; max-height:none; margin:0; border:0; padding:0; box-sizing:border-box;
  overflow-x:hidden; overflow-y:auto; isolation:isolate; color:var(--hw-ink); background:var(--hw-bg);
  font-family:"HODRA Sans","Segoe UI",Arial,sans-serif; text-align:left;
  touch-action:pan-x pinch-zoom; overscroll-behavior:contain; color-scheme:dark;
  transform:translate3d(0,var(--hw-drag,0px),0); opacity:calc(1 - var(--hw-progress,0) * .12);
  transition:transform .52s cubic-bezier(.22,.8,.2,1),opacity .4s ease;
}
dialog.hw-welcome[open] { display:grid; grid-template-rows:auto minmax(min-content,1fr) auto; }
dialog.hw-welcome *, dialog.hw-welcome *::before, dialog.hw-welcome *::after { box-sizing:border-box; }
dialog.hw-welcome::backdrop { background:rgba(2,10,19,.28); transition:opacity .42s ease; }
dialog.hw-welcome::before { content:""; position:absolute; z-index:-1; inset:0; pointer-events:none; background:radial-gradient(ellipse at 78% 46%,var(--hw-glow),transparent 48%); }
dialog.hw-welcome.hw-is-dragging { transition:none; will-change:transform; user-select:none; }
dialog.hw-welcome.hw-is-scrollable { touch-action:pan-y pinch-zoom; }
dialog.hw-welcome.hw--education { --hw-bg:#f5f2ea; --hw-ink:#10283b; --hw-muted:#52636a; --hw-accent:#0b716c; --hw-line:rgba(11,113,108,.17); --hw-glow:rgba(92,183,157,.13); --hw-surface:rgba(11,113,108,.045); --hw-surface-hover:rgba(11,113,108,.08); color-scheme:light; }
dialog.hw-welcome.hw--games { --hw-bg:#10172e; --hw-ink:#f3efff; --hw-muted:#c5c2e3; --hw-accent:#b09aff; --hw-line:rgba(176,154,255,.24); --hw-glow:rgba(115,82,184,.22); background:radial-gradient(ellipse at 92% 2%,rgba(8,120,206,.16),transparent 55%),var(--hw-bg); }
dialog.hw-welcome .hw-top, dialog.hw-welcome .hw-bottom { position:relative; z-index:2; display:flex; align-items:center; gap:24px; padding-inline:clamp(24px,6.2vw,120px); }
dialog.hw-welcome .hw-top { justify-content:space-between; min-height:110px; padding-top:max(22px,env(safe-area-inset-top)); padding-bottom:22px; }
dialog.hw-welcome .hw-brand { display:flex; align-items:center; gap:22px; }
dialog.hw-welcome .hw-logo { display:block; width:clamp(125px,13vw,178px); height:auto; max-height:44px; object-fit:contain; }
dialog.hw-welcome .hw-wordmark { font-size:clamp(26px,3vw,35px); letter-spacing:.17em; font-weight:650; line-height:1; }
dialog.hw-welcome .hw-area { border-left:1px solid var(--hw-line); padding-left:22px; font-size:14px; font-weight:600; letter-spacing:.015em; }
dialog.hw-welcome .hw-meta { color:var(--hw-muted); font-size:11px; letter-spacing:.11em; text-transform:uppercase; }
dialog.hw-welcome .hw-body { position:relative; display:flex; align-items:center; padding:36px clamp(24px,8.4vw,162px) 42px; min-height:0; }
dialog.hw-welcome .hw-content { position:relative; z-index:2; max-width:940px; }
dialog.hw-welcome .hw-eyebrow { margin:0 0 29px; color:var(--hw-accent); font-size:11px; font-weight:650; line-height:1.6; letter-spacing:.18em; text-transform:uppercase; }
dialog.hw-welcome .hw-title { margin:0; padding:0; max-width:none; text-transform:none; color:var(--hw-ink); font-size:clamp(44px,6.65vw,108px); font-weight:600; line-height:1.06; letter-spacing:-.065em; }
dialog.hw-welcome .hw-title span { display:block; }
dialog.hw-welcome .hw-title span:last-child { color:var(--hw-accent); }
dialog.hw-welcome .hw-copy { margin:29px 0 0; max-width:38ch; color:var(--hw-muted); font-size:clamp(16px,1.45vw,20px); line-height:1.6; letter-spacing:0; }
dialog.hw-welcome .hw-enter { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:15px; width:min(260px,100%); min-height:76px; margin:0; padding:16px 26px 14px; border:1px solid transparent; border-radius:999px; background:var(--hw-surface); color:var(--hw-ink); box-shadow:inset 0 1px 0 rgba(255,255,255,.035); font:inherit; font-size:14px; font-weight:550; line-height:1.4; letter-spacing:.01em; text-transform:none; cursor:pointer; touch-action:inherit; -webkit-tap-highlight-color:transparent; transition:background .24s ease,border-color .24s ease; }
dialog.hw-welcome .hw-enter-label { pointer-events:none; }
dialog.hw-welcome .hw-handle { display:block; width:48px; height:4px; border-radius:999px; background:var(--hw-accent); opacity:.9; pointer-events:none; }
dialog.hw-welcome .hw-enter:focus { outline:none; }
dialog.hw-welcome.hw-keyboard-input .hw-enter:focus-visible { outline:3px solid var(--hw-accent); outline-offset:6px; }
@media (hover:hover) { dialog.hw-welcome .hw-enter:hover { background:var(--hw-surface-hover); border-color:var(--hw-line); } }
dialog.hw-welcome .hw-enter:active .hw-handle { opacity:1; }
dialog.hw-welcome .hw-art { position:absolute; inset:0; overflow:hidden; pointer-events:none; }
dialog.hw-welcome .hw-rings { position:absolute; z-index:0; width:clamp(500px,61vw,1100px); height:auto; right:-8vw; top:50%; transform:translateY(-50%); color:var(--hw-accent); overflow:visible; pointer-events:none; }
dialog.hw-welcome .hw-ring { fill:none; stroke:currentColor; stroke-width:.7; opacity:.2; }
dialog.hw-welcome .hw-ring-1 { opacity:.12; } dialog.hw-welcome .hw-ring-2 { opacity:.11; } dialog.hw-welcome .hw-ring-3 { stroke-width:.9; opacity:.31; }
dialog.hw-welcome .hw-dot { fill:currentColor; opacity:.8; } dialog.hw-welcome .hw-dot-1 { opacity:.4; } dialog.hw-welcome .hw-dot-2 { opacity:.7; }
dialog.hw-welcome.hw--education .hw-rings { right:-10vw; opacity:.8; }
dialog.hw-welcome.hw--games .hw-rings { transform:translateY(-50%) rotate(17deg); }
dialog.hw-welcome .hw-bottom { flex-direction:column; justify-content:flex-end; gap:13px; min-height:158px; padding-top:16px; padding-bottom:max(28px,env(safe-area-inset-bottom)); }
dialog.hw-welcome .hw-hint { display:block; margin:0; color:var(--hw-muted); font-size:11px; line-height:1.5; letter-spacing:.025em; text-align:center; }
dialog.hw-welcome .hw-keyboard { color:var(--hw-muted); font-size:10px; line-height:1.4; letter-spacing:.02em; }
dialog.hw-welcome.hw-is-open .hw-content { animation:hw-enter-content .7s cubic-bezier(.2,.75,.2,1) both; }
dialog.hw-welcome.hw-is-open .hw-rings { animation:hw-ring-reveal 1.1s ease both; }
dialog.hw-welcome.hw-is-open .hw-bottom { animation:hw-ring-reveal .65s ease .08s both; }
dialog.hw-welcome.hw-is-leaving { transform:translate3d(0,-105%,0); opacity:.8; pointer-events:none; }
dialog.hw-welcome.hw-is-leaving::backdrop { opacity:0; }
dialog.hw-welcome.hw-is-leaving .hw-content, dialog.hw-welcome.hw-is-leaving .hw-bottom { animation:none; }
@keyframes hw-enter-content { from { opacity:0; translate:0 14px; } to { opacity:1; translate:0 0; } }
@keyframes hw-ring-reveal { from { opacity:0; } to { opacity:1; } }
@media (max-width:700px) {
  dialog.hw-welcome .hw-top { min-height:88px; gap:12px; } dialog.hw-welcome .hw-brand { gap:14px; } dialog.hw-welcome .hw-area { padding-left:14px; font-size:12px; } dialog.hw-welcome .hw-meta { display:none; }
  dialog.hw-welcome .hw-body { padding-top:26px; padding-bottom:28px; } dialog.hw-welcome .hw-content { max-width:100%; }
  dialog.hw-welcome .hw-eyebrow { max-width:29ch; margin-bottom:22px; font-size:9px; letter-spacing:.13em; }
  dialog.hw-welcome .hw-title { font-size:clamp(38px,8.7vw,61px); letter-spacing:-.055em; line-height:1.1; }
  dialog.hw-welcome .hw-copy { margin:23px 0 0; font-size:16px; max-width:28ch; }
  dialog.hw-welcome .hw-rings { right:-320px; width:650px; opacity:.5; } dialog.hw-welcome.hw--education .hw-rings { right:-350px; opacity:.35; }
  dialog.hw-welcome .hw-bottom { min-height:146px; gap:13px; padding-top:14px; } dialog.hw-welcome .hw-keyboard { display:none; }
}
@media (max-height:620px) {
  dialog.hw-welcome .hw-top { min-height:68px; padding-block:16px; } dialog.hw-welcome .hw-body { padding-block:18px; } dialog.hw-welcome .hw-title { font-size:clamp(34px,6vw,64px); }
  dialog.hw-welcome .hw-eyebrow { margin-bottom:14px; } dialog.hw-welcome .hw-copy { margin:16px 0 0; } dialog.hw-welcome .hw-enter { min-height:64px; gap:12px; padding-block:12px; }
  dialog.hw-welcome .hw-bottom { min-height:112px; gap:8px; padding-block:14px; } dialog.hw-welcome .hw-logo { max-height:34px; }
}
@media (prefers-reduced-motion:reduce) {
  dialog.hw-welcome, dialog.hw-welcome *, dialog.hw-welcome *::before, dialog.hw-welcome *::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
  dialog.hw-welcome { transform:none!important; opacity:1!important; }
}
@media (forced-colors:active) {
  dialog.hw-welcome .hw-enter { border:1px solid ButtonText; background:ButtonFace; color:ButtonText; }
  dialog.hw-welcome .hw-handle { background:ButtonText; forced-color-adjust:none; }
}

/* Retain the exact approved logo bytes; a light plaque keeps its navy mark clear. */
.hw--games .hw-logo {
  box-sizing: content-box;
  padding: 7px 11px;
  border-radius: 8px;
  background: #f5f2ea;
}
