/* The Huntica Online theme: the tokens and window chrome of the product owner's design "Huntica Online —
   interface", which the release screens wear under the class hx. Bevels are 1 px inset shadows and no corner is rounded.
   The CSP loads no web font (no font-src), so titles fall back from Grenze Gotisch to Georgia. */
.hx {
  --hx-text: #c8ccd8;
  --hx-muted: #a8a8a8;
  --hx-gold: #f0cf6a;
  --hx-warn: #ff9c8f;
  --hx-edge: #05070d;
  --hx-well: inset 1px 1px 0 #000, 0 0 0 1px #34406c;
  color: var(--hx-text);
  font: 11px Verdana, Tahoma, "DejaVu Sans", sans-serif;
}
/* The scene: a vignette over a purple glow and a 32 px grid on a checkerboard, under the centred logo and window. The game
   area (./huntica-hud.css) draws it too, with its own vignette and glow. */
.hx-scene {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: auto;
}
.hx-scene, #release-thais:not([data-step="OFF"]) > #release-thais-stage {
  background-color: #11152b;
  background-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) var(--hx-vignette-from, 25%), rgba(0, 0, 0, var(--hx-vignette, 0.8)) 100%),
    radial-gradient(ellipse at 50% -10%, rgba(110, 70, 190, var(--hx-glow, 0.28)), transparent 60%),
    linear-gradient(rgba(0, 0, 0, 0.5) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, 0.5) 1px, transparent 1px),
    conic-gradient(#13182f 25%, #171d38 0 50%, #13182f 0 75%, #171d38 0);
  background-size: auto, auto, 32px 32px, 32px 32px, 64px 64px;
}
/* Below 760 px of height the login stops shrinking and the scene scrolls (ARC-DEC-070 item 7). The design pulls the logo
   50 px up with a negative margin; the column's 50 px bottom padding centres it the same way without leaving the top of the
   scroll area, and safe centring starts an overflowing column at the top. */
