/* PlayGate web login — restyle by editing :root (the Godot login theme's values, translated). Layout is plain flexbox. */
:root {
  --bg: #0b1026;                   /* navy under the plasma; also the no-WebGL fallback */
  --panel: rgba(0, 0, 0, 0.8);     /* login_theme PanelContainer/panel */
  --panel-radius: 8px;
  --panel-width: 400px;
  --accent: #ffa600;               /* Button normal  (1, .65, 0) */
  --accent-hover: #ffbf33;         /* Button hover   (1, .75, .2) */
  --accent-active: #cc8500;        /* Button pressed (.8, .52, 0) */
  --button-text: #ffffff;
  --input-bg: #f2f2f2;             /* LineEdit normal (.95) */
  --input-text: #333333;           /* LineEdit font   (.2) */
  --input-placeholder: #999999;    /* (.6) */
  --input-border: #cccccc;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.72);
  --error: #ff4d4d;
  --ok: #7fd48a;
  --heading: #ff7a00;              /* "Sign Up Here!" (1, .478, 0) */
  --under13: #ffff2e;              /* "I'm under 13"  (1, 1, .18) */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-heading: "WantCoffee", var(--font);
  --font-size: 16px;
  --radius: 4px;
}
@font-face { font-family: "WantCoffee"; src: url("WantCoffee-d9PnV.ttf") format("truetype"); font-display: swap; }

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--text); font: var(--font-size)/1.4 var(--font); }
#plasma { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; background: var(--bg); }
.wrap { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 30px 16px 40px; }
.logo { width: 417px; max-width: 90vw; height: auto; margin-bottom: 28px; }
.panels { display: flex; flex-wrap: wrap; justify-content: center; gap: 48px; width: 100%; }
.panel { width: var(--panel-width); max-width: 100%; min-height: 450px; padding: 24px; background: var(--panel); border-radius: var(--panel-radius); display: flex; flex-direction: column; gap: 14px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

form { display: flex; flex-direction: column; gap: 14px; }
input[type=text], input[type=email], input[type=password], input[type=date] {
  width: 100%; height: 40px; padding: 0 8px; font: inherit; font-size: 16px; text-align: center;
  color: var(--input-text); background: var(--input-bg); border: 1px solid var(--input-border); border-radius: var(--radius);
}
input::placeholder { color: var(--input-placeholder); }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
input:read-only { opacity: 0.7; }
.field { color: var(--text-muted); font-size: 14px; margin-top: -6px; }

button { font: inherit; cursor: pointer; border: 0; border-radius: var(--radius); }
button:disabled { cursor: progress; opacity: 0.75; }
.primary { height: 50px; font-size: 18px; color: var(--button-text); background: var(--accent); }
.primary:hover { background: var(--accent-hover); }
.primary:active { background: var(--accent-active); }
.social { height: 40px; font-size: 16px; color: #1a1a1a; background: #ffffff; }
.social.facebook { color: #ffffff; background: #1877f2; }
.link { background: none; color: var(--text); text-decoration: underline; padding: 4px; align-self: center; }
.under13 { height: 50px; font-size: 18px; color: var(--under13); background: var(--accent); }
.divider { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 14px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--text-muted); }

.heading { margin: 0; font: 29px/1.2 var(--font-heading); color: var(--heading); text-align: center; }
.title { margin: 0; font-size: 22px; text-align: center; }
.info { margin: 0; color: var(--text-muted); font-size: 15px; text-align: center; }
.fineprint { margin: 0; color: var(--text-muted); font-size: 12px; text-align: center; }
a { color: var(--accent); }
.err { margin: 0; min-height: 1.4em; color: var(--error); text-align: center; }
.notice { margin: 0; color: var(--ok); text-align: center; }

.tick { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; text-align: left; cursor: pointer; }
.tick input { margin: 3px 0 0; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--accent); }
.tick em { color: var(--text-muted); font-style: normal; }

.rules { list-style: none; margin: -6px 0 0; padding: 0; font-size: 14px; color: var(--text-muted); }
.rules li { margin: 2px 0; }
.rules li::before { content: "○ "; }
.rules li.ok { color: var(--ok); }
.rules li.ok::before { content: "✓ "; }
.rules li.bad { color: var(--error); }
.rules li.bad::before { content: "× "; }

/* the generated legal pages (tools/legal_to_html.js) */
.legal-page .legal { max-width: 760px; margin: 0 auto; padding: 30px 16px 60px; background: var(--panel); border-radius: var(--panel-radius); }
.legal-page .legal h1 { font: 32px/1.2 var(--font-heading); color: var(--heading); }
.legal-page .legal p { line-height: 1.6; }
.legal-page .muted { color: var(--text-muted); }

@media (max-width: 760px) {
  .panels { gap: 24px; }
  .panel { min-height: 0; }
  .logo { margin-bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
