/* Hushword website and phone page. System fonts only; no third-party requests. */
:root {
  --ink: #1d1440;
  --muted: #5b5675;
  --bg: #faf8ff;
  --card: #ffffff;
  --line: #e4defa;
  --brand: #5b3fd1;
  --brand-ink: #ffffff;
  --accent: #ffcc33;
  --good: #1f8a5b;
  --bad: #c2362f;
  --radius: 16px;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
a { color: var(--brand); }
img, svg { max-width: 100%; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
header.site { border-bottom: 1px solid var(--line); background: var(--card); }
header.site .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.logo svg { width: 32px; height: 32px; }
header.site nav { margin-left: auto; display: flex; gap: 16px; font-size: 15px; flex-wrap: wrap; }
header.site nav a { color: var(--muted); text-decoration: none; }
header.site nav a:hover { color: var(--ink); }
section { padding: 48px 0; }
.hero { padding: 56px 0 40px; }
.hero h1 { font-size: clamp(32px, 6vw, 54px); line-height: 1.08; margin: 0 0 16px; letter-spacing: -0.02em; }
.lead { font-size: 19px; color: var(--muted); max-width: 640px; }
.muted { color: var(--muted); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; border: 2px solid var(--brand);
  background: var(--brand); color: var(--brand-ink); font: inherit; font-weight: 700;
  text-decoration: none; cursor: pointer; min-height: 48px;
}
.btn.secondary { background: transparent; color: var(--brand); }
.btn:disabled { opacity: 0.5; cursor: default; }
.pill { display: inline-block; padding: 8px 14px; border-radius: 999px; background: #efeaff; color: var(--brand); font-weight: 700; font-size: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; padding: 0; list-style: none; }
.grid3 li, .panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.grid3 h3 { margin: 0 0 8px; font-size: 18px; }
.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.code-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.code-form input {
  font: inherit; font-size: 22px; font-weight: 800; letter-spacing: 0.3em; text-transform: uppercase;
  width: 9em; max-width: 100%; padding: 10px 14px; border: 2px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink);
}
.prose { max-width: 760px; }
.prose h1 { font-size: 34px; line-height: 1.15; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.table-scroll { overflow-x: auto; margin: 16px 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { font-weight: 700; cursor: pointer; }
footer.site { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
footer.site .wrap { display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
footer.site nav { display: flex; gap: 14px; flex-wrap: wrap; }
/* Guide pages (/guides/*): answer first, steps, comparison table, FAQ. */
.guide { padding-bottom: 16px; }
.guide h1 { font-size: clamp(30px, 5vw, 42px); line-height: 1.12; letter-spacing: -0.02em; margin: 8px 0 14px; }
.guide h2 { margin-top: 36px; }
.crumbs { margin: 0; font-size: 14px; }
.answer { color: var(--ink); max-width: none; }
.updated { font-size: 14px; }
.howto { padding-left: 1.3em; }
.howto li { margin: 8px 0; }
table.compare { border-collapse: collapse; width: 100%; font-size: 15px; background: var(--card); }
table.compare.wide { min-width: 560px; }
table.compare th, table.compare td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
table.compare thead th { background: #f1edff; }
table.compare tbody th { font-weight: 700; }
.use { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.prompts li { margin: 6px 0; }
.guide-list { padding-left: 1.1em; }
.guide-list li { margin: 14px 0; }
.sample { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; background: #f1edff; border-radius: 10px; padding: 2px 6px; }

/* ---------------------------------------------------------------- phone page */
body.play {
  --bg: #17112f;
  --card: #241b4a;
  --ink: #f6f3ff;
  --muted: #b9b0dc;
  --line: #3a2f6e;
  --brand: #8f7bff;
  --brand-ink: #120c2a;
  color-scheme: dark;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex; flex-direction: column;
}
.play main { flex: 1; width: 100%; max-width: 520px; margin: 0 auto; padding: 16px 16px 32px; }
.play header.bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; max-width: 520px; margin: 0 auto; width: 100%; }
.play header.bar .logo { color: var(--ink); font-size: 18px; }
.play header.bar .code { margin-left: auto; font-weight: 800; letter-spacing: 0.2em; color: var(--muted); }
.play h1 { font-size: 26px; line-height: 1.2; margin: 8px 0 12px; }
.play h2 { font-size: 18px; margin: 24px 0 10px; }
.animals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.animal {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px;
  border-radius: 14px; border: 2px solid var(--line); background: var(--card); color: var(--ink);
  font: inherit; font-weight: 700; cursor: pointer; min-height: 88px;
}
.animal .e { font-size: 34px; line-height: 1; }
.animal:disabled { opacity: 0.35; cursor: default; }
.animal.sel, .choice.sel { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
.players { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.players li { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-weight: 600; }
.players li.me { border-color: var(--accent); }
.badge { display: inline-block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; padding: 3px 8px; border-radius: 999px; background: var(--line); color: var(--ink); }
.peek {
  width: 100%; min-height: 190px; border-radius: 22px; border: 2px dashed var(--brand);
  background: var(--card); color: var(--ink); font: inherit; cursor: pointer; padding: 20px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: none;
}
.peek .hint { font-size: 20px; font-weight: 800; }
.peek .cat { color: var(--muted); }
.peek .word { font-size: clamp(34px, 11vw, 52px); font-weight: 900; letter-spacing: -0.01em; line-height: 1.05; overflow-wrap: anywhere; }
.peek.open { border-style: solid; border-color: var(--accent); }
.peek.imposter.open { background: #3b1730; border-color: #ff6b8b; }
.order { list-style: none; counter-reset: o; padding: 0; margin: 0; display: grid; gap: 6px; }
.order li { counter-increment: o; display: flex; gap: 10px; align-items: baseline; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.order li::before { content: counter(o); font-weight: 800; color: var(--muted); min-width: 1.2em; }
.order li.me { border-color: var(--accent); }
.order .clue { margin-left: auto; font-weight: 700; color: var(--accent); text-align: right; }
.choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.choice { padding: 14px 10px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; min-height: 56px; overflow-wrap: anywhere; }
.result { text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px 16px; }
.result .big { font-size: 28px; font-weight: 900; line-height: 1.15; margin: 6px 0; }
.result .word { font-size: 22px; font-weight: 800; color: var(--accent); }
.note { color: var(--muted); font-size: 15px; }
.error { color: #ffb3b3; font-weight: 600; }
.cta { margin-top: 28px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); font-size: 15px; }
.play footer { text-align: center; font-size: 13px; color: var(--muted); padding: 16px; }
.play footer a { color: var(--muted); }
.linkish { background: none; border: 0; color: var(--muted); text-decoration: underline; font: inherit; cursor: pointer; padding: 8px 0; }
@media (max-width: 360px) { .animals { grid-template-columns: repeat(2, 1fr); } }
