/* static/style.css -- signing in, the account and admin pages. Dark, warm, a little arcane.
   The hub and the table are the game client's. */

/* the headings' face; the UI's is in fonts.css */
@font-face { font-family: "Texturina"; font-weight: 700; src: url(/static/fonts/Texturina-Bold.ttf); font-display: swap; }

:root {
  --bg: #121318; --bg2: #1a1c23; --panel: #20232c; --line: #30343f;
  --text: #e9e6df; --muted: #9a9789; --gold: #e9c46a; --gold-d: #b8860b;
  --red: #e61607; --yellow: #db910f; --green: #06ba1e; --blue: #4083f7;
  --radius: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 500 16px/1.45 "Roboto Condensed", system-ui, sans-serif;
  background: var(--bg);
  min-height: 100vh;
  display: flex; flex-direction: column;
}
a { color: var(--gold); }
h1, h2, h3 { font-family: "Texturina", serif; font-weight: 700; margin: 0 0 .5em; letter-spacing: .02em; }
h1 { font-size: 2.2rem; color: var(--gold); } h2 { font-size: 1.5rem; } h3 { font-size: 1.15rem; color: var(--gold); }
/* No italics in the UI: Roboto Condensed is set upright everywhere, and
   <em> marks emphasis by color or weight instead. */
em, i, cite { font-style: normal; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .center { text-align: center; }
.stack > * + * { margin-top: 1rem; }

/* controls */
button, .btn {
  font: inherit; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: .4em;
  padding: .5em 1em; border-radius: 8px; border: 1px solid #5a4a2a;
  background: linear-gradient(#3a3122, #2a241a); color: var(--gold); text-decoration: none;
}
button:hover, .btn:hover { border-color: var(--gold); }
button:disabled { opacity: .45; cursor: default; }
button.primary { background: linear-gradient(#e9c46a, #b8860b); color: #1a1408; border-color: #e9c46a; }
button.ghost { background: transparent; border-color: var(--line); color: var(--muted); }
button.small, .btn.small { padding: .25em .7em; font-size: .85rem; }
button.picked { background: var(--gold); color: #1a1408; }
input, select {
  font: inherit; color: var(--text); background: var(--bg2); border: 1px solid var(--line);
  border-radius: 8px; padding: .5em .7em; min-width: 0;
}
input:focus, select:focus { outline: 2px solid var(--gold-d); border-color: transparent; }
form.inline, .row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.row > input { flex: 1; }
label.check { display: flex; gap: .5em; align-items: center; color: var(--muted); }

/* chrome */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: .7rem 1.2rem; border-bottom: 1px solid var(--line); background: rgba(0,0,0,.25);
}
.brand { font: 700 1.4rem "Texturina", serif; color: var(--text); text-decoration: none; }
.brand span { font-size: .7em; color: var(--muted); }
.topbar-links { display: flex; gap: 1.2rem; }
.topbar-links a { color: var(--muted); text-decoration: none; }
.topbar-links a:hover { color: var(--gold); }
.container { max-width: 1100px; width: 100%; margin: 0 auto; padding: 1.5rem 1rem 3rem; flex: 1; }
.copyright { text-align: center; font-size: .8rem; color: #6b6960; padding: 1rem 1rem 1.25rem; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.panel.narrow { max-width: 480px; margin: 0 auto; }

.notice { padding: .6em .9em; border-radius: 8px; background: #2b2f3a; border-left: 3px solid var(--gold); }
.notice-warning { border-left-color: var(--yellow); }
.notice-error { border-left-color: var(--red); }

/* sign-in (signin_form.du markup, from arland) */
.signin, .interstitial { max-width: 440px; margin: 2rem auto; text-align: center; }
.signin-head .tagline { color: var(--muted); }
.logo-head { display: flex; justify-content: center; padding: 1.5rem 1rem 0; }
.logo-head img { display: block; width: 150px; height: auto; }
.provider-list { display: grid; gap: .6rem; margin: 1.5rem 0; }
.provider-btn { display: flex; gap: .7em; align-items: center; justify-content: center; padding: .7em; border-radius: 8px;
  background: #16171d; border: 1px solid #2c2f39; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.25rem;
  transition: transform .2s cubic-bezier(.34, 1.56, .64, 1), background .2s, border-color .2s; }
.provider-btn:hover, .provider-btn:focus-visible { background: #20222a; border-color: #454957; transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) { .provider-btn { transition: none; } .provider-btn:hover, .provider-btn:focus-visible { transform: none; } }
.provider-mark { width: 30px; height: 30px; }
.magic-form { text-align: left; display: grid; gap: .5rem; margin-top: 1rem; }
.magic-field { display: flex; gap: .5rem; } .magic-field input { flex: 1; }
.magic-field button, .magic-confirm button { transition: transform .2s cubic-bezier(.34, 1.56, .64, 1), border-color .2s; }
.magic-field button:not(:disabled):hover, .magic-field button:focus-visible,
.magic-confirm button:not(:disabled):hover, .magic-confirm button:focus-visible { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) { .magic-field button, .magic-confirm button { transition: none; transform: none !important; } }
.hp-field { display: none; }
.signin-note { color: var(--muted); font-size: .9rem; }
.signin form.stack, .magic-confirm { display: grid; gap: .8rem; }

/* tables (the admin page) */
table { width: 100%; border-collapse: collapse; } td, th { text-align: left; padding: .35rem .5rem; border-bottom: 1px solid var(--line); }
