/* The sign-in site: the game's gold on dark stone (the marketing kit's
   colours, brand\web-demo\README.txt). System fonts only; every image is the
   site's own. */
:root {
  --gold: #f5d173;      /* headings, links, the panel frame */
  --gold-hi: #ffe39a;   /* hover and focus */
  --gold-dim: #bd9e61;  /* rules, quiet frames */
  --cream: #eddebd;     /* body text */
  --muted: #c9b994;     /* small print */
  --stone-0: #0d0a07;   /* page */
  --stone-1: #17120d;   /* text on gold buttons */
  --stone-2: #221a13;   /* panels */
  --stone-3: #2e241a;   /* inputs */
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--stone-0); }
body {
  margin: 0;
  min-height: 100vh;
  padding: 20px 16px 32px;
  color: var(--cream);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* The game's stone wall, tiled (already darkened in the kit), with a faint
     warm glow behind the logo. */
  background-color: var(--stone-0);
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(245, 209, 115, 0.07), transparent 55%),
    url("/img/stone-tile.png");
  background-size: auto, 192px 192px;
  image-rendering: pixelated;
}
.brand { max-width: 560px; margin: 0 auto 18px; text-align: center; }
.brand a { display: inline-block; max-width: 100%; }
.logo { display: block; width: 100%; max-width: 460px; height: auto; margin: 0 auto; }
.sub { margin: 4px 0 0; color: var(--muted); font-size: 14px; letter-spacing: 0.06em; }
.card {
  max-width: 460px;
  margin: 0 auto;
  padding: 26px 22px;
  background: var(--stone-2);
  border: 1px solid var(--gold-dim);
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(245, 209, 115, 0.08), 0 12px 32px rgba(0, 0, 0, 0.6);
  overflow-wrap: anywhere;  /* long email addresses wrap on a phone */
}
.card.wide { max-width: 900px; }
h1 { margin: 0 0 14px; font: 700 26px/1.2 Georgia, "Times New Roman", serif; color: var(--gold); }
h2 { margin: 26px 0 10px; font: 700 19px/1.2 Georgia, "Times New Roman", serif; color: var(--gold-dim); }
p { margin: 0 0 12px; }
a { color: var(--gold); }
a:hover { color: var(--gold-hi); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
code { color: var(--gold); font-size: 14px; overflow-wrap: anywhere; }
label { display: block; margin: 14px 0 6px; color: var(--gold-dim); font-size: 15px; }
input[type="email"], input[type="password"], input[type="text"] {
  width: 100%;
  padding: 12px;
  font: inherit;
  font-size: 17px;
  color: var(--cream);
  background: var(--stone-3);
  border: 1px solid #4a3b2a;
  border-radius: 6px;
}
input.code { font-size: 26px; letter-spacing: 0.3em; text-align: center; }
label.check { display: flex; gap: 10px; align-items: center; color: var(--cream); }
input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--gold); }
button, .button {
  display: inline-block;
  margin-top: 18px;
  padding: 12px 20px;
  font: 600 17px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--stone-1);
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 45%, #c9a24f);
  border: 1px solid #7a6233;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
button:hover, .button:hover { color: var(--stone-1); filter: brightness(1.06); }
button.full { width: 100%; }
button.quiet, .button.quiet { color: var(--gold); background: transparent; border-color: var(--gold-dim); }
button.quiet:hover, .button.quiet:hover { color: var(--gold-hi); }
button.danger { color: #f3c3b3; background: transparent; border-color: #7d3a2a; }
.play { display: block; margin: 22px 0 14px; padding: 22px 16px; font-size: 24px; letter-spacing: 0.04em; }
.row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 8px; }
.row form, .actions form { margin: 0; }
.row button, .row .button { margin-top: 8px; }
.small { font-size: 15px; color: var(--muted); }
.msg { padding: 10px 12px; border-radius: 6px; margin: 0 0 14px; }
.msg.err { color: #f3c3b3; background: #3a1d16; border: 1px solid #7d3a2a; }
.msg.ok { color: #d3e8c4; background: #1f2a18; border: 1px solid #4d6a3a; }
.msg.warn { color: var(--gold-hi); background: var(--stone-3); border: 1px solid var(--gold); }
.person { padding: 12px 0; border-top: 1px solid #3a2e21; }
.status { color: var(--muted); font-size: 15px; }
.tag { padding: 1px 7px; font-size: 12px; color: var(--stone-1); background: var(--gold-dim); border-radius: 9px; vertical-align: middle; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.actions button { margin-top: 8px; padding: 7px 12px; font-size: 14px; }
.log { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 5px 8px; text-align: left; white-space: nowrap; border-bottom: 1px solid #3a2e21; }
th { color: var(--gold-dim); }
footer { margin-top: 28px; text-align: center; color: var(--muted); font-size: 13px; }
footer .studio { display: block; width: 80px; height: auto; margin: 0 auto 8px; }
footer p { margin: 0; }
@media (max-width: 420px) {
  body { padding: 14px 12px 28px; }
  .card { padding: 20px 16px; }
}
