/*
 * The look of the static pages beside the game: terms, support, delete-account. The same paper, card and ink as the
 * privacy page (privacy/index.html keeps its own copy of these rules in its <style>; change both together).
 */
:root {
  --page: #fff8ef;
  --card: #ffffff;
  --line: #ecdcc8;
  --ink: #5b4636;
  --ink-soft: #7a6454;
  --accent: #2f7fd0;
  --butter: #eef59a;
  --pink: #ffa7c3;
  --pink-deep: #f081a0;
  --mint: #cdeedd;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 17px/1.6 ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}
main { max-width: 680px; margin: 0 auto; padding: 32px 16px 64px; }
header { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
header img { width: 48px; height: 48px; border-radius: 12px; }
header a { color: var(--ink); text-decoration: none; font-weight: 800; font-size: 20px; }
.card { background: var(--card); border: 2px solid var(--line); border-radius: 20px; padding: 24px 22px; }
h1 { font-size: 28px; line-height: 1.2; margin: 0 0 4px; }
.updated { color: var(--ink-soft); margin: 0 0 20px; font-size: 15px; }
h2 { font-size: 19px; line-height: 1.3; margin: 28px 0 6px; }
h3 { font-size: 17px; margin: 18px 0 4px; }
p, ul, ol { margin: 0 0 12px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }
a { color: var(--accent); }
.box { background: var(--butter); border-radius: 14px; padding: 14px 16px 6px; margin: 20px 0; }
.box h2 { margin-top: 0; }
footer { color: var(--ink-soft); font-size: 14px; margin-top: 20px; text-align: center; line-height: 2; }
footer a { margin: 0 6px; white-space: nowrap; }

/* the delete-account page's form */
.panel { border: 2px solid var(--line); border-radius: 16px; padding: 16px; margin: 16px 0 8px; }
.panel h2 { margin-top: 0; }
.panel[hidden] { display: none; }
label { display: block; font-weight: 800; font-size: 15px; margin-bottom: 6px; }
input[type="text"] {
  width: 100%;
  min-height: 52px;
  padding: 10px 14px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--page);
  color: var(--ink);
  font: 800 18px/1.2 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
input[type="text"]:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
/* (a narrow phone: the account code in its groups, 19 characters, still fits its box) */
@media (max-width: 380px) {
  input[type="text"] { padding-inline: 8px; font-size: 16px; letter-spacing: 0; }
}
button {
  width: 100%;
  min-height: 52px;
  padding: 10px 16px;
  border: 0;
  border-radius: 16px;
  background: var(--butter);
  box-shadow: 0 4px 0 #cfd76f;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
}
button:active { transform: translateY(2px); box-shadow: 0 2px 0 #cfd76f; }
button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
button.danger { background: var(--pink); box-shadow: 0 4px 0 var(--pink-deep); }
button.danger:active { box-shadow: 0 2px 0 var(--pink-deep); }
button.plain { background: none; box-shadow: none; color: var(--accent); text-decoration: underline; min-height: 44px; }
button[disabled] { opacity: 0.55; cursor: default; }
/* (a message's place is there, three lines tall, before there is a message: nothing under it moves) */
.msg { min-height: calc(3 * 1.4 * 15px); margin: 8px 0; font-weight: 800; font-size: 15px; line-height: 1.4; color: var(--ink); }
.facts { margin: 12px 0; padding: 2px 14px; border-radius: 14px; background: var(--page); }
.facts div { display: flex; gap: 12px; align-items: center; min-height: 40px; font-weight: 800; font-size: 15px; }
.facts div + div { border-top: 2px dashed var(--line); }
.facts dt { flex: 1; min-width: 0; }
.facts dd { margin: 0; flex: none; width: 8em; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.who { font-weight: 800; }
.wholine { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wholine .small { display: block; white-space: normal; }
.small { font-size: 15px; color: var(--ink-soft); }
.done { background: var(--mint); border-color: var(--mint); }
table { width: 100%; border-collapse: collapse; margin: 0 0 12px; font-size: 15px; line-height: 1.45; }
th, td { text-align: left; vertical-align: top; padding: 8px 8px 8px 0; border-top: 2px dashed var(--line); }
th { width: 42%; }