.hx-column {
  position: relative;
  min-height: max(100%, 760px);
  padding-bottom: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: safe center;
  gap: 18px;
}
.hx-logo { width: 500px; height: 375px; flex: none; object-fit: contain; mix-blend-mode: lighten; margin-bottom: -62px; }
.hx-logo:not([src]) { visibility: hidden; }
.hx-version { position: absolute; right: 20px; bottom: 14px; margin: 0; font-size: 10px; color: var(--hx-muted); }
.hx-foot { padding: 8px 14px; display: flex; flex-direction: column; border-top: 1px solid #0a0e1c; box-shadow: inset 0 1px 0 #3d4a78; font-size: 10px; line-height: 1.6; text-align: center; }
.hx-foot p { margin: 0; }
.hx-foot small { color: var(--hx-warn); }
.hx-win {
  width: 400px;
  padding: 3px;
  display: flex;
  flex-direction: column;
}
/* The window skin, which the game screen's windows (./huntica-hud.css) wear too. */
.hx-win, #release-screen .tb-win, #release-thais-hunt, #release-thais-report {
  background-color: #1d2440;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), radial-gradient(rgba(0, 0, 0, 0.22) 1px, transparent 1px);
  background-size: 3px 3px, 5px 5px;
  background-position: 0 0, 1px 2px;
  border: 1px solid #05070d;
  box-shadow: inset 1px 1px 0 #e0bd5c, inset -1px -1px 0 #6b5418, inset 2px 2px 0 #34406c, inset -2px -2px 0 #0e1326;
}
.hx-tbar {
  height: 26px;
  margin: 0;
  display: grid;
  place-items: center;
  background: #1b2c66;
  border: 1px solid var(--hx-edge);
  border-bottom-color: #b8902c;
  box-shadow: inset 0 1px 0 #4560b0, inset 0 -1px 0 #0d1533;
  color: var(--hx-gold);
  font: 600 16px "Grenze Gotisch", Georgia, serif;
  letter-spacing: 0.4px;
  text-transform: none;
}
.hx-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.hx-body > p { margin: 0; line-height: 1.6; text-align: center; }
.hx [data-tone="bad"] { color: var(--hx-warn); }
.hx-or { margin: 0; display: flex; align-items: center; gap: 8px; color: var(--hx-muted); }
.hx-or::before, .hx-or::after { content: ""; flex: 1; border-top: 1px solid #0a0e1c; box-shadow: 0 1px 0 #3d4a78; }
.hx [data-choices], .hx-choices { display: flex; flex-direction: column; gap: 10px; }
.hx-choices > div { display: flex; flex-direction: column; gap: 2px; }
/* Google and Discord say why on their own row, so the 1440 x 900 login fits without scrolling. */
.hx-choices:nth-child(3) > div { flex-direction: row; align-items: center; gap: 8px; }
.hx-choices:nth-child(3) > div > * { flex: 1; text-align: left; }
.hx-choices:last-child { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.hx-choices:last-child > :last-child { grid-column: 1 / -1; }
.hx-choices:last-child button { font-size: 10px; }
/* A locked choice says why beside it, in text (ARC-DEC-060 items 4 and 5). */
.hx-choices small { font-size: 10px; line-height: 1.3; text-align: center; color: var(--hx-warn); }
/* Buttons: blue with a light top-left bevel, a 24 px target, a dotted focus ring; the gold primary; a sunk glyph well. */
.hx button {
  min-height: 24px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font: inherit;
  color: #e6e8f0;
  background: #253060;
  border: 1px solid var(--hx-edge);
  box-shadow: inset 1px 1px 0 #5468a8, inset -1px -1px 0 #10162f;
  cursor: pointer;
}
.hx button:enabled:hover { color: #fff; background: #2e3a70; }
.hx button:disabled { cursor: default; color: #7c8299; background: #1b2140; box-shadow: inset 1px 1px 0 #2c3660, inset -1px -1px 0 #10162f; }
.hx :focus-visible { outline: 1px dotted #f0f0f0; outline-offset: -4px; }
.hx [data-choice="guest"] { min-height: 36px; font-size: 13px; font-weight: bold; letter-spacing: 0.6px; text-transform: uppercase; color: #1a1306; background: #c9a23a; box-shadow: inset 1px 1px 0 #f6dc84, inset -1px -1px 0 #6b5418; }
.hx [data-choice="guest"]:disabled { color: #2a2210; background: #5e5232; box-shadow: inset 1px 1px 0 #7a6a3e, inset -1px -1px 0 #3a3018; }
.hx [data-choice="guest"]::before { content: ""; width: 12px; height: 12px; background: currentColor; clip-path: polygon(25% 15%, 85% 50%, 25% 85%); }
.hx [data-choice="google"], .hx [data-choice="discord"] { min-height: 28px; justify-content: flex-start; }
.hx [data-choice="google"]::before, .hx [data-choice="discord"]::before {
  content: "G";
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: bold;
  color: #f2f2f2;
  background: #0c1121;
  border: 1px solid var(--hx-edge);
  box-shadow: var(--hx-well);
}
.hx [data-choice="discord"]::before { content: "D"; color: #9aa8ff; }
.hx form, .hx label { display: flex; flex-direction: column; gap: 8px; }
.hx label { color: #f2f2f2; }
.hx input { width: 100%; min-height: 24px; padding: 5px 7px; font: inherit; color: #f0f0f0; background: #0a0e1b; border: 1px solid var(--hx-edge); box-shadow: 0 0 0 1px #34406c; outline: none; }
.hx input:focus { box-shadow: 0 0 0 1px #e0bd5c; }
.hx-row { display: flex; justify-content: space-between; margin-top: 2px; }
.hx-row > :last-child { min-width: 70px; }
.hx > section { display: grid; gap: 0.5rem; justify-items: start; }
/* The footer's Terms and Privacy Policy read as links in the sentence, locked, with a 24 px target. */
.hx-foot button, .hx-foot button:disabled { min-height: 24px; padding: 0 2px; vertical-align: middle; color: #7c8299; background: none; border: 0; box-shadow: none; text-decoration: underline dotted; }
/* While the login scene shows, the page's language selector sits at its top right, worded by its options alone. */
#release:has(.hx-scene:not([hidden])) #release-locale { position: fixed; top: 20px; right: 20px; z-index: 2; }
#release:has(.hx-scene:not([hidden])) #release-locale label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
#release:has(.hx-scene:not([hidden])) #release-locale select {
  height: 24px;
  font: 11px Verdana, Tahoma, "DejaVu Sans", sans-serif;
  color: #f0cf6a;
  background: #253262;
  border: 1px solid #05070d;
  box-shadow: inset 1px 1px 0 #5a70b8, inset -1px -1px 0 #0f1734;
}
