/* LOV2 #11469: one look for every public account and support page of the game.
 * The look is the game's front door (the open-beta download page): navy panels, gold for the one main
 * action, Tektur, 52 px touch targets. Tokens are the approved website tokens
 * (LOV2 tools/public-site/assets/site.css and tools/release/beta-download/index.php); change them there first.
 * One stylesheet for every page: no page carries a style block of its own.
 */
@font-face { font-family: Tektur; src: url(Tektur-Medium.ttf) format("truetype"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: Tektur; src: url(Tektur-Bold.ttf) format("truetype"); font-weight: 600 800; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #04121c;
  --panel: rgba(6, 29, 44, .94);
  --line: #355b72;
  --field: rgba(11, 39, 59, .96);
  --text: #e8e2d0;
  --muted: #aabfce;
  --cream: #f3e7c4;
  --gold: #e8c35a;
  --gold-fill: #5b4823;
  --gold-hover: #6c562b;
  --danger: #e8a29a;
  --danger-fill: #5a2a26;
  --danger-hover: #6d332e;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 500 17px/1.5 Tektur, "Segoe UI", Roboto, system-ui, sans-serif;
  background:
    linear-gradient(rgba(2, 13, 24, .58), rgba(2, 13, 24, .90) 48%, var(--bg)),
    url(bg.jpg) center top / cover no-repeat fixed,
    var(--bg);
}

a { color: var(--gold); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 2px;
}

/* Page frame (LOV2 #11876): the header, top menu, language row and footer of laurum.online
 * (LOV2 tools/public-site/assets/site.css), and one panel between them. */
.wrap { width: 100%; max-width: 960px; margin: 0 auto; padding: 16px 16px 32px; }
.site-header { display: flex; flex-direction: column; align-items: center; margin-bottom: 18px; }
main.portal { width: 100%; max-width: 460px; margin: 0 auto; }
main.portal.wide { max-width: 680px; }
main.portal.full { max-width: none; }

.brand { display: block; }
.logo {
  display: block;
  width: min(190px, 56vw);
  height: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .7));
}
.tag {
  margin: 6px 0 12px;
  padding: 4px 14px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: rgba(6, 29, 44, .82);
  color: var(--gold);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  text-align: center;
}
.top-nav { width: 100%; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.top-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 6px 14px;
  border-radius: 6px;
  background: rgba(6, 29, 44, .78);
  border: 1px solid transparent;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .3px;
}
.top-nav a:hover, .top-nav a:focus-visible { color: var(--cream); border-color: var(--line); }
.top-nav a[aria-current="page"] { color: var(--gold); border-color: var(--gold); background: rgba(11, 39, 59, .95); }
.panel {
  width: 100%;
  padding: 20px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
.lang-nav { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.lang-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 14px;
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  background: rgba(6, 29, 44, .75);
  border: 1px solid transparent;
}
.lang-nav a[aria-current="true"] { color: var(--gold); border-color: var(--line); }
footer { margin-top: 16px; color: #7f97a8; font-size: 13px; text-align: center; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 18px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--gold); }

h1 { margin: 0 0 14px; font-size: 24px; line-height: 1.25; color: var(--cream); }
h2 { margin: 22px 0 8px; font-size: 15px; font-weight: 700; color: var(--gold); letter-spacing: .5px; text-transform: uppercase; }
p { margin: 10px 0; }
.hint { color: var(--muted); font-size: 15px; }
.hint a, a.signed-hint { color: var(--gold); }

/* Forms */
label { display: block; margin: 16px 0 6px; font-weight: 500; }
input, select, textarea, button, a.button, summary.button {
  width: 100%;
  min-height: 52px;
  padding: 10px 14px;
  border-radius: 6px;
  font: inherit;
}
input, select, textarea {
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--text);
}
input::placeholder, textarea::placeholder { color: #7f97a8; }
textarea { min-height: 140px; resize: vertical; }
button, a.button, summary.button {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  border: 2px solid var(--gold);
  background: var(--gold-fill);
  color: var(--cream);
  font-weight: 700;
  font-size: 18px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
button:hover, a.button:hover, button:focus-visible, a.button:focus-visible { background: var(--gold-hover); }
button.secondary, a.button.secondary, summary.button {
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--text);
  font-size: 17px;
}
button.secondary:hover, a.button.secondary:hover { border-color: var(--muted); background: var(--field); }
button.danger {
  border-color: var(--danger);
  background: var(--danger-fill);
  color: var(--danger);
}
button.danger:hover, button.danger:focus-visible { background: var(--danger-hover); }
button + button, a.button + a.button, button + a.button, form + form { margin-top: 10px; }
label.show { display: flex; gap: 10px; align-items: center; }
label.show input { width: auto; min-height: 0; }

/* A row of navigation links: every link keeps a 52 px touch area, and the row wraps on a narrow phone. */
.links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; }
/* One shared 52 px touch area for every navigation link, in a row or not: the row link, the "back" link at the
 * top of a support form, and the footer link. On a phone these are the only targets on the page. */
.links a, .back a, footer a { display: inline-flex; align-items: center; min-height: 52px; }

/* One message at a time: a rule of a page is shown in the page, never as a floating notice. */
p[role=alert] {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid var(--danger);
  border-radius: 6px;
  background: var(--danger-fill);
  color: var(--cream);
  overflow-wrap: anywhere;
}

/* Data */
table { width: 100%; border-collapse: collapse; margin: 6px 0 10px; }
td { padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
td:first-child { width: 45%; color: var(--muted); }
tr:last-child td { border-bottom: 0; }

/* Support page: one card per reason, a request code, and the conversation. */
.reason {
  display: block;
  margin-top: 10px;
  padding: 14px 16px;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
  color: var(--text);
  text-decoration: none;
}
.reason:hover, .reason:focus-visible { border-color: var(--gold); }
.reason b { display: block; font-size: 17px; color: var(--cream); }
.reason span { font-size: 14px; color: var(--muted); }
fieldset.topics { border: 0; margin: 16px 0 0; padding: 0; min-width: 0; }
fieldset.topics legend { padding: 0; margin-bottom: 6px; }
fieldset.topics .reason { display: flex; align-items: center; gap: 10px; cursor: pointer; }
fieldset.topics input[type=radio] { width: auto; min-height: 0; margin: 0; flex: none; }
.note {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(11, 39, 59, .72);
  font-size: 15px;
}
.code {
  margin: 12px 0;
  padding: 16px;
  border: 2px dashed var(--gold);
  border-radius: 8px;
  background: var(--bg);
  color: var(--gold);
  font: 700 30px/1.2 ui-monospace, Menlo, Consolas, monospace;
  letter-spacing: 2px;
  text-align: center;
  overflow-wrap: anywhere;
}
.status {
  display: inline-block;
  padding: 2px 10px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: var(--gold-fill);
  color: var(--cream);
  font-size: 14px;
  font-weight: 700;
}
.msg {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(11, 39, 59, .72);
  font-size: 16px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.msg.staff { border-color: var(--gold); }
.msg .who { display: block; margin-bottom: 4px; font-size: 13px; color: var(--muted); }
.back { font-size: 16px; }

.cf-turnstile { margin-top: 16px; }

/* Account panel (LOV2 #11876): one box per function of the account site, two columns on a wide screen. */
main.full h1 { font-size: clamp(22px, 4.5vw, 30px); line-height: 1.2; margin-bottom: 10px; }
main.full label { font-weight: 600; }
main.full input { background: var(--bg); }
.lead { font-size: 16px; }
.cards { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 14px; }
.card { padding: 14px; background: var(--field); border: 1px solid var(--line); border-radius: 8px; font-size: 16px; }
.card h2 { margin: 0 0 6px; font-size: 16px; color: var(--cream); letter-spacing: 0; text-transform: none; }
.card p { margin: 0; font-size: 14px; color: var(--muted); }
.card td { padding: 10px 0; }
.card td:first-child { width: auto; white-space: nowrap; padding-right: 12px; }
.card td:last-child { text-align: right; color: var(--text); }
.card tr:last-child td { border-bottom: 1px solid var(--line); }
.card button, .card a.button, .card summary.button { margin-top: 14px; font-size: 16px; }
summary.button { list-style: none; }
summary.button::-webkit-details-marker { display: none; }
summary.button.danger { border-color: #a8433e; color: #ffb3ad; }

@media (min-width: 680px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .wrap { padding: 28px 20px 40px; }
  .logo { width: 210px; }
}
